Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: nicolaslac <nicolas.lac@gm...>  20100526 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/Plotboxeswithcolordeterminedbycolumndatatd27483709.html#a27488996 http://old.nabble.com/variablecolorinhistogramtp27852750p27852750.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 "darkblue" plot '<sort n t\; nk 2 r sample.csv  head n 1' using 2:xticlabel(1) with boxes lt rgb "darkblue",\ '<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/useofdifferentColorsinhistogramtp28681621p28681621.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: Thomas Sefzick <t.sefzick@fz...>  20100526 17:51:42

you don't give any xvalues, so the line numbers in the data file are used as xvalues. 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/Plotboxeswithcolordeterminedbycolumndatatd27483709.html#a27488996 > http://old.nabble.com/variablecolorinhistogramtp27852750p27852750.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 "darkblue" > > plot '<sort n t\; nk 2 r sample.csv  head n 1' using 2:xticlabel(1) > with boxes lt rgb "darkblue",\ > '<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/useofdifferentColorsinhistogramtp28681621p28684104.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: nicolas romain lac <nicolas.lac@gm...>  20100526 20:53:12

thanks. 2010/5/26 Thomas Sefzick <t.sefzick@...>: > > you don't give any xvalues, so the line numbers in the data file are > used as xvalues. > > 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/Plotboxeswithcolordeterminedbycolumndatatd27483709.html#a27488996 >> http://old.nabble.com/variablecolorinhistogramtp27852750p27852750.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 "darkblue" >> >> plot '<sort n t\; nk 2 r sample.csv  head n 1' using 2:xticlabel(1) >> with boxes lt rgb "darkblue",\ >> '<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/useofdifferentColorsinhistogramtp28681621p28684104.html > Sent from the Gnuplot  User mailing list archive at Nabble.com. > > >  > > _______________________________________________ > gnuplotinfo mailing list > gnuplotinfo@... > https://lists.sourceforge.net/lists/listinfo/gnuplotinfo > 
Sign up for the SourceForge newsletter:
No, thanks