Mercurial > hg > octave-lyh
diff scripts/plot/print.m @ 11107:811b51cdddce
print.m: Add examples to the docstring.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 18 Oct 2010 19:32:36 +0800 |
parents | 92bb25c0da9e |
children | a8ac114ec9ab |
line wrap: on
line diff
--- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -229,6 +229,26 @@ ## @end table ## ## The filename and options can be given in any order. +## +## Example: Print to a file, using the svg device. +## +## @example +## figure (1) +## clf () +## surf (peaks) +## print -dsvg figure1.svg +## @end example +## +## Example: Print to an HP Deskjet 550C. +## +## @example +## figure (1) +## clf () +## surf (peaks) +## print -dcdj550 +## @end example +## +## @seealso{figure, orient} ## @end deftypefn function print (varargin)