Locator¶
-
Locator(locator, *args, **kwargs)[source]¶ Returns a
Locatorinstance, used to interpret thexlocator,xlocator_kw,ylocator,ylocator_kw,xminorlocator,xminorlocator_kw,yminorlocator, andyminorlocator_kwarguments when passed toformat, and thelocator,locator_kwminorlocator, andminorlocator_kwarguments when passed to colorbar methods wrapped bycolorbar_wrapper.- Parameters
locator (
Locator, str, float, or list of float) – IfLocator, the object is returned.If number, specifies the multiple used to define tick separation. Returns a
MultipleLocatorinstance.If list of numbers, these points are ticked. Returns a
FixedLocatorinstance.If string, a dictionary lookup is performed (see below table).
Key
Class
Description
'null','none'No ticks
'auto'Major ticks at sensible locations
'minor'Minor ticks at sensible locations
'date'Default tick locations for datetime axes
'log'LogLocatorpresetFor log-scale axes, ticks on each power of the base
'logminor'LogLocatorpresetFor log-scale axes, ticks on the 1st through 9th multiples of each power of the base
'maxn'No more than
Nticks at sensible locations'linear'Exactly
Nticks encompassing the axis limits, spaced asnumpy.linspace(lo, hi, N)'multiple'Ticks every
Nstep away from zero'fixed'Ticks at these exact locations
'index'Ticks on the non-negative integers
'symlog'Ticks for symmetrical log-scale axes
'logit'Ticks for logit-scale axes
'theta'Like the base locator but default locations are every
numpy.pi/8 radians'year'Ticks every
Nyears'month'Ticks every
Nmonths'weekday'Ticks every
Nweekdays'day'Ticks every
Ndays'hour'Ticks every
Nhours'minute'Ticks every
Nminutes'second'Ticks every
Nseconds'microsecond'Ticks every
Nmicroseconds*args, **kwargs – Passed to the
Locatorclass.
- Returns