-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Setting an alpha value to a Poly3DCollection #10237
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
Labels
Milestone
Comments
DanielMatu
added a commit
to DanielMatu/matplotlib
that referenced
this issue
Feb 16, 2018
in Poly3DCollection's set_alpha method, facecolor was getting updated when facecolors3d should have been updated instead.
JZCJackson
added a commit
to JZCJackson/matplotlib
that referenced
this issue
Mar 10, 2018
Just to get this straight: Are there now two PRs
both trying to fix this simultaneously? |
6 tasks
jklymak
pushed a commit
to jklymak/matplotlib
that referenced
this issue
Mar 3, 2019
in Poly3DCollection's set_alpha method, facecolor was getting updated when facecolors3d should have been updated instead.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to create a semitransparent
Poly3DCollection
fails as shown in the following.It gives the following output, which still has an alpha of 1.
Non-Working options
Now one may try several things. The following is not working:
Setting facecolor and alpha individually, facecolor first,
Setting facecolors and alpha at instantiation
Working options
However, each of the following is correctly giving a semitransparent artist. This would be the expected outcome for any of the above as well.
Setting facecolor and alpha individually, alpha first,
Setting alpha at instantiation, facecolor afterwards
Setting facecolor and alpha at instantiation
It seems there had been a similar bug in previous versions, https://stackoverflow.com/questions/18897786/transparency-for-poly3dcollection-plot-in-matplotlib which was reported to be fixed in the meantime but might have been reintroduced in a newer version.
In the 2D case the following works as expected and produces a semtransparent artist.
[All of the code in this issue has been tested with matplotlib 2.1]
The text was updated successfully, but these errors were encountered: