# set terminal png transparent nocrop enhanced font arial 8 size 500,350 # set output 'histograms.5.png' set bar 1.000000 set border 3 front linetype -1 linewidth 1.000 set boxwidth 0.75 absolute set style fill solid 1.00 border -1 set style rectangle back fc lt -3 fillstyle solid 1.00 border -1 set grid nopolar set grid noxtics nomxtics ytics nomytics noztics nomztics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000 set key outside right top vertical Left reverse enhanced autotitles columnhead nobox set key invert samplen 4 spacing 1 width 0 height 0 set style histogram rowstacked title offset character 0, 0, 0 set datafile missing '-' set style data histograms set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, 0, 0 set xtics norangelimit set xtics ("1891-1900" 0.00000 -1, "1901-1910" 1.00000 -1, "1911-1920" 2.00000 -1, "1921-1930" 3.00000 -1, "1931-1940" 4.00000 -1, "1941-1950" 5.00000 -1, "1951-1960" 6.00000 -1, "1961-1970" 7.00000 -1) set noytics set title "US immigration from Europe by decade\nFraction of total plotted as stacked histogram" set rrange [ * : * ] noreverse nowriteback # (currently [0.00000:10.0000] ) set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) set ylabel "% of total" set ylabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 set yrange [ 0.00000 : 100.000 ] noreverse nowriteback set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 set locale "C" plot 'immigration.dat' using (100.*$2/$24):xtic(1) title column(2), '' using (100.*$3/$24) title column(3), '' using (100.*$4/$24) title column(4), '' using (100.*$5/$24) title column(5), '' using (100.*$6/$24) title column(6), '' using (100.*$7/$24) title column(7), '' using (100.*$8/$24) title column(8), '' using (100.*$9/$24) title column(9), '' using (100.*$10/$24) title column(10), '' using (100.*$11/$24) title column(11), '' using (100.*$12/$24) title column(12), '' using (100.*$13/$24) title column(13), '' using (100.*$14/$24) title column(14), '' using (100.*$15/$24) title column(15), '' using (100.*$16/$24) title column(16), '' using (100.*$17/$24) title column(17), '' using (100.*$18/$24) title column(18), '' using (100.*$19/$24) title column(19), '' using (100.*$20/$24) title column(20), '' using (100.*$21/$24) title column(21), '' using (100.*$22/$24) title column(22), '' using (100.*$23/$24) title column(23)