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.>
So on windows, this worked for me:
Step 1:
Install gnuplot to C:\Program Files (x86)\gnuplot
:
Download link:
https://sourceforge.net/projects/gnuplot/
Step 2: Goto below given directory(considering you have installed Octave in C:\ root):
C:\Octave\share\octave\site\m\startup
open octaverc
file present in that directory in Notepad.
Step 3:
Add following lines to the end of the file.
gnuplot_binary 'C:\Program Files (x86)\gnuplot\bin\gnuplot.exe'
graphics_toolkit('gnuplot')
Step 4:
Save the file and exit the Notepad. If Octave
is open please close it too.
Step 5:
Open Octave
and type following command in it to check:
plot([1,2,3],[4,5,6]);
Please note for the first time it might take
gnuplot
upto 5 minutes to render the graph. So, please do not try to close the app. Subsequent simple plots renders pretty quickly, usually under 1 second.