倍频程绘制错误 [英] Octave plotting error

查看:113
本文介绍了倍频程绘制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是八度的新手,当出现以下错误时,我刚刚尝试使用八度3.4.0进行第一次绘图.任何帮助都感激不尽. gnuplot版本是4.6

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

     octave-3.4.0:3> x=1:1:20;
     octave-3.4.0:4> y=sin(x);
     octave-3.4.0:5> plot(x,y)

     gnuplot> set terminal aqua enhanced title "Figure 1" size 560 420  font "*,6"
                  ^
     line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

我用于八度的终端窗口是mac X终端.

The terminal window I am using for octave is the mac X-terminal.

推荐答案

好,我找到了解决此问题的方法.只需运行:

Ok, I found the solution to this problem. Just run:

setenv("GNUTERM","X11")

在绘制任何内容之前,例如

Before you plot anything, e.g.,

plot(x,y)

这篇关于倍频程绘制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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