Révision | 5cb1bd8caa8738146a409002975fe3ca0a5c3ebc |
---|---|
Taille | 281 octets |
l'heure | 2008-11-05 03:44:08 |
Auteur | iselllo |
Message de Log | 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()