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

  1. Newsgroups: comp.graphics.gnuplot
  2. 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
  3. From: mppu3@syma.sussex.ac.uk (Conor McMenamin)
  4. Subject: Re: gnuplot_note
  5. Message-ID: <1992Nov12.110334.29587@syma.sussex.ac.uk>
  6. Organization: University of Sussex
  7. X-Newsreader: Tin 1.1 PL4
  8. References: <9211111705.AA16192@di.epfl.ch>
  9. Date: Thu, 12 Nov 1992 11:03:34 GMT
  10. Lines: 23
  11.  
  12. grossgla@di.epfl.ch (Matthias Grossglauser) writes:
  13. : Hi
  14. : I'm intending to use gnuplot for some simulation graphics. The data is
  15. : written to a file by a simulator, from which I would like to generate
  16. : the diagrams. However, I couldn't find a way to use a file with plot
  17. : in the format (x,y1,y2,...,yn), i.e. to have several y-values per x-value.
  18.     This can be done by specifying multiple plots on the command
  19. line:
  20.  
  21. gnuplot> plot "sim.dat" u 1:2 w lines,"sim.dat" u 1:3 w points,"sim.dat"
  22. u 1:4 w linespoints .....etc.
  23.  
  24. the "u" is an abbreviation for "using" (either may be used on the
  25. command line), so "u 1:3" plots the graph using column 1 for the
  26. x-variable and column 3 for the y-variable. The "w" is short for "with",
  27. again the two are interchangeable, and allows you to specify the
  28. representation of the plot. For a list of types try "help set data
  29. style". 
  30.  
  31.     Hope this is helpful.
  32.         Conor
  33.