From: Yoshi R. <yo...@ro...> - 2011-11-30 16:01:37
|
i use something like that: from datetime import datetime, timedelta import matplotlib.pyplot as pl import matplotlib.ticker as ticker import matplotlib.dates as mdates dates1 = [datetime(2005,5,11)+n*timedelta(days=1) for n in range(500)] dates2 = [datetime(... ax1 = pl.subplot(2,1,1) ax1.plot(dates1, y1, 'r') ax1.fmt_xdata = mdates.DateFormatter('%Y-%m-%d') ax2 = pl.subplot(2,1,2) ax2.plot(dates2, ... that's what you want? regards, yoshi |