8000 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. 8000
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add example of new zero stride wire3d plots
  • Loading branch information
jenshnielsen committed Aug 1, 2015
commit 2375009323c49e2449ae102e252487e12a0195b5
12 changes: 12 additions & 0 deletions examples/mplot3d/wire3d_zero_stride.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np

fig, [ax1, ax2] = plt.subplots(2, 1, figsize=(8, 12), subplot_kw={'projection': '3d'})
X, Y, Z = axes3d.get_test_data(0.05)
ax1.plot_wireframe(X, Y, Z, rstride=10, cstride=0)
ax1.set_title("Column stride 0")
ax2.plot_wireframe(X, Y, Z, rstride=0, cstride=10)
ax2.set_title("Row stride 0")
plt.tight_layout()
plt.show()
0