警告:使用“未知"终端进行绘图.不会产生任何输出.请选择带有“设置终端"的终端 [英] WARNING: Plotting with an 'unknown' terminal. No output will be generated. Please select a terminal with 'set terminal'

查看:399
本文介绍了警告:使用“未知"终端进行绘图.不会产生任何输出.请选择带有“设置终端"的终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循斯坦福大学的安德鲁·吴(Andrew Wu)提供的出色的机器学习课程.当我在ex5文件中执行绘图功能时,八度cli命令行报告以下警告:

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 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'.

计算有效,但并非所有图形都按图绘制. 我尝试设置终端qt或其他类似x11的终端,但是它们都不起作用. 这篇文章中的解决方案在以下位置找不到x11终端在Mac OS上的gnuplot Octave也不起作用.

The calculation works but all the graphs were not drew by plot. I tried set terminal qt or others like x11, but none of them worked. The solution in this post Can't find x11 terminal in gnuplot Octave on Mac OS does not work either.

我的Mac是优胜美地10.10.3 我的gnuplot是

my mac is Yosemite 10.10.3 my gnuplot is

G N U P L O T
Version 5.0 patchlevel 1    last modified 2015-06-07 
...
Terminal type set to 'unknown'

我的XQuartz 2.7.7(xorg-server 1.15.2)

my XQuartz 2.7.7 (xorg-server 1.15.2)

有人知道如何解决?谢谢!

Anyone knows how to fix? Thanks!

推荐答案

尝试重新安装gnuplot --with-qt,例如

brew reinstall gnuplot --with-qt

这篇关于警告:使用“未知"终端进行绘图.不会产生任何输出.请选择带有“设置终端"的终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆