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" parameter, set it
> to "center", on the bar function and it didn't do much.
> 
> -Alen

Hi Alen,

The align parameter sets whether the left, or the center of the bar 
should be aligned with the x-value you give for that bar. So the right 
hand edge of the bar would be at x+width (or x + (width/2) for center), 
and you'd need to set x_lim to include this. If I've misunderstood your 
problem can you post the code that's causing trouble?


Cheers,

Fred

ps.
gca() also gets the current axes object, which is marginally less typing 
than what I said before, so you can use:

gca().set_xlim([0.0, 10.0])
draw()

to re-scale the x-axis on the last thing you plotted to 0.0-10.0.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to