Couldn't you set those margin values in your gnuplot script so that you know the values?
In reply to Re: gnuplot and image maps by ForgotPasswordAgain in thread gnuplot and image maps by j1n3l0