From 2cc3e8b7bfba926cee5b28d1ac2a4f735e911dea Mon Sep 17 00:00:00 2001 From: rht Date: Fri, 23 Aug 2024 06:54:05 -0400 Subject: [PATCH] SolaraViz: Remove card title They are soon going to be part of one umbrella of "measures", instead of distinctly named ones. If a user wants to add a title, they can do it inside Matplotlib/Altair. --- mesa/visualization/solara_viz.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mesa/visualization/solara_viz.py b/mesa/visualization/solara_viz.py index 6ec33231cae..2d34d5431ed 100644 --- a/mesa/visualization/solara_viz.py +++ b/mesa/visualization/solara_viz.py @@ -58,7 +58,6 @@ def Card( style_=f"background-color: {color}; width: 100%; height: 100%" ) as main: if "Space" in layout_type: - rv.CardTitle(children=["Space"]) if space_drawer == "default": # draw with the default implementation components_matplotlib.SpaceMatplotlib( @@ -72,7 +71,6 @@ def Card( # if specified, draw agent space with an alternate renderer space_drawer(model, agent_portrayal, dependencies=dependencies) elif "Measure" in layout_type: - rv.CardTitle(children=["Measure"]) measure = measures[layout_type["Measure"]] if callable(measure): # Is a custom object