From 777f42e8f8e59b196251a318f2fa1738325ce8f8 Mon Sep 17 00:00:00 2001 From: rht Date: Thu, 8 Feb 2024 03:30:07 -0500 Subject: [PATCH] Altair viz: Hardcode width/height consistent with Card width/height --- mesa/experimental/components/altair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesa/experimental/components/altair.py b/mesa/experimental/components/altair.py index bd220019f0e..2b08485b848 100644 --- a/mesa/experimental/components/altair.py +++ b/mesa/experimental/components/altair.py @@ -53,7 +53,7 @@ def portray(g): alt.Data(values=all_agent_data), encoding=alt.Encoding(**encoding_dict) ) .mark_point(filled=True) - .properties(width=space.width * 15, height=space.height * 15) + .properties(width=280, height=280) # .configure_view(strokeOpacity=0) # hide grid/chart lines )