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/2/1, Matthieu Brucher <matthieu.brucher@gmail.com>:
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()
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 953, in draw
    self.figure.draw(self.renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/figure.py", line 612, in draw
    for a in self.axes: a.draw(renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/axes.py", line 1342, in draw
    a.draw(renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/axis.py", line 593, in draw
    tick.draw(renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/axis.py", line 170, in draw
    if self.label1On: self.label1.draw(renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/text.py", line 775, in draw
    Text.draw(self, renderer)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/text.py", line 327, in draw
    self._fontproperties, angle)
  File "/home/brucher/local//lib/python2.5/site-packages/matplotlib/backend_bases.py", line 383, in draw_tex
    raise NotImplementedError

I just did :

import pylab as pl
pl.plot([1, 2, 3], [1, 2, 3])
pl.xlabel('éè')
pl.show()

and the ps file is corrupted :(

Matthieu

2008/2/1, Michael Droettboom <mdroe@stsci.edu>:
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,
> 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.com/
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
> LinkedIn : http://www.linkedin.com/in/matthieubrucher
>
>

> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA



--
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher



--
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher