mpl.ticker.FixedLocator¶
-
class
mpl.ticker.FixedLocator(locs, nbins=None)[source]¶ Tick locations are fixed. If nbins is not None, the array of possible positions will be subsampled to keep the number of ticks <= nbins +1. The subsampling will be done so as to include the smallest absolute value; for example, if zero is included in the array of possibilities, then it is guaranteed to be one of the chosen ticks.
Methods¶
__init__(locs[, nbins]) |
|
autoscale() |
autoscale the view limits |
create_dummy_axis(**kwargs) |
|
pan(numsteps) |
Pan numticks (can be positive or negative) |
raise_if_exceeds(locs) |
raise a RuntimeError if Locator attempts to create more than |
refresh() |
refresh internal information based on current lim |
set_axis(axis) |
|
set_bounds(vmin, vmax) |
|
set_data_interval(vmin, vmax) |
|
set_params([nbins]) |
Set parameters within this locator. |
set_view_interval(vmin, vmax) |
|
tick_values(vmin, vmax) |
“ |
view_limits(vmin, vmax) |
select a scale for the range from vmin to vmax |
zoom(direction) |
Zoom in/out on axis; if direction is >0 zoom in, else zoom out |