Back to Seaborn

Objects.Plot.Limit

doc/_docstrings/objects.Plot.limit.ipynb

0.13.2291 B
Original Source
python
import seaborn.objects as so
python
p = so.Plot(x=[1, 2, 3], y=[1, 3, 2]).add(so.Line(marker="o"))
p
python
p.limit(x=(0, 4), y=(-1, 6))

Reversing the min/max values will invert the axis:

python
p.limit(y=(4, 0))
python
p.limit(y=(0, None))