Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67ebfc9

Browse files
Merge pull request #31212 from rcomer/quiver-mid
DOC: discourage pivot='mid' for quiver
2 parents f19aaf1 + b74e9b8 commit 67ebfc9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/matplotlib/quiver.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@
113113
Note: inverting a data axis will correspondingly invert the
114114
arrows only with ``angles='xy'``.
115115
116-
pivot : {'tail', 'mid', 'middle', 'tip'}, default: 'tail'
116+
pivot : {'tail', 'middle', 'tip'}, default: 'tail'
117117
The part of the arrow that is anchored to the *X*, *Y* grid. The arrow
118118
rotates about this point.
119119
120-
'mid' is a synonym for 'middle'.
120+
.. admonition:: Discouraged
121+
122+
'mid' is a synonym for 'middle', which is retained for backwards
123+
compatibility. New code should use 'middle'.
121124
122125
scale : float, optional
123126
Scales the length of the arrow inversely.

0 commit comments

Comments
 (0)