--- On Wed, 7/21/10, Tony S Yu <tsy...@gmail.com> wrote: > I get something similar with TkAgg (unfortunately, I get an > AttributeError with the macosx backend).
This is the AttributeError: Traceback (most recent call last): File "Desktop/tight_layout.py", line 142, in <module> tight_layout() File "Desktop/tight_layout.py", line 28, in tight_layout tight_subplot_spacing(fig, h_pad_inches, w_pad_inches) File "Desktop/tight_layout.py", line 64, in tight_subplot_spacing ax_bottom, ax_top, ax_left, ax_right = _get_grid_boundaries(fig) File "Desktop/tight_layout.py", line 99, in _get_grid_boundaries renderer = fig.canvas.get_renderer() AttributeError: 'FigureCanvasMac' object has no attribute 'get_renderer' >>> Is a backend required to implement a get_renderer method? I only see it implemented in backend_agg.py, and it's missing in backend_bases.py, backend_template.py, backend_cairo.py, and in the macosx backend. If you want to try your code with the macosx backend, you can use fig.canvas.renderer instead of fig.canvas.get_renderer(). --Michiel. ------------------------------------------------------------------------------ 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