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

Skip to content

Commit a3428e8

Browse files
committed
fixed weekday locator bug in axes
svn path=/trunk/matplotlib/; revision=660
1 parent 3e35625 commit a3428e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ def plot_date(self, d, y, fmt='bo', tz=None, **kwargs):
18891889
locator = MonthLocator(tz=tz)
18901890
fmt = '%b %Y'
18911891
elif weeks>numticks:
1892-
locator = WeekLocator(interval=math.ceil(weeks/numticks), tz=tz)
1892+
locator = WeekdayLocator(tz=tz)
18931893
fmt = '%a, %b %d'
18941894
elif days>numticks:
18951895
locator = DayLocator(interval=math.ceil(days/numticks), tz=tz)

0 commit comments

Comments
 (0)