リビジョン | 5cb1bd8caa8738146a409002975fe3ca0a5c3ebc (tree) |
---|---|
日時 | 2008-11-05 03:44:08 |
作者 | iselllo |
コミッター | iselllo |
This code loads and plot an aggregate from one of my simulations.
@@ -0,0 +1,16 @@ | ||
1 | +#! /usr/bin/env python | |
2 | + | |
3 | + | |
4 | +import numpy as np | |
5 | +from enthought.mayavi import mlab | |
6 | + | |
7 | +x, y, z = np.loadtxt('cluster_save.dat').T | |
8 | +# mlab.points3d(x, y, z) | |
9 | +# mlab.show() | |
10 | + | |
11 | + | |
12 | +mlab.clf() | |
13 | +pts = mlab.points3d(x, y, z, scale_mode='none', resolution=20, color=(0,0,1)) | |
14 | +#mlab.axes(pts) | |
15 | + | |
16 | +mlab.show() |