home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- 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
- From: ger@cv.ruu.nl (Ger Timmens)
- Subject: Re: column filter for use with gnuplot
- Sender: usenet@cv.ruu.nl (Usenet Network)
- Message-ID: <1993Jan28.093937.28660@cv.ruu.nl>
- Date: Thu, 28 Jan 1993 09:39:37 GMT
- References: <1jk0qdINN611@swrinde.nde.swri.edu> <WDN.93Jan26223213@beach.cis.ufl.edu>
- Nntp-Posting-Host: triton.cv.ruu.nl
- Organization: University of Utrecht, 3D Computer Vision Research Group
- Lines: 29
-
- In <WDN.93Jan26223213@beach.cis.ufl.edu> wdn@beach.cis.ufl.edu (William Dean Norris II) writes:
-
- >>>>>> On 20 Jan 93 17:06:21 GMT, jss@stanley.nde.swri.edu (Jeff Stolte) said:
- >jss! Followup-To: comp.graphics.gnuplot
- >jss! NNTP-Posting-Host: stanley.nde.swri.edu
- >
- >jss! I have heard about a filter program that can be used to select
- >jss! specified columns from an ascii data file and have its output
- >jss! piped to gnuplot. I do not remember what the program is called
- >jss! or where it is available. Does anyone know of such a program?
- >
- >Try cut(1) or awk(1) if you are using a *ix system.
- >
- >cut should work in all of the cases I can think of, it is what I use.
- >Usually I print out all four variables and then plot them 3 at a time.
- >
- >
- >cat file | cut -f1-3 -d" " > plot1
- >cat file | cut -f1,2,4 -d" " > plot2
- >cat file | cut -f1,3,4 -d" " > plot3
-
- Why don't you use: plot 'file' using 1:3
-
- This plots column 3 of file agains column 1 of file.
- --
- |I| Ger Timmens |I| If you're not part of the solution, |I|
- |M| 3D Computer Vision Group |M| you're part of the problem! |M|
- |H| e-mail ger@cv.ruu.nl |H+-------------------------------------+H|
- |O| or timmens@cs.unc.edu |O| Album by Joe Henderson (best tenor) |O|
-