matplotlib.patches.YAArrow

class matplotlib.patches.YAArrow(**kwargs) [source]

Bases: matplotlib.patches.Patch

Deprecated since version 3.0: The YAArrow class was deprecated in Matplotlib 3.0 and will be removed in 3.2. Use FancyArrowPatch instead.

Yet another arrow class.

This is an arrow that is defined in display space and has a tip at x1, y1 and a base at x2, y2.

get_patch_transform() [source]

Return the Transform instance which takes patch coordinates to data coordinates.

For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5.

get_path() [source]

Return the path of this patch

getpoints(x1, y1, x2, y2, k) [source]

For line segment defined by (x1, y1) and (x2, y2) return the points on the line that is perpendicular to the line and intersects (x2, y2) and the distance from (x2, y2) of the returned points is k.

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.0.0/api/_as_gen/matplotlib.patches.YAArrow.html