Octave plotting error

前端 未结 8 1672
情歌与酒
情歌与酒 2020-12-14 22:11

I am new to octave, I just tried my first plotting with Octave 3.4.0 when I get the following error. Any help will be much appreciated. The gnuplot version is 4.6

         


        
相关标签:
8条回答
  • 2020-12-14 23:16

    Just put here. When this error happened on me, I found this post and update my octaverc file with "setenv GNUTERM X11".

    Then octave generated another error:

        error: popen2: popen2 (child): unable to start process -- No such file or directory
        error: called from:
        error: /usr/local/Cellar/octave/3.8.0/share/octave/3.8.0/m/plot/util/private/__gnuplot_open_stream__.m at line 30, column 40
        error: /usr/local/Cellar/octave/3.8.0/share/octave/3.8.0/m/plot/util/__gnuplot_drawnow__.m at line 72, column 19
        sh: x11: command not found
    

    And the solution to that was adding gnuplot_binary("usr/YO/bin/gnuplot") to the octaverc file in /usr/local/share/octave/site/m/startup

    Now plotting in octave is happy.

    0 讨论(0)
  • 2020-12-14 23:17

    You might need to reinstall gnuplot with x11 support:

    brew uninstall gnuplot;brew install gnuplot --with-x

    0 讨论(0)
提交回复
热议问题