10000 Null strides wireframe by jenshnielsen · Pull Request #4852 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Null strides wireframe #4852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 3, 2015
Merged
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
Prev Previous commit
Next Next commit
Only try to extend rii and cii when not empty
  • Loading branch information
jenshnielsen committed Aug 1, 2015
commit ba1e33906f80ce34855b0086e29db5d90d28f173
14 changes: 7 additions & 7 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1750,19 +1750,19 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):

if rstride:
rii = list(xrange(0, rows, rstride))
# Add the last index only if needed
if rows > 0 and rii[-1] != (rows - 1) :
rii += [rows-1]
else:
rii = []
if cstride:
if cstride:
cii = list(xrange(0, cols, cstride))
# Add the last index only if needed
if cols > 0 and cii[-1] != (cols - 1) :
cii += [cols-1]
else:
cii = []

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

# If the inputs were empty, then just
# reset everything.
if Z.size == 0 :
Expand Down
0