octave绘制图片Figure后无法关闭
環境:
ubuntu18.10-64位
Octave4.4-64位
問題重新:
繪制圖片后無法關閉。
核心思想就是更換圖片繪制工具,
把stackoverflow上面的答案粘貼如下:
##########################################################################################
The problem is likely to be the graphics toolkit which your installation of Octave is using.
To check this, type
graphics_toolkitin 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: ~/.octavercStill not working?
If response is qt, try either fltk or gnuplot (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).
###################################################################################################
~/.octaverc中加入:
graphics_toolkit("fltk")重啟octave后即可永久生效。
Reference:
https://stackoverflow.com/questions/12032494/plot-window-not-responding
總結
以上是生活随笔為你收集整理的octave绘制图片Figure后无法关闭的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu18.10安装octave
- 下一篇: 修改octave的editor的背景颜色