On Thu, Jul 22, 2010 at 8:57 AM, Tony S Yu <tsyu80@

>> According to backend_bases.FigureCanvas, a renderer attr is not
>> guaranteed either.
>> The Agg* backends rely on get_renderer so that they can get a properly
>> sized renderer on figure resizes, dpi changes, etc.  We could handle
>> this on the agg side with a property, or require all canvases to
>> supply get renderer.

No, this won't work because the sizing information depends on the GUI
window size.  Agg adapts the renderer to the GUI window size.  So in
GTKAgg we are using the Agg renderer, but GTK is determining the
window size when it is raised.   We try to get GTK to produce a canvas
of a fixed size, but cannot guarantee it so we reset the renderer size
in necessary when the canvas is raised.

JDH

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to