Cannot use Octave 4.0.0 graphics toolkit functions under Windows 10

Crolle picture Crolle · Aug 7, 2015 · Viewed 11.1k times · Source

I'm using Octave 4.0.0 on a fresh Windows 10 installation and the graphics toolkit related functions (such as plot() or hist()) are simply not working. plot() creates a new window that freezes immediately in the GUI and no windows at all in the CLI (Octave crashes in both cases). I made sure that graphics_toolkit() was set to "gnuplot" and not "fltk", but I did not see any improvment. Any suggestion?

Answer

BeeNoisy picture BeeNoisy · Apr 29, 2016

The first time you use plot, imagesc, or something else that uses plotting functions it will cause Octave to hang for a while (potentially minutes). It may be quicker to plot a small dataset with plot([1 2 3 4]) initially.

After the initial plot, subsequent ones should be quick, even if you reopen Octave or reboot your computer.

This happens consistently using Octave is 4.0.0-4.0.2, and potentially in other versions on Windows 10.