Sunday, 29 September 2013

How to plot time series in python

How to plot time series in python

I have been trying to plot a time series graph from a CSV file. I have
managed to read the file and converted the data from string to date using
strptime and stored in a []. When i tried plotting a test plot in
matplotlib with the[] containing the date information it plotted the date
as series of dots that is for a date 2012-may-31 19:00 hours i got a a
plot with a dot at 2012, 05, 19, 31, 00 at y axis for the value of x=1 and
so on. I understand that this is not the correct way of passing date
information for plotting. can someone tell me how to pass this information
correctly.

No comments:

Post a Comment