绘制如下系统的相图:
from pylab import *
from mpl_toolkits.mplot3d import Axes3D
x, y = meshgrid(arange(-5, 5.5, 0.05), arange(-5, 5.5, 0.05))
z = sin(sqrt(x**2 + y**2))
ax = gca(projection='3d')
ax.plot_surface(x, y, z)
show()
等值线
cp = contour(x, y, z)
clabel(cp)
show()