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
>
>
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
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
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