Provides quick visualization methods for simulation sanity checks. All plot methods display inline by default and return the matplotlib Figure for further customization or saving.
The group_by argument is auto-detected: it can be either a config parameter (from your sweep, e.g., ‘maxGrowth’) or an export variable (from simulation output, e.g., ‘FIRE_REGIME’).
Parameters
Name
Type
Description
Default
variable
str
Variable name to plot.
required
group_by
str
Variable to group by - can be either: - A config parameter (from your sweep, e.g., ‘maxGrowth’) - An export variable (from simulation, e.g., ‘FIRE_REGIME’)
If provided, creates bar chart at that step; else time series.
None
session_id
str | None
Filter to specific session.
None
title
str | None
Plot title.
None
show
bool
If True, display plot inline.
True
show_sql
bool
If True, print the SQL query for copy/paste modification.
False
**params
Any
Additional parameter filters.
{}
Returns
Name
Type
Description
Any
matplotlib Figure.
Raises
Name
Type
Description
ValueError
If variable or group_by not found, or no data.
Note
group_by works best with discrete values. Continuous values will create one group per unique value, which may be unwieldy. For continuous variables, consider binning in a custom SQL query.