iq_readout.plots.shots1d.plot_two_pdfs_projected#

plot_two_pdfs_projected(ax, classifier, shots_0, shots_1, labels=['0', '1'], colors=['orange', 'blue'])[source]#

Plots the projected experimental histogram and the fitted pdf in the given projection axis. Note: it can only be used for (two-state) linear classifiers.

Parameters:
ax

Matplotlib axis.

shots_0: np.ndarray(N, 2)

Experimental data for state 0.

shots_1: np.ndarray(N, 2)

Experimental data for state 1.

classifier

Class with ‘project’, ‘pdf_0_projected’ and ‘pdf_1_projected’ functions.

labels: (label_0, label_1)

Labels for the state 0 and state 1 data.

colors: (color_0, color_1)

Colors for the state 0 and state 1 data.

Returns:
ax:

Matplotlib axis with the data plotted.