diff --git a/examples/boltzmann_wealth_model_experimental/app.py b/examples/boltzmann_wealth_model_experimental/app.py index 7a7ac07a..199b3a1a 100644 --- a/examples/boltzmann_wealth_model_experimental/app.py +++ b/examples/boltzmann_wealth_model_experimental/app.py @@ -33,9 +33,9 @@ def agent_portrayal(agent): # 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. +# Under the hood these are just classes that receive the model instance. +# You can also author your own visualization elements, which can also be functions +# that receive the model instance and return a valid solara component. SpaceGraph = make_space_matplotlib(agent_portrayal) GiniPlot = make_plot_measure("Gini") diff --git a/examples/conways_game_of_life_fast/app.py b/examples/conways_game_of_life_fast/app.py index 6dbe7fee..568f0641 100644 --- a/examples/conways_game_of_life_fast/app.py +++ b/examples/conways_game_of_life_fast/app.py @@ -22,12 +22,13 @@ gol = GameOfLifeModel(10, 10) -AlivePlot = make_plot_measure("Cells alive", "Fraction alive") +TotalAlivePlot = make_plot_measure("Cells alive") +FractionAlivePlot = make_plot_measure("Fraction alive") page = SolaraViz( gol, - components=[AlivePlot], + components=[TotalAlivePlot, FractionAlivePlot], model_params=model_params, name="Game of Life Model", )