Skip to content

Commit 8ebd1d9

Browse files
Fix: Grid not showing in altair if both draw_structure and draw_agents are called (#2817)
1 parent 47eff74 commit 8ebd1d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mesa/visualization/solara_viz.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ def SpaceRendererComponent(
319319
final_chart = (
320320
spatial_charts_list[0]
321321
if len(spatial_charts_list) == 1
322-
else alt.layer(*spatial_charts_list)
322+
else alt.layer(*spatial_charts_list).resolve_axis(
323+
x="independent", y="independent"
324+
)
323325
)
324326

325327
if final_chart is None:

0 commit comments

Comments
 (0)