I think this is because the bar is going from zero to your value, so the
left edge of the rectangle becomes log(0). I see this when using the 'k'
and 'l' keys to interactively put a histogram on a log scale. Passing in
log=True for hist fixes this. I'm sure there's something similar that can
be done for bar/barh.
G
On Thu, Jan 12, 2012 at 7:03 AM, Christophe Pettus <x...@thebuild.com> wrote:
> I'm running into something odd in Matplotlib 1.1. In drawing a horizontal
> bar chart (barh), if the x-axis scale is set to log, the rectangles are not
> drawn and filled; I just get small ticks at the right-hand position where
> the rectangle should end. Interestingly, if I add a second, stacked barh
> to the same axes, that second set of rectangles draws fine, even though the
> first does not.
>
> If I simply comment out the call setting the x axis to log, it works
> properly.
>
> Any thoughts?
> --
> -- Christophe Pettus
> x...@thebuild.com
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users