tlpipe.plot.plot_phase.MaxNLocator

class tlpipe.plot.plot_phase.MaxNLocator(*args, **kwargs)[source]

Select no more than N intervals at nice locations.

Attributes

MAXTICKS
axis
default_params
__init__(*args, **kwargs)[source]

Keyword args:

nbins
Maximum number of intervals; one less than max number of ticks.
steps
Sequence of nice numbers starting with 1 and ending with 10; e.g., [1, 2, 4, 5, 10]
integer
If True, ticks will take only integer values.
symmetric
If True, autoscaling will result in a range symmetric about zero.
prune
[‘lower’ | ‘upper’ | ‘both’ | None] Remove edge ticks – useful for stacked or ganged plots where the upper tick of one axes overlaps with the lower tick of the axes above it. If prune==’lower’, the smallest tick will be removed. If prune==’upper’, the largest tick will be removed. If prune==’both’, the largest and smallest ticks will be removed. If prune==None, no ticks will be removed.

Methods

autoscale() autoscale the view limits
bin_boundaries(vmin, vmax)
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(\*\*kwargs)
set_view_interval(vmin, vmax)
tick_values(vmin, vmax)
view_limits(dmin, dmax)
zoom(direction) Zoom in/out on axis; if direction is >0 zoom in, else zoom out