Skip to content

Commit d2348e2

Browse files
rhttpike3
authored andcommitted
fix: Render agent marker radius correctly
1 parent 07ac1e2 commit d2348e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesa/visualization/components/matplotlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def portray(g):
4848
out = {"x": x, "y": y}
4949
# This is the default value for the marker size, which auto-scales
5050
# according to the grid area.
51-
out["s"] = (180 / min(g.width, g.height)) ** 2
51+
out["s"] = (180 / max(g.width, g.height)) ** 2
5252
if len(s) > 0:
5353
out["s"] = s
5454
if len(c) > 0:

0 commit comments

Comments
 (0)