You should set your xrange explicitly if the data does not end with some nice round value. One way to do this is to use the stats command (gnuplot 4.6.0) and up:
stats 'data.dat' set xrange[STATS_min_x:STATS_max_x]
Otherwise, you can set xrange manually (if you know the value) or use the old-fashioned method:
set output '/dev/null' plot 'data.dat' set xrange[GPVAL_DATA_X_MIN:GPVAL_DATA_X_MAX] set output'actual_output.png' replot
source share