python - Matplotlib legend error under Ubuntu (but not on windows vista) -



python - Matplotlib legend error under Ubuntu (but not on windows vista) -

i have python programme using matplotlib runs nicely under windows vista under ubuntu next error:

traceback (most recent phone call last): file "main.py", line 175, in my_measure self.widget.canvas.ax.legend(loc = 'center left', bbox_to_anchor = (2.2, 0.5), ncol = 1, fontsize = 10) # defining legend properties, such positioning , labels fontsize file "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 4519, in legend self.legend_ = mlegend.legend(self, handles, labels, **kwargs) typeerror: __init__() got unexpected keyword argument 'fontsize'

i don't understand why 'fontsize' became unexpected keyword argument. can help?

thanks

python python-2.7 matplotlib ubuntu-12.04

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -