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

Skip to content

Commit 88e6e1e

Browse files
committed
Another adjustment to allow external libraries to do the calcs for us.
Signed-off-by: Paul G <[email protected]>
1 parent 68f3018 commit 88e6e1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/dates.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ class rrulewrapper(object):
632632
def __init__(self, freq, **kwargs):
633633
self._construct = kwargs.copy()
634634
self._construct["freq"] = freq
635+
print(self._construct)
635636
self._rrule = rrule(**self._construct)
636637

637638
def set(self, **kwargs):
@@ -1153,9 +1154,9 @@ def __init__(self, bymonthday=None, interval=1, tz=None):
11531154
"""
11541155
if bymonthday is None:
11551156
bymonthday = list(xrange(1, 32))
1156-
o = rrulewrapper(DAILY, bymonthday=bymonthday,
1157+
rule = rrulewrapper(DAILY, bymonthday=bymonthday,
11571158
interval=interval, **self.hms0d)
1158-
RRuleLocator.__init__(self, o, tz)
1159+
RRuleLocator.__init__(self, rule, tz)
11591160

11601161

11611162
class HourLocator(RRuleLocator):

0 commit comments

Comments
 (0)