# Terminal set terminal png size 800, 400 enhanced # Miscellaneous set lmargin 6 set rmargin 3 set key inside left top box set tics font "/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf, 8" ### Malaysia # X set xdata time set format x "%Y-%m-%d" set timefmt "%Y-%m-%d" set grid xtics set xrange ["2009-04-24":] # Y set yrange [0:] set grid ytics set format y #set style data histogram #set style histogram columnstacked # Confirmed Cases #set title "Confirmed Cases in Malaysia" #set output "h1n1_malaysia_confirmed.png" #plot "h1n1_malaysia.gpdat" using 1:($2+$3) title " Total" with linespoints linecolor rgb "black", "h1n1_malaysia.gpdat" using 1:2 title " Imported" with linespoints linecolor rgb "blue", "h1n1_malaysia.gpdat" using 1:3 title " Locally Transmitted" with linespoints linecolor rgb "red" # Confirmed Cases set title "Death Cases in Malaysia" set output "h1n1_malaysia_death.png" plot "h1n1_malaysia.gpdat" using 1:4 title " Death" with linespoints linecolor rgb "red"