[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## RE: drawing line in graph

**From**: |
Ted Harding |

**Subject**: |
RE: drawing line in graph |

**Date**: |
Sun, 03 Mar 2002 12:27:24 -0000 (GMT) |

On 03-Mar-02 Davide Cavallari wrote:
>* How can I draw a line between 2 points? I have looked at the*
>* plotting functions, but I have not found something similar.*
For instance, to draw a red line between points (x1,y1), (x2,y2):
plot([x0 x1],[y0 y1],"-r")
In fact this is exactly like
plot(x,y,"-r")
where x and y are vectors, but in this case with only
two components.
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 167 1972
Date: 03-Mar-02 Time: 12:27:24
------------------------------ XFMail ------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------