EMF Backend can't handle RGBA colors - patch id: 3232997

Following the advice to ping you on the mailing list, I've submitted a
suggestion for a patch to the EMF Backend. I've copied the contents
here for convenience.

Patch ID is: 3232997

Content is:

With Matplotlib 1.0.1, When plotting a patch (e.g. text with a bbox with
facecolor), the facecolor of the patch is passed to the backend as RGBa.
EMFBrush can't handle RGBa and dies with the following:

File "/usr/local/lib/python2.7/dist-packages/matplotlib/patches.py",
line 411, in draw
renderer.draw_path(gc, tpath, affine, rgbFace)
line 260, in draw_path
line 567, in select_brush
line 107, in __init__
ValueError: too many values to unpack

Suggested patch is to change line 107 in backend_emf.py from r,g,b=rgb to:


which will drop the alpha channel. Given the EMF backend doesn't support
alpha channels, it shouldn't cause any problems to do this silently.