GNUplot: how to plot rowstacked bar chart using color codes in data?
I have the following sample data: col1 2 0 1 1 col2 1 1 0 0 col3 1 1 1 0 col4 1 1 2 1 col5 1 1 1 1 col6 2 0 1 1 col7 1 1 2 2 col8 1 1 2 1 columns #4 and #5 are the color codes for columns #2 and #3. For example, I want '1' for green, 2 for white, and 0 for orange. Here is how I tried to plot it: set key off unset border unset xtics unset ytics set style data histograms set style histogram rowstacked set boxwidth 1 relative set style fill solid 1.0 border -1 set yrange [0:2] set lmargin 0 set rmargin 0 set tmargin 0 set bmargin 0.1 set terminal pngcairo truecolor size 100,65 set output "/export