Re: [MayaVi-users] Question on Mayavi scene in interactive GUI

2012-03-23 Thread Andreas
On Fri 23 Mar 2012 05:55:43 GMT, Gael Varoquaux wrote: > On Fri, Mar 23, 2012 at 12:39:35AM +, Andreas wrote: >> Right, thanks... how to make the association with the scene though? > >> self.plot_edges, self.plot_nodes = m3Dg.plot_graph(<> ) > > Rewrite the function so that it takes self.m3Dg

Re: [MayaVi-users] Question on Mayavi scene in interactive GUI

2012-03-22 Thread Gael Varoquaux
On Fri, Mar 23, 2012 at 12:39:35AM +, Andreas wrote: > Right, thanks... how to make the association with the scene though? > self.plot_edges, self.plot_nodes = m3Dg.plot_graph(<> ) Rewrite the function so that it takes self.m3Dg as an argument and uses m3Dg.mlab instead of mlab inside the fun

Re: [MayaVi-users] Question on Mayavi scene in interactive GUI

2012-03-22 Thread Andreas
On 22/03/12 21:24, Gael Varoquaux wrote: > On Thu, Mar 22, 2012 at 08:12:00PM +, 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 wo

Re: [MayaVi-users] Question on Mayavi scene in interactive GUI

2012-03-22 Thread Gael Varoquaux
On Thu, Mar 22, 2012 at 08:12:00PM +, 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