Skip to content

Commit b09d17a

Browse files
authored
Merge pull request #15181 from jklymak/fix-dates-zero_formats
FIX: proper call to zero_formats
2 parents 9a1873f + 483991a commit b09d17a

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
@@ -737,7 +737,7 @@ def __init__(self, locator, tz=None, formats=None, offset_formats=None,
737737
# like 1 Jan can just be labled "Jan". 02:02:00 can
738738
# just be labeled 02:02.
739739
if zero_formats:
740-
if len(formats) != 6:
740+
if len(zero_formats) != 6:
741741
raise ValueError('zero_formats argument must be a list of '
742742
'6 format strings (or None)')
743743
self.zero_formats = zero_formats

0 commit comments

Comments
 (0)