Mercurial > hg > octave-lyh
comparison scripts/plot/stairs.m @ 3368:a4cd1e9d9962
[project @ 1999-11-20 17:22:48 by jwe]
author | jwe |
---|---|
date | Sat, 20 Nov 1999 17:23:01 +0000 |
parents | 8b262e771614 |
children | 5e0a0b1cba43 |
comparison
equal
deleted
inserted
replaced
3367:0748b03c3510 | 3368:a4cd1e9d9962 |
---|---|
15 ## You should have received a copy of the GNU General Public License | 15 ## You should have received a copy of the GNU General Public License |
16 ## along with Octave; see the file COPYING. If not, write to the Free | 16 ## along with Octave; see the file COPYING. If not, write to the Free |
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
18 ## 02111-1307, USA. | 18 ## 02111-1307, USA. |
19 | 19 |
20 ## usage: [xs, ys] = stairs (x, y) | 20 ## -*- texinfo -*- |
21 ## | 21 ## @deftypefn {Function File} {} stairs (@var{x}, @var{y}) |
22 ## Given two vectors of x-y data, stairs produces a `stairstep' plot. | 22 ## Given two vectors of x-y data, bar produces a `stairstep' plot. |
23 ## | 23 ## |
24 ## If only one argument is given, it is taken as a vector of y-values | 24 ## If only one argument is given, it is taken as a vector of y-values |
25 ## and the x coordiates are taken to be the indices of the elements. | 25 ## and the x coordinates are taken to be the indices of the elements. |
26 ## | 26 ## |
27 ## If two output arguments are specified, the data are generated but | 27 ## If two output arguments are specified, the data are generated but |
28 ## not plotted. For example, | 28 ## not plotted. For example, |
29 ## | 29 ## |
30 ## stairs (x, y); | 30 ## @example |
31 ## | 31 ## stairs (x, y); |
32 ## @end example | |
33 ## | |
34 ## @noindent | |
32 ## and | 35 ## and |
33 ## | 36 ## |
34 ## [xs, ys] = stairs (x, y); | 37 ## @example |
35 ## plot (xs, ys); | 38 ## [xs, ys] = stairs (x, y); |
36 ## | 39 ## plot (xs, ys); |
40 ## @end example | |
41 ## | |
42 ## @noindent | |
37 ## are equivalent. | 43 ## are equivalent. |
38 ## | 44 ## @end deftypefn |
45 | |
39 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, | 46 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, |
40 ## bar, gplot, gsplot, replot, xlabel, ylabel, title | 47 ## bar, gplot, gsplot, replot, xlabel, ylabel, title |
41 | 48 |
42 ## Author: jwe | 49 ## Author: jwe |
43 | 50 |