Processing math: 100%

2013年10月29日火曜日

gnuplotでの縦線

gnuplotで x = \mathrm{const.}の縦線の入れ方は、

set arrow from x1,y1 to x2,y2 nohead

とすればいい。そうすれば(x_1,y_1)から(x_2,y_2)へ伸びる線が引ける。

<< 例 >>
set xrange[0:8]
set yrange[0:8]
y=4
set arrow 1 from 4,0 to 4,8 nohead
set arrow 2 from 6,2 to 6,6 nohead lc rgb "forest-green" lw 4
plot y

0 件のコメント :

コメントを投稿