Francesco, While I like your solution, there is an alternative that is simpler and works for me. That is 1) save matplotlib plot as a png, 2) convert to eps using either ImageMagick or GraphicsMagick. You do end up with relatively large files, but they look identical to the original plots.
Regards, Jon > Dear matplotlibers, > > after spending some more time about my problem on how to > emulate > transparency to create nice eps figures with shaded areas, > I found this web page: > > http://stackoverflow.com/questions/2049230/convert-rgba-color-to-rgb?rq=1 > > So I decided to implement the algorithm and it seems that the > approach > works (see attached pdf). > Of course if there are many layers of transparent colors, it > would be > very hard to get the exact colors, but so far it's the best > approach > that I've found. > > The code can be downloaded from here: > https://github.com/montefra/mimic_alpha/downloads > > Cheers, > Francesco -- ______________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA jsla...@cfa.harvard.edu 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ______________________________________________________________ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users