Contents Previous Next Subchapters

Saving a Graphic to a File
Syntax gcopy(fileformat)
See Also gprint , gcopy

Saves the current graphic window to a file. The argument file must be a character row vector that is a valid filename. The argument format must be one of the following graphic file formats: "bmp", "gif", "png", "tif", or "jpg".

If you enter
     x = seq(10)
     gplot(x, x^2)
     gsave("xsquared.png", "png")
O-Matrix will create the PNG format image file, xsquared.png in your current working directory.