8000 DOC: add deprecation note · matplotlib/matplotlib@d6318a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6318a1

Browse files
committed
DOC: add deprecation note
1 parent 348d1d0 commit d6318a1

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
``arrow`` method is deprecated
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
The `~.axes.Axes.arrow` method is deprecated, and is scheduled to be
5+
removed in Matplotlib 3.9. It only produces properly shaped
6+
arrow heads if the aspect ratio of the axes is 1, and the parameters to
7+
control the size of the arrow heads is in data space, and hence
8+
unintuitive. Users should use `~.axes.Axes.annotate` to create arrows.

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4892,7 +4892,7 @@ def on_changed(collection):
48924892

48934893
return collection
48944894

4895-
@_api.deprecated("3.6", alternative='annotate')
4895+
@_api.deprecated("3.6", alternative='annotate', removal='3.9')
48964896
@docstring.dedent_interpd
48974897
def arrow(self, x, y, dx, dy, **kwargs):
48984898
"""

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def _safe_pyplot_import():
114114
return plt
115115

116116

117+
117118
def register_backend(format, backend, description=None):
118119
"""
119120
Register a backend for saving to a given file format.

0 commit comments

Comments
 (0)
0