-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Place 3D contourf patches between levels #21026
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
88106bb
to
f29b5be
Compare
After this change (which seems otherwise correct), the topmost contour surface ends up above the axis zmax (this can be checked e.g. running |
bef1f2c
to
0809531
Compare
I've fixed the limits - it's not a very elegant solution (having to manually calculate the limits, see comments I left in the code), but it works... |
Looks good to me, except for perhaps the style thing above (and modulo CI). |
0809531
to
876022e
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.
let's perhaps give @timhoffm time to re-review if he wants (or say he doesn't care :-)), as there were some changes.
8351cf1
to
11493d8
Compare
11493d8
to
44e04d8
Compare
…026-on-v3.5.x Backport PR #21026 on branch v3.5.x (Place 3D contourf patches between levels)
Place 3D contourf patches between levels
Place 3D contourf patches between levels
PR Summary
When doing a
contourf
, each polygon represents data between two levels. When setting a z-value for these polygons in 3D, previously the lower level would be chosen. This PR changes that to set the z-value to be the midpoint of the two levels. Also adds support for extensions by linearly interpolating the midpoints of the first and last levels.Fixes #21016
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).