home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / gnuplot / 704 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!swrinde!gatech!uflorida!bikini!wdn
  2. From: wdn@beach.cis.ufl.edu (William Dean Norris II)
  3. Newsgroups: comp.graphics.gnuplot
  4. Subject: Re: column filter for use with gnuplot
  5. Message-ID: <WDN.93Jan26223213@beach.cis.ufl.edu>
  6. Date: 27 Jan 93 03:32:13 GMT
  7. References: <1jk0qdINN611@swrinde.nde.swri.edu>
  8. Sender: news@uflorida.cis.ufl.edu
  9. Followup-To: comp.graphics.gnuplot
  10. Organization: /cis/thunder0/wdn/.organization
  11. Lines: 27
  12. Nntp-Posting-Host: beach.cis.ufl.edu
  13. In-reply-to: jss@stanley.nde.swri.edu's message of 20 Jan 93 17:06:21 GMT
  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. etc...
  34.  
  35. dean.
  36.  
  37. --
  38. -----
  39. William Dean Norris II        "Perhaps all pleasure is relief"
  40. University of Florida            William Lee
  41. wdn@cis.ufl.edu
  42.