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
> <jsla...@cfa.harvard.edu> 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
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

Reply via email to