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
I think it is just that the x-range is wrongly set.
Try something like
xlim(1, 6)
ylim(-1, 2)
You will see zero-height rectangles.
Currently, zero-height rectangles are ignored for autoscaling x- and y-axis.
Regards,
-JJ
On Thu, Mar 25, 2010 at 6:50 PM, b b wrote:
> Hi,
>
> Here's a version
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
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.
Can you post a screenshot of your figure? Also, version of your
matplotlib will be helpful.
Regards,
-JJ
On We
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