📄 surface1.dem
字号:
## $Id: surface1.dem,v 1.3.2.2 2001/12/04 14:12:53 lhecking Exp $#set samples 21set isosample 11set xlabel "X axis" -3,-2set ylabel "Y axis" 3,-2set zlabel "Z axis" -5set title "3D gnuplot demo"set label 1 "This is the surface boundary" at -10,-5,150 centerset arrow 1 from -10,-5,120 to -10,0,0 noheadset arrow 2 from -10,-5,120 to 10,0,0 noheadset arrow 3 from -10,-5,120 to 0,10,0 noheadset arrow 4 from -10,-5,120 to 0,-10,0 noheadset xrange [-10:10]set yrange [-10:10]splot x*ypause -1 "Hit return to continue (1)"set noarrowset nolabelset gridsplot x**2+y**2, x**2-y**2pause -1 "Hit return to continue (2)"rep x*ypause -1 "Hit return to continue (3)"rep (x**3+y**3)/10pause -1 "Hit return to continue (4)"set ticslevel 0.0set title "3D gnuplot demo ( ticslevel = 0.0 )"reppause -1 "Hit return to continue (5)"set ticslevel 2.0set title "3D gnuplot demo ( ticslevel = 2.0 )"reppause -1 "Hit return to continue (6)"set ticslevel 0.5set title "3D gnuplot demo ( ticslevel = 0.5 )"reppause -1 "Hit return to continue (7)"set title "3D gnuplot demo"set nogridsplot x*y with pointspause -1 "Hit return to continue (8)"set noxticsset noyticsset xrange [-1:1]set yrange [-1:1]set title "Surfaces with no grid or tics"splot x*y with lines, x**2*y**3 with dots, x**3*y*2 with pointspause -1 "Hit return to continue (9)"set xtics ("low" -3, "mid" 0, "high" 3)set ytics -2,0.5,2set xrange [-3:3]set yrange [-3:3]set log zset title "Surfaces with z log scale"splot x**2*y**2 + 2, x**2*y**4 + 2, x**4*y**2 + 2pause -1 "Hit return to continue (10)"set nolog zset xtics autofreqset ytics autofreqset xrange [-1:1]set yrange [-1:1]set samples 51set isosample 21set dummy u,vset title "3D gnuplot demo"splot u*v / (u**2 + v**2 + 0.1)pause -1 "Hit return to continue (11)"splot [x=-3:3] [y=-3:3] sin(x) * cos(y)pause -1 "Hit return to continue (12)"set zrange [-1.0:1.0]replotpause -1 "Hit return to continue (13)"set title "Sinc function"set zrange [-1:1]set label 1 "This is equal to 1" at 0,3.2,1 leftset arrow 1 from 0,3,1 to 0,0,1sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)splot [-5:5.01] [-5:5.01] sinc(u,v)pause -1 "Hit return to continue (14)"set view 70,20,1set zrange [-0.5:1.0]set ztics -1,0.25,1set label 1 "This is equal to 1" at -5,-2,1.5 centreset arrow 1 from -5,-2.1,1.4 to 0,0,1splot [-12:12.01] [-12:12.01] sinc(u,v)pause -1 "Hit return to continue (15)"set noarrowset ztics autofreqset noarrowset nolabelset logset autoset title "This has logarithmic scale"splot [x=1:15] [y=1:15] x**2+y**2pause -1 "Hit return to continue (16)"set nologset xrange [0:15]set yrange [0:15]set auto#set zrange [-0.6:0.7]set ticslevel 0set data style linesset title "Data grid plotting"set parametricsplot "glass.dat"pause -1 "Hit return to continue (17)"splot "glass.dat" using 3:2:1pause -1 "Hit return to continue (18)"set zrange [-1.2:1.2]set ticslevel 0.5set noparametricset xlabel "line index within group"set ylabel "group index"splot "glass.dat" using 1, "glass.dat" using 2, "glass.dat" using 3pause -1 "Hit return to continue (19)"set parametricset title "Test of spherical transform"set mapping sphericalsplot "glass.dat"pause -1 "Hit return to continue (20)"# mandelbrot demoset title "Mandelbrot function"set noparametricset mapping cartesianset view 60,30,1,1set autoset isosamples 60set hidden3dcompl(a,b)=a*{1,0}+b*{0,1}mand(z,a,n) = n<=0 || abs(z)>100 ? 1:mand(z*z+a,a,n-1)+1splot [-2:1][-1.5:1.5] mand({0,0},compl(x,y),30) pause -1 "Hit return to continue (21)"reset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -