Skip to content

Commit 3ec5704

Browse files
committed
Merge pull request matplotlib#3125 from tacaswell/arrow_doc
DOC : added annotation example to arrow docstring
2 parents cec78a7 + 292f715 commit 3ec5704

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4054,7 +4054,10 @@ def arrow(self, x, y, dx, dy, **kwargs):
40544054
The resulting arrow is affected by the axes aspect ratio and limits.
40554055
This may produce an arrow whose head is not square with its stem. To
40564056
create an arrow whose head is square with its stem, use
4057-
:meth:`annotate`.
4057+
:meth:`annotate` for example::
4058+
4059+
ax.annotate("", xy=(0.5, 0.5), xytext=(0, 0),
4060+
arrowprops=dict(arrowstyle="->"))
40584061
40594062
Optional kwargs control the arrow construction and properties:
40604063

0 commit comments

Comments
 (0)