8000 Wireframe allows for just one dimension of slide now · matplotlib/matplotlib@994f167 · GitHub
[go: up one dir, main page]

Skip to content

Commit 994f167

Browse files
hugadamsjenshnielsen
authored andcommitted
Wireframe allows for just one dimension of slide now
1 parent 263c06a commit 994f167

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,14 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):
17481748
# This transpose will make it easy to obtain the columns.
17491749
tX, tY, tZ = np.transpose(X), np.transpose(Y), np.transpose(Z)
17501750

1751-
rii = list(xrange(0, rows, rstride))
1752-
cii = list(xrange(0, cols, cstride))
1751+
if rstride:
1752+
rii = list(xrange(0, rows, rstride))
1753+
else:
1754+
rii = []
1755+
if cstride:
1756+
cii = list(xrange(0, cols, cstride))
1757+
else:
1758+
cii = []
17531759

17541760
# Add the last index only if needed
17551761
if rows > 0 and rii[-1] != (rows - 1) :

0 commit comments

Comments
 (0)
0