メモ:gnuplotでの2点間線分
例えば、(3.0, -0.5)と(3.0, 1.0)を結ぶ線分を書きたいとき。
スクリプト | 結果 |
---|---|
set size 0.5,0.5 set xrange[1:4] plot "-" w l lw 3 3.0 -0.5 3.0 1.0 e |
同様に連続直線は、
set size 0.5,0.5 set xrange[1:4] plot "-" w l lw 3 3.0 -0.5 3.0 1.0 1.4 3 2.5 2 e |
更に、1行空けると複数の直線が引ける。
set size 0.5,0.5 set xrange[1:4] plot "-" w l lw 3 3.0 -0.5 3.0 1.0 1.4 3 |