Skip to content

Commit f31f205

Browse files
committed
Add comment about new_colset
1 parent 678e912 commit f31f205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,6 +1658,9 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
16581658
new_polys = []
16591659
new_colset = []
16601660

1661+
# Depending on fcolors, colset is either an empty list or has as
1662+
# many elements as polys. In the former case new_colset results in
1663+
# a list with None entries, that is discarded later.
16611664
for p, col in itertools.zip_longest(polys, colset):
16621665
new_poly = np.array(p)[~np.isnan(p).any(axis=1)]
16631666
if len(new_poly):

0 commit comments

Comments
 (0)