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:
  • idata (InferenceData) – arviz.InferenceData object.

  • bins (int | Sequence[int]) – 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_factor (float | Sequence[float]) – 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.

  • params (str | Sequence[str] | None) – One or more parameters to be plotted.

  • plot_range (Sequence[float] | None) – A list where each parameter is either a length 2 tuple containing lower and upper bounds.

  • axes_scale (str | Sequence[str]) – Scale to use for each parameter dimension. If only one scale is given, use that for all dimensions. Scale must be 'linear' or 'log'.

  • levels (float | Sequence[float] | None) – Credible levels to plot. If None, use 0.683 and 0.95.

  • titles (str | Sequence[str] | None) – Titles to be displayed in the diagonal.

  • labels (str | Sequence[str] | None) – Labels to be displayed in axis label.

  • color (str) – Color to use for the plot.

  • divergences (bool) – Whether to mark diverging samples.

Returns:

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:
  • idata (InferenceData) – arviz.InferenceData object.

  • params (str | Sequence[str] | None) – One or more parameters to be plotted.

  • axes_scale (str | Sequence[str] | None) – Scale to use for each parameter dimension. If only one scale is given, use that for all dimensions. Scale must be 'linear' or 'log'.

  • labels (str | Sequence[str] | None) – Labels to be displayed in y-axis label.

Returns:

The figure containing the trace plot.