savefig bbox_inches='tight' does not consider suptitle

Just out of curiosity, is this:

legend = plot.legend()
pic.savefig(..., bbox_extra_artists=[legend])

supposed to work?

Traceback (most recent call last):
  File "./plot.py", line 108, in <module>
    fig.savefig(sys.argv[1], bbox_inches='tight', bbox_extra_artists=xa)
  File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 1084, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/matplotlib/backend_bases.py", line 1894, in print_figure
    in kwargs.pop("bbox_extra_artists", )]
TypeError: get_window_extent() takes exactly 1 argument (2 given)

···

On Mon, 7 Mar 2011 11:36:45 +0100 Yuri D'Elia <wavexx@...867...> wrote:

On Fri, 4 Mar 2011 14:57:34 -0600 > Benjamin Root <ben.root@...1304...> wrote:

> Which version of matplotlib are you using? This example works for me using
> the latest matplotlib from source. Also, why the awkward usage and

Yes, with matplotlib 1.0 bbox_extra_artists now works.