This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
% | |
\usepackage{graphicx,xcolor} | |
\usepackage{siunitx} | |
\usepackage{tikz} | |
\usetikzlibrary{matrix,positioning} | |
%%%% Confusion Matrix Body definition %%%% | |
\NewDocumentCommand{\confusionmatrixperc}{O{false}mmmmmm}{ | |
\pgfmathsetmacro{\maxval}{max(max(#2,#3),max(#4,#5))} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz]{standalone} | |
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, fit, calc, backgrounds} | |
\definecolor{highlight}{RGB}{52,152,250} | |
% TikZ styles | |
\tikzset{ | |
nodeminwidth/.store in=\nodeminwidth, | |
nodeminheight/.store in=\nodeminheight, | |
nodeminwidth =3cm, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.stats import binned_statistic_2d | |
# Example parameters | |
np.random.seed(42) | |
N_sources = 10000 | |
N_samples_per_source = 500 | |
# Simulated asymmetric uncertainties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
% | |
\usepackage{graphicx,xcolor} | |
\usepackage{siunitx} | |
\usepackage{tikz} | |
\usetikzlibrary{matrix,positioning} | |
%%%% Confusion Matrix Body definition %%%% | |
\NewDocumentCommand{\confusionmatrix}{O{false}mmmmmm}{ | |
\pgfmathsetmacro{\maxval}{max(max(#2,#3),max(#4,#5))} |