I use IPython (as pylab), and Qt4Agg as mpl backend I was entering annotations in Qt4 'Figure Options' dialog
However, even if I try: ======================================= import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel(r'*some non ASCII chars*’) plt.show() --------------------------------------- I don't get anything, no even empty rectangles If I use: ======================================= plt.ylabel('ASCII text') --------------------------------------- then I see y axis annotated with ASCII text On 09.06.2011 16:49:13 Daniel Mader wrote: > Hi, > > try putting an r in front of your string: > e.g. label=r'äöü߀' > > And it might help to tell your editor the used encoding, too, by > putting this as the first line: > # -*- coding: utf-8 -*- > > > Hope this helps, > Daniel > 2011/6/9 Klonuo Umom <klo...@gmail.com>: > > Hi, > > > > How can I use font in my locale or even better UTF-8 for plot > > annotations? > > > > Right now I can see only empty rectangles instead characters when I try > > to enter anything other then ASCII > > > > > > Thanks > > > > > > ------------------------------------------------------------------------------ > > 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 > > ------------------------------------------------------------------------------ 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