Skip to content

Commit

Permalink
fix: Render agent marker radius correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rht authored and tpike3 committed Jul 20, 2024
1 parent 07ac1e2 commit d2348e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/visualization/components/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d2348e2

Please sign in to comment.