symlog_locater

class MinorSymLogLocator(linthresh, nints=10)[source]

Dynamically find minor tick positions based on the positions of major ticks for a symlog scaling.

Based on [this stack exchange] (https://stackoverflow.com/questions/20470892/how-to-place-minor-ticks-on-symlog-scale)

__call__()[source]

Return the locations of the ticks.

__init__(linthresh, nints=10)[source]

Ticks will be placed between the major ticks.

The placement is linear for x between -linthresh and linthresh, otherwise its logarithmically. nints gives the number of intervals that will be bounded by the minor ticks.

tick_values(vmin, vmax)[source]

Return the values of the located ticks given vmin and vmax.

Note

To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance:

>>> print(type(loc))
<type 'Locator'>
>>> print(loc())
[1, 2, 3, 4]