#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "histograms2_2" jsdir "." # set output 'histograms2.2.js' set boxwidth 0.95 absolute set style fill solid 1.00 noborder set grid nopolar set grid noxtics nomxtics ytics nomytics noztics nomztics nortics nomrtics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500 set key bmargin center horizontal Right noreverse noenhanced autotitle columnhead nobox set key invert samplen 4 spacing 1 width 0 height 0 set style histogram clustered gap 1 title textcolor lt -1 font ",11" offset character 2, -2 set datafile missing '-' set style data histograms set xtics border in scale 1,0.5 mirror rotate by -45 autojustify set xtics norangelimit set xtics () set title "Explicit start color in 'newhistogram' command" set xlabel "Immigration from different regions" set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set bmargin 12 set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault ## Last datafile plotted: "immigration.dat" plot newhistogram "Northern Europe" lt 4, 'immigration.dat' using 6:xtic(1), '' u 13, '' u 14, newhistogram "Southern Europe" lt 4, '' u 9:xtic(1), '' u 17, '' u 22, newhistogram "British Isles" lt 4, '' u 10:xtic(1), '' u 21