Skip to content

Commit 22474c5

Browse files
Bugfix
1 parent 5a56329 commit 22474c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def do_3d_projection(self):
455455
all_points = np.ma.vstack(segments)
456456
masked_points = np.ma.column_stack([*_viewlim_mask(*all_points.T,
457457
self.axes)])
458-
segment_lengths = [segment.shape[0] for segment in segments]
458+
segment_lengths = [np.asanyarray(segment).shape[0] for segment in segments]
459459
segments = np.split(masked_points, np.cumsum(segment_lengths[:-1]))
460460
xyslist = [proj3d._proj_trans_points(points, self.axes.M)
461461
for points in segments]

0 commit comments

Comments
 (0)