plot_cdf
- sherpa.ui.plot_cdf(points, name='x', xlabel='x', replot=False, overplot=False, clearwindow=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:
points (array) – The values used to create the cumulative density function.
name (str, optional) – The label to use as part of the plot title.
xlabel (str, optional) – The label for the X and part of the Y axes.
replot (bool, optional) – Set to
True
to use the values calculated by the last call toplot_cdf
. The default isFalse
.overplot (bool, optional) – If
True
then add the data to an existing plot, otherwise create a new plot. The default isFalse
.clearwindow (bool, 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")