changeset 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 36c18286a61b
children 78a6016875ed
files scripts/ChangeLog scripts/plot/print.m
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-18  Ben Abbott <bpabbott@mac.com>
+
+	* plot/print.m: Add examples to the docstring.
+
 2010-10-18  John W. Eaton  <jwe@octave.org>
 
 	* plot/private/__errplot__.m: Remove debugging statement from
--- 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)