# HG changeset patch # User Ben Abbott # Date 1287401556 -28800 # Node ID 811b51cdddce443d0c54922f752b2b95bb34ed00 # Parent 36c18286a61bce14104cb60c3786ca739eba129b print.m: Add examples to the docstring. diff -r 36c18286a61b -r 811b51cdddce scripts/ChangeLog --- a/scripts/ChangeLog Mon Oct 18 02:41:21 2010 -0400 +++ b/scripts/ChangeLog Mon Oct 18 19:32:36 2010 +0800 @@ -1,3 +1,7 @@ +2010-10-18 Ben Abbott + + * plot/print.m: Add examples to the docstring. + 2010-10-18 John W. Eaton * plot/private/__errplot__.m: Remove debugging statement from diff -r 36c18286a61b -r 811b51cdddce scripts/plot/print.m --- a/scripts/plot/print.m Mon Oct 18 02:41:21 2010 -0400 +++ b/scripts/plot/print.m Mon Oct 18 19:32:36 2010 +0800 @@ -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)