I have the following piece of data (example):
#Time Data
07/22/2013 6286
07/22/2013 10695
07/22/2013 17868
07/22/2013 18880
07/22/2013 19206
07/22/2013 20365
07/22/2013 18459
07/11/2013 3420
07/11/2013 3256
I'd like to plot the date on the x-axis & the second column on the y-axis.
Under the condition it should only plot the rows where the date equals "07/22/2013".
this is what i tried:
set datafile separator " "
set xdata time
set timefmt "%m/%d/%Y"
set xrange ["07/21/2013" : "07/23/2013"]
set yrange [3000:21000]
set format x "%m/%d"
plot "test_date.txt" using (stringcolumn(1) eq "07/22/2013"? $1:1/0):2 w p title "spots" lc 7
As a result Gnuplot tries to plot the digram but no datapoints are set (seen in the following picture "Result")
Does anyone know why that is? Do i should use "timecolumn()" instead of "stringcolumn()"? if so, how would i do this?
I'd appreciate any hints.
