Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
2008/2/1, Matthieu Brucher <[EMAIL PROTECTED]>: > > >4. Make sure your editor is correctly saving the file in that > > specified encoding. This is perhaps the hardest step because editors > > all handle it a little differently. Some editors have an option > > somewhere to set the encoding tha

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Michael Droettboom
Matthieu Brucher wrote: > >4. Make sure your editor is correctly saving the file in that > specified encoding. This is perhaps the hardest step because editors > all handle it a little differently. Some editors have an option > somewhere to set the encoding that files are sav

Re: [Matplotlib-users] Exporting accents in EPS

2008-02-01 Thread Matthieu Brucher
>4. Make sure your editor is correctly saving the file in that > specified encoding. This is perhaps the hardest step because editors > all handle it a little differently. Some editors have an option > somewhere to set the encoding that files are saved in. Others may > automatically understa

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 2008/

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 "", line 1, in File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/pyplot.py", line 265, in draw get_current_fig_manager().canvas.draw() File "/

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

[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 : http://matthieu-brucher.developpez.c