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


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

Re: Plotting Errorbars with the Ternary Operator

From Austin Godber <godber@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plotting Errorbars with the Ternary Operator
Date 2012-06-07 11:38 -0700
Organization http://groups.google.com
Message-ID <0ef81560-e276-48f0-8154-d2ab5e06e774@googlegroups.com> (permalink)
References <0ce0a192-2dc2-421f-ab92-051078a93793@googlegroups.com> <a3c9sdFmeeU2@mid.dfncis.de>

Show all headers | View raw


On Thursday, June 7, 2012 11:23:13 AM UTC-7, Hans-Bernhard Bröker wrote:
> On 07.06.2012 19:35, godber@$.com wrote:
> > And the syntax for errorbars is something like:
> >
> > plot f using 11:2:3
> >
> 
> > But the ternary operator throws a monkeywrench in that syntax AFAICT.
> 
> Why should it?  You just replaced the '2' with a rather complex 
> expression.  That won't keep you from following it with the same ':3' 
> 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:( ( \ 
    (stringcolumn(13) eq "12bpp") && \ 
    (stringcolumn(12) eq "r") && \ 
    (stringcolumn(10) eq "ML") \ 
  ) ? $2 : NaN ):3

has now become:

($11 + 0.1):( ( \ 
    (stringcolumn(13) eq "12bpp") && \ 
    (stringcolumn(12) eq "r") && \ 
    (stringcolumn(10) eq "ML") \ 
  ) ? $2 : NaN ):($3/100)

Austin

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


Thread

Plotting Errorbars with the Ternary Operator godber@gmail.com - 2012-06-07 10:35 -0700
  Re: Plotting Errorbars with the Ternary Operator Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-06-07 20:23 +0200
    Re: Plotting Errorbars with the Ternary Operator Austin Godber <godber@gmail.com> - 2012-06-07 11:38 -0700

csiph-web