auto_ticks

support.graphics.auto_ticks(vmin, vmax)

Optional over-ride for matplotlib tick placement.

Given the values at the ends of a linear axis, this figures out good places to put the ticks as a (first, last, step) tuple. If vmin > vmax, the tuple will be (last, first, -step).