$ gnuplot
G N U P L O T
Version 4.0 patchlevel 0
last modified Thu Apr 15 14:44:22 CEST 2004
System: Linux 2.6.9-5.ELsmp
Copyright (C) 1986 - 1993, 1998, 2004
Thomas Williams, Colin Kelley and many others
This is gnuplot version 4.0. Please refer to the documentation
for command syntax changes. The old syntax will be accepted
throughout the 4.0 series, but all save files use the new syntax.
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from
http://www.gnuplot.info/faq/
Send comments and requests for help to
<gnuplot-info@lists.sourceforge.net>
Send bugs, suggestions and mods to
<gnuplot-bugs@lists.sourceforge.net>
Terminal type set to 'x11'
gnuplot>gnuplot> plot sin( x )
gnuplot> set angles degree (またはradian)のようにする。
gnuplot> plot [-0:2*pi] sin(x)
xwd というコマンドを使って、画像ファイル化して保存出来る。
gnuplot> plot [-0:2*pi] sin(x)
$ xwd -frame -out image.xwd
| Option | 備考 |
|---|---|
| -frame | WindowManagerのWindow枠も一緒に加える場合は指定する。 |
| -out <file-name> | 保存先の画像ファイル名 |
| -root | ルートウィンドウも保存したい場合に指定する。 |
$ xwud -in image.xwd
$ convert image.xwd image.png