Elffuss BraidHub

kikocis/auto-code-rover public

main · 849 BRawPermalink
1diff --git a/lib/mpl_toolkits/mplot3d/art3d.py b/lib/mpl_toolkits/mplot3d/art3d.py
2--- a/lib/mpl_toolkits/mplot3d/art3d.py
3+++ b/lib/mpl_toolkits/mplot3d/art3d.py
4@@ -867,9 +867,19 @@ def set_alpha(self, alpha):
5 self.stale = True
6
7 def get_facecolor(self):
8+ # docstring inherited
9+ # self._facecolors2d is not initialized until do_3d_projection
10+ if not hasattr(self, '_facecolors2d'):
11+ self.axes.M = self.axes.get_proj()
12+ self.do_3d_projection()
13 return self._facecolors2d
14
15 def get_edgecolor(self):
16+ # docstring inherited
17+ # self._edgecolors2d is not initialized until do_3d_projection
18+ if not hasattr(self, '_edgecolors2d'):
19+ self.axes.M = self.axes.get_proj()
20+ self.do_3d_projection()
21 return self._edgecolors2d
22
23