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

Skip to content

Commit c77fe94

Browse files
committed
MAINT: Fixed up __all__ in ticker
Moved to the top and added missing formatter classes. Probably missing some locators too, but that's for the future.
1 parent a9d107d commit c77fe94

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

lib/matplotlib/ticker.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@
168168

169169
import warnings
170170

171+
172+
__all__ = ('TickHelper', 'Formatter', 'FixedFormatter',
173+
'NullFormatter', 'FuncFormatter', 'FormatStrFormatter',
174+
'StrMethodFormatter', 'ScalarFormatter', 'LogFormatter',
175+
'LogFormatterExponent', 'LogFormatterMathtext',
176+
'LogitFormatter', 'EngFormatter', 'Locator',
177+
'IndexLocator', 'FixedLocator', 'NullLocator',
178+
'LinearLocator', 'LogLocator', 'AutoLocator',
179+
'MultipleLocator', 'MaxNLocator', 'AutoMinorLocator',
180+
'SymmetricalLogLocator')
181+
182+
171183
if six.PY3:
172184
long = int
173185

@@ -550,7 +562,7 @@ def __call__(self, x, pos=None):
550562
def set_scientific(self, b):
551563
"""
552564
Turn scientific notation on or off.
553-
565+
554566
.. seealso:: Method :meth:`set_powerlimits`
555567
"""
556568
self._scientific = bool(b)
@@ -2148,13 +2160,3 @@ def get_locator(self, d):
21482160
locator = MultipleLocator(ticksize)
21492161

21502162
return locator
2151-
2152-
2153-
__all__ = ('TickHelper', 'Formatter', 'FixedFormatter',
2154-
'NullFormatter', 'FuncFormatter', 'FormatStrFormatter',
2155-
'StrMethodFormatter', 'ScalarFormatter', 'LogFormatter',
2156-
'LogFormatterExponent', 'LogFormatterMathtext', 'Locator',
2157-
'IndexLocator', 'FixedLocator', 'NullLocator',
2158-
'LinearLocator', 'LogLocator', 'AutoLocator',
2159-
'MultipleLocator', 'MaxNLocator', 'AutoMinorLocator',
2160-
'SymmetricalLogLocator')

0 commit comments

Comments
 (0)