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


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

inconsistent user defined colors in column-stacked histogram

Newsgroups comp.graphics.apps.gnuplot
Date 2012-10-14 00:44 -0700
Message-ID <25fddf89-54f7-4aae-95bc-b53b854ebe88@googlegroups.com> (permalink)
Subject inconsistent user defined colors in column-stacked histogram
From Danielle de Man <deman.danielle@gmail.com>

Show all headers | View raw


I am trying to create a column-stacked histogram and because there are more than 9 different caterogies I would like to use user defined colors for the histrogram. When I don't use user defined colors, the color scheme is correct beside the fact that it of course repeats after 9 categories. When I implement user defined colors  most colors shift up one category and the first color seem like it has been randomly selected. The keys in the caption are the correct colors but the bars are not. Is this a bug?

code:
set title "Deletions in gene regulatory network" font "Verdana,16"
set xrange [0:40]
set yrange [0:100]
set auto x
set ylabel "% changed" font "Verdana,12"
unset style
set style data histogram
set style histogram columnstacked
set style fill solid border -1
set style line 1 linecolor rgb "dark-green"
set style line 2 linecolor rgb "green"
set style line 3 linecolor rgb "cyan"
set style line 4 linecolor rgb "dark-blue"
set style line 5 linecolor rgb "blue"
set style line 6 linecolor rgb "dark-magenta"
set style line 7 linecolor rgb "purple"
set style line 8 linecolor rgb "pink"
set style line 9 linecolor rgb "dark-pink"
set style line 10 linecolor rgb "red"
set style line 11 linecolor rgb "brown"
set style increment user
set key top right spacing 0.9 width 4 height 0.5 font "Verdana,12" box lw 1
set boxwidth 0.7
unset xtics
set xtics nomirror rotate by -90 font ",8"
plot "deletions.stat" using 2 title col,\
     for [i=3:39] "" using i title col,\
     "" using 40:key(1) title col

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


Thread

inconsistent user defined colors in column-stacked histogram Danielle de Man <deman.danielle@gmail.com> - 2012-10-14 00:44 -0700
  Re: inconsistent user defined colors in column-stacked histogram Danielle de Man <deman.danielle@gmail.com> - 2012-10-17 11:36 -0700
    Re: inconsistent user defined colors in column-stacked histogram sfeam <sfeam@users.sourceforge.net> - 2012-10-17 17:09 -0700
      Re: inconsistent user defined colors in column-stacked histogram thierry.daucourt@gmail.com - 2012-11-10 15:17 -0800

csiph-web