| |
- TickHelper
-
- Formatter
-
- FixedFormatter
- FormatStrFormatter
- FuncFormatter
- LogFormatter
-
- LogFormatterExponent
- LogFormatterMathtext
- NullFormatter
- ScalarFormatter
- Locator
-
- FixedLocator
- IndexLocator
- LinearLocator
- LogLocator
- MaxNLocator
-
- AutoLocator
- MultipleLocator
- NullLocator
class IndexLocator(Locator) |
|
Place a tick on every multiple of some base number of points
plotted, eg on every 5th point. It is assumed that you are doing
index plotting; ie the axis is 0, len(data). This is mainly
useful for x ticks. |
|
- Method resolution order:
- IndexLocator
- Locator
- TickHelper
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, base, offset)
- place ticks on the i-th data points where (i-offset)%base==0
Methods inherited from Locator:
- autoscale(self)
- autoscale the view limits
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class LinearLocator(Locator) |
|
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 |
|
- Method resolution order:
- LinearLocator
- Locator
- TickHelper
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)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class Locator(TickHelper) |
|
Determine the tick locations;
Note, you should not use the same locator between different Axis
because the locator stores references to the Axis data and view
limits |
|
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- autoscale(self)
- autoscale the view limits
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class LogFormatter(Formatter) |
|
Format values for log axis;
if attribute decadeOnly is True, only the decades will be labelled. |
|
- Method resolution order:
- LogFormatter
- Formatter
- TickHelper
Methods defined here:
- __call__(self, x, pos=None)
- Return the format for tick val x at position pos
- __init__(self, base=10.0, labelOnlyBase=True)
- base is used to locate the decade tick,
which will be the only one to be labeled if labelOnlyBase
is False
- base(self, base)
- change the base for labeling - warning: should always match the base used for LogLocator
- format_data(self, value)
- is_decade(self, x)
- label_minor(self, labelOnlyBase)
- switch on/off minor ticks labeling
- nearest_long(self, x)
- pprint_val(self, x, d)
Methods inherited from Formatter:
- format_data_short(self, value)
- return a short string version
- get_offset(self)
- set_locs(self, locs)
Data and other attributes inherited from Formatter:
- locs = []
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class LogFormatterExponent(LogFormatter) |
|
Format values for log axis; using exponent = log_base(value) |
|
- Method resolution order:
- LogFormatterExponent
- LogFormatter
- Formatter
- TickHelper
Methods defined here:
- __call__(self, x, pos=None)
- Return the format for tick val x at position pos
Methods inherited from LogFormatter:
- __init__(self, base=10.0, labelOnlyBase=True)
- base is used to locate the decade tick,
which will be the only one to be labeled if labelOnlyBase
is False
- base(self, base)
- change the base for labeling - warning: should always match the base used for LogLocator
- format_data(self, value)
- is_decade(self, x)
- label_minor(self, labelOnlyBase)
- switch on/off minor ticks labeling
- nearest_long(self, x)
- pprint_val(self, x, d)
Methods inherited from Formatter:
- format_data_short(self, value)
- return a short string version
- get_offset(self)
- set_locs(self, locs)
Data and other attributes inherited from Formatter:
- locs = []
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class LogFormatterMathtext(LogFormatter) |
|
Format values for log axis; using exponent = log_base(value) |
|
- Method resolution order:
- LogFormatterMathtext
- LogFormatter
- Formatter
- TickHelper
Methods defined here:
- __call__(self, x, pos=None)
- Return the format for tick val x at position pos
Methods inherited from LogFormatter:
- __init__(self, base=10.0, labelOnlyBase=True)
- base is used to locate the decade tick,
which will be the only one to be labeled if labelOnlyBase
is False
- base(self, base)
- change the base for labeling - warning: should always match the base used for LogLocator
- format_data(self, value)
- is_decade(self, x)
- label_minor(self, labelOnlyBase)
- switch on/off minor ticks labeling
- nearest_long(self, x)
- pprint_val(self, x, d)
Methods inherited from Formatter:
- format_data_short(self, value)
- return a short string version
- get_offset(self)
- set_locs(self, locs)
Data and other attributes inherited from Formatter:
- locs = []
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class LogLocator(Locator) |
|
Determine the tick locations for log axes |
|
- Method resolution order:
- LogLocator
- Locator
- TickHelper
Methods defined here:
- __call__(self)
- Return the locations of the ticks
- __init__(self, base=10.0, subs=[1.0])
- place ticks on the location= base**i*subs[j]
- autoscale(self)
- Try to choose the view limits intelligently
- base(self, base)
- set the base of the log scaling (major tick every base**i, i interger)
- subs(self, subs)
- set the minor ticks the log scaling every base**i*subs[j]
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class MaxNLocator(Locator) |
|
Select no more than N intervals at nice locations. |
|
- Method resolution order:
- MaxNLocator
- Locator
- TickHelper
Methods defined here:
- __call__(self)
- __init__(self, nbins=10, steps=None, trim=True)
- autoscale(self)
- bin_boundaries(self, vmin, vmax)
Methods inherited from Locator:
- pan(self, numsteps)
- Pan numticks (can be positive or negative)
- refresh(self)
- refresh internal information based on current lim
- zoom(self, direction)
- Zoom in/out on axis; if direction is >0 zoom in, else zoom out
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
class ScalarFormatter(Formatter) |
|
Tick location is a plain old number. If useOffset==True and the data range
is much smaller than the data average, then an offset will be determined
such that the tick labels are meaningful. Scientific notation is used for
data < 1e-3 or data >= 1e4. |
|
- Method resolution order:
- ScalarFormatter
- Formatter
- TickHelper
Methods defined here:
- __call__(self, x, pos=None)
- Return the format for tick val x at position pos
- __init__(self, useOffset=True, useMathText=False)
- format_data(self, value, sign=False, mathtext=False)
- return a formatted string representation of a number
- format_data_short(self, value)
- return a short formatted string representation of a number
- get_offset(self)
- Return scientific notation, plus offset
- pprint_val(self, x)
- set_locs(self, locs)
- set the locations of the ticks
Data and other attributes inherited from Formatter:
- locs = []
Methods inherited from TickHelper:
- set_data_interval(self, interval)
- set_view_interval(self, interval)
- verify_intervals(self)
Data and other attributes inherited from TickHelper:
- dataInterval = None
- viewInterval = None
|
|