Plot window not responding

后端 未结 10 1900
北恋
北恋 2020-12-04 09:17

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.

10条回答
  •  抹茶落季
    2020-12-04 09:42

    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.

提交回复
热议问题