It looks like you want to set the fields to 0. Here is an example script:
set terminal pngcairo size 800,600 enhanced set output 'output.png' set lmargin 0 set rmargin 0 set tmargin 0 set bmargin 0
Thus, the plot will accurately fill the canvas. You can enter help set margin in gnuplot for more information. (Uncomment the comments in my example if you want a slightly cleaner plot.)
source share