Skip to content

Commit 9b61b47

Browse files
authored
Merge pull request matplotlib#30655 from rcomer/cs-draw
simplify ContourSet.draw
2 parents de229cd + a72f03b commit 9b61b47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,8 @@ def draw(self, renderer):
12681268
if edgecolors.size == 0:
12691269
edgecolors = ("none",)
12701270
for idx in range(n_paths):
1271-
with cbook._setattr_cm(self, _paths=[paths[idx]]), self._cm_set(
1271+
with self._cm_set(
1272+
paths=[paths[idx]],
12721273
hatch=self.hatches[idx % len(self.hatches)],
12731274
array=[self.get_array()[idx]],
12741275
linewidths=[self.get_linewidths()[idx % len(self.get_linewidths())]],

0 commit comments

Comments
 (0)