1

gnuplotを使用して複数の線をプロットしようとしていますが、それぞれに異なるx範囲があります。次のスクリプトを実行しています。

# gnuplot script for 'omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat'
plot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:2 with lines title '1'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:3 with lines title '2'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:4 with lines title '3'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:5 with lines title '4'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:6 with lines title '5'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:7 with lines title '6'
replot "omarConf2EvONLY-vs-everyone-gta-lag-lpas-omarConf1-random-tag-tpas.dat" using 1:8 with lines title '7'

set terminal png size 800,600
set output "omar_vs_everyone-EVONLY.png"
replot

.datファイルは、次のような列を持つ単なるファイルです。

1 0.5 0.5 0.1
2 0.6 1.3 0.8
3 0.7 0.32
4 0.7 0.35
5 1.3 4.32
6 1.67

各行のx範囲が異なるため、列の長さが異なることに注意してください。

私が抱えている問題は、以下に示すように面白いプロットになることです: alt text http://img192.imageshack.us/img192/4686/gnuplotfail.png

4

1 に答える 1

5

答えを見つけました:

次のようにデータを埋めるためにフルストップで配置してdatファイルを編集する必要があります。

1 0.5 0.5 0.1
2 0.6 1.3 0.8
3 0.7 0.32 .
4 0.7 0.35 .
5 1.3 4.32 .
6 1.67  .  .
于 2010-06-16T19:00:51.953 に答える