Hi Juha, > I asked a couple of questions about a memory leak about a month ago > and Gael provided a fix. Except that after adding a vector field to > the mix, his fix stopped working,
If you could send us a small example demonstrating the problem, it would very helpful, as I could try to fix it. > However, it creates another: for some reason, if I replace the data > with the same data, I get a different picture. It is as if one of > the axes (x, I think) had been inverted in the process. I suspect that it is related to the ordering of axis in VTK: the are ordered (z, y, x) and not (x, y, z) as you would adress an array in numpy. The correct way to set VTK data arrays is specified at the bottom of the following section of the documentation: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/data.html#introduction-to-tvtk-datasets Specifically, I suspect that your line: S.mlab_source.set(scalars=phi3.T) should be changed in S.mlab_source.set(scalars=phi3.T.ravel()) However, I am not certain, as I don't know what S is exactly :). If you still have problems, please send me a minimalistic script that runs and reproduces the problem, and I'll try and fix it. Cheers, Gael ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users