[Matplotlib-users] x axis alignment with bar graph

2008-01-16 Thread John Harrison
bump. please...? Begin forwarded message: I have some code that produces a series of graphs of data over time. For the most part it works well, but for certain combinations of dates the two plots do not line up, due to the width of the bars in the first subplot. What is the best way

Re: [Matplotlib-users] x axis alignment with bar graph

2008-01-16 Thread John Harrison
Thanks Eric! Here is corrected code that works: import matplotlib from datetime import * import time from pylab import * def toOrd(strDate): return datetime(*time.strptime(strDate,%m/%d/%y)[0:5]).toordinal() def main(): startDate = toOrd(05/24/05) endDate =

[Matplotlib-users] x axis alignment with bar graph

2008-01-14 Thread John Harrison
I have some code that produces a series of graphs of data over time. For the most part it works well, but for certain combinations of dates the two plots do not line up, due to the width of the bars in the first subplot. What is the best way for force my second subplot's x axis to be