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


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

Re: assigning specific colors with a pseudocolumn(-2) and linecolor variable?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: assigning specific colors with a pseudocolumn(-2) and linecolor variable?
Followup-To comp.graphics.apps.gnuplot
Date Tue, 17 Sep 2013 09:02:09 -0700
Organization gnuplot development team
Lines 34
Message-ID <l19ue3$jdh$1@dont-email.me> (permalink)
References <840b29be-7641-41a6-ac5a-970fbbebf9f6@googlegroups.com>
Reply-To sfeam@users.sourceforge.net
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Tue, 17 Sep 2013 16:02:11 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="e947cb29d2533e27aa00183e80187dbb"; logging-data="19889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WkbnhMhyPDMZqkpPG3L3/"
User-Agent KNode/4.4.9
Cancel-Lock sha1:ldj6G7nKHRcrTwPeB1Ap1/4pyeY=
Xref csiph.com comp.graphics.apps.gnuplot:2038

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


TonyG wrote:

> When I use gnuplot v.4.6.3 (Win7) to plot multiple data sets separated
> by double blank lines via
> 
> pl 'Data.out' i 0:300:5 u ($1):($2):(column(-2)) t 'profiles' w l lc
> variable lw 2
> 
> I get a chart with a suboptimal sequence of colors (for example, blue,
> yellow and green) for subsequent data sets.
> 
> How to assign specific colors, such as 'black', 'red' or 'blue' to
> various data sets?

Offset = 100
set linetype Offset   lc rgb 'black'
set linetype Offset+1 lc rgb 'red'
set linetype Offset+2 lc rgb 'blue'
...

plot 'Data.out' ... using ($1):($2):(column(-2) + Offset) ... lc variable

> 
> Also, how to assign different labels for the various colors?

DarkCyan = 0x00DDDD               # Not sure this works on windows
set linetype Offset+3 lc rgb DarkCyan

but also see "show colors"




> Thanks for any help.

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


Thread

assigning specific colors with a pseudocolumn(-2) and linecolor variable? TonyG <tgozdz@gmail.com> - 2013-09-16 20:00 -0700
  Re: assigning specific colors with a pseudocolumn(-2) and linecolor variable? sfeam <sfeam@users.sourceforge.net> - 2013-09-17 09:02 -0700
    Re: assigning specific colors with a pseudocolumn(-2) and linecolor variable? TonyG <tgozdz@gmail.com> - 2013-09-17 18:17 -0700
      Re: assigning specific colors with a pseudocolumn(-2) and linecolor variable? sfeam <sfeam@users.sourceforge.net> - 2013-09-19 16:50 -0700

csiph-web