WARNING: Plotting with an 'unknown' terminal. No output will be generated. Please select a terminal with 'set terminal'

前端 未结 4 1232
别跟我提以往
别跟我提以往 2021-02-05 21:31

i am following the great machine learning course given by Andrew Wu from Stanford. When I executed plot function in ex5 file, the octave cli command line reports the following w

相关标签:
4条回答
  • 2021-02-05 22:13

    1) Open up terminal and try running

    gnuplot
    

    2) In gnuplot, run the command

    set terminal
    

    This should list all your available terminal types.

    3) In octave, pick an available gnuplot terminal type and run setenv(). For example this could be

    setenv('GNUTERM','qt')
    setenv('GNUTERM','x11')
    

    Hope this helps someone!

    0 讨论(0)
  • 2021-02-05 22:17

    Try reinstalling gnuplot --with-qt, e.g.

    brew reinstall gnuplot --with-qt
    
    0 讨论(0)
  • 2021-02-05 22:23

    I faced the same issue last night. The simplest solution I could find was to set terminal to qt from Octave.

    setenv('GNUTERM','qt')
    

    Now you can call plot as usual.

    0 讨论(0)
  • 2021-02-05 22:28

    for me, what fixed it was:

    brew install Caskroom/cask/aquaterm
    brew upgrade gnuplot --with-aquaterm --with-qt4
    
    0 讨论(0)
提交回复
热议问题