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

Skip to content

Commit 5a49f09

Browse files
committed
set_3d_properties: use zs data type
1 parent 74c78e7 commit 5a49f09

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
@@ -156,7 +156,7 @@ def set_3d_properties(self, zs=0, zdir='z'):
156156
try:
157157
len_zs = len(zs)
158158
except TypeError: # object of type 'int' has no len()
159-
zs = np.full_like(xs, fill_value=zs)
159+
zs = np.full(xs.shape, fill_value=zs)
160160
else:
161161
len_xs = len(xs)
162162
if len_zs != len_xs:

0 commit comments

Comments
 (0)