On 09.06.2011 17:58:49 Daniel Mader wrote: > Hi, > > I just noticed this doesn't work here, too, as I expected :( > > with u'äöüß°€' I can print the string, but the labels are still broken > in the plot: > > # -*- coding: utf-8 -*- > > import matplotlib.pyplot as plt > plt.plot([1,2,3,4]) > > xlabel = r'öäüß°€' > plt.xlabel(xlabel) > plt.show() > plt.savefig('asdf') > > Would be interesting to know what's going on...
Yeah, that could be nice :) Out of curiosity I tried to complicate my life and use TeX for annotation. It's great feature of course, it shows 'regular' text fine, but still can't do UTF-8. AFAIK I used this when working LaTeX in UTF-8: ======================================= \usepackage[utf8] {inputenc} \usepackage [T2A] {fontenc} --------------------------------------- but can't now dig inside mpl code for any little detail, then try to solve yet another... IMHO this things should be more easier to set. I quickly browsed matplolibrc, but can't see how I can solve this ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users