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
datetime plotting broken on master #17867
Comments
The issue seems to be that datetime converters are no longer being registered. If I print |
My
So I think the issue is no |
So at first I could not reproduce this error.
I get many rcParam errors and deprecations. If I do
then I can reproduce. To me, the underlying issue is that the matplotlibrc has to be setup properly via a I'll try and figure out how to get the rcParam set up properly here. Obviously I did something wrong in #17022. |
It doesn't seem too hard to add some logic when constructing rcParamsDefault so that if it detects it's in an editable install, then it doesn't use (PS: I need to take a bit of time off devel because of work, so I won't implement the fix right now. As usual, if that turns out to be too bad of a blocker, feel free to revert #15029 and I'll redo it in a better way in the future.) |
OK, but I'm confused about the pathway here. I thought the defaults were all validated when the rcParams are set up. Is that not the case? |
A bit of debug, the rcParam validation is being hit (so I don't think this is #15029's fault), but def _validate_date_converter(s):
s = validate_string(s)
mdates = sys.modules.get("matplotlib.dates")
if mdates:
mdates._rcParam_helper.set_converter(s) |
OK, well see the fix. Still not 100% sure this fixes all the ways the rcParams can be set up. |
Bug report
On master branch, plotting datetimes appears to be broken. This error bisects to a793bde in #17022
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: