Filtering out 0 bar height/width not working
matplotlib/ trunk/ matplotlib/ lib/ matplotlib/ axes.py
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 comprehension and don't work as expected (for me anyway).
Shouldn't they be something like:
xmin = np.amin([w for w in width if w != 0])
ymin = np.amin([h for h in height if h != 0])
Once I changed them they seem to work properly.