LoginSignup
1
3

More than 5 years have passed since last update.

Octave-cli で plot() 実行時のエラー, Octaveでグラフが表示されない時の対処方法

Last updated at Posted at 2018-06-21

エラー内容

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

gnuplot を使用するターミナルを設定する必要がある。

試しに gnuplot を実行してみる

$ cd /usr/local/octave/3.8.0/bin # gnuplot がある階層
$ ./gnuplot

G N U P L O T
    Version 4.6 patchlevel 4    last modified 2013-10-06 
    Build System: Darwin x86_64

    Copyright (C) 1986-1993, 1998, 2004, 2007-2013
    Thomas Williams, Colin Kelley and many others

    gnuplot home:     http://www.gnuplot.info
    faq, bugs, etc:   type "help FAQ"
    immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'qt'

GNUTERM環境変数を「qt」にする必要がある。

対処方法

% vi ~/.octaverc

setenv("GNUTERM", "qt")

参考記事

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3