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
From: John Hunter [mailto:jdhunter@…8…]
Sent: Monday, March 08, 2004 8:16 AM
To: Kuzminski, Stefan R
Subject: Re: [Matplotlib-users] simple api question
"Kuzminski," == Kuzminski, Stefan R <SKuzminski@...79...>
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).
lines = 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 == False for all
primitives, currently only lines.
Can you tell me what you're trying to do?