-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Raise NotImplementedError with equal aspect on 3D axes #13474
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option is to warn or log.info.
(I'm in favor of actually throwing an exception, given that the resulting plot is just plain wrong.) |
47a3d86
to
29b048f
Compare
I meant warn and not set the aspect ratio, not warn and do something buggy 😉 |
Right now we raise if someone does set_aspect("foobar"); I think passing "equal" to 3D axes is essentially the same. |
The NotImplemented error was caused by the fact that set_aspect now causes an error in matplotlib (see matplotlib/matplotlib#1077 and matplotlib/matplotlib#13474). Fixed by making the figure itself square such that the 3D axis are square. Also change the fortan module's name from p2ptrans to fmodules which prevented from importing p2ptrans as a python module.
See #1077. Until it is implemented properly, it seems reasonable to raise a
NotImplementedError
(and not a warning, because trying to set an equal aspect results in nonsense: #1077 (comment))