Version: gnuplot v5.3.0
Context
I am trying to plot the following CSV data, where the first column is a UNIX timestamps in milliseconds with floating point notation, the second one an integer representing an instant throughput (in units/s).
...
1.6069112402441587e+12,334
1.606911240244567e+12,335
1.6069112402475227e+12,336
1.6069112402481619e+12,337
...
For this, I wrote the following script file:
set xdata time
set timefmt "%s"
set datafile separator comma
plot "results.csv" u 1:3
My understanding from the gnuplot
V5 documentation is that the millisecond precision is supported in this version:
The current version of gnuplot stores time to a millisecond precision.
Problem
Upon execution of the plot
command, gnuplot
throws the following warning for every data entry in the CSV file, and doesn't plot any value:
"throughput.plt", line 15: warning: time value out of range
What I tried
I converted all entries from the first column of the data file to UNIX timestamps in seconds (changed e+12
to e+9
). This time plot
executes without any error, but the loss of precision makes the graph too approximate to be analyzed.
Is there a way in gnuplot
to ingest UNIX timestamps in milliseconds?