BaseDistribution.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:
- BaseDistribution.plot
- BaseDistribution.plot_pdf
- BaseDistribution.plot_sample
- BaseDistribution.plot_gaussian
- BaseDistribution.plot_uncertainties
x
(array, optional, default=None): the numpy array at which to sample the value on the x-axis. Ifunit
is not None, the value ofx
are assumed to be in the original units BaseDistribution.unit, notunit
. If not provided or None,x
will be based to cover the 99.9% of all distributions (see BaseDistribution.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 BaseDistribution.wrap. If not provided or None, will use the value from BaseDistribution.wrap_at. Note: wrapping is computed before changing units, sowrap_at
must be provided according to BaseDistribution.unit notunit
.label
(string, optional, default=None): override the label on the x-axis. If not provided or None, will use BaseDistribution.label. Will only be used ifshow=True
. Unit will automatically be appended. Will be ignored ifxlabel
is 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_at
or BaseDistribution.wrap_at, the resulting line will break when wrapping, resulting in using multiple colors. Sendingcolor
as a keyword argument will prevent this matplotlib behavior. Calling this through BaseDistribution.plot withplot_gaussian=True
defaults to sendingcolor='blue'
through theplot_gaussian_kwargs
argument.
- the return from plt.plot
- ImportError: if matplotlib dependency is not met.