plotnine.helpers.get_aesthetic_limits

get_aesthetic_limits(plot, ae)

Get the limits of an aesthetic

These are the limits before they are expanded.

Parameters

plot : ggplot

ggplot object

ae : str

Name of aesthetic

Returns

out : tuple[float, float] | Sequence[str] | list[tuple[float]] | list[Sequence[str]]

The limits of the aesthetic. If the plot is facetted, (has many panels), it is a sequence of limits, one for each panel.