|
From: Benjamin R. <ben...@ou...> - 2012-06-01 13:59:46
|
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,),
> bbox_inches='tight')
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> File
>
> "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/matplotlib/figure.py",
> line 1084, in savefig
> self.canvas.print_figure(*args, **kwargs)
> File
>
> "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/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)
>
> does it mean that i need to upgrade to python 2.7 ?
>
> thanks in advance for help,
>
> gerard
>
>
Unlikely. Which version of matplotlib? It might be a bug in an older
version of mpl.
Ben Root
|