Skip to content

Commit c20d251

Browse files
authored
Fix missing variable g in the tutorial (#2849)
A minor fix of an undefined variable, g, under the AgentSet tutorial in the documentation.
1 parent fed9001 commit c20d251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/3_agentset.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
"data = model.datacollector.get_agent_vars_dataframe()\n",
278278
"# assign histogram colors\n",
279279
"palette = {\"Green\": \"green\", \"Blue\": \"blue\", \"Mixed\": \"purple\"}\n",
280-
"sns.histplot(data=data, x=\"Wealth\", hue=\"Ethnicity\", discrete=True, palette=palette)\n",
280+
"g = sns.histplot(data=data, x=\"Wealth\", hue=\"Ethnicity\", discrete=True, palette=palette)\n",
281281
"g.set(title=\"Wealth distribution\", xlabel=\"Wealth\", ylabel=\"number of agents\");"
282282
]
283283
},

0 commit comments

Comments
 (0)