These black and white squares are inserted by the viewer and indicate that you actually have no background. To get a white background, use the background option:
set terminal svg enhanced background rgb 'white'
If your version of gnuplot does not yet support this option, you can place a rectangle with a full canvas behind the chart
set object rectangle from screen 0,0 to screen 1,1 behind fillcolor rgb 'white' fillstyle solid noborder ... plot x
Christoph
source share