lib.samples.plotting.plot_normal_1d

lib.samples.plotting.plot_normal_1d(ax, mean=0.0, covariance=1.0, lim=None, normalize='max', **kwargs)

Plot 1D normal distribution.

Parameters
  • ax (matplotlib.axes.Axes) – Axes where to plot distribution.

  • mean (float, default=0) – Distribution mean.

  • covariance (float, default=1) – Distribution covariance.

  • lim (tuple, default=None) – x-limits. Defaults to current ax limits.

  • normalize (string, default='max') – How to normalize 1D distribution. Use ‘max’ to set maximum at 1 (most common), else distribution will be normalized as probability density (integral of 1).

  • kwargs (dict) – Arguments for matplotlib.axes.Axes.plot().