I am trying learn gnuplot and I want to to plot some comma separated data.
- x axis datetime stamp - enclosed in double quotes - containing a comma separator,
- y axis integer value data.
"1/31/22, 4:36",0
"1/31/22, 16:30",1
"1/31/22, 16:39",2
"2/1/22, 16:44",3
"2/1/22, 9:25",4
"2/7/22, 13:59",5
"2/7/22, 8:57",6
"2/8/22, 11:03",7
"2/18/22, 15:50",8
"2/21/22, 11:11",9
"2/24/22, 9:11",10
How do I read this data and plot in gnuplot?
I tried the following but get error about "warning: Skipping data file with no valid points"
set xdata time
set timefmt "\"%m/%d/%Y, %H:%M\""
set format x “%d/%m/%Y”
set datafile separator ","
plot "file.txt" using 1:2 with linespoints
I assume my timefmt is incorrect. What is the correct syntax?
Also can gnuplot process datetime stamps in the following format with AM/PM?
"1/31/22, 4:36 AM",0
"1/31/22, 4:30 PM",1
