#! /usr/bin/gnuplot -p
-set title "Hadoop: Map/Reduce Tasks Summary" font ',16'
+set title "Hadoop: Map/Reduce Tasks Cluster Usage (max 384)" font ',12'
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"
set format x "%Y-%m-%d"
set yrange [0:384]
set xtics rotate by -20
-#plot for [i=3:4] 'nodes.dat' using 1:(sum [col=4:i+1] column(col)) with lines title 'jobs (max 384)'
+# map/reduce, without filling
+#plot for [i=3:4] 'nodes.dat' using 1:(sum [col=4:i+1] column(col)) with lines title column(i)
-plot for [i=3:4] 'nodes.dat' using 1:(sum [col=4:i+1] column(col)) with lines title column(i)
+# map/reduce separately
+plot 'nodes.dat' using 1:(column(4)) with filledcurves x1 title column(3), \
+ '' using 1:4:(column(4)+column(5)) with filledcurves below closed title column(4)