Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,8 +1741,14 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):
# This transpose will make it easy to obtain the columns.
tX, tY, tZ = np.transpose(X), np.transpose(Y), np.transpose(Z)

rii = list(xrange(0, rows, rstride))
cii = list(xrange(0, cols, cstride))
if rstride:
rii = list(xrange(0, rows, rstride))
else:
rii = []
if cstride:
cii = list(xrange(0, cols, cstride))
else:
cii = []

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