elisa.plot.misc#

Miscellaneous plotting.

plot_corner(idata: InferenceData, bins: int | Sequence[int] = 40, hist_bin_factor: float | Sequence[float] = 1.5, params: str | Sequence[str] | None = None, plot_range: Sequence[float] | None = None, axes_scale: str | Sequence[str] = 'linear', levels: float | Sequence[float] | None = None, titles: str | Sequence[str] | None = None, labels: str | Sequence[str] | None = None, color: str = None, divergences: bool = True)[source]#

Plot posterior corner plot.

Parameters:
idataaz.InferenceData

arviz.InferenceData object.

binsint or list of int, optional

The number of bins to use in histograms, either as a fixed value for all dimensions, or as a list of integers for each dimension. The default is 40.

hist_bin_factorfloat or list of float, optional

This is a factor (or list of factors, one for each dimension) that will multiply the bin specifications when making the 1-D histograms. This is generally used to increase the number of bins in the 1-D plots to provide more resolution. The default is 1.5.

paramsstr or list of str, optional

One or more parameters to be plotted.

plot_rangefloat, or list of float, optional

A list where each parameter is either a length 2 tuple containing lower and upper bounds.

axes_scalestr, or list of str, optional

Scale to use for each parameter dimension. If only one scale is given, use that for all dimensions. Scale must be 'linear' or 'log'.

levelsfloat, or list of float, optional

Credible levels to plot. If None, use 0.683 and 0.95.

titlesstr, or list of str, optional

Titles to be displayed in the diagonal.

labelsstr, or list of str, optional

Labels to be displayed in axis label.

colorstr, optional

Color to use for the plot.

divergencesbool, optional

Whether to mark diverging samples.

Returns:
figplt.Figure

The figure containing the corner plot.

plot_trace(idata: InferenceData, params: str | Sequence[str] | None = None, axes_scale: str | Sequence[str] | None = None, labels: str | Sequence[str] | None = None) Figure[source]#

Plot posterior sampling trace.

Parameters:
idataaz.InferenceData

arviz.InferenceData object.

paramsstr, or list of str, optional

One or more parameters to be plotted.

axes_scalestr, or list of str, optional

Scale to use for each parameter dimension. If only one scale is given, use that for all dimensions. Scale must be 'linear' or 'log'.

labelsstr, or list of str, optional

Labels to be displayed in y-axis label.

Returns:
figplt.Figure

The figure containing the trace plot.