The problem of creating a timeline using gnuplot

The data file used is as follows:

2012.07.21 83 2012.07.22 54 2012.07.23 122 2012.07.24 104 2012.07.25 97 2012.07.26 114 2012.07.27 97 2012.07.28 83 2012.07.29 60 2012.07.30 106 2012.07.31 75 

this is a short part, and the file contains other years. I need a graph that shows a number by date. (shows the number of results per day)

What I've done:

 gnuplot> set xdata time gnuplot> set timefmt "%Y.%m.%d" gnuplot> plot "sample.txt" 

but he says: you need full use of spec for x time data

what I did wrong? any suggestions? i'm new to gnuplot so i dont know what to do

any help would be great. thanks in advance!

+4
source share
1 answer

Just add using 1:2 to the plot line.

+7
source

All Articles