plotnine.geoms.arrow

class plotnine.geoms.arrow(angle=30, length=0.25, ends='last', type='open')[source]

Define arrow (actually an arrowhead)

This is used to define arrow heads for geom_path.

Parameters:
angle : int | float

angle in degrees between the tail a single edge.

length : int | float

of the edge in "inches"

ends : str in ['last', 'first', 'both']

At which end of the line to draw the arrowhead

type : str in ['open', 'closed']

When it is closed, it is also filled