8000 Cast to np.array earlier (in `set_3d_properties`) · matplotlib/matplotlib@f88d1f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f88d1f6

Browse files
committed
Cast to np.array earlier (in set_3d_properties)
1 parent 0076141 commit f88d1f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def set_3d_properties(self, zs, zdir):
545545
#
546546
# Grab the current sizes and linewidths to preserve them.
547547
self._sizes3d = self._sizes
548-
self._linewidths3d = self._linewidths
548+
self._linewidths3d = np.array(self._linewidths)
549549
xs, ys, zs = self._offsets3d
550550

551551
# Sort the points based on z coordinates
@@ -600,7 +600,7 @@ def do_3d_projection(self):
600600
self._sizes = self._sizes3d[z_markers_idx]
601601

602602
if len(self._linewidths3d) > 1:
603-
self._linewidths = np.array(self._linewidths3d)[z_markers_idx]
603+
self._linewidths = self._linewidths3d[z_markers_idx]
604604

605605
# Re-order items
606606
vzs = vzs[z_markers_idx]

0 commit comments

Comments
 (0)
0