幾個數據文件看起來像與gnuplot的燭臺轉移數據
1 342 345 564
2 254 543 432
3 341 988 343
4 454 324 342
...
具有相同的第一列
所有。我打算用gnuplot燭臺繪製數據。這是我正在使用的功能:
plot 'file1.txt' using 1:3:2:6:5:xticlabels(7) with candlesticks title '1' whiskerbars,
'file2.txt' using 1:3:2:6:5:xticlabels(7) with candlesticks title '2' whiskerbars lt 1 linecolor 3,
'file3.txt' using 1:3:2:6:5:xticlabels(7) with candlesticks title '3' whiskerbars lt 1 linecolor 7
但是,行重疊,我想file1.txt數據開始,例如。 10,file2.txt數據從12開始,file3.txt數據從14開始。每個增量應爲10。通過這種方式,我希望獲得不同文件的行分組,並將它們分開。
這怎麼可能實現? gnuplot適應或輸入文件適應是可以接受的(後者意味着我首先自動將一個文件的第一列更改爲10的倍數,將另一個更改爲倍數10加2 ...)
我很難理解你想要什麼。首先,你的數據文件只有4列,但你在使用規範中引用y。第二個「每個增量應該是10」,但是你說file1從10開始,file2在12 ...?最後,在x軸還是y軸上? – mgilson