{{ message }}
FIX: size and color rendering for Path3DCollection - #19812
Merged
Merged
Conversation
QuLogic
reviewed
Mar 30, 2021
tacaswell
marked this pull request as ready for review
March 30, 2021 22:42
Member
Member
Author
Member
Author
|
No, I jumped to conclusion, but it is an easy fix. Running a full docs build locally before pushing. |
Member
|
I think you're running into the same issue as #18932 did, namely that legend copies the class, and so creates a 3D collection for its legend handle, without doing any of the 3D work. |
Member
Author
|
I think this is slightly different, the problem is it is actually creating a the 3D class, rather than the slightly-upsetting matplotlib/lib/mpl_toolkits/mplot3d/art3d.py Lines 705 to 728 in bba76b8 __init__ which bounced to the super class which tries to set the linewidth before setup the 3D stuff.
|
Member
Author
QuLogic
approved these changes
Mar 31, 2021
QuLogic
left a comment
Member
There was a problem hiding this comment.
I have minor comments, and I'll leave this open for a little bit in case anyone else is able to review.
QuLogic
reviewed
Mar 31, 2021
This fixes matplotlib#19787 This modifies the way we manage internal depth sorting of elements in the 3D collections. We need to both preserve the original order (so we can keep the position, size, colour, ... in sync), but present each of them to the 2D rendering code in depth order (back to front). In some cases we can handle this by sorting the values in the getter methods and in others we have to keep a cache of both the sorted (the names used by the 2D code) and unsorted (post-fixed with 3d) data. It does not appear that Line3DCollection does any of the z-sorting that the other collections do. While definitely a limitation and produces MC Escher effects, this is out of scope of the current work. The z-sorting on Poly3DCollection is significantly more sophisticated than the sorting on Path3DCollection and Patch3DCollection so it is handled differently. Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
tacaswell
force-pushed
the
fix_scatter3D
branch
from
March 31, 2021 04:01
5a6411d to
f888285
Compare
QuLogic
added a commit
to QuLogic/matplotlib
that referenced
this pull request
Mar 31, 2021
QuLogic
added a commit
that referenced
this pull request
Mar 31, 2021
Backport PR #19812: FIX: size and color rendering for Path3DCollection
2 tasks
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.

PR Summary
This fixes both bugs identified in #19787
Still needs test and the tactic should be expanded to the other *Collections before we merge.