Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1226

Re: plotting from a text file

From tom <tommaso.vinci@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting from a text file
Date 2012-06-26 07:53 -0700
Organization http://groups.google.com
Message-ID <b5bc7f6d-92c9-45f0-bf4b-2abf33cf4012@googlegroups.com> (permalink)
References <bf5e9bbe-eb98-4764-9e58-bc83a980a7b0@qz1g2000pbc.googlegroups.com>

Show all headers | View raw


On Tuesday, 26 June 2012 13:06:15 UTC+2, jaya choudhary  wrote:
> Hi,
> I have a file 'file1.txt'. It has 4 columns. Is it possible to plot a
> graph using 3rd and 4th column for all those rows where column2 has a
> value of 1.
> 
> Jaya

sure!

plot 'file1.txt' u 3:($2==1?$4:0/0)

cheers

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

plotting from a text file jaya choudhary <cse.jaya@gmail.com> - 2012-06-26 04:06 -0700
  Re: plotting from a text file tom <tommaso.vinci@gmail.com> - 2012-06-26 07:53 -0700

csiph-web