Hi fellow PyX users,
        I have used PyX with great success in the past years, but today I  
seem to have a problem with the following code:

import pyx

N = 50

c = pyx.canvas.canvas()

x, y = 0, 0
for i in range(50):
        for j in range(N):
                c.fill(pyx.path.rect(x, y, 10, 10))
                x += 10

        y += 10
        x = 0

c.writePDFfile("dummy.pdf")

        The resulting .pdf file correctly display when N is equal to 50, but  
not when N = 100 (for example). I.e., on a Windows box the second case  
would result in a .pdf that would display a blank page. Moreover, the  
bounding box seems to be incorrect, with the blank page being taller  
than it is wide.

        Any idea why I obtain this? For information, here are the two .pdf  
files I obtain: http://outbox.oenone.net/N50.pdf and 
http://outbox.oenone.net/N100.pdf

        Best,

        Aurelien


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to