1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gnuplot: アスキーアートで描画する

1
Last updated at Posted at 2020-01-08

近頃gnuplotは触らなくなっちゃったのですが、
未だに使うgnuplotの便利な機能を紹介しておきます。

それは、アスキーアートで描画するというものです。

例えば、とあるサーバーで数値計算を走らせていて、計算途中の結果を確認したいとします。
こういう時って、図を作ってダウンロードするのは面倒くさいし、Xwindowも使えないことがほとんどです。こんな時にアスキーアートで描画すればさくっと結果を確認できます。

やり方

1. dumbというterminalを使います。

set term dumb

サイズを大きくしたい時は、set term dumb 150 30といった具合に、使用pixel数(横)、使用pixel数(縦)を指定します。

2. お好きに描画してください。

こんな具合に表示してくれます。
スクリーンショット 2020-01-08 17.37.20.png

うん。めっちゃ便利ですよね。
確かに解像度は全然ないですが、計算結果をその場で確認するだけなら十分です。

ぜひお役立てください。

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?