diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 8a8b2e2db509..0c893aac3aaf 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -586,9 +586,7 @@ def draw(self, renderer): # docstring inherited if not self.get_visible(): return - - with cbook._setattr_cm(self, _dash_pattern=(self._dash_pattern)), \ - self._bind_draw_path_function(renderer) as draw_path: + with self._bind_draw_path_function(renderer) as draw_path: path = self.get_path() transform = self.get_transform() tpath = transform.transform_path_non_affine(path)