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:
- simulation
pd.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_plot
listofstr, optional A list of the variables to plot. If not provided, all variables in the simulation DataFrame will be plotted.
- ci
float, optional The confidence interval to plot, between 0 and 1. If not provided, only the mean will be plotted.
- n_cols
int, optional The number of columns of plots to show. If not provided, the minimum of (4, number of columns in df) will be used.
- cmap
strorColormap, optional The color map to use for the data.
- fill_color
str, optional The color to use to fill the confidence interval.
- figsize
tupleofint The size of the figure in inches. Default is (12, 8).
- dpi
int The resolution of the figure in dots per inch. Default is 100.
- simulation
- Returns:
FigureThe Matplotlib Figure object containing the plots.