Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-19 Thread Werner F. Bruhin
Eric, Eric Firing wrote: Werner F. Bruhin wrote: Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Are you using the

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-19 Thread Werner F. Bruhin
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

[Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Werner F. Bruhin
My lables for the different bars are not centered below the bar but are all to the left side of the bars (lower left corner). This is what I am basically doing: axes = panel.figure.add_subplot(2, 2, 3) ... axes.bar(indx, values, color=colors) axes.set_xticklabels(labels) I can not find

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Werner F. Bruhin
Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Werner

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Jae-Joon Lee
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

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-18 Thread Eric Firing
Werner F. Bruhin wrote: Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Are you using the align='center' kwarg to bar()?