python pip install visvis python import numpy as np import visvis as vv python x = np.arange(-5, 5, 0.1) y = np.arange(-5, 5, 0.1) X, Y = np.meshgrid(x, y) Z = np.sin(np.sqrt(X ** 2 + Y ** 2)) python f = vv.figure() a = vv.imshow(Z, clim=(-1, 1)) t = vv.title('3D Data Visualization with visvis') c = vv.colorbar() python a.colormap = 'jet' c.visible = False a.interpolate = True vv.xlabel('X') vv.ylabel('Y') vv.zlabel('Z') vv.axis('equal') vv.turnCamera(270, 30) python vv.process() python import numpy as np import visvis as vv x = np.arange(-5, 5, 0.1) y = np.arange(-5, 5, 0.1) X, Y = np.meshgrid(x, y) Z = np.sin(np.sqrt(X ** 2 + Y ** 2)) f = vv.figure() a = vv.imshow(Z, clim=(-1, 1)) t = vv.title('3D Data Visualization with visvis') c = vv.colorbar() a.colormap = 'jet' c.visible = False a.interpolate = True vv.xlabel('X') vv.ylabel('Y') vv.zlabel('Z') vv.axis('equal') vv.turnCamera(270, 30) vv.process()


上一篇:
下一篇:
切换中文