graphinglib.Text.add_arrow#

Text.add_arrow(points_to: tuple[float, float], width: float | None = None, shrink: float | None = None, head_width: float | None = None, head_length: float | None = None, alpha: float | None = None) None[source]#

Adds an arrow pointing from the Text to a specified point.

Parameters:
points_to: tuple[float, float]

Coordinates at which to point.

widthfloat, optional

Arrow width, in points. Typical range is 0.5 to 3.

shrinkfloat, optional

Fraction of the total length of the arrow to shrink from both ends. Range is 0 to 0.5. A value of 0.5 means the arrow is no longer visible.

head_widthfloat, optional

Width of the head of the arrow, in points. Typical range is 3 to 10.

head_lengthfloat, optional

Length of the head of the arrow, in points. Typical range is 3 to 10.

alphafloat, optional

Opacity of the arrow. Range is 0 (transparent) to 1 (opaque).