Skip to content

Commit 8179d12

Browse files
authored
Merge pull request #23774 from oscargus/docfixes
Correct rcParams-name in AutoDateFormatter doc-string
2 parents efaedd8 + b17d845 commit 8179d12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/dates.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -866,13 +866,13 @@ class AutoDateFormatter(ticker.Formatter):
866866
defaults to ::
867867
868868
self.scaled = {
869-
DAYS_PER_YEAR: rcParams['date.autoformat.year'],
870-
DAYS_PER_MONTH: rcParams['date.autoformat.month'],
871-
1: rcParams['date.autoformat.day'],
872-
1 / HOURS_PER_DAY: rcParams['date.autoformat.hour'],
873-
1 / MINUTES_PER_DAY: rcParams['date.autoformat.minute'],
874-
1 / SEC_PER_DAY: rcParams['date.autoformat.second'],
875-
1 / MUSECONDS_PER_DAY: rcParams['date.autoformat.microsecond'],
869+
DAYS_PER_YEAR: rcParams['date.autoformatter.year'],
870+
DAYS_PER_MONTH: rcParams['date.autoformatter.month'],
871+
1: rcParams['date.autoformatter.day'],
872+
1 / HOURS_PER_DAY: rcParams['date.autoformatter.hour'],
873+
1 / MINUTES_PER_DAY: rcParams['date.autoformatter.minute'],
874+
1 / SEC_PER_DAY: rcParams['date.autoformatter.second'],
875+
1 / MUSECONDS_PER_DAY: rcParams['date.autoformatter.microsecond'],
876876
}
877877
878878
The formatter uses the format string corresponding to the lowest key in

0 commit comments

Comments
 (0)