Fix Octave 3.2.4 Plotting Hang Problem in Windows 8.1
For the last few weeks I’ve been following Machine Learning from Coursera. It’s a very awesome website. It’s also FREE.
I learn Machine Learning because that’s a new area that seems interesting in this Big Data World. Until now I think totally our job as software developer is to create application that save our customer data and rarely analyzing it. Of course we provide report but I don’t think that’s enough nowadays.
Machine Learning course use Octave as a programming tools. You can think that as a free and open source MATLAB like program without User Interface. . You can do a lot a computation and prototyping faster there compare to the common programming language as c# or java. But I think for production you need to turn that into real programming language.
The problem I have with Octave it’s a Console Apps. It’s really sad for developer that have been used to Visual Studio for a long time. But we can do plotting from there. That’s really awesome and awkward. But its fun.
The problem I have with running Octave in Windows 8.1 is the plotting windows hang after showing. I search the solution in the internet and finally find two line that solve that Hang problem. Seems that’s a library conflict in Octave
Just need to run this command on Octave CLI.
pkg rebuild -noauto oct2mat
pkg unload oct2mat
Reference
http://octave.1599824.n4.nabble.com/plot-window-hangs-td1681494.html
http://stackoverflow.com/questions/12032494/octave-always-not-responding-freeze-when-use-plot
Thanks very much. You’ve helped me a lot!
The most probable reason is that your default graphics toolkit is either ‘fltk’ or ‘qt’.
Write graphics_toolkit and press enter.
it will show either of ‘fltk’ or ‘qt’ or ‘gnuplot’.
In my case, it was ‘qt’.
I changed it to ‘gnuplot’.
use graphics_toolkit(‘gnuplot’); but it was too slow.
Then I used graphics_toolkit(‘fltk’) and it is working fine.
Please note that you might have to use this command everytime you restart your Octave CLI.