driver — select a graphics driver
driver(driver_name) current_driver=driver()
This function is used to select a graphics driver, or with no arguments to get the current graphics driver name. The selected driver can be one of the followings:
output to the screen of the computer.
output into Postscript format.
output to the screen of the computer. Same as X11
.
output into XFig format.
output into Gif format.
output into PPM format.
To convert "GIF" or "PPM" files to other image format or for building animation one can use the "convert" program for ImageMagic (http://www.imagemagick.org/)
To redirect the graphic output to a GIF file (which will be written in the current directory), you can use the following example:
driver('GIF'); xinit('mygiffile.gif'); plot3d(); xend(); driver('X11');
For example if one has generated a sequence of Gif files named img*.gif
it is possible to build an animated Gif file (named anim.gif) by
convert -delay 10 img*.gif anim.gif