[matplotlib-devel] Bug in PatchCollection

2008-07-13 Thread Ryan May
Hi, I just hit a bug in PatchCollection, at line 891 in collections.py: if match_original: def determine_facecolor(patch): if patch.fill(): return patch.get_facecolor() return [0, 0, 0, 0] The problem is that patch.fill

[matplotlib-devel] Useless line in collections.py

2008-07-13 Thread Ryan May
Hi, I don't think line 96 of collections.py is doing anything: if offsets is not None: offsets = np.asarray(offsets, np.float_) if len(offsets.shape) == 1: offsets = offsets[np.newaxis,:] # Make it Nx2. if transOffset is not None:

Re: [matplotlib-devel] Bug in PatchCollection

2008-07-13 Thread Eric Firing
Ryan May wrote: > Hi, > > I just hit a bug in PatchCollection, at line 891 in collections.py: > > if match_original: > def determine_facecolor(patch): > if patch.fill(): > return patch.get_facecolor() > return [0, 0, 0,