Closed JensKanstrupLarsen closed 4 years ago
It seems like adding a line graph without adding a slider afterwards results in a segfault.
This code should display the issue:
from agents import * miner_model = Model("Graph issue", 100, 100) miner_model.line_chart("foo", (42, 42, 42)) # Uncomment this line to remove the error #miner_model.add_slider("bar", 1, 1, 1) run(miner_model)
Changing the size from miner_model = Model("Graph issue", 100, 100) to miner_model = Model("Graph issue", 50, 50) also fixes it (without needing to add the slider).
miner_model = Model("Graph issue", 100, 100)
miner_model = Model("Graph issue", 50, 50)
I'm not sure what to make of this.
It seems like adding a line graph without adding a slider afterwards results in a segfault.
This code should display the issue: