Bases: matplotlib.patches.Polygon
Like Arrow, but lets you set head width and head height independently.
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 | |
unknown | |
bool | |
| bool or None |
| |
bool | |
Patch or (Path, Transform) or None | |
color | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float |
Set multiple properties at once.
Supported properties are
Property | Description |
---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array | |
scalar or None | |
bool | |
| bool or None |
| |
bool | |
Patch or (Path, Transform) or None | |
bool | |
color | |
unknown | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
(N, 2) array-like | |
float |
Set FancyArrow
x, y, dx, dy, width, head_with, and head_length. Values left as None will not be updated.
The x and y coordinates of the arrow base.
The length of the arrow along x and y direction.
Width of full arrow tail.
Total width of the full arrow head.
Length of arrow head.
matplotlib.patches.FancyArrow
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.patches.FancyArrow.html