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


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

Re: Line type defined by data

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl-Friedrich Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Line type defined by data
Date Sun, 16 Aug 2015 17:12:56 +0200
Organization solani.org
Lines 31
Message-ID <mqq99p$lhg$1@solani.org> (permalink)
References <mqm0a7$bql$1@speranza.aioe.org> <d38j88Fhs5tU1@mid.dfncis.de> <mqn6a4$khd$1@speranza.aioe.org> <mqnu9j$7c7$1@dont-email.me> <mqobpq$9r6$1@speranza.aioe.org> <mqp04r$jup$1@dont-email.me> <mqpvkr$cli$1@speranza.aioe.org> <mqq45h$mhq$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1439737977 22064 eJwFwYEBwDAIArCbRHDdOerK/ycsUVbUPiwVZXkNn/r2pTkZ9CLnoluiui6tw0Hf6AS0Py8XEYQ= (16 Aug 2015 15:12:57 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 16 Aug 2015 15:12:57 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
X-User-ID eJwFwYEBgDAIA7CXYNBiz0GU/09YgqBzKgkmFjv1teXR/GRVzJrM87BaQMPZkqkht/eJ2AsLYBAb
In-Reply-To <mqq45h$mhq$1@speranza.aioe.org>
Cancel-Lock sha1:WfcTEzv8n2CC2LnINoqcrIINUPo=
X-NNTP-Posting-Host eJwFwQERADEIAzBLcFAKcn5s9S/hE0R5LbNQCUGz9DVX4W77vLnISD6jxRzu+TjNfoRcVP8SXRDL
Xref csiph.com comp.graphics.apps.gnuplot:3037

Show key headers only | View raw


Am 16.08.2015 um 15:45 schrieb Janis Papanagnou:
> On 16.08.2015 14:28, Janis Papanagnou wrote:
>> On 16.08.2015 05:32, Ethan A Merritt wrote:
>>>
>>>   plot 'datafile.dat' using 1:2:3 lc rgb varialbe
>>>
>>
>> This looks like an interesting variant! - I'll try that. Thanks!
> 
> It works fine. Compared to the other two variants upthread I like that
> the plot command is structurally very simple! - A minor issue is only
> that with the other variants I get two titles in the diagram, one for
> the "red" and one for the "green" case, and here I get only one. While
> that's not that impotant in my actual case (so I use an empty 'title')
> I'd be interested to know whether there's also an option to create two
> titles with the one plot command suggested here.

You can get only one title per plot. Also with "lc rgb variable" the
colour of the legend symbol always assumes the last value from the
data file.

You'll again have to split the plot in two using the ternary
operator in the using statement

plot "dataf" us ($3==color1?$1:NaN):2:3 lc rgb variable tit "C 1",\
     "dataf" us ($3==color2?$1:NaN):2:3 lc rgb variable tit "C 2"




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


Thread

Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-15 02:15 +0200
  Re: Line type defined by data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-08-15 12:40 +0200
    Re: Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-15 13:03 +0200
      Re: Line type defined by data Ethan A Merritt <EAMerritt@gmail.com> - 2015-08-15 10:54 -0700
        Re: Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-15 23:43 +0200
          Re: Line type defined by data Ethan A Merritt <EAMerritt@gmail.com> - 2015-08-15 20:32 -0700
            Re: Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-16 14:28 +0200
              Re: Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-16 15:45 +0200
                Re: Line type defined by data Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-08-16 17:12 +0200
                Re: Line type defined by data Janis Papanagnou <janis_papanagnou@hotmail.com> - 2015-08-17 16:06 +0200

csiph-web