Plot window not responding

Viewed 89684

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.

10 Answers

When I first tested plotting an example graph, the graph window appeared but did not respond for one to two minutes, then the plot appeared. Further plots appeared instantly. O.S.: Windows 7 64 bit Octave 4.0.3 64 bit.

The following is solution for plot window freezing when running Octave from within Emacs, credited to John Lawrence Aspden and user2699 from the question How to get Octave's plot to work under emacs?. It's brought here because this question is much easier to find.

The problem might be caused by Emacs octave-mode's --no-line-editing switch, you can fix it by M-x customize-variable RET inferior-octave-startup-args RET and change --no-line-editing to --line-editing.

I had same problem, Sometimes linspace is showing you all results in command windows and waits for your interaction. add ; after command, or hit q to quit in command window x = linspace(0,10,100);

enter image description here

Permanent solution, edited

Disable paging of screen output by putting more off into octave command window. This will prevent code to wait until you see all rows.

If you want turn this back on, use more on

documentation

Related questions

prevent-user-interaction-on-command-window-for-octave

Can't stop execution in gui command window

Related