Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Austin Godber Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plotting Errorbars with the Ternary Operator Date: Thu, 7 Jun 2012 11:38:33 -0700 (PDT) Organization: http://groups.google.com Lines: 37 Message-ID: <0ef81560-e276-48f0-8154-d2ab5e06e774@googlegroups.com> References: <0ce0a192-2dc2-421f-ab92-051078a93793@googlegroups.com> NNTP-Posting-Host: 129.219.136.200 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1339094427 2721 127.0.0.1 (7 Jun 2012 18:40:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 7 Jun 2012 18:40:27 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=129.219.136.200; posting-account=ByzDiwoAAABGmGOEg-S5ZIvtFg8m_6GP User-Agent: G2/1.0 X-Received-Bytes: 2244 Xref: csiph.com comp.graphics.apps.gnuplot:1190 On Thursday, June 7, 2012 11:23:13 AM UTC-7, Hans-Bernhard Br=F6ker wrote: > On 07.06.2012 19:35, godber@$.com wrote: > > And the syntax for errorbars is something like: > > > > plot f using 11:2:3 > > >=20 > > But the ternary operator throws a monkeywrench in that syntax AFAICT. >=20 > Why should it? You just replaced the '2' with a rather complex=20 > expression. That won't keep you from following it with the same ':3'=20 > you use up here. Yeah, you are right, they work fine together, my error was trying to use "= w errorbars points pt 4". I hadn't realized that errorbars and points were= mutually exclusive. For the record my columns are getting even more complex now that I realize = that any number is replaceable by any expression in parens. My: 11:( ( \=20 (stringcolumn(13) eq "12bpp") && \=20 (stringcolumn(12) eq "r") && \=20 (stringcolumn(10) eq "ML") \=20 ) ? $2 : NaN ):3 has now become: ($11 + 0.1):( ( \=20 (stringcolumn(13) eq "12bpp") && \=20 (stringcolumn(12) eq "r") && \=20 (stringcolumn(10) eq "ML") \=20 ) ? $2 : NaN ):($3/100) Austin