apps120714_mhddata.mhddata_sample_datapoints
ΒΆ
''' A sample to plot the data point for the flux.
'''
from pyana.pep import mhddata
import numpy as np
def main():
from mayavi import mlab
f = mhddata.Flux1205()
# mlab.points3d(f.xlist(), f.ylist(), f.zlist(), f.flist())
mlab.points3d(f.xlist(), f.ylist(), f.zlist(), f.flist())
# Make and draw sphere.
gany = mlab.points3d(0, 0, 0, scale_mode='none', scale_factor=2,
color=(0.6, 0.7, 0.9), resolution=50,
opacity=0.7, name='ganymede')
if __name__ == "__main__":
main()