plot_cdf

sherpa.ui.plot_cdf(points: ArrayType, name: str = 'x', xlabel: str = 'x', replot: bool = False, overplot: bool = False, clearwindow: bool = True, **kwargs) None

Plot the cumulative density function of an array of values.

Create and plot the cumulative density function (CDF) of the input array. Median and upper- and lower- quartiles are marked on the plot.

Parameters:
pointsarray

The values used to create the cumulative density function.

namestr, optional

The label to use as part of the plot title.

xlabelstr, optional

The label for the X and part of the Y axes.

replotbool, optional

Set to True to use the values calculated by the last call to plot_cdf. The default is False.

overplotbool, optional

If True then add the data to an existing plot, otherwise create a new plot. The default is False.

clearwindowbool, optional

Should the existing plot area be cleared before creating this new plot (e.g. for multi-panel plots)?

See also

get_cdf_plot

Return the data used to plot the last CDF.

get_draws

Run the pyBLoCXS MCMC algorithm.

plot_pdf

Plot the probability density function of an array.

plot_scatter

Create a scatter plot.

Examples

>>> mu, sigma, n = 100, 15, 500
>>> x = np.random.normal(loc=mu, scale=sigma, size=n)
>>> plot_cdf(x)
>>> plot_cdf(x, xlabel="x pos", name="Simulations")