# set terminal svg size 600,400 dynamic enhanced font 'arial,10' mousing name "pm3d_clip_2" butt dashlength 1.0 # set output 'pm3d_clip.2.svg' 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 nowriteback set x2range [ * : * ] noreverse writeback set yrange [ 0.00000 : 10.0000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles border linewidth 0.500 dashtype solid corners2color mean set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault 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"