Cannot use Octave 4.0.0 graphics toolkit functions under Windows 10

守給你的承諾、 提交于 2019-12-29 06:44:07

问题


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?


回答1:


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.




回答2:


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




回答3:


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".



来源:https://stackoverflow.com/questions/31882510/cannot-use-octave-4-0-0-graphics-toolkit-functions-under-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!