Observation - plots & monitors
A model isn't useful unless you can see what's happening. Two ways:
Metrics
A metric is a named expression evaluated each tick over the whole model. They live in model.metrics and act as the data source for both plots and monitors.
sheep_count: count_agents_of_type('sheep')
grass_total: sum_patches('grass')
Plots
A plot charts one or more metrics over time. Each line is called a pen; you choose its colour. Plots live in the Observation panel on the Interface tab.
Monitors
A monitor shows the current value of one metric, big and live. Use them for single-number dashboards (population, total energy, ...).
Exporting
Open the model in the library and use the ⬇ download icon on the file row to grab the full JSON. Run-time metric history can later be exported as CSV (planned).
Everything described here works in the live editor. Open Stigmery and follow along.
Open the app →