iq_readout.plots.shots1d.plot_pdf_along_line#

plot_pdf_along_line(ax, points, shots, pdf_func, label=None, color=None)[source]#

Plots the projection of the experimental histogram and the fitted pdf to the line defined by the points in the given axes

Parameters:
ax:

Matplotlib axis

points: (mean_1, mean_2)

Points defining the line in which to project the data

shots: np.ndarray(N, 2)

Experimental data

pdf_func:

2D probability density function for the data

label:

Label for the data

color:

Color for the data

Returns:
ax:

Matplotlib axis with the data plotted