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


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

Re: plot a section of a splot

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Kevin <kevin.nielson@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plot a section of a splot
Date Sat, 7 May 2011 05:31:46 -0700 (PDT)
Organization http://groups.google.com
Lines 7
Message-ID <19e0e10b-e9fe-4f11-9e24-e48dd9006132@glegroupsg2000goo.googlegroups.com> (permalink)
Reply-To comp.graphics.apps.gnuplot@googlegroups.com
NNTP-Posting-Host 72.145.176.119
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1304771506 14154 127.0.0.1 (7 May 2011 12:31:46 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Sat, 7 May 2011 12:31:46 +0000 (UTC)
In-Reply-To <861v0cjb9e.fsf@aiuole.stru.polimi.it>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=72.145.176.119; posting-account=xPraKwoAAACuhP2AaEPZD9ou4bAXJDMz
User-Agent G2/1.0
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:288

Show key headers only | View raw


You can be selective about data values by using the ternary logical operator:

plot 'results' u 1:( $2 = 10 ? $2 : 1/0 ):3 t  "P_{max}(x,10)"

This will use your y values as data where y = 10, and 1/0 (undefined) otherwise, so that other points aren't plotted.

Note that this will only plot points.  Unless all your y=10 values are contiguous in the file, gnuplot will not draw lines between these points.

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


Thread

Re: plot a section of a splot Kevin <kevin.nielson@gmail.com> - 2011-05-07 05:31 -0700
  Re: plot a section of a splot Giacomo Boffi <giacomo.boffi@polimi.it> - 2011-06-12 22:28 +0200

csiph-web