Skip to content

Commit

Permalink
update make_plot_measure method name from mesa viz
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-boyu committed Nov 24, 2024
1 parent 0717240 commit 7ffb16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorials/intro_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"from shapely.geometry import Point\n",
"\n",
"import mesa\n",
"from mesa.visualization import SolaraViz, make_plot_measure\n",
"from mesa.visualization import SolaraViz, make_plot_component\n",
"import mesa_geo as mg\n",
"from mesa_geo.visualization import make_geospace_leaflet"
]
Expand Down Expand Up @@ -1067,8 +1067,8 @@
" model_params=model_params,\n",
" components=[\n",
" make_geospace_leaflet(SIR_draw, zoom=12, scroll_wheel_zoom=False),\n",
" make_plot_measure([\"infected\", \"susceptible\", \"recovered\", \"dead\"]),\n",
" make_plot_measure([\"safe\", \"hotspot\"]),\n",
" make_plot_component([\"infected\", \"susceptible\", \"recovered\", \"dead\"]),\n",
" make_plot_component([\"safe\", \"hotspot\"]),\n",
" ],\n",
")\n",
"# This is required to render the visualization in the Jupyter notebook\n",
Expand Down

0 comments on commit 7ffb16a

Please sign in to comment.