arviz.plot_parallel

arviz.plot_parallel(data, var_names=None, coords=None, figsize=None, textsize=None, legend=True, colornd='k', colord='C1', shadend=0.025, ax=None)[source]

Plot parallel coordinates plot showing posterior points with and without divergences.

Described by https://arxiv.org/abs/1709.01449, suggested by Ari Hartikainen

Parameters:
data : obj

Any object that can be converted to an az.InferenceData object Refer to documentation of az.convert_to_dataset for details

var_names : list of variable names

Variables to be plotted, if None all variable are plotted. Can be used to change the order of the plotted variables

coords : mapping, optional

Coordinates of var_names to be plotted. Passed to Dataset.sel

figsize : tuple

Figure size. If None it will be defined automatically.

textsize: float

Text size scaling factor for labels, titles and lines. If None it will be autoscaled based on figsize.

legend : bool

Flag for plotting legend (defaults to True)

colornd : valid matplotlib color

color for non-divergent points. Defaults to ‘k’

colord : valid matplotlib color

color for divergent points. Defaults to ‘C1’

shadend : float

Alpha blending value for non-divergent points, between 0 (invisible) and 1 (opaque). Defaults to .025

ax : axes

Matplotlib axes.

Returns:
ax : matplotlib axes