graphinglib.Arrow.__init__#

Arrow.__init__(pointA: tuple[float, float], pointB: tuple[float, float], color: str = 'default', width: float | Literal['default'] = 'default', head_size: float | Literal['default'] = 'default', shrink: float = 0, two_sided: bool = False)[source]#

This class implements an arrow object.

Parameters:
pointAtuple[float, float]

Point A of the arrow. If the arrow is single-sided, refers to the tail.

pointBtuple[float, float]

Point B of the arrow. If the arrow is douple-sided, refers to the head.

colorstr

Color of the arrow. Default depends on the figure_style configuration.

widthfloat, optional

Arrow line width. Default depends on the figure_style configuration.

head_sizefloat, optional

Scales the size of the arrow head. Default depends on the figure_style configuration.

shrinkfloat

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

two_sidedbool

If True, the arrow is double-sided. Defaults to False.