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

Skip to content

Commit c456ad8

Browse files
committed
FIX: minor cleanups
1 parent 4e09912 commit c456ad8

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/matplotlib/dates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def __init__(self, tz=None, minticks=5, maxticks=None,
12351235
5000, 10000, 20000, 50000, 100000, 200000, 500000,
12361236
1000000]}
12371237
if interval_multiples:
1238-
self.intervald[3] = [1, 2, 4, 7, 14, 21]
1238+
self.intervald[DAILY] = [1, 2, 4, 7, 14, 21]
12391239

12401240
self._byranges = [None, range(1, 13), range(1, 32),
12411241
range(0, 24), range(0, 60), range(0, 60), None]
@@ -1341,7 +1341,6 @@ def get_locator(self, dmin, dmax):
13411341
self._freq = freq
13421342

13431343
if self._byranges[i] and self.interval_multiples:
1344-
print(self._byranges[i])
13451344
if i == 2 and interval == 14:
13461345
byranges[i] = [1, 15]
13471346
else:

lib/matplotlib/tests/test_dates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ def test_empty_date_with_year_formatter():
322322

323323
def test_auto_date_locator():
324324
def _create_auto_date_locator(date1, date2):
325-
# we prob. should eventually have a test w/ interval_multiples=True
326325
locator = mdates.AutoDateLocator(interval_multiples=False)
327326
locator.create_dummy_axis()
328327
locator.set_view_interval(mdates.date2num(date1),

setup.cfg.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# set this to True. It will download and build a specific version of
1414
# FreeType, and then use that to build the ft2font extension. This
1515
# ensures that test images are exactly reproducible.
16-
local_freetype = True
16+
#local_freetype = False
1717

1818
[status]
1919
# To suppress display of the dependencies and their versions

0 commit comments

Comments
 (0)