Hi,
Im trying to plot a time series with gnuplot. this is my script
set xdata time
set yrange [0: ]
set timefmt "%H"
set xrange [ "11:14:00":"11:15:00" ]
set format x "%H:%M:%S"
plot "time_vs_times.txt" using 1:2 title 'Interarrival time' with points lw 2
Try leaving off xrange entirely, letting it pick its own range.
Otherwise, I think you have to specify the range in seconds of epoch time. GNUplot has an epoch of 1970 for some things, and an epoch of 2000 for others :wall:
Try just forgetting the year/month/day and just going on the total count of seconds
---------- Post updated at 07:12 PM ---------- Previous update was at 07:04 PM ----------
my epoch has a high resolution 6digits after the decimal, but the resolution that I want is per second..Im actually converting data from epoch to H:M:S so that I can have this. any other way??
The thing is I have my timestamp in epoch and is something like xxxxxxx.xxxxxx the part after the '.' is sub second. So from this i convert it to normal time ignoring the sub second part. and what I want to do is obtain number of times that event has occurred. I use uniq -c -w8 for this.
To do the same in epoch i have to filter in awk just the part before sub seconds and then use uniq on it. trying to figure the awk part now...