[Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
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

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 9: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

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis to log scale? An example script would be useful. No, it doesn't appear to work as a vertical bar chart, either. I've attached a test case below.

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis to log scale? An example script would be useful. No, it doesn't

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work correctly if it is vertical? In other words, use bar() and set the y-axis

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Tony Yu
On Thu, Jan 12, 2012 at 12:14 PM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On Jan 12, 2012, at 7:38 AM, Benjamin Root wrote: Does everything work

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread G Jones
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

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Benjamin Root
On Thu, Jan 12, 2012 at 11:20 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 12:14 PM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jan 12, 2012 at 11:04 AM, Tony Yu tsy...@gmail.com wrote: On Thu, Jan 12, 2012 at 11:39 AM, Christophe Pettus x...@thebuild.comwrote: On

Re: [Matplotlib-users] Horizontal bar chart with log x-axis, no filled boxes

2012-01-12 Thread Christophe Pettus
On Jan 12, 2012, at 9:31 AM, Benjamin Root wrote: D'oh! Of course, I missed that tiny little detail. Hmm, so the auto-detection would have been useless in this case because the scale of the axes was set after the fact. Maybe the log kwarg should be in a more prominent location in the