감동, 마음이 움직이는 것
[gnuplot] HSV to RGB 본문
unset tics
set size ratio 1
a=15
init = 2./3
final = 1.
Hue(x, y) = y/(x+y)*(final-init)+init
B(x,y) = (log(a*(x+y))+1)/(log(a)+1)
f(x, y) = hsv2rgb( Hue(x, y), 1, B($3,$4))
#data cols: coordination-x, coordination-y, coorperator density, defector density
plot 'data.d' u 1:2:(f($3,$4)/256/256):((f($3,$4)%(256*256))/256):(f($3, $4)%(256)) w rgbimage t ""
'Tips (Utility, Computer Language, and etc.)' 카테고리의 다른 글
[gnuplot] for loop with filename list [file in list] (0) | 2018.03.27 |
---|---|
[c++] Gamma function in c++ (0) | 2018.03.26 |
[LaTex] line number in article model with equation (math environment) (0) | 2018.03.15 |
[발표팁] (0) | 2018.03.10 |
[Integrals of Rational Functions] (0) | 2018.02.27 |