Save graphic object h to the file filename in graphic format fmt.
fmt should be one of the following formats:
ps
PostScript
eps
Encapsulated PostScript
jpg
JPEG Image
png
PNG Image
emf
Enhanced Meta File
pdf
Portable Document Format
All device formats specified in print
may also be used. If
fmt is omitted it is extracted from the extension of filename.
The default format is "pdf"
.
clf (); surf (peaks); saveas (1, "figure1.png");
See also: print, hgsave, orient.
Package: octave