I'm trying to run script files which aim to produce plots using Octave with the plot() function. When I run the files using QtOctave the plot appears fine, as it does when I run octave from a terminal then invoke the script from the Octave prompt.
~$ octave octave:1> script.m
does work but
~$ octave script.m
does not. I'm using Ubuntu 10.04 with Octave 3.2.4 and GNUPlot 4.4. I've been searching for hours and I keep seeing problems which look similar to this and I've tried many fixes ("set terminal x11 -persist" in .gnuplot etc.) but nothing I've done has produced any change in behaviour at all. Is there anything I've missed?