plotnine.geoms.arrow

class plotnine.geoms.arrow(angle: float = 30, length: float = 0.2, ends: Literal['first', 'last', 'both'] = 'last', type: Literal['open', 'closed'] = 'open')[source]

Define arrow (actually an arrowhead)

This is used to define arrow heads for geom_path.

Parameters:
angleint | float

angle in degrees between the tail a single edge.

lengthint | float

of the edge in "inches"

endsstr in ['last', 'first', 'both']

At which end of the line to draw the arrowhead

typestr in ['open', 'closed']

When it is closed, it is also filled