Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use Octave 4.0.0 graphics toolkit functions under Windows 10

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?

like image 453
Crolle Avatar asked Aug 07 '15 16:08

Crolle


3 Answers

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.

like image 83
BeeNoisy Avatar answered Nov 04 '22 14:11

BeeNoisy


Your PC needs to be installed gnuplot separately from SourceForge as Octave gets some errors while installing itself in W8/10.

Here is the link attached. https://sourceforge.net/projects/gnuplot/?source=directory

You don't need to change any installation files.

This should work

like image 37
Rahman40 Avatar answered Nov 04 '22 15:11

Rahman40


I have 4.2.0 running on Windows 7. The first time plot takes about a couple of minutes and its faster from then on. The toolkit is "qt".

like image 22
Mayukh Avatar answered Nov 04 '22 13:11

Mayukh