plot_DL1a_reco_true_correlation#

protopipe.benchmarks.plot_DL1a_reco_true_correlation(ax, reco, true, nbins_x=400, nbins_y=400, mask=None, weights=None, title=None, tel_type=None)[source]#

Plot the correlation between reconstructed and true number of photoelectrons.

Parameters
ax: `matplotlib.axes.Axes`

Empty or existing axes

reco: ndarray

1D array containing the reconstructed charges obtained by flatteing the 2D array (n_samples, n_pixels)

true: ndarray

1D array containing the true charges obtained by flatteing the 2D array (n_samples, n_pixels)

nbins_x: int

Number of bins for the X axis (reconstructed charges)

nbins_y: int

Number of bins for the Y axis (true charges)

mask: ndarray

A boolean mask (default: None)

weights: ndarray

An array of the same shape of reco and true to weight the charges (default: None)

title: str

Title of the plot (default: None)

tel_type: str

String representation of a ctapipe.instrument.TelescopeDescription instance

Returns
ax: matplotlib.axes.Axes

Axes filled by the plot