On this page
matplotlib.patches.FancyArrow
class matplotlib.patches.FancyArrow(x, y, dx, dy, width=0.001, length_includes_head=False, head_width=None, head_length=None, shape='full', overhang=0, head_starts_at_zero=False, **kwargs)[source]-
Like Arrow, but lets you set head width and head height independently.
- Constructor arguments
-
- width: float (default: 0.001)
- width of full arrow tail
- length_includes_head: bool (default: False)
- True if head is to be counted in calculating the length.
- head_width: float or None (default: 3*width)
- total width of the full arrow head
- head_length: float or None (default: 1.5 * head_width)
- length of arrow head
- shape: ['full', 'left', 'right'] (default: 'full')
- draw the left-half, right-half, or full arrow
- overhang: float (default: 0)
- fraction that the arrow is swept back (0 overhang means triangular shape). Can be negative or greater than one.
- head_starts_at_zero: bool (default: False)
- if True, the head starts being drawn at coordinate 0 instead of ending at coordinate 0.
Other valid kwargs (inherited from
Patch) are:Property Description agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphafloat or None animatedbool antialiasedor aabool or None capstyle['butt' | 'round' | 'projecting'] clip_boxa Bboxinstanceclip_onbool clip_path[( Path,Transform) |Patch| None]colormatplotlib color spec containsa callable function edgecoloror ecmpl color spec, None, 'none', or 'auto' facecoloror fcmpl color spec, or None for default, or 'none' for no color figurea Figureinstancefillbool gidan id string hatch['/' | '\' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | '*'] joinstyle['miter' | 'round' | 'bevel'] labelobject linestyleor ls['solid' | 'dashed', 'dashdot', 'dotted' | (offset, on-off-dash-seq) | '-'|'--'|'-.'|':'|'None'|' '|'']linewidthor lwfloat or None for default path_effectsAbstractPathEffectpicker[None | bool | float | callable] rasterizedbool or None sketch_params(scale: float, length: float, randomness: float) snapbool or None transformTransformurla url string visiblebool zorderfloat
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/matplotlib.patches.FancyArrow.html