-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Draw 3D gridlines below axis lines, labels, text, and ticks #25482
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
d324b9a
to
2d7bedd
Compare
2d7bedd
to
b5ee76a
Compare
Have you confrmed that this looks correct when grid lines are disabled? We don't appear to have any tests that turn them off, so I'm uncertain if that's even possible for 3D Axes. |
Oh, btw, can you please change all tests that now require new images to use |
b5ee76a
to
f188b62
Compare
That is just there to enable a transition to |
f188b62
to
793a23e
Compare
Sure thing @oscargus, moved those over. |
793a23e
to
02f6df8
Compare
Thanks! (Although I must admit that I expected more "fundamental" changes when changing the style...) |
Would recommend merging this sooner rather than later, since it will conflict with any MR that modifies the mplot3d test images. |
Add mplot3d test to cover hiding most elements mpl20 style on test images
02f6df8
to
9ac4dfc
Compare
PR Summary
Right now, 3D gridlines are drawn on top of more important elements such as the axis lines, labels, text, and ticks. I consider this a visual bug, as it obscures the information that the user cares about. This PR changes the draw order so that 3D gridlines are above only the 3D axis panes, and below everything else.
This requires updating 53 out of 57 test_axes3d baseline images, all 3 test_label3d baseline images, and 2 other baseline images that used 3D axes. These are minor changes in all instances, and I think these two diffs are the largest & most illustrative (you'll probably want to look at the "Files changed" swipe view for these):
axes3d_primary_views:

axes3d_labelpad:

PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst