MMMPlotSuite.contributions_over_time#

MMMPlotSuite.contributions_over_time(var, hdi_prob=0.85)[source]#

Plot the time-series contributions for each variable in var.

showing the median and the credible interval (default 85%). Creates one subplot per combination of non-(chain/draw/date) dimensions and places all variables on the same subplot.

Parameters:
varlist of str

A list of variable names to plot from the posterior.

hdi_prob: float, optional

The probability mass of the highest density interval to be displayed. Default is 0.85.

Returns:
figmatplotlib.figure.Figure

The Figure object containing the subplots.

axesnp.ndarray of matplotlib.axes.Axes

Array of Axes objects corresponding to each subplot row.

Raises:
ValueError

If hdi_prob is not between 0 and 1, instructing the user to provide a valid value.