Hi,

Finding the bbox of a canvas doesn't seem to work.
For example:

    c = canvas.canvas()

    c.stroke(path.line(0, 0, 1, 1)) 
    c.stroke(path.line(1, 1, 0, 0)) 

    b = pyx.bbox.empty()
    for item in c.items:
        b1 = item.bbox()
        b += b1
    print(b)

The final bbox is empty.

Oh! It's not actually empty, but it is still an instance of
the bbox.empty class. Surely this should be a function, not a
class ? Or otherwise bbox.__iadd__ should just call __add__.

thanks,

Simon.



_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to