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

Skip to content

Commit 9078458

Browse files
committed
travis changes
1 parent a14d680 commit 9078458

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def validate_int_or_None(s):
233233
return int(s)
234234
except ValueError:
235235
raise ValueError('Could not convert "%s" to int' % s)
236-
236+
237+
237238
def validate_int_or_auto(s):
238239
if s == 'auto':
239240
return s
@@ -1315,11 +1316,11 @@ def _validate_linestyle(ls):
13151316
'xtick.minor.bottom': [True, validate_bool], # draw x axis bottom minor ticks
13161317
'xtick.major.top': [True, validate_bool], # draw x axis top major ticks
13171318
'xtick.major.bottom': [True, validate_bool], # draw x axis bottom major ticks
1318-
'xtick.minor.ndivs': ['auto', validate_int_or_auto], #set ndivs value for x axis minor ticks
1319+
'xtick.minor.ndivs': ['auto', validate_int_or_auto], # set ndivs value for x axis minor ticks
13191320

13201321
# fontsize of the xtick labels
13211322
'xtick.labelsize': ['medium', validate_fontsize],
1322-
'xtick.direction': ['out', validate_string], # direction of xticks
1323+
'xtick.direction': ['out', validate_string], # direction of xticks
13231324
'xtick.alignment': ["center", _validate_alignment],
13241325

13251326
'ytick.left': [True, validate_bool], # draw ticks on the left side
@@ -1338,11 +1339,11 @@ def _validate_linestyle(ls):
13381339
'ytick.minor.right': [True, validate_bool], # draw y axis right minor ticks
13391340
'ytick.major.left': [True, validate_bool], # draw y axis left major ticks
13401341
'ytick.major.right': [True, validate_bool], # draw y axis right major ticks
1341-
'ytick.minor.ndivs': ['auto', validate_int_or_auto], #set ndivs value for y axis minor ticks
1342+
'ytick.minor.ndivs': ['auto', validate_int_or_auto], # set ndivs value for y axis minor ticks
13421343

13431344
# fontsize of the ytick labels
13441345
'ytick.labelsize': ['medium', validate_fontsize],
1345-
'ytick.direction': ['out', validate_string], # direction of yticks
1346+
'ytick.direction': ['out', validate_string], # direction of yticks
13461347
'ytick.alignment': ["center_baseline", _validate_alignment],
13471348

13481349
'grid.color': ['#b0b0b0', validate_color], # grid color

lib/matplotlib/ticker.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,7 @@ def __init__(self, n=None):
26342634
26352635
If *n* is omitted or None, it will be set to 5 or 4.
26362636
"""
2637-
#print(self.ndivs)
2638-
if n == None:
2637+
if n is None:
26392638
self.ndivs = None
26402639
elif n == 'auto':
26412640
self.ndivs = 'auto'
@@ -2649,7 +2648,7 @@ def __call__(self):
26492648
self.ndivs = rcParams['xtick.minor.ndivs']
26502649
elif self.axis.__name__ == 'yaxis':
26512650
self.ndivs = rcParams['ytick.minor.ndivs']
2652-
2651+
26532652
if self.axis.get_scale() == 'log':
26542653
cbook._warn_external('AutoMinorLocator does not work with '
26552654
'logarithmic scale')

0 commit comments

Comments
 (0)