On 01.09.05, p.joyot@... wrote:
> I want to write to the eps file only a part of the canvas. I an other word
> I want to crop (like in gimp) the canvas. Is it possible ?
Yes, indeed. Look at the following example:
from pyx import *
clippath = path.circle(0, 0, 1.1)
clipobject = canvas.clip(clippath)
# here the clipping is introduced:
c = canvas.canvas([clipobject])
c.stroke(path.rect(-1, -1, 2, 2), [color.rgb.red, style.linewidth.THICk])
"A mathematician is a device for turning coffee into theorems"