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

Skip to content

Commit 496ae85

Browse files
authored
Merge pull request #31262 from kdpenner/doc/update-byweekday-docstring
DOC: Correct `byweekday` description in `WeekdayLocator`
2 parents c0e089d + 9d8fbbc commit 496ae85

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lib/matplotlib/dates.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,13 +1530,15 @@ def __init__(self, byweekday=1, interval=1, tz=None):
15301530
"""
15311531
Parameters
15321532
----------
1533-
byweekday : int or list of int, default: all days
1533+
byweekday : int, list of int, constant from :mod:`dateutil.rrule`, or \
1534+
list of constants, default: 1 (Tuesday)
15341535
Ticks will be placed on every weekday in *byweekday*. Default is
1535-
every day.
1536+
every Tuesday.
15361537
1537-
Elements of *byweekday* must be one of MO, TU, WE, TH, FR, SA,
1538-
SU, the constants from :mod:`dateutil.rrule`, which have been
1539-
imported into the :mod:`matplotlib.dates` namespace.
1538+
Elements of *byweekday* (if a sequence) must be either integers or
1539+
MO, TU, WE, TH, FR, SA, SU, the constants from
1540+
:mod:`dateutil.rrule`, which have been imported into the
1541+
:mod:`matplotlib.dates` namespace.
15401542
interval : int, default: 1
15411543
The interval between each iteration. For example, if
15421544
``interval=2``, mark every second occurrence.

0 commit comments

Comments
 (0)