-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
mdates.ConciseDateFormatter() doesn't work with zero_formats parameter #15178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hah I just copied that code over. I had no idea what zero format is. If you think it’s useful to make work with the formatter we should fix it, or if not, remove it. Feel free to make a PR if you think you understand the issue well enough, otherwise I’ll try to fix in |
Yeah but that’s what concisedateformatter is supposed to do automatically so I’m not sure the kwarg makes sense at all? |
OK, duh, I added |
Thanks for the report, and sorry about my confusion above. This should be fixed in 3.1.2, in the meantime, your workaround is correct. |
Bug report
Bug summary
mdates.ConciseDateFormatter() raises TypeError when giving zero_formats parameter.
Code for reproduction
Actual outcome
Expected
dates.py around line 842 below.
now, formats is None (dafeult value). so, line 842 shuold be
Matplotlib version
The text was updated successfully, but these errors were encountered: