home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / gnuplot / 712 < prev    next >
Encoding:
Text File  |  1993-01-29  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.graphics.gnuplot
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!ruuinf!prisma.cv.ruu.nl!ger
  3. From: ger@cv.ruu.nl (Ger Timmens)
  4. Subject: Re: column filter for use with gnuplot
  5. Sender: usenet@cv.ruu.nl (Usenet Network)
  6. Message-ID: <1993Jan28.093937.28660@cv.ruu.nl>
  7. Date: Thu, 28 Jan 1993 09:39:37 GMT
  8. References: <1jk0qdINN611@swrinde.nde.swri.edu> <WDN.93Jan26223213@beach.cis.ufl.edu>
  9. Nntp-Posting-Host: triton.cv.ruu.nl
  10. Organization: University of Utrecht, 3D Computer Vision Research Group
  11. Lines: 29
  12.  
  13. In <WDN.93Jan26223213@beach.cis.ufl.edu> wdn@beach.cis.ufl.edu (William Dean Norris II) writes:
  14.  
  15. >>>>>> On 20 Jan 93 17:06:21 GMT, jss@stanley.nde.swri.edu (Jeff Stolte) said:
  16. >jss! Followup-To: comp.graphics.gnuplot
  17. >jss! NNTP-Posting-Host: stanley.nde.swri.edu
  18. >
  19. >jss! I have heard about a filter program that can be used to select
  20. >jss! specified columns from an ascii data file and have its output
  21. >jss! piped to gnuplot.  I do not remember what the program is called
  22. >jss! or where it is available.  Does anyone know of such a program?
  23. >
  24. >Try cut(1) or awk(1) if you are using a *ix system.
  25. >
  26. >cut should work in all of the cases I can think of, it is what I use.
  27. >Usually I print out all four variables and then plot them 3 at a time.
  28. >
  29. >
  30. >cat file | cut -f1-3 -d" " > plot1
  31. >cat file | cut -f1,2,4 -d" " > plot2
  32. >cat file | cut -f1,3,4 -d" " > plot3
  33.  
  34. Why don't you use: plot 'file' using 1:3
  35.  
  36. This plots column 3 of file agains column 1 of file.
  37. -- 
  38. |I|        Ger Timmens         |I| If you're not part of the solution, |I|
  39. |M|  3D Computer Vision Group  |M| you're part of the problem!         |M|
  40. |H|    e-mail ger@cv.ruu.nl    |H+-------------------------------------+H|
  41. |O|   or  timmens@cs.unc.edu   |O| Album by Joe Henderson (best tenor) |O|
  42.