The problem is likely to be the graphics toolkit which your installation of Octave is using.
To check this, type graphics_toolkit
in the Octave command line.
If the response is fltk
and your plot window is freezing, then switch the default toolkit to gnuplot: graphics_toolkit('gnuplot')
Test that the problem is fixed: x=1:10; y=x.^2; plot(x,y)
Make the change permanent in your octave.rc file, located in your Octave installation directory:
On Windows: \Octave\share\octave\site\m\startup\octaverc
On Linux: ~/.octaverc
Still not working?
-
If response is
qt
, try eitherfltk
orgnuplot
(one may be faster than the other). -
If the above does not work, you may need to install/re-install gnuplot. (thanks to lukas and saurabh for this edge case).