处理/显示图形的mlab模块
2. Mayavi的api
2....,-1,-1,-1],[1,1,1,1,1]]
z = [[1,1,-1,-1,1],[1,1,-1,-1,1]]
s = mlab.mesh(x,y,z)
mlab.show()
效果:
只显示框的话...mlab.show()
效果:
实例代码2:
from numpy import pi,sin,cos,mgrid
from mayavi import mlab
#建立数据
dphi, dtheta...= 'gist_earth')
mlab.show()
效果:
4. surf
实现代码1:
from mayavi import mlab
import numpy as np
def f(...(x, y, f)
mlab.show()
效果:
实现代码2:
from mayavi import mlab
import numpy as np
def f(x, y):
return