Skip to content

Commit 2b43544

Browse files
committed
Add visualization element explanation
1 parent d79f74e commit 2b43544

File tree

1 file changed

+5
-1
lines changed
  • examples/boltzmann_wealth_model_experimental

1 file changed

+5
-1
lines changed

examples/boltzmann_wealth_model_experimental/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def agent_portrayal(agent):
2727
# Create initial model instance
2828
model1 = BoltzmannWealthModel(50, 10, 10)
2929

30-
# Create visualization elements
30+
# Create visualization elements. The visualization elements are solara components
31+
# that receive the model instance as a "prop" and display it in a certain way.
32+
# Under the hood these are just functions that receive the model instance.
33+
# You can also author your own visualization elements, they just have to return
34+
# a valid solara component or an ipywidget.
3135
SpaceGraph = make_space_matplotlib(agent_portrayal)
3236
GiniPlot = make_plot_measure("Gini")
3337

0 commit comments

Comments
 (0)