MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / MaxNLocator

Class MaxNLocator

lib/mpl_toolkits/axisartist/grid_finder.py:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270class MaxNLocator(mticker.MaxNLocator):
271 def __init__(self, nbins=10, steps=None,
272 trim=True,
273 integer=False,
274 symmetric=False,
275 prune=None):
276 # trim argument has no effect. It has been left for API compatibility
277 super().__init__(nbins, steps=steps, integer=integer,
278 symmetric=symmetric, prune=prune)
279 self.create_dummy_axis()
280
281 def __call__(self, v1, v2):
282 locs = super().tick_values(v1, v2)
283 return np.array(locs), len(locs), 1 # 1: factor (see angle_helper)
284
285
286class FixedLocator:

Callers 6

test_pretty_print_formatFunction · 0.90
curvelinear_test1Function · 0.90
setup_axes1Function · 0.90
setup_axes2Function · 0.90
setup_axes3Function · 0.90
__init__Method · 0.70

Calls

no outgoing calls

Tested by 1

test_pretty_print_formatFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…