Hi there, thanks for all the answers and hints.
I think I've got the majority of things properly up, however I'm trying to figure out how to add the colorbar https://gist.github.com/829727#file_example.py I didn't find which object I should pass to the scalarbar function. The funny bit is, if I activate the legend automatically add a color bar which seems to make no sense, however I can select point_data from the second tab and the proper colormap is displayed. However the outline seems to add app, together with a general outline which wrap everything is drawn. I think it should be easy to fix, I just need to pass the object I want to colour and display one outline per time. What I'm missing? Thanks, Michele On Wed, Feb 16, 2011 at 8:16 PM, Gael Varoquaux <gael.varoqu...@normalesup.org> wrote: > On Wed, Feb 16, 2011 at 08:03:49PM +0000, Michele Mattioni wrote: >> Can I then pick each cylinder and change the colour of the selected ones? > > Yes. You need to use the point picker, then identify the point id and > find to which clyinder it corresponds, and change the associated scalar. > > The following example might be useful: > http://enthought.github.com/mayavi/mayavi/auto/example_select_red_balls.html > One hint: you have no glyphs, but the individual cylinders play the same > role. > > I suspect that, once you get it working, this should be more efficient > than your current way of doing this. > > HTH, > > G > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users