Re: [Matplotlib-users] EMF output: too many values to unpack error

2012-10-05 Thread Usjes
Benjamin Root-2 wrote > Actually, that is very telling... Did you restart python after editing > the > .py file? Python will only load a source file once in a session (unless > explicitly forced to do a reload, but that is not intended for newbies). > So, any changes to any source .py file will n

Re: [Matplotlib-users] EMF output: too many values to unpack error

2012-10-05 Thread Benjamin Root
On Fri, Oct 5, 2012 at 10:47 AM, Usjes wrote: > Benjamin Root-2 wrote > > On Fri, Oct 5, 2012 at 6:38 AM, Usjes < > > > oisin_nz@.co > > > > wrote: > > > > Does it fail for the example I originally gave? > > > > from pylab import * > > plot([1, 2, 3]) > > savefig("foobar.emf") > > > > > > Ben Roo

Re: [Matplotlib-users] EMF output: too many values to unpack error

2012-10-05 Thread Usjes
Benjamin Root-2 wrote > On Fri, Oct 5, 2012 at 6:38 AM, Usjes < > oisin_nz@.co > > wrote: > > Does it fail for the example I originally gave? > > from pylab import * > plot([1, 2, 3]) > savefig("foobar.emf") > > > Ben Root Yes, it fails even with the simple plot suggested; see log below. I a

Re: [Matplotlib-users] EMF output: too many values to unpack error

2012-10-05 Thread Benjamin Root
On Fri, Oct 5, 2012 at 6:38 AM, Usjes 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 th

Re: [Matplotlib-users] EMF output: too many values to unpack error

2012-10-05 Thread Usjes
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 >

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Evil Nick
> Trying to save plot as EMF, after installing pyemf 2.0 raises this > error: > > too many values to unpack Some code sample would help. It means what it says - trying to assign tuples or whatever to too few values, e.g.: x,y= (1,2,3) Is the error raised in your code or a library? --- Nick ---

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:52:18 Benjamin Root wrote: > 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/WeatherG

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 12:40 PM, Klonuo Umom wrote: > On 09.06.2011 19:29:35 Benjamin Root wrote: > > > I looks like backend_emf.py is choking on rgba values. Is EMF unable to > > handle Alpha channels? The fix should be fairly easy, though. > > > > I have no idea. I installed pyemf today as mp

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:29:35 Benjamin Root wrote: > I looks like backend_emf.py is choking on rgba values. Is EMF unable to > handle Alpha channels? The fix should be fairly easy, though. > I have no idea. I installed pyemf today as mpl asked me to if I want to export to EMF. I wanted to use EMF as

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 12:02 PM, Klonuo Umom wrote: > On 09.06.2011 19:00:34 Benjamin Root wrote: > > > Ah, so the bug is in the emf backend. Which version of matplotlib are > you > > using? > > > > import matplotlib > > print matplotlib.__version__ > > > Latest stable I guess: 1.0.1 > I looks

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 19:00:34 Benjamin Root wrote: > Ah, so the bug is in the emf backend. Which version of matplotlib are you > using? > > import matplotlib > print matplotlib.__version__ Latest stable I guess: 1.0.1 -- Edi

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 11:56 AM, Klonuo Umom wrote: > On 09.06.2011 18:47:42 Benjamin Root wrote: > > > Question, does the following cause the same error? > > > > from pylab import * > > plot([1, 2, 3]) > > savefig('foobar.emf') > > > > There might be an important difference between saving from t

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 18:47:42 Benjamin Root wrote: > Question, does the following cause the same error? > > from pylab import * > plot([1, 2, 3]) > savefig('foobar.emf') > > There might be an important difference between saving from the save dialog > and saving directly through the savefig command. >

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Benjamin Root
On Thu, Jun 9, 2011 at 11:19 AM, Klonuo Umom wrote: > On 09.06.2011 18:06:57 Nick Veitch wrote: > > > Some code sample would help. It means what it says - trying to assign > > tuples or whatever to too few values, e.g.: > > x,y= (1,2,3) > > > > Is the error raised in your code or a library? > > T

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
On 09.06.2011 18:06:57 Nick Veitch wrote: > Some code sample would help. It means what it says - trying to assign > tuples or whatever to too few values, e.g.: > x,y= (1,2,3) > > Is the error raised in your code or a library? Take any for example, like 'plot([1,2,3])' it doesn't matter I descri

Re: [Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Nick Veitch
On 9 June 2011 15:13, Klonuo Umom wrote: > > Trying to save plot as EMF, after installing pyemf 2.0 raises this > error: > > too many values to unpack > Some code sample would help. It means what it says - trying to assign tuples or whatever to too few values, e.g.: x,y= (1,2,3) Is the error rai

[Matplotlib-users] EMF output: too many values to unpack error

2011-06-09 Thread Klonuo Umom
I use matplotlib through IPython on Windows XP with Python 2.6.6 and Qt4Agg as backend Trying to save plot as EMF, after installing pyemf 2.0 raises this error: too many values to unpack -- EditLive Enterprise is the wo