plot_roc_gamma

lstchain.visualization.plot_dl2.plot_roc_gamma(dl2_data, energy_bins=None, ax=None, **kwargs)

Plot a ROC curve of the gammaness classification from a pandas dataframe. If there are more than two mc_type, all events with mc_type!=gamma_label are considered background.

Parameters:
dl2_data: `pandas.DataFrame`

Reconstructed MC events at DL2+ level. must include the columns mc_type, gammaness and mc_energy.

energy_bins: None or int or `numpy.ndarray`

if None, all energy are stacked else, one roc curve per energy bin is done on the same plot

ax: `matplotlib.pyplot.axis`
kwargs: args for `ctaplot.plot_roc_curve_gammaness`
Returns:
ax: matplotlib.pyplot.axis