Skip to content

Commit

Permalink
Add visualization element explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvince committed Sep 5, 2024
1 parent d79f74e commit 2b43544
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/boltzmann_wealth_model_experimental/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def agent_portrayal(agent):
# Create initial model instance
model1 = BoltzmannWealthModel(50, 10, 10)

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

Expand Down

0 comments on commit 2b43544

Please sign in to comment.