Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9d119f7

Browse filesBrowse files
committed
Deprecate quiver_doc and barbs_doc class members
1 parent 4fda5ff commit 9d119f7
Copy full SHA for 9d119f7

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``Quiver.quiver_doc`` and ``Barbs.barbs_doc``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
... are deprecated. These are the doc-string and should not be accessible as
5+
a named class member.

‎lib/matplotlib/quiver.py

Copy file name to clipboardExpand all lines: lib/matplotlib/quiver.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def _h_arrows(self, length):
722722
# Mask handling is deferred to the caller, _make_verts.
723723
return X, Y
724724

725-
quiver_doc = _quiver_doc
725+
quiver_doc = _api.deprecated("3.7")(property(lambda self: _quiver_doc))
726726

727727

728728
_barbs_doc = r"""
@@ -1179,4 +1179,4 @@ def set_offsets(self, xy):
11791179
super().set_offsets(xy)
11801180
self.stale = True
11811181

1182-
barbs_doc = _barbs_doc
1182+
barbs_doc = _api.deprecated("3.7")(property(lambda self: _barbs_doc))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.