From bug-request at octave dot org Sat Apr 15 14:26:19 2006 Subject: Add reference to print in plot doc From: "Keith Goodman" To: "bug at octave dot org" Date: Sat, 15 Apr 2006 12:24:36 -0700 ------=_Part_11013_13657037.1145129076335 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This patch adds a reference to the print command in the doc string of plot. I placed it after the first paragraph since "how to save a plot" is a frequently asked question. Here's the added paragraph: To save a plot, in one of several image formats such as png, use the `print' command. ------=_Part_11013_13657037.1145129076335 Content-Type: text/x-patch; name=plot.m.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em2bym1c Content-Disposition: attachment; filename="plot.m.patch" 2006-04-15 Keith Goodman * plot/plot.m: Doc string fix. ? plot.m.patch Index: scripts/plot/plot.m =================================================================== RCS file: /cvs/octave/scripts/plot/plot.m,v retrieving revision 1.31 diff -u -r1.31 plot.m --- scripts/plot/plot.m 6 Mar 2006 21:26:50 -0000 1.31 +++ scripts/plot/plot.m 15 Apr 2006 19:19:21 -0000 at @ -31,6 +31,9 @@ ## at var{x} coordinates are taken to be the indices of the elements, ## starting with 1. ## +## To save a plot, in one of several image formats such as png, use the +## at code{print} command. +## ## If more than one argument is given, they are interpreted as ## ## at example at @ -163,7 +166,7 @@ ## This will plot the cosine and sine functions and label them accordingly ## in the key. ## at seealso{semilogx, semilogy, loglog, polar, mesh, contour, __pltopt__ -## bar, stairs, errorbar, replot, xlabel, ylabel, title} +## bar, stairs, errorbar, replot, xlabel, ylabel, title, print} ## at end deftypefn ## Author: jwe ------=_Part_11013_13657037.1145129076335-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------