Write French Characters In Python 2.7
I am trying to write french characters in python 2.7 like this: plt.xlabel('Débit') But, I had this error: ValueError: matplotlib display text must have all code points < 128
Solution 1:
The error ValueError: matplotlib display text must have all code points < 128 or use Unicode strings
tells you to use a unicode
string, so:
plt.xlabel(u"Débit")
Post a Comment for "Write French Characters In Python 2.7"