Thanks all for helping. Switch to gnuplot did generate correct figures.
Andy,
Here is my GPU:
01:00.0 VGA compatible controller: NVIDIA Corporation G73 [GeForce 7600 GT] (rev a1).
I do have issues with the nvidia driver which I think probably not related to this issue, which is sometimes my display freezes and cannot recover. Windows 8 seems to be able to idle and wait for the driver to restart but ubuntu will go into a black screen and error messages of "nouveau E[Xorg[1116]] failed to idle channel". I haven't found a solution and it does not happen too often.
If I move the plot out of screen it does not seem to redraw(maybe because of the workspaces?). If I try to change the size of the window, it seemed to have redrawn but still not showing correct results.

