I have a python program using matplotlib which runs nicely under windows vista but under Ubuntu I get the following error:
Traceback (most recent 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 the legend properties, such as positioning and 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 an unexpected keyword argument 'fontsize'
I don't understand why 'fontsize' became an unexpected keyword argument. Anybody can help?
Thanks