Menu

[r7974]: / branches / mathtex / examples / mplot3d / contour3d_demo.py  Maximize  Restore  History

Download this file

12 lines (8 with data), 231 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
fig = plt.figure()
ax = axes3d.Axes3D(fig)
X, Y, Z = axes3d.get_test_data(0.05)
cset = ax.contour(X, Y, Z)
ax.clabel(cset, fontsize=9, inline=1)
plt.show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.