home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / graphics / gnuplot / 345 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.1 KB  |  58 lines

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!ukma!darwin.sura.net!spool.mu.edu!umn.edu!lynx!triton.unm.edu!jdaves
  3. From: jdaves@triton.unm.edu (Jonathan Daves-Brody)
  4. Subject: Re: simple splot question...
  5. Message-ID: <7mcqmvn@lynx.unm.edu>
  6. Date: Wed, 11 Nov 92 17:22:59 GMT
  7. Organization: University of New Mexico, Albuquerque
  8. References: <BxGEIJ.MGF@math.uwaterloo.ca> <JACKSON.92Nov9120154@pallas.phobos.sscl.uwo.ca> <1992Nov11.063152.15928@leland.Stanford.EDU>
  9. Distribution: na
  10. Keywords: splot
  11. Lines: 45
  12.  
  13. In article <1992Nov11.063152.15928@leland.Stanford.EDU> wolf@leland.Stanford.EDU (Andy Wolfsberg) writes:
  14. >In article <JACKSON.92Nov9120154@pallas.phobos.sscl.uwo.ca> jackson@pallas.phobos.sscl.uwo.ca (Peter L. Jackson) writes:
  15. >>
  16. >>I would like to use splot to contour and draw a surface of gridded
  17. >>data read from a file. Is this possible?  All I can do so far is plot
  18. >>the actual data points. Here is what I do:
  19. >>
  20. >>set parametric
  21. >>set surface
  22. >>splot "test.data"
  23. >>
  24. >>which plots the data points, but no surface connecting them.
  25. >>
  26. >>when I "set contour" there is an error message: "Can not contour non
  27. >>grid data!" even though the data is defined on a regular grid. I have
  28. >>no difficulty with surface plots of functions. I'm using gnuplot 3.2
  29. >>on unix DECstations.
  30. >>
  31. >i
  32. >
  33. >SAME HERE :)
  34. >
  35. >I'm hoping someone will answer your question on the net 
  36. >inquiring minds want to know.
  37. >
  38. >Please help someone.
  39. >
  40. I was hoping someone more knowledgable would answer but. . .
  41.  
  42. The data file should consist of blocks of point triplets.  Each block
  43. should be the same number of lines long, and each block should be separated
  44. from the other blocks by a CR/LF.  Each block represents a line along the
  45. surface in one direction.  If the blocks are all the same length, gnuplot
  46. assumes a bunch of parallel lines (or something).
  47.  
  48. The hardest problem that I had when generating the dataset with a FORTRAN 
  49. prograj was separating blocks with a CR/LF.  I finally had to use a statement
  50. like this:
  51.     write(999,'(a)') char(13)
  52. where 13 is the ASCII code for a CR. 
  53.  
  54. You should also 'set data style lines'
  55.  
  56.  
  57. Hope that helps. . .
  58.