Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e609db

Browse files
committed
DOC: add small comments
1 parent666cf14 commit1e609db

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎lib/matplotlib/dates.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,9 @@ def __init__(self, tz=None, minticks=5, maxticks=None,
12351235
5000,10000,20000,50000,100000,200000,500000,
12361236
1000000]}
12371237
ifinterval_multiples:
1238+
# Swap "3" for "4" in the DAILY list; If we use 3 we get bad
1239+
# tick loc for months w/ 31 days: 1, 4,..., 28, 31, 1
1240+
# If we use 4 then we get: 1, 5, ... 25, 29, 1
12381241
self.intervald[DAILY]= [1,2,4,7,14,21]
12391242

12401243
self._byranges= [None,range(1,13),range(1,32),
@@ -1341,8 +1344,9 @@ def get_locator(self, dmin, dmax):
13411344
self._freq=freq
13421345

13431346
ifself._byranges[i]andself.interval_multiples:
1344-
ifi==2andinterval==14:
1345-
byranges[i]= [1,15]
1347+
ifi==DAILYandinterval==14:
1348+
# just make first and 15th. Avoids 30th.
1349+
byranges[i]= [1,15]
13461350
else:
13471351
byranges[i]=self._byranges[i][::interval]
13481352
interval=1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp