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 Wed, Mar 24, 2010 at 10:46 PM, b b <cook.strait.giant.w...@gmail.com> wrote:
> 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, 0, 0], [0, 1, 0, 0, 0])
> else:
>    bar([1, 2, 3, 4, 5], [1, 2, 3, 4, 5])
> show()
> \--------------------------------------
>
> Try it with argument 'y' and without.
>
> So far I didn't find a solution. '0' is not an easy thing to google
> :-) Anyone got an idea?
>
> Cheers, B.
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to