gnuplot でヒストグラムに 2 つのポイントラインを描画したいのですが、結果のチャートは私が望んでいたものとは異なります。実際には、2 種類の柱の中心に 2 つの点線 (ピンク色と薄緑色のもの) の点を揃えたいので、薄緑色のものは静止し、ピンク色のものは黒いものと同じように少し右に移動します。描いた。
「test.dat」は次のとおりです。
1 10 15 8 22 2 11 19 7 21 3 9 14 7 19 4 10 21 8 23 5 9 17 9 21
および「plt」ファイル:
set style data histogram
unset key
set yrange[0:12]
set y2range[0:25]
plot "test.dat" using 2:xticlabel(1) axis x1y1,\
"test.dat" using 3:xticlabel(1) axis x1y2 with linespoints,\
"test.dat" using 4:xticlabel(1) axis x1y1,\
"test.dat" using 5:xticlabel(1) axis x1y2 with linespoints