# yt.visualization.tick_locators module¶

class yt.visualization.tick_locators.LinearLocator(numticks=None, presets=None)[source]

Bases: object

Determine the tick locations

The first time this function is called it will try to set the number of ticks to make a nice tick partitioning. Thereafter the number of ticks will be fixed so that interactive navigation will be nice

class yt.visualization.tick_locators.LogLocator(base=10.0, subs=[1.0], numdecs=4)[source]

Bases: object

Determine the tick locations for log axes

base(base)[source]

set the base of the log scaling (major tick every base**i, i integer)

subs(subs)[source]

set the minor ticks the log scaling every base**i*subs[j]

yt.visualization.tick_locators.is_decade(x, base=10)[source]