_bound_ticks
Module Contents
- class _bound_ticks.TickBounder
Forces Axes limits to start and/or end at major or minor ticks.
Each argument in the constructor can be: -
True– set the bound according to the ticks -False– do not change the bound - afloat- set to this- Parameters
x0 – left bound (
.getxlim()[0])y0 – bottom bound (
.getylim()[0])x1 – right bound (
.getxlim()[1])y1 – top bound (
.getylim()[1])major – Use major tick marks rather than minor
Example
This example will bind maximum width and height of the Axes to the smallest tick that fits the data, and will set the minimum width and height to 0:
ticker = TickBounder(x=0, y0=0, x1=True, y1=True) ticker.adjust(ax)