matplotlib--graphing against time
let say i have two arrays
time_array=[00:00:00,00:00:10...17:59:50,18:00:00]
and
data_array=[1,12..34,2]
both of them with the same number of elements.
I want to graph data_array on y axis vs time_array on x_axis.
However, I'm unable to do this using matplotlib because it complains time_array is not in numeric form.
I guess I should do plot=(data_array) and somehow mark the x axis with
time at periodic intervals. Anyone can suggest how to do this exactly?
thanks
|