> Alan G Isaac <[EMAIL PROTECTED]> writes: >> I recall some discussion of problem importing mpl EPS files >> into Microsoft products in the past, and I think I recall >> that there was a fix.
On Sat, 01 Sep 2007, Jouni K. Seppänen apparently wrote: > Perhaps you are thinking of one of these posts, which suggest using the > svg backend and converting to emf via Inkscape or Visio: > http://article.gmane.org/gmane.comp.python.matplotlib.general/9241 > http://article.gmane.org/gmane.comp.python.matplotlib.general/9250 No, but thanks. I thought I recalled that someone found a glitch in the mpl EPS Prolog, which when fixed removed the problem. Perhaps this is not in 0.9.1? Let's see: OK, I guess what I had in mind was the message below, which is not related... The problem seems to be the construction of dates by repeated use of ``glyphshow``. Apparenly the MS interpreter does not support ``glyphshow``??? By the way, this usage is apparently seeking a compressed rendering: is that right? Wouldn't using ``xshow`` be more efficient, not to mention more obvious to humans? Cheers, Alan Isaac ###################################################################### Date: Mon, 04 Jun 2007 15:49:20 -0500 From: Dave Baum <[EMAIL PROTECTED]> Subject: [Matplotlib-users] EPS images and MS Word To: matplotlib-users@lists.sourceforge.net I have been looking at the problem of figures saved as EPS images not printing correctly under from MS Word (an invalidrestore error is generated). I believe that matplotlib is incorrectly creating the EPS file. According to the DSC Spec (http://partners.adobe.com/ public/developer/en/ps/5001.DSC_Spec.pdf), the Prolog section should only contain procset definitions (which should also be enclosed in %% BeginResource / %%EndResource pairs). It looks like the generated EPS files contain an ordinary dictionary definition as well as font information in the Prolog. I believe these commands should more properly be moved to the Script section of the document (perhaps within the %%BeginSetup/%%EndSetup sub-section). I manually edited an EPS file to make the prolog empty, and moved the mpldict definition to the body of the file, and it then worked fine with MS Word. Dave Baum ###################################################################### ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users