Mercurial > hg > octave-lyh
comparison scripts/plot/plot.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 5f0bb45e615c |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
21 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}) | 21 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}) |
22 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}, @var{property}, @var{value}, @dots{}) | 22 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}, @var{property}, @var{value}, @dots{}) |
23 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}, @var{fmt}) | 23 ## @deftypefnx {Function File} {} plot (@var{x}, @var{y}, @var{fmt}) |
24 ## @deftypefnx {Function File} {} plot (@var{h}, @dots{}) | 24 ## @deftypefnx {Function File} {} plot (@var{h}, @dots{}) |
25 ## @deftypefnx {Function File} {@var{h} =} plot (@dots{}) | 25 ## @deftypefnx {Function File} {@var{h} =} plot (@dots{}) |
26 ## Produce two-dimensional plots. | 26 ## Produce two-dimensional plots. |
27 ## | 27 ## |
28 ## Many different combinations of arguments are possible. The simplest | 28 ## Many different combinations of arguments are possible. The simplest |
29 ## form is | 29 ## form is |
30 ## | 30 ## |
31 ## @example | 31 ## @example |
32 ## plot (@var{y}) | 32 ## plot (@var{y}) |
168 ## @end example | 168 ## @end example |
169 ## | 169 ## |
170 ## This will plot the cosine and sine functions and label them accordingly | 170 ## This will plot the cosine and sine functions and label them accordingly |
171 ## in the key. | 171 ## in the key. |
172 ## | 172 ## |
173 ## If the first argument is an axis handle, then plot into these axes, | 173 ## If the first argument is an axis handle, then plot into these axes, |
174 ## rather than the current axis handle returned by @code{gca}. | 174 ## rather than the current axis handle returned by @code{gca}. |
175 ## | 175 ## |
176 ## @seealso{semilogx, semilogy, loglog, polar, mesh, contour, bar, | 176 ## @seealso{semilogx, semilogy, loglog, polar, mesh, contour, bar, |
177 ## stairs, errorbar, xlabel, ylabel, title, print} | 177 ## stairs, errorbar, xlabel, ylabel, title, print} |
178 ## @end deftypefn | 178 ## @end deftypefn |
179 | 179 |
180 ## Author: jwe | 180 ## Author: jwe |
182 function retval = plot (varargin) | 182 function retval = plot (varargin) |
183 | 183 |
184 [h, varargin, nargs] = __plt_get_axis_arg__ ("plot", varargin{:}); | 184 [h, varargin, nargs] = __plt_get_axis_arg__ ("plot", varargin{:}); |
185 | 185 |
186 if (nargs < 1) | 186 if (nargs < 1) |
187 print_usage(); | 187 print_usage(); |
188 endif | 188 endif |
189 | 189 |
190 oldh = gca (); | 190 oldh = gca (); |
191 unwind_protect | 191 unwind_protect |
192 axes (h); | 192 axes (h); |