Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread b b
Hi Lee, That was it. It took me a few more minutes to find out that set_xlim and set_ylim are methods in of the figure but now it's working nicely. I also found that the set_[xy]lim methods have to be called after the bar() method. Updated script: / from py

Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread b b
Hi, Here's a version that goes to the list too :-) On Fri, Mar 26, 2010 at 9:10 AM, Jae-Joon Lee wrote: > With the current svn, I cannot reproduce the problem, i.e., bars with > 0 height are correctly displayed. The x-range is incorrectly set, but > it is not clear if this is what you meant. Uh

[Matplotlib-users] Bar plot, 0 values

2010-03-24 Thread b b
Hi there, While creating bar plots I found that bars with height 0 are not being displayed. Their space is distributed evenly between the other columns. Sample script: /-- from pylab import * import sys figure(8) if(sys.argv[1].lower() == 'y'): bar([0, 1, 0