Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
624 views
in Technique[技术] by (71.8m points)

octave - Plot window not responding

I'm using Windows 7 64 bit. Each time, I'm using plot function, plot windows will shows and draws successfully, but after that it stops responding and must shut down it.

For example :

x = linspace(0,1,10)
y = x.^2
plot(x,y);

Strangely, when plot windows freeze and I must close octave windows, they will be unresponsive too. This will not happen if I don't use plot function.

I don't know why. Does it because I'm using 64 bit version? Please tell me how to fix this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The problem is likely to be the graphics toolkit which your installation of Octave is using.

To check this, type graphics_toolkit in 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:  Octaveshareoctavesitemstartupoctaverc
    On Linux:     ~/.octaverc


Still 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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...