Hello, i am trying to make time series plots with the date on the x axis. The python code I managed to

work read a .csv file with entries like

Date-Time,T2am,T2

11-Fev-11-14:44:56,31.2,26.8

11-Fev-11-14:59:56,33,26.9

11-Fev-11-15:14:56,28.5,27…

Here is the main part of the code

datafile = (‘t2vst2.csv’)

print ‘loading’, datafile

times, temp1, temp2 = np.loadtxt(

datafile, delimiter=’,’,

converters={0:strpdate2num(’%d-%b-%y-%H:%M:%S’) },

skiprows=1, usecols=(0,1,2), unpack=True)

fig = figure()

ax = fig.add_subplot(111)

ax.plot_date(times, temp1, ‘r-’,linewidth=2.0)

ax.plot_date(times, temp2,

‘g-’,linewidth=2.0)

ax.autoscale_view()

ax.grid(‘True’)

ylabel(‘Temperatura em graus Celsius’)

fig.autofmt_xdate()

show()

Matplotlib chooses to plot starting on Feb 10 til Feb 20 when the data goes from

Feb 11 to Feb 17.

Does anybody know how to make the plot area start right at the

beginning of data and finish right at the end, so it spans the whole x axis?

Thanks in advance