PIL and PSDraw

2006-03-01 Thread Sybren Stuvel
Hi there, I'm experimenting with PIL to create a PostScript file. The end result should be an EPS file with a couple of bar graphs. At this moment, I have a very simple piece of code: ps = PIL.PSDraw.PSDraw(file('demo.ps', 'w')) ps.begin_document() ps.rectangle((0, 0, 650, 150))

Re: PIL and PSDraw

2006-03-01 Thread Kjell Magne Fauske
PIL is, as far as i know,primarily a tool for creating and manipulating raster graphics. If you want to create eps vector graphics with Python I recommend PyX: http://pyx.sourceforge.net/ Take a look at the examples to see some of the possibilities: http://pyx.sourceforge.net/examples/index.html

Re: PIL and PSDraw

2006-03-01 Thread Sybren Stuvel
Kjell Magne Fauske enlightened us with: PIL is, as far as i know,primarily a tool for creating and manipulating raster graphics. I was afraid of that. If you want to create eps vector graphics with Python I recommend PyX: That looks exactly what I was looking for. Thanks a lot! Sybren --