matplotlib.axes.Axes.arrow
- Axes.arrow(x, y, dx, dy, **kwargs)
[Discouraged] Add an arrow to the Axes.
This draws an arrow from
(x, y)to(x+dx, y+dy).
[Discouraged] Add an arrow to the Axes.
This draws an arrow from (x, y) to (x+dx, y+dy).
The use of this method is discouraged because it is not guaranteed that the arrow renders reasonably. For example, the resulting arrow is affected by the Axes aspect ratio and limits, which may distort the arrow.
Consider using annotate without a text instead, e.g.
ax.annotate("", xytext=(0, 0), xy=(0.5, 0.5),
arrowprops=dict(arrowstyle="->"))
The x and y coordinates of the arrow base.
The length of the arrow along x and y direction.
Width of full arrow tail.
True if head is to be counted in calculating the length.
Total width of the full arrow head.
Length of arrow head.
Draw the left-half, right-half, or full arrow.
Fraction that the arrow is swept back (0 overhang means triangular shape). Can be negative or greater than one.
If True, the head starts being drawn at coordinate 0 instead of ending at coordinate 0.
Patch properties:
Property | Description |
|---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image | |
FancyArrowThe created FancyArrow object.
matplotlib.axes.Axes.arrowunknown |
bool |
| bool or None |
|
|
bool |
Patch or (Path, Transform) or None |
color or None |
color or None |
color or None |
bool |
str |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} |
unknown |
color or 'edge' or None |
bool |
|
object |
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq) |
float or None |
bool |
list of |
None or bool or float or callable |
bool |
(scale: float, length: float, randomness: float) |
bool or None |
str |
bool |
float |