|
From: nicolaslac <nic...@gm...> - 2010-05-26 15:08:50
|
Hello, I would like to create histograms using one color for the n firsts columns and other one for the remaining columns... Variable color seems to be a hint, but seems to be too complicated for my simple need. I read http://old.nabble.com/Plot-boxes-with-color-determined-by-column-data--td27483709.html#a27488996 http://old.nabble.com/variable-color-in-histogram-tp27852750p27852750.html Here are my final investigation... 8<--- sample.csv toto;1 tutu;2 lolo;6 8<--- gnuplot session set key off set datafile separator ";" set boxwidth 0.8 set style fill solid 0.4 border set grid ytics set yrange [0:8] plot '<sort -n -t\; -nk 2 -r sample.csv' using 2:xticlabel(1) with boxes lt rgb "dark-blue" plot '<sort -n -t\; -nk 2 -r sample.csv | head -n 1' using 2:xticlabel(1) with boxes lt rgb "dark-blue",\ '<sort -n -t\; -nk 2 -r sample.csv | tail -n+2' using 2:xticlabel(1) with boxes lt rgb "red" 8<--- the last command is not satisfying... values on the x axes are overlapping... -- View this message in context: http://old.nabble.com/use-of-different-Colors-in-histogram-tp28681621p28681621.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |