Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-25 Thread Fred Ludlow
t; the middle of the graph? > > I just saw an example that seems to have the x plots centered. Here is > the link to it. > http://matplotlib.sourceforge.net/screenshots.html > > Its the table_demo.py example. > > I have also attached the code if you don't mind hav

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread Fred Ludlow
# Get min and max from current axes y_min, y_max = gca().get_ylim() # Set the other way round for current axes gca().set_ylim(y_max, y_min) # Redraw draw() Emre Ayd?n wrote: > hi. i'm a new user of matplotlib. i've searched through the arhieves > of the mailing list but couldn't find a quick so

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
Alen Ribic wrote: > Thanks Fred. > > Thant did the trick. However now, when I have many plots on x axis, > the last few plot shoot of the end of the x axis. It seems to start > the plotting the middle move to the right. Do I just have to adjust > the xlim on the axes[0]? I fiddled with the "align"

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
Alen Ribic wrote: > How do I set my vertical bar to be fixed width? By default, bars are created with a fixed width of 0.8, which can be changed with the width keyword arg like so: bar(range(2), range(1,3), width = 0.5) > Depending on amount of data on my x axis, the bars get created > accordin