Skip to content

Commit 1696d52

Browse files
committed
Experimentally revert get_colors to the previous behaviour
1 parent 98d1161 commit 1696d52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -804,10 +804,8 @@ def get_colors(c, num):
804804
"""Stretch the color argument to provide the required number *num*."""
805805
if not len(c):
806806
return np.zeros((num, 4))
807-
elif len(c) < num:
808-
return np.broadcast_to(mcolors.to_rgba_array(c), (num, 4))
809807
else:
810-
return mcolors.to_rgba_array(c)
808+
return np.broadcast_to(mcolors.to_rgba_array(c), (num, 4))
811809

812810

813811
def zalpha(colors, zs):

0 commit comments

Comments
 (0)