BaseUnivariateDistribution.plot_cdf (function)
def plot_cdf(self, x=None, unit=None, wrap_at=None, label=None, xlabel=None, show=False, **kwargs)
Plot the pdf function. Requires matplotlib to be installed.
See also:
- BaseUnivariateDistribution.plot
- BaseUnivariateDistribution.plot_pdf
- BaseUnivariateDistribution.plot_sample
- BaseUnivariateDistribution.plot_gaussian
- BaseUnivariateDistribution.plot_uncertainties
Arguments
x(array, optional, default=None): the numpy array at which to sample the value on the x-axis. Ifunitis not None, the value ofxare assumed to be in the original units BaseUnivariateDistribution.unit, notunit. If not provided or None,xwill be based to cover the 99.9% of all distributions (see BaseUnivariateDistribution.interval) with 1000 points and 10% padding.unit(astropy.unit, optional, default=None): units to use along the x-axis. Astropy must be installed.wrap_at(float, None, or False, optional, default=None): value to use for wrapping. See BaseUnivariateDistribution.wrap. If not provided or None, will use the value from BaseUnivariateDistribution.wrap_at. Note: wrapping is computed before changing units, sowrap_atmust be provided according to BaseUnivariateDistribution.unit notunit.label(string, optional, default=None): override the label on the x-axis. If not provided or None, will use BaseUnivariateDistribution.label. Will only be used ifshow=True. Unit will automatically be appended. Will be ignored ifxlabelis provided.xlabel(string, optional, default=None): override the label on the x-axis without appending the unit. Will overridelabel.show(bool, optional, default=True): whether to show the resulting matplotlib figure.**kwargs: all keyword arguments will be passed on to plt.plot. Note: if wrapping is enabled, either viawrap_ator BaseUnivariateDistribution.wrap_at, the resulting line will break when wrapping, resulting in using multiple colors. Sendingcoloras a keyword argument will prevent this matplotlib behavior. Calling this through BaseUnivariateDistribution.plot withplot_gaussian=Truedefaults to sendingcolor='blue'through theplot_gaussian_kwargsargument.
Returns
- the return from plt.plot
Raises
- ImportError: if matplotlib dependency is not met.