Tips (Utility, Computer Language, and etc.)
[gnuplot] splot과 plot을 동시에 사용하기2 (with and without dgrid3d)
Struggler J.
2017. 8. 11. 20:14
[Ref] https://stackoverflow.com/questions/35818875/gnuplot-pm3d-with-contour-lines
[+] set hidden3d를 함께 사용하면 set pm3d map을 했을 떄 line이 나타나지 않는다.
[+] table은 w pm3d와 함께 사용할 수 없다. 그래서 그리기 전에 set pm3d explicit라고 해줘야 한다.
set t po eps enh color
set output 'TransitionfromTau.eps'
set border lw 1.5
#make data set
set pm3d explicit
set dgrid3d 50, 50, 50
set table "res.dat"
splot "landscape.txt" u 1:2:($3-$7>0?1:-1)
unset table
unset dgrid3d
#plot
set xtic 1
set ytic 1
set size ratio 1
set xr[0.2:5]
set yr[0.2:5]
set palette defined ( 0 "#d8b365", 1 "#f5f5f5", 2 "#5ab4ac" )
set pm3d map
set border lw 1.5
sp 'res.dat' w pm3d t '' , 'rm.d' u 1:2:(-1.0) w l lw 2 lc rgb "black" t ''