@@ -1241,7 +1241,7 @@ def __init__(self, tz=None, minticks=5, maxticks=None,
1241
1241
MINUTELY : len (rcParams ['date.autoformatter.minute' ]),
1242
1242
SECONDLY : len (rcParams ['date.autoformatter.second' ]),
1243
1243
MICROSECONDLY : len (rcParams ['date.autoformatter.microsecond' ])}
1244
-
1244
+ print ( self . eachtick_len )
1245
1245
if maxticks is not None :
1246
1246
try :
1247
1247
self .maxticks .update (maxticks )
@@ -1340,7 +1340,7 @@ def get_locator(self, dmin, dmax):
1340
1340
# more than maxticks tick positions. Also, set up some ranges
1341
1341
# (bymonth, etc.) as appropriate to be passed to rrulewrapper.
1342
1342
1343
- # a ratio of 12 default font sized date chars per inch is 'estimated'
1343
+ # a ratio of 10 default font sized date chars per inch is 'estimated'
1344
1344
maxwid = rcParams ["figure.figsize" ][0 ] * 12
1345
1345
for i , (freq , num ) in enumerate (zip (self ._freqs , nums )):
1346
1346
@@ -1356,7 +1356,7 @@ def get_locator(self, dmin, dmax):
1356
1356
# ticks
1357
1357
for interval in self .intervald [freq ]:
1358
1358
if (num <= interval * (self .maxticks [freq ] - 1 )):
1359
- if (num / interval * self .eachtick_len [freq ] <= maxwid ):
1359
+ if (( num // interval ) * self .eachtick_len [freq ] <= maxwid ):
1360
1360
break
1361
1361
else :
1362
1362
# We went through the whole loop without breaking, default to
@@ -1369,7 +1369,7 @@ def get_locator(self, dmin, dmax):
1369
1369
1370
1370
# Set some parameters as appropriate
1371
1371
self ._freq = freq
1372
-
1372
+ print ( self . _byranges [ i ])
1373
1373
if self ._byranges [i ] and self .interval_multiples :
1374
1374
byranges [i ] = self ._byranges [i ][::interval ]
1375
1375
interval = 1
0 commit comments