Skip to content

Commit 5c4a79b

Browse files
tacaswellMeeseeksDev[bot]
authored andcommitted
Backport PR matplotlib#15181: FIX: proper call to zero_formats
1 parent 169a9f7 commit 5c4a79b

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)