我想在 gnuplot 中对一些抽动进行分组。例如,x 轴应该看起来像
| program 1 | program 2 | program 3 | program 4 |
| group 1 | group 2 |
怎么可能?
更新:
根据示例,我有一个数据文件包含
10
20
30
40
所以我写了
set xtics ("program 1" 0, "program 2" 1, "program 3" 2, "program 4" 3)
plot \
newhistogram "group 1", "data.txt" every ::1::2 with boxes, \
newhistogram "group 2", "data.txt" every ::3::4 with boxes
但情节不包含程序 3 和 4