From: solarg <sol...@gm...> - 2012-05-31 04:28:52
|
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 |