Skip to content

Commit 07336eb

Browse files
committed
BUG: Fix Axes3D.plot_surface with no edgecolor (Fixes #7313)
Empty edge color array was being improperly repeated after being set to match the face colors.
1 parent 0030e7a commit 07336eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@ def do_3d_projection(self, renderer):
621621
if len(cedge) != len(xyzlist):
622622
if len(cedge) == 0:
623623
cedge = cface
624-
cedge = cedge.repeat(len(xyzlist), axis=0)
624+
else:
625+
cedge = cedge.repeat(len(xyzlist), axis=0)
625626

626627
# if required sort by depth (furthest drawn first)
627628
if self._zsort:

0 commit comments

Comments
 (0)