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


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

Re: Line type defined by data

From Janis Papanagnou <janis_papanagnou@hotmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Line type defined by data
Date 2015-08-17 16:06 +0200
Organization Aioe.org NNTP Server
Message-ID <mqspq2$baq$1@speranza.aioe.org> (permalink)
References (4 earlier) <mqobpq$9r6$1@speranza.aioe.org> <mqp04r$jup$1@dont-email.me> <mqpvkr$cli$1@speranza.aioe.org> <mqq45h$mhq$1@speranza.aioe.org> <mqq99p$lhg$1@solani.org>

Show all headers | View raw


On 16.08.2015 17:12, Karl-Friedrich Ratzsch wrote:
> 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.

Thanks for clarifying that!

> 
> 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"

I see.

Janis

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious 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