|
Contents | Previous | Next | Subchapters |
| Syntax |
gcoord(x, y) |
| See Also | gcoord , gaddwin |
(x,y) plotting locations in the current
viewport
,
where x and y
are integer, real, or double-precision column vectors of equal length.
The return value is a two column real matrix with the same number of
rows as x and y.
The i-th row of the return value corresponds to the plotting location
(x(i), y(i)).
clear
gplot(seq(3), seq(3))
x = 2
y = 2
p = gcoord(x, y)
gaddtext("(2,2)", p)
O-Matrix will label the point (2,2)
with its Cartesian coordinates.