gline2
Generalized line drawing
Call signature:
gline2(vglcs)
Help text:
qgline([cmd1, cmd2, ...]) specifies a line in mixed data and paper coordinates. Commands are as in gline, but in this case their arguments are vectors. gline2 does not support the at, atx, and aty commands.
For instance,
gline2([AbsData([0, 2], [1, 3]), RelPaper([5, 0], [0, 7])])
Draws a line from 5 pt to the right of the point (0, 1) in the graph to 7 pt below the point (2, 3) in the graph. (Note that paper y-coordinates increase toward the bottom of the graph while data y-coordinates increase toward the top.)
Download pdf