iq_readout.plots.shots1d.plot_hist_projected_shots#
- plot_hist_projected_shots(ax, *projected_shots, labels=None, colors=None, bins=50, rescale_factor=1)[source]#
Plots the histogram of the experimental projected shots. For linear classifiers, the projected shots can be obtained from
classifier.project(...).- Parameters:
- ax:
Matplotlib axis
- projected_shots: [np.ndarray(N), np.ndarray(N), …]
Experimental projected data for state 0, 1, …
- labels: (label_0, label_1, …)
Labels for the state 0, 1, … data.
- colors: (color_0, color_1, …)
Colors for the state 0, 1, … data.
- bins:
Number of bins in the plot.
- rescale_factor:
Factor for multiplying the histogram bar heights. By default
1, so no rescaling. This is useful for three-state classifiers.
- Returns:
- ax:
Matplotlib axis with the data plotted