FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Raise NotImplementedError with equal aspect on 3D axes by dstansby · Pull Request #13474 · matplotlib/matplotlib · GitHub

Repository navigation

Raise NotImplementedError with equal aspect on 3D axes - #13474

Merged
timhoffm merged 1 commit into
matplotlib:masterfrom
dstansby:3d-equal-aspect
Feb 21, 2019
Merged

timhoffm merged 1 commit into
matplotlib:masterfrom
dstansby:3d-equal-aspect

Conversation

Copy link
Copy Markdown
Member

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))

Comment thread lib/matplotlib/axes/_base.py Outdated

jklymak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Another option is to warn or log.info.

anntzer commented Feb 20, 2019

Copy link
Copy Markdown
Contributor

(I'm in favor of actually throwing an exception, given that the resulting plot is just plain wrong.)

jklymak commented Feb 21, 2019

Copy link
Copy Markdown
Member

I meant warn and not set the aspect ratio, not warn and do something buggy 😉

anntzer commented Feb 21, 2019

Copy link
Copy Markdown
Contributor

Right now we raise if someone does set_aspect("foobar"); I think passing "equal" to 3D axes is essentially the same.

timhoffm merged commit f8f6fdf into matplotlib:master Feb 21, 2019
dstansby deleted the 3d-equal-aspect branch February 21, 2019 17:52
QuLogic added this to the v3.1.0 milestone Jul 24, 2019
kip-hart pushed a commit to kip-hart/MicroStructPy that referenced this pull request Sep 12, 2019
ftherrien pushed a commit to ftherrien/p2ptrans that referenced this pull request Jan 15, 2020
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.
SenorPez added a commit to SenorPez/glowing-potato that referenced this pull request Jan 28, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL