-
Notifications
You must be signed in to change notification settings - Fork 353
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
XAxis' object has no attribute '_gridOnMajor #479
Comments
There is a fix suggested here plotly/plotly.py#2913 |
Thank you @dmiller7115 and @carlinmack -- we'll try to get this fixed in the next few days. Main thing to check is that the fix doesn't break anything for previous version of Matplotlib. |
Hey everyone, thank you for the report and for the information. I've fixed this in mpld3/mplexporter@2f766e4...be8e3da I've confirmed that the fix suggested by @carlinmack works for matplotlib versions 3.3.3, 3.2.1 and 2.2.5. The fix will be available as soon as I push out the new version, which will be ASAP. Let me know if you encounter any problems! |
thanks for testing! I didn't think about backwards compatibility, but glad to hear it works okay! |
Fixed in release 0.5.2 in 4617a12 ! |
As of 20220527 I still get this problem ('XAxis' object has no attribute '_gridOnMajor') with the example of dmiller7115 running kubuntu 21.10, python 3.9.7, matplotlib 3.5.2, plotly 5.8.0 - all python modules standard install. However the only difference is the line in issue is line 247, ie "if axis._gridOnMajor and len(gridlines) > 0:" |
@tobiz Line 247 of what file? Doing an |
Sorry! |
@tobiz It sounds like your problem is not with mpld3 but with "matplotlylib" — I'm not sure what that is, but it sounds like you have the wrong repo! :P |
Certainly but in the spirit of helpfulness it is probably worth mentioning the obvious conclusion, which is that the other project has vendored an old / out of date version of mpld3/mplexporter |
Hello, matplotlib recently merged a change that removed provide variables from Axis: matplotlib/matplotlib#18769.
I hit this bug when converting matplotlib to html.
Reproduce by:
Results in
The text was updated successfully, but these errors were encountered: