[Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Lionel Roubeyrie
Hi, sorry to resend this problem, I didn't have any response and the problem always exists, all accentued characters are set to ? when I save figures in pdf format. Does someone have a solution to that? MPL 0.87.7 on Edgy Eft thanks -- Lionel Roubeyrie - [EMAIL PROTECTED] LIMAIR

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
Lionel Roubeyrie [EMAIL PROTECTED] writes: sorry to resend this problem, I didn't have any response and the problem always exists, all accentued characters are set to ? when I save figures in pdf format. Does someone have a solution to that? Does saving the figure as eps and converting to pdf

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Lionel Roubeyrie
Le Lundi 26 Février 2007 12:35, Jouni K. Seppänen a écrit : Does saving the figure as eps and converting to pdf work for you? The pdf backend doesn't support unicode, since I've never been able to really understand how encoding strings in pdf works. (Nicolas Grilly's recent patch fixed

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Darren Dale
On Monday 26 February 2007 06:53:22 am Lionel Roubeyrie wrote: Le Lundi 26 Février 2007 12:35, Jouni K. Seppänen a écrit : Does saving the figure as eps and converting to pdf work for you? The pdf backend doesn't support unicode, since I've never been able to really understand how encoding

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread Darren Dale
On Sunday 25 February 2007 12:41:58 pm [EMAIL PROTECTED] wrote: After doing some investigation, I discovered that this problem is reproducible using sample programs such as axes_demo.py. Here are the steps I took: a) Run axes_demo.py b) Save the plot as eps file c) Start Word d) Insert

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Lionel Roubeyrie
Le Lundi 26 Février 2007 14:20, Darren Dale a écrit : What are you using to do the conversion? epstopdf should maintain the integrity of the fonts. epstopdf should maintain... but not, it doesn't do that! -- Lionel Roubeyrie - [EMAIL PROTECTED] LIMAIR http://www.limair.asso.fr

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread John Hunter
On 2/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: After doing some investigation, I discovered that this problem is reproducible using sample programs such as axes_demo.py. Here are the steps I took: a) Run axes_demo.py b) Save the plot as eps file c) Start Word d) Insert the eps

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
Lionel Roubeyrie [EMAIL PROTECTED] writes: Le Lundi 26 Février 2007 14:20, Darren Dale a écrit : What are you using to do the conversion? epstopdf should maintain the integrity of the fonts. epstopdf should maintain... but not, it doesn't do that! What exactly is the problem with the

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Nicolas Grilly
Hello Lionel, On 2/26/07, Lionel Roubeyrie [EMAIL PROTECTED] wrote: sorry to resend this problem, I didn't have any response and the problem always exists, all accentued characters are set to ? when I save figures in pdf format. Does someone have a solution to that? MPL 0.87.7 on Edgy Eft

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Lionel Roubeyrie
Hi, Fonts are BitStream VeraSans-Roman, TrueType. Le Lundi 26 Février 2007 16:43, Jouni K. Seppänen a écrit : What exactly is the problem with the converted pdf file? Try opening it in Adobe Reader and viewing Document Properties / Fonts. Do you see any Type 3 fonts, and what are their names?

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Lionel Roubeyrie
Hi Nicolas, I just want to set xlabels with : MOIS=['janvier', u'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'aout', 'septembre', 'octobre', 'novembre', u'décembre'] resulting in 'f?vrier' and 'd?cembre' in the pdf file. Le Lundi 26 Février 2007 17:01, Nicolas Grilly a écrit : Hello

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread kc106_2005-matplotlib
Thanks for the answer, John. Up to this point, the other software package we use produces EPS files only and so I've been using it this way for a while. May not be the best way but I've tried other EPS viewers and so far Word actually is the best way since I have to embedd the plots into Word

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread Jouni K . Seppänen
[EMAIL PROTECTED] writes: Back to the subject at hand. Using PNG files works but brings with it other problems and so I would really appreciate a resolution to this invalidrestore issue. I can't use PDF because I have to embedd the plots in a Word document. Not sure what SVG is (I'll look it

Re: [Matplotlib-users] invalidrestore

2007-02-26 Thread Alan G Isaac
An invalidrestore error signals an improper restore. E.g., a string, dictionary, or procedure is left on the stack that needs to be discarded before restore. Probably a dictionary with no 'end'. Two obvious possibilities: - there is an invalid restore. This should be fixed. - something is

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Nicolas Grilly
On 2/26/07, Lionel Roubeyrie [EMAIL PROTECTED] wrote: I just want to set xlabels with : MOIS=['janvier', u'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'aout', 'septembre', 'octobre', 'novembre', u'décembre'] resulting in 'f?vrier' and 'd?cembre' in the pdf file. Ok. This is exactly

Re: [Matplotlib-users] PDF and accentued characters

2007-02-26 Thread Jouni K . Seppänen
Lionel Roubeyrie [EMAIL PROTECTED] writes: Fonts are BitStream VeraSans-Roman, TrueType. Then this is not the usual font problem where fonts get converted either into Type 3 or into raw drawing commands. Can you put example files (both eps and pdf) on some website so we can try to understand

[Matplotlib-users] New aspect function for pylab

2007-02-26 Thread Mark Bakker
Eric, list - Here is the new aspect function for possible inclusion in pylab. It works great and with the default values for the kwargs, it works exactly the way I think it is useful for a combination of contouring and plotting. What do you think, should we include this? Mark def

Re: [Matplotlib-users] invalidrestore - PDF

2007-02-26 Thread kc106_2005-matplotlib
Switching to PDF works (eventually - see below) but bring with it yet another set of problems. First of all, I had to fix backend_pdf.py for MPL to work (w Python 2.3, anyway). Two problems: a) 2.3 doesn't have the sorted function - it uses a .sort() function. So, I had to change line 487

Re: [Matplotlib-users] invalidrestore - EPS file

2007-02-26 Thread kc106_2005-matplotlib
I installed gsview and gs and tried it. AFAIK, gs didn't seen to complain. I also tried GIMP. While it didn't complain, the picture displayed is horribly bad. An invalidrestore error signals an improper restore. E.g., a string, dictionary, or procedure is left on the stack that