LoginSignup
3
5

More than 5 years have passed since last update.

Linux に Gnuplotをインストール

Last updated at Posted at 2017-12-25

環境

  • Linux Mint MATE 18.2

gnuplotをインストールする

gnuplotはグラフを描画するフリーソフトとして有名です。今回はこのインストールで躓いたところをメモとして書いておきます。

Linuxにgnuplotをインストールする方法は様々なホームページで紹介されています。私も、

$ sudo apt-get install gnuplot
$ sudo apt-get intall gnuplot-x11

と入力してgnuplotをインストールしました。しかしターミナル上で

$ gnuplot

と入力して起動すると、一番下に「Terminal type is now 'unknown'」の文字。これではグラフをプロットできない・・・。

gnuplot> set terminal

でターミナル候補を見てみると、x11やwxtなどの文字が見当たらない・・・。

果たしてどうしたものか、と困っていたのですが、いろいろやっていると、ターミナル上にgnuplot5-x11っていうのをインストールできるよという文字があったので試しにインストール。
ターミナル上で

$ gnuplot5-x11

と打つと、gnuplotが起動し、最終行には「Terminal set type to 'wxt'」の文字が。無事セット出来ていました。試しに

gnuplot> plot sin(x)

と打つと、正弦波がちゃんと描画されました。

3
5
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
3
5