On Tue, May 19, 2009 at 3:57 AM, Thomas Pfaff <y...@gmx.net> wrote: > Hi all, > > > > Is there a way to completely turn of anti-aliasing when saving to png? > > > > I want to put graphs into a PowerPoint Presentation but there, anti-aliased > png-graphics look blurry. > > I found how to turn anti-aliasing off for lines, but texts and axes are > still anti-aliased. > > Is there a way to do that?
You could use the findobj function to recursively find any object in the figure with an "antialiased" method (though the Text objects do not currently have such a method). This would at least get you the lines, rectangles and polygons http://matplotlib.sourceforge.net/examples/pylab_examples/findobj_demo.html http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.artist.Artist.findobj Eg:: def has_aa(x): return hasattr(x, 'set_antialiased') for o in fig.findobj(has_aa): o.set_antialiased(False) JDH ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users