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


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

How to define bar area colors in a histogram

Newsgroups comp.graphics.apps.gnuplot
Date 2018-04-08 08:49 -0700
Message-ID <a645efe0-905a-41a5-8c13-17948769b07d@googlegroups.com> (permalink)
Subject How to define bar area colors in a histogram
From Bengt T <bengt_tornqvist@hotmail.com>

Show all headers | View raw


I use the following input to gnuplot:

#*****
clear
reset

set key left top verical

set xtics rotate
set ytics rotate
set ytics 0, 200
set y2tics rotate
set y2tics 0, 200

set grid

set style data histogram
set style fill solid border
set style histogram rowstacked
set boxwidth 0.5 relative

set terminal jpeg font "Droid Sans Mono"
set output "tmp.jpg"

plot for [COL=2:4] 'testdata.txt' using COL:xticlabels(1) title columnheader
#*****

for the following data (testdata.txt):

#****
Date    Key_1   Key_2   Key_3
2017-01-31      50      50      50
2017-02-28      75      50      150
2017-03-31      25      100     200
2017-04-30      150     200     250
2017-05-31      200     50      100
#****

In my PC this results in bars with red, green and blue areas.

I kindly ask for advises on how to define other colors? 

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


Thread

How to define bar area colors in a histogram Bengt T <bengt_tornqvist@hotmail.com> - 2018-04-08 08:49 -0700
  Re: How to define bar area colors in a histogram Jörg Buchholz <bookwood4new@freenet.de> - 2018-04-10 08:48 +0200
    Re: How to define bar area colors in a histogram Bengt T <bengt_tornqvist@hotmail.com> - 2018-04-10 04:29 -0700

csiph-web