Re: [MayaVi-users] how to update a scalar array if it's not available with m_lab.scalars

2011-05-04 Thread Michele Mattioni
On Wed, May 4, 2011 at 3:49 PM, Gael Varoquaux wrote: > On Wed, May 04, 2011 at 03:43:19PM +0100, Michele Mattioni wrote: >> Forgot to attach the link to the code! >> https://gist.github.com/955320 > > OK, as you are not directly using the mlab_source scalars, the pipeline > refresh is not trigger

Re: [MayaVi-users] how to update a scalar array if it's not available with m_lab.scalars

2011-05-04 Thread Gael Varoquaux
On Wed, May 04, 2011 at 03:43:19PM +0100, Michele Mattioni wrote: > Forgot to attach the link to the code! > https://gist.github.com/955320 OK, as you are not directly using the mlab_source scalars, the pipeline refresh is not triggered right. Try to add something like 'tube.update_pipeline()' or

Re: [MayaVi-users] how to update a scalar array if it's not available with m_lab.scalars

2011-05-04 Thread Gael Varoquaux
On Wed, May 04, 2011 at 03:42:36PM +0100, Michele Mattioni wrote: > The only difference I can spot is the drawing pipeline.. > I'm using a lines pipeline > lines = mlab.pipeline.surface(src2) > instead of surface one > mlab.pipeline.surface(contour2, colormap='hsv') Are you sure that

Re: [MayaVi-users] how to update a scalar array if it's not available with m_lab.scalars

2011-05-04 Thread Michele Mattioni
Forgot to attach the link to the code! https://gist.github.com/955320 On Wed, May 4, 2011 at 3:42 PM, Michele Mattioni wrote: > Dear Mayavi ML, > > I'm wondering if somebody has an hint how to change a scalar array > when is not offered by the mlab.mlab_source.scalars > > In specific I'm trying t

[MayaVi-users] how to update a scalar array if it's not available with m_lab.scalars

2011-05-04 Thread Michele Mattioni
Dear Mayavi ML, I'm wondering if somebody has an hint how to change a scalar array when is not offered by the mlab.mlab_source.scalars In specific I'm trying to change a second scalar, following the atomic orbital http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/examp