-
Notifications
You must be signed in to change notification settings - Fork 818
/
Copy pathplot3d-2.py
29 lines (23 loc) · 816 Bytes
/
plot3d-2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from pylab import *
from mpl_toolkits.mplot3d import axes3d
ax = gca(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
cset = ax.contourf(X, Y, Z)
ax.clabel(cset, fontsize=9, inline=1)
plt.xticks([]), plt.yticks([]),
ax.set_zticks([])
ax.text2D(-0.05, 1.05, " 3D plots \n\n",
horizontalalignment='left',
verticalalignment='top',
family='Lint McCree Intl BB',
size='x-large',
bbox=dict(facecolor='white', alpha=1.0, width=350,height=60),
transform = gca().transAxes)
ax.text2D(-0.05, .975, " Plot 2D or 3D data",
horizontalalignment='left',
verticalalignment='top',
family='Lint McCree Intl BB',
size='medium',
transform = gca().transAxes)
plt.savefig('../figures/plot3d.png', dpi=64)
plt.show()