Code:
Terminal type set to 'x11'
gnuplot> plot sin(x)
gnuplot: unable to open display ''
gnuplot: X11 aborted.
This is exactly the behaviour I get when running gnuplot with TERM=xterm and DISPLAY unset. So a question is: is your DISPLAY variable set (and exported) at the point of running gnuplot?