Benjamin Root-2 wrote
> On Fri, Oct 5, 2012 at 6:38 AM, Usjes <
> [email protected]
> > 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 am new
to Python but I did also try inserting the command:
print rgb
preceding the offending line, to get an idea of what the dimensions of 'rgb'
are but the print statement also fails due to 'too many values to unpack'
savefig("foobar.emf")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 363, in
savefig
return fig.savefig(*args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 1084, in
savefig
self.canvas.print_figure(*args, **kwargs)
File
"C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line
144, in print_figure
FigureCanvasAgg.print_figure(self, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\backend_bases.py", line
1923, in print_figure
**kwargs)
File "C:\Python26\lib\site-packages\matplotlib\backend_bases.py", line
1723, in print_emf
return emf.print_emf(*args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_emf.py",
line 717, in print_emf
self.figure.draw(renderer)
File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in
draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 738, in
draw
if self.frameon: self.patch.draw(renderer)
File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 55, in
draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "C:\Python26\lib\site-packages\matplotlib\patches.py", line 411, in
draw
renderer.draw_path(gc, tpath, affine, rgbFace)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_emf.py",
line 258, in draw_path
self.select_brush(rgbFace)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_emf.py",
line 565, in select_brush
brush=EMFBrush(self.emf,rgb)
File "C:\Python26\lib\site-packages\matplotlib\backends\backend_emf.py",
line 105, in __init__
r,g,b=rgb[:3]
ValueError: too many values to unpack
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/EMF-output-too-many-values-to-unpack-error-tp11466p39275.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users