Translating the splot
commands from Google searches, I have the following code:
@gp :- "set view map" # bird eye view of 3d plot
@gp :- "set dgrid3d 100,100,100" ## edit these numbers to get more "resolution"
@gp :- "set pm3d interpolate 0,0" ## edit/comment this line to see how things work.
@gp :- "set grid x y lc 'black' front"
@gp :- "set palette rgbformulae 33,13,10"
@gp :- "set xrange [1:24]"
@gp :- "set xtics 1,1,24" "set ytics 1,1,31"
#@gp :- "set cblabel 'Legend' norotate offset -10.7, 12.3"
@gsp :- x y fxy "w pm3d notitle ls 1"
which gives the plot
You can use the code about to manually do interpolation OR play around/read the docs for "set pm3d interpolate 0,0"
for gnuplot to interpolate.
Now if you want to add contour lines, things are a bit tricky.
@gp :- "set style increment user"
@gp :- "set style line 1 lw 3" # the width of the contour line uses line style 1 by default
@gp :- "set style line 2 lc rgb 'black' " # contour lines uses line style 2 by default.
@gp :- "set contour"
#@gp :- "set cntrparam cubicspline" # Smooth out the lines"
#@gp :- "set cntrparam levels incremental 0,100,2000"
#@gp :- "set cntrlabel onecolor"
@gp :- "set cntrparam levels discrete 0.8" # Plot the selected contours
#@gp :- "set cntrlabel start 5 interval 20"
#set cntrlabel format '%5.3g' font ',7'
@gp :- "set view map" # bird eye view of 3d plot
@gp :- "set dgrid3d 100,100,100" ## edit these numbers to get more "resolution"
@gp :- "set pm3d interpolate 0,0" ## edit/comment this line to see how things work.
@gp :- "set grid x y lc 'black' front"
@gp :- "set palette rgbformulae 33,13,10"
@gp :- "set xrange [1:24]"
@gp :- "set xtics 1,1,24" "set ytics 1,1,31"
#@gp :- "set cblabel 'Legend' norotate offset -10.7, 12.3"
@gsp :- x y fxy "w pm3d notitle ls 1"
The figure looks like
Notice the two line styles. The first line style actually edits the line width of the contours while the second line style gives the color. Also play around with the commented lines.
I am very new to Gnuplot so I can’t explain what each line does, these figures are basically a mashup of commands I found on the internet.