# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'pm3d_clip.2.png' set border -1 front lt black linewidth 1.000 dashtype solid set grid nopolar set grid xtics nomxtics ytics nomytics ztics nomztics nortics nomrtics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid vertical layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500 unset key set view 57, 25, 1, 1 set samples 13, 13 set isosamples 7, 7 set xyplane relative 0 set title "Smooth intersection of pm3d surfaces" set xrange [ 0.00000 : 10.0000 ] noreverse set yrange [ 0.00000 : 10.0000 ] noreverse set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles border linewidth 0.500 dashtype solid corners2color mean unset colorbox f(x,y) = x**2 + y**2 * (1 - x)**3 NO_ANIMATION = 1 splot (x*x+y*y) with pm3d fc "yellow", 100-(x*x+y*y) with pm3d fc "forest-green"