- Download and run Enthought Enstaller.
It pulls of various things from Enthought's website and installs them in the site-pacages etc. Crucially it will put enstaller.exe under \python25\Scripts - Run enstaller.exe
- In the GUI tab to repositories and check Mavavi, VTK, enthought.traits, enthought.tvtk, wxPython
- click install packages
- change ipython to run with wthread commandline option (ipython -wthread)
- follow any number of examples from the cookbook for mlab
from enthought.tvtk.tools import mlab
fig = mlab.figure(browser = False)
mlab.test_surf(fig) #a built in test function for a nice looking surface
t = mlab.Title()#add a title object
t.text = 'Ha'
fig.add(t)
fig.pop() #remove the last added object (in this case the title)
fig.renwin.camera.window_center =
fig.renwin.save('tada.png') #save the figure to png
Useful links:
Comments
Post a Comment