Tick positions as placed by the automatic tick locator of common
plotting libraries (a "maximum number of intervals" locator): the
smallest "nice" step from steps (times a power of ten) that divides the
axis range into at most nbins intervals, with ticks restricted to the
limits. For example limits 0 to 7 give 0, 2, 4, 6 rather than 0, 3, 6.
Arguments
- limits
Axis limits (as drawn, including any margins).
- nbins
Maximum number of intervals, or
"auto".- steps
Nice step multipliers between 1 and 10.
- min_n
Minimum number of ticks inside the limits.
- length_pt
Axis length in points (for
nbins = "auto").- tick_size
Tick label size in points (for
nbins = "auto").- axis
"y"or"x"(fornbins = "auto").