phys_581.plotting

phys_581.plotting#

Tools for plotting.

Attributes#

sp

Functions#

corner_plot(a[, C, labels, levels, sigmas, axes, fig, ...])

Make a corner-plot of the variables a.

Module Contents#

sp#
corner_plot(a, C=None, labels=None, levels=None, sigmas=(1, 2, 3, 4), axes=None, fig=None, Nxy=(100, 101), contour_kw=None)#

Make a corner-plot of the variables a.

Parameters:
  • a ([float] or [uncertainties.ufloat]) – Parameter values. These can be ufloat values from the uncertainties package.

  • C (array-like, optional) – Covariance matrix. If a is a list of ufloat`s, then the correlation matrix will be computed with `C = uncertainties.covariance_matrix(a) if not provided.

  • labels ([str], optional) – Labels for plot. If not provided, then if a._fields exists, these will be used, otherwise, they will be labelled a_n.

  • levels (array-like, optional) – Contours to draw. If not, then we will assume the variables are gaussian and use the nu=2 degree-of-freedom chi square distribution to convert from sigmas.

  • sigmas (array-like, optional) – If provided and levels is None, then use to generate levels.

  • axes (array of Axes, optional) – If provided, then the we will draw in these.

  • Nxy ((int, int)) – Size of grid for contour plot.

  • contour_kw (dict, optional) – Additional arguments for matplotlib.axes.Axes.contour() like linestyles, and colors.