home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / PLOT / GPLOT_3D.ZIP / DEMO / DEMO1.PLT < prev    next >
Encoding:
Text File  |  1991-04-11  |  2.3 KB  |  87 lines

  1. set samples 21
  2. set isosample 11
  3. set xlabel "X axis" -3,-2
  4. set ylabel "Y axis" 3,-2
  5. set zlabel "Z axis" -5
  6. set title "3D gnu plot demo"
  7. splot x*y
  8. pause -1 "Hit return to continue (1)"
  9. set grid
  10. splot x**2+y**2, x**2-y**2
  11. pause -1 "Hit return to continue (2)"
  12. rep x*y
  13. pause -1 "Hit return to continue (3)"
  14. rep (x**3+y**3)/10
  15. pause -1 "Hit return to continue (4)"
  16. set nogrid
  17. splot x*y with points
  18. pause -1 "Hit return to continue (5)"
  19. set noxtics
  20. set noytics
  21. set xrange [-1:1]
  22. set yrange [-1:1]
  23. set title "Surfaces with no grid or tics"
  24. splot x*y with lines, x**2*y**3 with dots, x**3*y*2 with points
  25. pause -1 "Hit return to continue (6)"
  26. set xtics ("low" -3, "mid" 0, "high" 3)
  27. set ytics -2,0.5,2
  28. set xrange [-3:3]
  29. set yrange [-3:3]
  30. set log z
  31. set title "Surfaces with z log scale"
  32. splot x**2*y**2 + 2, x**2*y**4 + 2, x**4*y**2 + 2
  33. pause -1 "Hit return to continue (7)"
  34. set nolog z
  35. set xtics
  36. set ytics
  37. set xrange [-1:1]
  38. set yrange [-1:1]
  39. set samples 51
  40. set isosample 21
  41. set dummy u,v
  42. set title "3D gnu plot demo"
  43. splot u*v / (u**2 + v**2 + 0.1)
  44. pause -1 "Hit return to continue (8)"
  45. splot [x=-3:3] [y=-3:3] sin(x) * cos(y)
  46. pause -1 "Hit return to continue (9)"
  47. set zrange [-0.35:0.35]
  48. replot
  49. pause -1 "Hit return to continue (10)"
  50. set title "Sinc function"
  51. set label 1 "This is equal to 1" at -5,-2,0.75 right
  52. set arrow 1 from -5,-2.1,0.75 to 0,0,1
  53. splot [-5:5.01] [-5:5.01] sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
  54. pause -1 "Hit return to continue (11)"
  55. set view 70,20,1
  56. set zrange [-0.5:1.0]
  57. set ztics -1,0.25,1
  58. set label 1 "This is equal to 1" at -5,-2,1.5 centre
  59. set arrow 1 from -5,-2.1,1.4 to 0,0,1
  60. splot [-12:12.01] [-12:12.01] sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
  61. pause -1 "Hit return to continue (12)"
  62. set noarrow
  63. set ztics
  64. set nolabel
  65. set log
  66. set auto
  67. set title "This has logarithmic scale"
  68. splot [x=1:15] [y=1:15] x**2+y**2
  69. pause -1 "Hit return to continue (13)"
  70. set nolog
  71. set auto
  72. set samples 16
  73. set isosamples 16
  74. set xrange [0:15]
  75. set yrange [0:15]
  76. set auto
  77. set zrange [-0.6:0.6]
  78. set data style lines
  79. set title "Data grid plotting"
  80. set parametric
  81. splot "glass.dat"
  82. pause -1 "Hit return to continue (14)"
  83. set zrange [-1.2:1.2]
  84. set noparametric
  85. splot "glass.dat" using z "%f"
  86. pause -1 "Hit return to continue (15)"
  87.