WARNING: Schedule using an “unknown” terminal. No output will be generated. Select a terminal with "set terminal"

I am following the magnificent machine learning course given by Andrew Wu from Stanford. When I executed the plot function in an ex5 file, the octave command line cli reports the following warning:

set terminal aqua enhanced title "Figure 1" size 560 420 font "*,6" dashlength 1 ^ line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list WARNING: Plotting with an 'unknown' terminal. No output will be generated. Please select a terminal with 'set terminal'. 

The calculation works, but all the graphs were not plotted. I tried to install qt terminal or others like x11, but none of them worked. The solution in this post is Unable to find the x11 terminal in gnuplot Octave on Mac OS also does not work.

my mac is Yosemite 10.10.3 my gnuplot

 GNUPLOT Version 5.0 patchlevel 1 last modified 2015-06-07 ... Terminal type set to 'unknown' 

my XQuartz 2.7.7 (xorg-server 1.15.2)

Does anyone know how to fix it? Thanks!

+6
source share
3 answers

1) Open a terminal and try to run

 gnuplot 

2) In gnuplot run the command

 set terminal 

This list should indicate all available terminal types.

3) In the octave, select the available terminal type gnuplot and run setenv (). For example, it could be

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

Hope this helps someone!

+6
source

Try reinstalling gnuplot --with-qt , for example

 brew reinstall gnuplot --with-qt 
+5
source

I came across the same question last night. The simplest solution I could find was to install the terminal on qt from Octave.

 setenv('GNUTERM','qt') 

Now you can call plot , as usual.

+2
source

All Articles