Jae-Joon Lee wrote:
> You need to adjust the positions of the ticks.
> bar command (by default) creates boxes so that their left side
> corresponds the first argument.
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar
>
> so, in your case, something like below will work (0.4 from 0.8/2 where
> 0.8 is the default width of the bar).
>
> axes.set_xticks([x+0.4 for x in indx])
>   
That does the trick.  Thanks.

Although I wonder why "align='center'" does not work for me.

Will review the other samples and read the doc some more.

Werner




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to