Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61ad51b

Browse files
committed
Updated argument to mpl.ticker.LogFormatter.label_minor
1 parent 273da36 commit 61ad51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/ticker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,13 +831,13 @@ def base(self, base):
831831
"""
832832
self._base = base
833833

834-
def label_minor(self, labelOnlyBase):
834+
def label_minor(self, labelMinor):
835835
"""
836836
Switch minor tick labeling on or off.
837837
838-
``labelOnlyBase=True`` to turn off minor ticks.
838+
`labelMinor` is a boolean flag.
839839
"""
840-
self.labelOnlyBase = labelOnlyBase
840+
self.labelOnlyBase = not labelMinor
841841

842842
def __call__(self, x, pos=None):
843843
"""

0 commit comments

Comments
 (0)