8000 Fix xs length · matplotlib/matplotlib@4313f7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4313f7c

Browse files
authored
Fix xs length
The `xs` is a 1D array that may not have a `shape` attribute.
1 parent 108e1b0 commit 4313f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def __init__(self, xs, ys, zs, *args, **kwargs):
172172
def set_3d_properties(self, zs=0, zdir='z'):
173173
xs = self.get_xdata()
174174
ys = self.get_ydata()
175-
zs = np.broadcast_to(zs, xs.shape)
175+
zs = np.broadcast_to(zs, len(xs))
176176
self._verts3d = juggle_axes(xs, ys, zs, zdir)
177177
self.stale = True
178178

0 commit comments

Comments
 (0)
0