diff --git a/mesa/visualization/components/matplotlib.py b/mesa/visualization/components/matplotlib.py index 6284944aa7f..aadfa206472 100644 --- a/mesa/visualization/components/matplotlib.py +++ b/mesa/visualization/components/matplotlib.py @@ -48,7 +48,7 @@ def portray(g): out = {"x": x, "y": y} # This is the default value for the marker size, which auto-scales # according to the grid area. - out["s"] = (180 / min(g.width, g.height)) ** 2 + out["s"] = (180 / max(g.width, g.height)) ** 2 if len(s) > 0: out["s"] = s if len(c) > 0: