From: <mschindler@us...>  20061204 17:45:43

Hello, On 04.12.06, Riccardo Campana wrote: > Hello, >=20 > with the standard command > g =3D graph.graphxy(width=3D8,height=3D8) > g.plot(graph.data.file("datafile.dat", x=3D1, y=3D2), [graph.style.symb= ol=20 > (graph.style.symbol.circle, size=3D0.1, symbolattrs=3D[deco.filled])]) >=20 > Now, I want to draw a straight line between some of these points, for =20 > example from the point (0.194, 0.854) to the point (0.311, 0.554). >=20 > How can I do this? With path.line() and stroke() the points are not =20 > in graph (axis) coordinates... draw the lines directly on g which is a canvas. g.pos allows you to convert graphcoordinates into lengths g.finish() x1, y1 =3D g.pos(0.194, 0.854) x2, y2 =3D g.pos(0.311, 0.554) g.stroke(path.line(x1, y1, x2, y2)) If you want lines between all the points, just say instead in your plot command graph.style.line() in addition to graph.style.symbol(...) Michael. =20 "A mathematician is a device for turning coffee into theorems" Paul Erd=F6s. 