# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'projection.1.png' set dummy u, v unset key set wall y0 fc rgb "bisque" fillstyle transparent solid 0.50 border lt -1 set wall x0 fc rgb "forest-green" fillstyle transparent solid 0.50 border lt -1 set wall z0 fc rgb "slategrey" fillstyle transparent solid 0.50 border lt -1 set parametric set view map scale 1 set isosamples 75, 25 set style data lines set xyplane relative 0 set xtics border in scale 0.5,0.5 nomirror norotate autojustify set xtics norangelimit -4.00000,2 ,4.00000 set ytics border in scale 0.5,0.5 nomirror norotate autojustify set ytics norangelimit -4.00000,2 ,4.00000 set ztics border in scale 0.5,0.5 nomirror norotate center set ztics norangelimit 0.5 set cbtics border in scale 0.5,0.5 nomirror norotate autojustify set rtics border in scale 0.5,0.5 nomirror norotate autojustify set title "set view map" set urange [ 0.00000 : 31.4159 ] noreverse set vrange [ 0.00000 : 6.28319 ] noreverse set xlabel "X-axis" set xrange [ -5.00000 : 5.00000 ] noreverse set ylabel "Y-axis" set yrange [ -5.00000 : 5.00000 ] noreverse set zlabel "Z-axis" set pm3d implicit at s set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles border linecolor rgb "black" linewidth 0.500 dashtype solid corners2color mean set palette cubehelix start 0.5 cycles -1.5 saturation 1 unset colorbox NO_ANIMATION = 1 ## Last plot was a multiplot # saved multiplot set multiplot layout 2,2 title "2D projections of a 3D surface" font ":Bold" set title "general view " set view 60, 160, 1, 1.2 unset tics set arrow 1 from graph 0,0,0 to graph 1.20,0,0 filled size graph .05, 15 set arrow 2 from graph 0,0,0 to graph 0,1.25,0 filled size graph .05, 15 set arrow 3 from graph 0,0,0 to graph 0,0,1.25 filled size graph .05, 15 set label 1 at graph 1.30,0,0 "X" center set label 2 at graph 0,1.35,0 "Y" center set label 3 at graph 0,0,1.35 "Z" center splot (1-0.1*u*cos(v))*cos(u),(1-0.1*u*cos(v))*sin(u),0.1*(sin(v)+u/1.7-10) with pm3d unset for [i=1:3] arrow i unset for [i=1:3] label i unset view set title "set view projection xz" set xlabel "X-axis" offset 0,0 set ylabel "Y-axis" offset 0,0 set zlabel "Z-axis" offset 0,0 set xlabel rotate by -270 set xtics -4,2,4 set ytics -4,2,4 set ztics 0.5 set tics nomirror scale 0.5, 0.5 set view projection xz splot (1-0.1*u*cos(v))*cos(u),(1-0.1*u*cos(v))*sin(u),0.1*(sin(v)+u/1.7-10) with pm3d set xlabel norotate set title "set view projection yz" set view projection yz splot (1-0.1*u*cos(v))*cos(u),(1-0.1*u*cos(v))*sin(u),0.1*(sin(v)+u/1.7-10) with pm3d set title "set view map" set view projection xy splot (1-0.1*u*cos(v))*cos(u),(1-0.1*u*cos(v))*sin(u),0.1*(sin(v)+u/1.7-10) with pm3d unset multiplot