Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

gnuplotで任意の場所に矢印やラベルを放り込む方法

矢印

set label <<名前>> <<内容>> at <<場所。x,yの順>> <<文字を配置する位置>>

ラベル

set style arrow <<名前>> <<形状指定>>
set arrow <<矢印の名前>> as <<使用するスタイルの名前>> from <<始点。x,yの順>> to <<終点。x,yの順>>

実例

set label 1 'Width = 3' at 2,0.1 center
set label 2 'HERE!!' at -1.5,-0.5 center
set style arrow 1 size graph 0.02,20 filled heads linewidth 1
set style arrow 2 size graph 0.02,20 filled linewidth 1
set arrow 1 as 2 from -1.5,-0.6 to -1.5,-1
set arrow 2 as 1 from 0,0 to 3,0
plot sin(x)

f:id:shuzo_kino:20140120230116p:plain