comparison scripts/plot/print.m @ 14456:05635e4c605a

Improve documentation for print(). * plot.txi * print.m
author Ben Abbott <bpabbott@mac.com>
date Sun, 11 Mar 2012 20:54:47 -0400
parents e2306a8e054c
children cd375519eab0
comparison
equal deleted inserted replaced
14455:c57f9c911053 14456:05635e4c605a
19 ## -*- texinfo -*- 19 ## -*- texinfo -*-
20 ## @deftypefn {Function File} {} print () 20 ## @deftypefn {Function File} {} print ()
21 ## @deftypefnx {Function File} {} print (@var{options}) 21 ## @deftypefnx {Function File} {} print (@var{options})
22 ## @deftypefnx {Function File} {} print (@var{filename}, @var{options}) 22 ## @deftypefnx {Function File} {} print (@var{filename}, @var{options})
23 ## @deftypefnx {Function File} {} print (@var{h}, @var{filename}, @var{options}) 23 ## @deftypefnx {Function File} {} print (@var{h}, @var{filename}, @var{options})
24 ## Print a graph, or save it to a file 24 ## Print a graph, or save it to a file. Both output formatted for
25 ## 25 ## printing (PDF and PostScript), and many bitmapped and vector
26 ## @var{filename} defines the file name of the output file. If the 26 ## image formats are supported.
27 ## file name has no suffix, one is inferred from the specified
28 ## device and appended to the file name. If no
29 ## filename is specified, the output is sent to the printer.
30 ## 27 ##
31 ## @var{h} specifies the figure handle. If no handle is specified 28 ## @var{h} specifies the figure handle. If no handle is specified
32 ## the handle for the current figure is used. 29 ## the handle for the current figure is used.
33 ## 30 ##
34 ## @var{options}: 31 ## @var{filename} defines the name of the output file. If the
32 ## file name has no suffix, one is inferred from the specified
33 ## device and appended to the file name. If no filename is
34 ## specified, the output is sent to the printer.
35 ##
36 ## For output to a printer, to a PostScript file, or a PDF file,
37 ## the paper size is specified by the figure's @code{papersize}
38 ## property. The location and size of the image on the page are
39 ## specified by the figure's @code{paperposition} property. The
40 ## orientation of the page is specified by the figure's
41 ## @code{paperorientation} property.
42 ##
43 ## The width and height of images are specified by the figure's
44 ## @code{paperpositon(3:4)} property values.
45 ##
46 ## The @code{print} command supports several @var{options}:
35 ## 47 ##
36 ## @table @code 48 ## @table @code
37 ## @item -f@var{h} 49 ## @item -f@var{h}
38 ## Specify the handle, @var{h}, of the figure to be printed. The 50 ## Specify the handle, @var{h}, of the figure to be printed. The
39 ## default is the current figure. 51 ## default is the current figure.