egttools.plotting.barplots.NullLocator

class NullLocator[source]

Bases: Locator

Place no ticks.

Methods

create_dummy_axis

nonsingular

Adjust a range as needed to avoid singularities.

raise_if_exceeds

Log at WARNING level if locs is longer than Locator.MAXTICKS.

set_axis

set_params

Do nothing, and raise a warning.

tick_values

Return the locations of the ticks.

view_limits

Select a scale for the range from vmin to vmax.

Attributes

__call__()[source]

Return the locations of the ticks.

create_dummy_axis(**kwargs)
Return type:

None

nonsingular(v0, v1)

Adjust a range as needed to avoid singularities.

This method gets called during autoscaling, with (v0, v1) set to the data limits on the Axes if the Axes contains any data, or (-inf, +inf) if not.

  • If v0 == v1 (possibly up to some floating point slop), this method returns an expanded interval around this value.

  • If (v0, v1) == (-inf, +inf), this method returns appropriate default view limits.

  • Otherwise, (v0, v1) is returned without modification.

Return type:

tuple[float, float]

raise_if_exceeds(locs)

Log at WARNING level if locs is longer than Locator.MAXTICKS.

This is intended to be called immediately before returning locs from __call__ to inform users in case their Locator returns a huge number of ticks, causing Matplotlib to run out of memory.

The “strange” name of this method dates back to when it would raise an exception instead of emitting a log.

Return type:

Sequence[float]

set_axis(axis)
Return type:

None

set_params(**kwargs)

Do nothing, and raise a warning. Any locator class not supporting the set_params() function will call this.

Return type:

None

tick_values(vmin, vmax)[source]

Return the locations of the ticks.

Note

Because there are no ticks, vmin and vmax are not used.

view_limits(vmin, vmax)

Select a scale for the range from vmin to vmax.

Subclasses should override this method to change locator behaviour.

Return type:

tuple[float, float]

MAXTICKS = 1000
__annotations__ = {}
axis = None