brushman
March 22nd, 2012, 04:49 AM
I have a file consisting of thousands of lines, where time and x represent real numbers (not integers) that looks like what follows (there are some spaces in front of each line):
time1
x1
time2
x2
time3
x3
.
.
time4000
x4000
In python I need to read these numbers in and graph x vs time using matplotlib. Does anyone have advice on the best way to read in these numbers? Thanks.
time1
x1
time2
x2
time3
x3
.
.
time4000
x4000
In python I need to read these numbers in and graph x vs time using matplotlib. Does anyone have advice on the best way to read in these numbers? Thanks.