来自双数的 gnuplot 时间戳格式(13dig.epoch)

gnuplot timestamp format from double number (13dig. epoch)

我有一个包含字符串的文件

1.429520882432E12 3432.0 
1.429520882914E12 1573.0
...

first col是epoch timestamp(13位),我如何从中获取时间?我找不到 'double' 位数

的格式

我从 javaplot 程序导出它,plot 'file' using (*1000000000000):2 不适合,但如果我可以用 javaplot 做,那就太好了!

为什么要将值乘以 100000000...?这些值已经以毫秒为单位作为浮点数给出。你必须将它们除以 1000。这样做,我得到了这个输出,它非常适合你的 432 和 914 毫秒:

代码如下:

set xdata time
set timefmt "%s"                   # Format in file
set format x "%Y-%m-%d %H:%M:%.3S" # Format of axis labels
set xtics 0.05                     # One label every 50ms
set xtics rotate by 30 right       # Labels are looong...
set grid

plot "timedData.csv" u ((/1000)):2 with linespoints