| |
- Base
- Formatter
-
- DateFormatter
- FixedFormatter
- FormatStrFormatter
- FuncFormatter
- NullFormatter
- ScalarFormatter
-
- LogFormatter
- Locator
-
- AutoLocator
- FixedLocator
- LinearLocator
- LogLocator
- MonthLocator
- MultipleLocator
-
- DayLocator
- HourLocator
- MinuteLocator
- NullLocator
- WeekdayLocator
- YearLocator
- Ticker
-
- AutoTicker
- LinearTicker
- LogTicker
- NullTicker
class AutoLocator(Locator) |
|
On autoscale this class picks the best MultipleLocator to set the
view limits and the tick locs. |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self)
- autoscale(self)
- Try to choose the view limits intelligently
- get_locator(self, d)
- pick the best locator based on a distance
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class AutoTicker(Ticker) |
|
best linear ticks |
|
Methods defined here:
- __init__(self)
Methods inherited from Ticker:
- get_labels(self)
- get the tick labels as list of strings
- get_locs(self)
- get the locations of the ticks
- get_numticks(self)
- get the number of ticks
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Ticker:
- formatter = <matplotlib.ticker.NullFormatter instance>
- Always return the empty string
- locator = <matplotlib.ticker.NullLocator instance>
- No ticks
|
class Base |
|
this solution has some hacks to deal with floating point inaccuracies |
|
Methods defined here:
- __init__(self, base)
- ge(self, x)
- return the largest multiple of base >= x
- get_base(self)
- gt(self, x)
- return the largest multiple of base > x
- le(self, x)
- return the largest multiple of base <= x
- lt(self, x)
- return the largest multiple of base < x
|
class DateFormatter(Formatter) |
|
Tick location is seconds since the epoch. Use a strftime format
string |
|
Methods defined here:
- __call__(self, x, pos)
- __init__(self, fmt)
- fmt is an strftime format string
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class DayLocator(MultipleLocator) |
|
Make ticks at a given hour each day; default midnight |
|
- Method resolution order:
- DayLocator
- MultipleLocator
- Locator
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, hour=0)
Methods inherited from MultipleLocator:
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class FixedFormatter(Formatter) |
|
Return fixed strings for tick labels |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
- __init__(self, seq)
- seq is a sequence of strings. For positions i<len(seq) return
seq[i] regardless of x. Otherwise return ''
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class FixedLocator(Locator) |
|
Tick locations are fixed |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, locs)
Methods inherited from Locator:
- autoscale(self)
- Try to choose the view limits intelligently
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class FormatStrFormatter(Formatter) |
|
Use a format string to format the tick |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
- __init__(self, fmt)
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class Formatter |
|
Convert the tick location to a string |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes defined here:
- datalim = None
- displaylim = None
- viewlim = None
|
class FuncFormatter(Formatter) |
|
User defined function for formatting |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
- __init__(self, func)
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class HourLocator(MultipleLocator) |
|
Make ticks on hours which are multiples of base |
|
- Method resolution order:
- HourLocator
- MultipleLocator
- Locator
Methods defined here:
- __init__(self, base)
Methods inherited from MultipleLocator:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class LinearLocator(Locator) |
|
Determine the tick locations
The first time this function is called it will try and 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 |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, numticks=None, presets=None)
- Use presets to set locs based on lom. A dict mapping vmin, vmax->locs
- autoscale(self)
- Try to choose the view limits intelligently
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class LinearTicker(Ticker) |
|
linear ticks |
|
Methods defined here:
- __init__(self)
Methods inherited from Ticker:
- get_labels(self)
- get the tick labels as list of strings
- get_locs(self)
- get the locations of the ticks
- get_numticks(self)
- get the number of ticks
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Ticker:
- formatter = <matplotlib.ticker.NullFormatter instance>
- Always return the empty string
- locator = <matplotlib.ticker.NullLocator instance>
- No ticks
|
class Locator |
|
Determine the tick locations |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- Try to choose the view limits intelligently
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes defined here:
- datalim = None
- displaylim = None
- viewlim = None
|
class LogLocator(Locator) |
|
Determine the tick locations for log axes |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- Try to choose the view limits intelligently
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class LogTicker(Ticker) |
|
log ticks |
|
Methods defined here:
- __init__(self)
Methods inherited from Ticker:
- get_labels(self)
- get the tick labels as list of strings
- get_locs(self)
- get the locations of the ticks
- get_numticks(self)
- get the number of ticks
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Ticker:
- formatter = <matplotlib.ticker.NullFormatter instance>
- Always return the empty string
- locator = <matplotlib.ticker.NullLocator instance>
- No ticks
|
class MinuteLocator(MultipleLocator) |
|
Make ticks on minutes which are multiples of base |
|
- Method resolution order:
- MinuteLocator
- MultipleLocator
- Locator
Methods defined here:
- __init__(self, base)
Methods inherited from MultipleLocator:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class MonthLocator(Locator) |
|
Make ticks on jan 1st of each year that is a multiple of base |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, base=1)
- mark years that are multiple of base
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Data and other attributes defined here:
- epochConverter = <matplotlib.dates.EpochConverter instance>
- Represent time in the epoch
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class MultipleLocator(Locator) |
|
Set a tick on every integer that is multiple of base in the
viewlim |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, base=1.0)
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class NullFormatter(Formatter) |
|
Always return the empty string |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class NullLocator(Locator) |
|
No ticks |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
Methods inherited from Locator:
- autoscale(self)
- Try to choose the view limits intelligently
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class NullTicker(Ticker) |
|
no ticks |
|
Methods defined here:
- __init__(self)
Methods inherited from Ticker:
- get_labels(self)
- get the tick labels as list of strings
- get_locs(self)
- get the locations of the ticks
- get_numticks(self)
- get the number of ticks
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Ticker:
- formatter = <matplotlib.ticker.NullFormatter instance>
- Always return the empty string
- locator = <matplotlib.ticker.NullLocator instance>
- No ticks
|
class ScalarFormatter(Formatter) |
|
Tick location is a plain old number. If viewlim is set, the
formatter will use %d, %1.#f or %1.ef as appropriate. If it is
not set, the formatter will do str conversion |
|
Methods defined here:
- __call__(self, x, pos)
- Return the format for tick val x at position pos
- pprint_val(self, x, d)
Methods inherited from Formatter:
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes inherited from Formatter:
- datalim = None
- displaylim = None
- viewlim = None
|
class Ticker |
| |
Methods defined here:
- get_labels(self)
- get the tick labels as list of strings
- get_locs(self)
- get the locations of the ticks
- get_numticks(self)
- get the number of ticks
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
Data and other attributes defined here:
- formatter = <matplotlib.ticker.NullFormatter instance>
- Always return the empty string
- locator = <matplotlib.ticker.NullLocator instance>
- No ticks
|
class WeekdayLocator(Locator) |
| |
Methods defined here:
- __call__(self)
- __init__(self, day)
- Use ticks on weekdays that match day numbered from monday =0.
matplotlib.dates defines constants MONDAY thru SUNDAY
- autoscale(self)
- Set the view limits to the nearest days that are on the
specified day that contains the data
- get_ticklocs(self)
- return the tick locations in seconds since epoch
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
|
class YearLocator(Locator) |
|
Make ticks on jan 1st of each year that is a multiple of base |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, base=1)
- mark years that are multiple of base
- autoscale(self)
- Set the view limits to the nearest multiples of base that
contain the data
Data and other attributes defined here:
- epochConverter = <matplotlib.dates.EpochConverter instance>
- Represent time in the epoch
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- set_lim(self, viewlim, datalim, displaylim)
- set the view, data and display limits of the axis
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Data and other attributes inherited from Locator:
- datalim = None
- displaylim = None
- viewlim = None
| |