Re: [Matplotlib-users] space between bar and y-axis: works with 2 bars not with 3

2012-08-19 Thread Goyo
2012/8/17 mgurling : > I've attached 2.py and 3.py which differ only in how many bars are graphed. > The "nudge" variable was intended to move the left-most bar away from > the y-axis. Better use xlim to move the y-axis away from the bar: a = [20, 35] nudge = 0.2 ind = np.arange(2) + nudge width

[Matplotlib-users] space between bar and y-axis: works with 2 bars not with 3

2012-08-17 Thread mgurling
I've attached 2.py and 3.py which differ only in how many bars are graphed. The "nudge" variable was intended to move the left-most bar away from the y-axis. This approach seems to work for graphs containing more than 2 bars, but not those with only 2 bars. I'm curious about this behaviour and am i