Skip to content

Commit

Permalink
Add Polygon and PatchCollection imports for visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-Chhoker committed Jan 10, 2025
1 parent d7c570a commit f17e99d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesa/visualization/mpl_space_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
from collections.abc import Callable
from typing import Any

from matplotlib.patches import Polygon
import networkx as nx
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.axes import Axes
from matplotlib.cm import ScalarMappable
from matplotlib.collections import LineCollection
from matplotlib.collections import LineCollection, PatchCollection
from matplotlib.colors import LinearSegmentedColormap, Normalize, to_rgba

import mesa
Expand Down

0 comments on commit f17e99d

Please sign in to comment.