8000 Dont forward trim argument to ticker where it has no effect · matplotlib/matplotlib@58a27bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 58a27bf

Browse files
committed
Dont forward trim argument to ticker where it has no effect
1 parent 4b6112e commit 58a27bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/mpl_toolkits/axisartist/grid_finder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ def __init__(self,
255255

256256

257257
class MaxNLocator(mticker.MaxNLocator):
258-
def __init__(self, nbins = 10, steps = None,
259-
trim = True,
258+
def __init__(self, nbins=10, steps=None,
259+
trim=True,
260260
integer=False,
261261
symmetric=False,
262262
prune=None):
263-
263+
# trim argument has no effect. It has been left for API compatibility
264264
mticker.MaxNLocator.__init__(self, nbins, steps=steps,
265-
trim=trim, integer=integer,
265+
integer=integer,
266266
symmetric=symmetric, prune=prune)
267267
self.create_dummy_axis()
268268
self._factor = None

0 commit comments

Comments
 (0)
0