mirror of
https://github.com/Estom/notes.git
synced 2026-04-01 18:11:42 +08:00
matplotlib & pandas
This commit is contained in:
27
Python/matplotlab/gallery/mplot3d/wire3d.md
Normal file
27
Python/matplotlab/gallery/mplot3d/wire3d.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 3D线框图
|
||||
|
||||
线框图的一个非常基本的演示。
|
||||
|
||||

|
||||
|
||||
```python
|
||||
from mpl_toolkits.mplot3d import axes3d
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
fig = plt.figure()
|
||||
ax = fig.add_subplot(111, projection='3d')
|
||||
|
||||
# Grab some test data.
|
||||
X, Y, Z = axes3d.get_test_data(0.05)
|
||||
|
||||
# Plot a basic wireframe.
|
||||
ax.plot_wireframe(X, Y, Z, rstride=10, cstride=10)
|
||||
|
||||
plt.show()
|
||||
```
|
||||
|
||||
## 下载这个示例
|
||||
|
||||
- [下载python源码: wire3d.py](https://matplotlib.org/_downloads/wire3d.py)
|
||||
- [下载Jupyter notebook: wire3d.ipynb](https://matplotlib.org/_downloads/wire3d.ipynb)
|
||||
Reference in New Issue
Block a user