Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Restore np.array call
  • Loading branch information
LemonBoy committed Jul 31, 2023
commit ba7af999afe4a3a0e8545968c9b6014a57e61026
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None,
# many elements as polys. In the former case new_colset results in
# a list with None entries, that is discarded later.
for p, col in itertools.zip_longest(polys, colset):
new_poly = p[np.isfinite(p).all(axis=1)].copy()
new_poly = np.array(p)[np.isfinite(p).all(axis=1)]
if len(new_poly):
new_polys.append(new_poly)
new_colset.append(col)
Expand Down