Navigation

Operators and Keywords

Function List:

C++ API

: hgsave (filename)
: hgsave (h, filename)
: hgsave (h, filename, fmt)

Save the graphics handle h to the file filename in the format fmt.

If unspecified, h is the current figure as returned by gcf.

When filename does not have an extension the default filename extension .ofig will be appended.

If present, fmt should be one of the following:

  • -binary, -float-binary
  • -hdf5, -float-hdf5
  • -V7, -v7, -7, -mat7-binary
  • -V6, -v6, -6, -mat6-binary
  • -text
  • -zip, -z

When producing graphics for final publication use print or saveas. When it is important to be able to continue to edit a figure as an Octave object, use hgsave/hgload.

See also: hgload, hdl2struct, saveas, print.

Package: octave