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
Textto a specified point.- Parameters:
- points_to: tuple[float, float]
Coordinates at which to point.
- widthfloat, optional
Arrow width, in points. Typical range is
0.5to3.- shrinkfloat, optional
Fraction of the total length of the arrow to shrink from both ends. Range is
0to0.5. A value of0.5means the arrow is no longer visible.- head_widthfloat, optional
Width of the head of the arrow, in points. Typical range is
3to10.- head_lengthfloat, optional
Length of the head of the arrow, in points. Typical range is
3to10.- alphafloat, optional
Opacity of the arrow. Range is
0(transparent) to1(opaque).