Repository navigation
DOC: Add an example for 2D images in 3D plots - #28280
Merged
Merged
Conversation
scottshambaugh
approved these changes
May 23, 2024
| A fundamental limitation of the 3D plotting engine is that intersecting objects cannot | ||
| be drawn correctly. One object will always be drawn after the other. Therefore, | ||
| multiple image planes can well be used in the background as shown in this example. | ||
| But this approach is not suitable if the planes intersect. |
Contributor
There was a problem hiding this comment.
I think this is a good paragraph to include, this "2.5D" renderer behavior is non-obvious, and we should mention it as often as possible IMO.
Member
There was a problem hiding this comment.
Yeah, I also think this is great - it explains why this needs to be a separate example and so will be nice to link to off the intersecting example (and they can all have the same tag https://matplotlib.org/devdocs/devel/tag_guidelines.html )
| imshow3d(ax, data_yz, value_direction='x', cmap='magma') | ||
| imshow3d(ax, data_zx, value_direction='y', pos=ny, cmap='plasma') | ||
|
|
||
| plt.show() |
Contributor
Member
Author
There was a problem hiding this comment.
I slightly favor leaving it as is:
- Less optional configuration code keeps the example more readable
- I like that the planes are floating above the axes cube. This is a slight visual hint that the images are not tied to the cube and can theoretically be anywhere.
meeseeksmachine
pushed a commit
to meeseeksmachine/matplotlib
that referenced
this pull request
May 23, 2024
rcomer
added a commit
that referenced
this pull request
May 23, 2024
…280-on-v3.9.x Backport PR #28280 on branch v3.9.x (DOC: Add an example for 2D images in 3D plots)
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Serving
Originally posted by @story645 in #28239 (comment)