Mercurial > hg > octave-nkf
diff scripts/plot/stairs.m @ 2311:2b5788792cad
[project @ 1996-07-11 20:18:38 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 20:18:38 +0000 |
parents | 5cffc4b8de57 |
children | 5ca126254d15 |
line wrap: on
line diff
--- a/scripts/plot/stairs.m +++ b/scripts/plot/stairs.m @@ -17,29 +17,29 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -function [xs, ys] = stairs (x, y) +## usage: [xs, ys] = stairs (x, y) +## +## Given two vectors of x-y data, stairs produces a `stairstep' plot. +## +## If only one argument is given, it is taken as a vector of y-values +## and the x coordiates are taken to be the indices of the elements. +## +## If two output arguments are specified, the data are generated but +## not plotted. For example, +## +## stairs (x, y); +## +## and +## +## [xs, ys] = stairs (x, y); +## plot (xs, ys); +## +## are equivalent. +## +## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, +## bar, gplot, gsplot, replot, xlabel, ylabel, title - ## usage: [xs, ys] = stairs (x, y) - ## - ## Given two vectors of x-y data, stairs produces a `stairstep' plot. - ## - ## If only one argument is given, it is taken as a vector of y-values - ## and the x coordiates are taken to be the indices of the elements. - ## - ## If two output arguments are specified, the data are generated but - ## not plotted. For example, - ## - ## stairs (x, y); - ## - ## and - ## - ## [xs, ys] = stairs (x, y); - ## plot (xs, ys); - ## - ## are equivalent. - ## - ## See also: plot, semilogx, semilogy, loglog, polar, mesh, contour, - ## bar, gplot, gsplot, replot, xlabel, ylabel, title +function [xs, ys] = stairs (x, y) if (nargin == 1)