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
az.InferenceData arviz.InferenceData object.
- bins
intorlistofint, 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_factor
floatorlistoffloat, 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.
- params
strorlistofstr, optional One or more parameters to be plotted.
- plot_range
float, orlistoffloat, optional A list where each parameter is either a length 2 tuple containing lower and upper bounds.
- axes_scale
str, orlistofstr, 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'.- levels
float, orlistoffloat, optional Credible levels to plot. If None, use 0.683 and 0.95.
- titles
str, orlistofstr, optional Titles to be displayed in the diagonal.
- labels
str, orlistofstr, optional Labels to be displayed in axis label.
- color
str, optional Color to use for the plot.
- divergencesbool, optional
Whether to mark diverging samples.
- idata
- Returns:
- fig
plt.Figure The figure containing the corner plot.
- fig
- 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
az.InferenceData arviz.InferenceData object.
- params
str, orlistofstr, optional One or more parameters to be plotted.
- axes_scale
str, orlistofstr, 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'.- labels
str, orlistofstr, optional Labels to be displayed in y-axis label.
- idata
- Returns:
- fig
plt.Figure The figure containing the trace plot.
- fig