On Fri, Feb 15, 2013 at 12:05:24PM +0000, Matthias Schmerl wrote: > I have a pattern with nodes and want to plot their index number with > mayavi. At the moment i do this with text3d. It looks nice but i have > to run text3d for every single node. So first question: Is their any > better way to do such things?
Not that I know, unfortunately. I had the same problem a while ago and didn't find a more efficient option. > And if not, my second problem is, when i'm updating the position of my > nodes, i have to change the position of the labels too, but i have to > do this for every single node label. So the problem is, mayavi is > rendering the scene after every single updated label, so it's running > very slowly. How can i stop mayavi rendering the scene, so i can update > my labels at first? Yes, you can do this using scene.disable_render = True: http://docs.enthought.com/mayavi/mayavi/tips.html#accelerating-a-mayavi-script for instance: figure = mlab.gcf() figure.scene.disable_render = True Hope this helps, Gaƫl ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users