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.
>
Good idea. Here is trace (I called your snippet mpl.py):
Traceback (most recent call last):
File "C:\Python26\Scripts\mpl.py", line 3, in <module>
savefig('foobar.emf')
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_wxagg.py",
line 100, in print_figure
FigureCanvasAgg.print_figure(self, filename, *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
ValueError: too many values to unpack
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users