iq_readout.plots.shots1d.plot_several_pdfs_along_line#
- plot_several_pdfs_along_line(ax, points, classifier, *shots, labels=None, colors=None)[source]#
Plots the projected experimental histogram and the fitted pdf in the given axis
- Parameters:
- ax:
Matplotlib axis
- points: (mean_1, mean_2)
Points defining the line in which to project the data
- shots: [np.ndarray(N, 2), np.ndarray(N, 2), …]
Experimental data for state 0, 1, …
- classifier:
Class with ‘pdf_0’, ‘pdf_1’ and ‘pdf_2’ functions
- labels: (label_0, label_1, …)
Labels for the state 0, 1, … data
- colors: (color_0, color_1, …)
Colors for the state 0, 1, … data
- Returns:
- ax:
Matplotlib axis with the data plotted