|
From: Jonathan S. <js...@cf...> - 2012-07-18 14:34:31
|
Ben, Yes, you're right, but I doubt any solution that involves mimicking an alpha channel will work for one case that I've been using. That is, making the legend box partially transparent. I use that to allow the box to fit in the plot without blocking the data and without the need to make the upper y limit too large. I don't notice any problems with blockiness in the text or lines in the raster image. I'll find out soon if the editors of the Astrophysical Journal are okay with the figures. Jon On Tue, 2012-07-17 at 15:34 -0500, Benjamin Root wrote: > > > On Tue, Jul 17, 2012 at 3:01 PM, Jonathan Slavin > <js...@cf...> wrote: > 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 > > No, it is not the same thing. Text in a vector-based format such as > eps is scalable. ImageMagick and GraphicsMagick are inherently > raster-based, and before that, PNGs are raster-based. Therefore, the > text is not scaled and anti-aliased according to the display size. > > I will be looking over the proposed solution this evening. > > Cheers! > Ben Root > > -- ______________________________________________________________ Jonathan D. Slavin Harvard-Smithsonian CfA js...@cf... 60 Garden Street, MS 83 phone: (617) 496-7981 Cambridge, MA 02138-1516 cell: (781) 363-0035 USA ______________________________________________________________ |