gEconpy.plotting.plot_simulation#

gEconpy.plotting.plot_simulation(simulation, vars_to_plot=None, ci=None, n_cols=None, cmap=None, fill_color=None, figsize=(12, 8), dpi=100)#

Plot a simulation of multiple variables.

Parameters:
simulationpd.DataFrame

A DataFrame with one or more columns containing the data to plot. The columns should be the variables to plot and the index should be the time.

vars_to_plotlist of str, optional

A list of the variables to plot. If not provided, all variables in the simulation DataFrame will be plotted.

cifloat, optional

The confidence interval to plot, between 0 and 1. If not provided, only the mean will be plotted.

n_colsint, optional

The number of columns of plots to show. If not provided, the minimum of (4, number of columns in df) will be used.

cmapstr or Colormap, optional

The color map to use for the data.

fill_colorstr, optional

The color to use to fill the confidence interval.

figsizetuple of int

The size of the figure in inches. Default is (12, 8).

dpiint

The resolution of the figure in dots per inch. Default is 100.

Returns:
Figure

The Matplotlib Figure object containing the plots.