Skip to content
Closed
Changes from 1 commit
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
Next Next commit
Wireframe allows for just one dimension of slide now
  • Loading branch information
hugadams committed Sep 22, 2014
commit 2cd6215502de87ce668c35a704b6008b6d9c08db
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 rii:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is undefined at this point, isn't it?

rii = list(xrange(0, rows, rstride))
else:
rii = []
if cii:
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