BaseMultivariateSliceDistribution.plot_gaussian (function)
def plot_gaussian(self, x=None, unit=None, wrap_at=None, label=None, xlabel=None, show=False, **kwargs)
Plot the gaussian distribution that would result from calling BaseMultivariateSliceDistribution.to_gaussian with the same arguments.
Note that for distributions in which BaseMultivariateSliceDistribution.to_gaussian calls BaseMultivariateSliceDistribution.to_histogram under-the-hood, this could result in slightly different distributions for each call.
See also:
- BaseMultivariateSliceDistribution.plot
- BaseMultivariateSliceDistribution.plot_sample
- BaseMultivariateSliceDistribution.plot_pdf
- BaseMultivariateSliceDistribution.plot_cdf
- BaseMultivariateSliceDistribution.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 BaseMultivariateSliceDistribution.unit, notunit. If not provided or None,xwill be based to cover the 99.9% of all distributions (see BaseMultivariateSliceDistribution.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 BaseMultivariateSliceDistribution.wrap. If not provided or None, will use the value from BaseMultivariateSliceDistribution.wrap_at. Note: wrapping is computed before changing units, sowrap_atmust be provided according to BaseMultivariateSliceDistribution.unit notunit.label(string, optional, default=None): override the label on the x-axis. If not provided or None, will use BaseMultivariateSliceDistribution.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: keyword arguments forsigma,N,bins,rangewill be passed on to BaseMultivariateSliceDistribution.to_gaussian (must be accepted by the given distribution type). All other keyword arguments will be passed on to Gaussian.plot_pdf on the resulting distribution.
Returns
- the return from plt.plot
Raises
- ImportError: if matplotlib dependency is not met.