From 483991aa3759474128d70669db8009d5310ed67d Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Wed, 4 Sep 2019 07:35:14 -0700 Subject: [PATCH] FIX: proper call to zero_formats --- lib/matplotlib/dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/dates.py b/lib/matplotlib/dates.py index 350b6815b411..cfa7149680fc 100644 --- a/lib/matplotlib/dates.py +++ b/lib/matplotlib/dates.py @@ -737,7 +737,7 @@ def __init__(self, locator, tz=None, formats=None, offset_formats=None, # like 1 Jan can just be labled "Jan". 02:02:00 can # just be labeled 02:02. if zero_formats: - if len(formats) != 6: + if len(zero_formats) != 6: raise ValueError('zero_formats argument must be a list of ' '6 format strings (or None)') self.zero_formats = zero_formats