You are reading an old version of the documentation (v3.0.2). For the latest version see
Version 3.0.2
Fork me on GitHub


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.


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.


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.