diff --git a/doc/api/next_api_changes/removals/26918-EW.rst b/doc/api/next_api_changes/removals/26918-EW.rst new file mode 100644 index 000000000000..454f35d5e200 --- /dev/null +++ b/doc/api/next_api_changes/removals/26918-EW.rst @@ -0,0 +1,3 @@ +``Quiver.quiver_doc`` and ``Barbs.barbs_doc`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +... are removed. These are the doc-string and should not be accessible as a named class member. diff --git a/lib/matplotlib/quiver.py b/lib/matplotlib/quiver.py index c8f8ba566106..52f56deb40c0 100644 --- a/lib/matplotlib/quiver.py +++ b/lib/matplotlib/quiver.py @@ -721,8 +721,6 @@ def _h_arrows(self, length): # Mask handling is deferred to the caller, _make_verts. return X, Y - quiver_doc = _api.deprecated("3.7")(property(lambda self: _quiver_doc)) - _barbs_doc = r""" Plot a 2D field of barbs. @@ -1177,5 +1175,3 @@ def set_offsets(self, xy): xy = np.column_stack((x, y)) super().set_offsets(xy) self.stale = True - - barbs_doc = _api.deprecated("3.7")(property(lambda self: _barbs_doc)) diff --git a/lib/matplotlib/quiver.pyi b/lib/matplotlib/quiver.pyi index c673c5dd3aff..2a043a92b4b5 100644 --- a/lib/matplotlib/quiver.pyi +++ b/lib/matplotlib/quiver.pyi @@ -125,8 +125,6 @@ class Quiver(mcollections.PolyCollection): def set_UVC( self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ... ) -> None: ... - @property - def quiver_doc(self) -> str: ... class Barbs(mcollections.PolyCollection): sizes: dict[str, float] @@ -183,5 +181,3 @@ class Barbs(mcollections.PolyCollection): self, U: ArrayLike, V: ArrayLike, C: ArrayLike | None = ... ) -> None: ... def set_offsets(self, xy: ArrayLike) -> None: ... - @property - def barbs_doc(self) -> str: ...