[Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
Hi, I'm trying to export a MAtplotlib figure which has some axes labels, such as 'coût'. The problème is that the generated eps is corrupted because of these accents. Is there a way to generate an acceptable eps file ? Matthieu -- French PhD student Website :

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Michael Droettboom
Unicode in Python is tricky. It is explained in gory detail here: http://www.amk.ca/python/howto/unicode But to save you the trouble of reading the whole thing, unless you're an i18n geek like me, here's my list of recommendations to (somewhat) reliably get non-ASCII characters to work in

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
Some additional information : it does not work with the pdf backend and with the svg one, the accents are corrupted (I tried to export utf8 encoded labels). I'm using pycrust, BTW. But I don't know how to change the default encoding (the display is correct but not the saved image). Matthieu

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
No problem with the png backend. I tried with Latex for the accent, but it didn't work : Traceback (most recent call last): File input, line 1, in module File /home/brucher/local//lib/python2.5/site-packages/matplotlib/pyplot.py, line 265, in draw get_current_fig_manager().canvas.draw()

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Michael Droettboom
Can you provide an example of your code? Often, it is a matter of configuring/using Python correctly to indicate accents. Is the problem only with EPS or other backends as well? Cheers, Mike Matthieu Brucher wrote: Hi, I'm trying to export a MAtplotlib figure which has some axes labels,