mqr.plot.process.

pdf#

mqr.plot.process.pdf(sample: Sample, ax, nsigma=None, cp=None, bins='auto', show_long_term=False, short_kws=None, long_kws=None)#

Plots a Gaussian PDF for the given sample.

The PDF is truncated at six sigmas on each side.

Parameters:
samplemqr.process.Sample

Sample to plot.

axmatplotlib.axes.Axes

Axes for the plot.

nsigmafloat, optional

How many stddevs of the Gaussian PDF to plot (total). Default 6.

cpfloat, optional

Width of the plot in triples of the standard deviation. Ie. when cp is 2, the width will be 6 standard deviations. Default 2.

binsstr, optional

Passed to numpy.histogram_bin_edges. Can be used to ensure the density corresponds to a histogram on the same plot.

show_long_termbool, optional

Plots two more densities shifted left and right by 1.5 standard deviations.

short_kwsdict, optional

Keyword arguments passed to matplotlib.pyplot.plot for short-term densities.

long_kwsdict, optional

Keyword arguments passed to matplotlib.pyplot.fill_between for long-term densities.

Examples

See example in mqr.plot.process.