|
From: Benjamin R. <ben...@ou...> - 2012-01-24 02:54:47
|
On Monday, January 23, 2012, Álvaro Justen [Turicas] <alv...@gm...> wrote: > Hello, > I'm using version 1.0.1 and I think this code snippet and the images > attached are enough to explain the bug: > https://gist.github.com/1667300 > > Images 'bar-log-bug.png' and 'bar-log-ok.png' must be the same since > it is the same data and same configuration - the bug occurs when we > call set_yscale after calling subplot.bar(). > > If you confirm the bug, I'll create an issue on GitHub. This is a known issue and is not a bug. If you know that you are using log scale for your bar graph, then it is best to simply specify it in the bar() command (log=True, I think). Having bar() work when you call set_yscale() before bar() is merely a convenience. Recommended usage is to tell bar() that you are using log scale so that it can avoid taking the log of zero (or negative). Cheers, Ben Root |