plotnine.coords.coord_flip¶
- class plotnine.coords.coord_flip(xlim: Optional[TupleFloat2] = None, ylim: Optional[TupleFloat2] = None, expand: bool = True)[source]¶
Flipped cartesian coordinates
The horizontal becomes vertical, and vertical becomes horizontal. This is primarily useful for converting geoms and statistics which display y conditional on x, to x conditional on y.
- Parameters
- xlim
python:None
| (python:float
,python:float
) Limits for x axis. If None, then they are automatically computed.
- ylim
python:None
| (python:float
,python: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.
- xlim