3d function plots
[PyX/mjg.git] / manual / radii.py
blob1634ceaad53bb8d6cc687a9187a7cbb58dd17d30
1 from pyx import *
3 c = canvas.canvas()
5 circle = path.circle(0, 0, 2)
6 line = path.line(-3, 1, 3, 2)
7 c.stroke(circle, [style.linewidth.Thick])
8 c.stroke(line, [style.linewidth.Thick])
10 isects_circle, isects_line = circle.intersect(line)
11 for isect in isects_circle:
12 isectx, isecty = circle.at(isect)
13 c.stroke(path.line(0, 0, isectx, isecty))
15 c.writeEPSfile("radii")
16 c.writePDFfile("radii")