imat_vtkplot/export (+FEA)


Purpose

Export current display or animation to a file.

Syntax

hplot.export()
hplot.export(FNAME[,MAG][,'transient']

Description

This method exports the current VTK image or animation to a file. It determines the file type based on the filename extension. Valid file types are

.png Portable Network Graphics (recommended)
.tiff Tagged Image File Format
.jpg Joint Photographic Experts Group
.bmp Bitmap
.pnm Portable Any Map
.avi Audio Video Interleave (animation).

 

If the AVI extension is used, the current result animation will be saved. Otherwise a static image will be saved. AVI support is not available on Mac or Linux.

FNAME is an optional string specifying the filename to create. If it is not supplied, is empty, or contains wildcards, you will be prompted for the filename with a graphical file dialog.

MAG is an optional scalar specifying the image magnification for file creation. Higher magnification results in better image quality at the expense of bigger file size. The default is 1.

The optional input string 'transient' directs EXPORT to create a transient animation, regardless of the VTKPLOT menu setting. This is only valid for AVI export.