Skip to content

Commit 483991a

Browse files
committed
FIX: proper call to zero_formats
1 parent b12a3a8 commit 483991a

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)