I just submitted a patch to add a new non-interactive backend that produces enhanced metafiles, an OpenOffice and Microsoft Windows scalable graphics format that can also be embedded in .rtf files. http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1361839&group_= id=3D80706&atid=3D560722 The backend is based on my pyemf package that I finally released with its first public beta: http://pyemf.sourceforge.net The API should be stable -- I'm only planning on adding to it and not changing any existing method signatures in the version 2.0.* series. Oh, and I didn't say so in the patch itself, but I'm happy to donate the patch to matplotlib under the default matplotlib license. Rob
Rob, I think you may have just implemented/discovered/unearthed the Holy Grail! This looks fantastic. We have been fighting with EPS files for years and trying to come up with a way to have plots that can be embedded in Office documents that look good on the screen for presentations and still print well. The EPS preview image has never worked very well and the resulting files almost always had problems when moved from MS Office on the PC to/from the Mac. If your system works well across platforms, that could save the engineers here a lot of time. We'll have to download this and give it a try. Thanks! Ted At 06:03 PM 11/19/2005, Rob McMullen wrote: >I just submitted a patch to add a new non-interactive backend that >produces enhanced metafiles, an OpenOffice and Microsoft Windows >scalable graphics format that can also be embedded in .rtf files. > >http://sourceforge.net/tracker/index.php?func=detail&aid=1361839&group_id=80706&atid=560722 > >The backend is based on my pyemf package that I finally released with >its first public beta: > >http://pyemf.sourceforge.net > >The API should be stable -- I'm only planning on adding to it and not >changing any existing method signatures in the version 2.0.* series. > >Oh, and I didn't say so in the patch itself, but I'm happy to donate >the patch to matplotlib under the default matplotlib license. > >Rob > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. Get Certified Today >Register for a JBoss Training Course. Free Certification Exam >for All Training Attendees Through End of 2005. For more info visit: >http://ads.osdn.com/?ad_idv28&alloc_id845&opclick >_______________________________________________ >Matplotlib-devel mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-devel Ted Drain Jet Propulsion Laboratory ted...@jp...
I'm very interested to see how stuff looks on a Mac. I don't have access to one, so I'll be looking forward to your results. I still haven't figured out how to get antialiased lines in EMFs, so the output doesn't look as good on the screen as all the agg rendering. But, if you push the dots per inch high enough in the savefig() command, it looks decent. It does have the advantage of being a vector format, at least, so it resizes well. :) It's really worked well for me to be able to embed multiple EMFs and text and tables in an RTF, with everything machine generated by Python. Hopefully it works across platforms for you guys. Rob On 11/21/05, Ted Drain <ted...@jp...> wrote: > Rob, > I think you may have just implemented/discovered/unearthed the Holy > Grail! This looks fantastic. We have been fighting with EPS files for > years and trying to come up with a way to have plots that can be embedded > in Office documents that look good on the screen for presentations and > still print well. > > The EPS preview image has never worked very well and the resulting files > almost always had problems when moved from MS Office on the PC to/from th= e > Mac. If your system works well across platforms, that could save the > engineers here a lot of time. > > We'll have to download this and give it a try. Thanks! > Ted > > At 06:03 PM 11/19/2005, Rob McMullen wrote: > >I just submitted a patch to add a new non-interactive backend that > >produces enhanced metafiles, an OpenOffice and Microsoft Windows > >scalable graphics format that can also be embedded in .rtf files. > > > >http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1361839&gro= up_id=3D80706&atid=3D560722 > > > >The backend is based on my pyemf package that I finally released with > >its first public beta: > > > >http://pyemf.sourceforge.net > > > >The API should be stable -- I'm only planning on adding to it and not > >changing any existing method signatures in the version 2.0.* series. > > > >Oh, and I didn't say so in the patch itself, but I'm happy to donate > >the patch to matplotlib under the default matplotlib license. > > > >Rob > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > >Register for a JBoss Training Course. Free Certification Exam > >for All Training Attendees Through End of 2005. For more info visit: > >http://ads.osdn.com/?ad_idv28&alloc_id845&opclick > >_______________________________________________ > >Matplotlib-devel mailing list > >Mat...@li... > >https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > Ted Drain Jet Propulsion Laboratory ted...@jp... > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >
>>>>> "Rob" == Rob McMullen <rob...@gm...> writes: Rob> Oh, and I didn't say so in the patch itself, but I'm happy to Rob> donate the patch to matplotlib under the default matplotlib Rob> license. Great Rob -- thanks. This was the first I've heard of EMF but I read through your web page and it looks interesting. I don't have time right now to install the prereqs and test, but you may want to grab the latest CVS mpl and make sure everything is working for you. You may also want to write a blurb for the release notes, and add a patch against the matplotlib CVS htdocs and or users guide to explain EMF and provide pointers to your web site on the mpl site. Checking in matplotlib/backends/backend_emf.py; /cvsroot/matplotlib/matplotlib/lib/matplotlib/backends/backend_emf.py,v <-- backend_emf.py initial revision: 1.1 done Thanks again, JDH
No problem -- I'm pleased to contribute. I'll check out mpl from CVS and test it out, and I'll submit a patch for the release notes and htdocs. Rob On 11/30/05, John Hunter <jdh...@ac...> wrote: > >>>>> "Rob" =3D=3D Rob McMullen <rob...@gm...> writes: > > Rob> Oh, and I didn't say so in the patch itself, but I'm happy to > Rob> donate the patch to matplotlib under the default matplotlib > Rob> license. > > Great Rob -- thanks. This was the first I've heard of EMF but I read > through your web page and it looks interesting. I don't have time > right now to install the prereqs and test, but you may want to grab > the latest CVS mpl and make sure everything is working for you. > > You may also want to write a blurb for the release notes, and add a > patch against the matplotlib CVS htdocs and or users guide to explain > EMF and provide pointers to your web site on the mpl site. > > Checking in matplotlib/backends/backend_emf.py; > /cvsroot/matplotlib/matplotlib/lib/matplotlib/backends/backend_emf.py,v = <-- backend_emf.py > initial revision: 1.1 > done > > Thanks again, > JDH >