You have to manipulate the camera which is a
enthought.pyface.tvtk.decorated_scene.DecoratedScene object
if fig is a figure window handle returned from mlab.figure()
remember to call fig.renwin.render() to see the changes
enthought.pyface.tvtk.decorated_scene.DecoratedScene object
if fig is a figure window handle returned from mlab.figure()
fig.renwin.camera.position
fig.renwin.camera.window_center
fig.renwin.camera.azimuth(..) rotate scene by .. degrees
fig.renwin.camera.elevation(..) rotate scene by .. degrees
fig.renwin.camera.zoom(..) zoom in/out
fig.renwin.reset_zoom()
fig.renwin.isometric_view()
remember to call fig.renwin.render() to see the changes
Comments
Post a Comment