Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba7af99

Browse files
committed
Restore np.array call
1 parent 4ea6820 commit ba7af99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None,
17131713
# many elements as polys. In the former case new_colset results in
17141714
# a list with None entries, that is discarded later.
17151715
for p, col in itertools.zip_longest(polys, colset):
1716-
new_poly = p[np.isfinite(p).all(axis=1)].copy()
1716+
new_poly = np.array(p)[np.isfinite(p).all(axis=1)]
17171717
if len(new_poly):
17181718
new_polys.append(new_poly)
17191719
new_colset.append(col)

0 commit comments

Comments
 (0)