On Fri, Oct 5, 2012 at 6:38 AM, Usjes <oisin...@yahoo.co.uk> wrote:

> Benjamin Root-2 wrote
> > On Thu, Jun 9, 2011 at 12:40 PM, Klonuo Umom <
>
> > klonuo@
>
> > > wrote:
> >
> > I set up pull requests to fix this problem, so the v1.0.x-maint branch
> and
> > the master branch should soon have the fixes commited to them.  You can
> > get
> > the latest bugfixed branch for v1.0.1 at
> > https://github.com/matplotlib/matplotlib/tree/v1.0.x-maint, although
> that
> > would mean having to build from source.  You could also just edit your
> > copy
> > of the file C:\Python26\lib\site-
> > packages\matplotlib\backends\backend_emf.py so that [:3] is added to the
> > end
> > of lines 69 and 105.  This page should show you what changes you need:
> >
> https://github.com/WeatherGod/matplotlib/commit/bf8d9d6f7cea1546c736d3897387698e6ae5e5b3
> >
> > I hope that helps!
> >
> > Ben Root
>
> Hi,
>
> I am having the same problem when trying to save a figure to a .emf file
> via
> pylab.savefig().
> I have tried updating backend_emf.py as suggested but this does not fix the
> problem, it still has a problem with the updated code(see below).
> The only difference I can see with the original poster is that I am using
> backend_qt4agg.py rather than backend_wxagg.py in the original posters
> code.
> This shouldn't change the fix, should it ?
>
>
Does it fail for the example I originally gave?

from pylab import *
plot([1, 2, 3])
savefig("foobar.emf")


Ben Root
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to