Mercurial > hg > octave-nkf
comparison scripts/plot/stairs.m @ 131:5b46fbec1488
[project @ 1993-09-28 14:23:43 by jwe]
author | jwe |
---|---|
date | Tue, 28 Sep 1993 14:23:47 +0000 |
parents | b4df021f796c |
children | 16a24e76d6e0 |
comparison
equal
deleted
inserted
replaced
130:6642c455bf82 | 131:5b46fbec1488 |
---|---|
1 function [xs, ys] = stairs (x, y) | 1 function [xs, ys] = stairs (x, y) |
2 | 2 |
3 # usage: [xs, ys] = bar (x, y) | 3 # usage: [xs, ys] = stairs (x, y) |
4 # | 4 # |
5 # Given two vectors of x-y data, bar produces a `stairstep' plot. | 5 # Given two vectors of x-y data, stairs produces a `stairstep' plot. |
6 # | 6 # |
7 # If only one argument is given, it is taken as a vector of y-values | 7 # If only one argument is given, it is taken as a vector of y-values |
8 # and the x coordiates are taken to be the indices of the elements. | 8 # and the x coordiates are taken to be the indices of the elements. |
9 # | 9 # |
10 # If two output arguments are specified, the data are generated but | 10 # If two output arguments are specified, the data are generated but |
11 # not plotted. For example, | 11 # not plotted. For example, |
12 # | 12 # |
13 # bar (x, y); | 13 # stairs (x, y); |
14 # | 14 # |
15 # and | 15 # and |
16 # | 16 # |
17 # [xs, ys] = stairs (x, y); | 17 # [xs, ys] = stairs (x, y); |
18 # plot (xs, ys); | 18 # plot (xs, ys); |