diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py index 27b3789a3105..e968a0771598 100644 --- a/lib/matplotlib/collections.py +++ b/lib/matplotlib/collections.py @@ -1444,6 +1444,16 @@ def __init__( verts = self._make_verts(t, f1, f2, where) super().__init__(verts, **kwargs) + def set_verts(self, verts, closed=True): + super().set_verts(verts, closed=closed) + + # Respect global path simplification setting + simplify = bool(mpl.rcParams.get("path.simplify", True)) + for path in self._paths: + path.should_simplify = simplify + + set_paths = set_verts + @staticmethod def _f_dir_from_t(t_direction): """The direction that is other than `t_direction`."""