-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jupyter_viz: Implement multiline plot #1941
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1941 +/- ##
==========================================
- Coverage 79.92% 79.31% -0.62%
==========================================
Files 15 15
Lines 1270 1276 +6
Branches 277 282 +5
==========================================
- Hits 1015 1012 -3
- Misses 216 225 +9
Partials 39 39 ☔ View full report in Codecov by Sentry. |
8b90487
to
becd723
Compare
This looks very useful! |
This is still in the experimental space right? If so, go ahead! |
Fixes projectmesa#1821. This provides a declarative interface to plotting multiple lines in 1 chart. Example usage for virus on network ```python 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, ```
Rebased. |
Great thank you! |
Fixes #1821.
This provides a declarative interface to plotting multiple lines in 1 chart.
Example usage for virus on network