home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!ames!agate!doc.ic.ac.uk!syma!mppu3
- From: mppu3@syma.sussex.ac.uk (Conor McMenamin)
- Subject: Re: gnuplot_note
- Message-ID: <1992Nov12.110334.29587@syma.sussex.ac.uk>
- Organization: University of Sussex
- X-Newsreader: Tin 1.1 PL4
- References: <9211111705.AA16192@di.epfl.ch>
- Date: Thu, 12 Nov 1992 11:03:34 GMT
- Lines: 23
-
- grossgla@di.epfl.ch (Matthias Grossglauser) writes:
- : Hi
- :
- : I'm intending to use gnuplot for some simulation graphics. The data is
- : written to a file by a simulator, from which I would like to generate
- : the diagrams. However, I couldn't find a way to use a file with plot
- : in the format (x,y1,y2,...,yn), i.e. to have several y-values per x-value.
- :
- This can be done by specifying multiple plots on the command
- line:
-
- gnuplot> plot "sim.dat" u 1:2 w lines,"sim.dat" u 1:3 w points,"sim.dat"
- u 1:4 w linespoints .....etc.
-
- the "u" is an abbreviation for "using" (either may be used on the
- command line), so "u 1:3" plots the graph using column 1 for the
- x-variable and column 3 for the y-variable. The "w" is short for "with",
- again the two are interchangeable, and allows you to specify the
- representation of the plot. For a list of types try "help set data
- style".
-
- Hope this is helpful.
- Conor
-