plotnine.coords.coord_cartesian

class plotnine.coords.coord_cartesian(xlim: TupleFloat2 | None = None, ylim: TupleFloat2 | None = None, expand: bool = True)[source]

Cartesian coordinate system

Parameters:
xlimNone | (float, float)

Limits for x axis. If None, then they are automatically computed.

ylimNone | (float, float)

Limits for y axis. If None, then they are automatically computed.

expandbool

If True, expand the coordinate axes by some factor. If False, use the limits from the data.