8000 Fix deprecation warning with dateutil 2.5 · matplotlib/matplotlib@63f5153 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63f5153

Browse files
committed
Fix deprecation warning with dateutil 2.5
Count cannot be used together with until in future versions of dateutil. The matplotlib code already checks that there are no more then MAXTICKS generated so it looks like this has always been redundant
1 parent 0853446 commit 63f5153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def tick_values(self, vmin, vmax):
827827
# The magic number!
828828
stop = _from_ordinalf(3652059.9999999)
829829

830-
self.rule.set(dtstart=start, until=stop, count=self.MAXTICKS + 1)
830+
self.rule.set(dtstart=start, until=stop)
831831

832832
# estimate the number of ticks very approximately so we don't
833833
# have to do a very expensive (and potentially near infinite)

0 commit comments

Comments
 (0)
0