Skip to content

Commit

Permalink
Update matplotlib.py (projectmesa#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel authored Oct 22, 2024
1 parent 42043d3 commit f3ac06d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesa/visualization/components/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def SpaceMatplotlib(
# https://stackoverflow.com/questions/67524641/convert-multiple-isinstance-checks-to-structural-pattern-matching
match space:
case mesa.space._Grid():
_draw_grid(space, space_ax, agent_portrayal, propertylayer_portrayal, model)
case mesa.space.ContinuousSpace():
_draw_continuous_space(space, space_ax, agent_portrayal, model)
case mesa.space.NetworkGrid():
_draw_network_grid(space, space_ax, agent_portrayal)
Expand Down

0 comments on commit f3ac06d

Please sign in to comment.