On Fri, Aug 27, 2010 at 12:20 PM, Thomas Robitaille <thomas.robitai...@gmail.com> wrote: > Hi, > > The following code: > > from matplotlib.patches import Ellipse > from matplotlib.collections import PatchCollection > p = PatchCollection([Ellipse((0.5,0.5),0.2,0.1)], match_original=True) > > raises the following exception: > > Traceback (most recent call last): > File "test_patches.py", line 5, in <module> > p = PatchCollection([Ellipse((0.5,0.5),0.2,0.1)], match_original=True) > File > "/Users/tom/Library/Python/2.6/site-packages/matplotlib/collections.py", line > 1041, in __init__ > facecolors = [determine_facecolor(p) for p in patches] > File > "/Users/tom/Library/Python/2.6/site-packages/matplotlib/collections.py", line > 1037, in determine_facecolor > if patch.fill: > AttributeError: 'Ellipse' object has no attribute 'fill' > > I have submitted a ticket: > https://sourceforge.net/tracker/?group_id=80706&atid=560720
The obvious fix would be to change from patch.fill to patch.get_fill(). However, I'm curious how this code got broken. Eric, any ideas? SVN claims that the last change to that line was done by you (based on a bug *I* reported)? It apparently worked then: http://sourceforge.net/mailarchive/message.php?msg_name=487A5AE3.5070500%40gmail.com Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel