-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Specify ticks and axis label positions for 3D plots #25830
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
d28327e
to
a81c1f0
Compare
It is recommended that when drawing 3D graphics, the default Z-axis is on the left, in line with the diagram drawn by matlab. |
Hi @YongYahn, the intent of this PR is to allow you to customize the appearance to do that! However changing the default would change the look of existing plots from past versions, and we try to avoid those sorts of backwards-incompatible changes. |
7000028
to
c76a9f0
Compare
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.
Looks good! Nice to have it a bit refactored so that it is easier to see what each part does.
Some comment to slightly improve the code efficiency/readability.
a73f82f
to
74d2f59
Compare
74d2f59
to
21a19e0
Compare
653c73a
to
8bc0dcb
Compare
Bump on this, would be nice to get in 3.8.0 with one approval already. |
Code review commits Test image for axis positions
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.
Both 'lower' and 'both' do not have any ticks or labels in the what's new example. Also, you've added a test image, but no test?
6eb7b43
to
d883ffe
Compare
Thanks @QuLogic, it seems like a commit got dropped somewhere. Should be fixed up now. |
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.
I see some of the commits are specifically split out, but others are just clean up; do you want to rebase and squash some of them together?
d883ffe
to
b4e10e6
Compare
e69e199
to
724e80c
Compare
Squashed a bunch of them, feel free to squash further on merge. Thanks! |
PR summary
Closes #10767
This allows for specific control of where the ticks and axis labels are positioned for 3D plots. This is robust to rotating the plots.
There is some refactoring work done here to break out drawing different elements into functions to enable the change, and it made me realize how much axis3d needs some work. Would like to get these upper/lower axes independently customizable, but for now this is a step in the right direction even if it doesn't solve everything.
PR checklist