Re: [Matplotlib-users] invalidrestore - EPS file

2007-02-26 Thread Alan G Isaac
On Mon, 26 Feb 2007, [EMAIL PROTECTED] apparently wrote: > gs didn't seen to complain. That increases the likelihood it is the MS interpreter. Odd thought. > I also tried GIMP. While it didn't complain, the picture > displayed is horribly bad. IIRC, that would be a bitmap of your file ...

Re: [Matplotlib-users] New aspect function for pylab

2007-02-26 Thread John Hunter
On 2/26/07, Mark Bakker <[EMAIL PROTECTED]> wrote: > ax = gca() > if len(args)==0: > aspect = ax.get_aspect() > elif len(args)==1: > aspect = args[0] > adjustable = popd(kwargs,'adjustable','box') > anchor = popd(kwargs,'anchor','C') > fixlim = popd(kwargs,'

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

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 fr

[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 aspect(*args,

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

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 ex

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 wro

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 loo

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] 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 Li

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 nam

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

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] 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

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 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) I

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 enc

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 some

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

[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 http://www.li