Octave does not plot

前端 未结 8 449
灰色年华
灰色年华 2020-12-22 18:07

When I try to plot a graph on GNU Octave, and try to use plot, it gives me the following output

set terminal aqua enhanced title \"Figure 1\" size 560 420           


        
8条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 18:35

    The following worked out for me

    1. Uninstall any existing gnuplot on your OSX

      brew uninstall gnuplot

    2. Install gnuplot with either X or X11

      brew install gnuplot --with-x

    3. Finally, set the GNUTERM to X11

      setenv("GNUTERM","X11")

提交回复
热议问题