Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3037
| From | Karl-Friedrich Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Line type defined by data |
| Date | 2015-08-16 17:12 +0200 |
| Organization | solani.org |
| Message-ID | <mqq99p$lhg$1@solani.org> (permalink) |
| References | (3 earlier) <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> |
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 | Next — Previous in thread | Next in thread | Find similar
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