On 22/03/12 21:24, Gael Varoquaux wrote: > On Thu, Mar 22, 2012 at 08:12:00PM +0000, Andreas wrote: >> 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? > Return two things from plot_graph: pts and tube_surf. Assign them to two > different attributes of your objects. One will be the pipeline > corresponding to the tubes, the other to nodes. You will be able to > control the properties of both in a similar way than the interactive > example. > > HTH, > > Gael
Right, thanks... how to make the association with the scene though? self.plot_edges, self.plot_nodes = m3Dg.plot_graph(<<params>> ) opens a separate window for the plotting, and subsequently changing the slider does not update it. self.scene.m3Dg.plot_graph() does not work either, logically (?) cheers, 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users