|
Contents | Previous | Next | Subchapters |
| Syntax |
gstair(y) y, x) |
| See Also | gbar , ghist |
r is the row dimension of y,
the value y(i) is plotted over the interval
[x(i), x(i+1)] for i equal 1 to r.
If x is not present,
the value y(i) is plotted over the interval
[i-.5, i+.5].
The vector x should be monotone increasing;
that is, x(i) < x(i+1) for all i.
gtitle("Stair Plot of x^2")
y = seq(10)^2
gstair(y)
returns the following plot: