22 Mar 2012 21:12
Question on Mayavi scene in interactive GUI
Andreas <andreasl <at> club.lemonde.fr>
2012-03-22 20:12:00 GMT
2012-03-22 20:12:00 GMT
Hello,
How would something like https://mail.enthought.com/pipermail/enthought-dev/2011-November/030194.html
integrate with http://github.enthought.com/mayavi/mayavi/auto/example_mlab_interactive_dialog.html ?
E.g. to have a slider control node size via node_size.
In
plot3d returns a pipeline. I have a variant of plot_graph (from the first link) placed in its own imported module, and call it with something like m3Dg.plot_graph(). What should this return for the output to be assignable to self.plot, given that it plots a number of separate things (tubes, nodes, etc.)? Or does that not make sense - would m3Dg.plot_graph() output a scene rather than a plot?
One could perhaps call each of the things plotted by plot.graph() separately. But then you would lose the nice packaging away of plot_graph() in its own module; and also, what would each of the return values be assigned to? I imagine self.plot can only be one thing?
Sorry if my question is confused, it's a bit overwhelming.
thanks,
Andreas
How would something like https://mail.enthought.com/pipermail/enthought-dev/2011-November/030194.html
integrate with http://github.enthought.com/mayavi/mayavi/auto/example_mlab_interactive_dialog.html ?
E.g. to have a slider control node size via node_size.
In
self.plot=self.scene.mlab.plot3d(x,y,z,t,tube_radius=0.025,colormap='Spectral')
plot3d returns a pipeline. I have a variant of plot_graph (from the first link) placed in its own imported module, and call it with something like m3Dg.plot_graph(). What should this return for the output to be assignable to self.plot, given that it plots a number of separate things (tubes, nodes, etc.)? Or does that not make sense - would m3Dg.plot_graph() output a scene rather than a plot?
One could perhaps call each of the things plotted by plot.graph() separately. But then you would lose the nice packaging away of plot_graph() in its own module; and also, what would each of the return values be assigned to? I imagine self.plot can only be one thing?
Sorry if my question is confused, it's a bit overwhelming.
thanks,
Andreas
------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________ MayaVi-users mailing list MayaVi-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users
RSS Feed