Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1190
| 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 <godber@gmail.com> |
| 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> (permalink) |
| References | <0ce0a192-2dc2-421f-ab92-051078a93793@googlegroups.com> <a3c9sdFmeeU2@mid.dfncis.de> |
| 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 | <a3c9sdFmeeU2@mid.dfncis.de> |
| 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 |
Show key headers only | 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 | Next — Previous in thread | Find similar
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