lib.samples.plotting.plot_samples_1d

lib.samples.plotting.plot_samples_1d(ax, samples, parameter, normalize='max', method='gaussian_kde', bins=60, **kwargs)

Plot 1D samples for parameter.

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

  • samples (Samples) – Samples to plot.

  • parameter (Parameter, ParamName) – Parameter to plot samples for.

  • 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).

  • method (string) –

    Method to interpolate samples on mesh, either:

    • ’gaussian_kde’: Gaussian kernel density estimation, based on scipy.stats.gaussian_kde

    • ’cic’ : Cloud-in-Cell assignment

    • ’histo’ : simple binning.

  • bins (int, default=60) – Number of bins i.e. mesh nodes to use.

  • kwargs (dict) – Arguments for matplotlib.axes.Axes.hist() if method is 'histo', else for matplotlib.axes.Axes.plot().