【发布时间】:2018-03-16 06:50:20
【问题描述】:
我是 gnuplot 的新手。我一直在尝试将 CSV 的内容绘制成各种格式,例如线条、框等。但是,由于我拥有的数据量和性质,CSV 中的各个字段/列在同一实例中具有有限的数据时间,由于显而易见的原因,我看到它们在情节中重叠。我想问是否有任何方法可以突出显示所有图,这意味着,如果多列数据似乎共享相同的时间戳,有没有办法我可以看到前面的最小值和后面的较大值。一种可能的方法是堆叠条形图。
这是我输入的 CSV 的片段:
TimeStamp,Score_1,Score_2,Score_3,Score_4
13:48:24, 8800, 8796, 4, 10
13:48:29, 1500, 8896, 4, 900
13:48:33, 8900, 8896, 4, 0
13:48:41, 8900, 8896, 4, 0
13:48:43, 6900, 8896, 4, 5000
13:48:55, 8900, 8896, 4, 0
13:49:21, 8900, 8500, 4, 0
13:49:29, 2900, 8000, 1000, 2000
13:50:29, 1900, 8896, 4000, 0
13:55:29, 9000, 8896, 1400, 0
13:52:29, 900, 8896, 4, 0
到目前为止我所做的尝试:
INPUT_FILE=ARG1
set datafile separator ','
set key autotitle columnhead
set boxwidth 0.5 relative
set style fill solid 1.0 border -1
plot INPUT_FILE using 1:2 with boxes, \
"" using 1:3 with boxes, \
"" using 1:4 with boxes, \
#plot INPUT_FILE using 1:2 with lines, \
#"" using 1:3 with lines, \
#"" using 1:4 with lines, \
【问题讨论】:
-
these examples 中的任何一个看起来像你所追求的吗?
标签: linux csv gnuplot data-visualization