Well, I hate to provide the disappointing answer, but it really doesn't work for Postscript. (The name pstricks has perhaps become misleading over time...)
It inserts special codes in the Postscript that aren't part of the Ps standard, but that ps2pdf14 is able to convert into the correct Pdf commands to handle alpha-blending. I don't see any advantage to that kind of workflow (with matplotlib) over just going directly to PDF. There are other tricks to "fake" transparency in Postscript, for example, by calculating the polygon intersections, etc., but that is significant work, and hard to do in a general way (i.e. anything overlapping anything), without writing a full-fledged geometry framework. Fortunately, Adobe Reader already has such a thing. You can generate a PDF file with matplotlib, and then run it through "acroread -toPostScript foo.pdf", and get a reasonably well-optimized Postscript file. Unfortunately, ghostscript 7.07 doesn't seem to do this -- it can convert a pdf to a ps file, but the alphablended stuff appears as a raster image. Maybe newer versions (or poppler etc.) are able to do this, but I don't have them on my machine. It would be nice to know of an open source alternative, but Adobe Reader is at least free-as-in-beer. Cheers, Mike Alan G Isaac wrote: > On Mon, 17 Dec 2007, Tom Johnson apparently wrote: >> pstricks (tex) provides transparency... >> http://tug.org/PSTricks/main.cgi?file=Examples/Colors/colors#transparency >> http://tug.org/PSTricks/main.cgi?file=pst-plot/3D/examples#coor > > > Impressive. How is it done? > > Cheers, > Alan Isaac > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users