From 3fc3c27f0767b80e1f39f05684fb65e342ffd81f Mon Sep 17 00:00:00 2001 From: sveneschlbeck Date: Fri, 17 Dec 2021 12:23:09 +0100 Subject: [PATCH 1/4] Added docstring to rrulewrapper class --- lib/matplotlib/dates.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index d2ac2ef1ec8e..d836b43b1926 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -980,6 +980,11 @@ def __call__(self, x, pos=None): class rrulewrapper: + """ + A simple wrapper around a ``dateutil.rrule`` allowing almost + arbitrary date tick specifications. + """ + def __init__(self, freq, tzinfo=None, **kwargs): kwargs['freq'] = freq self._base_tzinfo = tzinfo From 9ddc2396c0f35e0c0222b17eda9acf24a66be4e8 Mon Sep 17 00:00:00 2001 From: Sven Eschlbeck <66701689+sveneschlbeck@users.noreply.github.com> Date: Fri, 17 Dec 2021 17:53:13 +0100 Subject: [PATCH 2/4] Update dates.py --- lib/matplotlib/dates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index d836b43b1926..82b9dede43d1 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -981,8 +981,8 @@ def __call__(self, x, pos=None): class rrulewrapper: """ - A simple wrapper around a ``dateutil.rrule`` allowing almost - arbitrary date tick specifications. + A simple wrapper around a ``dateutil.rrule`` allowing flexible + date tick specifications. """ def __init__(self, freq, tzinfo=None, **kwargs): From e4a1d59b6268fc14dc34739e519be6aadba6baea Mon Sep 17 00:00:00 2001 From: Sven Eschlbeck <66701689+sveneschlbeck@users.noreply.github.com> Date: Tue, 21 Dec 2021 12:05:10 +0100 Subject: [PATCH 3/4] Update dates.py --- lib/matplotlib/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index 82b9dede43d1..9f303c210538 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -984,7 +984,7 @@ class rrulewrapper: A simple wrapper around a ``dateutil.rrule`` allowing flexible date tick specifications. """ - + def __init__(self, freq, tzinfo=None, **kwargs): kwargs['freq'] = freq self._base_tzinfo = tzinfo From a7822359ef3097424a59ec40eada8e60593538c1 Mon Sep 17 00:00:00 2001 From: Sven Eschlbeck <66701689+sveneschlbeck@users.noreply.github.com> Date: Tue, 21 Dec 2021 12:06:18 +0100 Subject: [PATCH 4/4] Update dates.py --- lib/matplotlib/dates.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index 9f303c210538..4b8329ca64db 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -984,7 +984,6 @@ class rrulewrapper: A simple wrapper around a ``dateutil.rrule`` allowing flexible date tick specifications. """ - def __init__(self, freq, tzinfo=None, **kwargs): kwargs['freq'] = freq self._base_tzinfo = tzinfo