Skip to content

Commit 3d19edc

Browse files
authored
docs: Fix Visualization Tutorial (main branch) (#2271)
The scheduler was removed from the example model used, so the docs started failing.
1 parent 94bef06 commit 3d19edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/visualization_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
" # plt.figure(), for thread safety purpose\n",
209209
" fig = Figure()\n",
210210
" ax = fig.subplots()\n",
211-
" wealth_vals = [agent.wealth for agent in model.schedule.agents]\n",
211+
" wealth_vals = [agent.wealth for agent in model.agents]\n",
212212
" # Note: you have to use Matplotlib's OOP API instead of plt.hist\n",
213213
" # because plt.hist is not thread-safe.\n",
214214
" ax.hist(wealth_vals, bins=10)\n",

0 commit comments

Comments
 (0)