From: Gary <pa...@in...> - 2006-02-26 16:40:40
|
Newbie, here. Consider the script below. I expected the second line, the one to x1,y1, to hit the circle due west of center. When I run the script, the end of the line is far above the circle. What am I misunderstanding? Also, let me know if there is a more elegant syntax. thanks, -gary ------------------------------------------------------------------- from pyx import * from math import pi c = canvas.canvas() circle = path.circle(2,2,.2) x, y = circle.at(0.) x1, y1 = circle.at(pi) c.stroke(path.path(path.moveto(0,0), path.lineto(x, y))) c.stroke(path.path(path.moveto(0,0), path.lineto(x1, y1))) c.stroke(circle) c.writeEPSfile("test") |