Re: [matplotlib-devel] Potential Bug in axes.py

2009-09-19 Thread Eric Firing
Brad Chivari wrote: > SUBJECT: > Filtering out 0 bar height/width not working > > FILE: > matplotlib/ trunk/ matplotlib/ lib/ matplotlib/ axes.py > > PROBLEM: > xmin = np.amin(width[width!=0]) # filter out the 0 width rects > ymin = np.amin(height[height!=0]) # filter out the 0 height rects > >

Re: [matplotlib-devel] Potential Bug in axes.py

2009-06-23 Thread Michael Droettboom
What's in there now should work with numpy arrays, but obviously not Python lists. I think the correct solution is actually to coerce width and height to arrays rather than lists. But I'm hoping someone more familiar with the bar code can comment. It should be a simple change to "make_iterab

Re: [matplotlib-devel] Potential Bug in axes.py

2009-06-23 Thread Brad Chivari
Anyone? Am I way off the mark here? Thanks, Brad On Thu, 18 Jun 2009 14:41:03 -0300 Brad Chivari wrote: > SUBJECT: > Filtering out 0 bar height/width not working > > FILE: > matplotlib/ trunk/ matplotlib/ lib/ matplotlib/ axes.py > > PROBLEM: > xmin = np.amin(width[width!=0]) # filter out the

[matplotlib-devel] Potential Bug in axes.py

2009-06-18 Thread Brad Chivari
SUBJECT: Filtering out 0 bar height/width not working FILE: matplotlib/ trunk/ matplotlib/ lib/ matplotlib/ axes.py PROBLEM: xmin = np.amin(width[width!=0]) # filter out the 0 width rects ymin = np.amin(height[height!=0]) # filter out the 0 height rects These aren't using proper python list comp