# plotnine.scales.ylim¶

class plotnine.scales.ylim(*limits)[source]

Set y-axis limits

Parameters
limitsarray_like

Min and max limits. Must be of size 2. You can also pass two values e.g ylim(40, 100)

Notes

If the 2nd value of limits is less than the first, a reversed scale will be created.