修訂. | 5cb1bd8caa8738146a409002975fe3ca0a5c3ebc |
---|---|
大小 | 281 bytes |
時間 | 2008-11-05 03:44:08 |
作者 | iselllo |
Log Message | This code loads and plot an aggregate from one of my simulations. |
#! /usr/bin/env python
import numpy as np
from enthought.mayavi import mlab
x, y, z = np.loadtxt('cluster_save.dat').T
# mlab.points3d(x, y, z)
# mlab.show()
mlab.clf()
pts = mlab.points3d(x, y, z, scale_mode='none', resolution=20, color=(0,0,1))
#mlab.axes(pts)
mlab.show()