home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUPDEMO.ZIP / hidden.demo < prev    next >
Text File  |  1992-03-25  |  1KB  |  64 lines

  1. #
  2. # $Id$
  3. #
  4. # $Log$
  5. #
  6. set samples 20
  7. set isosamples 20
  8. set hidden3d
  9. set title "Hidden line removal of explicit surfaces"
  10.  
  11.  
  12. set xrange [-3:3]
  13. set yrange [-2:2]
  14. splot 1 / (x*x + y*y + 1)
  15. pause -1 "Hit return to continue (1)"
  16.  
  17. set xrange [-1:1]
  18. set yrange [-1:1]
  19. splot x*y / (x**2 + y**2 + 0.1)
  20. pause -1 "Hit return to continue (2)"
  21.  
  22. set view 70,45
  23. set nocontour
  24. set xrange [-3:3]
  25. set yrange [-3:3]
  26. splot sin(x*x + y*y) / (x*x + y*y)
  27. pause -1 "Hit return to continue (3)"
  28.  
  29. set view 60,30
  30. set xrange [-3:3]
  31. set yrange [-3:3]
  32. splot sin(x) * cos(y)
  33. pause -1 "Hit return to continue (4)"
  34.  
  35. set view 75,230
  36. set contour
  37. replot
  38. pause -1 "Hit return to continue (5)"
  39.  
  40. set view 80,30,1,1
  41. set data style lines
  42. set autoscale
  43. splot "glass.dat" using 1
  44. pause -1 "Hit return to continue (6)"
  45.  
  46. set view 50,
  47. set grid
  48. replot
  49. pause -1 "Hit return to continue (7)"
  50.  
  51. set nocontour
  52. set nogrid
  53. set nohidden3d
  54. set samples 100
  55. set isosamples 10
  56. set view 60,30,1,1
  57. set xrange [-10:10]
  58. set yrange [-10:10]
  59. set zrange [-10:10]
  60. set auto
  61. set title "" 0,0
  62.  
  63.  
  64.