Skip to content

Commit 6b8146a

Browse files
rhtEwoutH
authored andcommitted
fix: Render agent marker radius correctly
1 parent 3dba2a4 commit 6b8146a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesa/experimental/components/matplotlib.py

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

0 commit comments

Comments
 (0)