-
Notifications
You must be signed in to change notification settings - Fork 24
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
ToroidalVoxelGrid.plot() raises a TypeError with Matplotlib 3.8 #422
Comments
The issues we are getting because of Matplotlib are getting quite annoying. Generally I think that the classes should not have plotting methods. A better approach in my opinion is to plot in functions external to cherab classes, which access the class data. What do you think? I know that changing this now would break backwards compatibility, but if the suggested approach is accepted, we can have it as a milestone for the next major version of Cherab. |
I agree, this will also help improve class design by ensuring that if a protected/private attribute is used for plotting, it should be available as a property. In addition to For now, I'll just merge the fix from #423 so the tests can be passed. |
Fixed in #423. |
Passing the
closed
parameter toPolygon.__init__()
positionally, like here:core/cherab/tools/inversions/voxels.pyx
Lines 684 to 686 in 089d88a
was deprecated in Matplotlib 3.6 and in Matplotlib 3.8 raises a
TypeError
.The text was updated successfully, but these errors were encountered: