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?

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 2013-09-17 09:02 -0700
Organization gnuplot development team
Message-ID <l19ue3$jdh$1@dont-email.me> (permalink)
References <840b29be-7641-41a6-ac5a-970fbbebf9f6@googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | 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