mesa
mesa copied to clipboard
Multiline plot is not yet documented
What's the problem this feature will solve? #1941 was merged without documentation because it modified an internal function. It should have public documentation.
Additional context Example usage for virus on network
page = JupyterViz(
VirusOnNetwork,
model_params,
measures=[
# This is subject to change, as it could have been
# {"Infected": {"color": "tab:red"}}, but let's keep it simple.
{"Infected": "tab:red", "Susceptible": "tab:green", "Resistant": "tab:gray"},
# Alternatively, if you don't want to manually specify colors:
# ["Infected", "Susceptible", "Resistant"],
make_text(get_resistant_susceptible_ratio),
],
name="Virus Model",
agent_portrayal=agent_portrayal,
)
It should look like this.