MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_alpha

Method set_alpha

lib/mpl_toolkits/mplot3d/art3d.py:1523–1536  ·  view source on GitHub ↗
(self, alpha)

Source from the content-addressed store, hash-verified

1521 self._edgecolor3d = PolyCollection.get_edgecolor(self)
1522
1523 def set_alpha(self, alpha):
1524 # docstring inherited
1525 artist.Artist.set_alpha(self, alpha)
1526 try:
1527 self._facecolor3d = mcolors.to_rgba_array(
1528 self._facecolor3d, self._alpha)
1529 except (AttributeError, TypeError, IndexError):
1530 pass
1531 try:
1532 self._edgecolors = mcolors.to_rgba_array(
1533 self._edgecolor3d, self._alpha)
1534 except (AttributeError, TypeError, IndexError):
1535 pass
1536 self.stale = True
1537
1538 def get_facecolor(self):
1539 # docstring inherited

Callers 6

barMethod · 0.45
set_pane_colorMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by 3