home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!ukma!darwin.sura.net!spool.mu.edu!umn.edu!lynx!triton.unm.edu!jdaves
- From: jdaves@triton.unm.edu (Jonathan Daves-Brody)
- Subject: Re: simple splot question...
- Message-ID: <7mcqmvn@lynx.unm.edu>
- Date: Wed, 11 Nov 92 17:22:59 GMT
- Organization: University of New Mexico, Albuquerque
- References: <BxGEIJ.MGF@math.uwaterloo.ca> <JACKSON.92Nov9120154@pallas.phobos.sscl.uwo.ca> <1992Nov11.063152.15928@leland.Stanford.EDU>
- Distribution: na
- Keywords: splot
- Lines: 45
-
- In article <1992Nov11.063152.15928@leland.Stanford.EDU> wolf@leland.Stanford.EDU (Andy Wolfsberg) writes:
- >In article <JACKSON.92Nov9120154@pallas.phobos.sscl.uwo.ca> jackson@pallas.phobos.sscl.uwo.ca (Peter L. Jackson) writes:
- >>
- >>I would like to use splot to contour and draw a surface of gridded
- >>data read from a file. Is this possible? All I can do so far is plot
- >>the actual data points. Here is what I do:
- >>
- >>set parametric
- >>set surface
- >>splot "test.data"
- >>
- >>which plots the data points, but no surface connecting them.
- >>
- >>when I "set contour" there is an error message: "Can not contour non
- >>grid data!" even though the data is defined on a regular grid. I have
- >>no difficulty with surface plots of functions. I'm using gnuplot 3.2
- >>on unix DECstations.
- >>
- >i
- >
- >SAME HERE :)
- >
- >I'm hoping someone will answer your question on the net
- >inquiring minds want to know.
- >
- >Please help someone.
- >
- I was hoping someone more knowledgable would answer but. . .
-
- The data file should consist of blocks of point triplets. Each block
- should be the same number of lines long, and each block should be separated
- from the other blocks by a CR/LF. Each block represents a line along the
- surface in one direction. If the blocks are all the same length, gnuplot
- assumes a bunch of parallel lines (or something).
-
- The hardest problem that I had when generating the dataset with a FORTRAN
- prograj was separating blocks with a CR/LF. I finally had to use a statement
- like this:
- write(999,'(a)') char(13)
- where 13 is the ASCII code for a CR.
-
- You should also 'set data style lines'
-
-
- Hope that helps. . .
-