BaseDistribution.plot_uncertainties (function)


def plot_uncertainties(self, sigma=1, unit=None, show=False, **kwargs)

Plot uncertainties as vertical lines and as a latex representation in the axes title.

See also:

Arguments

  • sigma (int, optional, default=1): sigma to use for uncertainties, passed directly to BaseDistribution.uncertainties
  • unit (astropy.unit, optional, default=None): units to use along the x-axis. Astropy must be installed.
  • show (bool, optional, default=True): whether to show the resulting matplotlib figure.
  • **kwargs: keyword arguments for will be passed on to plt.axvline.

Returns

  • the return from the plt.axvline calls.

Raises

  • ImportError: if matplotlib dependency is not met.