On Tue, Nov 24, 2009 at 11:17:24PM +0900, srinivas zinka wrote:
> Hello,
> I am new to Mayavi2.
> I imported some VTK data into "Mayavi application" and successfully
> exported resulting plots into different possible formats (for example,
> raster:png, vector:eps, pdf).
> Now, I plotted one simple plot by scripting (using mlab) ...
> But, this time I have only one choice (png) to save the plots.
> I would like to know if there is anyway to export plots (using mlab) to
> vector graphics format ?
I am not sure why you are having difficulties. The follwing works for me:
from enthought.mayavi import mlab
mlab.clf()
mlab.test_surf()
mlab.savefig('test.pdf')
One piece of warning, however, the files created are huge and quite hard
to handle for the pdf readers. I must admit I don't use this
functionnality.
HTH,
Gaƫl
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users