On Thursday, May 31, 2012, solarg wrote:
hello all,

i've tried it on my laptop, but got this error at the last line:

 >>> fig.savefig('samplefigure', bbox_extra_artists=(lgd,),
Traceback (most recent call last):
  File "<console>", line 1, in <module>
line 1084, in savefig
    self.canvas.print_figure(*args, **kwargs)
line 1894, in print_figure
    in kwargs.pop("bbox_extra_artists", [])]
TypeError: get_window_extent() takes exactly 1 argument (2 given)

does it mean that i need to upgrade to python 2.7 ?

thanks in advance for help,


Unlikely.  Which version of matplotlib? It might be a bug in an older version of mpl.

Ben Root