Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27f4065

Browse files
DanielMatujklymak
authored andcommitted
fixed transparency bug #10237
in Poly3DCollection's set_alpha method, facecolor was getting updated when facecolors3d should have been updated instead.
1 parent 7875bc5 commit 27f4065

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def set_alpha(self, alpha):
758758
raise TypeError('alpha must be a float or None')
759759
artist.Artist.set_alpha(self, alpha)
760760
try:
761-
self._facecolors = mcolors.to_rgba_array(
761+
self._facecolors3d = mcolors.to_rgba_array(
762762
self._facecolors3d, self._alpha)
763763
except (AttributeError, TypeError, IndexError):
764764
pass

0 commit comments

Comments
 (0)