From: Kuzminski, S. R <SKu...@fa...> - 2004-03-08 17:08:43
|
Thanks, that worked for the line being plotted, although the legend box and axis are still aliased. Part of my requirements include supporting presentation quality printing. I would like to just use Agg as GD has dependency issues and keeps popping up other problems ( not to mention how great the Agg output looks ). But that great looking anti-aliasing doesn't print well, so ideally there would be a 'global' level flag that controls aliasing ( or not ) for everything drawn. I know when the image is being created for viewing or for printing and so can set the flag accordingly. S -----Original Message----- From: John Hunter [mailto:jdh...@ni...]=20 Sent: Monday, March 08, 2004 8:16 AM To: Kuzminski, Stefan R Cc: mat...@li... Subject: Re: [Matplotlib-users] simple api question >>>>> "Kuzminski," =3D=3D Kuzminski, Stefan R <SKu...@fa...> writes: Kuzminski,> I got the .51 release, looks great. I need to Kuzminski,> set_antialiased() on the Renderer, but I'm not sure Kuzminski,> how to get the renderer object correctly. If I call Kuzminski,> gca() I get the SubPlot, but the renderer member is Kuzminski,> None. Any advice would be appreciated. There is no way to set antialiased on the renderer itself, just on the individual objects (lines etc). =20 plot([1,2,3], antialiased=3DFalse) or=20 lines =3D plot(x1,y1,x2,y2) set(lines, 'antialiased', False) or set lines.antialiased in matplotlibrc to the default you want. Unfortunately, agg does not yet respect antialiased =3D=3D False for all primitives, currently only lines. See also http://matplotlib.sourceforge.net/faq.html#MATPLOTLIBRC http://matplotlib.sourceforge.net/faq.html#CUSTOM Can you tell me what you're trying to do? JDH |