8000 Merge pull request #15183 from meeseeksmachine/auto-backport-of-pr-15… · matplotlib/matplotlib@ba89a16 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba89a16

Browse files
authored
Merge pull request #15183 from meeseeksmachine/auto-backport-of-pr-15181-on-v3.1.x
Backport PR #15181 on branch v3.1.x (FIX: proper call to zero_formats)
2 parents 169a9f7 + 5c4a79b commit ba89a16

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
@@ -836,7 +836,7 @@ def __init__(self, locator, tz=None, formats=None, offset_formats=None,
836836
# like 1 Jan can just be labled "Jan". 02:02:00 can
837837
# just be labeled 02:02.
838838
if zero_formats:
839-
if len(formats) != 6:
839+
if len(zero_formats) != 6:
840840
raise ValueError('zero_formats argument must be a list of '
841841
'6 format strings (or None)')
842842
self.zero_formats = zero_formats

0 commit comments

Comments
 (0)
0