Instead of using xlabel and ylabel you can go with set label . For instance,
#!/usr/local/bin/gnuplot datafile='tmp.dat'
If all graphs can be executed using one line syntax, I recommend using a do-loop (as in the example above), rather than copying it every time.
Note that gnuplot will place labels 1 and 2 each time when plotting. This is why I put unset label 1 and unset label 2 inside the do-loop, so labels only fit in the first iteration.
If you want to have something similar to the example you provided, I recommend using this script (explained in the comments):
Additional Information: gnuplotting
source share