I should clarify, I have this working with the TkAgg backend and 
"text.usetex : False".  If "text.usetex : True", I can't confirm or deny 
whether that works since I don't have a proper LaTeX ucs.sty setup here 
to test with.

As an aside, if you're looking to Gtk as a way around this, the Gtk 
backend uses the same rendering pipeline for text when text.usetex is 
True, so it likely will produce the same result.

Cheers,
Mie

Michael Droettboom wrote:
> Xavier Gnata wrote:
>> With a = u"é" I get no error but also nothing as a title. No strange 
>> characters. Nothing.
> 
> This is working for me with the latest svn version, as well as 0.90.1, 
> on Linux with Python 2.5 and Tcl/Tk 8.4.
> 
> There are other things that could be going wrong.  The encoding of your 
> terminal may not match your default encoding in your Python interpreter. 
>  If you're using Linux, can you please send the output of:
> 
>  > locale
>  > python -c "import locale; print locale.getpreferredencoding()"
> 
> If all is working correctly, you should get the following in your python 
> interpreter:
> 
>  >>> a = u"é"
>  >>> ord(a)
> 233
> 
> If you're using an editor (i.e. not using pylab interactively), you'll 
> need to make sure that it is outputting in the correct encoding, and 
> respecting the
> 
> # -*- coding: utf-8 -*-
> 
> line.  Recent versions of emacs do this, but I can't really speak for 
> others.
> 
> I have attached a test script that works for me.  It even includes some 
> Greek characters as Unicode which work if you select a Unicode font with 
> those characters.
> 
> Cheers,
> Mike


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to