とりあえず使ってみる

4da61815761dbffa09caba858e77f659
#gnuplot{{{
set grid
plot tanh(x)
replot 1/(1+exp(-x))
}}}

大きさ指定

f5369c9d530091a4556361842da343cd
#gnuplot(640,480){{{
set grid
plot tanh(x)
replot 1/(1+exp(-x))
}}}

データ読み込み・ギリシャ文字・矢印

ce7777d7ba3baa517115803ec5da144b
#gnuplot(){{{
set grid
set arrow 1 from 2.0,3.5 to 3.0,3.5 linewidth 2 linecolor rgb "red"
set arrow 2 from 3.0,3.5 to 3.0,2.0 linewidth 2 linecolor rgb "red"
set label 1 at first 3.2,3.0 "∂w1" textcolor rgb "red"
plot "$attach_data.txt" \
smooth csplines \
title "∂E/∂w1" \
with lines \
linecolor rgbcolor "blue"
---- data.txt
#  X     Y  
   1.0   5.0
   2.0   3.5
   3.0   2.0
   4.0   1.5
   5.0   3.5
}}}

値の制限

5182bac3d4a9afc0274b4b0f8421179f
#gnuplot(320,240){{{
set grid
set xr[-5:5]
set yr[-0.5:2]
plot (1/(1+exp(-x)))*(1-1/(1+exp(-x))) title "diff logistic" linecolor rgbcolor "red"
replot 1-tanh(x)*tanh(x) title "diff hypabolic" linecolor rgbcolor "blue"
}}}

値域が違う関数を並べて表示するときには、yr が必要。ないと

526a887789e4420017407ee740b20d46

軸ラベル

4e2df999916425802ca9fd603443b260
#gnuplot(640,240){{{
set grid
set xr[0:1]
set ylabel "KL(0.3|x)"
set xlabel "x"
plot 0.3*log(0.3/x) + (1-0.3)*log((1-0.3)/(1-x)) title "kullback leibler divergence"
}}}

FrontPage


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS   sitemap
Last-modified: 2016-03-16 (水) 23:36:04 (2960d)
Short-URL:
ISBN10
ISBN13
9784061426061