MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __call__

Method __call__

lib/matplotlib/ticker.py:2844–2851  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2842 self.subs = subs if len(subs) > 0 else None
2843
2844 def __call__(self):
2845 vmin, vmax = self.axis.get_view_interval()
2846 if (vmin * vmax) < 0 and abs(1 + vmax / vmin) < self.symthresh:
2847 # Data-range appears to be almost symmetric, so round up:
2848 bound = max(abs(vmin), abs(vmax))
2849 return self.tick_values(-bound, bound)
2850 else:
2851 return self.tick_values(vmin, vmax)
2852
2853 def tick_values(self, vmin, vmax):
2854 # Construct a set of uniformly-spaced "on-screen" locations.

Callers

nothing calls this directly

Calls 2

tick_valuesMethod · 0.95
get_view_intervalMethod · 0.45

Tested by

no test coverage detected