|
From: Thomas S. <t.s...@fz...> - 2010-05-26 17:51:42
|
you don't give any x-values, so the line numbers in the data file are used as x-values. in your 2nd plot command there are 2 data sets, and each one starts a new line numbering. just modify the 2nd part of the plot command: plot ... ,\ ... using ($0+1):2:xticlabel(1) ... nicolaslac wrote: > > 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-tp28681621p28684104.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |