diff --git a/docs/tutorials/visualization_tutorial.ipynb b/docs/tutorials/visualization_tutorial.ipynb index c40b0d1b165..ba8d7a922d2 100644 --- a/docs/tutorials/visualization_tutorial.ipynb +++ b/docs/tutorials/visualization_tutorial.ipynb @@ -208,7 +208,7 @@ " # plt.figure(), for thread safety purpose\n", " fig = Figure()\n", " ax = fig.subplots()\n", - " wealth_vals = [agent.wealth for agent in model.agents]\n", + " wealth_vals = [agent.wealth for agent in model.schedule.agents]\n", " # Note: you have to use Matplotlib's OOP API instead of plt.hist\n", " # because plt.hist is not thread-safe.\n", " ax.hist(wealth_vals, bins=10)\n",