You are on page 1of 273

C RCS $Id$

C corresponding original gnuplot.doc revision: 1.1084.2.10


C
C Copyright (C) 1986 - 1993, 1998, 1999, 2000, 2001, 2004 Thomas Williams, Colin
Kelley et al.
C
C Japanese translation: Hiroharu Tamaru (2.0, 3.2), MASUTANI Yasuhiro (3.5),
C Shigeharu Takeno et al (3.7, 4.X, 5.X)
1 gnuplot
?gnuplot
����
C contributors � �ɽ � Υ� � � �����ʸ ��ϡ ���� ߤΥ��ꥸ�ʥ�Ǥ� UTF-8
C �ǽǽ���
�ǽ � ǽ뤬뤬뤬������� HTML p���ȷ|����ѹ����Ƥ��롣
Ƥ��
^<h2 align="center"> An Interactive Plotting Program </h2>
^<p align="center"> Thomas Williams & Colin Kelley</p>
^<p align="center"> Version 5 organized by Ethan A Merritt and others</p>
^<p align="center">Major contributors (alphabetic order):<br>
^<br>
^ Hans-Bernhard Broeker, John Campbell,<br>
^ Robert Cunningham, David Denholm,<br>
^ Gershon Elber, Roger Fearick,<br>
^ Carsten Grammes, Lucas Hart,<br>
^ Lars Hecking, P&eacute;ter Juh&aacute;sz,<br>
^ Thomas Koenig, David Kotz,<br>
^ Ed Kubaitis, Russell Lang,<br>
^ Timoth&eacute;e Lecomte, Alexander Lehmann,<br>
^ Alexander Mai, Bastian M&auml;rkisch,<br>
^ Ethan A Merritt, Petr Mikul&iacute;k,<br>
^ Carsten Steger, Shigeharu Takeno,<br>
^ Tom Tkacik, Jos Van der Woude,<br>
^ James R. Van Zandt, Alex Woo, Johannes Zellner<br>
^</p>
^<p align="center"> Copyright (C) 1986 - 1993, 1998 - 2004 Thomas Williams,
Colin Kelley<br>
^ Copyright (C) 2004 - 2017 various authors</p>
^<p align="center"> Mailing list for comments: <tt>gnuplot-
info@lists.sourceforge.net</tt><br>
^ Mailing list for bug reports: <tt>gnuplot-
bugs@lists.sourceforge.net</tt><br>
^ Web access (preferred): <tt>http://sourceforge.net/projects/gnuplot</tt></p>
^<p align="center"> This manual was originally prepared by Dick Crawford</p>
C �Ԥ� Ĺ��� Τϡ ��Ǥ���
ʤФ� Ȥ � ������
��
C 2 (Copyright)
2 Copyright
?copyright
?license
Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley

Permission to use, copy, and distribute this software and its


documentation for any purpose with or without fee is hereby granted,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation.

Permission to modify the software is granted, but not the right to


distribute the complete modified source code. Modifications are to
be distributed as patches to the released version. Permission to
distribute binaries produced by compiling modified sources is granted,
provided you
1. distribute the corresponding source modifications from the
released version in the form of a patch file along with the binaries,
2. add special version identification to distinguish your version
in addition to the base release version number,
3. provide your name and address as the primary contact for the
support of your modified version, and
4. retain our contact information in regard to use of the base software.
Permission to distribute the released version of the source code along
with corresponding source modifications in the form of a patch file is
granted with same provisions 2 through 4 for binary distributions.

This software is provided "as is" without express or implied warranty


to the extent permitted by applicable law.

AUTHORS
Original Software:
Thomas Williams, Colin Kelley.
Gnuplot 2.0 additions:
Russell Lang, Dave Kotz, John Campbell.
Gnuplot 3.0 additions:
Gershon Elber and many others.
Gnuplot 4.0 and 5.0 additions:
See list of contributors at head of this document.

(�ʲ������5��� ;�����‫�����ޤ‬ʤ������
�Τ ‫���ޤ‬ΤǾ ‫����ܤ‬Ͼ 嵭�θ�ʸ
����äƤ��
$� � �����Ԥ���Ǥ���
d ‫)���ޤ‬

Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley

��� Υ��եȥ������Ȥ����� ʸ �°λ


�� � ѡ ��ʣ
= � � �ۤε�Ĥϡ�� 嵭����
(copyright) ɽ� � � � ʪ�Ƥʣ�
t=
�� ˽ Ƥ� �� �� � 뤬뤬뤳�ȡ� � � ����� ɽ� ���
��� ε���ʸ�� � �
ξ λ ‫�ٱ‬ʸ� � ˽��� �� � 뤬뤬뤳�Ȥ���Ȥ �����ǡ �����
� Ƥ�
ʸ� �ˤ� � � ‫���ݾڤ���ޤ‬

���
Υ��եȥ������
5 �
�ν � ǧ � � � �Ƥ�� ‫��ޤ‬5�������������‫�ޤ‬t��������

���ɤ����ۤθ����ǧ����
‫��ޤ‬ �5�ϥ���Ф
� �� ��Ǥ��
�d�
η�ѥd å
���ۤ��ʤ��� ʤ�
Ф ‫��ޤ‬ �
� ��5���줿뤬줿��������

�� ѥ��뤬뤬뤷�ƺ��줿뤬줿�
Х�

�ʥ�����ۤϡ� �ʲ � � ξ� �
θ� � � ǧ � � � � ‫�ޤ‬:
1. �����Ǥ���

�Υ �d�5���
ηХ � �
� ν� åʬ ʥ
d �
� ��
ǥѥ ȶ � � � � �
�ۤ��뤬뤬뤳��
2. �١����Ȥʤ������Ǥȶ�����뤬뤿뤿��
� � � ��� ��� � ˡ�� � С��
Υ � � � �� �ֹ������
�ʥ���������Ҥ��ղ
С �� ä 뤬뤬뤳��
3. ��� ν5��ǤΥ� � ‫����ݡ‬Ѥˡ ���� ʤ���ȥ �

p � � ������
ʥ ɥ �� �
ǽ 줿쥹쥹��
� � � 뤬뤬뤳��
�����
4. �١����Ȥʤ뤬륽륽�եȥ� � � � � � λ� � Ѥ ˴‫��ؤ‬Ƥϡ��桹��Ϣ�� � � � � � ‫�ݻ‬
³���뤬뤬뤳��
ɤ �� ���Ǥ
�Υ ���������ɤ
ɤ d ηΥ d� �å � ��ѥ �Ǥ ��
5 �� Ȱν � � � � � �ۤ���
���Ȥϡ�� Х� �ʥ��� �ۤ�‫ �ޤ‬4 ���� 2 �����‫ؤ‬Ǥξ�� θ��ǵ�� ‫���ޤ‬

���
" Υ��եȥ�������
� � � 뤬뤬뤬 � � �� 졢
‫"�ޤ‬ ��Ŭ�Ѳ�
ǽ��ˡ
�ǵ�������
Χ
�Ϥ�� ‫�ݾڤ‬ɽ�$ � � 뤬뤬뤤�ϰż � � �Ƥ� �Ϥ �� � ‫���ޤ‬

���
���ꥸ�ʥ뤬륽륽�եȥ� � � � � :
Thomas Williams, Colin Kelley.
Gnuplot 2.0 �ɲ�:
Russell Lang, Dave Kotz, John Campbell.
Gnuplot 3.0 �ɲ� :
Gershon Elber �Ȥ��� ¾�οο ���
Gnuplot 4.0, 5.0 �ɲ� :
����ʸ�����Ƭ�
(contributors) �ΰδͿ � � � � � ȡ �
�Ϥ����
C 2 (Introduction)
2 Introduction
?introduction
?
`gnuplot` �ϡ��‫�֥����ݡ‬ʥ�� ‫�������ޥ‬Υ���ե 桼�ƥ� � ƥ� �ǡ��
Linux, OS/2, MS Windows, OSX, VMS, ���� ¿¾� � Υ
� ‫�ץ‬åȥۡ�����ư� �
���‫��������������ޤ‬ɤˤ��� ������‫����������ޤ‬ d �ۤ���Ƥ��‫��( �ޤ‬
�ʤ�a������� �
d в� ʧ � � ɬ � ‫פ‬Ϥ��� ‫�����)���ޤ‬ϡ��ʳ ‫ؼ‬Ԥ��8�����
�‫��ؿ‬ǡ � � � � ʤ ɤ � � � � � Ū � � ɽ � � � Ǥ � � � 褦���줿�ΤǤ�������� ߤ‫ޤ‬Ǥˡ�
�㤨�� Web ������‫ץ‬Ȥʤɡ� ¿��������� �÷� � � ��Ѥ⥵� ‫��ݡ‬Ȥ���褦��.
Ĺ���Ƥ��‫�������ޤ‬ϡ�� 㤨�� Octave �Τ 褦�˥� � � � ɥ ѡ� �ƥ ��� Υ� ‫ץ‬ꥱ��
������� r 襨� ��� �Ȥ��Ƥ�Ȥ��Ƥ��‫���ޤ‬gnuplot �ϡ� 186� �
9 ꥵ��
���Ȥȳ�ȯ�ʳ�ȯ���Ԥ��Ƥ��‫���ޤ‬

gnuplot �ϡ�
� 2� � � � � � 3 ���‫����� ޤ‬ Ρ�
¿ � �� μ �� �
Υ � � դ � � ‫��ݡ‬Ȥ���
���‫�ޤ‬: �������ա� �%
�� �ա��
�%� � ա�������� ٥��ȥ� � � r 衢�����
�����Ƥ������ �Ϣ � � 뤬뤬뤵
���
�� �
‫�ޤ��ޤ‬ Ĥ � � � �� �
ʸ� � � � � � � � � Ƥ � � � ˤ � � � ��
�r 跿� ⥵� ‫��ݡ‬Ȥ��Ƥ��‫���ޤ‬

gnuplot �����
¿ ΰ ۤʤ���Ϥ � � ‫��ݡ‬Ȥ��Ƥ��‫�ޤ‬: ��� ÷�������� ����Ϸ�
� � � ��
��
( ‫ޥ�����ۥ‬åȥ� � � � � Ϥ � � ǽ ) � � � ‫�ڥ�ץ‬å��丽�ߤΥ ‫�ץ‬ � ‫�ؤ‬ľ

�ܽ �� ϡ��‫���¿���ޤ‬ �
ե
������
| ‫ؤ‬ν���
(eps, emf, fig, jpeg, LaTeX,
pdf, png, postscript, ...)�� gnuplot � ϡ � � ư ‫�������� ˿פ‬ Ϸ�| �ɲ�
�� ä� �
�褦��ĥ���뤳 �Ȥ��Ǥ��‫����ޤ‬Ƕ��ɲä���� �� ÷����Ϸ � �ˤϡ�
|
wxWidgets (ʣ��Υ ‫�ץ‬åȥۡ�������Ѳ�ǽ), Qt � � � ˤ � � Τ � ���� � � �
�����vs �canvas �
HTML5
g Web � � � Ϸ |� � � � � � Ѥ��� � �С � � � դ� ‫������ڡ‬
�‫������ޥ‬Ѳ�ǽ � ʷd � � � � �Ϥ�
=.��
8 � � 뤳 �Ȥ�Ǥ��‫���ޤ‬

`gnuplot` �Υ�� ‫�ޥ‬ɸ8 � � � � ʸ � � ʸ � � � � �� � � ‫������ޤ‬ʤ���� a ʸ ���


�� � �� �� ‫�ޥ‬ɤ�‫ؿ‬ǽ��ϡ���������ʸ��ǽ��� ǽ� Ȥ ΤƱ � � �ǤϤ���

�‫��ޤ‬ � � � � �Υ��‫�ޥ‬ɤ⡢����� ‫���������ޤ‬
� ������ ¤�ˤ����ƾ��ά � � 뤳 �Ȥ�

�Ǥ��1���‫���� ޤ‬ˤϥ�� ߥ���� (;) �Ƕ��‫ڤ‬ä�ʣ�� Υ�� ‫�ޥ‬ɤ� ���


� � ��
���Ǥ�� ‫ ���ޤ‬ʸ�����ñ������ 䡢��������
뤤 Ű�����Τɤd餫�ǽ ǽϤ�
ξ�Ԥˤ�����ʰ 㤤������‫�( �ޤ‬
�‫�����ޤ‬ �ܺ٤ϡ��ʲ�����:`syntax`)����:

set title "My First Plot"; plot 'data'; print "all done!"

���‫�ޥ‬ɤϡ�ʣ��Ԥˤ ‫����ޤ‬뤳 �Ȥ��Ǥ��


‫������ޤ‬ξ��ϡ��ǽ���� ʳ���
� � �
t�ƤιԤι���˥Хå�����å��� (\) ���ɬ�‫����פ�����ޤ‬Хå�����
�å����ɬ���ƹ� *�Ǹ�* ��ʸ��Ǥʤ��ƤϤʤ�‫��ޤ‬ ��
� �� �η��Ȥ��ƥХ�
������å���ȡ������³������ʸ��¸�ߤ��ʤ��ä����Τ 褦�˰� � � � ‫���ޤ‬
�Ĥ ‫ޤ‬ꡢ���� � �뤳
ʸ���‫�������ڡ‬ �Ȥ⤢��‫��ޤ‬ ����
� �� ��� Ԥˤ�äƥ�
���Ȥ���λ���뤳 �Ȥ⤢��‫��ޤ‬Ǥ�����ʣ��Ԥˤ
�� ‫�����ޤ‬Ԥ���Ƭ��
���ȥ����Ȥ���ȡ����Υ��‫��ޥ‬t�Τ������ȥ����Ȥ���뤳 �Ȥˤʤ��
�� (�ʲ�����: `comments`)���ʤ���դ��‫ �� ⤷ ������ޤ‬ʣ��ԤΥ��‫�ޥ‬ɤ�
�ɤ����ǥ��顼���������Ȥ����ѡ����Ϥ��ξ���5�Τˤϻ ‫����ؼ‬뤳
�Ȥ���
���‫��ޤ‬ �����‫ޤ‬
� �� �5 �����Ԥ˻‫�����ؼ‬ɬ�‫�פ‬ʤ��Ǥ�� 礦��

���Υɥ�����Ȥˤ����ơ����� ({}) �Ͼ�ά��ǽ�ʰ���ɽ����ΤȤ���


���� (|) �ϡ��ߤ�����¾Ū�ʰ�����‫��ڤ‬ΤȤ��‫`���ޤ‬gnuplot` �Υ���
����ɤ�
`help` ˤ���������ϡ��հ����� (��)���‫��ޤ‬ϲ�ǽ�ʾ��ˤ�
`boldface` (�;�) ��ɽ���‫����ޤ‬ѳ�� (<>) �ϡ�������б������Τ��֤�
��������٤���Τ�ɽ���‫���¿���ޤ‬ξ�硢���‫����ץ‬ΰ��ˤϡ����줬
��ά�����ȥǥե���Ȥ������Ѥ�����
� � � � �� � �
��ѳ�������ǰϤ ‫���ޤ‬ƽ �Ƥ���
‫����������������ޤ‬ξ�硢 ɬ����
櫓�ǤϤ���‫���ޤ‬

������‫ܤ‬ˤĤ��ƤΥ ‫�إ�פ‬ɬ�‫פ‬ʤȤ��ˤϡ�`help` ��³���Ƥ���


ι ��
��
��Ϥ��Ʋ��������‫���ޤ‬ñ�� `help ?` �Ǥ�‫إ�פ‬ι��‫ܤ‬Υ�˥塼�������
�‫���ޤ‬

����Υ���ե���‫ץ‬뤬뤬뤬��� ʲ ��� Web �‫����ڡ‬ˤ���‫���ޤ‬


^ <a href="http://www.gnuplot.info/demo/">
http://www.gnuplot.info/demo/
^ </a>
���‫�ޥ‬ɥ 饤� ��� 鵯 ư ����Ȥ��ϡ��ʲ ��ν �
ν�
νȤ��ν
����� ‫���ޤ‬
gnuplot {OPTIONS} file1 file2 ...
������ file1, file2 ��ϡ�`local` ���‫�ޥ‬ɤǼ����Τ�Ʊ�����ϥե�
���� (������‫ץ‬ȥե�����) �Ǥ���
X11 �١����Υ����ƥ�Ǥϡ��ʲ��ν��Ȥ�� ννν�� � ν
� � ‫���ޤ‬
gnuplot {X11OPTIONS} {OPTIONS} file1 file2 ...
�ܺ٤ϡ�X11 �Υɥ�����ȡ�����Ӱʲ�����: `x11`��

Ϳ�
gnuplot ���� 뤬쥹륪�‫����ץ‬ϡ����‫�ޥ‬ɹԤΤɤ����֤�� Ƥ�� ���
��‫��ޤ‬
� ��

������ϻ���� ���¹ ˼ Ԥ� � 졢 Ʊ��� -e ��� ‫�����ץ‬Ǥ�դΥ��‫�ޥ‬ɤ�Ϳ
���뤳�Ȥ�Ǥ��‫�����ޤ‬:
gnuplot file1.in -e "reset" file2.in

����ʥե����� "-" �ϡ�ɸ����Ϥ����ɤ ‫���ޤ‬Τ˻Ȥ��‫`���ޤ‬gnuplot`


�ϺǸ�Υե�����������Ƚ�λ���‫����ޤ‬ɤ߹��‫���ޤ‬ե��������
������ʤ����ϡ�`gnuplot` ��ɸ����Ϥ����������Ϥ��
‫�ޤ‬
������ܺ

�ϡ��ʲ�����: `batch/interactive`��gnuplot �ѤΥ��‫����ץ‬ˤĤ��Ƥϡ�
�ʲ��Τ 褦�ˤ��ư��� � � 뤳�Ȥ��Ǥ��‫�ޤ‬:
gnuplot --help
�ܺ٤ϰʲ�����: `command line options`��

���÷��r 襦����ɥ��Ǥκ����ϡ�'h' ���ǤĤȥ ‫ۥ‬åȥ��� (`hotkeys`)


�ȥ ‫�����ޥ‬ǽ (`mousing`) ��‫�ؤ���إ�פ‬뤳�Ȥ��Ǥ��‫���ޤ‬
`seeking-assistance` �Υ��������ϡ�����ʤ����� ‫�إ�ס‬FAQ ��õ��
��‫���Ϳ��ݤ‬Ƥ����Ǥ��礦��
C 2 õ���Ф���� (Seeking-assistance)
2 Seeking-assistance
?help-desk
?faq
?FAQ
?seeking-assistance
��� gnuplot Web �‫����ڡ‬ϰʲ��ˤ���‫���ޤ‬
^ <a href="http://www.gnuplot.info">
http://www.gnuplot.info
^ </a>

������p�ˡ��ե����� FAQ.pdf �����‫��ޤ‬Ͼ�� Web �����Ȥ�


^ <a href="http://www.gnuplot.info/faq/">
FAQ (�١�ʹ��������; Frequently Asked Questions) �ΰ���
^ </a>
��e��å����Ƥ��$�����

gnuplot �桼���Ȥ��Ƥμ���ɬ�‫פ‬ʤ顢�ʲ��Υ˥塼�������
롼 ‫����פ‬Ѥ�
�Ƥ��$�����
comp.graphics.apps.gnuplot

gnuplot �����ꥹ�Ȥ ‫���ؤ‬Ƥ���ˡ��‫��ؤ‬Ƥϡ�SouceForge �ˤ���


gnuplot �γ�ȯ Web ������
^ <a href="http://sourceforge.net/projects/gnuplot">
http://sourceforge.net/projects/gnuplot
^ </a>
���Ȥ��Ƥ�� $�����

�ꥹ�Ȥ˥�� ���
gnuplot ����� �ꥹ��
p�ˡ��ǽ�ˤ��Υ����
�˻��ä���ɬ�‫����פ‬뤳� � Ȥ���դ��Ƥ��$���������ϡ����ѥ�����餹
���Ȥ�‫�ݻ‬뤬뤿뤿���ɬ�‫פ‬Ǥ���

�ꥹ�ȥ��С��‫ؤ‬Υ��뤬쥹륢�ɥ 쥹:
�����
gnuplot-info@lists.sourceforge.net

�Х���‫��ݡ‬ȡ��������β�����ϰʲ��� trackers �� upload ���Ƥ��$���:


http://sourceforge.net/projects/gnuplot/support
���$�����‫��ݡ‬Ȥ����p�ˡ����ʤ�����‫��ݡ‬Ȥ��褦
�Ȥ��Ƥ���Х�������
�꿷뤬꿷�����ǤǴ���5���Ƥ��ʤ���� e��å����Ƥ��$�����

��ȯ�Ǥ�‫��� ���ؤ‬
�� � ꥹ��:
gnuplot-beta@lists.sourceforge.net

�����������Ƥ���Ȥ��ϡ����ʤ������Ѥ��Ƥ��� gnuplot
�ΥС������
���Ϸ|������‫ڥ‬줿졼뤬�ƥ��
� �����ƥ
� � � � � ��Ȥ��ä�t�Ƥξ����
‫�ޤ‬褦�ˤ���
���$���������$����Ĥ��Ƥ��ơ����������Ƹ�����û��������
‫ץ‬Ȥ���
����Ȥʤ��ɤ��Ǥ��礦��

C 2 ��������ǽ (New features)


2 New features
C 3 �С������ 5.2 ��Ƴ������ � ǽ (Features introduced in version 5.2)
3 Features introduced in version 5.2
?new version_5.2
?new
�С������ 5.2 �� gnuplot �θ��ߤΰ����Ƿ���Ǥ���
�ʲ��ο���ǽ�ΰ���ϡ�2017 5 ���$Ǻǿ��Τ�ΤǤ���
C 4 �������r 襹������ȥ��‫( ����ץ‬New plot styles and style options)
4 New plot styles and style options
?new plot styles
#start
#b 3 �����r 襹������ `with zerrorfill`���ʲ�����: `zerrorfill`,
## `fenceplots`,
^ <a href="http://gnuplot.info/demo_5.2/zerror.html">
zerror �ǥ⡣
^ </a>
#b �ӡ����������॰��ա � � ʲ � � � �� :`set jitter`, `beeswarm`,
^ <a href="http://gnuplot.info/demo_5.2/jitter.html">
�ӡ����������॰��եǥ⡣
^ </a>
#b ����դ��� (points) �ǻȤ���ġ��ε���ϡ��ǡ�����
� �)��Ǥ�� ‫���ޤ‬
## (�ʲ�����: `pointtype variable`)
#end
C 4 �ǡ����Ѥο�����p����ե��륿 (New data pre-processing filters)
4 New data pre-processing filters
?new filters
#start
#b �ǡ���������Ǥνи�����5���� (�ʲ�����: `smooth fnormal`)
#b � ǡ� � � � γ� � � � � � � � � Ƥ μ� ư� � (� ʲ� � � � � : `bins`)
#end
C 4 � ˺� ɸ� ⡼ � ɤβ� � ɤȳ� ĥ (Polar mode improvements and extensions)
4 Polar mode improvements and extensions
?new polar mode features
#start
#b � � ٥뤬졼롢�� (arrow)� � � � �֥������ Ȥ� � � d��� ɸ� � � Ȥ� � ‫���ޤ‬
#b `set [m]ttics` � ϶ � ɤ ɸ� ˺ � Ǥ⡼ γ� � � ��� � Υ� ٥�ȹ � ߤ����֤���
## � � � � � ʲ� � � � � :
^ <a href="http://gnuplot.info/demo_5.2/ttics.html">
� ˺� ɸ� � � ȹ � ٥ � ߥ�ǥ�
^ </a>
#b `set rlabel` � � ư� ¼� (r � � ) � ξ� ˥� ‫�����֤��ޤ‬٥���
#b � ո� � � � � `rrange` (� � : set rrange [90:0]) � � ŷ� � � � ʿ� � ɸ (celestial
## horizontal coordinates) � � � Ȥ� � � 褦�ˤʤ� ‫����ޤ‬ʲ� � � � � :
^ <a href="http://gnuplot.info/demo_5.2/solar_path.html">
ŷ� ε� ƻ� ǥ�
^ </a>
#b `set border polar` � ϶˺� ɸ� γ� � � � β� � ˼� � � � � d� � ‫���ޤ‬
#b `set theta` � ϶˺� ɸ� � � � դ γ� � � � ��� � Ǥ � theta = 0 � ΰ� �֤ ȡ��Ѥ �
## � � � � � (� � � ‫�ײ‬ �꤫ ȿ��� ‫�ײ‬ �꤫ ) � � ) � 椷�‫���ޤ‬
#end
C 4 ��� �z �ɸ � � (Nonlinear coordinates systems)
4 Nonlinear coordinates systems
?new nonlinear coordinates
#start
#b � � � � դ � Ǥ � դ μ � �ˡ � � � d � � ϰ Ϥ ‫ؤ‬μ � � � Ȥ � � ε ռ � � � � ��� � � � ‫����ؿ‬
## � � � � � � Ƥ 뤬뤬뤳 Ȥ�� � Ǥ � � � � � � � � � � � � d ˤ � � 뤬뤬뤳 Ȥ�
� � ǽ � Ǥ � ( �ʲ� � � � � :
## `set nonlinear`) � �
^ <a href="http://gnuplot.info/demo_5.2/nonlinear3.html">
��� � � x,y � � � ǥ �
^ </a>
#b � ʤ � � ‫` ���������ޥ‬set logscale` � ϡ � � � � ߤϴ ‫ ����ؿ‬log(x), exp(x)
## �ˤ � � � � � � | � � � � � ΰ � Ĥ Ȥ � � ƺ Ƽ � � � � ‫�����ޤ‬
#end
C 4 � � � � � � � � � ‫�ޥ‬ɤ 䥪�‫( ����ץ‬New commands and command options)
4 New commands and command options
?new commands
#start
#b � � � � �֤�� ¹ � � � ʬ � � � 楫�å � � � Ǥ ϡ � ` continue` � ϼ � � η � � � �֤�� ˤ �����
## � � ư � � � � ` b r eak` �Ϸ � � � �֤������ Ǥ��‫���ޤ‬
#b `toggle {<plotno> | "plottitle" | all}"` � ϡ � � � � � Ū � ˸ � � ߤΥ� � � դ �
## � � . � � � Ǥ � ɽ � � � � � � � 뤬뤬줿 ä�� � � � � j � � Ǥ � � ‫���ޤ‬
#b `save fit` � � � � 侩�Υ � � ‫` ��ޥ‬update` � � �֤�����
#b `set table "outfile.name" append` � ǡ � � � � θ � � table � � � � �� � ¸
## � ߤ���� ƥ����ȥ ե ������� ��� ������ɲ
ý �Ϥˤ �� ‫���ޤ‬
#b `set pm3d lighting` � ǡ � ȿ � � � � � � 饤� ϥ Ȥˤ� � � 8 � � ǥ � � � � Ѥ � � �
## � � ( �ʲ� � � � � : `lighting`) � �
#b `set minussign` � ϡ � � � ο � Ǥ Υ � � � � � � � ʸ � �
� '-' �� � �ߤΥ �� � �� � �
## � Ǥ � � ü � ʸ � � � �֤������� 褦 gnuplot �˻ ‫���ؼ����ޤ‬
#b `set micro` � ϡ � �ʳ � � � � � Ƭ � � � Ρ ֥‫�������ޥ‬Ѥ Υ � � � � � � � ʸ � � 'u' � �
## � � � ߤΥ ��� �� � ɤ Ǥ ʸ�� ü �� � � �֤������� 褦 gnuplot � ˻ ‫���ؼ����ޤ‬
## micro, minussign � � � ü � � � � � � ϡ � � � � � ٥ � ߥ�ȡ��<�Ū�� gprintf()
## � � 8 . � � � � ʸ � � � � ˤ Τ �� � Ѥ � � ‫���������ޤ‬ʸ��ɽ���ΥХ�����ϡ�����
## � Υ � �
��� �
˰�� � � � �¸� � ‫���ޤ‬
#end
C 4 ��� � � � � � � � ǡ � � � � � "array" (New data type "array")
4 New data type "array"
?new features
#start
#b � � � Υ С � � � � � � � gnuplot �ˤϡ � � � � � � � � � � � ǡ � � � � � `array name[size]`
## � � Ƴ � � � � � Ƥ � � ‫�������ޤ‬ϡ � � � � Ѥ � � � p � � � � $ � � ʤ � � � Ф � � � � ‫��ޤ‬ � ��

## � � � � � � � � A[i] � ϡ �ʸ � � � � 0 � � ¿ � ʣ � ǿ � Τ � � � � � Ǥ � � � � ‫���ޤ‬
## � � Ĥ � � � � � �ۤʤ 뷿쥹뷿�����Ǥ��Ĥ��Ȥ��ǽ�Ǥ������黻�� |A| � � � �
## � � Υ � � � � � � � �֤�� ‫����ޤ‬ʲ�� � � � : `arrays` � �
#end

C 4 � � � � � � � � � Ϸ | � � Ȥ � � Υ � � ‫( ����ץ‬New terminals and terminal options)


4 New terminals and terminal options
#start
#b � � � � � � `sixelgd` � � � Ϸ | � � ϡ � v t 340 � ȸ ߴ���ü � � ߥ�줿졼뤬�����
## gnuplot � � ¹ Ԥ � � � � � � ˡ � � � � � դ � � � Ϥ � � ��� � Υ � � ��ɥ 饤��ι � �
## �˥ � � � դ դ�
� �� 褦������‫��ݡ‬Ȥ � � ‫����ޤ‬ʲ� � � � � : `sixelgd` � �
#b `domterm` � � � Ϸ | � � ϡ � s v g � � ᤹ � �� ü� � ߥ�줿졼뤬����� gnuplot � �
## � ¹ Ԥ � � � � � � ˡ � � � � � դ � � � Ϥ � � ��� � Υ � � ��ɥ 饤��ι�֤ ˥ � � � դ �
## � � � � 褦������‫��ݡ‬Ȥ � � ‫���ޤ‬
#b `windows` � � � Ϸ | � � ϡ � � � � ߤΥ � � � դ Υ ӥ å ȥ �å ‫ץ‬ե�����‫� � ¸���ؤ‬
## � ‫��ݡ‬Ȥ � � ‫���ޤ‬
#b `windows` � � � Ϸ | � � ϡ � � � � � ե � � � � � ɥ � � � wgnuplot � ƥ � � � � ȥ � � � � � � � �
## � � � � ɥ å � � �� � Ǥ� ‫���ޤ‬
#b `windows` � � � Ϸ | � � � ( � �Ū) Direct2D/DirectWrite � � � Х å � � � � � ɡ �
#b `wxt` � � � Ϸ | � � ϡ � W i ndows � � Ǥ � EMF � ե � � � � � ‫ؤ‬ν� � Ϥ ȥ ‫� �ץ‬ � ���

## � ‫��ݡ‬ȡ�

#b `dumb` � � � Ϸ | � � ϡ � � � � � ΰ � � � ɤ � � ٤��� ANSI � � � 顼� �‫��ݡ‬ȡ�
#b `tkcanvas` � � � Ϸ | � � ϡ � � � � � � � � 8 � ȡ � � Ƕ � � gnuplot � � ¿ � � � ε � ǽ � �
## � ‫��ݡ‬Ȥ � � � 褦�˽� ľ � � � � Ƥ � � (��� 5.0.3) �‫� �ޤ‬
#end
C 4 � � � � ¾ � ο � � � � � � � ǽ (Other new features)
4 Other new features
#start
#b 3 � � � � � � � � դ θ � � � � ˱ ƶ d � � � � ɲ ò � ž � � `azimuth` � � � � � � ϡ � � � � ��ɥ �
## � � � ��� ( ʲ� � � � � : `set view azimuth`) � � � ‫��ޤ‬ϱ��‫���ޥ����ܥ‬Υɥ �
## � å � � � � � � � Ǥ � � ‫���ޤ‬
#b Windows � � � gnuplot � Ǥ ϡ � Unicode (BMP) � � � � � � ‫ץ‬Ȥ � � � Ϥ �
## `set encoding` �ˤ � 뷿븽뤵�ߤΥ � � � �� �(UTF-8 � � ‫ � � � )�ޤ‬Ѵ � � � � Ʋ � �
## � � � ‫���ޤ‬
#b ʸ���Ȥ˶��������‫ط‬ʿ������Ǥ��‫� ( �ޤ‬ʲ� � � � � : `set style textbox`)
#b � � � � դ � ɽ � � Υ � � � � � � ���� ( �ʲ� � � � � : `plot title`, `set key`,
## `multiple keys`)
#b � � � � ե � � � � � '+' � Ǥ Υ � � � դ Υ � � � ‫���ץ‬ϰϻ���˥���‫� �ץ‬ � ��
## � � � � � Ǥ � � ‫�����ޤ‬:
## plot sample [t=0:100:10] '+' using (t):(1):(label[t]) with labels
#b � � � � ե � � � � � '++' � ϡ � x , y � � � Ǥ ʤ � u, v � � � ˱ � ä � � � � � ‫� �ץ‬ � ��
## � � � ‫�������ޤ‬ϡ � 3 � � � � � � � � � � � ˡ ���
� � Υ � � � � Ⱥ � ɸǥ � ΰ � � � � � � 褦
## � � ʣ � � � � ���ѿ������֤�� Τ� � � � � Ǥ � � 礦��
#b ^R � ǡ � � Ȥ ߹��� readline (Windows � Ǥ � Ȥ � � Ƥ � � � ) � � � � � � ε ո � � � � �
## � � �� �Ϥ� ‫����ޤ‬ʲ�� � � � : `command-line-editing` � �
#b Windows � Ǥ � `set output "PRN"` �ˤ � � � � β � � ɡ � � ʲ � � � � � :
## `windows printing` � �
#end

C 3 �С � � � � � � 5.0 � � Ƴ � � � � 줿뤬줿�ǽ� (Features introduced in version 5.0)


3 Features introduced in version 5.0
?Features introduced in version 5.0
#start
#b � � � � � � / � � � � ѥ � � � � � ϡ � � � � ߤ����¾ � � ° - � � � � Ω � ˻ � � � Ǥ � � ‫�����ޤ‬
## � � � � � � : `dashtype`, `set dashtype`, `set linetype` � �
#b � � Ĥ � plot � Ǥ � Ϣ ³ � � � � � � � Ǥ ˻ � � Ѥ � � � � ǥ ե � � � Ȥ ο � � ν � � � � ϡ � � �
## � � Ԥ ˤ � � � ư ‫� � �פ‬ Ǥ � � � � Τ ˤ ʤ � ‫��������ޤ‬ ο � � ν � � � � ϡ � � 桼��
## � � ) � � Ǥ � � ‫� ( �ޤ‬ʲ� � � � � : `set colorsequence`) � � � � � λ � � Ȥ ߤϡ � � � � �
## � � � � դ � 8 . � � � 뤳 �ȤǤ � Ԥ � � ‫� ( �ޤ‬ʲ� � � � � : `set monochrome`) � � � ʤ � � �
## � � � � � gnuplot � ΥС � � � � � � Ǥ � `monochrome` � ϡ � � � � ߤν � � Ϸ | � � �
## `set temrinal` � � � ѹ � � � � � Ȥ � � ˤ Τ ߤˤ���j��Ǥ��‫���ޤ‬ Ǥ�����
#b � � � � � � � r 襹������ `with parallelaxes` � � `with
table` � � � � � � � � � � � � �
## � � ٥��դ���
#b ñĴ 3 � � � � � ‫ץ‬饤��ˤ��ǡ����ο�����p����ե��륿 ( �ʲ� � � � � :
## `smooth mcsplines`)
#b ʸ��ν�)��ϡ����դ������դ����ե���ȥ�����������¾��p�� �$�pp
p
## � � � � Τ ˲ ä � � � � � � � � ; � � � (bold) �ȼ � � � (italic) � ե � � � � � � � � ⥵ � ‫�ݡ‬
## � Ȥ � � Ƥ � � ‫������ޤ‬ Υ⡼�� (��ĥʸ�����) �ϡ����ߤϥǥե ���Ȥ �� ���
## � ʤ ä Ƥ � � ‫����ޤ‬ ʲ�� � � � : `enhanced text` � �ʸ � � � � � � � Ǥ � � Ȥ ǰ Ϥ ळ �Ȥ �
## � Ǥ � � ‫� ( �ޤ‬ʲ� � � � � : `set style textbox`) � �
#b � � � ÷ � � � � Ϸ | � � ϡ � � ϥ � � ѡ � � ƥ � � � � ȥ � ٥� � ‫��ݡ‬Ȥ
� � � Ƥ � � ‫���������ޤ‬
## � ϥ ���������Υ � ٥�Υ � � � > � ˤ � � � Ȥ � � ˤ Τ ߸�����ΤǤ���
#b � � � � � � � � ɸ � � ( � ١�ʬ����)���ʲ�����: `set xtics geographic`��
#b � � � θ � � Ф � � Υ ǥ ե � � � Ƚ � � Ѥ � "% h" (LaTeX � Ͻ � � Ϸ | � � Ǥ � "$%h$") � �
## � � � ν �� ν C � ɸ �� �� �%g � Ƥ � ν��
ν
�� � ν ˻ ‫���ޤ������ؿ‬ʬ��������ϡ�

## � � � 줿줬줬���դ�ʸ��Ȥ��ƽƽ� � ƽ 뤳 �Ȥ � � 㤤�‫����ޤ‬㤨�С � 1.2E05 � Ǥ ʤ �


## 1.2 x 10^5 � Ȥ ʤ � ‫���ޤ‬
#b � � � � � � ‫���ץ‬ǡ � � � � � 饤��ǡ � � � � ��p � դ � � Υ ǡ � � � �֥� å � � Ȥ � � � � � ¸
## � � � � � � � ֤ �� r � Ǥ � � � 褦�ˡ��ʲ�����: `inline data`��
#b 32-bit � Υ � � � ե � � � + RGB � � ɽ � � �(#AARRGGBB) ��‫��ݡ‬ȡ��ʲ�����:
## `colorspec` � �
#b hsv2rgb(H,S,V) � Ȥ � � � � Ѵ � � ‫�ؿ‬ˤ�� HSV ����֤ Υ � � ‫��ݡ‬ȡ�
#b � � 2 � � (x2, y2) � ϡ � � б � � ‫�ؿ‬ˤ�ꡢ��1 � � � ˸ � � � Ǥ � � ‫����ޤ‬Ǥ�ñ��
## � ʤ Τ ϡ � � � � � ˤ � � � � 1 ��� � 2 � � � μ � � � � ϰ Ϥ � � � ‫����פ‬뤳
�ȤǤ � � � � � �
## � � ��ˡ � � � � � ˤ � � � � � � d ʼ � � � � � d Ǥ � � � 褦�ˤʤ�‫ޤ���������ޤ‬Ǥ�
## � � � Τ 褦�ʤ��Ȥ��п�����Ǥ��‫���ޤ‬Ǥ������ʲ�����: `set link`��
#b plot � � � ��ɤγƴ ‫����ؿ�˥��ץ‬Ȥ � � � � r � � ϰ Ϥ � p �ֻ���Ǥ��‫���ޤ‬
## � � � � ϡ � p l ot t � Τ � � ϰ Ϥ ˤϱƶd � � � � � � � � δ ‫�ؿ‬Υǡ� � � � � � ‫��ץ‬
## � � � � � ϰ Ϥ Ǥ � � � � � � � ‫��ޤ‬ � � ʲ� � � � � : `plot`, `piecewise.dem` � �
#b � � � � 饤�֥�� libcerf � � � � � Ѳ � ǽ � Ǥ � � � С � � � � � � ʣ � ǿ � ‫ �شؿ‬cerf,
## cdawson, erfi, faddeeva, � � � � � Voigt � ‫�ץ‬ե����� VP(x,sigma,gamma)
## � � � Ȥ � �
� Τ � �˻� � ‫���ޤ‬
#b � � � ��� `import` � ϡ � � � � � p� � p p �֥������� ( � � �
‫��ݡ‬Ȥ
## � � ϥ�����‫ڥ‬줿졼뤬�ƥ���
� � ƥ � � ¸ ) � � � �� � � � ‫˥�ؿ‬桼����t ‫�ؿ‬ � � � � � � � Ƥ ‫���ޤ‬Ŭ � �
## �ʳ � � � �� � � �֥������ Ȥ � � 뤬뤿뤿��Υƥ�‫ץ‬줿졼뤬�ȥ ‫إ‬å%ե����
뤬졼롢�����
## � 뤬륽륽������makefile � ʤ ɤ � demo � � � � ˤ � � � ‫���ޤ‬
#b � � � ú � Ȥ � � � � � � � � � � � ľ p � Υ � � ��ɤϡ � �ֹ�ǺƼ¹ ԤǤ�� ‫����ޤ‬㤨��
## `history !5` � ϡ � `history` � ΰ � � � � � � 5 �֤ Υ � � ��ɤ �Ƽ ¹ Ԥ � � ‫���ޤ‬
#b � ӥ å ȥ � � ե ȱ 黻�� >> � � << � �
#b gnuplot � Υ � � � � � Ƥ ӽ Ф � � � gnuplot � � � � � � ‫ץ‬Ȥ˥ѥ � �� ��� Ϥ��‫���ޤ‬

## gnuplot -c scriptfile.gp ARG1 ARG2 ARG3 ...
#end

C 2 �С � � � � � � 4 � Ȥ ΰ 㤤 (Differences from version 4)


2 Differences from version 4
?changes
?differences
�С � � � � � � 5 � � Ƴ � � � � 줿뤬줿�����Ĥ � � � � ѹ � � ϡ � p � � � Ǥ � gnuplot
�ѤΥ � � � � �
� ‫ץ‬Ȥε �ư � � � Ѥ � � � � ǽ - � � � � � � ‫���ޤ‬
* NaN � 䡢 5� � � � � ʤ � � ǡ � � � � � � ‫ � � ͽ � � ¾���ޤ‬ʤ � � � Τ � ‫���ޤ‬ϥǡ�
�� �ν� � �β � �ɡ � � � ( � � � ) �ˤ Ĥ � � Ƥ ϡ � �ʲ � � � � � : `missing` � �

* �� � � �ɸ�ϡ�ɸ��Ū�� Unix ���‫ݥ‬å � (1970 ǯ 1 � � 1 � � ) � � � � � � ÿ � �


� � � � � � � � � � � ¸ � � � ‫�����ޤ‬p � � � Ǥ � gnuplot � Ǥ ϡ � ��Υ � � ‫ݥ‬å � (2000 ǯ
1 � � 1 � � ) � � � � � � ǻ � � Ѥ � � Ƥ � � ‫����������ޤ‬ѹ��ϡ�gnuplot �γ��Ǻ���
� � � � ñ ��Υ ǡ � � � � ˤ � ä ��� ⤬ � ⤿ � 餵���������褷�‫������ޤ‬ � � ȡ�
� 뤬뤬뤵��Ƥ���ġ��� gnuplot ���ɤd�Υ��‫ݥ‬å � � � � � Ѥ � � Ƥ � � 뤬뤬줿�ˤĤ���
� ϡ � � � � ��� `print strftime("%F",0)` � � � Τ 뤳�Ȥ � � Ǥ � � ߤ������‫ޤ‬ϡ � � �
� ֤Ͼ��ʤ��Ȥ�ߥ��ä � : � ‫���¸����ޤ‬٤���

* � ‫` �ؿ‬timecolumn(N,"timeformat")` � ϡ � � � � 2 � ߤ � Ĥΰ � � � � d ‫���ޤ‬
��� � � � 2 � � � ‫ܤ‬ΰ � � Ϥ ɤ Υ ǡ � � � � � � Ȥ � � Ϣ � � � Ƥ � � 餺����äƤ���ˤ��
� ‫` �ؿ‬timecolumn` � � x � � y � � � ˻ � � �� � ΤȤϰ 㤦�| � � � � � � ǡ � � � � �
� ɤ ߹��ߤ˻Ȥ � � � 褦�ˤʤ�‫������ޤ‬ε � ǽ � ϡ � � � � Υ � � �����˼�ä��Ѥ�
� � ‫�ޤ‬: `set xdata time; set timefmt "timeformat"` � � � � � � ϡ � ʣ � � Υ ե �
� � � 뤬뤬줿��ۤʤ � � � ����������
ǡ ɤ�ǡ��������Ȥ ߹�碌�� 1 � ĤΥ �
� � դˤ � � 뤳�Ȥ � � ǽ �ˤ � � ‫���ޤ‬

* � � � ��� `set [axis]range` � Υ � � � � � � �`reverse` ϡ � � � ư ���


(autoscaling) �ˤΤ ƶ ߱ d � � � ` s et xrange [0:1]` � Τ 褦�ʥ����ɤΰ ��
� � դˤ � � � � � ¾ � � � ѹ � � � Ԥ ä � � � Ϥ � � ‫��ޤ‬ ��
� �� � Τ 褦�ʾ��� x
��ո � � � �ˤ � � � � � � � С � � � � � � `set xrange [1:0]` � Ȥ � � Ƥ � � $ � � � � �

* � � � ��� `call` � ϡ � � ѿ � ARGC, ARG0, ..., ARG9 � � � � � � �


褦����
� � � � Ƥ � � ‫���ޤ‬ARG0 � ϡ � � ¹ Ԥ � � 뤬륽륹����‫���ؤ��ޤ‬ � ‫���ץ‬ARG1 � � � � ARG9
� �ʸ � � � � � ѿ � ˤ ʤ � Τ ǡ � ľ �ܻ���
Ȥ � � 뤬뤬줿���‫����ޤ‬㤨�� @ARG1 � Τ 褦�˥�
� � � � Ÿ � � � � � � � � � � Τ ΤȤ��
Τ� Τ 뤳�Ȥ � � Ǥ � � ‫���ޤ‬call
� θŤ � � ѥ � �� �����
� | � $0 ... $9 � ϸ � � ߤ���侩�Ǥ���

* � � � ‫ ����ץ‬smooth � � kdensity � Ρ � b andwidth � � � ɲ û � � � Ǥ ϡ � � ǡ � � � � �


��� �Ǥ ʤ � 1 � ĤΥ � � � � � �
�ɤ�� Ȥ
��� �� ���
��� ‫����ޤ‬ʲ� � � � � :
`smooth kdensity` � �

C 2 � � 侩�ʽ� (Deprecated syntax)


2 Deprecated syntax
?deprecated syntax
?backwards compatibility
?compatibility
ν� � p � � � Ǥ ǻ
νȤ� �Ƥ � � � � � � � � Ĥ � � ν
ν��� gnuplot 4 � � � 侩�Ȥ ʤ � ‫���ޤ‬
� � � � � � � � ߴ�-� � � 뤬뤿뤿��Υ � � � ѥ � � � � Υ � � ‫�����ץ‬Ѱդ ���Ƥ ���
��� � �Ť � � ��Υ � � ‫��ݡ‬Ȥϸ � � ߤϺ���Ƥ�� ‫���ޤ‬

gnuplot 4 � Ǥ � � � 侩�ǡ� � С � � � � � � 5 �Ǥ Ϻ � � :
set title "Old" 0,-1
set data linespoints
plot 1 2 4 # y=1 � Ǥ ο �ʿ �
� � � ߤ�Ʊ��ε�ǽ:
TITLE = "New"
set title TITLE offset char 0, char -1
set style data linespoints
plot 1 linetype 2 pointtype 4
�С � � � � � � 5.0 � Ǥ � --enable-backwards-compatibility � ǹ � �ۤ�� 줿뤬줿���
� ϻ Ȥ � � 뤬뤬뤬��侩:
if (defined(VARNAME)) ...
set style increment user
plot 'file' thru f(x)
call 'script' 1.23 ABC
(in script: print $0, "$1", "number of args = $#")
� � � ߤ�Ʊ��ε�ǽ:
if (exists("VARNAME")) ...
set linetype
plot 'file' using 1:(f(column(2)))
call 'script' 1.23 "ABC"
(in script: print ARG1, ARG2, "number of args = ", ARGC
� 2 � ǥ�
C ⡢�å �� Ⱦ��
Υ �� ‫( �ץ‬Demos and Online Examples)
2 Demos and Online Examples
?demos
?online examples
?examples
`gnuplot` � � � � � � ʪ � � `demo` � ǥ � � 줿쥹뤿�ȥ���ˤϡ�¿���Υ���‫ץ‬뤬뤬뤬����
� � Ƥ � � ‫��������ޤ‬Υ � � � ‫ ��ץ‬png, svg, canvas � � � Ϸ | � � ˤ � � � � Ϥ �
�ʲ � � Υ åΥ�Ⱦ � Ǹ � � 뤳�Ȥ � Ǥ � � ‫�ޤ‬:
^ <a href="http://gnuplot.info/demos/">
http://gnuplot.info/demos
^ </a>
� � � � � Ǥ ϡ � � ƥ ǥ � � � . � � � 뤬쥹륳���ɤ� � � � � դ � � ٤��ɽ������‫���������ޤ‬
gnuplot � � � � � � ‫ץ‬Ȥ � % � � � � � ɤ � � 뤳�Ȥ � Ǥ � � ‫��ޤ‬Τǡ � � � � � � � � ¸ � � Ʊ
�� Υ � � � � դ � �.��� 뤳�Ȥ � � Ǥ � � ‫���ޤ‬

C 2 � Хå � / � � � ÷ � � � � (Batch/Interactive)
2 Batch/Interactive Operation
?batch/interactive
?command line options
`gnuplot` � � ¿ � � � Υ � � � � ƥ � � ǡ � � Х å } � � � | � � � � � � 뤬뤬뤤�����÷ � � Τ ɤ d �
� η| � � Ǥ � ¹ ԤǤ � � � � � � � � � � Ȥ ߹�碌�뤬뤬뤳�Ȥ � � ǽ � Ǥ � � �

� � � ��ɥ 饤����ϡ � � ‫ؤ����ץ‬Υ � � ‫( ����ץ‬ʸ�� - �ǻϤ ‫� � � � )�ޤ‬


`gnuplot` � � � ��ɤ � ‫�ޤ‬ե�������� p Ǥ���Ȳᤵ � �� ‫���ޤ‬
-e "command" � η| � � Υ � � ‫����ץ‬ϡ � gnuplot � � � ��ɤ� )Ū � ˼ ¹ Ԥ � � � � �
� ƥե � � � � � Ȥ � � Υ � � ���ʸ����ϡ������줿뤬줿��˼¹Ԥ���‫������ޤ‬ �ʥ�
� � � � � �� "-" � ϡ � � � � ��ɤ �ɸ � � � � Ϥ � � � � ɤ ߹��ळ�Ȥ � �� � � � ‫����ޤ‬Ǹ�
� Υե � � � � � � ¹ Ԥ � � � � � � `gnuplot` � Ͻ � λ � � � ‫����ޤ‬ɤ߹��‫���ޤ‬ե����롢
� � � � ӥ � � ���ʸ���������ʤ��ä����ϡ�`gnuplot` ��ɸ����Ϥ����
� � � ÷ � � � � � Ϥ � � � դ � � ‫���ޤ‬

`exit` � � `quit` � Ϥ ɤ d � � ⸽ߤΥ� � ��ɥե � � � � � � λ � � � � � ‫�ޤ‬t�Ƥ �


� ե � � � � 뤬뤬뤬���äƤ��ʤ���С����Υե������ `load` ����Τ˻Ȥ��‫���ޤ‬

� �:

ä�ä �Ϥ� � :
�� �ä
gnuplot

2 � ĤΥ � � ��ɥե � � � � � "input1", "input2" � � Ȥ ä ƥ Хå} � � � � Ԥ ʤ � :


gnuplot input1 input2

�� �ե � � � � � "header" � θ 塢���÷ � � ⡼ � ɤ � ư � � � � � � � θ � ��Υ � � ���


�ե � � � � � "tailer" � � ¹ Ԥ � � � :
gnuplot header - trailer

� � � ��ɥ 饤� ��� � `gnuplot` � � � ��ɤ� ľ � � Ϳ �� � � � � λ � � ˥ � � � � � ��


�˥ � � � դ � � Ĥ � 褦�˥� � ‫" ����ץ‬-persist" � � Ȥ � :
gnuplot -persist -e "set title 'Sine curve'; plot sin(x)"
� ե � � � � � Υ � � ��ɤ � ¹ Ԥ � � � p �ˡ � � 桼�������
ѿ� a �� s �å Ȥ � � � :

gnuplot -e "a=2; s='file.png'" input.gpl

C 2 ��� � �Х � � � � � � � (Canvas size)


2 Canvas size
?canvas size
?canvas
?set term size

��gnuplot � ΰ � p � � � Ǥ Ǥ ϡ � ` set size` � � �


��� �� �
� �
Ϥ�r � � � ΰ � (� � � � �
� � ) � Υ � � � � � � � ) � 椹��Τˤ�ȤäƤ������Ϸ|��⤢��٤����������‫ޤ‬Ƥ�
� � � Ϸ | � � � � � � � � $ ä � � 櫓�ǤϤ���‫���ޤ‬Ǥ�����������Ū�Τ����
`set size` � � � � Ѥ � � 뤳�ȤϥС � � � � � � 4.2 � � � � 侩�Ȥ ʤ ꡢ���ߤϤۤȤ �
� ɤ ν � � Ϸ | � � � � ʲ � � Υ 뤬롼뤤��˽ � � � � ‫�ޤ‬:

`set term <terminal_type> size <XX>, <YY>` � ϡ � � � � ϥ ե � � � � � Υ � � � � � � �


� ‫ � � � � � " ���ޤ‬Х � " � Υ � � � � � � � ) � 椷�‫����ޤ‬ǥե���ȤǤϡ�����դ Ϥ���
� � � � � Х � t � Τ � � r 褵��‫���ޤ‬

`set size <XX>, <YY>` � ϡ � � r 輫�ΤΤ � �


Х� �Υ� � � � � � � � Ф � � � � � � � Ū � �
� � ��� � � � 1���‫ � � ޤ‬꿷꾮륪���������� � � � � �� � ȡ�����դϥ����Х�t�Τ�
� � ᤺ ��1 � � � � 礭�������� � � � � �� � ȡ�����դΰ���ʬ�Τ ߤ������Х�
t � Τ ˹ 礦�褦���r 褵��1���‫ � � � � ޤ‬礭�������� � � � � �� � ȡ����꤬���
� � � 뤫�⤷��ʤ����Ȥ���դ��Ƥ��$�����

� � � Υ 뤬롼뤤��˱ � � ʤ � � � � � 㳰�� PostScript � ɥ 饤�Фǡ� � ǥ ե � � � Ȥ Ǥ ϰ �


p� � � Ǥ ��Ʊ � � � � � � � ‫ ����������ޤ‬PostScript � ɥ 饤�Ф � Ʊ�˥
� ǥե � ��
���
� � Ȥ ο � � �� �ѹ� � � � � 뤳�Ȥˤʤ � Ǥ � � 礦��

� �:

set size 0.5, 0.5


set term png size 600, 400
set output "figure.png"
plot "data" with lines

� � � Υ � � ��ɤϡ � � � 600 � ԥ � � � � 롢�⤵ 400 � ԥ � � � � � ν � � ϥ ե � � � � �


"figure.png" � � 8 . � � � ‫�������ޤ‬դϥ����Х�����κ������֤��� ‫���ޤ‬
� � � � ϡ � m u ltiplot � Ƥ
�ɤ˹ � � � ⡼ Ԥ ä � � � � � ˡ � ��� � � ⤷
‫���ޤ‬

C 2 � � � ��ɥ 饤���Խ� (Command-line-editing)


2 Command-line-editing
?line-editing
?editing
?command-line-editing
� � � ��ɥ 饤��Ǥ��Խ���ǽ�ȥ����ɥҥ � � ȥ � ε � ǽ � ϡ � � � � � � GNU
readline � 饤�֥������������ ꤫ BSD libedit � 饤�֥�ꡢ� ‫����ޤ‬Ȥ߹��‫��ޤ‬
� � � � Ʊ � � Τ � Τ Τ � � � � 줿줬뤳��Ȥäƥ � � ‫��ݡ‬Ȥ � � Ƥ � � ‫�������ޤ‬j� � ϡ �
gnuplot � Υ � � � ѥ � � � � � configure � Υ � � ‫����ץ‬ǹԤ�� ‫���ޤ‬

� Ȥ ߹��ߤ� readline � Ǥ ξ � � � � Խ � � � � ��ɤϰʲ� � � �� � Ǥ � � � � � D E L � � � �


� ˴ ‫���ؤ‬ư � � ϥ � � � � ƥ � ˰ � ¸ � � � 뤳�Ȥ � � � դ � � Ƥ � � $ � � � � � G N U readline
� 饤�֥��� BSD libedit � 饤�֥�� ˴‫��ؤ‬Ƥϡ����켫켫뷿�ȤΥɥ � � � � � �
���Ȥ � � Ƥ � �$ � � � � �

@start table - � ‫ � � ÷������ޤ‬ƥ � � � � ȷ | �


`� � � Խ � ` :
^B 1 ʸ��p��� ᤹
^F 1 ʸ����‫ؿ‬ʤ��
^A �Ԥ � � � Ƭ � � ư � ˰
^E � ԤκǸ � � ư � ˰
^H ľp � �ʸ � � � � �
DEL � � � ߤ�ʸ�����
^D � � �߰� ��֤� ʸ������Ԥʤ� EOF ����
^K � � �߰� ��֤������ ‫ޤ‬Ǻ� �
^L � � 줿 ɽ���ιԤ��ɽ��
^U � � t � Τκ � �
^W ľp � � ñ � � � � �
^V � � � μ � � Υ � � � � � � Խ � � � � ��ɤ ȸ � � ʤ � � ʤ �
TAB � ե � � � � ��� 䴰 ư � �

`� � � � ` :

^P p � � � � � � ‫�ذ‬ư
^N � � � � � � � � ‫�ذ‬ư
^R � � � � � ���

#\begin{tabular}{|cl|} \hline
#\multicolumn{2}{|c|}{ � � � ��ɹ� � Խ � � � � ���} \\ \hline \hline
#ʸ�� & ��ǽ \\ \hline
# & \multicolumn{1}{|c|}{ � � � Խ � } \ \ \cline{2-2}
#\verb~^B~ & 1 ʸ��p��� ᤹ \\
#\verb~^F~ & 1 ʸ����‫ؿ‬ʤ��\\
#\verb~^A~ & � Ԥ � � � Ƭ � ‫�ذ‬ư\\
#\verb~^E~ & � Ԥ κ Ǹ � ‫�ذ‬ư\\
#\verb~^H~ & ľp � �ʸ � � � � � \ \
#\verb~DEL~ & � � � ߤ�ʸ�����\\
#\verb~^D~ & � � �߰� ��֤� ʸ������Ԥʤ� EOF\\
#\verb~^K~ & � � �߰� ��֤������ ‫ޤ‬Ǻ � � \\
#\verb~^L~ & � � 줿 ɽ���ιԤ��ɽ��\\
#\verb~^U~ & � � t � Τ κ � � \ \
#\verb~^W~ & ľp � � ñ � � � � � \ \
#\verb~^V~ & � � � μ � � Υ � � � � � � Խ � � � � ��ɤ ȸ � � ʤ � � ʤ � \ \
#\verb~TAB~ & � ե � � � � ��� 䴰 ư � � \ \ \hline
# & \multicolumn{1}{|c|}{ � � � � } \\ \cline{2-2}
#\verb~^P~ & p � � � � � � ‫�ذ‬ư\\
#\verb~^N~ & � � � � � � � � ‫�ذ‬ư\\
#\verb~^R~ & � � � � � � � \ \
%c l .
%ʸ��@��ǽ
%_
%@ � � � Խ �
%^B@1 ʸ��p��� ᤹
%^F@1 ʸ����‫ؿ‬ʤ��
%^A@ � Ԥ � � � Ƭ � � ư � ˰
%^E@ � Ԥ κ Ǹ � � ư� ˰
%^H@ľp � �ʸ � � � � �
%DEL@ � � � ߤ�ʸ�����
%^D@ � � �߰� ��֤� ʸ������Ԥʤ� EOF
%^K@ � � �߰� ��֤������ ‫ޤ‬Ǻ� �
%^L@ � � 줿 ɽ���ιԤ��ɽ��
%^U@ � � t � Τ κ � �
%^W@ľp � � ñ � � � � �
%_
%^V@ � � � μ � � Υ � � � � � � Խ � � � � ��ɤ ȸ � � ʤ � � ʤ �
%TAB@ �ե � � � � ��� 䴰 ư � �
%_
%@ � � � �
%^P@p � � � � � � ‫�ذ‬ư
%^N@ � � � � � � � � ‫�ذ‬ư
%^R@ � � � � � � �
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th>ʸ��</th> <th>��ǽ</th></tr>
^</thead>
^<tbody>
^<tr> <td></td> <th> � � � Խ � < / th></tr>
^<tr> <td><tt>^B</tt></td> <td>1 ʸ��p��� ᤹ </td></tr>
^<tr> <td><tt>^F</tt></td> <td>1 ʸ����‫ؿ‬ʤ��</td></tr>
^<tr> <td><tt>^A</tt></td> <td> � Ԥ � � � Ƭ � ‫�ذ‬ư</td></tr>
^<tr> <td><tt>^E</tt></td> <td> � Ԥ κ Ǹ � ‫�ذ‬ư</td></tr>
^<tr> <td><tt>^H</tt></td> <td>ľp � �ʸ � � � � � < / t d></tr>
^<tr> <td><tt>DEL</tt></td> <td> � � � ߤ�ʸ�����</td></tr>
^<tr> <td><tt>^D</tt></td> <td> � � �߰� ��֤� ʸ������Ԥʤ� EOF</td></tr>
^<tr> <td><tt>^K</tt></td> <td> � � �߰� ��֤������ ‫ޤ‬Ǻ � � </td></tr>
^<tr> <td><tt>^L</tt></td> <td> � � 줿 ɽ���ιԤ��ɽ��</td></tr>
^<tr> <td><tt>^U</tt></td> <td> � � t � Τ κ � � < / td></tr>
^<tr> <td><tt>^W</tt></td> <td>ľp � � ñ � � � � � < / t d></tr>
^<tr> <td><tt>^V</tt></td> <td> � � � μ � � Υ � � � � � � Խ � � � �
��ɤ ȸ � � ʤ � � ʤ � < / t d></tr>
^<tr> <td><tt>TAB</tt></td> <td> �ե � � � � ��� 䴰 ư � � < /td></tr>
^</tbody>
^<tbody>
^<tr> <th></th> <th> � � � � < / th></tr>
^<tr> <td><tt>^P</tt></td> <td>p � � � � � � ‫�ذ‬ư</td></tr>
^<tr> <td><tt>^N</tt></td> <td> � � � � � � � � ‫�ذ‬ư</td></tr>
^<tr> <td><tt>^R</tt></td> <td> � � � � � � � < / td></tr>
^</tbody>
^</table>
C 2 ��� � � � (Comments)
2 Comments
?comments
��� � � ȵ � � � `#` � ϡ � � � � ��ɹ� � � Τ ۤȤ �ɤɤ � �ˤ Ǥ� � � � �Ȥ
���Ǥ ���� �
� � � � � � � Τ Ȥ � `gnuplot` � ϡ � � � � ι Ԥ λ Ĥ � � � � ʬ � ��� 뤬뤬뤷�‫������ޤ‬$ � � � � �
� � `#` � ϰ � � � � � � � Ǥ Ϥ � � θ ��� � � � � ‫��ޤ‬ � ������
��� ȹԤ� '\'
� � � � � 硢���ιԤ ⥳���Ȥΰ���Ȥ��ư����뤳�Ȥ � � � դ � � Ƥ � � $ � � � � �

� ǡ � � � � ե � � � � � � � Ф � � 뤬쥹륳����ʸ��λ���ˤĤ��Ƥϡ��ʲ�����:
`set datafile commentschars` � �
C 2 � � ɸ � � (Coordinates)
2 Coordinates
?coordinates
=axes
� � � ��� `set arrow`, `set key`, `set label`, `set object` � ϥ � � � վ �
� � Ǥ � դ ΰ � �֤����� Ǥ��‫������ޤ‬ΰ� �֤ ν ϰʲ��νν
ǻ�� ��‫�ޤ‬:

{<system>} <x>, {<system>} <y> {,{<system>} <z>}

�ƺ � ɸ � ϻ � � � <system> �ˤϡ � `first`, `second`, `polar`, `graph`,


`screen`, `character` � Τ � � � � 줿줬뤳�����‫���ޤ‬

`first` � Ϻ � � Ȳ � � μ � � � � � d � � � � x,y (3D � ξ � � � z � � ) � κ � ɸ � Ϥ � � � �


� � � ‫`���ޤ‬second` � � x2, y2 � � ( � � ȱ � � μ � ) � � � � Ѥ � � ‫`���ޤ‬graph` � ϥ �
� � � � r � � ΰ � � � � � � � � Ū � � � ֤ ��� �� ��������
������� 0,0 � � � � � 夬 1,1
(splot � �
���ϥ � � � � � r � �ΰ � � � κ � � � � � 0,0,0 � ǡ � � � � � ΰ � �֤���� z
� � � ‫����ޤ‬ʲ�� � � � : `set xyplane`) � Ȥ ʤ � ‫`���ޤ‬screen` � � ɽ � � � ϰ � � � (� �
� � t � Τ Ǥ � � ꡢ`set size` � � j � �� � � � � � ʬ �Ǥ Ϥ � ���� ��‫� �� � � � � )���ޤ‬
��� � � � 0,0 � � � � � 夬 1,1 � Ȥ ʤ � ‫`���ޤ‬character` � � ɸ � ϼ � ˤ � � � � � � �
� � � � Τ ˻ � � Ѥ � � � � � � � Ū � ʰ � � ��� ֤ ���ΤǤϤ���‫`���ޤ‬character` � ο �
ʿ����ľ�������ϡ������ � Ѥ � � Ƥ � � � ե � � � Ȥ ˰ � ¸ � � � ‫���ޤ‬

`polar` � ϡ � � ǽ � � 2 � Ĥ � � �� x
�� , y ʤ � ��� �theta
� ǤϤ
� �Ⱦ � � r �Ǥ� � �
�Ȳ ᤷ �� ‫�������ޤ‬ϡ � � 㤨�� 2 � � � � � ζ ˺ � ɸ � � � � � 뤬뤬뤤�� 3
��� � � � � � � ɸ � �
� Υ � � � դ ˥ � ٥�����֤��� Τ � � � � Ω � Ĥ Ǥ � � 礦��

x � κ � ɸ � Ϥ � � � � �� �
Ƥ��ʤ����� `first` ���Ȥ��‫���ޤ‬y � κ � ɸ � Ϥ �
� � � �� � Ƥ��ʤ����� x ���Ф����ɸ� Ϥ����Ѥ��� ‫���ޤ‬

Ϳ�����ɸ������
�ʰ� Ū �֤ ǤϤʤ�������Ū���Ǥ����� ⤢� � � � � ��
�� � � �� ‫ �( �ޤ‬㤨
� � `set arrow` ... `rto` � � 2 � � � ‫ܤ‬ο � � � ) � � � � � Τ ۤȤ �ɤ � � � Ϳ � � � 줿
� � � �� ǽ
�� � ΰ � �֤�� Ф � � 뺹뺹륹�Ȥ � � ƻ Ȥ � � ‫����Ϳ���ޤ‬줿�
�� � � � ϡ � � � � � � � � � Ū � � � �� �
Ψ � �� Ȥ � � Ʋ ᤵ � ��‫����ޤ‬㤨��

set logscale x
set arrow 100,5 rto 10,2

�ϡ � x � � � � � п � � y � � � � � � d μ � � ʤ Τ ǡ � 1 0 0,5 � ΰ � �֤��� 1000,7 � ΰ �


� ֤‫�����ؤ‬� ���
�� Ȥˤʤ � ‫���ޤ‬

� � � ( � � � 뤬뤬뤤�Ϥ���ʾ�) �μ������ּ��Ǥ����硢`timefmt` � ν �ʸ � � � �
� ˽ � � ä ơ � � � � � � � ǰ Ϥ ‫ޤ‬줿����ʸ�����Ŭ�‫�ʺڤ‬ɸ������ � ɬ�‫������פ‬
� � � � � ʲ � � � � � : `set xdata`, `set timefmt` � � � ‫`���ޤ‬gnuplot` � � 0 � � ɽ � � � �
ǧ��Ƥ��ơ����ξ�礽��0 � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤵ � ���
��� �
C 2 ʸ����ǡ��� (Datastrings)
2 Datastrings
?datastrings
� ǡ � � � � ե � � � � � ˤ ϡ � � ‫ۥ‬磻�ȥ��‫ � � � �( ���ڡ‬䥿��) � � ‫ޤޤ‬ʤ�Ǥ�դΰ��
� �ǽ � �ʸ � � � �� �� 뤬뤬뤤�� 2 � Ű � � � � � ǰ Ϥ ‫ޤ‬줿 Ǥ�դ�ʸ����
� � � � � � � ‫�ޤޤ‬Ƥ��ɤ�)���Τ����줿줬뤳�ηd� � � ʤ � ʸ � � � � ǡ � � � � � � 뤳
� Ȥ � � ǽ � Ǥ � � � � ǡ � � � � ե � � � � � ˼ � � Τ 褦�ʹ Ԥ��‫�ޤޤ‬Ƥ����硢����� 4
� Ĥ � � � � ‫ ���ܤ‬3�ߡ ��ƥ�������ʬ�Ǥ���ȸ��ʤ���‫�ޤ‬:
‫ޤ‬

1.000 2.000 "Third column is all of this text" 4.00

�ƥ � � � � � � � ʬ � � 2 ��� � � � 3 ��� � �r � � � � � 㤨�аʲ� � Τ 褦�˻ � � Ѥ � � � ‫�ޤ‬:

plot 'datafile' using 1:2:4 with labels


splot 'datafile' using 1:2:3:4 with labels

�ƥ � � � � � � � ʬ � � � � ǡ � � � � � 1 � ġ � � ‫���ޤ‬ʣ����r 輴����9 � � Υ � ٥�Ȥ �


� ƻ � � Ѥ Ǥ � � ‫���������ޤ‬ϡ � � � ϥ ǡ � � � � � 3 � � � ‫� ���ܤ‬4 ���� ‫( �ܤ‬X,Y) � � ɸ � �
� � � Ƽ � � Ф � � � � � � � � � � $ � � � � � � � ʬ � � � r 褷�‫������������ޤ‬ξ� �
gnuplot � ϡ � x � � � ˱ � ä � ɸ � � Ū � ˴ ֤ζ � � � � � � ٥�ΤĤ � � � � � 9 � � � �
� �Ĥ � � � ΤǤϤ ʤ � � � � � ϥ ǡ � � � � ե � � � � � � 1 � � � ‫ �ܤ‬X � � ɸ � ΰ � �֤ ˡ���9
� � � ߤ�ʸ����� x ���˱�äƤĤ��ƹԤ��‫���ޤ‬

set xtics
plot 'datafile' using 3:4:xticlabels(1) with linespoints

=columnheader
� � ϥ ǡ � � � � � � � κ ǽ � Υ � � � ȥ � (� � � ʤ � � � � θ � � Ф � ) � � ƥ � � � � � � � ʬ � Ȳ �
� ᤹�� ⤦ �� ĤΥ� � ‫���ץ‬ � ��� � � � � ꡢ
���� ϥƥ�������ʬ ������
���� � r�
褷����
� Υǡ � � � � � � � � � (key) � Υ � � � � ȥ � � � ʬ � Ȥ � � ƻ � � Ѥ � �
‫���������ޤ‬ϡ � � � Ƭ � �
� Ԥ � 2 � � � ‫���ܤ‬ʬ� � � � � � ‫ܥ‬å � � � � � Υ � � � � ȥ � � 8 . � � � � Τ ˻ � � Ѥ � � � � � � �
��� � � � 2,4 � � � ‫ܤ��׵‬ᤵ�줿������r 褹��Τ˽ � � � � ‫�ޤ‬:

plot 'datafile' using 1:(f($2)/$4) with lines title columnhead(2)

��� � � :

plot for [i=2:6] 'datafile' using i title "Results for ".columnhead(i)

� � � � � � � � � Ƭ � � � � Ѥ � � � � � ˡ � ϡ � ` s et key autotitle columnhead` � Ǽ � ư � �


� Ǥ � � ‫� ���ޤ‬ʲ� � � � � : `labels`, `using xticlabels`, `plot title`,
`using`, `key autotitle` � �
C 2 � � ĥʸ � � � � � � � ⡼ � � (Enhanced text mode)
2 Enhanced text mode
?enhanced text
?enhanced
?text_markup
?markup
?bold
?italic
�¿ � � � ν � � Ϸ | � � � � � � � ĥ ʸ � � � � � � � ⡼ �
� �� �(enhanced text mode) � ‫���ݡ‬
� � � Ƥ � � ‫�������ޤ‬ν ϡ �ʸ � � � � � � ɲ ν
ä ν ν � � � � � ᤳ � �ߤ‫����ޤ‬㤨�� "x^2"
� � x � μ � � � � ��� 桹��������ǽ դ��� 2 ���Ĥ����dǽ �Фǽ�� ‫�������ޤ‬
�� ⡼ � ɤ ϡ � � � � Ϸ | � � � � � � � � ˥ ǥ ե� � � � Ȥ Ȥ � � � j �� � ‫��������ޤ‬θ � �
"set termoption [no]enhanced" � � Ȥ ä Ƥ � � ε � ǽ � � Ǥ� � /�� � ˤ � � � � � �� ‫�ޤ‬
� � � � " s et label 'x_2' noenhanced" � Τ 褦�˸ġ � � � ʸ � � � � � Ŭ � Ѥ � � 뤳�Ȥ �
� Ǥ � � ‫���ޤ‬

@start table - � ‫ � � ÷������ޤ‬ƥ � � � � ȷ | �


) � 浭�� �� ����
^ a^x � � � դ �ʸ � �
_ a_x � � � դ �ʸ � �
@ @x, a@^b_{cd} � � ‫ܥ‬å � � � ( � � ʤ � )
& &{space} � � � �� Ĺ �� � � Υ � � ‫��������ڡ‬
~ ~a{.8-} 'a' � ξ � � '-' �� � � �ߤΥե���ȥ�
��� � � � .8 �ܻ �~夲�����֤ ˽Ťͽ �
{/Times abc} Times � ե � � � ȡ � � � � Υ � � � � � � � abc � � � � �
{/Times*2 abc} Times � ե � � � ȡ � � � � � � ‫ܤ‬Υ � � � � � � � abc
{/Times:Italic abc} TImes � ե � � � ȡ � � � � � � � å � � Τ � abc
{/Arial:Bold=20 abc} Arial � ե � � � ȡ � � ; � � � � � 20 � � abc
#\begin{tabular}{|clll|} \hline
#\multicolumn{4}{|c|}{ � � ĥ ʸ � � � � ) � 浭��} \\ \hline
#) � 浭�� & � � & � � � & � � � � \\ \hline
#\verb~^~ & \verb~a^x~ & $a^x$ & � � � դ � ʸ � � \ \
#\verb~_~ & \verb~a_x~ & $a_x$ & � � � դ � ʸ � � \ \
#\verb~@~ & \verb~a@^b_{cd}~ & $a^b_{cd}$ & � � ‫ܥ‬å � � � ( � � ʤ � ) \ \
#\verb~&~ & \verb~d&{space}b~ & d\verb*+ +b & � � � �� Ĺ�� � � Υ � �
‫\\��������ڡ‬
#\verb|~| & \verb|~a{.8-}| & $\tilde{a}$ & 'a' � ξ � � '-' �� � � �ߤΥե���ȥ�\\
#\verb~ ~ & \verb~ ~ & ~ ~ & � � � � � � .8 �ܻ��
~夲�����֤ ˽Ťͽ � \\
#\verb| | & \verb|{/Times abc}| & {\rm abc} & Times � ե � � � ȡ � � � � Υ � � � � � � �
abc � � � � � \ \
#\verb| | & \verb|{/Times*2 abc}| & \Large{\rm abc} & Times � ե � � � ȡ � � � � � �
‫ܤ‬Υ � � � � � � � abc\\
#\verb| | & \verb|{/Times:Italic abc}| & {\it abc} & Times
�ե � � � ȡ � � � � � � � å � � Τ � abc\\
#\verb| | & \verb|{/Arial:Bold=20 abc}| & \Large\textsf{\textbf{abc}} & Arial
�ե � � � ȡ � � ; � � � � � 20 � � abc\\
%c c l .
C ugly - doc2ms uses @ for column separator, but here we
C need @ in table, so end and restart the table !
%.TE
%.TS
%center box tab ($) ;
%c c l .
%) � 浭��$ � � $ � � � �
%_
%^$a^x$ � � � դ � ʸ � �
%\&_$a\&_x$ � � � դ � ʸ � �
% @ $ @x, a\&@^b\&_{cd}$ � � ‫ܥ‬å � � � ( � � ʤ � )
% & $ &{space}$ � � � �� Ĺ �� � � Υ � � ‫��������ڡ‬
% ~ $ ~a{.8-}$'a' � ξ � � '-' �� � � �ߤΥե���ȥ�
% $ $� � � � � � .8 �
ܻ �~夲�����֤ ˽Ťͽ �
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th>) � 浭��</th> <th> � � </th> <th> � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td><tt> ^ </tt></td> <td><tt>a^x</tt></td>
<td> � � � դ � ʸ � � < / td></tr>
^<tr> <td><tt> _ </tt></td> <td><tt>a_x</tt></td>
<td> � � � դ � ʸ � � < / td></tr>
^<tr> <td><tt> @ </tt></td> <td><tt> @x</tt>, <tt>a@^b_{cd}</tt></td>
<td> � � ‫ܥ‬å � � � ( � � ʤ � ) < /td></tr>
^<tr> <td><tt> &amp;</tt></td> <td><tt> &amp;{space}</tt></td>
<td> � � � �� Ĺ �� � � Υ � � ‫<��������ڡ‬/td></tr>
^<tr> <td><tt> ~ </tt></td> <td><tt> ~a{.8-}</tt></td> <td>'a' � ξ � � '-'
� �� � �ߤΥե���ȥ�<br>������ .8 �ܻ�� ~夲�����֤ ˽Ťͽ � </td></tr>
^</tbody>
^</table>

� �) � �ʸ � � ϡ � � � � � � ³ � � 1 ʸ� � ‫����ޤ‬楫�å � �ǰϤ ‫ޤ‬줿��Τ � Ŭ � �


� � � � ‫����ޤ‬楫�å� � � ˤϡ � � 㤨�� 2^{10} � Τ 褦���ɲäν �ʸ � � � � Τ ʤ �
ʸ��� ��
� �
� �� ‫��ޤ‬ϥե���Ȥ�°-���ѹ������ɲ�)��ʸ��������뤳
� � � ‫����ޤ‬ʲ�� � � � Ϥ � � � � 楫�å � � � � � � Ҥ � �� � Ƥ
�� �ơ���
‫�����ܡ‬Τ � A � �
�� � � � � å � � Τβ� �դ � � � ź � � i � � � Ĥ � � � � � Τ � � � � � � � � � ⸽ � ߤΥե���Ȥ�
� d � � � ‫ ����������ޤ‬:Normal � � � � ȡ � � � � դ � � � ź � � ϥ ‫�����ܡ‬ΤǤ���
� � � � � � å � � Τ ˤ ʤ � ‫���ޤ‬
{/:Bold A_{/:Normal{/:Italic i}}}
�ե � � � Ȼ � � � ϡ � � � � � � 楫�å � '{' � � ľ � � � ³ � � '/' � Τ � � � � � � ˽
� �˽ʤ
����
�С �
֤ � ��‫�ޤ���ס‬

� � ‫ܥ‬å � � � (phantom box) � � a@^b_c � ξ � � դ � ʸ � � Ȳ � � դ � ʸ � � � · � � � � �

� � Ԥ � � � Ū � Τ � � � ˤ ϡ � � � � � � ʥ � � � � � � � Ȥ 䤽��¾ � Υ% � � � � � � � ƥ � � � � � �
� � � � � Τ � � � ¿ � � � � ʸ � � � � ĥ � � � � �(�� � � � 㤨�� iso_8859_1 � � utf8) � � �

� Ѥ � � � � � � � Ǥ � � 礦���ʲ� � � � � : `set encoding` � � � � � Υ ‫ܥ‬å� � � � ϥ � � ‫�ڡ‬


�� � � ǡ� �
� ΤԤ ʤ � � ʤ � � �� � ‫ܥ‬å � � � � � ( � Ĥ ‫ � @ �ޤ‬θ � � ) � ξ � � դ � ʸ � � �
� � � դ � ʸ � � � û � � � � � Ϥ � � � Τ � Ŭ � � � Ƥ � � ‫���ޤ‬

� � � � ʸ � � � � � Ʊ � � Ĺ � � � Υ � � ‫�����ڡ‬ʸ� � '&' � � Ȥ� � � � Ȥ� � � � 뤳�Ȥ � � Ǥ �


� ‫������ޤ‬ʤ�a�
'abc&{def}ghi'
� ϰʲ� � � 8 . � � � ‫( �ޤ‬abc � � ghi � δ � ֤ 3 ʸ� � ʬ� ζ� � � ):
'abc ghi'

ʸ� � '~' � ϡ� � � � � ʸ� � ‫��ޤ‬ϥ� � å� � ǰϤ ‫ޤ‬줿 ʸ� � � � ˡ� � � � � � ³� � ʸ� �


� ‫��ޤ‬ϥ� � å� � ǰϤ ‫ޤ‬줿 ͽ ʸ� � � � � Ťͽ � � ‫ ���ܤ‬2���‫�ޤ‬ʸ� � Ϻ ǽ� � ʸ� �
�ˤ � � 碌�ƿ�ʿ���˥�� � ���‫�����ޤ‬ä � '~a/' � � 'a' � � Ӥ � � �
�������
� � � ʥ � � � å � � 夬�$� � ‫ ���ܤ‬2���‫�ޤ‬ʸ� � ϡ� � � � � p� ˿� � � �֤���� Ȥǿ �
ľ � � � ˰ � ư � � � � � 뤳�Ȥ � � Ǥ � � ‫������ޤ‬ο � � ϸ � � ߤΥե���ȥ��������Ф�
� � � � � �� � � � � � � � � ˽ � � ä � ʸ � � 夬�ä � � 겼켫줬���ä � � ��‫������ޤ‬ξ � �
�� � �ʸ � � � � � 1 ʸ� � � � Ĺ � � � ʤ � Τ ǥ � � å � � ǰ Ϥ � ɬ � ‫����פ�����ޤ‬Ť �
�� � � � � ʸ � � �� � � �
� �Ϥ �

� �� �
δ ֤˥
‫ޤ‬ä�Ƥ� ����
��ϡ� ��ľ�ˤ ��餹�� �ʸƤ�
‫��������ڡ‬ �� ��
�$� ��� ('~{abc}{.5 000}')������ʳ ��ϥ��‫���ڡ‬
� � � � � ‫פ‬Ǥ � ('~{abc}{.5---}')� � � � � � 뤬뤬뤤��ξ � � Υ ե � � � Ȥ � � ѹ � � � � 뤳
� Ȥ � Ǥ � � ‫~'( �ޤ‬a{.5 /*.2 o}'; 'a' � � � � 1/5 � � � 礭���� 'o' � � � � � ξ � � �
� � ȥ � � � å � � � δ ֤Υ � � ‫�����ڡ‬ɬ�‫פ‬Ǥ � ) � � � � � � � � ʸ� � � Ϥ
� ��
� � � � � 뤳�ȤϤǤ� � ‫�����ޤ‬ ��줿뤬륢���
� � ʸ� � � � � � ǡ� ¾� � � ü� ʽ� ʽ Ȥ�
ʽ � � � � ʽ
ʽ
��
� � Ǥ � � ‫��ޤ‬ � ��d � � '~a{\^}' � Τ 褦���ü � �ʸ � � � � �
� �� � � � � ‫��פ‬
� � (� � � � � � � � ) �ϲ � ǽ � Ǥ � � �

� ü 쵭쵭쵭��ϡ � 8 � �ʸ � � � ɤ � Ϳ � � 뤳�Ȥǿ � � ǻ � � � Ǥ � � ‫����ޤ‬㤨�С�


{/Symbol \245} � ϡ � Adobe Symbol � ե � � � Ȥ �� � � � � ε � � � Ǥ � � � � � � � � � � � � �
� � ϡ � UTF-8 � Τ 褦�ʥ ‫�ޥ‬eХ � � ȥ �� �� � �ǥ
����� �ϤǤ
� ���� � � ‫���ޤ������ޤ‬
UTF-8 � Ķ � � Ǥ ϡ � � � � � � � � Ǥ a � � � � � � Ǥ ʤ � � � Ф � � ʤ � � � ˾ � � ʸ � � � j �֤ 褦��
� �ˡ � ǡ � � ‫�ޥ‬eХ � � � � � � � � � Ū � � � � Ϥ Ǥ � � � 褦�ˤ� � ٤��Ǥ � � �

) � �ʸ � � ϡ � \\ � � \{ � ʤ ɤ Τ 褦�� \ � � Ȥ ä ƥ � � � � � � � � ‫פ‬Ǥ � � ‫���ޤ‬

� � Ű � � � � � � � � ʸ � � � � � ñ � � � � � � � � � � ʸ � � � � Ȥ ϰ ۤʤäƲᤵ � �� 뤳�Ȥ �
� � դ � � Ƥ � � $ � � � � � � � ʰ 㤤�ϡ � � � Ű � � � � � � � � ʸ � � � � Ǥ ϥ Х å � � � � � å � � �
� � 2 � Ľ Ť� �ɬ � ‫����פ‬뤳�Ȥ Ǥ � � �

gnuplot � � � � � � � � � � ʪ � � � /docs/psdoc � � �֥ ǥ��줿쥹뤿�ȥ�ˤ���ե�����


"ps_guide.ps" �ˡ� � � ĥ � � � 줿 ���˴‫ ����ؤ‬㤬�‫ܤ‬äƤ��‫ ���ޤ‬Ʊ��Τ�Τ�
�ǥ �
^ <a href="http://www.gnuplot.info/demo/enhanced_utf8.html">
`enhanced_utf8.dem`
^ </a>
�ˤ ⤢ � � ‫���ޤ‬
C 2 � Ķ � � ѿ � (Environment)
2 Environment
?environment
`gnuplot` � � ¿ � � � Υ � � � � � Ķ � � ѿ � � ǧ � � � � � ‫ ���ޤ‬ɬ� ‫ܤ‬Τ � Τ Ϥ� � � ‫����ޤ‬
� �
� Ȥ � � � � � � � ˤ ʤ 뤫���Τ � ‫���ޤ‬
GNUTERM � ϡ � � � � 줿줬줬��d � � � Ƥ � � � С � � � ư � � � ν � � Ϸ | � � � � � � �� �Τ˻Ȥ�
� � ‫����ޤ‬С � � � � � � 5.2 � � � � ϡ � G N UTERM � �ʸ � � � � t � � "set term" � � � �
�� � � � Τǡ � � � � � � � terminal � � � ‫��������ץ‬뤳�Ȥ � Ǥ � � ‫�����ޤ‬:
GNUTERM="postscript eps color size 5in, 3in"
� � � � ϡ � ~ / .gnuplot ( � ‫��ޤ‬Ϥ���������) ���ե����� (�ʲ�����:
`startup`) �ˤ � � � � � 䡢��d� �θ � � �<�� Ū � � `set term` � � � ‫��ޥ‬
�ˤ � � � � � � � ѹ � � Ǥ � � ‫���ޤ‬

GNUHELP �˥ ‫إ�ץ‬ե����� (gnuplot.gih) �Υѥ��


����d��Ƥ������Ȥ���
� � � ‫���ޤ‬

VMS � Ǥ ϡ � � � � �� GNUPLOT$HELP � � `gnuplot` � Υ ‫إ�ץ‬饤�֥�� � � p��


� � � � � � d � � ‫`���ޤ‬gnuplot` � Υ ‫�إ�פ‬Ǥ � դ � VMS � � � � � ƥ � Υ ‫إ�ץ‬饤��
� � � � � � � 뤳�Ȥ � � Ǥ � � ‫���ޤ‬

Unix �ˤ � � � � Ƥ ϡ � � � � � � ȥ ǥ � � 줿쥹뤿�ȥ�� .gnuplot �Ȥ����ե����뤬뤬뤬�ʤ�


� � � ˤ ϡ � H OME � � � � d � � 줿�ǥ��줿쥹뤿�ȥ��õ���‫���ޤ‬MS-DOS, Windows,
OS/2 � Ǥ � GNUPLOT � � � � � � � � � ˻ Ȥ � � ‫���ޤ‬Windows � Ǥ ϡ � N T � � � Ѥ � � ѿ �
USERPROFILE � ⻲�Ȥ � � � ‫���ޤ‬VMS � Ǥ � SYS$LOGIN � Ǥ � � � ` h elp startup`
� � � Ǥ ä Ƥ ߤƤ��$�����

Unix �ˤ � � � � Ƥ ϡ � P A GER � � � ‫�إ�ץ‬å � � � � � � ν � � � � Ѥ Υ ե � � 륿�Ȥ � � ƻ Ȥ �


� � ‫���ޤ‬

Unix � Ǥ ϡ � S HELL � � `shell` � � � ‫�ޥ‬ɤ κ‫˻ݤ‬Ȥ � � ‫���ޤ‬MS-DOS, OS/2 � �


� � COMSPEC � � `shell` � � � ‫�ޥ‬ɤ κ‫˻ݤ‬Ȥ� � ‫���ޤ‬

`FIT_SCRIPT` � ϡ � � � Ƥ � Ϥ(fit) � � � � Ǥ � � 줿�Ȥ � � ˼ ¹ Ԥ � � � `gnuplot`


� � � ‫�ޥ‬ɤ���λ ˻ Ȥ � � ‫����ޤ‬ʲ�� � � � : `fit` � � `FIT_LOG` � � � � Ƥ Ϥ � ˤ �
� � � � ե � � � � � Υ ǥ ե � � � Ȥ Υ ե � � � � �� � λ � � � ˻ Ȥ � � ‫���ޤ‬

GNUPLOT_LIB � ϡ � � ǡ � � � � 䥳�‫�ޥ‬ɥե�����θ ���ǥ �� 줿쥹뤿�ȥ���ɲ���d�


� � Τ ˻ Ȥ � � ‫��������ޤ‬ѿ�ϡ ���Ĥ Υ ǥ �� 줿쥹뤿�ȥ�� ���‫���ޤ‬ʣ � � Υ ǥ � � �

� � � ȥ �� � � � � �
�Ȥ ��� �
�� �Ǥ ‫������ޤ‬ǥ��줿쥹뤿�ȥ�ζ��‫�ڤ‬ϥ
� ˰ 㤤�‫����ޤ‬㤨�� Unix � Ǥ � ':' � ǡ � M S- DOS, Windows, OS/2 � Ǥ � ';' � �
� � � � G N UPLOT_LIB � � �� � � ѿ � `loadpath` � � � ɲ ä � � � ‫` ����������ޤ‬save`
� � `save set` � � � ‫�ޥ‬ɤǤ��� ���� ¸ ‫���ޤ‬

� � � ϥ ɥ 饤�Ф � � � ˤ � gd � 饤�֥��� ͳ�� TrueType �ե ���ȤȤ � � ����


Ȥ�� � Ȥ

� ⤤ � � � Ĥ � � � � � ‫��������ޤ‬Υɥ 饤�ФΥե���ȸ��� ѥ��ϡ��Ķ��ѿ�
GDFONTPATH � � ) � � Ǥ � � ‫�������ޤ‬ˡ� � � � � � Υ ɥ 饤�Ф ǤΥ ǥ ե � � � Ȥ Υ �
�� � � Ȥ ϴĶ � � ѿ � GNUPLOT_DEFAULT_GDFONT � � ) � � Ǥ � � ‫���ޤ‬

postscript � � � ϥ ɥ 饤�Фϼ�ʬ �ǻ �ä Ƥ ���ե ���ȸ���ѥ ���Ȥ �� ‫�����ޤ‬


�� � � ϴĶ� � ѿ � GNUPLOT_FONTPATH � � ) � � Ǥ � � ‫����ޤ‬
� ��

GNUPLOT_LIB � �
Ʊ���Ǥ���GNUPLOT_FONTPATH ������ѿ� `fontpath` ���ɲä���‫�������ޤ‬
� � � `save` � � `save set` � � � ‫�ޥ‬ɤǤ��� ���� ¸ ‫���ޤ‬

PostScript � ɥ 饤�Фϡ � � � � � ( �Ȥ ߹��‫�ޤ‬Ƥ��ʤ�)��eե������� õ ���


� � ˴ Ķ � � ѿ � GNUPLOT_PS_DIR � � � � � Ѥ � � ‫������ޤ‬ � ȡ����
� κ�Ȥˤ�ꡢ
gnuplot �ˤ Ϥ � � � � Υ ե � � � � � Υ � � � � � � Ȥ� ԡ
߹��‫�ޤ‬Ƥ��뤫���‫��ޤ‬ϥǥե�
� � Ȥ Υ ѥ � � � � � � � ‫�ޤ‬Ƥ�� ‫��������ޤ‬ѿ�ϡ �p ostscript ���Ϸ | ��ǥ ǥ �
� � � � Ȥ Υ ե � � � � � � � � � � ˥ � � � � � � ‫ �������ޥ‬prologue
�ե � � � � � � � � Ѥ � � �
� Τ � � � � Ѥ Ǥ � � ‫����ޤ‬ʲ�� � � � : `postscript prologue` � �
C 2 � � (Expressions)
2 Expressions
?expressions
� � � � Ū � ˤ � C, FORTRAN, Pascal, BASIC �ˤ � � � � � � � � Ѳ � ǽ � ʿ � � ɽ � � � � � � �
� Ǥ � � ‫� ���ޤ‬黻�Ҥ�� � � �� � C � 8 � λ � �� ˽ � � � � ‫�������ޤ‬ζ� � � ʸ � �
�ȥ � � � ʸ � � �� � 뤬뤬뤵��‫���ޤ‬

ʣ�ǿ ������ {<real>,<imag>} ��ɽ ����� ‫< ���������ޤ‬real> � � <imag>


( � � � � � � � ) � Ͽ � � � � � � Ǥ � � � ɬ � ‫����פ�����ޤ‬㤨�� {3,2} � � 3 + 2i � �
� � � � 路��{0,1} � � 'i' � � � Ȥ � ɽ � � � ‫��������ޤ‬ˤ � � < � Ū � � � 楫�å� � � �
� � ɬ � ‫���פ�����ޤ‬

=octal
=hexadecimal
0 � � � � � ϡ � C � � strtoll() � 饤�֥�� 뤬롼뤤�e � � Ȥ ä Ʋ ᤷ � �‫�������ޤ‬
� � ϡ � " 0" � ǻ Ϥ 8 �����‫� ޤ‬ʿ � ȡ � � 0" �‫ޤ‬x" � � "0X" � ǻ Ϥ ‫�����ޤ‬
16 �ʿ � Ȥ ߤʤ����Ȥ������‫���ޤ‬

�¿ � (� � ư � � � � ) �� �ϡ�C �� atof() � 饤�֥�� 뤬롼뤤�e � � Ȥ ä Ʋ ᤷ � ��


��� �

=division
gnuplot � � " � ¿ � " � � "0 � � " � 黻�� FORTRAN � � C � Τ 褦�˰����Ȥ�������
� � � � դ � � Ƥ � � $ � � � � � " 1 " , "-10" � ʤ ɤ � 0 � � ȸ � � ʤ � � 졢"1.0", "-10.0",
"1e1", 3.5e-1 � ʤ ɤ ϼ � ¿ ȸ ��ʤ � � � 2 ����� ���‫ � ޤ‬ĤΤ � ä Ȥ � � � ‫פ‬ʰ�
� � � ϳ 任�Ǥ � � � 0 � � γ 任���‫�ڤ‬ΤƤ�� 2 = 5/2 :�‫ � ¿ � � �ޤ‬Ϥ � � � � Ǥ Ϥ �
� � 2.5 = 5.0/2.0 :���‫ � � � � � �ޤ‬餬���ߤ������ξ � 硢�����p � � 0 � � ϼ �
� � � " � � ĥ" � � � � 5/2 :�‫ޤ‬e0 = 2.5 � � � � � 0 � � � 5 � � 0 � � dz � � � 硢����
�� ϥ � � � ѥ � � � ˤ � ä � � Ѥ � � ‫"���ޤ‬print -5/2" � Ȥ � � ơ � � � � ʤ � � Υ � � � � �
� ब -2 � � -3 � Τ ɤ d � � � � Ȥ � � 뤫���ǧ���Ƥ��$�����

� � "1/0" � � "� � � � � � (undefined)" � ե 饰��8.� � � � � � � � ˤ � �� ���


� �� � 뤬뤬뤷�‫������ޤ‬뤬뤬뤤�ϡ � � � � 餫������d � � � Ƥ � � � � � NaN � � Ȥ ä Ƥ � Ʊ � �
� � � Ȥˤ ʤ � ‫�����ޤ‬ˤĤ � � Ƥ ϡ � � ʲ � � � � � : `using` � �
=NaN

ʣ�ǿ �ɽ ���μ ¿ ���ʬ �������ʬ �ϡ ��ɤ �ʷ d ���Ϥ ���Ƥ ��˼ ¿ �Ǥ �:


{3,2} � � "3" � � "2" � ϼ ¿ � Ǥ � � ꡢ 0 � � Ǥ Ϥ � � � ‫���ޤ‬

gnuplot � �ʸ � � � � � � Ф � � � ñ � � ʱ 黻�������ʸ� � � � � ѿ � � � � � Ѥ Ǥ � � ‫�����ޤ‬


� � � м � ("A" . "B" eq "AB") � Ͽ � � � ɾ � d � � � ‫����������ޤ‬ʸ� � � � η � � �
� � � Ҥ � ʸ � � � � � � � � 黻�Ҥ � �� � � � Ƥ � � ‫���ޤ‬

� � Ȥ � � Ƥ � �� � ‫�ޤ‬ʸ� � � � ϡ � � � � 줬 ������Ѥ � � 줿���ϡ � � б � � � � � 0 � �


� � ¿ � � � Ѵ � � � � � ‫�����ޤ‬äơ �("3" + "4" == 7) �� (6.78 == "6.78") ��
�ɤd� ��ˤʤ� 0���‫��ޤ‬ϡ����줬 ʸ������黻�ҤǻȤ�줿����ʸ
� � � � � � Ѵ � ‫¿������ޤ‬
���� � � ʣ � ǿ � ϥ % � Ǥ � � � ŵ � � Ū � � � � ϡ � � ե � � � � ��
� � ¾ � � ʸ � � � � � � � 0 � � � Ȥ � � � � Ǥ � � 礦: � 㤨�� ("file" . 4 eq "file4")
�Ͽ � � Ǥ � � �

� � � ֻ������
��� ϰϵ��һ� [beg:end] �ˤ�äơ���ʬʸ������� ��뤳�Ȥ�
� Ǥ � � ‫����ޤ‬㤨�С � "ABCDEF"[3:4] == "CD" � ǡ � "ABCDEF"[4:*] == "DEF" � �
��� � � � "string"[beg:end] � ϡ �ʸ � � � � �� � � Ȥ ߹�� ‫�ߴؿ‬
substr("strings",beg,end) � � Ƥ ֤��ȤȤۤ�Ʊ���Ǥ������‫�ؿ‬ƤӽФ��Ǥ�
beg, end � Ͼ � ά � � � 뤳�ȤϤǤ��‫���ޤ‬
C 3 � ‫( �ؿ‬Functions)
3 Functions
?expressions functions
� ä � � � դ � � ʤ � � � С � ` g n uplot` � ο � ‫�شؿ‬ΰ � � � 0 � � ¿ � ʣ � ǿ � � � �
� � � 뤳�Ȥ � � Ǥ � � ‫����ޤ‬Ѥ���������Ȥ��� ‫ �( �ؿ‬㤨��
� � � � �� � 饸����Ȥ � � ư � � � � ‫���������ޤ‬ϥ��‫` ��ޥ‬set angles` �ˤ � ä �
� ٤��ѹ��Ǥ��‫���ޤ‬

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3"


width="90%">
^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th colspan="3"> � � ‫إ‬饤�֥��‫< �ؿ‬/th></tr>
^<tr> <th> � ‫<�ؿ‬/th> <th> � � � < / th> <th> � � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td>abs(x)</td> <td> Ǥ � � < /td> <td>|<i>x</i>|, <i>x</i>
� � � � � � � � ; Ʊ � � � � < / td></tr>
^<tr> <td>abs(x)</td> <td> ʣ� ǿ � </td> <td>length of <i>x</i>, &radic;
( Re(<i>x</i>)<sup>2</sup> + Im(<i>x</i>)<sup>2</sup> )</td></tr>
^<tr> <td>acos(x)</td> <td> Ǥ � � < /td> <td>cos<sup>-1</sup> <i>x</i>
( � � � � � � � � � � � � � � ) < / td></tr>
^<tr> <td>acosh(x)</td> <td> Ǥ � � < /td> <td> � 饸����Ǥ � cosh<sup>-1</sup>
<i>x</i> ( � � � ж � ; � � ) < /td></tr>
^<tr> <td>airy(x)</td> <td> Ǥ � � < /td> <td> � � � � � � (Airy) � ‫�ؿ‬
Ai(<i>x</i>)</td></tr>
^<tr> <td>arg(x)</td> <td> ʣ� ǿ � </td> <td><i>x</i> ��� г � </td></tr>
^<tr> <td>asin(x)</td> <td> Ǥ � � < /td> <td>sin<sup>-1</sup> <i>x</i>
( � � � � � � � � � � � � ) < / td></tr>
^<tr> <td>asinh(x)</td> <td> Ǥ � � < /td> <td> � 饸����Ǥ � sinh<sup>-1</sup>
<i>x</i> ( � � � ж � 5 � � ) < /td></tr>
^<tr> <td>atan(x)</td> <td> Ǥ � � < /td> <td>tan<sup>-1</sup> <i>x</i>
( � � � � � � � � � �� � � � � ) < / td></tr>
^<tr> <td>atan2(y,x)</td> <td>0 � � ‫��ޤ‬ϼ¿�</td> <td>tan<sup>-
1</sup>(<i>y/x</i>) ( � � � � � � � � � � � � � � ) < / td></tr>
^<tr> <td>atanh(x)</td> <td> Ǥ � � < /td> <td> � 饸����Ǥ � tanh<sup>-1</sup>
<i>x</i> ( � � � ж � 5 � � ) < /td></tr>
^<tr> <td>EllipticK(k)</td> <td>(-1:1) � � μ ¿ � k</td> <td><i>K(k)</i> � �
1 � ‫ﴰ‬t �ʱ � � � ʬ </td></tr>
^<tr> <td>EllipticE(k)</td> <td>[-1:1] � � μ ¿ � k</td> <td><i>E(k)</i> � �
2 � ‫ﴰ‬t �ʱ � � � ʬ </td></tr>
^<tr> <td>EllipticPi(n,k)</td> <td> � ¿ � n&lt;1, (-1:1) � � μ ¿ � k</td>
<td> &Pi;(<i>n,k</i>) � � 3 � ‫ﴰ‬t �ʱ � � � ʬ </td></tr>
^<tr> <td>besj0(x)</td> <td>0 � � ‫��ޤ‬ϼ¿�</td> <td>�饸����Ǥ �
<i>J</i><sub>0</sub> � ٥å� � � ‫( �ؿ‬٥��� 0å � � � ‫<)�ؿ‬/td></tr>
^<tr> <td>besj1(x)</td> <td>0 � � ‫��ޤ‬ϼ¿�</td> <td>�饸����Ǥ �
<i>J</i><sub>1</sub> � ٥å� � � ‫( �ؿ‬٥��� 1å � � � ‫<)�ؿ‬/td></tr>
^<tr> <td>besy0(x)</td> <td>0 � � ‫��ޤ‬ϼ¿�</td> <td>�饸����Ǥ �
<i>Y</i><sub>0</sub> � ٥å� � � ‫( �ؿ‬0 � � � Υ � � ‫<)�ޥ�ؿ‬/td></tr>
^<tr> <td>besy1(x)</td> <td>0 � � ‫��ޤ‬ϼ¿�</td> <td>�饸����Ǥ �
<i>Y</i><sub>1</sub> � ٥å� � � ‫( �ؿ‬1 � � � Υ � � ‫<)�ޥ�ؿ‬/td></tr>
^<tr> <td>ceil(x)</td> <td> Ǥ � � < /td> <td>&lceil;<i>x</i>&rceil;, <i>x</i>
( � μ � � � ) �ʾ � κǾ � � � 0 � � < / td></tr>
^<tr> <td>cos(x)</td> <td>radians</td> <td>cos <i>x</i>, <i>x</i>
� Υ � � � � � � � < / t d></tr>
^<tr> <td>cosh(x)</td> <td> Ǥ � � < /td> <td>cosh <i>x</i>, � 饸����Ǥ �
<i>x</i> � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � < / t d></tr>
^<tr> <td>erf(x)</td> <td> Ǥ � � < /td> <td>erf(Re(<i>x</i>)), <i>x</i>
� μ � � � θ � � ‫<�ؿ‬/td></tr>
^<tr> <td>erfc(x)</td> <td> Ǥ � � < /td> <td>erfc(Re(<i>x</i>)), 1.0 -
(<i>x</i> � μ � � � θ � � ‫<)�ؿ‬/td></tr>
^<tr> <td>exp(x)</td> <td> Ǥ � � < /td> <td><i>e<sup>x</sup></i>, <i>x</i>
� λ ‫<�ؿ�ؿ‬/td></tr>
^<tr> <td>expint(n,x)</td> <td> Ǥ � � < /td>
<td><i>E<sub>n</sub></i>(<i>x</i>), <i>x</i> � λ ‫���ؿ‬ʬ</td></tr>
^<tr> <td>floor(x)</td> <td> Ǥ � � < /td> <td>&lfloor;<i>x</i>&rfloor;,
<i>x</i> ( � μ � � � ) �ʲ � � κ � � � � 0 � � < / t d></tr>
^<tr> <td>gamma(x)</td> <td> Ǥ � � < /td> <td>&Gamma;(Re(<i>x</i>)), <i>x</i>
�μ � � � Υ � � � ‫ؿ‬
��</td></tr>
^<tr> <td>ibeta(p,q,x)</td> <td> Ǥ � � < /td> <td>ibeta(Re(<i>p,q,x</i>)),
<i>p</i>,<i>q</i>,<i>x</i> � μ � � � � � Դ � t � ‫����ؿ‬١�</td></tr>
^<tr> <td>inverf(x)</td> <td> Ǥ � � < /td> <td><i>x</i> � μ � � � ε ո � �
‫<�ؿ‬/td></tr>
^<tr> <td>igamma(a,x)</td> <td> Ǥ � � < /td> <td>igamma(Re(<i>a,x</i>)),
<a>a</a>,<i>x</i> � μ � � � � � Դ � t � � � � ‫ؿ‬
��</td></tr>
^<tr> <td>imag(x)</td> <td> ʣ� ǿ � </td> <td>Im(<i>x</i>), <i>x</i>
� ε � � � � ʬ ( � ¿ � )</td></tr>
^<tr> <td>invnorm(x)</td> <td> Ǥ � � < /td> <td><i>x</i> � μ � � � ε � 5 � � ʬ � ۴
‫<�ؿ‬/td></tr>
^<tr> <td>int(x)</td> <td> � ¿ � </td> <td><i>x</i> � � 0 � � � � ʬ (0
� ˸ � � � � ä ƴ ‫<)�ݤ‬/td></tr>
^<tr> <td>lambertw(x)</td> <td> � ¿ � </td> <td>Lambert <i>W</i> �
‫<�ؿ‬/td></tr>
^<tr> <td>lgamma(x)</td> <td> Ǥ � � < /td> <td>lgamma(Re(<i>x</i>)), <i>x</i>
� μ � � � Υ � � � � � п � ‫<�ؿ‬/td></tr>
^<tr> <td>log(x)</td> <td> Ǥ � � < /td> <td>ln <i>x</i>, <i>x</i> � μ � s � п �
( � � <i>e</i>)</td></tr>
^<tr> <td>log10(x)</td> <td> Ǥ � � < /td> <td>log<sub>10</sub> <i>x</i>,
<i>x</i> � � � п � ( � � 10)</td></tr>
^<tr> <td>norm(x)</td> <td> Ǥ � � < /td> <td>norm(<i>x</i>), <i>x</i>
� μ � � � � 5 � � ʬ � ۴ ‫<�ؿ‬/td></tr>
^<tr> <td>rand(x)</td> <td>0 � � < /td> <td> � � � [0:1]
� � ε � � � � � � < / t d></tr>
^<tr> <td>real(x)</td> <td> Ǥ � � < /td> <td>Re(<i>x</i>), <i>x</i>
� μ¿ � � � ʬ </td></tr>
^<tr> <td>sgn(x)</td> <td> Ǥ � � < /td> <td><i>x</i> &gt; 0 � ʤ � 1, <i>x</i>
&lt; 0 � ʤ � -1, <i>x</i> = 0 � ʤ � 0. <i>x</i> � ε � � � �� � � < / t d></tr>
^<tr> <td>sin(x)</td> <td> Ǥ � � < /td> <td>sin <i>x</i>, <i>x</i>
� Υ � � � � � < / t d></tr>
^<tr> <td>sinh(x)</td> <td> Ǥ � � < /td> <td>sinh <i>x</i>, � 饸����Ǥ �
<i>x</i> � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � < / t d></tr>
^<tr> <td>sqrt(x)</td> <td> Ǥ � � < /td> <td>&radic;<i>x</i>, <i>x</i>
� �ʿ � � < /td></tr>
^<tr> <td>tan(x)</td> <td> Ǥ � � < /td> <td>tan <i>x</i>, <i>x</i>
� Υ � � � � � � � < / td></tr>
^<tr> <td>tanh(x)</td> <td> Ǥ � � < /td> <td>tanh <i>x</i>, � 饸����Ǥ �
<i>x</i> � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � < / t d></tr>
^<tr> <td>voigt(x,y)</td> <td> � ¿ � </td> <td> � � � � � � � ‫�ؿ‬ȥ����Ĵ ‫�ؿ‬ξ�
ߤ���</td></tr>
^</tbody>
^</table>

^<p>&nbsp;</p>

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3"


width="90%">
^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th colspan="3">libcerf ( � � � Ѳ � ǽ � ʾ � � Τ � ) �ˤ � � � ü � ‫<�ؿ‬/th></tr>
^<tr> <th> � ‫<�ؿ‬/th> <th> � � � < / th> <th> � � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td>cerf(z)</td> <td> ʣ� ǿ � </td> <td> ʣ�Ǹ�� ‫<�ؿ‬/td></tr>
^<tr> <td>cdawson(z)</td> <td> ʣ� ǿ � </td> <td> ʣ�� Dawson ��ʬ </td></tr>
^<tr> <td>faddeeva(z)</td> <td> ʣ� ǿ � </td> <td> �ƥ���� � � 벽 ʣ�Ǹ�� ‫�ؿ‬
<i>w</i>(<i>z</i>) = exp(-<i>z</i><sup>2</sup>) � � erfc(-i<i>z</i>)</td></tr>
^<tr> <td>erfi(x)</td> <td> � ¿ � </td> <td> � � � � ‫ �ؿ‬erfi(<i>x</i>) = -i
� � erf(i<i>x</i>)</td></tr>
^<tr> <td>VP(x,sigma,gamma)</td> <td> � ¿ � </td> <td>Voigt �
‫�ץ‬ե � � � � � < / t d></tr>

^</tbody>
^</table>

^<p>&nbsp;</p>

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3"


width="90%">
^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th colspan="3"> ʸ� � � � ‫< �ؿ‬/th></tr>
^<tr> <th> � ‫<�ؿ‬/th> <th> � � � < / th> <th> � � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td>gprintf("format",x,...)</td> <td> Ǥ � � < /td> <td>gnuplot
ν Ŭ ϴ � � νѤ � � � � �� � ʸ � � � � < / t d></tr>
� ν �� �
^<tr> <td>sprintf("format",x,...)</td> <td> ʣ��� </td> <td>C �8 ��
sprintf � � �֤�ʸ� � � � < / td></tr>
^<tr> <td>strlen("string")</td> <td>ʸ� � � � < / td>
<td> � Х � � � ñ �� Ǥ � ʸ � � � � � Ĺ � � (0 � � )</td></tr>
^<tr> <td>strstrt("string","key")</td> <td>ʸ� � � � < / td> <td> � � ʬʸ � � � �
"key" � � � � � � � � � Ƭ � � � � < / t d></tr>
^<tr> <td>substr("string",beg,end)</td> <td> ʣ��� </td> <td>ʸ����
"string"[beg:end]</td></tr>
^<tr> <td>strftime("timeformat",t)</td> <td> Ǥ � � < /td> <td>gnuplot
�ˤ � � � � � � Ϸ �� � ʸ � � � � < / t d></tr>
^<tr> <td>strptime("timeformat",s)</td> <td>ʸ� � � � < / td> <td>ʸ� � � � s
���Ѵ � � � � � 1970 ǯ� � � � � � ÿ � < / td></tr>
^<tr> <td>system("command")</td> <td>ʸ� � � � < / td> <td> � � � � � 뤬쥹륳�
‫�ޥ‬ɤ�� ν Ϥ/���ʸ��t d� >�< / <t r >
^<tr> <td>word("string",n)</td> <td>ʸ� � � � , 0 � � </td> <td>ʸ� � � �
"string" � � n � � � ‫�ܤ‬ñ � � </td></tr>
^<tr> <td>words("string")</td> <td>ʸ� � � � < / td> <td>ʸ� � � � "string"
� � � ñ � � � < / td></tr>
^</tbody>
^</table>

^<p>&nbsp;</p>
^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3"
width="90%">
^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th colspan="3"> ¾ � � gnuplot � δ ‫< �ؿ‬/th></tr>
^<tr> <th> � ‫<�ؿ‬/th> <th> � � � < / th> <th> � � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td>column(x)</td> <td>0 � �ʸ � � � � < / td> <td> � � ϥ ǡ � � � � � �
<i>x</i> � � � ‫<�����ܤ‬/td></tr>
^<tr> <td>columnhead(x)</td> <td>0 � � < /td> <td> � ǡ � � � � ե � � � � � κ ǽ � �
<i>x</i> � � � � � � � ʸ � � � � < / t d></tr>
^<tr> <td>exists("X")</td> <td>ʸ� � � � < / td> <td> � ѿ �� X
��� �d � � �Ƥ � � � � 1, � � � � � Ǥ ʤ � � � � 0</td></tr>
^<tr> <td>hsv2rgb(h,s,v)</td> <td>[0:1] � � μ ¿ � h,s,v</td> <td> HSV
��� � 24 �ӥ å Ȥ � RGB � � � � � Ѵ � < / td></tr>
^<tr> <td>stringcolumn(x)</td> <td>0 � � < /td> <td> ʸ� � � � Ȥ � � Ƥ �
<i>x</i> � � � ‫<�����ܤ‬/td></tr>
^<tr> <td>timecolumn(N,format)</td> <td>0 � � , ʸ� � � � < / td> <td>
�ǡ � � � � � � � � � <i>N</i> � � � ‫����ܤ‬ǡ���</td></tr>
^<tr> <td>tm_hour(x)</td> <td>0 � � < /td> <td> � � < /td></tr>
^<tr> <td>tm_mday(x)</td> <td>0 � � < /td> <td> � � < /td></tr>
^<tr> <td>tm_min(x)</td> <td>0 � � < /td> <td>ʬ</td></tr>
^<tr> <td>tm_mon(x)</td> <td>0 � � < /td> <td> � � < /td></tr>
^<tr> <td>tm_sec(x)</td> <td>0 � � < /td> <td> � � < /td></tr>
^<tr> <td>tm_wday(x)</td> <td>0 � � < /td> <td> � � � ν � � β � � � � � < / t d></tr>
^<tr> <td>tm_yday(x)</td> <td>0 � � < /td> <td> � � � � ǯ � β � � � � � < / t d></tr>
^<tr> <td>tm_year(x)</td> <td>0 � � < /td> <td>> � � < /td></tr>
^<tr> <td>time(x)</td> <td> Ǥ � � < /td> <td> � � � ߤΥ � � � � ƥ � � � < / t d></tr>
^<tr> <td>valid(x)</td> <td>0 � � < /td> <td> � ǡ � � � � � � column(<i>x</i>)
� � 5 � � - </td></tr>
^<tr> <td>value("name")</td> <td>ʸ� � � � < / td> <td> p� name � � � ѿ � θ � �
ߤ���</td></tr>
^</tbody>
^</table>

C TeX � � troff � � � Ϥ ˴ ‫��ؤ‬Ƥ�ɽ�ϰʲ��Υ ‫�������ޤ‬ ֤ ���������‫���إ�ץ‬


C HTML � ‫��إ�פ˴ؤ‬Ƥ�ɽ�ȥ���������ξ��ɬ�‫פ‬ʤΤǡ��ʲ��Υ ‫��ޥ‬å �
C � ‫ �����ޡ‬doc2html � ‫ؤ‬Τ � � Υ � � � � ʥ � Ȥ � � ƻ � � Ѥ � � ‫���ޤ‬
^<!-- INCLUDE_NEXT_TABLE -->
@start table
#\begin{longtable}{|ccl|} \hline
#\multicolumn{3}{|c|}{ � � ‫إ‬饤�֥��‫\ \\ }�ؿ‬hline \hline
# � ‫� � � � � & � � � & �ؿ‬ \\ \hline
#\endhead \hline \endfoot
%c c l .
% � ‫� � � � � @ � � � @�ؿ‬
%_
4 abs
?expressions functions abs
?abs
#abs(x) & Ǥ � � & $x$ � � � � � � � � , $|x|$; Ʊ � � � � \ \
#abs(x) & ʣ� ǿ � & $x$ �� Ĺ �� , $\sqrt{{\mbox{real}(x)^{2} +
#\mbox{imag}(x)^{2}}}$ \\
%abs(x)@ Ǥ � � @ $x$ � � � � � � � � , $|x|$; Ʊ � � � �
%abs(x)@ ʣ� ǿ � @$x$ �� Ĺ �� , $sqrt{roman real (x) sup 2 + roman imag (x) sup 2}$
� ‫` �ؿ‬abs(x)` � � � � � � � � �� � �֤��‫��֤����ޤ‬
� η� � ϰ � � � Ʊ � � � Ǥ � � �

=norm
=modulus
ʣ� ǿ � ΰ ��� � Ф ��Ƥ� , abs(x) �� ʣ � �ʿ �� ˤ�� � � � x �� Ĺ ����� � d �� � �
� � � ‫ � � � [ �ޤ‬ʤ � � sqrt(real(x)**2 + imag(x)**2) ] � � � � � � � x � ΥΥ � �
(norm) � � � ‫ ���ޤ‬x � � ʣ � � � � � � � � (modulus) � Ȥ � Ƥ Ф � ‫���ޤ‬
4 acos
?expressions functions acos
?acos
#acos(x) & Ǥ � � & $\cos^{-1} x$ ( � � � � � � � � � � � � � � ) \\
%acos(x)@ Ǥ � � @ $cos sup -1 x$ ( � � � � � � � � � � � � � � )
� ‫` �ؿ‬acos(x)` � ϰ � � Υ � � � � � � � � � � � � � ( � � ; � � ) � � �֤��‫`���ޤ‬acos`
��� �
� � �� � � 饸����ñ�� � � ٤����‫ޤ‬Ǥ � � 뤫�� `set angles` � � j � �� �‫���ޤ‬
4 acosh
?expressions functions acosh
?acosh
#acosh(x) & Ǥ � � & � 饸����Ǥ � $\cosh^{-1} x$ ( � � � ж � ; � � ) \ \
%acosh(x)@ Ǥ � � @ $ � 饸����Ǥ � cosh sup -1 x$ ( � � � ж � ; � � )
� ‫` �ؿ‬acosh(x)` � ϵե ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � ( � � � ж � ; � � ) � � �� � 饸����
� � � ֤��‫���ޤ‬
4 airy
?expressions functions airy
?airy
#airy(x) & Ǥ � � & � � � � � � � ‫ �ؿ‬Ai(x) \\
%airy(x)@ Ǥ � � @ � � � � � � � ‫ �ؿ‬Ai(x)
� ‫` �ؿ‬airy(x)` � ϡ � � � � � � � (Airy) � ‫ �ؿ‬Ai(x) � � �� � �֤��‫�ޤ����ؿ‬
Ai(x) � ϡ � � � ʬ � � � � y'' - x y = 0 � Ρ � � ¿ � t � Τ �� � � � ʲ � Ǥ � � � � � �
ʣ� ǿ � ξ � 硢���ε � � � � ʬ � �� � 뤬뤬뤵��‫���ޤ‬
4 arg
?expressions functions arg
?arg
#arg(x) & ʣ� ǿ � & $x$ ��� г � \\
%arg(x)@ ʣ� ǿ � @$x$ ��� г �
� ‫` �ؿ‬arg(x)` � � ʣ � ǿ � � � г Ѥ � ` s et angles` � � � � � � ˤ � � � � � � ä ƥ 饸��
�� ‫֤��ޤ‬
� ��٤����‫���ޤ‬
4 asin
?expressions functions asin
?asin
#asin(x) & Ǥ � � & $\sin^{-1} x$ ( � � � � � � � � � � � � ) \\
%asin(x)@ Ǥ � � @ $sin sup -1 x$ ( � � � � � � � � � � � � )
� ‫` �ؿ‬asin(x)` � ϰ � � Υ � � � � � � � � � � � ( � � 5 � � ) � � �֤��‫`���ޤ‬asin` � � �֤�
�� � `set angles` � � � � � � ˤ � ä ƥ 饸����ñ �� � � ٤����‫ޤ‬ˤʤ � ‫���ޤ‬
4 asinh
?expressions functions asinh
?asinh
#asinh(x) & Ǥ � � & � 饸����Ǥ � $\sinh^{-1} x$ ( � � � ж � 5 � � ) \ \
%asinh(x)@ Ǥ � � @ $ � 饸����Ǥ � sinh sup -1 x$ ( � � � ж � 5 � � )
� ‫` �ؿ‬asinh(x)` � ϵե ϥ � � ѥ ‫�ܥ‬å � � � � � � � ( � � � ж � 5 � � ) � � �� � 饸�����
� ֤��‫���ޤ‬
4 atan
?expressions functions atan
?atan
#atan(x) & Ǥ � � & $\tan^{-1} x$ ( � � � � � � � � � � � � � � ) \\
%atan(x)@ Ǥ � � @ $tan sup -1 x$ ( � � � � � � � � � � � � � � )
� ‫� �ؿ‬ `atan(x)` � ϰ � � Υ � � � � � � � �
�� �� �(� � � 5 � � ) � � �� � �֤��‫���ޤ‬
`atan` � � �֤�� � � `set angles` � � � � � � ˤ � ä ƥ 饸����ñ �� � � ٤����‫�ޤ‬
� ʤ � ����
4 atan2
?expressions functions atan2
?atan2
#atan2(y,x) & 0 � � ���ϼ¿� & $\tan^{-1} (y/x)$ (��������� ��� ��
��� ��
�)\\
%atan2(y,x)@0 � � ���ϼ¿�@$tan sup -1 (y/x)$ (��������� ��� ��
��� ���)
� ‫� �ؿ‬ `atan2(y,x)` � ϰ � � μ ¿ � � � ʬ � � � � Υ � � � � � � � � � �� �(� � �5 � �) ��
֤ ������`atan2` � � `set angles` � � � � � � ˤ � ä ƥ 饸����ñ �� � � ٤�
�� � �
� ʤ 롢 Ŭ� ‫ڤ‬ʻ�ʬ�ߤˤ� � � � � � �� � �֤������
4 atanh
?expressions functions atanh
?atanh
#atanh(x) & Ǥ � � & � 饸����Ǥ � $\tanh^{-1} x$ ( � � � ж � 5 � � ) \ \
%atanh(x)@ Ǥ � � @ � 饸����Ǥ � $tanh sup -1 x$ ( � � � ж � 5 � � )
� ‫` �ؿ‬atanh(x)` � ϵե ϥ � � ѥ ‫�ܥ‬å � � � � �� �� �(� � � � ж � 5 � � ) � � �� � 饸
� � � � � � ֤������
?expressions functions EllipticK
?EllipticK
4 EllipticK
#EllipticK(k) & � ¿ � k $\in$ (-1:1) & $K(k)$ � � 1 � ‫ﴰ‬t �ʱ � � � ʬ \\
%EllipticK(k)@(-1:1) � � μ ¿ � k@$K ( k )$ � � 1 � ‫ﴰ‬t �ʱ � � � ʬ
� ‫` �ؿ‬EllipticK(k)` � ϡ � � � 1 � ‫ﴰ‬t �ʱ � � � ʬ � � �� � �֤��٤ ܺ ����‫ޤ‬ϡ � � �
� � � � � � : `elliptic integrals` � �
?expressions functions EllipticE
?EllipticE
4 EllipticE
#EllipticE(k) & � ¿ � k $\in$ [-1:1] & $E(k)$ � � 2 � ‫ﴰ‬t �ʱ � � � ʬ \\
%EllipticE(k)@[-1:1] � � μ ¿ � k@ $E ( k )$ � � 2 � ‫ﴰ‬t �ʱ � � � ʬ
� ‫` �ؿ‬EllipticE(k)` � ϡ � � � 2 � ‫ﴰ‬t �ʱ � � � ʬ � � �� � �֤��٤ܺ����‫ޤ‬ϡ � � �
� � � � � � : `elliptic integrals` � �
?expressions functions EllipticPi
?EllipticPi
4 EllipticPi
#EllipticPi(n,k) & � ¿ � n$<$1, � ¿ � k $\in$ (-1:1) & $\Pi(n,k)$ � � 3 �
‫ﴰ‬t �ʱ � � � ʬ \\
%EllipticPi(n,k)@ � ¿ � n<1, (-1:1) � � μ ¿ � k@ $Pi ( n,k )$ � � 3 � ‫ﴰ‬t �ʱ � � � ʬ
� ‫` �ؿ‬EllipticPi(n,k)` � ϡ � � � 3 � ‫ﴰ‬t �ʱ � � � ʬ � � �� � �֤��٤ܺ����‫ޤ‬ϡ �
�ʲ � � � � � : `elliptic integrals` � �
4 besj0
?expressions functions besj0
?besj0
#besj0(x) & 0 � � ���ϼ¿� & $J_{0}$ �٥å� � � ‫( �ؿ‬٥��� 0å � � � ‫\\)�ؿ‬
%besj0(x)@0 � � ���ϼ¿�@$J sub 0$ �٥å� � � ‫( �ؿ‬٥��� 0å � � � ‫)�ؿ‬
� ‫` �ؿ‬besj0(x)` � ϰ � � � J0 � ٥å� � � ‫ �����ؿ‬1 ������ 0) �‫ �ؿ‬J0 � � 0
� � � ٥å� � � ‫���֤��ޤ‬ � �� (�‫`���ؿ‬besj0` �ˤϰ � � ϥ 饸�����Ϳ��� ����
4 besj1
?expressions functions besj1
?besj1
#besj1(x) & 0 � � ���ϼ¿� & $J_{1}$ �٥å� � � ‫( �ؿ‬٥��� 1å � � � ‫\\)�ؿ‬
%besj1(x)@0 � � ���ϼ¿�@$J sub 1$ �٥å� � � ‫( �ؿ‬٥��� 1å � � � ‫)�ؿ‬
� ‫` �ؿ‬besj1(x)` � ϰ � � � J1 � ٥å� � � ‫ �����ؿ‬1 ������ 1) �‫ �ؿ‬J1 � � 1
� � � ٥å� � � ‫���֤��ޤ‬ � �� (�‫`���ؿ‬besj1` �ˤϰ � � ϥ 饸�����Ϳ�������
4 besy0
?expressions functions besy0
?besy0
#besy0(x) & 0 � � ���ϼ¿� & $Y_{0}$ �٥å� � � ‫( �ؿ‬0 � � � Υ � � ‫\\)�ޥ�ؿ‬
%besy0(x)@0 � � ���ϼ¿�@$Y sub 0$ �٥å� � � ‫( �ؿ‬0 � � � Υ � � ‫)�ޥ�ؿ‬
� ‫` �ؿ‬besy0(x)` � ϰ � � � Y0 � ٥å� � � ‫ �����ؿ‬2 ������ 0) �‫ �ؿ‬Y0 � � 0
� � � Υ � � ‫���֤��ޤ‬ � �� (�‫`���ޥ�ؿ‬besy0` �ˤϰ � � ϥ 饸�����Ϳ�������
4 besy1
?expressions functions besy1
?besy1
#besy1(x) & 0 � � ���ϼ¿� & $Y_{1}$ �٥å� � � ‫( �ؿ‬1 � � � Υ � � ‫\\)�ޥ�ؿ‬
%besy1(x)@0 � � ���ϼ¿�@$Y sub 1$ �٥å� � � ‫( �ؿ‬1 � � � Υ � � ‫)�ޥ�ؿ‬
� ‫` �ؿ‬besy1(x)` � ϰ � � � Y1 � ٥å� � � ‫ �����ؿ‬2 ������ 1) �‫ �ؿ‬Y1 � � 1
� � � Υ � � ‫���֤��ޤ‬ � �� (�‫`���ޥ�ؿ‬besy1` �ˤϰ � � ϥ 饸�����Ϳ�������
4 ceil
?expressions functions ceil
?ceil
#ceil(x) & Ǥ � � & $\lceil x \rceil$, $x$ ( � μ � � � ) � ʾ � κǾ � � � 0 � � \ \
%ceil(x)@ Ǥ � � @ $left ceiling x right ceiling$, $x$ ( � μ � � � ) � ʾ � κǾ � � � 0 � �
� ‫` �ؿ‬ceil(x)` � ϰ � � ʾ � κ Ǿ � � � 0 � � � �֤������ʣ� ǿ ��� � � Ф ��Ƥ�
`ceil` � Ϥ � � ΰ � � μ � � � ʾ � κ Ǿ � � � 0 � � � �֤������
4 cos
?expressions functions cos
?cos
#cos(x) & Ǥ � � & $x$ � Υ � � � � � � � $\cos x$\\
%cos(x)@ � 饸����@$x$ � Υ � � � � � � � $cos~x$
� ‫` �ؿ‬cos(x)` � ϰ � � Υ � � � � � � � (; � � ) � � �� � �֤������`cos` � �
`set angles` � � j � � ˤ � � � � � � ä ơ � � 饸����٤����‫ޤ‬ΰ � � � � � դ � � ����
4 cosh
?expressions functions cosh
?cosh
#cosh(x) & Ǥ � � & $\cosh x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � \\
%cosh(x)@ Ǥ � � @ $cosh~x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � �
� ‫` �ؿ‬cosh(x)` � ϰ � � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � � �� � �֤������`cosh` � �
� � � ϥ 饸�����Ϳ�������
4 erf
?expressions functions erf
?erf
#erf(x) & Ǥ � � & $\mbox{erf}(\mbox{real}(x))$, $x$ � � � � � � θ � � ‫\\�ؿ‬
%erf(x)@ Ǥ � � @ $erf ( roman real (x))$, $x$ � μ � � � θ � � ‫�ؿ‬
� ‫` �ؿ‬erf(x)` � ϰ � � μ � � � θ � � ‫���֤��ޤ‬ � ��‫������ؿ‬ʣ� ǿ � ξ ��
� ϵ � � � �� � 뤬뤬뤵�������ʲ� � � � � : `erfc`, `inverf`, `norm` � �
4 erfc
?expressions functions erfc
?erfc
#erfc(x) & Ǥ � � & $\mbox{erfc}(\mbox{real}(x))$, 1.0 - ($x$ � μ � � � θ � � ‫\\ )�ؿ‬
%erfc(x)@ Ǥ � � @ $erfc ( roman real (x))$, 1.0 - ($x$ � μ � � � θ � � ‫)�ؿ‬
� ‫` �ؿ‬erfc(x)` � � 1.0 � � � 顢���μ � � � θ � � ‫���ؿ‬ � ��� �Τ � �֤�
� �������ʣ� ǿ � ξ �� ϵ � � � �� � 뤬뤬뤵�������ʲ � � � � � : `erf`,
`inverf`, `norm` � �
4 exp
?expressions functions exp
?exp
#exp(x) & Ǥ � � & $e^{x}$, $x$ � λ ‫\\�ؿ�ؿ‬
%exp(x)@ Ǥ � � @ $e sup x$, $x$ � λ ‫�ؿ�ؿ‬
� ‫` �ؿ‬exp(x)` � � � λ ‫`( ����ؿ�ؿ‬e` � ΰ � � � ) � � �֤�������Ķ� �ˤ � �
� Ƥ � ( � ä � sun) � 礭�� x � � �� � � Ф � � � exp(-x) � �� � � � �� � �֤���礬��
� � �������Τ 褦�ʾ�硢 safe(x) = x<-100 ? 0 : exp(x) � Τ 褦�ʥ 桼����
� t ‫����ؿ‬Ω � Ĥ Ǥ � � 礦��
4 expint
?expressions functions expint
?expint
#expint(n,x) & 0 � � $n\ge0$, � ¿ � $x\ge0$ & $E_n(x)=\int_1^\infty t^{-n} e^{-
xt}\,dt$, $x$ � λ ‫���ؿ‬ʬ \\
%expint(n,x)@any@$E sub n (x)$, $x$ � λ ‫���ؿ‬ʬ
� ‫` �ؿ‬expint(n,x)` � ϡ � � � � ΰ � � μ ¿ � � � ʬ � λ ‫���ؿ‬ʬ� � � � � ʤ � � t � δ ‫�ؿ‬
t^(-n) e^(-tx) � � 1 � � � � � �Ǥ � � � ʬ� �� ��֤������n � � 0 �ʾ � � 0 � �
x � � 0 �ʾ � μ¿ � ǡ � x >0 � � n>1 � Τ � � � � 줿줬뤳�Ǥ ʤ � � � Ф ʤ � ����
4 floor
?expressions functions floor
?floor
#floor(x) & Ǥ � � & $\lfloor x \rfloor$, $x$ ( � μ � � � ) �ʲ � � κ � � � � 0 � � \ \
%floor(x)@ Ǥ � � @ $left floor x right floor$, $x$ ( � μ � � � ) �ʲ � � κ � � � � 0 � �
� ‫` �ؿ‬floor(x)` � Ϥ � � ΰ � � ʲ � � κ � � � � 0 � � � �֤������ʣ� ǿ ���� � Ф �
� Ƥ � `floor` � Ϥ � � ΰ � � μ � � � ʲ � � κ � � � � 0 � � � �֤������
4 gamma
?expressions functions gamma
?gamma
#gamma(x) & Ǥ � � & $\mbox{gamma}(\mbox{real}(x))$, $x$ � μ � � � Υ � � � ‫ؿ‬
��\\
%gamma(x)@ Ǥ � � @ $GAMMA ( roman real (x))$, $x$ � μ � � � Υ � � � ‫ؿ‬
��
� ‫` �ؿ‬gamma(x)` � ϰ � � μ � � � Υ � � � 0 ���‫���֤��ޤ‬ � ��‫ � ��ؿ‬n � � � Ф �
� Ƥ � gamma(n+1) = n! � Ǥ � � � � � � ʣ � ǿ � ξ � 硢�����ʬ� �� � 뤬뤬뤵������
4 ibeta
?expressions functions ibeta
?ibeta
#ibeta(p,q,x) & Ǥ � � & $\mbox{ibeta}(\mbox{real}(p,q,x))$, $p$,$q$,$x$
� μ � � � � � Դ � t � ‫����ؿ‬١� \\
%ibeta(p,q,x)@ Ǥ � � @ $ibeta ( roman real (p,q,x))$, $p$,$q$,$x$ � μ � � � � � Դ � t � �١
‫����ؿ‬
� ‫` �ؿ‬ibeta(p,q,x)` � ϰ � � μ � � � � � Դ � t � ‫���֤��ޤ‬ � ��‫����ؿ‬١���p, q
� � 5 � � x � � [0:1] � � � �� Ǥ � � � � � � ʣ � ǿ � ξ � � ϵ � � � �� � 뤬뤬뤵������
� � � δ ‫��ؿ‬Ϣʬ��ˡ (Abramowitz and Stegun, 1964) �Ƕ��Ƥ��ơ�����
��� � x < (p-1)/(p+q-2) � � � ϰ Ϥ Ǥ � � � 5 � Τ Ǥ Ϥ � � � ����
4 inverf
?expressions functions inverf
?inverf
#inverf(x) & Ǥ � � & $x$ � μ � � � ε ո � � ‫\\ �ؿ‬
%inverf(x)@ Ǥ � � @ $x$ � μ � � � ε ո � � ‫�ؿ‬
� ‫` �ؿ‬inverf(x)` � ϰ � � μ � � � ε ո � � ‫���֤��ޤ‬ � ��‫����ؿ‬ʲ� � � � � :
`erf`, `invnorm` � �
4 igamma
?expressions functions igamma
?igamma
#igamma(a,x) & Ǥ � � & $\mbox{igamma}(\mbox{real}(a,x))$, $a$,$x$
�μ � � � � � Դ � t � � � � ‫ؿ‬
�� \\
%igamma(a,x)@ Ǥ � � @ $igamma ( roman real (a,x))$, $a$,$x$ � μ � � � � � Դ � t � � � � ‫ؿ‬
��
� ‫` �ؿ‬igamma(a,x)` � ϰ � � μ � � � Ρ � 5 � � � � � � � 줿�Դ�t���� ‫ؿ‬
���� � �
� ֤�����������ǡ�a > 0, x >= 0 �Ǥ���ɸ���ʵ Ū �ˡ�Ǥ�P(a,x) (�㤨��
Abramowitz and Stegun (6.5.1)) � ǡ � x � �� � � � � � ȯ � � � � � � � � ζ ˸ � �� �
1 � Ǥ � � � � � � ʣ � ǿ � ξ � � ϵ � � � �� � 뤬뤬뤵������
4 imag
?expressions functions imag
?imag
#imag(x) & ʣ� ǿ � & $x$ � ε ����ʬ (�¿ � ) \\
%imag(x)@ ʣ� ǿ � @$x$ �ε ����ʬ (�¿ � )
� ‫` �ؿ‬imag(x)` � ϰ � � ε � � � � ʬ � � ¿ � Ȥ � � � �֤������
4 invnorm
?expressions functions invnorm
?invnorm
#invnorm(x) & Ǥ � � & $x$ � μ � � � ε � 5 � � ʬ � ۴ ‫\\ �ؿ‬
%invnorm(x)@ Ǥ � � @ $x$ � μ � � � ε � 5 � � ʬ � ۴ ‫�ؿ‬
� ‫` �ؿ‬invnorm(x)` � ϰ � � μ � � � � � Ф � � 롢 5 � � ʬ � � ( � � � � � � ʬ � � ) � � � � � � ʬ
� ۴ ‫�ؿ‬εմ ‫���֤��ޤ‬ � ��‫����ؿ‬ʲ� � � � � : `norm` � �
4 int
?expressions functions int
?int
#int(x) & � ¿ � & $x$ � � 0 � � � � ʬ (0 �˸ � � � � ä ƴ ‫\\ )�ݤ‬
%int(x)@ � ¿ � @$x$ � � 0 � � � � ʬ (0 �˸ � � � � ä ƴ ‫)�ݤ‬
� ‫` �ؿ‬int(x)` � ϡ � � � � � 0 � � � � ʬ (0 � ˸ � � � � ä ƴ ‫������֤� � � )�ݤ‬
4 lambertw
?expressions functions lambertw
?lambertw
#lambertw(x) & � ¿ � & Lambert W � ‫\\ �ؿ‬
%lambertw(x)@ � ¿ � @Lambert W � ‫�ؿ‬
� ‫` �ؿ‬lambertw(x)` � � Lambert � � W � ‫�ؿ‬μ � �� � �֤������W � ‫�ؿ‬ϡ � � �
� � (W(x)*exp(W(x))=x �ˤ � ä � � � d � � � ����x � � x >= -exp(-1) � � � � �
� � � ¿ � Ǥ ʤ � � � Ф � � � � ����
4 lgamma
?expressions functions lgamma
?lgamma
#lgamma(x) & Ǥ � � & $\mbox{lgamma}(\mbox{real}(x))$, $x$ � μ � � � Υ � � � � � п � ‫\\�ؿ‬
%lgamma(x)@ Ǥ � � @ $lgamma ( roman real (x))$, $x$ � μ � � � Υ � � � � � п � ‫�ؿ‬
� ‫` �ؿ‬lgamma(x)` � ϰ � � μ � � � Υ � � � ‫ؿ‬
��� � μ � s � п � � �� � �֤������
� � � ʣ � ǿ � ξ � 硢������ � 뤬뤬뤵������
4 log
?expressions functions log
?log
#log(x) & Ǥ � � & $\log_{e} x$, $x$ � μ � s � п � ( � � $e$) \\
%log(x)@ Ǥ � � @ $ln~x$, $x$ � μ � s � п � ( � � $e$)
� ‫` �ؿ‬log(x)` � ϰ � � μ � s � п � ( � � `e`) � � �� � �֤�������ʲ � � � � � :
`log10` � �
4 log10
?expressions functions log10
?log10
#log10(x) & Ǥ � � & $\log_{10} x$, $x$ � � � п � ( � � $10$) \\
%log10(x)@ Ǥ � � @ ${log sub 10}~x$, $x$ � � � п � ( � � $10$)
� ‫` �ؿ‬log10(x)` � ϰ � � � � п � ( � � 10) � � �֤������
4 norm
?expressions functions norm
?norm
#norm(x) & Ǥ � � & $x$ � μ � � � � 5 � � ʬ � � ( � � � � � � ʬ � � ) � ‫\\ �ؿ‬
%norm(x)@ Ǥ � � @ $norm(x)$, $x$ � μ � � � � 5 � � ʬ � � ( � � � � � � ʬ � � ) � ‫�ؿ‬
� ‫` �ؿ‬norm(x)` � ϡ � � � � μ � � � � � Ф � � 롢 5 � � ʬ � � ( � � � � � � ʬ � � ) � � � � � � ʬ
� ۴ ‫���֤��ޤ‬ � ��‫����ؿ‬ʲ� � � � � : `invnorm`, `erf`, `erfc` � �
4 rand
?expressions functions rand
?rand
#rand(x) & 0 � � & � � � [0:1] � � ε � � � � � � 8 . � � \\
%rand(x)@0 � � @ � � � [0:1] � � ε � � � � � � 8 . � �
� ‫` �ؿ‬rand(x)` � ϡ � � � � [0:1] � � ε � � � � � � � �֤��‫����ޤ����ܤ‬ϰʲ���
� � : `random` � �
4 real
?expressions functions real
?real
#real(x) & Ǥ � � & $x$ � μ � � � \\
%real(x)@ Ǥ � � @ $x$ � μ � � �
� ‫` �ؿ‬real(x)` � ϰ � � μ � � � � �֤������
4 sgn
?expressions functions sgn
?sgn
#sgn(x) & Ǥ � � & $x>0$ � ʤ � 1, $x<0$ � ʤ � -1, $x=0$ � ʤ � 0. $x$
� ε � � � �� � � \\
%sgn(x)@ Ǥ � � @ $x>0$ � ʤ � 1, $x<0$ � ʤ � -1, $x=0$ � ʤ�� 0. $x$ � ε � � � �� � �
� ‫` �ؿ‬sgn(x)` � ϰ � � 5 � ʤ � 1 ��� � ʤ � -1 � � 0 � ʤ � � 0 � � �֤������
� � � ʣ � ǿ � ξ � � � � � �� � 뤬뤬뤵������
4 sin
?expressions functions sin
?sin
#sin(x) & Ǥ � � & $\sin x$, $x$ � Υ � � � � � \ \
%sin(x)@ Ǥ � � @ $sin~x$, $x$ � Υ � � � � �
� ‫` �ؿ‬sin(x)` � ϰ � � Υ � � � � � (5 � � ) � � �� � �֤������`sin` � �
`set angles` � � j � � ˤ � � � � � � ä ơ � � 饸����٤����‫ޤ‬ΰ � � � � � դ � � ����
4 sinh
?expressions functions sinh
?sinh
#sinh(x) & Ǥ � � & $\sinh x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � \\
%sinh(x)@ Ǥ � � @ $sinh~x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � �
� ‫` �ؿ‬sinh(x)` � ϰ � � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � �� � �֤������`sinh` � �
� � � ϥ 饸�����Ϳ�������
4 sqrt
?expressions functions sqrt
?sqrt
#sqrt(x) & Ǥ � � & $\sqrt{x}$, $x$ � � ʿ � � \ \
%sqrt(x)@ Ǥ � � @ $sqrt x $, $x$ � � ʿ � �
� ‫` �ؿ‬sqrt(x)` � ϰ � � � ʿ � � � �� � �֤������x � � ʣ � ǿ � ξ � 硢�����
� � � 5 � μ � � � � � ĺ � � � �֤������
4 tan
?expressions functions tan
?tan
#tan(x) & Ǥ � � & $\tan x$, $x$ � Υ � � � � � � � \\
%tan(x)@ Ǥ � � @ $tan~x$, $x$ � Υ � � � � � � �
� ‫� �ؿ‬ `tan(x)` � ϰ � � Υ � � ���� �(5
�� �) � � �� � �֤������`tan` � �
`set angles` � � j � � ˤ � � � � � � ä ơ � � 饸����٤����‫ޤ‬ΰ � � � � � դ � � ����
4 tanh
?expressions functions tanh
?tanh
#tanh(x) & Ǥ � � & $\tanh x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � � \ \
%tanh(x)@ Ǥ � � @ $tanh~x$, $x$ � Υ ϥ � � ѥ ‫�ܥ‬å � � � � � � � � �
� ‫` �ؿ‬tanh(x)` � ϰ � � Υ ϥ � � ѥ ‫�ܥ‬å � � � � �� � � Ȥ � � ��
���� �
�֤������
`tanh` � ΰ � � ϥ 饸�����Ϳ�������
4 voigt
?expressions functions voigt
?voigt
#voigt(x,y) & � ¿ � & Voigt/Faddeeva � ‫ �ؿ‬$\frac{y}{\pi} \int{\frac{exp(-t^2)}{(x-
t)^2+y^2}}dt$ \\
# & & � � � : voigt$(x,y)$ = $real($faddeeva$(x+iy))$ \\
%voigt(x,y)@ � ¿ � @ � � � � � � � ‫�ؿ‬ȥ����Ĵ ‫�ؿ‬ξ� ߤ���
� ‫` �ؿ‬voigt(x,y)` � ϡ � � � � ‫��ڥ‬ȥ���Ϥǻ��Ѥ���� Voigt/Faddeeva �‫��ؿ‬
� � � � � ֤���������θ��� 1/10^4 ����Ǥ���libcerf �뤬롼뤤�e � � � � Ѳ � ǽ
� ʤ � С � � � � 5 � Τ � �� � � � 뤬뤿뤿��� re_w_of_z() � 뤬롼뤤�eeȤ�� ����
voigt(x,y) = real(faddeeva( x + y*{0,1} )) � � � � դ � � Ƥ � � $ � � � � �
#\hline \end{longtable}
#%% @end � � ɬ � ‫פ‬Ȥ� � 뤬뤿뤿�ᡢ�%ߡ��� tabular � γ � � �
#\begin{tabular}{|ccl|}
@end table

^<!-- INCLUDE_NEXT_TABLE -->


@start table
#\begin{longtable}{|ccl|} \hline
#\multicolumn{3}{|c|}{libcerf ( � � � Ѳ � ǽ � ʾ � � Τ � ) �ˤ � � � ü � ‫\ \\ }�ؿ‬hline \hline
# � ‫� � � � � & � � � & �ؿ‬ \\ \hline
#\endhead \hline \endfoot
%c c l .
% � ‫� � � � � @ � � � @�ؿ‬
%_
4 cerf
?expressions functions cerf
?cerf
#cerf(z) & ʣ� ǿ � & ʣ�Ǹ�� ‫\\ �ؿ‬
%cerf(z)@ ʣ� ǿ � @ ʣ�Ǹ�� ‫�ؿ‬
`cerf(z)` � ϸ � � ‫ �ؿ‬erf(x) � � ʣ � ǥ С � � � � � � Ǥ � � �
4 cdawson
?expressions functions cdawson
?cdawson
=dawson
%cdawson(z)@ ʣ� ǿ � @ ʣ� � Dawson ��ʬ
#cdawson(z)& ʣ� ǿ � &Dawson ��ʬ $D(z)={\frac{\sqrt{\pi}}{2}e^{-z^2} erfi(z)}$
� � ʣ � dz � ĥ \\
`cdawson(z)` � � ʣ � ǰ � � � � Ф � � � Dawson � � ʬ � � �� � �֤������
cdawson(z) = sqrt(pi)/2 * exp(-z^2) * erfi(z)
4 faddeeva
?expressions functions faddeeva
?faddeeva
%faddeeva(z)@ ʣ� ǿ � @ �ƥ� � � � � � 벽 ʣ�Ǹ�� ‫ �ؿ‬w(z) = exp(-z^2) * erfc(-i*z)
#faddeeva(z)& ʣ� ǿ � & �ƥ� � � � � � 벽 ʣ�Ǹ�� ‫ �ؿ‬$w(z) = e^{-z^2}~ erfc(-iz) $ \\
� ‫` �ؿ‬faddeeva(z)` � Ϻ ƥ � � � � � � 벽 ʣ�Ǹ�� ‫�ؿ‬Ǥ � � �
faddeeva(z) = exp(-z^2) * erfc(-i*z)
� � � � ϡ � A b ramowitz-Stegun � μ � 7.1.3, 7.1.4 � � � б � � � � ����
4 erfi
?expressions functions erfi
?erfi
%erfi(x)@ � ¿ � @ � � � � ‫ �ؿ‬erfi(x) = -i * erf(ix)
#erfi(x)& � ¿ � & � � � � ‫ �ؿ‬$erf(x) = -i * erf(ix)$ \\
� � � � ‫ �ؿ‬erfi(x) = -i * erf(ix)
4 Voigt Profile
?expressions functions VP
?VP
%VP(x,sigma,gamma)@ � ¿ � @Voigt � ‫�ץ‬ե � � � � �
#VP(x,$\sigma$,$\gamma$)& � ¿ � & Voigt � ‫�ץ‬ե � � � � � $ VP(x,\sigma,\gamma) =
{\int^{\infty}_{-\infty}{G(x^\prime;\sigma) L(x-x^\prime;\gamma) dx^\prime }} $ \\
`VP(x,sigma,gamma)` � ϥ � � � � �� � ‫ �ٴؿ‬G(x;sigma) �ȥ � � � � �� � ‫�ٴؿ‬
L(x;gamma) � ξ � ߹��ߤ���d � � � � Voigt � ‫�ץ‬ե � � � � � ((
� ‫� � � � )�ٴؿ‬
� � � � � ����

#\hline \end{longtable}
#%% @end � � ɬ � ‫פ‬Ȥ� � 뤬뤿뤿�ᡢ�%ߡ��� tabular � γ � � �
#\begin{tabular}{|ccl|}
@end table

^<!-- INCLUDE_NEXT_TABLE -->


@start table
#\begin{tabular}{|ccl|} \hline
#\multicolumn{3}{|c|}{ʸ� � � � ‫\ \\ }�ؿ‬hline \hline
# � ‫\ \\ ���֤� & � � � & �ؿ‬hline
%c c l .
% � ‫���֤� @ � � � @�ؿ‬
%_
4 gprintf
?expressions functions gprintf
#gprintf("format",x,...) & Ǥ � � & gnuplot �ν �� �
ν ν ν� Ŭϴ Ѥ
� ���� �� � � � � � � \\ ʸ
%gprintf("format",x,...)@ Ǥ � � @ gnuplot �ν �� �
ν ν ν� Ŭϴ Ѥ
� ���� �� � � � � � � \\ ʸ
ν`gprintf("format",x)` � ϡ � gnuplot � ȼ �
ν � ν �� Ĥ
� � Ҥ˰�ν �ѿ � x ��Ŭ
� Ѥ � � � � � � η �� � ʸ � � � � � �֤������ɸ��Ū�� C �8��� ���Ҥ�Ȥ�����
�� �ϡ� � � � � � `sprintf("format",x)` � � Ȥ � ɬ � ‫���פ�����ޤ‬
�ʲ � � � � � : `format specifiers` � �
4 sprintf
?expressions functions sprintf
?sprintf
#sprintf("format",x,...) & ʣ��� & C � 8 �� sprintf �� �֤�ʸ� � � � \\
%sprintf("format",x,...)@ ʣ��� @C � 8 �� sprintf �� �֤�ʸ� � � � \\
`sprintf("format",var1,var2,...)` � � ɸ � � Ū � � C
� Ĥΰ � � � Ŭ � Ѥ � � � � � � η �� � ʸ � � � � � �֤������gnuplot
��Ȥ � � � � � � � � ϡ � � � � � � `gprintf()` � � � � Ѥ � � � ɬ � ‫���פ�����ޤ‬
sprintf � ν ν� � ν�Ҥ�˴� ν ‫�������ؤ�����ܤ‬ˤĤ � � Ƥ ϡ � ɸ � � Ū � � C �8 �

� � � ‫���ܤ‬unix � � sprintf � � man � ‫����ڡ‬ � � Ȥ� � Ƥ � � $ � � � � �


4 strlen
?expressions functions strlen
?strlen
#strlen("string") & ʸ� � � � & � Х � � � ñ �� Ǥ � ʸ � � � � � Ĺ � � (0 � � ) \\
%strlen("string")@ʸ� � � � @ � Х � � � ñ �� Ǥ � ʸ � � � � � Ĺ � � (0 � � )
`strlen("string")` � ϡ � � Х � � � ñ �� Ǥ � ʸ � � � � � Ĺ � � � � �֤��ߤ������‫ޤ‬Υ �
� � ɡ � � ǥ � � ��� ¿ � Х � � ʸ � � � � ‫��ݡ‬Ȥ � � Ƥ � � � С � � � � � � �ʸ ������� �ʸ

� � � � � � � 礭���ʤ�Ǥ � � 礦��
4 strstrt
?expressions functions strstrt
?strstrt
#strstrt("string","key") & ʸ� � � � & � � ʬʸ � � � � "key" � � � � � � � � � Ƭ � � � � \ \
%strstrt("string","key")@ʸ� � � � @ � � ʬʸ � � � � "key" � � � � � � � � � Ƭ � � � �
`strstrt("string","key")` � ϡ �ʸ � � � � "key" � � "string" � � � � � õ � � � � � �
� 줬�������Ƭ���֤�� ֤ ������"key" � � � � � Ĥ � � � ʤ � � ä � � � � � 0 � � �֤�
� ����C � 饤�֥��� strstr � ‫�˻�ؿ‬Ƥ�� ������ʸ� � � � ‫ؤ‬Υ ‫��ݥ‬ � ����
���
� � strstr � Ȥ ϰ 㤤�������0 � � Ǥ ΰ � �֤�� ֤ �������㤨�С�
strstrt("hayneedlestack","needle") = 4 � Ȥ ʤ � ����
4 substr
?expressions functions substr
?substr
=substring
#substr("string",beg,end) & ʣ��� & ʸ���� "string"[beg:end] \\
%substr("string",beg,end)@ ʣ��� @ ʸ���� "string"[beg:end]
`substr("string",beg,end)` � ϡ � � � � � ʸ � � � � � beg � � � � end � � � � ‫ܤ‬ Ǥ �ʸ
� � � ʤ � ʸ � � � � � �֤����������ϡ � "string"[beg:end] � Ȥ � � � � � � Ȥ ۤ�Ʊ
� � � Ǥ � � � � � � � � d � ϥ � � ‫ ����ץ‬beg, end � � � ά � Ǥ � � ����
4 strftime
?expressions functions strftime
?strftime
#strftime("timeformat",t) & Ǥ � � & gnuplot � ˤ � � � � � � Ϸ� ʸ ��
� � �� �� � \\
%strftime("timeformat",t)@ Ǥ � � @ gnuplot � ˤ � � � � � � Ϸ� ʸ�
� �� �� �� �
`strftime("timeformat",t)` � ϡ � 1970 ǯ� � � � � � ÿ � ˤ � � � � t �ˡ� � � � �
��� � � � timeformat � � Ŭ � Ѥ � � ����
�ʲ � � � � � : `time_specifiers`, `strptime` � �
4 strptime
?expressions functions strptime
?strptime
#strptime("timeformat",s) & ʸ� � � � & ʸ� � � � s � � � Ѵ � � � � � 1970
%strptime("timeformat",s)@ʸ� � � � @ ʸ � � � � s ���Ѵ � � � � � 1970 ǯ� � � � � � ÿ �
�`strptime("timeformat",s)` � � � � � timeformat � � Ȥ ä �ʸ � � � � s ��� �
� � � � ɤ ߹���ǡ������ 1970 ǯ������ÿ���Ѵ��������
�ʲ � � � � � : `time_specifiers`, `strftime` � �
4 system
?expressions functions system
=system
#system("command") & ʸ� � � � & � � � � � 뤬쥹륳�‫�ޥ‬ɤ�� ν Ϥ\���ʸ���� \
%system("command")@ʸ� � � � @ � � � � � 뤬쥹륳�‫�ޥ‬ɤ�� ν Ϥ���ʸ����
`system("command")` � ϡ � ɸ � � Ū � ʥ � � � � � � � Ѥ � � � "command" � � ¹ Ԥ � � � � �
� � ɸ � � � � Ϥ ‫�ؤ‬ʸ� � � � � ʸ � � � � � ѿ � Ȥ � � � �֤����������Ǹ�β����Ĥ�
� 뤬뤬뤵������

� � � � ϡ � ' f (x) = real(system(sprintf("somecommand %f", x)))' � Τ 褦�ˤ �


� ơ � � � � � ‫�ؿ‬ν � � Ϥ � gnuplot � � � � � � ‫����˼���ץ‬Τ����ѤǤ�� ����
4 word
=word
#word("string",n) & ʸ� � � � , 0 � � & ʸ� � � � "string" � � n � � � ‫�ܤ‬ñ � � \\
%word("string",n)@ʸ� � � � , 0 � � @ ʸ � � � � "string" � � n � � � ‫�ܤ‬ñ � �
`word("string",n)` � �ʸ � � � � string � � n � � � ‫�ܤ‬ñ � �ʸ � � � � � �֤��������
��� � `word("one two three",2)` � �ʸ � � � � "two" � � �֤������
4 words
=words
#words("string") & ʸ� � � � & ʸ� � � � "string" � � � ñ � � � \\
%words("string")@ʸ� � � � @ ʸ � � � � "string" � � � ñ � � �
`words("string")` � �ʸ � � � � string � � � ñ � � � � �֤�������㤨��
`words(" a b c d")` � � 4 � � �֤������
@end table

^<!-- INCLUDE_NEXT_TABLE -->


@start table
#\begin{tabular}{|ccl|} \hline
#\multicolumn{3}{|c|}{¾ � � {\bf gnuplot} � δ ‫\ \\ }�ؿ‬hline \hline
# � ‫\ \\ ���֤� & � � � & �ؿ‬hline
%c c l .
% � ‫���֤� @ � � � @�ؿ‬
%_
4 column
?expressions functions column
?column
#column(x) & 0 � �ʸ � � � � & �ǡ � � � � ե � � � � � � � � � � � $x$ � � � � \\
%column(x)@0 � �ʸ � � � � @ � ǡ � � � � ե � � � � � � � � � � � $x$ � � � �
`column(x)` � ϡ � plot, splot, stats � � � ‫�ޥ‬ɤ���Ȥ� ΰ �Ƥ �Ȥ �Τ� ����
� � � � ϡ � $ x $ � � � ‫����ܤ‬Ƥ�� �� Ȥ���ɾ�
d ��� �����ʲ � � � � � :
`plot datafile using` � �
4 columnhead
?expressions functions columnhead
?columnhead
#columnhead(x) & 0 � � & � ǡ � � � � ե � � � � � κ ǽ � � $x$ � � � � � � � ʸ � � � � \\
%columnhead(x)@0 � � @ � ǡ � � � � ե � � � � � κ ǽ � � $x$ � � � � � � � ʸ � � � �
`columnhead(x)` � ϡ � plot, splot, stats � � � ‫�ޥ‬ɤ���Ȥ� ΰ �Ƥ �Ȥ �Τ� �
� � � � � � � � ϡ � � ǡ � � � � ե � � � � � κ ǽ � ι Ԥ � $x$ � � � ‫����ܤ‬Ƥ�ʸ����Ȥ���ɾ
� d � � �����ʲ� � � � � : `plot datafile using` � �
4 exists
?expressions functions exists
?exists
#exists("X") & ʸ� � � � & � ѿ �� X � � � � d � � � Ƥ � � � � 1, � � � � � Ǥ ʤ � � � � 0\\
%exists("X")@ʸ� � � � @ � ѿ �� X � � � � d � � � Ƥ � � � � 1, � � � � � Ǥ ʤ � � � � 0
`exists()` � ΰ � � � ʸ � � � � � � � ����ʸ� � � � � ѿ � Ǥ � � � � � � � ʸ � � � �� � �� �
�� d � � � Ƥ � � � � ѿ �� � � � ä Ƥ � � � � 1 � � � � � � Ǥ ʤ � � � � 0 � � �֤������
4 hsv2rgb
?expressions functions hsv2rgb
?hsv2rgb
?hsv
#hsv2rgb(h,s,v) & h,s,v $\in$ [0:1] & 24 � ӥ å � RGB � � � � \\
%hsv2rgb(h,s,v)@[0:1] � � � h,s,v@24 � ӥ å � RGB � � � �
� ‫` �ؿ‬hsv2rgb(h,s,v)` � ϡ � H SV ( � � � � ( H ue)/ � � � � ( S aturation)/ � � � � ( V alue))
Ȥ� � 3 � � � Ȥ � � �RGB
Ȥ Ʊ�� � Ȥ �� � Ѵ � � � � ����
4 stringcolumn
?expressions functions stringcolumn
?stringcolumn
?expressions functions strcol
?strcol
#stringcolumn(x) & 0 � �ʸ � � � � & ʸ� � � � Ȥ � � Ƥ � $x$ � � � ‫\\ �����ܤ‬
%stringcolumn(x)@0 � �ʸ � � � � @ ʸ � � � � Ȥ � � Ƥ � $x$ � � � ‫�����ܤ‬
`stringcolumn(x)` � � fit � � � 뤬뤬뤤�ϥǡ����ե�����‫�ץ‬åȤǤ � `using` � �
� � � ο � ΰ � � � Ȥ � � Ƥ Τ �Ȥ � � ��������� $x$ � � � ‫����ܤ‬Ƥ�ʸ������
� � Ȥ � � � �֤������`strcol(x)` � ϡ � `stringcolumn(x)` � ξ � ά � d Ǥ � � �
�ʲ � � ⻲��: `plot datafile using` � �
4 timecolumn
?expressions functions timecolumn
?timecolumn
#timecolumn(N,"timeformat") & 0 � � , ʸ� � � � & �ǡ � � � � � � � � � $N$ � � �
‫����ܤ‬ǡ��� \\
%timecolumn(N,"timeformat")@0 � � , ʸ� � � � @ � ǡ � � � � ե � � � � � � � � � � � $N$ � � �
‫����ܤ‬ǡ���
`timecolumn(N,"timeformat")` � � fit � � � � � 뤬뤬뤤�ϥǡ����ե������r�Ǥ�
`using` � � � � ο � ΰ � � � Ȥ � � Ƥ Τ �Ȥ� � �����ʲ� � � � � :
`plot datafile using` � �

� � � � ϡ � N � � � ‫���ܤ‬Ϥ��ʸ� � � � ǡ � � � � � � � � ǡ � � � �� Ȥ � � � � ɤ ߡ�������
� � � � : � ٤� "Unix � � � ‫ݥ‬å � (1970 ǯ 1 � � 1 � � ) � � � � � � ÿ � " � Ȥ � � Ʋ �

� 뤬뤿뤿��� "timeformat" � � � � Ѥ � � ����
� � � : �С � � � � � � 5 � � � p � ϡ � � � � δ ‫�ؿ‬ϰ�Ĥΰ�����餺��������
� ˼ � � κ � ɸ � � ��Ǥ � � � � � ˤ � � � � � ǽ � � � Ƥ � � ����Ǥ � � � � �
4 tm_hour
?expressions functions tm_hour
?tm_hour
#tm\_hour(x) & 0 � � & � � \ \
%tm_hour(x)@0 � � @ � �
� ‫` �ؿ‬tm_hour(x)` � ϰ � � � 줬
1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � �����
��� �β � � � (0--23 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫 ���¿�Ȥ � � � �֤������
4 tm_mday
?expressions functions tm_mday
?tm_mday
#tm\_mday(x) & 0 � � & � � \\
%tm_mday(x)@0 � � @ � �
� ‫` �ؿ‬tm_mday(x)` � ϰ � � � 줬
1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � �����
�� �η�β� � � (1--31 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫 ���¿�Ȥ � � � �֤������
4 tm_min
?expressions functions tm_min
?tm_min
#tm\_min(x) & 0 � � & ʬ \\
%tm_min(x)@0 � � @ ʬ
� ‫` �ؿ‬tm_min(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � �����줬
� � � � β � ʬ (0--59 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫 ���¿ �Ȥ � � � �֤������
4 tm_mon
?expressions functions tm_mon
?tm_mon
#tm\_mon(x) & 0 � � & � � \\
%tm_mon(x)@0 � � @ � �
� ‫` �ؿ‬tm_mon(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � �����줬
��� � (0--11 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫 ���¿ �Ȥ � � � �֤������
4 tm_sec
?expressions functions tm_sec
?tm_sec
#tm\_sec(x) & 0 � � & � � \\
%tm_sec(x)@0 � � @ � �
� ‫` �ؿ‬tm_sec(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � ����� 줬
��� �β � � � (0--59 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫���¿�Ȥ � � � �֤������
4 tm_wday
?expressions functions tm_wday
?tm_wday
#tm\_wday(x) & 0 � � & � � � ν � � β � � � � � \\
%tm_wday(x)@0 � � @ � � � ν � � β � � � � �
� ‫` �ؿ‬tm_wday(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � ����� 줬
�� �ν� �β � � � � � (0--6 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫���¿ �Ȥ � � � �֤������
4 tm_yday
?expressions functions tm_yday
?tm_yday
#tm\_yday(x) & 0 � � & � � � � ǯ � β � � � � � \\
%tm_yday(x)@0 � � @ � � � � ǯ � β � � � � �
� ‫` �ؿ‬tm_yday(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � ����� 줬
��� �ǯ�β� � � � � (1--366 � � � ϰ Ϥ � 0 � � ) � Ǥ � � 뤫
���¿ �Ȥ � � � �֤������
4 tm_year
?expressions functions tm_year
?tm_year
#tm\_year(x) & 0 � � & > � � \\
%tm_year(x)@0 � � @ > � �
� ‫` �ؿ‬tm_year(x)` � ϰ � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤷ � ����� 줬
> � � ǯ (0 � � ) � Ǥ � � 뤫 ���¿ �Ȥ � � � �֤������
4 time
?expressions functions time
?time
#time(x) & Ǥ � � & � � � ߤΥ � � � � ƥ � � � \\
%time(x)@ Ǥ � � @ � � � ߤΥ � � � � ƥ � � �
� ‫` �ؿ‬time(x)` � ϸ � � ߤΥ� � � � ƥ � � � � �֤����������� � � `strftime` � �
� � � � � ʸ � � � � � � Ѵ � � Ǥ � � ������`timecolumn` � � � Ȥ ߹�碌������Ū � � � �
� � � � � � դ � � . � � � � Τ ˤ � Ȥ � � �������η� � Ϥ � � 줬�֤���Τ� � � ������
�� �0� �ξ � � � time() � ϸ � � ߤλ � � � � 1970 ǯ 1 � � 1 � � � � 0 � � �
� � � � � ֤������¿ � ( � ����ʣ� ǿ � ) �ʤ� �Ʊ������¿�Ȥ��� �֤������
� � �ʸ � � � � ʤ � С � � � � � � � ʸ � � � � Ǥ � � � Ȥ
ߤʤ � � � �
�� � � � � 줿��ʸ
� � � � � � �� ��� 褦����� `strftime` � � � Ϥ � � ����
4 valid
?expressions functions valid
?valid
#valid(x) & 0 � � & � ǡ � � � � � � $\mbox{column}(x)$ � � 5 � � - \\
%valid(x)@0 � � @ � ǡ � � � � � � column($x$) � � 5 � � -
`valid(x)` � ϡ � � ǡ � � � � r 褫 fit �ˤ � � � � � `using` � μ � � � � � Ǥ � � � � Ȥ � �
� ��� � � ʲ � � � � � : `plot datafile using` � �

#value("name") & ʸ� � � � & p� name � � � ѿ � θ � � ߤ���\\


%value("name")@ʸ� � � � @� p name � � � ѿ � θ � � ߤ���
@end table

C 4 �  � � � ʱ � � � ʬ (elliptic integrals)
4 elliptic integrals
?elliptic integrals
=elliptic integrals
� ‫` �ؿ‬EllipticK(k)` � ϡ � � � 1 � ‫ﴰ‬t �ʱ � � � ʬ � � � � � ʤ � a � � ‫�ؿ‬
`(1-(k*sin(p))**2)**(-0.5)` � � 0 � � � � � / 2 � �Ǥ � � ϰ Ϥ ι � � � � � ʬ�� � �� � � �
� � � ����`k` � � � � p � � -1 � � � � 1 � Ǥ � (ξü � ϴ ��ʤ� ) � �
� ‫` �ؿ‬EllipticE(k)` � ϡ � � � 2 � ‫ﴰ‬t �ʱ � � � ʬ � � � � � ʤ � a � � ‫�ؿ‬
`(1-(k*sin(p))**2)**0.5` � � 0 � � � � � / 2 � �Ǥ � � ϰ Ϥ ι � � � � � ʬ�� � �� � �֤�
� ����`k` � � � � p � � -1 � � � � 1 � Ǥ � (ξü � � ��) � �

� ‫` �ؿ‬EllipticPi(n,k)` � ϡ � � � 3 � ‫ﴰ‬t �ʱ � � � ʬ � � � � � ʤ � t ‫�ؿ‬


`(1-(k*sin(p))**2)**(-0.5)/(1-n*sin(p)**2)` � � 0 � � � � � / 2 � �Ǥ � � ϰ Ϥ �
� � � � � � ʬ � � �� � �֤�������ѥ��� �`n` � � 1 � � 꿷꾮륪������`k` � � -1 � � 1

� δ � (ξü � ϴ ��ʤ� ) � Ǥʤ � � � Ф � � � � ������d � ꡢ��� ٤Ƥ�5�� `k`


� � � Ф � EllipticPi(0,k) == EllipticK(k) � Ǥ � � 뤳� Ȥ� � � դ � � Ƥ � � $ � � � � �
C 4 � � � � 8 . (random)
4 Random number generator
?expressions random
?random
=rand
� ‫` �ؿ‬rand()` � � 0 � � 1 � δ ֤ε � � � � � � � � � 8 . � � � ��������ϰʲ������
� � � 르 �ꥺ �����Ѥ��Ƥ����: P. L'Ecuyer and S. Cote, "Implementing a
random number package with splitting facilities", ACM Transactions on
Mathematical Software, 17:98-111 (1991).

rand(0) ��� �˻ � � 2 � Ĥ � 32bit � μ � (seed) � θ � � 8���� � �ߤ


.� � � � � [0:1] � � � � � ε � � � � � � �� � �֤�
rand(-1) 2 � Ĥμ � � �� � ɸ � � �� � �

rand(x) 0 < x < 2^31-1 � � 0 � � ʤ � � � ξ � � � x � � � � � �� �
rand({x,y}) 0 < x,y < 2^31-1 � � 0 � � ʤ � seed1 � � x � � seed2 � � y
� � � � � �� �
4 value
?expressions functions value
?value
A � � � 桼��������ѿ � � p � Ǥ ��� С � B = value("A") �ϻ�¾� B = A ��t
� � Ʊ � � � Ǥ � � � � � � � ϡ � � ѿ � �� p � � � Ȥ � ʸ � � � � � ѿ � ˼ � � � � Ƥ � � � � � ��
� Ѥ Ǥ � � � � ʲ � � � � � : `user-defined variables` � � � � � � ϡ � � ѿ �� � � ǡ � � � � ե �
� � � 뤫���ɤ�� 뤳�Ȥ � � ǽ � ˤ � � ��������Ǥ � � � � 硢 value() � Ϥ �
� ο � � �� � �֤���������ʸ� � � � ǡ � � � d � � � Ƥ � � � � ѿ � � � б � � � � � � �
� � � ʤ � � � 硢 value() � � NaN � � �֤������

C 4 ñ� �μ � � Ф � � � ñ � � � (word, words)
4 Counting and extracting words
?expressions functions word
?expressions functions words
?words
?word
`word("string",n)` � ϡ �ʸ � � � � (string) � � n � � � ‫�ܤ‬ñ� � � �֤�������㤨
� � `word("one two three",2)` � �ʸ � � � � "two" � � �֤������

`words("string")` � ϡ �ʸ � � � � (string) � � ñ � � � � �֤�������㤨�С �


`words(" a b c d")` � � 4 � � �֤������

� ‫` �ؿ‬word` � � `words` � ϡ � ñ � � � � � � 䡢��Ű� � � � � ǰ Ϥ �줿 ʸ� � � � ⡢


� � � � Ū � Ǥ � � � � � � ‫��ݡ‬Ȥ � � Ƥ � � ��:
print words("\"double quotes\" or 'single quotes'") # 3
� � � ϰ � � � � � � p � ϡ � � � � ‫���ڡ��������ޤ‬ʸ� � � � � � � Ƭ � Ǥ ʤ � � � Ф � � � �
� � � � ϡ � ñ � � � ⡢ � � � 뤬뤬뤤��ñ� 켫졼콪���ˤĤ � � � � ‫��ݥ‬ȥ�ե��� (') �ϡ�����
� � � � � ñ � � � � � � Ǥ Ǥ � � � ȸ � � ʤ � � � 뤳�Ȥ � ��� � � ��:
print words("Alexis' phone doesn't work") # 4
� � � � � � ʸ � � Υ � � � � � � � � ‫פ‬ϥ��‫��ݡ‬Ȥ� � Ƥ � � ����Τǡ�����������‫�ݻ‬
� � � � � ϡ � � � � 줿뤬륢����� μ � � � ΰ � � � � � ǰ Ϥ �ʤ� � � Ф � � � � ����:
s = "Keep \"'single quotes'\" or '\"double quotes\"'"
print word(s, 2) # 'single quotes'
print word(s, 4) # "double quotes"
� Ǹ � � � � Ǥ ϡ � � � � � � � Υ � � � � � � � � ‫�פ‬ʸ� � � � � � � { � � Τ ߤ�ɬ�‫פ‬Ǥ � � 뤳�Ȥ�
��դ� �Ƥ � � $ � � � � �

C 3 � 黻�� (Operators)
3 Operators
?expressions operators
?operators
`gnuplot` � α 黻�Ҥϡ � C � 8 � α 黻�ҤȤۤ�Ʊ���Ǥ������ä���դ��ʤ���
� � t � Ƥ α 黻�Ҥ� 0 � � ¿ � ʣ � ǿ � ΰ � � � � 뤳�Ȥ� � Ǥ � � ‫���ޤ����ޤ‬
FORTRAN � ǻ Ȥ � � � ** ( � �� ) � 黻�Ҥ⥵ �‫��ݡ‬Ȥ� � � Ƥ � � ����

� 黻��ɾ� dν � � � � ѹ � � � � � ˤ Ϥ � � ä � � � Ȥ � � ����
C 4 ñ � � 黻�� (Unary)
4 Unary
?expressions operators unary
?operators unary
?unary
�ʲ � � ϡ � ñ � � 黻�ҤȤ� � λ � � � ˡ � ΰ � � � Ǥ � :

@start table - � �������÷ � � ƥ � � � � ȷ | �


��� � �� ��� �
- -a � ‫��ޥ‬ʥ����
+ +a � ‫ץ‬饹��� ( � � � ⤷ � ʤ � )
~ ~a * 1 ��� � � ( �ӥ å � ȿ ž)
! !a * ��� �Ū � � � �
! a! * ��� �
$ $3 * `using` � � Ǥ ΰ � � / � � � � �
|| |A| ��� � A ��� � �ǿ �
=factorial
=negation
=one's complement
=operator precedence
=cardinality
#\begin{tabular}{|ccl|} \hline
#\multicolumn{3}{|c|}{ñ � � 黻��}\\ \hline \hline
#� � � � & � � & � � � � \\ \hline
#\verb@-@ & \verb@-a@ & � ‫��ޥ‬ʥ���� \\
#\verb@+@ & \verb@+a@ & � ‫ץ‬饹��� ( � � � ⤷ � ʤ � ) \\
#\verb@~@ & \verb@~a@ & * 1 � � � � � ( �ӥ å � ȿ ž) \\
#\verb@!@ & \verb@!a@ & * � � � � Ū � � � � \\
#\verb@!@ & \verb@a!@ & * � � � � \\
#\verb@$@ & \verb@$3@ & * `using` � � Ǥ ΰ � � / � � � � � \\
#\verb@|@ & \verb@|A|@ & � � � � A � � � � � ǿ � \\
C ugly hack: doc2ms uses $ as delimiter for eqn's so it doesn't seem to
C be able to print them. So we have to typeset this table without using
C eqn (at least that's the only solution I found, without any real docs
C on *roff and eqn
C First, terminate the table doc2ms.c already started:
%c c l .
%.TE
C ... then turn off eqn delimiters:
%.EQ
%delim off
%.EN
C ... and restart the table:
%.TS
%center box tab (@) ;
%c c l .
%� � � � @ � � @ � � � �
%_
%-@-a@ � ‫��ޥ‬ʥ����
%+@+a@ � ‫ץ‬饹��� ( � � � ⤷ � ʤ � )
%~@~a@* 1 � � � � � ( �ӥ å � ȿ ž)
%!@!a@* � � � � Ū � � � �
%!@a!@* � � � �
%$@$3@* `using` � � Ǥ ΰ � � / � � � � �
%|@|A|@ � � � � A � � � � � ǿ �
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th> � � � � < / th> <th> � � < /th> <th> � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>-</tt></td> <td><tt>-a</tt></td> <td> � ‫��ޥ‬ʥ����</td></tr>
^<tr> <td><tt>+</tt></td> <td><tt>+a</tt></td> <td> � ‫ץ‬饹���
( � � � ⤷ � ʤ � ) < /td></tr>
^<tr> <td><tt>~</tt></td> <td><tt>~a</tt></td> <td>* 1 � � � � �
( �ӥ å � ȿ ž)</td></tr>
^<tr> <td><tt>!</tt></td> <td><tt>!a</tt></td> <td>*
� � � � Ū � � � � < / t d></tr>
^<tr> <td><tt>!</tt></td> <td><tt>a!</tt></td> <td>* � � � � < / td></tr>
^<tr> <td><tt>$</tt></td> <td><tt>$3</tt></td> <td>* `using`
� � Ǥ ΰ � � / � � � � � < / t d></tr>
^<tr> <td><tt>|</tt></td> <td><tt>|A|</tt></td> <td> � � � � A
� � � � � ǿ � < / td></tr>
^</tbody>
^</table>

�� �$�1� � (*) � ΤĤ � � � � 黻�Ҥΰ � � � 0 � � Ǥ ʤ � � � Ф ʤ � ����

� 黻�Ҥ�� � � �� � Fortran � � C � � Ʊ � � � Ǥ � � � � � � � � θ 8 � Ʊ �� � � 黻��ɾ


� d � � � � � � � � Ѥ � � 뤬뤿뤿��ˤ � � ä � � � � Ȥ � � ������ä � -2**2 = -4 � ǡ �
(-2)**2 = 4 � Ǥ � � �

� � � � 黻�Ҥϡ � � 礭���� � �֤���褦�˼¿���֤������


C 4 � � � 黻�� (Binary)
4 Binary
?expressions operators binary
?operators binary
�ʲ � � ϡ � � � � 黻�ҤȤ � � λ � � � ˡ � ΰ � � � Ǥ � :

@start table - � �������÷ � � ƥ � � � � ȷ | �


��� � �� ��� �
** a**b �� �
* a*b ��
/ a/b ��
% a%b * ;� �
+ a+b ��
- a-b ��
== a==b ��
!= a!=b ��� ʤ �
< a<b � � 꿷꾮륪����
<= a<=b �ʲ �
> a>b � � � � 礭��
>= a>=b �ʾ �
<< 0xff<<1 ��� ʤ � � � � � � ե �
>> 0xff>>2 ��� ʤ � � � � � � ե �
& a&b * � ӥ å � � � (AND)
^ a^b * � ӥå � � � ¾ � � � � � � (XOR)
| a|b * � ӥ å � � � (OR)
&& a&&b * � � � � Ū AND
|| a||b * � � � � Ū OR
= a = b ���
, (a,b) �� ��ɾ��
. A.B ʸ� � � � � Ϣ � �
eq A eq B ʸ� � � � � �
ne A ne B ʸ� � � � � � � ʤ �
=bitwise operators
=string operators
=modulo
=exponentiation
#\begin{tabular}{|ccl|} \hline
#\multicolumn{3}{|c|}{ � � � 黻��} \\ \hline \hline
#� � � � & � � & � � � � \\ \hline
#\verb~**~ & \verb~a**b~ & � � � \ \
#\verb~*~ & \verb~a*b~ & � � \ \
#\verb~/~ & \verb~a/b~ & � � \ \
#\verb~%~ & \verb~a%b~ & * ; � � \ \
#\verb~+~ & \verb~a+b~ & � � \ \
#\verb~-~ & \verb~a-b~ & � � \ \
#\verb~==~ & \verb~a==b~ & � � \ \
#\verb~!=~ & \verb~a!=b~ & � � � ʤ � \ \
#\verb~<~ & \verb~a<b~ & � � 꿷꾮륪����\\
#\verb~<=~ & \verb~a<=b~ & �ʲ � \\
#\verb~>~ & \verb~a>b~ & � � � � 礭��\\
#\verb~>=~ & \verb~a>=b~ & �ʾ � \\
#\verb~<<~ & \verb~0xff<<1~ & � � � ʤ � � � � � � ե � \ \
#\verb~>>~ & \verb~0xff>>1~ & � � � ʤ � � � � � � ե � \ \
#\verb~&~ & \verb~a&b~ & * � ӥ å � � � (AND)\\
#\verb~^~ & \verb~a^b~ & * � ӥ å � � � ¾ Ū � � � � � � (XOR)\\
#\verb~|~ & \verb~a|b~ & * � ӥ å � � � (OR)\\
#\verb~&&~ & \verb~a&&b~ & * � � � � Ū AND\\
#\verb~||~ & \verb~a||b~ & * � � � � Ū OR\\
#\verb~=~ & \verb~a = b~ & � � � \ \
#\verb~,~ & \verb~(a,b)~ & � � � � ɾ � �\\
#\verb~.~ & \verb~A.B~ & ʸ� � � � � Ϣ � � \ \
#\verb~eq~ & \verb~A eq B~ & ʸ� � � � � � \ \
#\verb~ne~ & \verb~A ne B~ & ʸ� � � � � � � ʤ � \ \
%c c l .
%� � � � @ � � @ � � � �
%_
%**@a**b@ � � �
%*@a*b@ � �
%/@a/b@ � �
%%@a%b@* ; � �
%+@a+b@ � �
%-@a-b@ � �
%==@a==b@ � �
%!=@a!=b@ � � � ʤ �
%<@a<b@ � � 꿷꾮륪����
%<=@a<=b@ �ʲ�
%>@a>b@ � � � � 礭��
%>=@a>=b@ �ʾ �
%<<@0xff<<1@ � � � ʤ � � � � � � ե �
%>>@0xff>>1@ � � � ʤ � � � � � � ե �
%&@a&b@* � ӥ å � � � (AND)
%^@a^b@* � ӥ å � � � ¾ Ū � � � � � � (XOR)
%|@a|b@* � ӥ å � � � (OR)
%&&@a&&b@* � � � � Ū AND
%||@a||b@* � � � � Ū OR
%\&=@a = b@ � � �
%,@(a,b)@ � � � �
ɾ� �
%.@a.b@ʸ� � � � � Ϣ � �
%eq@A eq B@ʸ� � � � � �
%ne@A ne B@ʸ� � � � � � � ʤ �

@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th> � � � � < / th> <th> � � < /th> <th> � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>**</tt></td> <td><tt>a**b</tt></td> <td> � � � </td></tr>
^<tr> <td><tt>*</tt></td> <td><tt>a*b</tt></td> <td> � � < /td></tr>
^<tr> <td><tt>/</tt></td> <td><tt>a/b</tt></td> <td> � � < /td></tr>
^<tr> <td><tt>%</tt></td> <td><tt>a%b</tt></td> <td>* ; � � < /td></tr>
^<tr> <td><tt>+</tt></td> <td><tt>a+b</tt></td> <td> � � < /td></tr>
^<tr> <td><tt>-</tt></td> <td><tt>a-b</tt></td> <td> � � < /td></tr>
^<tr> <td><tt>==</tt></td> <td><tt>a==b</tt></td> <td> � � < /td></tr>
^<tr> <td><tt>!=</tt></td> <td><tt>a!=b</tt></td> <td> � � � ʤ � < / td></tr>
^<tr> <td><tt>&lt;</tt></td> <td><tt>a&lt;b</tt></td> <td> � � 꿷꾮륪����<
/td></tr>
^<tr> <td><tt>&lt;=</tt></td> <td><tt>a&lt;=b</tt></td> <td> �ʲ� </td></tr>
^<tr> <td><tt>&gt;</tt></td> <td><tt>a&gt;b</tt></td> <td> � � � � 礭�
�</td></tr>
^<tr> <td><tt>&gt;=</tt></td> <td><tt>a&gt;=b</tt></td> <td> �ʾ � </td></tr>
^<tr> <td><tt>&lt;&lt;</tt></td> <td><tt>0xff&lt;&lt;1</tt></td>
<td> � � � ʤ � � � � � � ե � < / td></tr>
^<tr> <td><tt>&gt;&gt;</tt></td> <td><tt>0xff&gt;&gt;1</tt></td>
<td> � � � ʤ � � � � � � ե � < / td></tr>
^<tr> <td><tt>&amp;</tt></td> <td><tt>a&amp;b</tt></td> <td>* � ӥ å � � �
(AND)</td></tr>
^<tr> <td><tt>^</tt></td> <td><tt>a^b</tt></td> <td>*
� ӥå � � � ¾ Ū � � � � � � (XOR)</td></tr>
^<tr> <td><tt>|</tt></td> <td><tt>a|b</tt></td> <td>* � ӥ å � � �
(OR)</td></tr>
^<tr> <td><tt>&amp;&amp;</tt></td> <td><tt>a&amp;&amp;b</tt></td> <td>*
� � � � Ū AND</td></tr>
^<tr> <td><tt>||</tt></td> <td><tt>a||b</tt></td> <td>* � � � � Ū
OR</td></tr>
^<tr> <td><tt>=</tt></td> <td><tt>a = b</tt></td> <td> � � � < /td></tr>
^<tr> <td><tt>,</tt></td> <td><tt>(a,b)</tt></td>
<td> � � � �
ɾ � � < / td></tr>
^<tr> <td><tt>.</tt></td> <td><tt>a.b</tt></td>
<td>ʸ� � � � � Ϣ � � < / t d></tr>
^<tr> <td><tt>eq</tt></td> <td><tt>A eq B</tt></td>
<td>ʸ� � � � � � < / t d></tr>
^<tr> <td><tt>ne</tt></td> <td><tt>A ne B</tt></td>
<td>ʸ� � � � � � � ʤ � < / t d></tr>
^</tbody>
^</table>

� � � $ � 1 � � (*) � ΤĤ � � � � 黻�Ҥΰ � � � 0 � � Ǥ ʤ � � � Ф ʤ � ����


� �ʸ � � � A,B � ϱ 黻�Ҥ �ʸ � � � � � � � � ᤹‫׵‬ ᤹᤹‫ ׵‬뤳�Ȥ� ��� � � ����
᤹‫�׵‬

� � � � 黻�Ҥ � AND (&&) � � OR (||) � � C � 8 � Ʊ�� � ɬ �


� ��� ��
� �� � ʤ� a � `&&` � � � � 2 ���ϡ� � � 1
� �� `||`
� ��� � 2 ��� �ϡ �1� � � � � � ʤ � � ɾ � d � � � ����

� ��ɾ � � (,) � ϡ � � � � å � � � � � Ǥ Τ � ɾ � d � � 졢�����鱦�¹˼�‫ؽ‬Ԥ��뤳��


� � � ‫��ݾڤ‬졢�Ǥⱦ��μ ����� � �֤�������
C 4 � � � � 黻�� (Ternary)
4 Ternary
?expressions operators ternary
?operators ternary
?ternary
� � Ĥ $ � � � � � 黻�Ҥ� � � � � ��:

@start table - � �������÷ � � ƥ � � � � ȷ | �


��� � �� ��� �
?: a?b:c � � � � 黻��
#\begin{tabular}{|ccl|} \hline
#\multicolumn{3}{|c|}{ � � � � 黻��} \\ \hline \hline
#� � � � & � � & � � � � \\ \hline
#\verb~?:~ & \verb~a?b:c~ & � � � � 黻��\\
%c c l .
%� � � � @ � � @ � � � �
%_
%?:@a?b:c@ � � � � 黻��

@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th> � � � � < / th> <th> � � < /th> <th> � � � � < / th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>?:</tt></td> <td><tt>a?b:c</tt></td> <td>* � � � � 黻�
�</td></tr>
^</tbody>
^</table>

� � � � 黻�Ҥ � C � Τ � Τ � Ʊ � � Ư � � � ������ǽ � ΰ � � (a) � � 0 � � Ǥ ʤ � � �


� Ф � � � � ��� � ��� � ɾ � d � � 졢������
���
� �� 줬 (� � � � Ǥ ʤ � ) � ʤ � � 2 � � � ‫�ܤ‬
� � � (b) � � ɾ � d � � 줿뤬륽���� � �֤��졢�����Ǥ ʤ � � � � 3 � � � ‫ܤ‬ΰ � � (c) � �
ɾ � d � � 졢������ � �֤�������
� � � � 黻�Ҥϡ � � � ʬ Ū � � � � d � � 줿�‫�ؿ‬䡢�����郎������줿���ˤΤ �
� $ � � r 褹���
롢 Ȥ� � ä � � � � Ȥ � Ԥ ʤ � � � � � Ѥ�Ǥ� � � � � ��

� �:

0 <= x < 1 � Ǥ � sin(x) �ˡ � 1 <= x < 2 � Ǥ � 1/x � � � � � ơ � � � � � ʳ � � �


x � Ǥ � � � d � � � ʤ � � ‫���ؿ‬r � :
f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0
plot f(x)
`gnuplot` � �� � � � �� � � Ф � � Ƥ ϲ � � � ɽ � � � � � � � ˤ � � �� � 뤬뤬뤹��Τǡ��Ǹ�ξ�
� � δ (1/0) �‫ؿ‬$� � � $ �� � $ �Ϥ � �$ʤ � � � �Ȥ� � �դ� �Ƥ��$� � � � ��������
� ‫��ؿ‬r � � � r 襹������ 뤬 lines ( � � r � ) � ξ � 硢��Ϣ³�� (x=1) �ν��
Ϣ³�‫�ؿ‬Ȥ � � � � � � � � Ф � Ƥ � � �����Ȥˤ� � � դ � � Ƥ � � $ � � � � � � � � � � $ � � � Ϣ
³ �ˤ ʤ � 褦�ˤ � � � ˤ ϡ � � 2 ��‫ � ؿ‬Ĥ � � � ʬ � � � 줿뤬륢���ʬ� � � Ƥ � � $ � � � (� �
� Τ 褦�ʾ�硢����ѿ�‫��ؿ‬Ȥ � � Τ � � � � � Ǥ � ) � �

�ե � � � � � 'file' � Υ ǡ � � � � ǡ � 4 � � � ‫ܤ‬Υǡ�������Ǥʤ��Ȥ��$���1 ���‫�ܤ‬


� ǡ � � � � ˴ ‫ ���ܤ‬3 ����������
�‫ �� ܤ‬2 ���‫ؤ‬Υǡ�����ʿ�� �� ��
r��� :

plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )

`using` � ν ˴� � $� � νν ν ‫��ؤ‬Ƥϡ��ʲ�����: `plot datafile


using` � �
C 3 � � (Summation)
3 Summation
?expressions operators summation
?operators summation
?summation
� ¤μ � � ϡ � � ʲ � � η | � � � ɽ � � � ��:
sum [<var> = <start> : <end>] <expression>
��� � � � <var> � ϡ � <start> � � � � <end> � �Ǥ 0
������ � � � � 0 � � � ѿ
˼�Ȥ�
� ư � � � � �������γ � �� � � Ф � � ơ � � � <expression> � � �� � � � � �� � � ɲ ä � � 졢

� ǽ � Ū �ʹ � � �� � � � � � � ¤ μ � � � �� Ȥ ʤ � ����
� �:
print sum [i=1:10] i
55.
# �ʲ � � � plot 'data' using 1:($2+$3+$4+$5+$6+...) � � Ʊ � �
plot 'data' using 1 : (sum [col=2:MAXCOL] column(col))
<expression> � ϡ � ɬ � � � � � � � ѿ � <var> � � ��ɬ�‫פ‬Ϥ�������<start> � �
<end> � � � ѿ � �� � � ǻ � � � � Ǥ � � ������������� � �ưŪ � � � ѹ � � � � 뤳��
� Ϥ Ǥ � � ��� � ������
� � �Ǥ ʤ � � � � � � � Ѥ � � � � � � � � $ ����<end> � � <start> � � �
� � � � � � � � � ϡ � � ¤ � �� � 0 � Ȥ ʤ � ����
C 3 � �z Ѥ � � ѿ � (Gnuplot-defined variables)
3 Gnuplot-defined variables
?expressions gnuplot-defined
?gnuplot-defined
?gnuplot-defined variables
?GPVAL
?gpval
gnuplot � ϡ � � ‫����ץ‬θ� � ߤ�������֤�ľp � � � r � � ȿ � Ǥ � � � 褦���ɤ�
�� Ф � � � � Ѥ � � ѿ � ��� � Ĥ � � äƤ � � �����������ѿ � � p �㤨 ϡ��
��
GPVAL_TERM, GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN � Τ 褦�� "GPVAL_" � �
� Ϥ ‫�������ޤ�ޤ‬餹�٤Ƥΰ���Ȥ��� ���ˤϡ� �
��
� ��� �
`show variables all`
� � � � Ϥ � � Ƥ � � $ � � � � � � � � $ � � � � � � Υ ѥ � �� �� ˴�Ϣ � � � � � � ( � ϰϡ � � п � �
� � � 뤫��) � ϡ � � � � � `set` � � � � � � Τ Ǥ ʤ �����Ǹ ����r Ϥ 褵���� 줿 Τ� � � � �
� � � � ����
� �: � � [X,Y] � Υ � � � � � � �
κ� �Ǥ ɸ�� ��������ˡ
GRAPH_X = (X - GPVAL_X_MIN) / (GPVAL_X_MAX - GPVAL_X_MIN)
GRAPH_Y = (Y - GPVAL_Y_MIN) / (GPVAL_Y_MAX - GPVAL_Y_MIN)
SCREEN_X = GPVAL_TERM_XMIN + GRAPH_X * (GPVAL_TERM_XMAX - GPVAL_TERM_XMIN)
SCREEN_Y = GPVAL_TERM_YMIN + GRAPH_Y * (GPVAL_TERM_YMAX - GPVAL_TERM_YMIN)
FRAC_X = SCREEN_X * GPVAL_TERM_SCALE / GPVAL_TERM_XSIZE
FRAC_Y = SCREEN_Y * GPVAL_TERM_SCALE / GPVAL_TERM_YSIZE

=errors
=error state
� ɤ �Ф � � � � � � ѿ � GPVAL_ERRNO � ϡ � Ǥ � դ � gnuplot � � � ‫�ޥ‬ɤ���� 뤬쥹륨�顼��
��� � � � � Ƥ ��ä�� �� �ä � � � � � 0 � Ǥ ʤ � �� ˥ � � å Ȥ � � 졢 ľp � Υ � � 顼
� �å � � � � � � � ʸ � � � � � ѿ � GPVAL_ERRMSG � � � � ¸ � � � � ����GPVAL_ERRNO � �
GPVAL_ERRMSG � ϡ � � � � ‫` ��ޥ‬reset errors` � � Ȥ ä ƥ � � ꥢ�Ǥ � � ����

`mouse` � � ǽ � � � Ȥ � � � � � � ÷ � � � � � Ϸ | � � ϡ � " M OUSE_" � ǻ Ϥ ���ɤ�Ф� � � � �


Ĥ � � ä Ƥ � � ٤�
�� ѿ � � �� � ܺ ���‫ޤ‬ϡ � �ʲ � � � � � : `mouse variables` � �

`fit` � � ǽ � ϡ � " FIT_" � ǻ Ϥ �뤬뤬뤤���Ĥ � � � � ѿ � � � � Ѥ � � ���Τǡ����Τ 褦


� �� p � � Ȥ � � Τ � � �� � � ٤��Ǥ � � 礦��`set fit errorvariables` � � � � Ѥ �
��ȡ� � � � � Ƥ � � Υ ѿ � Ϥ� 顼�ϡ � � � � Υ ѥ � ���� � � "_err" � � � ɲ ä � � � � �
� � � � � ¸ � � � � ٤ܺ����‫ޤ‬ϡ � �ʲ � � � � � : `fit` � �

�ʲ � � ⻲��: `user-defined variables`, `reset errors`,


`mouse variables`, `fit` � �

C 3 � 桼����d� � ѿ � ȴ ‫( �ؿ‬User-defined)
3 User-defined variables and functions
?expressions user-defined
?user-defined variables
?user-defined
?variables
� � � � � ʥ 桼������ѿ�� 1 �Ĥ��� 12 �Ĥ �Ǥ ΰ � � � � ĥ 桼����t ‫��ؿ‬
Ǥ � դ ξ � � � � � d � � � � � Ȥ ä � � ��뤳�Ȥ � � Ǥ � � ��������� `plot` � � � ‫�ޥ‬
�ɾ � Ǥ � � ǽ � Ǥ � � �

� 桼����t ‫��ؿ‬:
<func-name>( <dummy1> {,<dummy2>} ... {,<dummy12>} ) = <expression>

��� � � � <expression> � ϲ � � ѿ � <dummy1> � � � � <dummy12> � � ɽ � � � � � � Ǥ � � �

� 桼������ѿ��:
<variable-name> = <constant-expression>

� �:
w = 2
q = floor(tan(pi/2 - 0.1))
f(x) = sin(w*x)
sinc(x) = sin(pi*x)/(pi*x)
delta(t) = (t == 0)
ramp(t) = (t > 0) ? t : 0
min(a,b) = (a < b) ? a : b
comb(n,k) = n!/(k!*(n-k)!)
len3d(x,y,z) = sqrt(x*x+y*y+z*z)
plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x)

file = "mydata.inp"
file(n) = sprintf("run_%d.dat",n)
� Ǹ � � 2 � Ԥ � � � ϡ � � 桼�����ʸ� � � � � ѿ � ȡ � � 桼�����ʸ� � � � ‫���ؿ‬

� � � Ƥ � � ����

=NaN
=pi
� ѿ � `pi` (3.14159...) � � `NaN` (IEEE � � � ("Not a Number")) � Ϥ � � 餫
� � � � � � d � � � Ƥ � � ��������餬 ɬ�‫פ‬ʤ � � � С � ¾ � Τ � Τ ˺ � � � d � � 뤳�Ȥ�
� � ǽ � Ǥ � � � � � � ʲ � � Τ 褦�ˤ � � Ƹ� � � � �� � � � 뤳�Ȥ� Ǥ � � ��:

NaN = GPVAL_NaN
pi = GPVAL_pi

¾ �ˤ⤤ � � � Ĥ � � � � ѿ � � � 㤨�����÷ � � � � � Ϸ | � � Ǥ Υ ‫���������ޥ‬ƤϤ�


(fit) � ʤ ɤ � gnuplot � � ư � � � �֤˱�������d��� ٤ܺ����‫�ޤ‬
�ʲ � � � � � : `gnuplot-defined variables` � �

��� � � ѿ � V � � � � � � � d � � � Ƥ � � 뤫�ɤ����ϡ��� exists("V")




�ǥ � e å
� � � ������:
a = 10
if (exists("a")) print "a is defined"
if (!exists("b")) print "b is not defined"

� � �� � � § � ϡ � � � � � Υ ‫�ߥ���ץ‬8 � � Ʊ � � � ǡ � � � Ƭ � ϥ �
� ѿ �� � � ‫�ؿ‬
� � ե � � ٥åȤǡ� � � � θ � � ʸ � � ϥ � � � ե � � ٥åȡ����"_" ���Ȥ�� ����

� ƴ ‫ � � |����ؿ‬ϡ � ' GPFUN_' � Ȥ � � � � � Ƭ � � � � � � � � �� � ʸ � � � � � � � ѿ � Ȥ � � �


� � � Ѥ Ǥ � � ����

� �:
set label GPFUN_sinc at graph .05,.95

�ʲ � � � � � : `show functions`, `functions`, `gnuplot-defined variables`,


`macros`, `value` � �
C 3 ��� � (Arrays)
3 Arrays
?arrays
?cardinality
� � � � ϡ � � 桼���ѿ��ź���դ��ꥹ�ȤȤ � � Ƽ � � � � Ƥ � � ������Ĥ � � � � � �
� � � Ǥ ϡ � � � Ĥ � � ѿ � ˤ ϸ � � �� �
Ƥ����������ϡ � � � � Ȥ � � � p � � � < � Ū
� ˺ � � � Ƥ � � ʤ � � � Ф � � � � ����������. � � � � � � ǡ � � � � Υ � � � � � � � � ѹ � � �
� 뤳�ȤϤǤ � � ��� ��
� �� �٤Ƥ����Ǥϡ��ǽ������ (undefined) �Ǥ�����
� Ȥ � ɤ ξ � �� ǡ �� p � դ � � 桼���ѿ��������������Ǥ����ѤǤ������
��� � A ��� � �ǿ �ϡ� � � |A| � Ǽ � � $ Ǥ � � ����

� �:
array A[6]
A[1] = 1
A[2] = 2.0
A[3] = {3.0, 3.0}
A[4] = "four"
A[6] = A[2]**3
array B[6] = [ 1, 2.0, A[3], "four", , B[2]**3 ]

do for [i=1:6] { print A[i], B[i] }


1 1
2.0 2.0
{3.0, 3.0} {3.0, 3.0}
four four
<undefined> <undefined>
8.0 8.0

� � � : � � � � � � ѿ � ϡ � Ʊ � �� p � �֤�� �� � �����㤨�С � � � � 餫���� FOO


� Ȥ � � �� p � � � � � � �� ��
��� �� � 硢 FOO � Ȥ � � �� p � � ʸ � � � � � ѿ � � Ȥ � � ȡ � � � � �
� � � ˲ � ����

� � � � �� p � � `plot`, `splot`, `fit`, `stats` � � � ‫�ޥ‬ɤ�Ϳ��� 뤳�Ȥ � �


� � � �������ξ� 硢�����ź � � ե � � � � � � 1 � � � 1) �������
�‫ܤ‬
� ���� � � � � size � �
� �) � � � � � � � � A[i] � � � ե � � � � � � 2 � � � ‫ܤ‬Ǥ � � � 褦�ʥǡ����ե������ Ϳ � �� �
� � � Ȥ � Ʊ � � ˤ ʤ � ����

� �:
array A[200]
do for [i=1:200] { A[i] = sin(i * pi/100.) }
plot A title "sin(x) in centiradians"

� � � $ � � � p l ot � � � � ʣ � ǿ � � � � � � � ε � � � � ʬ � � � � Ѥ � � � � � ϡ � � � � � �� �
$2
� Ǥ Ϥ ʤ � � � A [ $ 1] � Ȥ � � ƻ � � Ȥ � � � ɬ � ‫�����פ�����ޤ‬:

plot A using (F1(real(A[$1])) : (F2(imag(A[$1]))

C 2 �ե � � � �
2 Fonts
?fonts
gnuplot � � � 켫켫뷿�ȤˤϤɤ�ʥե � � � Ȥ � ���ƤϤ��餺������ե � � � Ƚ � � �
� � � � ä Ƥ � � � $ � � ǡ � � � � κ � � � � ᤷ � ����� Ȥ˽ � �Ϸ | � � � ˰ ۤʤ� ��������
� Ǥ ϡ � ʣ � � ν � � Ϸ | � � � Ŭ � Ѥ � � � � ե � � � ȵ � � � � ˤ Ĥ � � � � � � $ � � ����������
� 夲����ΰʳ ��ν ��Ϸ | ��ǤΥ ե ���Ȥ λ ��Ѥ ‫˴��ؤ‬Ƥϡ����ν��Ϸ|��Υ�
Ȥ� � � � � � Ȥ �Ȥ �$ �Ƥ � � Ȥ� � � �

� � Ū �ˡ � � 㤨�� Adobe Symbol � ե � � � Ȥ Τ 褦������ ʥ ե � � � Ȥ � � ‫�ڤ��ؤ‬


� 뤳�Ȥǥ � � � ե � � ٥åȤǤϤʤ� � � � � � � � � 뤳�Ȥ � � ǽ � Ǥ � � � � � � � � ߤϡ �
UTF-8 � � � �����ǥ� � �� � � � Ѥ
�� �ơ� �ɬ
��
� � � �� � Ȥ � � � � � ˡ � � � � � � �����ʲ � � � � � : `encoding`, `locale` � �

C 3 cairo (pdfcairo, pngcairo, epscairo, wxt � � � � | � )


3 cairo (pdfcairo, pngcairo, epscairo, wxt terminals)
?fonts cairo
=fonts
=pdf
=png
=wxt
�� � � � ν � � Ϸ|� �ϡ � �ե � � � Ȥθ � � �ȥ � � � � � � � � ˳ � � � � fontconfig � ġ � � �
� � � � � � Ѥ � � ����
^ <a href="http://fontconfig.org/fontconfig-user.html">
fontconfig � 桼���‫˥ޥ‬奢��
^ </a>
�� � Ȥ � � Ƥ �$�� � � � � � � � � � g� nϡu plot ǰ � � � Ū � �� p � 䥵�����ǥե � � � Ȥ �
� ᤹‫׵‬
᤹᤹‫ ׵‬뤳�Ȥ� � ǽ � ˤ � � � ɬ � ‫פ‬ʤ � � fontconfig � � Ʊ � � Υ ե � � � Ȥ � � � � Ѥ �
᤹‫�׵‬
� � � 뤳�Ȥ� Ǥ � � � Τ ǡ � �� � � � ǽ � Ϥ ʬ � Ǥ礦���
�� ʲ� � ϡ � ¿ ʬ � � � � � � ⵡ
ǽ � � � ��:
set term pdfcairo font "sans,12"
set term pdfcairo font "Times,12"
set term pdfcairo font "Times-New-Roman,12"

3 gd (png, gif, jpeg, sixel terminals)


?gd
?fonts gd
=fonts
=png
=jpeg
=gif
=sixel
png, gif, jpeg, sixelgd ���Ϸ | ��Υ ե ���Ƚ ���ϡ ����� 饤�֥�� libgd
�ˤ �ä ƹ Ԥ�� ����libgd �ϡ ����� 5 ����δ �� ‫ܥ‬ե � � � Ȥ � ľ � � � � �
����
��� ��: `tiny` (5x8 �ԥ �����) , `small` (6x12 �ԥ �����) , `medium`,
(7x13 Bold), `large` (8x16), `giant` (9x15 �ԥ �����) �������Υ ե ����
��� 礭�����ѹ� � � � � � � � ž � � � � � ��뤳�ȤϤǤ����� � �Ѥ���‫ݤ‬ϡ �
� ���
`font` ����� �ɤ ˾ ����� �Υ ��� �ɤ ���� 
� ��� ��������:
set term png tiny

¿ ���Υ ����ƥ �ǡ �l i bgd �� Adobe Type 1 �ե ���� (*.pfa) �� TrueType


�ե ���Ȥ ‫ؤ‬Υ ���������� ���������ξ
�� � � ��ե ���ȼ ��Ȥ �p �ǤϤ ʤ���
�ե ���ȥ ե ������p ��" < face> {,<pointsize>}" �η| ���Ϳ �� ����
�����ǡ �< f ace> �ϥե ���ȥ ե �����Υ ե �ѥ � ����� ���ϴĶ ��ѿ�
GDFONTPATH �ǻ ‫������ؼ‬ǥ � � 줿쥹뤿�ȥ�ΰ�Ĥ���Υե���������Ƭ��ʬ��
�Τ ���� 줿줬뤳�Ǥ �����ä ơ �' s et term png font "Face"' �ϡ �
< ����ǥ �� 줿쥹뤿�ȥ�>/Face.ttf �� <����ǥ��줿쥹뤿�ȥ�>/Face.pfa �Ȥ����ե�
���� �Υ ե ���Ȥ �õ �����Ȥ �� �����㤨�С �GDFONTPATH ��
`/usr/local/fonts/ttf:/usr/local/fonts/pfa` ��� ���Ƥ�����ϡ��ʲ�
�Υ �� ‫�ޥ‬ɤ� 2 � � Ϥ Ĥ�� Ĥ� � � � Ʊ ����� Ȥˤʤ � ��:
set term png font "arial"
set term png font "/usr/local/fonts/ttf/arial.ttf"
set term png font "Helvetica"
set term png font "/usr/local/fonts/pfa/Helvetica.pfa"
�ǥե ���Ȥ Υ ե ���ȥ �������Ʊ ���˻ �� �� � ˤ�:
set term png font "arial,11"

TrueType �� Adobe Type 1 �ե ���Ȥ ϡ ���t ��� 礭�����ѹ� � � � ž � � � � ǽ � �


����" s et term" ��� ‫�ޥ‬ɤǥե �� � Ȥ� � � ��ʤ��ä ��� 硢 gnuplot �����
�ǥե ���ȥ ե ���Ȥ ��� �꤬���� 뤫�ɤ�����
� Ĵ٤뤬뤿뤿���Ķ� �ѿ�
�GNUPLOT_DEFAULT_GDFONT �� Ȥ �� ����
C 3 postscript ( ��� ‫��ץ‬벽 postscript *.eps ��)
3 postscript (also encapsulated postscript *.eps)
?fonts postscript
=fonts
=postscript
=eps
PostScript �ե ���Ƚ ���ϡ �� ‫� �� �ץ‬ ɽ �����ե Ȥ ��Ԥ �� �����⤷������
���Υ���ԥ 塼���˥ե� � � Ȥ� ��� ‫ڤ‬ʤ��Ƥ⡢gnuplot ��5���� PostScript
�ե����뤬졼롢 �
���ϥ �� ‫��ץ‬벽 PostScript (*.eps) �ե������8.�Ǥ������
gnuplot ��ñ�˽��ϥե�������˥ե���Ȥ�p�Ȥ�������$��ǡ�� ‫��ץ‬
Ȥ����ɽ�����եȤ�����p����ե���Ȥ � �Ĥ �� 뤫���뤳�Ȥ���� �
�������

PostScript �‫� �� �ץ‬ ɽ�����եȤϤ��٤ơ� ɸ� � Ū� � Adobe � ե� � � ȥ� � å�


`Times-Roman`, `Helvetica`, `Courier`, `Symbol` ���ΤäƤ���Ϥ��Ǥ���
¿ʬ� � � � ¾� ˤ� ¿� � � Υե� � � Ȥ� � Ȥ� � � 褦�ˤʤäƤ���Ȼ ‫���������פ��ޤ‬
������Υե���ȥ��åȤϤ��ʤ��Υ����ƥ��‫����� �� �ץ‬ ˰� ¸� � � ����
gnuplot �ϡ�������Τ���� � ���
�� ˤ⤷�����gnuplot
����.���� *.ps
�� *.eps ���Ϥϡ����ʤ����‫׵‬ᤷ���ե � � � ��� � ñ � � Ƥä˻� � � $ � � Ǥ � � �

��äơ�
set term postscript eps font "Times-Roman,12"
�ϡ����٤ƤΥ ‫� �� �ץ‬ ɽ�����եȤ�Ŭ�‫ڤ‬ʽ��Ϥ��.�������
����
set term postscript eps font "Garamond-Premier-Pro-Italic"
�ϡ�5���� PostScript ������ϥե������� . ��� ������������ü�ʥ�
����Ȥ Ȥ��
���� � ���Τǡ � � � � � Υ ‫� �� �ץ‬
ɽ�����եȤ������‫׵‬ᤷ��������
��Υե���Ȥ�ɽ���Ǥ��ʤ��Ǥ��礦������ξ�����ʥե���Ȥ����Ѥ���
�����

������������� �� ե � � � Ȥ � � � ϥ ե � � � � � � � � � � � � � ǡ � � ɤ � ʥ ‫� �� �ץ‬
�⤽���Ȥ�� 褦�ˤ��뤳�Ȥ��ǽ�Ǥ�������ˤϡ����ʤ��Υ����ƥ��Ŭ��
�ʥե���ȵ��ҥե����뤬����� 뤳 Ȥ�ɬ�‫פ‬Ȥʤ�����������ˡ�ǥե���Ȥ�
������硢���� Υ 饤���� � � ɬ�‫פ‬Ȥʤ�ե���ȥե�����⤢�뤳�Ȥ�
��դ��Ƥ��$�������� �ܺ٤����$���ˤĤ��Ƥϡ��ʲ�����:
`postscript fontfile`��
C 2 � ‫��إ�פ‬Ѹ� ���(Glossary)
2 Glossary
?glossary
���Υɥ������t�Τ��Ϥäơ��Ѹ�˴‫�����ؤ‬-�ΰ ‫�����ݻ‬Ƥ���
�������������λ�ߤϴ�t�ˤ�.��Ƥ����� ����
� �� ���
`gnuplot` ������
� �� ��ƿʲ����Ƥ���� 褦�ˡ����‫�ޥ‬ɤ 䥭����ɤ� � p�⤽�Τ 褦�ʴ�t
-���ӽ�뤫�Τ 褦�˺� � Ѥ � � � � � � Ƥ� � 뤫�� Ǥ ������Υ�������� Ǥϡ�
�����Υ�����ɤΤ����Ĥ����ɤΤ 褦�˻Ȥ��Ƥ���� 뤫 ��� $������

"�‫( ���ڡ‬page)"��"ɽ������ (screen)"��"�����Х� (canvas)" �ϡ�


`gnuplot` ������������ǽ���ΰ�t�Τ�‫����ؤ��ޤ‬ǥ � � � � ȥ å ‫פ‬ǤϤ ��� ϥ�
����ɥ�t�Τ�‫�ؤ����ץ‬å��Ǥϡ�����λ�t�Ρ�svga �⡼�ɤǤϡ����
��������� ��
t �Τ� ‫���ؤ��ޤ‬

ɽ������ϡ���ġ�����Ϥ���ʾ�� "������r� (plot)" ��� �ߤ�����


����r�ϰ�Ĥβ���ɸ�Ȱ�Ĥνĺ�ɸ����d���������;�� (margin) ��
˽ �������� ��ʸ���� (text) Ʊ�ο������ϼº‫ݤ‬ˤ��ξ��ɽ������Ƥ�
��ɬ�‫פ‬Ϥ�������

������r�ϰ�Ĥ� "�����" ��� �ߤ�������դϰ� Ĥβ� � � ɸ� Ȱ� Ĥν�


��ɸ����d��������������ϼº ‫ݤ‬ˤ��ξ��ɽ������Ƥ���ɬ�‫פ‬Ϥ����
����

����դϰ�Ĥ ���Ϥ���ʾ�� "��� (line)" ��� �ߤ�������ϰ�Ĥδ�


�����ϥǡ�������Ǥ����Ѹ� "line" ��� r 襹������ Ȥ��Ƥ�Ȥ������
뤳��
����ˤ����Ѹ�� "ʸ����ΰ�� (a line of text)" �Τ 褦�˻Ȥ��
�⤢������¿ʬʸʸ
� � � 餽���
϶���Ǥ���Ǥ��礦��

��ĤΥ���վ��ʣ��ζ���Ϥ��줾 �� p���d ��������p�ϡ����ζ�


���ɽ���˻Ȥ����r 襹������
Υ���‫�ץ‬ȤȤ�� "���� (key)" ��˰���
ɽ��������������ϡ����ˤ � "ɽ �� (legend)" �Ȥ �Ƥ Ф �����

�Ѹ� "�����ȥ� (title)" �� `gnuplot` �Ǥ�ʣ��ΰ���ǻȤ����������


�ɥ�����ȤǤϤ����������뤬뤿뤿 ��
ˡ����ƻ�Ȥ��� "�r�� (plot)"��
"����� (line)"��"����� (key)" ��Ƭ�ˤĤ�����⤷ �����
2 �����Υ���դ� 4 �Ĥ �Ǥ θ ��Ф��դ�����뼴 � ��
Ĥ��Ȥ��Ǥ��������
��� 4 �Ĥμ���p�Ϥ��줾�졢������r�β��ζ����˱褦��� Ǥ��� "x"��
���ζ����˱褦��"y"����ζ����˱褦��"x2"�����ζ����˱褦��"y2" ��
�ʤäƤ�������ʲ����� : `axes`��

3 �����Υ���դ� 3 �Ĥ �Ǥ θ ��Ф��դ�����뼴 (`axes`) "x","y","z" ��


��Ĥ��Ȥ��Ǥ�������ɤ�����μ��˴‫��ؤ‬Ƥ⤽�줿줬줬 � �
� �Ǥɤ� � ˽
վ� �˽
�뤫��Ҥ ٤뤳�ȤϤǤ����� � �ϡ�`set view` �ǥ���դդ�����
���
� �� դ � � � դ
� �
�ѹ��Ǥ��뤫�� Ǥ���
�ǡ����ե�����˴‫�����ؤ‬$ Ǥϡ �� Ѹ � "�� (record)" ����褷��� ե� � � � �
��ΰ�Ԥ�ʸ�����ʤ�
� �a �����ʸ������ʸ��Ʊ� Τδ � ֤ ʸ��� �
� �
� ‫���ؤ‬
���Τ˻Ȥ������"�� (point)" �ϹԤ�����Ф�����ĤΥǡ����Ǥ����ǡ�
֥ � å� (block)" �ϡ���ԤǶ��‫�ڤ‬줿 Ϣ³����ʣ��ι뽸
���� "� Ԥ���ʤ
��Ǥ����ǡ����ե�����ε��$���� "line" �����Ȥ������ϡ�����ϥ�
��å�����ʬ�����‫�"���ؤ��ޤ‬ǡ����Υ֥�å� (data block)" �Ȥ�������
�ϡ�����饤�� ǡ � � � � ��p � դ � �֥� å���‫��ؤ‬Τˤ�Ȥ��Ƥ�������ʲ�
����: `datablocks`��

(����: ������� � ������˽ ǤϤ ����˽�˽��� Ƥ 褦���Ѹ� � � � � Ϲ θ�� �


��ƤϤ��餺���� äƺ�����������ǽ-������������ � �ˤϸ�ʸ��
�Ȥ��٤��Ǥ�� 礦�� )
C 2 ����饤�� ǡ � � � � ȥ ǡ � � � �֥� å� (inline data and datablocks)
2 inline data and datablocks
?inline data
?inline
?datablocks
gnuplot �Υ��‫����ޥ‬Ϥ���˥ǡ������������Ȥ 2 � ߤ �����Ѱդ����
���‫����ޤ����ޤ‬ü�ե����� '-' �� plot ���‫����Ϳ�����ޥ‬ȡ�����
plot ���‫�ޥ‬ɰʲ���³���Ԥ�����饤�� ǡ � � � � Ȳ ᤵ � ��
�����ʲ����� :
�`special-filenames`��������ˡ�� �� ����ǡ����ϡ�����
plot � �� ‫��ޥ‬
�ǰ��٤������ѤǤ�� ����

� ⤦��Ĥϡ��ҥ��ɥ�����ȤȤ���p�դ��Υǡ����֥� å�����d�����
ˡ�Ǥ�������p�դ��Υǡ����ϻĤ�Τǡ�ʣ��� plot ���‫�ޥ‬ɤǻ��ȤǤ�
�������:
$Mydata << EOD
11 22 33 first line of data
44 55 66 second line of data
# �ǡ����ե�����Ʊ�����Ȥ � � � � �� ⵡ ǽ����
77 88 99
EOD
stats $Mydata using 1:3
plot $Mydata using 1:3 with points, $Mydata using 1:2 with impulses

�ǡ����֥� å��ϡ�¾���ѿ�ȶ�����뤬뤿뤿 �� ǽ��ʸ��� $ �ˤ���ɬ


ˡ��
�‫����פ�����ޤ‬ǡ � � � � ν � � � � ζ � � ‫�����( �ڤ‬Ǥ� EOD) �ϡ�Ǥ�դΥ����
���٥åȡ� � � ��ʤ� ʸ
� ��� ǹ����
����

���‫` ��ޥ‬undefine` ��Ȥ��С���¸����p�դ��ǡ����֥� å�����Ǥ�


�����`undefine $*` �ϡ����٤Ƥ�p�դ��ǡ����֥� å�����٤˺ � � �
����
C 2 �����֤� (iteration)
2 iteration
?iteration
?iterate
Ffigure_newsyntax
gnuplot �С������ 4.6 �ˤϡ������֤� (iteration) ���‫�ޥ‬ɤ�֥� å���
¤� �� ��� if/else/while/do ��Ƴ�����Ƥ�� �����ʲ����� : `if`,
`while`, `do`��ñ��ʷ����֤�� ϡ����‫` ��ޥ‬plot`, `set` �����ѤǤ���
�����ʲ�����: `plot for`��ʣ��Υ��‫�ޥ‬ɤ����������Ū�ʷ����֤�� ϡ�
���ǾҲ ��֥� å���¤�����Ѥ��뤳�ȤǹԤ��������Ϣ���뺹줬뷿 ��
����
ǽ��
�������ΰʲ��⻲�� : `summation`���ʲ��ϡ������ο�������ʸ��ǽ��
�����Ĥ����Ѥ�����Ǥ�:
set multiplot layout 2,2
fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x)
do for [power = 0:3] {
TERMS = 10**power
set title sprintf("%g term Fourier series",TERMS)
plot 0.5 + sum [k=1:TERMS] fourier(k,x) notitle
}
unset multiplot

=iteration-specifier
�����֤��ϡ��ʲ��Τ 褦���ʽ ˤ�
뷿뤿뤷
������� )�椷�����
�֤

for [<var> in "string of N elements"]

�����

for [<var> = <start> : <end> { : <increment> }]

�ǽ�νǤ�
� <var>
ν �ʸ�����ѿ�ǡ���� θ�� ��ν˻ ν �
� ν �� �
ʸ����˴���
�� 1 ���‫ ���ܤ‬N ���� ‫ܤ‬Ǥ � ñ�� ʸ �
� ��
�������Ƽ������ Ȥ
2 ���‫ܤ‬ν ν Ǥϡ
ν�<start>, <end>, <increment> ��0�� 0���‫�����ޤ‬
� � �
���Ǥ���

?scope
=scope
�����֤��ѿ�Υ������� (�����ϰ�)
�����顢���� �֤�� μ¹ԥ֥�å��⤫���³Ū���ѹ����뤳�ȤϤ�
���� ���

���
��� � ��֤�� ѿ�����֤��� �
���
� �� p����� Ƥ ä �����Ȥ���� 顢����
� ��
�����֤��ν�λ�����‫����ݻ�ޤ������ޤ‬㤨�С��ʲ�����ϡ�������
����� 10 ��Ԥ������θ� i ���ϺƤ� � "A"
� Ȥʤ� ����

i = "A"
do for [i=1:10] { i=10 }

C 2 �������������� (linetypes)
2 linetypes, colors, and styles
?linetypes
?colors
��Ť��Ǥ� gnuplot �Ǥϡ��ƽ��Ϸ|��� "��� (linetype)" � � ������Ѱդ�
��Ƥ��ơ������Ͽ����$������/����Υѥ�������
� � Ͽ������/�������

�礻�ǰ 㤤�� ɽ�����Ƥ�������������ο������/����Υѥ�����ϡ�����


�|��ۤ���� Ʊ����Τˤʤ�Ȥ����‫ݾڤ‬ϲ��⤢�� ����Ǥ �������¿���� Ʊ
����������/��/��/��/�忧/��������Ѥ��Ƥ��
���������θŤ���ư�ϡ���
�� `set colorsequence classic` ��j��Ǥ��������gnuplot �С������ 5
�Υǥե���Ȥϡ����Ϸ|�����8 �� � �˶��‫������� ط‬Ѥ������

��� (linetype) ��°-���¤Ӥϡ�����Ū�����ե�����Τ����줿줬뤳 �


ˤ��
�Ƥ���˥������‫�����ޥ‬ǽ�Ǥ����ʲ�����: `set linetype`�����
�˽��ե�����Υ���‫ץ‬뤬����� Ĥ��Ѱդ���Ƥ������

����ν��Ϸ|����Ф�������°-�θ��ߤξ��֤ ϡ����ν��Ϸ|�������� �
���Ȥ� `test` ���‫�ޥ‬ɤ�¹Ԥ��뤳�Ȥdz�ǧ�Ǥ��
����

��Ĥ��r 襳�‫����ޥ‬Ǥ δ ‫��ؿ‬ǡ � � � � ե � � � � � � Ϣ ³ � � � � � ¤ Ӥ ˤ ϡ � � � � ߤ�


�ǥե���Ȥ���� �� ���
� ��� � 郎���֤ ˳� � � � Ƥ� � �����ġ��δ ‫�ؿ‬ǡ � � �
�ե����뤬졼롢 � Ϥ���¾���r����Ǥ��Ф������ϡ������r 襳�‫�ޥ‬ɾ� � � �
���
��Ū�����°-������뤳�ȤǾ� �� Ǥ�� ����

��:
plot "foo", "bar" # � � � 1, 2 � � 2 � ե� � � � � � � r�
plot sin(x) linetype 4 # � � � 4 � � � � �

� � �� ˡ� � � � λ� � � ϡ� � � � �� p� � � � RGB (� ֡���С� � � ) .ʬ� � � � HSV (� � � ꡢ� �


� ١�����) .ʬ� � � � � � � ߤ� pm3d � ѥ � åȤ˱� ä� � � ɸ� ǹԤ � � ‫���ޤ‬

� � :

plot sin(x) lt rgb "violet" # gnuplot � λ� Ŀ�� � ΰ� �


plot sin(x) lt rgb "#FF00FF" # � <� Ū� � 16 � � RGB 3 � � � �
plot sin(x) lt palette cb -45 # � � � ߤΥ ѥ� åȤ� cbrange � �
# -45 � � � б� � � � 뿧
plot sin(x) lt palette frac 0.3 # � ѥ � åȤ� � б� � � � 뺹쵭뾮�
���

� ʲ� � � � � : `colorspec`, `show colornames`, `hsv`, `set palette`,


`cbrange`� � � ʲ� � ⻲�� : `monochrome`� �

� � � (linetype) � ˤϡ� � � � /� � � � Υѥ � � � � � � � Ӥ Ĥ� � � � Ƥ� � ‫�������ޤ‬


Ȥ��� � 櫓�ǤϤ� � � ‫���ޤ‬gnuplot � С� � � � � � 5
� ٤Ƥ ν� � Ϸ|� � Ǥ � � 줿줬줬
� Ǥ ϡ� � � � � Ȥ� � � Ω� � � � � /� � � � ѥ � � � � � � � � � Ǥ � � ‫����ޤ‬ʲ� � � � � :
`dashtype`� �

C 3 � � � � � � (colorspec)
3 colorspec
?colorspec
?rgbcolor
=colors
?lc
?linecolor
?tc
?textcolor
¿� � � Υ� � ‫�ޥ‬ɤǡ � � < � Ū � ʿ � � λ � � � � Ȥ � ʤ ä � � � � � � � ��뤳�Ȥ� � Ǥ �
� ‫���ޤ‬

� � :

... {linecolor | lc} {"colorname" | <colorspec> | <n>}


... {textcolor | tc} {<colorspec> | {linetype | lt} <n>}

<colorspec> � ϰʲ� � η|� � Τ� � � � 줿줬뤳


Ǥ��:

rgbcolor "colorname" # � � : "blue"


rgbcolor "0xRRGGBB" # 16 � ʿ� �� � � � � ʸ� � � �
rgbcolor "0xAARRGGBB" # 16 � ʿ� �� � � � � ʸ� � � �
rgbcolor "#RRGGBB" # x11 � |� � � 16 � ʿ� ʸ� � � �
rgbcolor "#AARRGGBB" # x11 � |� � � 16 � ʿ� ʸ� � � �
rgbcolor <integer val> # AARRGGBB � � ɽ� � 0� � � �
rgbcolor variable # � � ϥե� � � � 뤫�� 0� � �� � � ɤ ߹���
palette frac <val> # <val> � � 0 � � � � 1 � � � �
palette cb <value> # <val> � � cbrange � � � ϰ Ϥ � � �
palette z
variable # � � ϥե� � � � 뤫 �� �ֹ��� ɤ߹���
bgnd # � ‫ط‬ʿ�
black

<n> � ϡ � � � � � � � � (linetype) �ֹ椬�Ȥ� � � � � �� � � � ‫����ޤ‬ʲ � � � � � :


`test` � �

"colorname" � � gnuplot � � � � � � ˻ � ä Ƥ � � 뿧��� p � Τ � � d ΰ � Ĥ � � � �


� ‫���ޤ‬ � p �ΰ � � � ˴
� �� � ‫��ؤ‬Ƥϡ � �ʲ � � � � � : `show colornames` � �

16 � � � � � ϡ � � � � � � � � դ � � � "#RRGGBB" � � "0xRRGGBB" � ηd � ��� Ϳ 뤳�Ȥ � � �


� � � ‫���ޤ‬RRGGBB � ϡ � � � � � �֡��� С � � Ĥ � . ʬ � � �� � � � � � � � 줾�� 00 � � � � FF
� ‫ޤ‬Ǥ � � ϰ � � � Ǥ ʤ � � � Ф � � � � ‫����ޤ‬㤨�С� � ‫ � ) � � ( ���ޥ‬ϡ � � Ǥ � � $ 뤤
� � + � Ǥ � � $ 뤤�ġ � � ʤ Τ � "0xFF00FF" � � ɽ � � � �� ����16 �ʿ � �
(255 << 16) + (0 << 8) + (255) � � �� � � � Ƥ � � ‫���ޤ‬

"#AARRGGBB" � ϡ � R GB � � � ξ �� ӥ å Ȥ˥ � � � ե � � � (Ʃ � � - ) � � � Ĥ � � Ƥ � � 뤳
� Ȥ � �� � � � ‫�������ޤ‬ե��� 0 �ϴ�t����Ʃ�?��Ǥ��뤳�Ȥ� ��� � � � � � �
� � "#00RRGGBB" � � "#RRGGBB" � � Ʊ � � � ˤ ʤ � ‫�������ޤ‬ե� �� ��255 (FF) �
� � t � � Ʃ � $ Ǥ � � 뤳�Ȥ � ��� � � ‫ ` � � � `���ޤ‬: � � � λ � � � ˡ � Υ � � � ե � �� ΰ � � �
�ϡ � � � p � � � Ǥ � gnuplot � β � � � � r � ⡼ � � "with rgbalpha" �ˤ � � � � � ξ �
� � � ȿ � Ф ˤ ʤ ä Ƥ � � ‫���ޤ‬

� � � 顼�ѥ�å ȤȤϡ ���������ʸ � � �ۤǡ � ñ � � ο �餫��


�� �
��� � � � ο � � ˳ �
� � � Ť � � ‫�����ޤ‬ˤ� � Τ 褦��2 � Ĥ � � б � � դ � � � � � � Ϥ � � d ‫���ޤ‬
`palette frac` � � 0 � � � � 1 � ‫ޤ‬Ǥ�
ξ � � � ��
��� � � 顼�ѥ�å Ȥ �t �ϰ Ϥ���
� � � դ � � � � Τ ǡ � ` p alette cb` � ϡ � � � � � � � � ϰ Ϥ � Ʊ � � � � � 顼�ѥ�å Ȥ ‫��س‬
� � Ƥ � � Τ Ǥ � � � � ʲ � � � � � : `set cbrange`, `set colorbox` � � � � � � � � � б �
� դ � � Τ ɤ d 餫��ä Ȥ ơ� � � � ߤΥ ѥ�å Ȥ�������j �ӽ Ф ����Ȥ ��Ǥ ���
��� �


�"palette z" � ϡ � � � � r � � ʬ � � � r � � � � Ǥ � å �� � б � � Ť � � �
z � � �� Ȥ ѥ �
��Ƥ � � � cbrange � � � ϰ Ϥ � � б � � Ť � � ‫�������ޤ‬ˤ� ꡢ 3 � � � � � ζ � � � � � � �
� ˱ � ä ƿ � � � � 餫��� Ѳ������뤳�Ȥ� � Ǥ � � ‫�������ޤ‬ϡ � 2 � � � � � r � ǡ � � �
� � å � �� � � ɲ ä � � � ǡ � � � � � � � � ɤ ߹��‫��ޤ‬ƿ � � դ � � � � � Τ ˤ � Ȥ � � ‫� � � �( �ޤ‬
� Ƥ � 2 � � � � � r 襹����������� 뤬 ɲ� � � � ǧ � � � � � � 櫓�ǤϤ��� ‫� �)���ޤ‬
=bgnd
=black
� ü �ʿ � � � � �꤬ 2 � Ĥ � � � ‫ޤ����ط‬ʿ ��� `bgnd` �ȡ�` black` �Ǥ���
4 background color
?background
?bgnd
¿ � � � ν � � Ϸ | � � ǥ � � � դ � � ‫ط‬ʿ����<�Ū������Ǥ��‫������ޤ‬ � ����
(linetype) `bgnd` � Ϥ � � ο � � � � r 褷�‫` ���������ޤ‬bgnd` � Ͽ � � Ȥ � � Ƥ � ǧ � �
� � � � ‫���ޤ‬
� �:
# �ʲ � � ϥ � � � � Х � � ΰ � � � ʬ � � � ‫�ط‬ ʿ�� Ǿ� �� �� 뤳�ȤǾõ � ‫���ޤ‬
set term wxt background rgb "gray75"
set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd
# �ʲ � � � x � � � ˱ � ä � �ָ���� ʤ � � � � � � � d � � ‫���ޤ‬
plot 0 lt bgnd
4 linecolor variable
?linecolor variable
?lc variable
?textcolor variable
?tc variable
?variable linecolor
�`lc variable` � ϡ � � � � ΰ � � � ϥ�
ǡ� � Ĥ � �� � ɤ (linetype)
� � �� � � � � � �
� ֹ�Ȥ� � ƻȤ � � � � � � � � � � � ° � � � 뿧�� Ȥ� � 褦�‫�����ؼ����ޤ˻����ץ‬
� ä Ƥ � � � ϡ � ` u sing` � � � � Ҥ � � б � � � � � � � λ � � � � � ɲ ä � ɬ � ‫פ‬Ȥ � � ‫���ޤ‬ ʸ� �
� ο � � � Ʊ �� ˡ� `tc variable` � ǻ � � � Ǥ � � ‫���ޤ‬

� �:
# �ǡ � � � � � 3 � � � ‫�ܤ‬ġ � � � � $ ˿ � � � � � � � Ƥ � Τ ˻ � � �
plot 'data' using 1:2:3 with points lc variable
# � � Ĥ Υ ǡ � � � � ե � � � � � ˤ � ʣ � � Υ ǡ � � � � � � � � � � � 뤳�Ȥ � � � ǽ � ǡ �
# ��� � � � 2 � Ԥ ζ � Ԥ � ʬ Υ � � � � Ƥ � � ‫����ޤ‬ ġ� �Υǡ � � � � � � � ˤ �
# index �� � � � � � � Ƥ � � Ƥ � � � ( �ʲ� � � � � : `index`) � � u sing � � � � �
# column(-2) � Ǽ � � $ Ǥ � � ‫����ޤ‬ ʲ � � � � � : `pseudocolumns` � � � ʲ � � � � �
# � � -2 � � column �� � Ȥ ä ơ � � ġ � � Υ ǡ � � � � � � � � �ۤʤ� � � � � � � r �
# � � � ‫���ޤ‬
plot 'data' using 1:2:(column(-2)) with lines lc variable

4 rgbcolor variable
?rgbcolor variable
?lc rgbcolor variable
?tc rgbcolor variable
?variable rgbcolor
?variable textcolor
� � � � դ γ ƥ ǡ � � � � ! � � � � ʬ � � � ‫��ޤ‬ϳƥ�٥�ˤ� � 줾�� �ۤʤ 뿧�������
� 뤳�Ȥ� � Ǥ � � ‫`���ޤ‬lc rgbcolor variable` � ϡ � � ǡ � � � � ե � � � � � γ ƹ Ԥ � � �
RGB � � � ξ � � � � � ɤ ߹���褦�‫�����ؼ����ޤ˻����ץ‬äƤ � � � ϡ �
`using` � � � � Ҥ ˤ � � � б � � � � � � � λ � � � � � ɲ ä � ɬ � ‫פ‬Ȥ� � � � � � � � � � 24-bit
� | � � � RGB � � 3 � � � Ȥ Ǥ � � � Ȥ ߤʤ� � � ‫��������ޤ‬ � �ǡ � � � � ե � � � � 뤫�� ľ
� � Ϳ�� � � � � ϡ �� � � � Ϻ � Ǥ� ñ � ʷ | � � � 16 � � ����Ϳ � � ‫� ( �ޤ‬ʲ� � � � � :
`rgbcolor`) � � � � � � ǡ � � ʲ � � � � � Τ 褦��24-bit RGB � � � Ȥ � � � ɾ � d � � � � �
� � � ʿ � � `using` � � � � Ҥ � � � � 뤳�Ȥ� Ǥ � � ‫���ޤ‬ʸ� � ο � � � Ʊ �� ˡ �
`tc rgbcolor variable` � ǻ � � � Ǥ � � ‫���ޤ‬

� �:
# 3 ��� � �r �ǡ� � � x,y,z � � ɸ � � � б � � � � � �֡���
С� � Ĥ � .ʬ � � � Ŀ �
# � ΤĤ � � � � $ � � � � �
rgb(r,g,b) = 65536 * int(r) + 256 * int(g) + int(b)
splot "data" using 1:2:3:(rgb($1,$2,$3)) with points lc rgb variable

C 3 �� �/� � � � � (dashtype)
3 dashtype
?dashtype
=dashtype
gnuplot � С � � � � � � 5 � ǡ � ` linecolor` � � `linewidth` � � Ʊ �� ˡ � � � � / � �
��ѥ� � � � � (`dashtype`) � � � ƶ � � � � � ° - � Ȥ � � � � � Ω � � � ‫���������ޤ‬Τ 褦
�ʡ � � � � � � � ν � � Ϸ | � � � � � � � � �� � � � � � ����� ��ɤ
ʥ⡼ �Ȥ���ƻ � � � � �� �ɬ�‫�פ‬
� � � � ‫��ޤ‬ ��
� �� � ʤ � a � `set term <termname> {solid|dashed}` � Τ
褦� ‫�ޥ‬ɤϸ�� ߤ�� � 뤬뤬뤵
� ʥ� ��
‫����ޤ‬ С� � � � � � 4 � Ѥ˽ �� �� �
Ť ������ ‫ץ‬Ȥ ‫�ؤ‬
� � � � ߴ�-� � ɬ � ‫פ‬ʾ��ϡ��ʲ��Τ 褦�ʽ�������ѤǤ��‫�ޤ‬:

if (GPVAL_VERSION >= 5.0) set for [i=1:9] linetype i dashtype i


if (GPVAL_VERSION < 5.0) set termoption dashed

� � � ٤Ƥ � � � ϡ � �ۤ� �� ˻����ʤ� � � С � ` dashtype solid` �Ȥ � � � ° - � � � �


� ‫���������ޤ‬ ���‫` ��ޥ‬set linetype` � � � � � � � � � � � � ѹ � � �
Υǥե � � � � ��
� � � θ � Υ � � ‫�ޥ‬ɤǻȤ���褦�ˤǤ � � ‫��ޤ����ޤ‬ϡ � `plot` � � ¾ � Υ � � ‫��ޥ‬
� ΰ � � � ʬ � Ȥ � � ƻ � � Ѥ � � � � � � � � / � � � � η � � � � � � Ǥ � � ‫���ޤ‬

� �:
dashtype N # � � z Ѥ � � � � / � � � � � � � �ֹ�ǸƤӽФ �
dashtype "pattern" # � � (.) � � � (-) � � � (_) � ȶ � � � � � Ȥ ߹��
# � �ʸ � � � � ˤ � � � � �
dashtype (s1,e1,s2,e2,s3,e3,s4,e4) # 1~4 � Ĥ � < � � � Ĺ >,< � � � � Ĺ >
# � � � Ȥˤ � � � � � / � � � � ѥ � � � � � � � �

� �:
# 2 � Ĥδ 1 ������� ��‫ � � ؿ‬Ȥ � � � dashtype � Ƕ � � �
plot f1(x) with lines lt 1 dt solid, f2(x) with lines lt 1 dt 3
� � � � � Ĥ � � ν � � Ϸ | � � ϡ � � � � 줿줬줬 �����z

�� �Ѥ����/����ѥ�����ˡ��桼
� � � � e ѥ � � � � � � � ɲ ä � � 뤳�Ȥ � �‫��ݡ‬Ȥ � � Ƥ � � ‫���ޤ‬

� �:
plot f(x) dt 3 # � � � Ϸ| � � λ �ĥѥ � � � � � 3 ��� � �
plot f(x) dt ".. " # � �Ū � ʥ ѥ � � � � � � � .
plot f(x) dt (2,5,2,15) # Ʊ���ѥ������� �� �ɽ��
set dashtype 11 (2,4,4,7) # � � � ѥ � � � � � � �ֹ�ǸƤӽФ���褦���
plot f(x) dt 11 # ���ѥ � � � � � � Ȥä� �r �

� � � / � � � � ѥ � � � � � � ʸ � � � � ǻ � � �� �� 硢�gnuplot � Ϥ � � � � < � � � Ĺ >,


< � � � � Ĺ > � � � Ȥ � � � � � Ѵ � � � � ‫����ޤ‬ɥå � "." � � (2,5) � ˡ � � % å � � � "-" � �
(10,10) �ˡ� � � � "_" � � (20,10) �ˡ� � ‫ � � " " �����ޤ‬ľ p � � < � � � � Ĺ > ��
�� � 10 � � � ɲ ä � � ‫������ޤ‬ξ � 硢��� ‫` ��ޥ‬show dashtype` � ϡ � � � � � ʸ � �
� � � � Ѵ � � � ο � �� � � � � ξ � � � ɽ � � � � � ‫���ޤ‬

C 3 linestyles � � linetypes
3 linestyles vs linetypes
?linestyles vs linetypes
`linestyle` � ϡ � °- linecolor, linewidth, dashtype, pointtype � ΰ �
Ū � � � Ȥ ߹�碌�ǡ� � � � � ϥ � � ‫` ��ޥ‬set style line` � � � � d � � ‫�������ޤ‬
linestyle � � � � d � � � � � 1 � � plot � � � ‫�ޥ‬ɾ�Ǥ � � � � Ȥ ä ơ � 1 � ġ � � �
� � � Ϥ � � ¿ � � � � � r � � � � Ǥ θ � � � � ‫ � �)�ܤ‬Ǥ � �
‫����ޤ‬$ � � � � � � � С � � � � � � � � � �
linetype � � � � � ³ - � � � � � � Ρ � � ȸ $ � � � � Ȥ � � Ǥ � � � Ǥ � � 礦��
`linetypes` � ϱ � ³ Ū ( � < � Ū �ˤ � � � � � � � � d � � � ‫ޤ‬Ǥ � � ‫ � )���ݻ‬Ǥ �
� � � � ` l inestyles` � ϡ � � � � Υ � � � ե � � å � � ξ � �֤��� ꥻ�åȤ� � � � ‫ޤ‬Ǥ δ ֤�
� � � ‫���ݻ��ޤ‬

� �:

# � � � � � � � 饤� ��������
��� Ϸ| � � ˰ � ¸ � � � ʤ � � � cyan � � � � � 3� �
# � < � 6 ( � ‫� � � � � )������ݤ‬
set style line 5 lt rgb "cyan" lw 3 pt 6
plot sin(x) with linespoints ls 5 # � �e � � � � � � � 5 ��

C 2 � 쥤�� 䡼 (layers)
2 layers
?layers
?behind
?front
?back
gnuplot � Υ � � � դ ϡ � � � � � � � � � � Ǥ � � � ��줿�� �֤���d � � 夲�Ƥ � � � � � � Ȥ ǹ �
. � � � � Ƥ � � ‫������ޤ‬ν � � �֤ ϡ � � � � � �  � � `behind`, `back`, `front` � � �
� ä � � � � Ǥ � � � � � γ � � ‫�����ؤ‬Ƥ 뤳�Ȥ� � ѹ � � Ǥ � � ‫����ޤ‬㤨�С � � � � � � � ΰ �
� � � ‫ط‬ʿ����ѹ�����ˤϡ����ΤĤ���Ĺ��d�°- `behind` ����d���Ф�
� � � 櫓�Ǥ � � �
set object 1 rectangle from graph 0,0 to graph 1,1 fc rgb "gray" behind
�r �ν � � � ֤ ϰʲ������Ǥ�:
behind
back
��� �ռ � � �
� � � � դ � ɽ � � (`key`)
front
� Ƴ � � � � � Ǥ ϡ � � � � Ǥ � � r � ϰʲ � � ν � � �֤ Ǥ � :
� ֹ��Υ� �֥��������(rectangle, circle, ellipse, polygon)
� ֹ��Υ� ٥� (label)
� ֹ������ (arrow)
1 � ‫�����ڡ‬ʣ��Υ ���դ ������� (multiplot �⡼��) �����ν ��ϡ �ʣ��
� � � � դ � t � Τ Ȥ � � � Ŭ � Ѥ � � � Τ Ǥ Ϥ ʤ � � � � � � r � � � � Ǥ � �� � � � Ŭ � Ѥ � � ‫���ޤ‬
C 2 � ������� (mouse input)
2 mouse input
?mouse input
¿ � � � ν � � Ϸ | � � ǡ � � � � ߤ��r�˥������Ȥäƺ��� �뤳�Ȥ� � � ǽ � ˤ ʤ �
� Ƥ � � ‫������ޤ‬Τ � � d � � � � Ĥ � � ϥ ‫ۥ‬åȥ�������d ⥵�‫��ݡ‬Ȥ � � Ƥ � � ơ � � ����
� � � � � � � 뤬� � � � � r 襦���� ɥ� � ˤ � � � Ȥ � � ˡ � � � � 뤬쥹뤵 �������

�� ȤǤ � � 餫

�‫ؿ‬Ԥ���� 뤳�Ȥ� � Ǥ � � ‫��� � ޥ‬


� � � � � � d � � � � ¹������ ‫�����ޤ‬Ϥ� `batch` ����
� � ɥ � � � � � ‫ץ‬Ȥ � � Ȥ ߹�碌�뤳�Ȥ� � ǽ � ǡ � � 㤨��`pause mouse` � Ȥ � � ơ �
� � � θ � ˥ ��������å � �ˤ � ä ƥ ѥ � �� �� � ֤ ä � � � � �����ѿ� �
Ȥ� � � �
� θ � Υ � � � � � ‫�ץ‬ư���ȿ �Ǥ���� 뤳�Ȥ� � Ǥ � � ‫����ޤ‬ʲ� � � � � : `bind`,
`mouse variables` � � � ‫��ޤ‬ʲ� � ⻲�� : `set mouse`� �
3 bind
?commands bind
?hotkey
?hotkeys
?bind
� �:
bind {allwindows} [<key-sequence>] ["<gnuplot commands>"]
bind <key-sequence> ""
reset bind

`bind` � ϡ � � ‫ۥ‬åȥ�������� a ����d˻��Ѥ�� ‫ޤ����ۥ‬åȥ����Ȥϡ����


� � � � � � � 뤬�ɥ 饤�ФΥ� � � � � ɥ � � � ˤ � � � Ȥ � � ˡ � � � � 뤬쥹뤵 �� ���
‫���ޤ‬ ʣ��Υ�
�� � � �� � � Ȥǡ��
g n�uplot �Υ � ¹����� �Ԥ����뵡 ǽ � Τ � � Ȥ � $ � � ‫���ޤ‬
`bind` � ϡ � gnuplot � � �`mouse` � �‫��ݡ‬Ȥ � � � 褦�˥���ѥ�� 뤬뤬뤵 Ƥ��
���
� � � ĥ ������ � � � ʽ � � Ϸ | � �뤳��Ȥ�ǻ Ȥ�����Ƥ � � � ˤ Τ �� � � Ǥ � �
� � � Ƥ � � $ � � � � � � 桼������ Υ� � � � � � � (binding) � ϡ � � Ȥ ߹��� (builtin) � �
� � � � � � � � ֤������‫<�����ޤ‬space> � � 'q' � � �� � Ϻ � � � d Ϥ Ǥ � � ‫��ޤ‬ � ���
� �� � � � � 㳰�ˤĤ � � Ƥ ϡ � �ʲ � � � � � : `bind space` � �

� ‫��������ܥ‬ϡ � � 1 ������ ���


‫ � ܥ‬Τ 2�ߡ � � � � � r � � Ѥ ˤ Τ � � � r � ǽ � Ǥ � � �

� ‫ۥ‬åȥ����ΰ������ˤ $ �`show bind`, �‫` ���ޤ‬bind` �ȥ � � � � ‫��פ‬뤫��


� � � � ե � � � � � ɥ � � � ǥ ‫ۥ‬åȥ���'h' ����Ϥ��Ƥ���
$ ����

� � � � � � d ϡ � ` r eset bind` � ǥǥե � � � Ȥ ξ � �֤����


Ǥ � � ‫���ޤ‬

��� � � � � � � � ‫�ޤ‬ʣ��Υ�������dϰ�����ǰϤ�ɬ�‫����פ‬뤳�Ȥ � � � դ � � Ƥ �
�$ � � � � �

ɸ � � Ǥ ϥ ‫ۥ‬åȥ����ϸ��ߤ��r 襦���� ɥ � � � � � � ϥ � � � � � � 뤬������ Τ�


ǧ������‫`���ޤ‬bind allwindows <key> ...` (`bind all <key> ...` � Ⱦ � ά
� � ) � ϡ � <key> � γ � � � � �� � 줿줬줬 �ߤ�
� �� � ʤ � Τ � �
� ‫�ݤ��˴ؤ‬餺����� ٤�
� � gnuplot � � � r 襦���� ɥ� � � Dz � ǽ � ˤ � � ‫������ޤ‬ξ � 硢 gnuplot � ѿ �
MOUSE_KEY_WINDOW �ˤ � � 줿줬줬 � 줿�����ɥ
Ԥʤ� �� � � ID � � � � ¸ � � � � � Τ Ǥ �
� �� � �
�� ˳� � � � �
Ƥ���� ��ɤǻ��Ѥ��뤳�Ȥ � � Ǥ � � ‫���ޤ‬

� �:

- ��� � � � � � � � � � � :

bind a "replot"
bind "ctrl-a" "plot x*x"
bind "ctrl-alt-a" 'print "great"'
bind Home "set view 60,30; replot"
bind all Home 'print "This is window ",MOUSE_KEY_WINDOW'
- ��� � � � � � �ɽ � �:
bind "ctrl-a" # ctrl-a � � � Ф � � 뤬쥹뤵 �
� ɽ�
������
bind # t �Ƥ Υ � � � � � d � ɽ � �
show bind # t �Ƥ Υ � � � � � d � ɽ � �

- ��� � � � � � � � � :
bind "ctrl-alt-a" "" # ctrl-alt-a � Υ � � � � � � � � � �
( �Ȥ ߹��ߥ�����dϺ� � � ‫)���ޤ‬
reset bind # � ǥե � � � � ( �Ȥ ߹���) � Υ � � � � � d � Ƴ �

- �ȥ � � 뤬륽륹��� � �˥ � � � � � � � :
åw|
v=0
bind "ctrl-r" "v=v+1;if(v%2)set term x11 noraise; else set term x11 raise"

��� � � � � � (ctrl / alt) � � � � ʸ � � ʸ � � ζ � �� Ϥ � � � ‫��ޤ‬


� �������
� � � � � �Ϥ�����
� Ϥ � � � ‫���ޤ‬:
ctrl-alt-a == CtRl-alT-a
ctrl-alt-a != ctrl-alt-A

��� � � � � � (alt == meta) � ΰ � � � :


‫ � ܥ‬Ǥ Τ �� � � )
ctrl, alt, shift ( � 1 ������ ���

� � � ‫��ݡ‬Ȥ� � � Ƥ � � � � ü 줿쥹쥭
�ΰ�
��� �:

"BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock",


"Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down",
"PageUp", "PageDown", "End", "Begin",

"KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4",


"KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp",
"KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal",
"KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal",
"KP_Divide",

"KP_1" - "KP_9", "F1" - "F12"

�ʲ � � ϡ � � º ‫ݤ‬Υ � � � � Ǥ Ϥ ʤ � � � � � � � � � ɥ � � ˴ ‫��ؤ‬뤬쥹뤬�ȤǤ � :
٥�

"Button1" "Close"

�ʲ � � ⻲�� : `mouse` � �
4 bind space
?commands bind space
?bind space
gnuplot � � � � c o nfigure � � � ˥ � � ‫ ����ץ‬--enable-rase-console � � Ĥ � � ƥ �
� �� � � � 뤵���
줿 �� ɥ � � � � <space> �� � � ‫����פ‬
ϡ � � r 襦����


gnuplot � Υ � � ��ɥ� � � � � ɥ � � � p‫������ޤ‬
�� ˽ Ф Υ ‫ۥ‬åȥ����ϡ�
'gnuplot -ctrlq' � Τ 褦�ˤ� � � gnuplot � � ư � � � 뤫��� ‫ ���ޤ‬X � � � � � �
� � 'gnuplot*ctrlq' � � � � � ��뤳�Ȥ� ctrl-space � � � ѹ � � Ǥ � � ‫���ޤ‬
�ʲ � � � � � : `x11 command-line-options` � �
C 3 � �����Ѥ��ѿ� (Mouse variables)
3 Mouse variables
?mouse variables
`mousing` ( � ������ǽ) � �� � � ʾ � 硢��� ߤΥ � � � � � ɥ � � � Ǥ Υ ��������

ǻȤ � � � � Ȥ � � Ǥ � � 뿧���
� å � � ˤ � ä � gnuplot � Υ � � ��ɥ 饤��� ʥ 桼��
� ѿ � � � � �� � ‫�������ޤ‬å � � � � Υ �����κ �ɸ � � � ѿ � MOUSE_X, MOUSE_Y,
MOUSE_X2, MOUSE_Y2 � � � � � � � � � ‫�������ޤ‬å� � � � 줿�‫���ܥ‬䡢��� ΤȤ� � �
�� � �
ξ��� �֤��MOUSE_BUTTON, MOUSE_SHIFT, MOUSE_ALT, MOUSE_CTRL � � � �
� � � � � ‫����������ޤ‬ѿ��Ǥ�դ ��r �γ ��ϻ ��ˤ �� ��d ǡ ������r 襦
� � � � ɥ � � � Ǥ Υ ‫ � � � � � � �ޥ‬å� � � � ٥� Ȥˤ� ä ƽ � � � � � d � � � ‫� � �ޤ‬
� �� �
� r 襦� � � �ɥ� � � ǥ ‫���˥ � � � � � � �ޥ‬å����줿� �ɤ����� � �����
� � � ‫ץ‬Ȥ � � � Ĵ

� ٤� ˤϡ� � � � � � � � ѿ � Τ � � d Τ ɤ 줫 d � � � Ƥ � � 뤫� ɤ�����e�
Ĥ�� � � �
�å � � � � � н � ʬ � Ǥ � � �

plot 'something'
pause mouse
if (exists("MOUSE_BUTTON")) call 'something_else'; \
else print "No mouse click."

� r 襦� � � �ɥ� � � Ǥ ΰ � Ϣ � Υ � � � � � Ϥ � � � � ‫ � �פ‬뤳� Ȥ⡢� ‫� � � � � � � �ޥ‬ɤ�Ȥ�


� � � Ȥ Dz � ǽ � Ȥ ʤ � ‫� � �ޤ‬

plot 'something'
pause mouse keypress
print "Keystroke ", MOUSE_KEY, " at ", MOUSE_X, " ", MOUSE_Y

`pause mouse keypress` � � � � � � � � � � Ϥ ǽ � λ � � � � � � � � MOUSE_KEY �ˤ ϲ � � �


� 줿� � � ��� ASCII � � � � � ɤ � � � ¸ � � � � ‫ � � �ޤ‬MOUSE_CHAR �ˤ Ϥ � � � ʸ � � Ȥ � ʸ
� � � � �� Ȥ � � � � � ¸ � � � � ‫ � � �ޤ‬pause � � � ‫ �ޥ‬ɤ� (��� � ctrl-C � � � r 襦� � � �
� ɥ � � � � � � � � � Ĥ � � � � � ʤ ɤ � � � ) � ‫۾‬ェ λ � � � � � � � � MOUSE_KEY � � -1
�ˤ ʤ � ‫� � �ޤ‬

� ‫ � � � �ޥ‬ˤ� � � � � θ � ο � � � � � � r � � ϰ Ϥ ϡ � G P VAL_X_MIN, GPVAL_X_MAX,


GPVAL_Y_MIN, GPVAL_Y_MAX � ǻ � � Ȥ Ǥ � � 뤳� Ȥ� � � դ � � Ƥ � � $ � � � � �
�ʲ � � � � � : `gnuplot-defined variables` � �
C 2 � � α (Persist)
2 Persist
?persist
gnuplot � � ¿ � � � ν � � Ϸ | � (aqua, pm, qt, x11, windows, wxt, ...) � � � � � �
դ� � � �� � � ˥ � � � դ
� � �� �
d � � � �ɽ� � � Ѥ Υ � � � � � ɥ � � � �� ˳ � � � � ‫� � � � �ޤ‬
� ‫` � � � �ץ‬persist` � ϡ � � �� ‫���ץ‬ब��λ� �� � � � Ȥ � �ˤ⡢ � � � � � Υ �
� � � � ɥ � � � Ĥ � � 褦 gnuplot � ˻ ‫���ؼ����ޤ‬
��� �ϡ � � � � � � ÷ � � � � Ϸ|� � � � Ǥ �Ϥ��⤷ �� � � ϲ‫���ޤ‬
� ��С � �ʲ � � Υ � � ‫�ޥ‬ɤ�¹Ԥ����

gnuplot -persist -e 'plot [-5:5] sinh(x)'

gnuplot
� ϡ �ɽ
� � � � � � � � � � ɥ � � ��� d � � � � � � � ˥ � � � դ � � �� � � � � � � ƽ � λ � � � �
ɽ��������ɥ��ϥ���դ��� �դ˻ �դ ä� � ‫�� ����ޤޥ‬
դ դ ��Ĥ
�˻ �‫������ޤ‬Ϸ �
� � � ˤ � ä Ƥ ϡ � � � � λ Ĥ ä � � � � � � � ɥ � � � Ǥ � ¿ � � � Υ ‫ �����ޥ‬��ǽ �ʾ � � �
� � � � ‫���������������ޤ‬դκ��r���᤹‫׵‬ ᤹ ᤹�륺 � ( �Ȥ ���
� � ε � ) � Τ �� � � �
� � ϡ � � � ˥ ‫���ץ‬ब��λ � � � Ƥ � � � Τ ǰ � � � Ū � ˤ �� � � Ǥ � � �

��� � � � � � � Ϸ| � � � � � � �� �
Ȥ� �ˤ � `persist` � � `nopersist` � � � � � Ǥ � � �
��� � � � :

set term qt persist size 700,500

C 2 � r � (Plotting)
2 Plotting
?plotting
`gnuplot` �ˤ ϥ � � � դ � � r �� �4 � ĤΥ � � ‫` ��ޥ‬plot`, `splot`, `replot`,
`refresh` � � � � � � ‫ � ¾���ޤ‬Υ � � ‫�ޥ‬ɤϡ��ǽ�Ū�˥���վ��8.������r�
� � � Ǥ 䡢� 쥤� � ���
ȡ� ������������Ԥ��
) ‫���ޤ‬
`plot` � � 2 � � � � � � � � դ � 8 . � � � ‫`���ޤ‬splot` � � 3 � � � � � � � � � (� � d � �
� º ‫ݤ‬ˤϤ � � � 2 � � � � �� ‫ؤ‬μͱ �) ��8 . ��� ‫`���ޤ‬replot` � ϡ � ľ p � � `plot`
� � `splot` � � � ‫�ޥ‬ɤ�Ƽ¹Ԥ��‫`���ޤ‬refresh` � ϡ � ` replot` � Ȼ � Ƥ � � ‫�ޤ‬
� � � � � � ϥ ǡ � � � � � ե � � � � � � � � ϥ � � ȥ � � फ����ɤ߹��ߤ�������ˡ�p
� � � � ¸ � � � � � ǡ � � � � � ƻ � � Ѥ � � ‫���ޤ‬

=multiplot
=inset
=subfigures
��� � � 4 � ĤΥ � � ‫�ޥ‬ɤΤ��dΰ�Ĥ�¹Ԥ������ϡ�������d���Ƥ���
� � � � � � ٥롢� ���� ȥ 롢� ���Ӹ��� plot ��� ‫�ޥ‬ɤǻ����줿� �� ‫ޤ��ޤ‬ʴ�
� � � ǡ � � � � Τ � � ٤Ƥ � ‫���ޤ‬ϤΥ������ �����
� � � � r 褹�뤫�����������ϥ ‫�ڡ‬
� � � � 8 . � � � ‫����⤷����ޤ‬ĤΥ ‫�����ڡ‬ʣ��Υ���դ��٤������ ���
� ¤٤�
� � � Ϥ � � � � � � � ����� �� ʣ��ο ‫ޤ‬Υѥ�ѥ��������
. ꡢ���ʥ���դ����
� � � � � ʥ � � � դ � � � � � � � � � �� ������ϡ � � � � ‫` ��ޥ‬set multiplot` � � � � �
� � � � � � � r �� ‫�ޥ‬ɤǿ������‫����������ڡ‬Τ � � � ) � � � Ƥ � � $ � � � � �

� r � ˴ ‫������ؤ‬Ū �ʾ � � � � � � Ⱦ � ϡ � ` p lot` � ˴ ‫����ؤ‬Ǹ��Ĥ���3���‫ޤ‬


� � � � � r � ˸ �� � ξ � � � � `splot` � ι �ˤ � � � ‫���ޤ‬

`plot` � � xy ľ � � � ɸ � Ϥ ȶ ˺ � ɸ � Ϥ � � Ȥ � � ‫����ޤ‬ʲ � � � � � : `set polar` � �


`splot` � � xyz ľ � � � ɸ � � � Ȥ � � 3�����‫ � ˺ � � � � � ޤ‬ɸ � � � � � � � ɸ � ǡ � � � � � �
� Ϥ Ǥ � � ‫����ޤ‬ʲ � � � � � : `set mapping` � �
=axes
�`plot` � Ǥ ϡ � 4 � Ĥζ � � � x ( � � ), x2 ( � � ), y ( � � ), y2 ( � � �
� ) � 줾� ���
Ω �ʼ � � Ȥ � � ư � � � � � � Ȥ � Ǥ � � ‫` ����ޤ������ץ‬axes` � ǡ � Ϳ�� � � 줿� ‫��ؿ‬
� ǡ � � � � � � � � ɤ μ � � Υ ‫���ڥ‬ɽ�������뤫��j � ‫ޤ����ޤ‬٤����Ƽ� � νν ‫ܤ‬丫
� Ф � � Ť � � � t � � ) � 椹�뤿��˽�ʬ� � � ��Ȥʤ� `set` � � � ‫�ޥ‬ɷ���¸��
� � � ‫��������ޤ‬Ĥ � � Υ � � ‫�ޥ‬ɤϡ�`set xlabel` �Τ ��� ˼����p� � ����
� � ä Ƥ � � ‫���������ޤ‬ʳ�� Τ � Τ � `set logscale xy` � Τ ��ˡ�1 � ġ � � �
�� � � � ʣ � � μ � � �� p� � ‫����ץ‬Ȥ � � Ƥ Ȥ � ‫���ޤ‬z � � � � ) � 椹�륪�‫����ץ‬
� �� ‫�ޥ‬ɤ� 2 ��������դˤϸ��Ϥ��d ‫���ޤ‬

`splot` � ϡ � � $ � � � ˲ ä � � ƶ � �� � � � � � � � � � � �Ȥ���Ǥ ��� � 3���‫ޤ‬


� � γ ʻ � � � d ˴ ‫������ؤ‬ˤĤ � � Ƥϡ � �ʲ � � � � � : `set isosamples` � � 3 � � � �
� ǡ � � � � Υ ե � � � � � � ɬ � ‫פ‬ʷ��� ֤ ˤĤ � � Ƥϡ � �ʲ � � � � � : `splot datafile` � � � �
� � � � ˴ ‫������ؤ‬ˤĤ � � Ƥ ϡ � �ʲ � � � � � : `set contour`, `set cntrlabel`,
`set cntrparam` � �

`splot` � Ǥνν ‫ܤ‬丫�Ф � � դ � � � ) � � ϡ � z � � � ˤ �� � � Ǥ � � 뤳��� �����


x2 � � � � y 2 � � � Υ � ٥��դ��� `set view map` ��Ȥäƺ���뵿� Ū�� � 2
� � � � � r � ˤ Τ ߲ �ǽ � Ǥ � � 뤳�Ȥ � � � `plot` � � t � � Ʊ � � � Ǥ � � �
C 2 � � � (Startup (initialization))
2 Start-up (initialization)
?startup
?start
?start-up
?initialization
?.gnuplot
� � ư � � � ˡ � g nuplot � Ϥ ‫������ޤ‬ƥ��Ѥν ������ե ����� `gnuplotrc` ��õ
� � � ‫������ޤ‬Υե�������֤ ������gnuplot � Υ � � � � � � � � � ˷�� ��졢
`show loadpath` � � � Τ 뤳�Ȥ� � Ǥ � � ‫�� ��˥������ޤ‬ Υۡ ���ǥ � � 쥯�ȥ���
� ˸ Ŀ � � Ѥ � � � � � ե � � � � � � õ � � � ‫������ޤ‬Υե������ Unix �ϤΥ����ƥ�Ǥ�
`.gnuplot` � Ǥ � � ꡢ����¾ � ν � � � Ϥ Ǥ � `GNUPLOT.INI` � Ȥ ʤ ä Ƥ � � ‫���ޤ‬
(OS/2 � Ǥ ϡ � � Ķ � � ѿ � `GNUPLOT` � � � � � �� � Ƥ � � �� p � Υ ǥ � � 쥯�ȥ����
� � � � � õ � � � ‫ ;�ޤ‬Windows � Ǥ ϡ � ` APPDATA` � � � � Ѥ � � ‫ � � � � � )�ޤ‬:
��� �� �
��� � � � `gnuplot` � � � ǽ � ˥ � � � � ȥ ǥ � � 쥯�ȥ��õ��� �� ����� Ǥ� � �
� � � � � � � � � � � � � ƥ � � � � � ʤ Τ Ǥ � � � Ͽ 侩���‫���ޤ‬
C 2 ʸ� � � � � � � � ʸ � � � � � ѿ � (Strings)
2 String constants and string variables
?strings
?string variables
ʸ� � � � � � � ˲ ä � � ơ � � �ۤȤ�ɤ � gnuplot � � � ‫�ޥ‬ɤ�ʸ�����ѿ�ʸ����
� ‫���ޤ‬ʸ� � � � � �֤ ��� ‫����ؿ‬դ��‫������ޤ‬С � �ʲ � � � 4 � Ĥ � plot � Τ �
� � � � Ϸ �� Ȥ � � � t � � Ʊ � � � r 西���ȥ��8.��� ‫�ޤ‬:

four = "4"
graph4 = "Title for plot #4"
graph(n) = sprintf("Title for plot #%d",n)

plot 'data.4' title "Title for plot #4"


plot 'data.4' title graph4
plot 'data.4' title "Title for plot #".four
plot 'data.4' title graph(4)

0 � � ϡ � � � � 줬 ʸ� � � � � � 黻�Ҥˤ� ä ƺ � � Ѥ � � 줿� ��
ϡ �ʸ � � � � � � Ѵ � � �
� � ‫��ޤ‬Τǡ � � ʲ � � � � � � � � Ʊ �� � ư � � ‫�ޤ‬:

N = 4
plot 'data.'.N title "Title for plot #".N

� � �� ˡ � � � � ‫�ޥ‬ɥ �� γ�� � � � Ǥ ϡ � � � � � 餬 ɸ � � Ū � � gnuplot � ‫ � � ��ؤ‬ʸ


ˡ�ΰ � � � ʬ � � ǧ � � � � � � � � ΰ ʳ � � ϡ �� � � � ʸ � � � � � ѿ � Ȥ � � Ƥ � ɾ � d Τ
ߤ���
� ʤ � � ‫�����ޤ‬äơ� �ʲ � � Υ � � ‫����ޥ‬ϡ � � � � ��Ϻ � � � � � � � � � � ʤ � � �
� � � � � �� � � � ٤��Ǥ � � � � � ʸˡ Ū � ˤϴ ְ�äƤϤ � � ‫���ޤ‬:

plot = "my_datafile.dat"
title = "My Title"
plot plot title title

��� � 3 � Ĥ � � � � 黻�Ҥ�ʸ � � � � ˺ � � Ѥ � � ‫�ޤ‬: ʸ� � � � η � � 黻��".", ʸ


� � � � � � � � 黻��"eq", � � � � � ʸ � � � � � � � � � � 黻��"ne" � Ǥ � � � � ʲ � � � � �
� Ǥ � TRUE � � ɽ � � � � � � ‫���ޤ‬

if ("A"."B" eq "AB") print "TRUE"

�ʲ � � �� :� 2 � Ĥ �ʸ � � � � � ‫` �ؿ‬gprintf`, `sprintf` � �

=substring
Ǥ � դ � ʸ � � � � ʸ � � � � � ѿ � ʸ � � � � � ʹ ‫�ؿ‬ˡ� �ϰ � � � Ĥ�Ҥ� � 뤳�Ȥˤ � �
� � ʬʸ � � � � � � � � Ǥ � � ‫����ޤ‬ϰ����Ҥ� � [begin:end] ǡηd�begin ����
ʬʸ� � � � � � � Ƭ � � �֡ �� end � Ϻ Ǹ � ΰ � �� ֤ Ǥ � � � � � �ֻ���ϡ � � ǽ � � ʸ � � � 1
� � � ‫ܤ‬ȸ�� ‫�����ޤ‬Ƭ� ΰ � �֡ ��� Ǹ�ΰ�� � ֤ ϶ � � � 뤤� �'*' � Ǥ � � � � ‫���ޤ‬
� � � ξ � �� ��� ϸ���ʸ�����Τ���Ƭ�����뤤�ϺǸ� �������‫������ޤ‬С �
str[:] � � str[*:*] � Ϥ ɤ d � � str � �ʸ � � � � t � Τ � �� � � � ‫���ޤ‬
C 2 �ִ��ȥ��‫�ޥ‬ɥ �� ‫( ����ޥ‬Substitution)
2 Substitution and Command line macros
?substitution
gnuplot � ‫�ؤ‬ ǽ � � � ɤ ߹��‫ޤ‬줿� ��
�� � � ʸ � � � � ! � � � � ʤ � d ‫ޤ‬$ � � 줬���
� � � 졢�⤷���ϼ¹ Ԥ����p���ʳ ��ǡ�2 �Ĥη|���ñ����ִ����¹Ԥ����
��� � � � � � � ϵհ � � � � � ( � � ) (ASCII �ֹ� 96) �ǰϤ ‫�ޤ‬Ƥ � � 뤫���‫@ ���ޤ‬
(ASCII �ֹ� 64) � � Ƭ � ˤ Ĥ � � � ʸ � � � � � � Ф � � ƹ Ԥ ʤ � � ‫���ޤ‬
C 3 � հ � � � � � ˤ � 륷� �� ƥ ॳ� ‫�ޥ‬ɤ��ִ� (Substitution backquotes)
3 Substitution of system commands in backquotes
?substitution backquotes
?backquotes
?shell commands
� � � � � 륳� ‫�ޥ‬ɤ�հ����� (��) �ǰϤ ळ� Ȥˤ � ä ƥ � � ‫���ִ���ޥ‬Ԥ�����
� � � Ǥ � � ‫������ޤ‬Υ � � ‫�ޥ‬ɤϻҥ‫����ץ‬Ǽ¹Ԥ��졢���ν� � Ϸ �� ǥ � � ‫��ޥ‬

� �� εհ�����ǰϤ ‫ޤ‬줿 � �ʬ� � �֤ �������‫��������ޤ‬ƥ ॳ� ‫�ޥ‬ɤν�λ��
�ơ � � � � � � ϡ � � ѿ � GPVAL_SYSTEM_ERRNO � � GPVAL_SYSTEM_ERRMSG � � �֤ �����
� � � � � ʲ � � � � � : `system` � �

� � � ‫��ִ���ޥ‬ϡ � ñ � � � � � � � � � � ʸ � � � � ʳ � � ϡ � ` g nuplot` � Υ � � ‫�ޥ‬ɥ 饤


� � � 桢�ɤ��ǤǤ���Ѳ�ǽ�Ǥ���

� �:

�ʲ � � � � � ϡ � ` l eastsq` � Ȥ � � � � ‫�����ץ‬¹Ԥ������ν��Ϸ��ǡ�
`leastsq` � � ( � ‫��ޤ‬ΰ� � � � ��ߤ�) �֤ ������� ‫�ޤ‬:
f(x) = `leastsq`

� � � $ � VMS � Ǥ ϡ �
f(x) = `run leastsq`

�ʲ � � ϸ � � ߤ����դȥ �� �� �� � Υ � ٥��8. � � � ‫�ޤ‬:


set label "generated on `date +%Y-%m-%d` by `whoami`" at 1,1
set timestamp "generated on %Y-%m-%d by `whoami`"
C 3 ʸ� � � � � ѿ � Υ ‫( �ִ����ޥ‬Substitution macros)
3 Substitution of string variables as macros
?substitution macros
?macros
=exists
ʸ� � @ � ϡ � � � � ‫�ޥ‬ɥ �� �� Ǥ � � � ʸ � � � � � ѿ�� � �� ‫���ִ��ؤ‬Ԥʤ��Τ˻�
� � � ‫���ޤ‬ʸ� � � � � ѿ � � �� Ȥ � � Ƥ � ʸ � ϡ � ʣ � � � ñ � 줫� ʤ�뤳�Ȥ � � ǽ � Ǥ � � �
�� � � � ˤ � � ʸ � � � � � ѿ � �‫�ޥ‬ɥ �� ‫���ޥ‬

� � Ȥ� �ƻȤ � � � � Ȥ � � � ǽ � ˤ ʤ � �
� � � � � � � ε � ǽ � ˤ � � Ÿ � � � Ǥ � � � Τ � ʸ � � � � � � � Τ ߤǡ� ʸ � � � � � �� ˼ � � �
� � Ȥ � � � � Ȥ Ϥ Ǥ � � ‫���ޤ‬
� �:

style1 = "lines lt 4 lw 2"


style2 = "points lt 3 pt 5 ps 2"
range1 = "using 1:3"
range2 = "using 1:5"
plot "foo" @range1 with @style1, "bar" @range2 with @style2

��� � @ � � � � � ‫�ޤ‬Ԥϡ�������ϻ���Ÿ�����졢���줬�º ¹˼‫ݤ‬Ԥ�����


� � � ˤ ϼ � � Τ �� t�� � � Ǥ y � � � > � � � Ʊ � � � � � Ȥ ˤ ʤ � ‫���ޤ‬

plot "foo" using 1:3 with lines lt 4 lw 2, \


"bar" using 1:5 with points lt 3 pt 5 ps 2

� ‫ �ؿ‬exists() �ϥ ‫����ޥ‬ɾ � d ˴ ‫���ؤ‬


� �ѤǤ � � �� ��
ʲ� � � � � ϡ � C ��� �t
�˥ �� �����
ѿ � �� p � �뤫� Ÿ�ɤ�����
� � Ǥ � �e��å����‫���ޤ‬

C = "pi"
if (exists(C)) print C," = ", @C

� ‫����ޥ‬Ÿ � � � ϡ � ñ � � � � � � � � ⡢ � ‫�����ޤ‬Ű � � � � � � � Ǥ Ϲ Ԥ ʤ � � ‫��ޤ‬


� ��

�հ � � � � � ( � � ) � � Ǥ ϥ ‫���ޥ‬Ÿ � � � � � � ‫���ޤ‬

� ‫����ޥ‬Ÿ � � � ϡ � g nuplot � � � � � � � � � � � ‫�ޥ‬ɹ Ԥ Ԥ��


�� Ȥ�
��� ������ ᤤ� �
������� ʳ�� �
gnuplot � � � � � � � � � � Ƥ � � 0 � � ٤$ � � � � � � Ԥ � � ‫�����ޤ‬äơ�
A = "c=1"
@A

� Τ ��ʥ����ɤ�5�����¹Ԥ��‫������ޤ‬ʲ� � Τ ��ʹ ԤϤ$ �Ǥ�������ϡ �


� ‫������ޥ‬d� Ʊ � � � Ԥ ˤ � � 뤿� Ÿ�
� � � ˴ ֤˹��ʤ�����Ǥ���

A = "c=1"; @A # will not expand to c=1

� � � ‫�ޥ‬ɤ�.�����Ƽ¹Ԥ���ˤϡ���� ‫` ��ޥ‬evaluate` ��� � Ѥ Ǥ � � �� �


C 3 ʸ� � � � � ѿ � ‫�ޥ ������ޥ‬ɥ �� �ִ �� (mixing_macros_backquotes)
3 String variables, macros, and command line substitution
?mixing_macros_backquotes
?substitution mixing_macros_backquotes
ʸ� � � � � ѿ � � հ � � � � � ( � � ) �ˤ � � �ִ���� ‫���ޥ‬ˤ� � �ִ�����‫�� ߴط‬Ͼ���
� � �� ���� Ǥ � � � � հ � � � � � ϥ ‫ � � �˸���ִ����ޥ‬ʤ � � Τ ǡ �

filename = "mydata.inp"
lines = ` wc --lines @filename | sed "s/ .*//" `

� ϡ � mydata.ipn � ι Կ � � 0 � � � ѿ � lines � � � � ¸ � � � 뤳�Ȥˤʤ� ‫���ޤ����ޤ‬


� � Ű � � � � � ϵ հ � � � � � � �ִ���˸� � � ʤ � � Τ ǡ �

mycomputer = "`uname -n`"

� ϡ � � � � � � ƥ ॳ� ‫` ��ޥ‬uname -n` � � �֤ ��
ʸ� � � � � ʸ � � � � � ѿ � mycomputer � �
� � ¸ � � � 뤳�Ȥˤʤ� ‫���ޤ‬

� � � � � � � � � ‫�����ִ����ޥ‬Ű � � � � � � � Ǥ ϵ � ǽ � � � ʤ � � Τ ǡ � � � � � � ƥ ॳ� ‫�ޥ‬ɤ�
� ‫���ޥ‬Ȥ� � � � � d � � Ƥ � � � � ‫���ޥ‬Ȥ � � � � � � Ѥ � � � � ĵ հ � � � � � �ִ���Ԥʤ���
� Ȥ Ϥ Ǥ Ǥ � � ‫���ޤ‬

machine_id = "uname -n"


mycomputer = "`@machine_id`" # � � � ‫������ޤ‬ʤ� !

� � � μ � � Ԥ ϡ � � � Ű � � � � 䤬 @machine_id � � ‫���ޥ‬Ȥ � � Ʋ ᤹ � � 뤳�Ȥ � ˸ � �


� Ƥ � � 뤫��Ǥ � � � � � � � � ƥ ॳ� ‫�ޥ‬ɤ� ‫���ޥ‬Ȥ� � � � � ¸ � � � � � � � θ �� �� ¹�
� � � � ˤ ϡ � � հ � � � � 伫�Τ� ‫��ޥ�����˴ޤ‬ɬ�‫�������פ�����ޤ‬ϰʲ��Τ�
� � � ˥ ‫������ޥ‬d � � 뤳�ȤǼ¸ � � Ǥ � � ‫���ޤ‬sprintf ν � ν �ˤ �3ν � � � ΰ �
� � � � t � Ƥ � � � � Ҥ ˤ ʤ ä Ƥ � � 뤳�Ȥ � � � դ � � Ƥ � � $ � � � � �

machine_id = sprintf('"`uname -n`"')


mycomputer = @machine_id
C 2 � � � ‫���ڤ‬å � � λ Ȥ � � � (Syntax)
2 Syntax
?syntax
?specify
?punctuation
� ��Ȥ� � ɸ � � � � � � � (,) � � � ‫�ڤ‬Ǥ � � � Τ � � Ф � � � � � � ‫�� ������ץ‬ ȼ� �
� ѥ � �� �� ϥ��‫�ڡ��� ) ( ���ڤ‬Ǥ � � � � ϰ Ϥ ϥ � � � � (:) � Ƕ � � ‫ڤ‬äƤ � � � � �
� ä � ([]) � Ǥ � � � � � ‫�����ޤ‬ʸ� � � � � ե � � � � �� � ϰ � � � � � Ǥ � � � � ꡢ ¾ �ˤ � � �
� Ĥ � � � � å � (()) � Ǥ � � � � � � Τ � � � � � ‫���ޤ‬

� � � � ‫ޤ‬ϰʲ��ζ��‫�ڤ‬ǻ � � Ѥ � � � ‫`���ޤ‬set` � � � ‫�ޥ‬ɤ� `arrow`, `key`,


`label` � κ � ɸ ; � � Ƥ Ϥ � (fit) � � � � � ѿ � Υ �� �(� � � ‫` ��ޥ‬fit` � Υ �
�� �� � � � � � ‫` ��ޥ‬set cntrparam` � ǻ � � �� ���
`via` � � ³ � � � �� );
� Ӥ Ȥ Ӥ � � � � � � � �� ��Υ 롼�‫ץ‬ѥ��� �� Υ �� ;� `set` � � � ‫�ޥ‬ɤ�
`dgrid3d` `dummy`, `isosamples`, `offsets`, `origin`, `samples`,
`size`, `time`, `view` � ΰ � � ; � � 9 � � ΰ � � � ֤ ��Υ 롼�‫ץ‬ѥ��� ��
Υ�
� � � � ; � � � � � ȥ � 伴�θ � � Ф � � ΰ � � � ; `plot`, `replot`, `splot` � � � ‫�ޥ‬ɤ�
x,y,z � � ɸ � η ���˻Ȥ�������ѿ�‫�ؿ‬Υ �� ;� `plot`, `replot`,
`splot` � � � ‫�ޥ‬ɤ�ʣ����r� (�ǡ������‫��ޤ‬ϴ ‫ � )�ؿ‬Τ � � 줾� ΰ�� Ϣ � Υ �
� � �  � ɤ Υ ����

(� �) � � � å � � ϡ � � � 9 � � θ � � Ф � � � ( � 롼�‫ץ‬ѥ��� ��
ǤϤ ʤ � ) �<�Ū�˽�
� � Ϳ�� � � � � ζ � � ‫�ڤ‬Ȥ� � ơ � � ‫` ���ޤ‬fit`, `plot`, `replot`, `splot` � �
� ‫�ޥ‬ɤ� `using` �ե��륿�Ǥ‫ؼ‬ η ��������뤿��˻Ȥ��‫���ޤ‬

��
( � � � å � � �� ‫�ޤ‬ � � δ ‫��ؿ‬ɽ���Ǥ�Ȥ��‫)���ޤ‬

� � � � � � � ä � � ϡ � ` s et`, `plot`, `splot` � � � ‫�ޥ‬ɤǤ��ϰϤ���‫�ڤ‬Τ˻Ȥ�


� � ‫���ޤ‬

��� � � � `range` ( �ϰ � ) � � � � (`set`, `plot`, `splot` � � � ‫�ޥ‬ɤǻȤ��


� � ) � � ξ ü � � �� � � � ‫�ڤ‬Τˡ� � ‫` ���ޤ‬plot`, `replot`, `splot`, `fit` � �
� ‫�ޥ‬ɤ� `using` �ե��륿�γƥ���ȥ����‫�ڤ‬Τ˻Ȥ��‫���ޤ‬

� � � ߥ���� (;) � ϡ � � � Ԥ Υ � � Ϳ�
‫�ޥ‬ɹ���������ʣ�� Υ�� ‫�ޥ‬ɤ����
� � Τ ˻ Ȥ � � ‫���ޤ‬

� 楫�å � ({}) � ϡ � � � ĥ ʸ � � � � � � � ⡼ � � (enhanced text mode) � ε � � Ҥ 䡢


if/then/else ʸ� Υ ֥�å � � ζ � � ‫�ڤ‬Ȥ � � ƻ Ȥ � � ‫���ޤ������ޤ‬ʣ�ǿ��
� Ҥ � � � Τ ˤ � Ȥ � � 2 + 3 = {3,2} : �‫ޤ‬i � Ȥ ʤ � ‫���ޤ‬

EEPIC, Imagen, Uniplex, LaTeX, TPIC � γ ƽ � � Ϸ | � � Ǥ ϡ � ñ � � � � � � � � � �


\\ � ‫�����ޤ‬Ű Ԥ� � � � � � � � \\\\ � Dz � � Ԥ� ��� �
ǽ��Ȥ��� Ǥ���
C 3 ��� � � � (Quotes)
3 Quote Marks
?quotes
?syntax quotes
gnuplot � ϡ �ʸ � � � � � � � ‫�ڤ‬Τˡ� � � Ű � � � � � (ASCII � � � � � � 34 � � ) � � ñ � �
��� � � � (ASCII � � � � � � 39 � � ) � � � � � � ӵ հ � � � � � ( � � ) (ASCII
��� � � � 96 � � )
� � 3 � � � � ΰ � � � � � � Ȥ � � ‫���ޤ‬

� ե � � � � �� � � ñ � � � � � � 䡢���뤤����Ű � � � � � � � ǰ Ϥ ߤ‫������ޤ‬Υ ‫˥ޥ‬奢��


� Ǥ ϰ � �� ˥ � � ‫�ޥ‬ɤ����Ǥϡ � � 狼��䤹�����뤿��˥ե������ ��ñ���
� � � � Ǥ � � � � ꡢ ¾ � �ʸ � � � � � � � Ű � � � � � Ǥ � � � � � ‫���ޤ‬

�� �Ф� (label) � � � � � � � ȥ � (title) � � � ‫��ޤ‬Ϥ���¾���r����Ǥǻ��Ѥ����ʸ

� � � � � � � � ʣ � � � ʸ � � � � � ñ � � � � � � 䡢���뤤����Ű � � � � � � � ǰ Ϥ ߤ‫�����ޤ‬
� � � � ǰ Ϥ ‫ޤ‬줿 ʸ� � � � Τ � � � ʤ � � � � η �� ϡ � � ɤ ΰ � � � � �� ��
j�֤ ���
ˤ�
� ä � � Ѥ � � ‫���ޤ‬

\n ( � � � � ) � � \345 (8 � � ɽ � � � � ʸ � � � � ) � Τ ��ʥХå�����å��� (\)


�ˤ � � � ü � ʸ � � ɽ � � � ϡ � 2 � Ű � � � � � � � � ʸ � � � � Ǥ ϸ � � � � d
Ϥ ‫���ޤ‬ñ � � � � �
� � � � Ǥ ϡ � � Х å � � � � � å � � ��Τ � �� � � ʸ � � ȸ � � ʤ � � � ‫���ޤ‬ñ� � � � � � �
� � � ʸ � � � � � ñ � � � � � � 伫�� (ASCII � � � � � � 39 � � ) � � Ȥ � � ˤ ϡ � � � � � � Ť �
�ƽ � ɬ � ‫����פ�����ޤ‬Ĥ ‫ޤ‬ꡢ ʸ� � � � "d\" s' b\\" � ȡ � ' d" s'' b\' � ϴ �
t � � Ʊ � � � � Τ Ȥ ʤ � ‫���ޤ‬

1 � Ĥ � ʣ � � � ʸ � � � � ˴ ‫ � � � ·����ؤ‬ϳ ƹ Ԥ � Ʊ � � � Ư � � � ‫�����ޤ‬äơ� � � � �
� � · � � � � � 줿 ʸ� � � �
"This is the first line of text.\nThis is the second line."

� ϼ � � Τ �� ɽ������‫�ޤ‬:
This is the first line of text.
This is the second line.
��� � � �
'This is the first line of text.\nThis is the second line.'
� $ ȼ � � Τ ��ˤʤ � ‫���ޤ‬
This is the first line of text.\nThis is the second line.

� � ĥʸ � � � � � � � (enhanced text processing) � � � � Ű � � � � � � � Ф � � Ƥ � ñ � � �


� � � � � � Ф � � Ƥ ⵡ ǽ � � � ‫��������������ޤ‬Υ ɤ⡼�ɤɤ‫��ݡ‬Ȥ � � Ƥ � � � � � Ϸ | �
� Ǥ Τ � Ư � � � ‫����ޤ‬ʲ � � � � � : `enhanced text` � �

� հ � � � � � � , � � � ‫�ޥ‬ɥ �� ���� �ִ��Τ� � � ˥ � � � � ƥ ॳ� ‫�ޥ‬ɤ�Ϥ�Τ˻�


� � � ‫����ޤ‬ʲ� � � � � : `substitution` � �
C 2 �� � �/ � � � եǡ � � � (Time/Date)
2 Time/Date data
?time/date
Ѥ`gnuplot` � � � � ϥ ǡ Ѥ� � � � Ȥ � � ƻ � � � / � � � վ � � � λ � � Ѥ Ѥ ‫��ݡ‬Ȥ� � Ƥ � � ‫���ޤ‬
� � � ε � ǽ � � `set xdata time`, `set ydata time` � ʤ ɤ Υ � � ‫�ޥ‬ɤˤ�� � ä ��
� �ˤ ʤ � ‫���ޤ‬

�� � � Ǥ � t �Ƥλ� � � / � � � դ � 1970 ǯ� � � � � � ÿ � � � Ѵ � � � � � ‫��ޤ������ޥ‬


ν`set timefmt` � � t � Ƥ � � � Ϥ �ν � Ф � � � ǥ ե � � � Ȥ ν �� �
d�ν� ‫����ޤ‬ǡ � � �
� ե � � � � 롢�ϰϡ�������9��θ��Ф�����٥�ΰ � � � ֤ �� ���ǡ��� �� ��
� � � 뤹�٤ƤΤ � Τ ‫���ؤ‬Ϥν ν ����ǥե���ȤǤ���ˤʤ�
� �ν � � ��� � � �� � � � �� � ν ‫�������ޤ‬

Ͻ� ϰ � Ĥ Υ ǥե � � � � � � Ͻ Τ ߤ�
� ��Ǥ � � � � � äơ � �ե � � � � � � � � x �� y
� �ξ � � � � / � � � եǡ � � � � Ǥ � � � � � ϡ � � ǥ ե � � � Ȥ Ǥ Ϥ � � � � Ʊ � � � �
�� �
Ȳ
� ᤵ��‫��������������ޤ‬Υǥե � � � Ȥ ϡ � ` using` � � � � Ǵ ‫` �ؿ‬timecolumn`
� � � Ѥ � � ơ � � � � � � � б � � � � � � � � � Υ ե � � � � � � � �� �ǡ�� � � � � � ɤ
� ߤ��ळ�Ȥˤ �

� ꡢ�Ѥ��뤳�Ȥ� � � ǽ � Ǥ � � �

� ÿ � � (�ÿ � � ) � � � Ѵ � � Ϲ � � ɸ � � (UT; � � � � ˥ å � ɸ � � (GMT) � � Ʊ


� � ) � � � Ȥ � � ‫����ޤ‬ƹ�ɸ����ƻ� � ֤ ‫��ؤ‬Ѵ��ε�ǽ�ϲ�����
� y碌�Ƥ �
� ‫��ޤ‬ � �⤷� ǡ� � � � � � � � ٤�Ʊ��ɸ�����Ӥ˽��äƤ���ʤ� (������t�Ƥ�
� ƻ � �֤ ��������� Ǥ ʤ � � � � Τ ɤ d �� ��� ˤΤ�� � � � ʤ � ) � � � � ˴ ‫��ؤ‬Ʋ��⿴
� ۤ��뤳�ȤϤ � � � ‫��ޤ‬ � � � � � � � � �ʤ � � � � � � Ѥ � � 륢�‫����������� ��ץ‬
����������
� ��

Ū �ʻ � � � �� � ˹ ͻ � � � � ʤ � � � Ф � � � � ʤ � � � � ϡ � � � � ʤ � � � � Ȥ � UT � � � Ѵ � � �
� ٤��Ǥ � � �� �

`show xrange` � Τ ��ʥ�� ‫��ޥ‬ ɤ ϡ � � � � � 0 � � �� � ��`timefmt` ��Ʋ ä


� � ľ � � � ‫`���ޤ‬timefmt` � � � ѹ � � � � Ƥ ⤦ � � � � `show`
� Ǥ � � � �� � ɽ � � � � � � � � ȡ �
��� �Ͽ � � � � � `timefmt` �˽ � � ä � ɽ � � � � � � ‫������ޤ‬Τ� � ᡢ(`set xdata` � �
� ɤˤ � � ) � � � μ � � � � Ф � � � ǡ � � � � � � � ��åȤ � � � ȡ � � � � � � �� 0 �� � � Ȥ �� �� ��
ɽ������뤳�Ȥˤʤ � ‫���ޤ‬

� � � ‫` ��ޥ‬set format` � ‫` ���ޤ‬set tics format` � ϡ � � � � ��줿�����Ф �


� � � � Ϥ � � � � � / � � � դ Ǥ � � � ʤ � � ˴ ‫���ؤ‬
� d � � ‫���ޤ‬

� � � � / � � � վ � � �ե ���� � � � 뤫���r 褵����硢`plot`, `splot` � � � ‫�ޥ‬ɤ�


� � `using` � � � ‫������ץ‬ɬ����Ȥ�ɬ � ‫`���פ�����ޤ‬plot`, `splot` � �
� ϳ ƹԤ Υ ǡ � � � � � � ʬ Υ � ˥ � � ‫�����ڡ‬Ȥ � � ‫���������ޤ‬/ � � � ե ǡ � � � � Ϥ � � � � �
�˥ � � ‫��ڡ�����ޤ‬$뤫��Ǥ � � � � ⤷ � � �ֶ��‫����ڤ‬Ѥ��Ƥ���Τʤ �� ���
� � � Υ � � � � ƥ ब�����ɤ��������Τ���뤿��˲� � ٤�ƥ��Ȥ���ɬ�‫�����פ‬
� Ǥ � � �� �

� ‫` �ؿ‬time` � ϡ � � � � ߤΥ � � � � ƥ � � � � � $ � Τ ˻ Ȥ � � ‫��������ޤ‬
� ϡ�
`strftime` � ‫����ؿ‬ʸ� � � � � � Ѵ � � Ǥ � � ‫`�����ޤ‬timecolumn` � � � Ȥ ߹�碌
� � � � � � Ū � � � � � � � � դ � � . � � � � Τ ˤ � Ȥ � � ‫������ޤ‬η� � Ϥ � � 줬�֤ �����
� � � � ��0������‫ � �ޤ‬ξ � � � time() � ϸ � � ߤλ � � � � 1970 ǯ 1 � � 1
� � � � 0 � � Ȥ � � � �֤ ������� ¿ � ( � ‫���ޤ‬ʣ�ǿ�)
� Ȥ � � � �֤ ��� ‫ � ( ���������ޤ‬ðʲ� ) � � ʬ � � : � ٤ϡ � � � � ‫ڥ‬졼�ƥ�� � ������ƥ�
� � � � ��
� ˰ � ¸ � � � ‫������ޤ‬ʸ� � � � ʤ � С � � � � � � � ʸ � � � � Ǥ � � � Ȥ ߤʤ� � � � �
� � � � � 줿�� ʸ� � � � � � �� � � � �� ����`strftime` � � � Ϥ � � ‫���ޤ‬

��� � � � ϻ � � � / � � � եǡ� � � � � � r � � � � Ǥ � � �

�ե � � � � � "data" � ϰʲ� � Τ ��ʹԤ���ʤ�Ȥ��‫�ޤ‬:

03/21/95 10:00 6.02e23

� � � Υ ե � � � � � ϰ ʲ � � Τ ��ˤ� � � ɽ � � � � � � ‫�ޤ‬:

set xdata time


set timefmt "%m/%d/%y"
set xrange ["03/21/95":"03/22/95"]
set format x "%m/%d"
set timefmt "%m/%d/%y %H:%M"
plot "data" using 1:3

��� � �ǡ �x ��� � � � 9 � �θ � �Ф � � � �
"03/21" � Τ �� ɽ������‫���ޤ‬

� � � ߤ� gnuplot � ϡ � � � � � � ‫����פ‬٤�:���ߥ�������Υե���� ‫ޥ‬åȤ ⤽� �


� � ȼ � ä � � ѹ � � � � � Ƥ � � ‫���ޤ‬
� � : � � � ߤλ� � � � ٤�:���ߥ�ɽ��
print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0))
18:15:04.253 16-Apr-2011

�ʲ � � � � � : `time_specifiers` � �
C 1 � r 襹������ (plotting styles)
1 plotting styles
?plotting styles
=plot styles

gnuplot �Ǥϡ�����������r 襹�����뤬���ѤǤ��‫���ޤ‬


�����ϡ�����ե��٥åȽ�˰ ʲ ��˾ Ҳ� �Ƥ��‫���ޤ‬
���‫` ��ޥ‬set style data` �� `set style function` �ϡ�����ʹ ߤ�
`plot` �� `splot` ���‫�ޥ‬ɤ��Ф��ƥǥե���Ȥ��r 襹��������ѹ�
���‫���ޤ‬

�r 襹������ϡ����‫` ��ޥ‬plot` �� `splot` �ΰ���ʬ�Ȥ��ơ��<�Ū�˥�


�뤳�Ȥ�Ǥ��‫�����ޤ‬
�‫��������ץ‬ Ĥ��r����ǡ�ʣ����r 襹�������
�Ȥ߹�碌�������ϡ������Ǥ��Ф����r 襹����������� ɬ ��‫������פ‬
����

��:

plot 'data' with boxes, sin(x) with lines

���r 襹������ϡ����켫�Τ��ǡ����ե����뤫�� Τ����Ĥ��Υǡ�������

����Ԥ�� ‫�� ����ޤ‬С��ǥե���ȤǤ� `lines` ��������ϡ�y ����$���


�֤ ˼����)���‫ ��ޤ‬Ϻǽ 餬 x, ���� y ��
�ۤ˽��
1 ��Υǡ��� (x ����ϰ��
2 �Ĥ������Ԥ��Ƥ��‫ ����ޤ‬ե������ β ��Υǡ�������r ǡ����ᤵȲ � ��
�뤦�‫ ���ޤ‬ˡ�˴‫ � �����ؤ‬ˤĤ��Ƥϡ��ʲ�����: `using`��
2 boxerrorbars
?plotting styles boxerrorbars
?style boxerrorbars
?boxerrorbars
�r 襹������ `boxerrorbars` �� 2 �����Υǡ����r�ǤΤ����Ѳ�ǽ�Ǥ���
����ϡ�3 � �4 � ��‫���ޤ‬5 � ��‫�� ޤ‬Υǡ�����ɬ�‫פ‬Ǥ����������ɲ�
��
(4,5,6 ����) ����ȡ������ ϳ ƥǡ�������� variable color ���� (�ʲ�
����: `linecolor`, `rgbcolor variable`) �Ȥ��ƻȤ��‫ � ������ޤ‬ϡ�Ȣ

�ζ�����Ʊ�������r �� ‫���ޤ‬

3 ��: x y ydelta
4 ��: x y ydelta xdelta # Ȣ ���� != -2
4 ��: x y ylow yhigh # Ȣ ���� == -2
5 ��: x y ylow yhigh xdelta

Ffigure_boxerrorbars
y �θ��� "ydelta" �η|���Ϳ����ơ�
� Ȣ
��
� �� ���-2.0 ����
��� ��(`set boxwidth -2.0`) ���ʤ���С�Ȣβ�� ��� 4 ���‫� �ܤ‬ � ��
�Ϳ
���‫ ���ޤ‬y �θ��� "ylow yhigh" �η|���Ϳ��������
� Ȣ
���
� 5
���‫� �ܤ‬ Ϳ
� ��
���� ‫� �����ޤ‬ � ʾ��Ȥ��ơ�"ylow yhigh" �θ��|��� 4
��Υǡ������Ф��� `boxwidth = -2.0` �Ȥ������꤬����� ‫ � �����ޤ‬ξ��Ȣ
Ȣ�ˤ��
�β���ϡ���� ‫ ���ܤ‬Ĥ�� ä ��˼�ưŪ�˷3� �� ‫���� �ޤ‬ � ��Υǡ���
‫���������ޤ‬
�ξ��⡢����ϼ�ưŪ�˷

Ȣ�
⤵�ϡ�
yerrorbars`
ι ` ��������Ʊ�ͤ
y � �����
����� � θ �� �
‫���ޤ‬
y-ydelta ���� y+ydelta �‫ޤ‬ǡ����뤤� �ylow ���� yhigh �‫ޤ‬ǡ������ ϲ �
��Υǡ�����Ϳ����Ƥ��
� 뤫� ˤ�äƷ�‫���ޤ�ޤ‬
2 boxes
?plotting styles boxes
?style boxes
?boxes
`boxes` ��������� 2 �����r�ǤΤ����Ѳ�ǽ�Ǥ��������Ϳ���
� 줿 x ��

ɸ�����Ȥ���x ������ (����դζ��������ǤϤ��� ‫����Ϳ ) ���ޤ‬줿 y


��ɸ�‫ޤ‬Ǥ�Ȣ�� �‫� � � �����ޤ‬ 2 ��3 � ��‫�� ޤ‬Υǡ������
ϴ���Ū�ˡ��
�Ѥ��‫; ���ޤ‬ʬ �������ϡ �v a riable �Ԥ�� ɤ ��
٤���� ξ����
����
�� 줿��
�ΤȤ��ƻ��Ѥ���‫�( �ޤ‬ʲ�����: `rgbcolor variable`)��

2 ��: x y
3 ��: x y x_width

Ffigure_boxes
Ȣ�����
3 ���
Τ ���ˡ�Ƿ�� Ĥ pĤ �� �
‫ �����ޤ‬ϥǡ�����3 ���‫ܤ‬Υǡ�
�����äƤ�����ϡ����줬 Ȥ���
Ȣ����˥��å ‫ � � ������ޤ‬Ǥʤ���
`set boxwidth` ���‫ �ޥ‬ɤ�Ȣ����åȤ���Ƥ������ϡ����줬�Ȥ��
�‫ ������ޤ‬Τɤd�Ǥ�ʤ���硢 Ȣ����ϡ����‫ ���ܤ‬Ĥ Ȣ�����
�� ä ��˼�ư
‫���������ޤ‬
Ū�˷

Ȣ����Ȥϸ��ߤ�� ɤ�Ĥ֤��������� (fillstyle) �˽��ä��ɤ�Ĥ֤����


�����ܺ٤ϡ��ʲ�����: `set style fill`���������ɤ�Ĥ֤����������
plot ���‫ �ޥ‬ɾ�ǻ����뤳�Ȥ�Ǥ��‫���ޤ‬
�ɤ�Ĥ֤��������� `empty` �ξ��ϡ���ɤ�
� Ȣ ֤���‫���ޤ‬
����Ĥ
�ɤ�Ĥ֤��������� `solid` �ξ��ϡ�Ȣ� � ϸ ߤ�� r ��ǥ ٥�� ɤ �� �
��
�‫ �����ޤ‬fillstyle �ѥ��� ����ä ɲ ��뤳�Ȥ��ɤ�Ĥ֤�� �٤� )��Ǥ���
����0 ���‫ط‬ʿ���1 �����r ��
Τ�Τˤʤ�‫���ޤ‬
�ɤ�Ĥ֤��������� `pattern` �ξ��ϡ�Ȣ� � ϸ ߤ�� r ��ǡ�����ѥ�
��
������ɤ�Ĥ֤��‫���ޤ‬
��:

�ǡ����ե�������ɤ�Ĥ֤���Ȣ���r �� ���˥��

ȢƱ�Τ ����
ľ ‫���ڡ‬
���� (�%����):

set boxwidth 0.9 relative


set style fill solid 1.0
plot 'file.dat' with boxes

�ѥ�����Ǥ��ɤ�Ĥ֤����������Ȣ����
sin cos � �� Υ դ��
r:

set style fill pattern


plot sin(x) with boxes, cos(x) with boxes


sin �ϥѥ����� 0 �ǡ�cos �ϥѥ����� 1 ���r �� ‫����ޤ‬ ɲä�����r��
���ϥɥ ��Ф����‫ ��ݡ‬Ȥ���ѥ������۴�Ū�˻��Ѥ��‫���ޤ‬

���줾� Υ�ǡ���������<�Ū���ɤ�Ĥ֤�������������:

plot 'file1' with boxes fs solid 0.25, \


'file2' with boxes fs solid 0.50, \
'file3' with boxes fs solid 0.75, \
'file4' with boxes fill pattern 1, \
'file5' with boxes fill empty

2 boxplot
?plotting styles boxplot
?style boxplot
?boxplot
Ffigure_boxplot
boxplot �ϡ� �� ����Ū��ʬ �ۤ� �ɽ����������Ū ���ˡ�Ǥ�����ʬ������ϡ�
1/4 ���$�����ʬ������ʲ��� �� �� Ĥ ��ˡ�1/2 ���$������ʬ�����
(������
�) ʲ������� Ĥ ��ˡ���ȷ���� � ‫ � ������ޤ‬ʬ������ �

ʬ��δ֤��ΰ��Ϥ��� Ȣ���
� r 褷� �� ����
����� ��ΤȤ���ˤϿ�ʿ�����
���‫ ���ޤ‬Ȣ�Ҥ��ϡ�Ȣ������ ����� ³��‫ޤ‬DZ�Ĺ����‫ � � ������ޤ‬θ³���

���ˤ����$ϡ��ҤȤĤҤȤ��r �� ‫���ޤ‬

��:

# x ��ɸ�� 1.0��y �� 5 ���‫� �ܤ‬


� ΤȤ���� boxplot ������
plot 'data' using (1.0):5

# ���Ʊ���$����ϰ ϳ ����$ϱ�����boxplot ����� 0.3 �ˤ���


set style boxplot nooutliers
plot 'data' using (1.0):5:(0.3)

�ǥե���ȤǤϡ�using ����ˤ�� 2 ���‫ �ܤ‬y �Τ��٤Ƥ�����Ф���


boxplot �� 1 �Ĥ$�8.���‫ � � � � � � ������ޤ‬ɲä� (4 ���‫� ������� ) �ܤ‬
��ȡ�� Υ
���������������ѿ�� ��Ū �ʥ� ٥� ��Ǥ���ȸ��ʤ�������Υ��
��Υ�٥�� ��ο�$��� boxplot ���r ��‫ � � � ������ޤ‬boxplot �δֳ�
�ϥǥե���ȤǤ� 1.0 �Ǥ���������� `set style boxplot separation` ��
�ѹ��Ǥ��‫ ����ޤ‬ǥե���ȤǤϡ����� ѿ � � �� ϡ ‫���ޤ‬
� �� boxplot �β� (�
��) ����9��Υ�٥�� ɽ����� ‫���ޤ‬

��

# 'data' �� 2 ���‫" �ܤ‬control" �� "treatment" �Τ����줫� ʸ�����



# �ʲ�����ϡ����ΰ����� 2 �Ĥ� boxplot ��8.����
plot 'data' using (1.0):5:(0):2

����Ȣ
Υ�ǥե���Ȥ���� `set boxwidth <width>` ������ Ǥ�� ‫ � � � � �ޤ‬plot
���‫ �ޥ‬ɤ� `using` �ˤ�� 3 ���‫ܤ‬Υ��‫ � � � � � �ץ‬Ǥ����Ǥ��1 � ��‫���� ޤ‬
�� 3 ���‫( ���ܤ‬x ��ɸ����) ��� � �ǡ�����ǤϤʤ����Ȥ��� �� � Ϳ ‫���ޤ‬

�ǥե���ȤǤϡ�Ȣ�Ҥ���Ȣ��ü���顢 y �� �� ���ʬ���ϰϤ� 1.5 � ‫����ܤ‬

��‫ޤ‬äƤ��ƺǤ�Υ��Ƥ����� �� $‫ޤ‬DZ�Ĺ����‫ ����ޤ‬ǥե���ȤǤϡ���


� ϳ ����� (outlier) �ϱ� (pointtype 7) ���d���‫��� ���ޤ‬
Ȣ�Ҥ���ü $
�� `set bars` �‫` ���ޤ‬set errorbars` ��Ȥä�)��Ǥ��‫���ޤ‬

�����Υǥե���Ȥ�-�d� `set style boxplot` ���‫ �ޥ‬ɤ��ѹ��Ǥ��‫���ޤ‬


�ʲ�����: `set style boxplot`, `bars`, `boxwidth`, `fillstyle`,
`candlesticks`��

2 boxxyerror
?plotting styles boxxyerror
?style boxxyerror
?boxxyerror
Ffigure_boxxyerror
`boxxyerror` �r �� � � � � � �2 �����Υǡ����r�ǤΤ����Ѳ�ǽ�Ǥ�������
�ϡ�`xyerrorbars` �������뤬 � θ
ʬ� θ �
�ɽ������Ȥ����
Ĺ θ�d �ɽ����
�뤳�Ȥ��С��ۤ� � �
Ʊ���Ǥ�������ϡ���ϥǡ������4 � �6 � ��‫��� ޤ‬
���Ѥ��‫; ���ޤ‬ʬ�������ϡ�variable �Ԥ��ɤ��٤���� ξ���� ����
��줿
��ΤȤ��ƻ��Ѥ���‫�( �ޤ‬ʲ�����: `rgbcolor variable`)��

4 ��: x y xdelta ydelta


6 ��: x y xlow xhigh ylow yhigh

Ȣ����ȹ ⤵�� ��������Ʊ��


`xyerrorbars` x, y �
������� θ �� �
‫�ޤ‬
�Ĥ ‫ޤ‬ꡢ xlow ���� xhigh �‫ޤ‬Ǥ� ylow ���� yhigh �‫ޤ‬ǡ��‫ ���ޤ‬x-xdelta
���� x+xdelta �‫ޤ‬Ǥ� y-ydelta ���� y+ydelta �‫ޤ‬ǡ������ ϲ ���Υǡ���
��Ϳ����Ƥ��
� 뤫� ˤ�äƷ�‫���ޤ�ޤ‬

6 ��η|��Υ��‫� �ޥ‬
ɤϡ�Ǥ�դ� x, y �����Ĺ��d����
ñ����ˡ����
���‫���ޤ‬

������ ����������ϳvariable color


�������ɲ� (5,7 ����) �����ƥǡ��������
���� (�ʲ�����: `linecolor`, `rgbcolor variable`) �Ǥ���Ȥ��ƻȤ���
����

Ȣ������ϸ��ߤ�� ɤ�Ĥ֤��������� (fillstyle) �˽��ä��ɤ��‫�����ޤ‬


�٤ϡ��ʲ�����: `set style fill`, `boxes`��plot ���‫ �ޥ‬ɾ�ǿ������ɤ�
� 뤳�Ȥ�Ǥ��‫���ޤ‬
�Ĥ֤��������������
#TeX \newpage
2 candlesticks
?plotting styles candlesticks
?style candlesticks
?candlesticks
Ffigure_candlesticks
`candlesticks` ��������ϡ��� � 2
�ǡ����� ͻ ���� Υǡ����r 衢� � � � � � � �

�ǡ����ΤҤ��դ����%���դ�8.����Τ˻Ȥ��‫���ޤ‬
����ϡ���ʿ���ˤ� x �����Ȥ�����ľ���ˤϳ����� (open) �Ƚ���
�(close) � � ��Ȥ�����
Ĺ d��Ȥ�� ‫ ��������ޤ‬ơ� x �� � ��� ɸ �Ȥ
Τ � � � �
Ĺ��dΤƤä ‫��ڤ‬ǹ��� (high) �‫ޤ‬Ǥȡ�Ĺ��d��줫� ǰ���
� (low)
�‫ޤ‬Ǥο�ľ������‫ ��������ޤ‬ο�ľ��Ϻǹ���Ⱥǰ�������� ‫ �ؤ‬äƤ�
�ѹ�����‫���ޤ‬

����Ū�� 5 ��Υǡ�����ɬ�‫פ‬Ǥ�:

��ͻ�ǡ���: date open low high close



Ȣ�Ҥ��
x box_min
r: whisker_min whisker_high box_high

Ĺ��d���ϥ��‫` ��ޥ‬set boxwidth` ��)��Ǥ��‫ � � �����ޤ‬p�� gnuplot


�‫ؤ‬θ���ߴ� -�Ȥ��ơ�boxwidth �ѥ��� ������ ��
��� Ƥ��ʤ�����
`set errorbars <width>` ��)��� �� ��� ˤʤäƤ��‫���ޤ‬

���������ˡ�Ȣ � (box-and-whisker) �Υ�� 롼�‫�< ����ײ��˴ؤ‬Ū��


Ҥ�
��λ�����ɲä� 6 ���‫ܤ‬Υǡ����ǻ���Ǥ��‫ � � � � �����ޤ‬ϡ�x ��ɸ��Ʊ
��ñ���Ϳ��ʤ���
� Ф���� ‫���ޤ‬

�������ɲ� (6 ���‫ ���ܤ‬6 � ‫ ��ܡ‬ǡ�������Ȥ��ƻȤ����� 7 ��


� ��‫����������ޤ‬
��
��) ����ȡ������ ϳ ƥǡ�������� variable color ���� (�ʲ�����:
`linecolor`, `rgbcolor variable`) �Ȥ��ƻȤ��‫���ޤ‬

�ǥե���ȤǤϡ���ľ�ʬ�ΤƤä ‫ ����ڤ‬ˤϿ�ľ�˸����ʿ��ϰ���
� �
��� ��������
��������� ����� �� ŵ��Ū�����Ȣ
Ҥ���
� (box-and-whisker

plot) �Ǥλ��ѤǤ������r ��‫ �ޥ‬ɤ˥������ `whiskerbars` ���ɲä�


�Ƥ��$������ǥե���ȤǤϡ���ʿ���Ȣ (candlestick) �ο�ʿ����դ˰�
����‫ � � � � � �����ޤ‬t�Τ�����Ф����������뤳�Ȥ��ѹ��Ǥ��‫���ޤ‬

��ͻ�ǡ��������δ����Ǥϡ�(������) < (����) �ξ���Ĺ��d϶�ǡ�


(����) < (������) �ξ����ɤ�� ߤ������‫�� � ޤ‬ ٤� fillstyle �� "empty"
�� å� Ȥ��Ƥ�����ϡ��º
� ‫ݤ‬ˤ����ʤ�‫ ����ޤ‬ʲ�����: `fillstyle`��
��
fillstyle ���ɤ��‫����ޤ‬٤�� � �
ϥѥ������
� åȤ��Ƥ�����ϡ������ο
���
‫ ��ط‬ʤ������٤Ƥ�ˤ��
��˴ Ȣ� 줬 � Ȥ��‫ ����ޤ‬ʲ�����: `set errorbars`,
`financebars`���‫ ����ޤ‬ʲ����Ȥ��Ƥ��$�����
^ <a href="http://www.gnuplot.info/demo/candlesticks.html">
candlestick
^ </a>
��
^ <a href="http://www.gnuplot.info/demo/finance.html">
finance
^ </a>
�Υǥ⡣

���: ����� �ɽ������ε���ʤɤ��ɲä������� ��ʲ�����Τ ��ˡ���


���դ����%���դ�¾���r ��‫ �ޥ‬ɤ��ɲä���ɬ�‫ �פ�����ޤ‬:

# �ǡ�����: X '�Ǿ���' '1/4 �����' '�����' '3/4 �����' '������'

set errorbars 4.0


set style fill empty
plot 'stat.dat' using 1:3:2:6:5 with candlesticks title 'Quartiles', \
'' using 1:4:4:4:4 with candlesticks lt -1 notitle

# �Ҥ��ξ�˿�ʿ���ȼ���r�ǡ���ʿ������t����� 50% �ˤ���


plot 'stat.dat' using 1:3:2:6:5 with candlesticks whiskerbars 0.5

�ʲ�����: `set boxwidth`, `set errorbars`, `set style fill`, `boxplot`��


#TeX \newpage
2 circles
?plotting styles circles
?style circles
?circles
Ffigure_circles
�������� `circles` �ϡ��ƥǡ����$��<����줿 Ⱦ�¤α ߤ�� r ��3 � ��‫ޤ‬
��Υǡ�����Ϳ������
� ϡ� � ��� x, y, Ⱦ¤ Ȳ� ᤷ � �
‫ ���ޤ‬Ⱦ�¤ϡ����
�r�ο�ʿ�� (x �‫ ���ޤ‬x2) ��ñ�� Dz ᤵ � �� ‫ ���ޤ‬y ���νν‫ ��ܤ‬r��
�����‫ �����ڥ‬ϡ��������� �뤵 � �2 � ��‫�� ޤ‬Υǡ�������Ϳ��ʤ��
� ȡȾ � �

�� `set style circle` ������‫ � �����ޤ‬ξ�硢 Ⱦ�¤� graph �� screen


�κ�ɸ�Ϥ� �� � 뤳
Ϳ �Ȥ��Ǥ��‫���ޤ‬

�ǥե���ȤǤϴ�t�ʱ ߤ�� r ��‫ ���ܤ‬5��� ‫�� ������ܡ‬


4 � ����‫ � �˳ޤ‬ϳ ѡ � � � λ � Ѥ �
�����뤳�Ȥ���d��r 褹 � 뤳 � Ȥ�Ǥ��‫ ���ܡ‬4 � ��‫ ����ޤ‬뤤� �6 ���‫�ܤ‬
�ǡ������ɲä�����ʬ�ߤο�������뤳� Ȥ�Ǥ��‫ �����ޤ‬dγ�� ϳ ѡ���λ
�Ѥ�ñ����٤ǻ���� �
ɬ�‫ ����פ�����ޤ‬ʲ�����: `set style circle`,
`set style fill`��

��:

� ���� �� ��
# ���Ѥ� 3 ���‫� �ܤ‬ � � ʱ ߤ�� r�
set style fill transparent solid 0.2 noborder
plot 'data' using 1:2:(sqrt($3)) with circles, \
'data' using 1:2 with linespoints

# �ߤ����� ˥ѥå � � ‫ ���ޥ‬r�


plot 'data' using 1:2:(10):(40):(320) with circles

# ������ǡ����DZ ߥ��� դ��r�


set xrange [-15:15]
set style fill transparent solid 0.9 noborder
plot '-' using 1:2:3:4:5:6 with circles lc var
0 0 5 0 30 1
0 0 5 30 70 2
0 0 5 70 120 3
0 0 5 120 230 4
0 0 5 230 360 5
e

����ϡ�pointstyle 7 ���$Υ������� variable �Ȥ��� `points` �ˤ����


��Ȼ�Ƥ��‫ �����ޤ‬circles �� x �����ϰϤǿ��������$��ۤʤ�‫�����ޤ‬
����� :� `set object circle`, `fillstyle`��
2 ellipses
?plotting styles ellipses
?style ellipses
?ellipses
Ffigure_ellipses
�������� `ellipses` �ϡ��ƥǡ����$��ʱ� (ellipse) ���r ��‫� ������ޤ‬
��������ϡ�2 �����r�ˤΤ�Ŭ�Ѥ��� ‫ � �����ޤ‬ʱ ߤϡ���� ��缴 ľ�¡���
��ľ�¡�x ���ȼ 缴� Τʤ��ѡ���ɽ������‫���ޤ‬

2 ��: x y
3 ��: x y major_diam
4 ��: x y major_diam minor_diam
5 ��: x y major_diam minor_diam angle

2 ��Υǡ����Τ ߤ� Ϳ����줿� � � ϡ����������κ�ɸ�Ȥ ߤʤ��졢 � ʱ�


�ϥǥե���Ȥ���� ���� r �� ‫�ޤ‬
� (�ʲ�����: `set style ellipse`)����
�ߤθ����ϡ��缴 � � x ���Τʤ��Ѥ���d���‫ � � � � ������ޤ‬ǥե���Ȥ�
ellipse �Υ������뤫 � � � � �‫�( �ޤ‬ʲ�����: `set style ellipse`)��
3 ��Υǡ�����Ϳ���
� 줿� � � ϡ�3 ���‫ܤ‬ϼ �� ξ�����ľ�� (��) �Ȥ��ƻ�
��������� � � � ϥǥե���Ȥ�0 �ˤʤ� ����
4 ��Υǡ�����Ϳ���
� 줿� � � ϡ����������κ�ɸ���缴 ľ�� (��)����
��ľ�¤Ȥ��ƻȤ���������� � � � ľ�¤Ǥ��ꡢ Ⱦ�¤Ǥʤ����Ȥ���դ���
���$�����
5 ��Υǡ�����Ϳ���
� 줿� � � ϡ�5 ���‫� �ܤ‬
� ���ñ��θ����γ�� ٤λ����
���ƻȤ������
�ʱ ߤϡ�3,4,5 ���������Ȥ��ƻ����
��������뤳� Ȥǡ������Υǥե���Ȥ�
������
��
������Ѥ����ʱ ߤ� �� � �뤳� Ȥ�Ǥ������

��Τ��٤Ƥξ��ǡ�variable color �ǡ�����Ǹ���� (3,4,5,6 ����) ��


�����ɲäǤ��٤ ܺ ����‫ޤ‬ϰʲ�����: `colorspec`��

�ǥե���ȤǤϡ��缴 ľ�¤Ͽ�ʿ�� (x ����� x2) ��ñ�����ľ�¤Ͽ�ľ


�� (y ����� y2) ��ñ��Ǥ���Ȥ ߤʤ���������� � ϡ�x ���� y ���ν� �
���ۤʤ����缴�������ϲ � ž�� ˤ � 5 �����Ϥʤ�ʤ����Ȥ������Ȥ�
������Ƥ�������� � � � � � � � ε�ư�ϡ������ �� 
� `units` ��ѹ��Ǥ�� ����

����˴‫ ��ؤ‬Ƥϡ�3 ����������ʤ������� :


`units xy` ���r����˴��� Ƥ������ ��μ��Ͼ�˽Ҥ ٤�� 褦�˽ν�
�������� `units xx` �Ȥ���ȡ�ľ�¤�ξ���Ȥ� x ����ñ��Ƿ����� 졢
`units yy` ��ξ���Ȥ� y ����ñ��Ƿ2 � � � � ��‫� ������ޤ‬Ĥϡ��r�Υ�
�������ѹ����Ƥ⡢�ʱ‫���������ڥ‬5 � ߤ����� � � d����

`units` ���ά�������ϡ��ǥե���Ȥ����꤬���� Ѥ��졢`units xy` �Ȥ�


�������� � � � � ϡ�`set style ellipse` �Ǻ���r�ǽ�Ǥ���

�� (�ʱ ߤ�
� ���������Ū�˻��Ѥ����r�):

plot 'data' using 1:2:3:4:(0):0 with ellipses

�ʲ���� :� `set object ellipse`, `set style ellipse`, `fillstyle`��


2 dots
?plotting styles dots
?style dots
?dots
Ffigure_dots
`dots` �������� ϳ �� $˾����ʥɥåȤ��r �������� � � Ϥ���������$�
��ʤ 뻶�‫ ��ۿޤ‬r������Ǥ���� 2� �����r�Ǥ��1 ��2 � ��‫���� ޤ‬
�ϥǡ�������3 �����r�Ǥ� 3 ��Υǡ�����ɬ� ‫פ‬Ǥ���

���Ϸ|��ˤ�äƤ� (post, pdf �ʤ�)���ɥåȤ���� ���linewidth ���ѹ�


���뤳� Ȥ�)��Ǥ��뤳� Ȥ ⤢�� ����

1 ��: y # x �Ϲ��ֹ �
2 ��: x y
3 ��: x y z # 3D �� (splot)

2 filledcurves
?plotting styles filledcurves
?style filledcurves
?filledcurves
Ffigure_filledcurves
�������� `filledcurves` �� 2 �����r�ǤΤ����Ѥ��3 � � � �����‫����� ޤ‬

�ۤʤ���꤬��� ǽ�Ǥ����ǽ�� 2 ����� 1 �Ĥδ ‫ ��ؿ‬r 衢���뤤�� (x,y) 2


�����ϥǡ����ѤΤ�Τǡ���ǾҲ �� 褦 � ˥� � ‫ ����ץ‬ǹ��ʤ���꤬���
�������
��:

plot ... with filledcurves [option]

�����ǡ����‫ ����ץ‬ϰʲ��Τ��dΤ����줫�Ǥ�:

[closed | {above | below}


{x1 | x2 | y | r}[=<a>] | xy=<x>,<y>]

�ǽ�Τ�Τ� `closed` �ǡ�����϶�����켫�Ȥ���¿�ѷdȸ��ʤ�������


�ϥǡ����� 2 ��ξ��ˤϤ��줬 � ǥե���ȤǤ���

2 �����‫�� ��ܤ‬줿 � � � � � � � 뤤 � Ͽ�ʿ�����ľ���Ϳ���


� 줿� $ʤɤȡ � � �
֤ � �������ɤ�
��Ȥδ˺ ΰ Ĥ֤������

filledcurves closed ... �����Ķ���ǰϤ���� ΰ�


filledcurves x1 ... x1 ��
filledcurves x2 ... x2 �� (y1, y2 ����Ʊ��)
filledcurves y=42 ... ľ� y=42, ���ʤ�� x ����ʿ��
filledcurves xy=10,20 ... x1,y1 ���Ǥ����10,20 (� �Τ褦� ʷ~�)
filledcurves above r=1.5 �˺�ɸ�Ǥ�ư�¼��� 1.5 �γ�¦���ΰ�

Ffigure_yerrorfill
3 �����‫ܤ‬ϡ�x ��ɸ�ν��礬 Ʊ���Ǥ��� 2 �Ĥζ���δ֤��ΰ���ɤ��٤���
��������ϡ�(x, y1, y2) �� 3 ����� ǡ�����ɬ� ‫פ‬Ǥ�����ϥǡ����� 3
��������ϥ
��ʾ�ξ��ˤϤ��줬 � ǥե���ȤǤ���2 ���‫ �ܤ‬y ����ǡ�3 ���‫�����ܤ‬
����ǡ����Ǥ�����ϡ��Գ����ΰ��Ƥ�ɽ�����뤳� Ȥ��Ǥ������

����˻� 3 �����r � � � � � � � `zerrorfill` ���Ȥ��Ƥ��$�����

3 ��: x y yerror

plot $DAT using 1:($2-$3):($2+$3) with filledcurves, \


$DAT using 1:2 smooth mcs with lines

`above` �� `below` ���‫�����ץ‬


... filledcurves above {x1|x2|y|r}=<val>
�����
... using 1:2:3 with filledcurves below
�ηdΥ��‫ �ޥ‬ɤ�Ŭ�Ѳ�ǽ�Ǥ����ɤd�ξ��Ǥ⡢�����Υ��‫�����ץ‬
�ɤ�Ĥ֤��ΰ� � �������
‫��ޤ‬¤�(��¦����������϶��‫���ޤ‬

���: �����r�⡼�ɤ�t�Ƥν��Ϸ|��ǥ��‫ ��ݡ‬Ȥ����Ȥϸ¤�����


뤷�����
�ɤ���
3 ��Υǡ����r�Ǥϡ�x= �� y= �Υ���� ����

�ǡ����ե����뤫 � � �d��줿� � � � � � ɤ�Ĥ֤������� ȡ�� ����ʤ��ʤ�


ä
��5�����ʤ��ΰ�ˤʤ 뤳� Ȥ������������ � � � � gnuplot �����ΰ�ǤϤ�
���$��� ԥ ��Ƥ�� 뤫 � �Ǥ���
� ���

<x>, <y>, <a> ���r��ΰ�γ��ˤ������ ����ϥ���դζ����‫ �ذ‬ư����


������� äơ� � � � ‫ ����ץ‬xy=<x>,<y> ������ ���� μº ‫ ��ݤ‬ɤ�Ĥ֤���
��ϡ�xrange �� yrange �˰�¸�������
C 3 �ɤ��٤��� °- (fill properties)
3 fill properties
?filledcurves border
=border
`with filledcurves` �Ǥ��r�ϡ�fillstyle (solid/transparent/pattern)
�� fillcolor ������뤳� ȤǤ���˥������‫ ����ޥ‬Ǥ������ plot ���‫��ޥ‬
�� fillstyle (`fs`) ������ʤ���С����ߤΥǥե���Ȥ� fill ��������
����Ѥ������� ʲ�����: `set style fill`��plot ���‫ �ޥ‬ɤ� fillcolor
(`fc`) ������ʤ � � � С � �� � ����
� � � � (linetype) �ο���˽����

fillstyle ��°-�� {{no}border} �ϡ�filledcurves �Υ⡼�ɤ��ǥե����


�� `closed` �Ǥ�����˼��դ������
��:
plot 'data' with filledcurves fc "cyan" fs solid 0.5 border lc "blue"
2 financebars
?plotting styles financebars
?style financebars
?financebars
`financebars` ��������϶� � 2
�ǡ����� ͻ ���� Υǡ����r�ǤΤ����Ѳ�ǽ
�Ǥ�������ϡ�x ��ɸ 1 �� (�������) �ȡ�4 �Ĥ� y ��ɸ (���) ��ɬ�‫�פ‬
�������

5 ��: date open low high close

�������ɲ� (6 ����) �����ƹ���� ϳ


������ � variable color ��� (��

������: `linecolor`, `rgbcolor variable`) �Ȥ��ƻȤ������

Ffigure_financebars
� xϤ �ɸ�� �֤�� 졢� � ľ���ˤϺǹ��� (high) ��
����ϡ���ʿ���ˤ ���
�ǰ��� (low) ��ü�Ȥ����ʬ���Ȥ�������� � � � ơ� � � � � � ʬ � ˿ �ʿ � �
¦�
��ߤ����� � � (open) �ν�ˡ���ʿ��¦�ι�ߤ������ � (close) �ν�ˤĤ�
�������� ι�ߤ� Ĺ���� `set errorbars` ���ѹ��Ǥ�������� � � Ϻǹ� ����
�ǰ��������‫ �ؤ‬äƤ��Ѥ�����
� � ʲ�����: `set errorbars`,
`candlesticks`���ʲ����Ȥ��Ƥ��$�����
^ <a href="http://www.gnuplot.info/demo/finance.html">
��ͻ�ǡ����ǥ⡣
^ </a>
2 fsteps
?plotting styles fsteps
?style fsteps
?fsteps
Ffigure_fsteps
`fsteps` ��������� 2 �����r�ǤΤ����Ѳ�ǽ�Ǥ�������� 2 �‫ ��ܤ‬ʬ��
�٤� ��$�Ĥʤ��‫ ���ܤ‬1 :�‫( �ޤ‬x1,y1) ���� (x1,y2) ��ǡ�2 ���‫�ܤ‬
(x1,y2) ���� (x2,y2) ��ǡ������ξ��ϡ�`lines` �� `points` ���Ф�
���Τ�Ʊ���Ǥ���`fsteps` �� `steps` �ΰ ��ϡ�`fsteps` �ϡ�������
��� y ���˽ Ƥ���� �x ���˽
����� ��Τ��Ф���`steps` ����� x ��
���˽ Ƥ���� �y ���˽
����� ������

�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/steps.html">
steps �ǥ⡣
^ </a>
2 fillsteps
?style fillsteps
?fillsteps
`fillsteps` ��������ϡ�`steps` �Ȥۤ�Ʊ���Ǥ���������� y=0 �Ȥδ֤�
ߤ� fillstyle ���ɤ��‫��ޤ‬٤���� ʲ�����: `steps`��
ΰ� �
��
2 histeps
?plotting styles histeps
?style histeps
?histeps
Ffigure_histeps
`histeps` ��������� 2 �����r�ǤΤ����Ѳ�ǽ�Ǥ�������ϥҥ��ȥ����
���r�Ǥ����Ѥ�տ��� Ƥ������ y ����ϡ�x ������ �� �֤��� ȹ����
x1 �Ǥ��$� ((x0+x1)/2,y1) ���� ((x1+x2)/2,y1) ��Ǥο�ʿ��Ȥ���ɽ��
�������� ü���$Ǥϡ�������Ϥ��� x ��ɸ�����ˤʤ�褦� ˱�Ĺ�����
� Το�ʿ���ü�ϡ�����ξ�Ԥ�ʿ���� Τ Ȥ���Ǥα�ľ���
�����٤� �� Ʊ�
���ʤ�� ((x1+x2)/2,y1) ���� ((x1+x2)/2,y2) ���ʬ�Ƿ�Ф�����
�����ξ��ϡ�`lines` �� `points` ���Ф����Τ�Ʊ���Ǥ���

`autoscale` �����Ǥ����硢 x ���ϰϤϡ����α�Ĺ���줿� � ʿ����ϰϤ�

��Ϥʤ����ǡ����$��ϰϤ�
� �j �� ������� äơ�ü � � �
$˴ ‫ ��ؤ‬ƤϤ��ο�ʿ
���Ⱦʬ�����d���ʤ����Ȥˤʤ�����
�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/steps.html">
steps �ǥ⡣
^ </a>

2 histograms
?style histograms
?set style histogram
?plotting styles histograms
?histograms
�������� `histograms` �� 2 �����r� Ǥ Τ �� � � Ǥ � � � � ��� ϡ��ǡ����γ�
����¤Ӥ���ʿ�Ԥ��%���դ������� `plot` ���‫ �ޥ‬ɤγ����Ǥϡ�����
�9����‫ؤ‬
�˴ �� � ����� (key) �Υ����ȥ 뤬 � �°���뤫 � � �Τ����
�� � � � ��

ñ�����ϥǡ��������� � ɬ�‫��� ���( �פ�����ޤ‬ ϥե������1 �Ĥ�
ϡ�4 ����Υҥ��ȥ����|��Υ������� �‫ ��ݡ‬Ȥ��Ƥ������

��)�����ߤ�

set style histogram clustered {gap <gapsize>}


set style histogram errorbars {gap <gapsize>} {<linewidth>}
set style histogram rowstacked
set style histogram columnstacked
set style histogram {title font "name,size" tc <colorspec>}

�ǥե���ȤΥ�������� `set style histogram clustered gap 2` ���б���


�Ƥ�������� � Υ�������Ǥϡ�����˻����줿� ǡ � � � � � �� ν � �� ϡ � j��
�줿� ǡ�����Τ��Τ��줾� ν���� (���ֹ � ) ���б����� x ��ɸ�ξ��ˡ�
Υ� � 롼�‫פ‬Ȥ��ƸǤ�����֤��� ������ äơ�<n>�ĤΥ ǡ � � � � � �
�ơ�Ȣ
����˻���� ��� ��ǽ�θǤ��� x=1 �����Ȥ��� <n> �Ĥ�θ Ȣ�
Ǥ� ��
����ʤ ꡢ���<n>γơ� ⤵ϡ�ǡ� � � �� �� � � ǽơ � �
�(1
ι
����� κ) �
������������� θ�˾������� (gap) �����졢� � � ˳ƥǡ� � � � � μ � (2
����) ������б�����Ȣθ�Ǥ ��꤬ x=2 �����Ȥ����֤��� ����� ʲ�Ʊ��
�Ǥ����ǥե���Ȥζ��� (gap) ��� 2 �ϡ�Ȣ�θǤ �� Ʊ�Τδ֤ζ�� � �Ȣ
� �
2 �Ĥ���������Ȥ���������� Ʊ������Ф���Ȣ��t ��Ʊ��������� Ʊ
���ѥ������ Ϳ �� � �� �� (�ʲ�����: `set style fill`)��

Ȣ�θ ���줾� ϡ��ǡ����ե������


Ǥ � 1 �Ĥι Ԥ����$�������� � Τ�
������ϥե�����γƹԤ κǽ�ι�� ‫ ����ܤ‬Ф� (��٥� ) �Ǥ 뤳� Ȥ��ɤ�����
���ȤǤ���������ˤ��븫�Ф� (��٥� ) �ϡ�`using` �� `xticlabels` ����

Ȣ�
������Ĥ��뤳� Ȥǡ�������б����� θǤ� �� ο����� x ���˱�ä���
������֤����Ȥ��Ǥ������

`errorbars` �������� �ϡ��ƥ���ȥ���Ф����ɲä�������ɬ� ‫פ‬Ȥ����


���� `clustered` ��������ˤȤƤ��ɤ���Ƥ������� ǽ����ϡ�
`clustered` ��������ξ���t��Ʊ���Ȣι�⤵ (y ����) �Ȥ���� ‫��ݻ‬
�����
2 ��: y yerr # ��� y-yerr ���� y+err �‫ ��ؿ‬Ӥ �
3 ��: y ymin ymax # ��� ymin ���� ymax �‫ ��ؿ‬Ӥ �
����θ����‫ܤ‬ϡ����ߤ� `set errorbars` ����� <linewidth> ���‫����ץ‬
�����)��Ǥ������
�Ѥ�夲���Υҥ��ȥ����� 2 �Ĥη|������‫ ��ݡ‬Ȥ���Ƥ�������� � � � �
���‫` ��ޥ‬set style histogram {rowstacked|columnstacked}` ��j��Ǥ���
j� � 줿� � Υ
����������Υ�������ˤ����ơ�� ǡ � � � � � ��夲���Ѥ
�줿 �

Ȣ�Ȥ��ƽ�����5 � ��‫�� �ޤ‬ � ϡ�y=0 ����������Ѥ �夲 � � 졢 � � � ���


���‫ ����ظ‬ä��Ѥ�夲� � � 5 � ��‫� � �ޤ‬ � ������äƤ����ϡ�����
� ��� � �
�Ȳ�������ξ����Ѥ�夲� � 8.��������� ǥե���Ȥ��Ѥ�夲� ⡼ � ɤ �
`rowstacked` �Ǥ���

�������� `rowstacked` �ϡ����� ǽ���j��줿� � γƹԤ�����x �� Τ�


�줾��ΰ��֤�� � �֤ � � ‫ ���ܤ‬1 :�‫� �ޤ‬ � � x=1��Ȣ��2 ��� ‫ܤ‬Τ� x=2���ʲ�
� 줿� � � � б�����ϡ
Ʊ��Ȥ ʤ� ߤʹܰ����2 � ��‫ �ޤ‬j�� Ȣ�� ��� �� ξ ����
��Ť���ƹԤ�� ������ � � � Ʒ��Ȥ��ơ�x=1 �ˤǤ���Ȣ���Ѥ�Ť�ϡ���
��κǽ���� (1 ���‫���� ) ���ܤ‬ʤ ꡢ x=2 ��Ȣ ��Ѥ
� �Ť�ϳ ���� 2 ����
������ʤɤΤ 褦� ˤʤ����� Ʊ������Ф���Ȣ��t ��Ʊ��������� Ʊ���ѥ�
�����Ϳ����
� �� (�ʲ�����: `set style fill`)��

�������� `columnstacked` ��Ʊ��Ǥ��������d�ϳ�Ȣ���Ѥ � 夲� � (�ƹ�


�Υǡ�������ǤϤʤ�) ����Υǡ�������ʤ������ ǽ�˻����줿� � γ�
�Ԥ Υǡ����� x=1 ��Ȣ���Ѥ �夲� � 8.����2 ���‫��� ����˻ܤ‬ γƹԤΥ�
������ x=2 ��Ȣ��Ѥ
� �夲� � � ʤɤΤ 褦� ˤʤ������� � Υ�������Ǥϡ���
��ϡ��ƥǡ������
Ȣ�ο ‫ � ֹ���( �ܤ‬ǤϤʤ�) ���ֹ �� ��� �
�� ����

Ȣ����ϥ��‫` ��ޥ‬set boxwidth` ���ѹ��Ǥ������


Ȣ���ɤ�Ĥ֤���������ϥ��
‫` ��ޥ‬set style fill` ������Ǥ������

histograms �� x ���Ͼ�� x1 ����Ȥ�������� y ���˴‫ ��ؤ‬Ƥ� y1 ���� y2


������j��Ǥ������ plot ����
�histograms �¾ �Υ���������r��ξ��
����� 硢 histogram �Ǥʤ���ϡ�x1 ����Ȥ��� x2 ����Ȥ�����j���
�������

��:
Ffigure_histclust
��ϥե�����ϡ�2, 4, 6, ... ����˥ǡ��� �� �� a�3, 5, 7, ... ����
�˸�ɾ�d��ĤȤ������� ʲ�����ϡ�2 ���‫���ܤ‬ � �Ȣθ�Ǥ
� 4����� ‫� �ܡ‬ �귿
(clustered; �ǥե���ȥ�������) �Υҥ��ȥ����Ȥ����r �������� � � � �
�ϡ�plot ���‫ �ޥ‬ɤǷ����֤� (iteration) ����Ѥ��Ƥ����� Τǡ�Ǥ�դθ�
��Υǡ�������ĤΥ��‫ �ޥ‬ɤǽ���Ǥ������� ʲ�����: `plot for`��

set boxwidth 0.9 relative


set style data histograms
set style histogram cluster
set style fill solid 1.0 border lt -1
plot for [COL=2:4:2] 'file.dat' using COL

����ϡ�x ����γ�0��������Ȥ��뤽 � 줾 � � 2 �Ĥ�Ȣ


(��ľ����) ���
�Ǥ�� ˤ���r��8.��������� ϥե�����κǽ����˥� ٥뤬 � ����
����ʤ 餽 ��� ʲ��ξ����ѹ��������‫ �ޥ‬ɤ� x ���˱�ä����֤ Ǥ������

plot for [COL=2:4:2] 'file.dat' using COL:xticlabels(1)

Ffigure_histerrorbar
�ե����뤬 � � �ƥǡ������¬ ���
�ξ
�ϰϤ����� ξ��� �� Ǥ������r��
������ɲä��뤳� Ȥ��Ǥ������� ʲ��Υ��‫ �ޥ‬ɤϸ���� (y-<error>)
���� (y+<error>) �˰�����Ƭ��Ȣ��Ʊ ���� ο�ʿ���Ĥ�������� �

�ȸ����ü����ϡ������� 2 ���r �� ����

set errorbars fullwidth


set style fill solid 1 border lt -1
set style histogram errorbars gap 2 lw 2
plot for [COL=2:4:2] 'file.dat' using COL:COL+1

�ʲ��ϡ�Ʊ���ǡ����������Ѥ �夲� � (rowstacked) �Υҥ��ȥ������r�


������ˡ� �� �
�����
��Ƥ�� ‫ޤ�������ޤ‬ǤȤϰ �� �� ʲ�����ǤϷ����֤��� Ȥ���
�Ǥʤ����<�Ū������������������

set style histogram rowstacked


plot 'file.dat' using 2, '' using 4:xtic(1)

Ffigure_histrows
����ϡ���İ�Ĥα�ľ���$����ǡ����ΰ�Ĥ�����б������r��8.����
�������$ϡ�2 �Ĥ���ʬ���Ѥ �夲� ηdǤ��ꡢ��� 줾� � � � � ʬ�ι⤵������
�����ե������ 2 ���‫� ���ܤ‬4 �����‫� �ܤ‬
� ����� ����
#TeX \vspace{1em}
�Ǹ�˰ʲ��Υ��‫��ޥ‬

set style histogram columnstacked


plot 'file.dat' using 2, '' using 4

Ffigure_histcols
�ϡ���İ�Ĥ����줾� � ǡ�������б����롢 2 �Ĥα�ľ���Ѥ��
Ť�$�
�� 8
.������� x=1 �ˤ����$ϡ��ǡ����ե������ 2 ���‫ܤ‬γƹԤ�����б ������
Ȣ����ʤ����� x=2 �ˤ����$ϡ��ǡ����ե������ 4 ���‫ܤ‬γƹԤ�������� � �
������Ȣ
���ʤ�
� ����

����ϡ�gnuplot ��������Ϥνġ����β�����촹 � � � 뤳 � Ȥˤʤ�����


�ǡ�����Υ����ȥ�� x ������9��θ��Ф��λ�����ѹ�����ɬ�‫� �����פ‬

������ʲ��Υ�������ʬ� Ȥ��Ƥ��
� �$ �����

set style histogram columnstacked


plot '' u 5:key(1) # 1 ���‫�� �� ����ܤ‬
ȥ�˻���
plot '' u 5 title columnhead #

���� 2 �Ĥ���ϡ�t��Ʊ���ǡ�������
ΤǤ
��Ƥ���Ϳ ����� �ۤʤ�
����Ǥ
�뤳� Ȥ���դ��Ƥ��$�����
3 newhistogram
?newhistogram
?histograms newhistogram
?plotting style histograms newhistogram
��:

newhistogram {"<title>" {font "name,size"} {tc <colorspec>}}


{lt <linetype>} {fs <fillstyle>} {at <x-coord>}

�����r�� 2 �İʾ�Υҥ��ȥ������Ȥ��뤳 � Ȥ�Ǥ�������� � ξ��


���‫` ��ޥ‬newhistogram` ��Ȥ����Ȥǡ�������)Ū��ʬΥ�����������
����Υ�٥�� ʬΥ���뤳� Ȥ��Ǥ������
��:

set style histogram cluster


plot newhistogram "Set A", 'a' using 1, '' using 2, '' using 3, \
newhistogram "Set B", 'b' using 1, '' using 2, '' using 3

��٥� "Set A" �� "Set B" �ϡ����줾� � Υҥ��ȥ������Ȥβ���x ����t


�ƤΥ�٥� β��ΰ��֤ ˸��������
���‫ ��ޥ‬newhistogram �ϡ��ҥ��ȥ����ο��դ���)Ū�˻���� ���
(linetype) �ǻϤ��Τˤ�Ȥ������� ǥե���ȤǤϡ������ֹ � ϥҥ��ȥ�
���ζ���������� Ǥ�����Ϣ³Ū����ä�³��������� � � � � ϡ�ʣ��Υҥ�
�‫���ܤ‬
�ȥ�����Ʊ�����դ���‫����������ޤ‬
plot newhistogram "Set A" lt 4, 'a' using 1, '' using 2, '' using 3, \
newhistogram "Set B" lt 4, 'b' using 1, '' using 2, '' using 3

Ʊ��ˡ����Υҥ��ȥ������� �� �fillstyle �ǻϤᤵ��� 뤳� Ȥ���ǽ��


�������� fillstyle �� `pattern` �˥��åȤ�������ɤ��٤�� ˻��Ѥ����
�ѥ������ֹ � ϼ�ưŪ����ä���Ƥ��������

Ffigure_newhist
���‫` ����ץ‬at <x-coord>` �ϡ����θ�Υҥ��ȥ����� x ��ɸ�ΰ��֤�
<x-coord> ������������� :

set style histogram cluster


set style data histogram
set style fill solid 1.0 border -1
set xtic 1 offset character 0,0.3
plot newhistogram "Set A", \
'file.dat' u 1 t 1, '' u 2 t 2, \
newhistogram "Set B" at 8, \
'file.dat' u 2 t 2, '' u 2 t 2

���ξ�硢 2 ���‫ܤ‬Υҥ��ȥ����ΰ��֤� x=8 ����Ϥ ‫���ޤ�ޤ‬


C 3 ʣ�������뼫Ϥ ưŪ�ʷ����֤� (automated)
3 automated iteration over multiple columns
?automated
?histograms automated
?styles histograms automated
?plotting styles histograms automated
���ĤΥǡ����ե�����Τ��������� � ҥ��ȥ�����8.������
� ��� ĤΥ
��硢 plot �η����֤� (iteration) ��ǽ��Ȥ�������Ǥ���� ��ʲ�����:
�� � ‫ܤ‬ǤΥǡ������Ѥ�夲� � � dΥҥ�
`plot for`�����С�3 ���‫��� ܤ ޤ‬8� ����������
�ȥ�����8.������:

set style histogram columnstacked


plot for [i=3:8] "datafile" using i title columnhead
2 image
?plotting styles image
?style image
?image
?rgbimage
?rgbalpha
�r � � � � � � � `image`, `rgbimage`, `rgbalpha` �ϡ������������ɸ����
���ä��ʻҾ�ǡ������2 �������3 � ��‫������ ޤ‬Τ���ʿ���˼ͱƤ�
������� ϥǡ����ϡ���ˤ���ӥ‫ޥ‬å å ‫ ���ײ‬ե�����(PNG �Τ褦� � ɸ��Ū
�ʥե����‫ޥ‬åȤ����Ѵ�������ΤǤ 褤) ����ñ��ʿ�������Ǥ���

=heatmap
Ffigure_heatmap
���ο �ϡ������顼������ �
���� ʬ�ۤ� 8.������Ǥ� (����: ��� ɽ��
����Ƥ�����)�����ߤΥȤѥ�åȤȤ ƥ����顼�� ����б�����ԥ������
���‫ؤ‬γ����Ƥ˻��Ѥ������
plot '-' matrix with image
5 4 3 1 0
2 2 0 0 1
0 0 0 1 0
0 1 2 4 3
e
e

Ffigure_rgb3D
��� 2 ��������γƥԥ����� (�ǡ�����) �ϡ��r �� ����
Ǥ�Ĺ��a���
����ʿ��ϻ���ΤȤʤ������� � � γƥǡ����$κ�ɸ�ϡ�ʿ��ϻ���� Τ �� �
����������� � ʤ�a�M x N �ĤΥǡ�������� M x N �ԥ�����β����8
.��������� � � ϡ�M x N �ĤΥǡ������礬 (M-1) x (N-1) ���Ǥ��.����
pm3d �ι�¤�Ȥϰۤʤ������ Х��ʥ����ǡ����γʻҤ������ϡ��ɲ�
������ɤǤ����)���ǽ�Ǥ����ʲ�����: `binary keywords flipx`,
`keywords center`, `keywords rotate`��

Ffigure_scaled_image
�ƥԥ������ x �� y ����� � ��
��� ����
�� Ȥǡ�����ǡ����� 2 �����r��ɸ
�����뤳� Ȥ��Ǥ������� ʲ�����:
����������Ĺ��d˼��� 褦� ˿�
`binary keywords dx`, `dy`�����β����8.����Τˤϡ�Ʊ����ϲ����
���줾� � dx, dy, origin ������ � ʣ�������
֤ � ������ � � � PNG �����
�ϡ ⤤�`dx=0.5 dy=1.5` dz��
����ӥ�γ��� 50x128 �ԥ�����Ǥ���� �ӥ�
��Ƥ��r �� ��
��� ӥ �ϡ � `dx=0.5 dy=0.35` � Ȥ � � Ƥ � � ‫ �ޤ‬:����) �‫ �ޤ‬ɽ
������Ƥ�����)��

�������� `image` �ϡ����쥤 � � � � � � � � (������Ĵ)������ ϥ��


顼� ѥ�å���

���� Ǥ���ԥ��������Ϥ���������� ä� 2 �����r� (`plot` ����


���) �Ǥ� 3 ��Υǡ��� (x,y,value) ��3 �����r� (`splot` ���‫) ��ޥ‬
�Ǥ� 4 ��Υǡ��� (x,y,z,value) ��ɬ�‫פ‬ˤʤ�����

�������� `rgbimage` �ϡ��֡�� С��Ĥ� 3 �Ĥο�.ʬ (RGB) �ǵ��Ҥ��줿� �


���������Ϥ���������� ä� `plot` �Ǥ� 5 �����ǡ��� (x,y,r,g,b)
����`splot` �Ǥ� 6 �����ǡ��� (x,y,z,r,g,b) ��ɬ�‫פ‬ˤʤ����� �֡�� С�

�Ĥγ�.ʬ�� [0:255] ���ϰ���ˤ���Ȳ���� ����

�������� `rgbalpha` �ϡ��֡�� С��Ĥ� RGB .ʬ�˲ä��ơ�����ե��� (Ʃ


��ѥ��� �) �ξ������ %ԥ � � � � � � � � Ϥ � � � � ������ äơ�`plot`
�Ǥ� 6 �����ǡ��� (x,y,r,g,b,a) ����`splot` �Ǥ� 7 �����ǡ���
(x,y,z,r,g,b,a) ��ɬ�‫פ‬ˤʤ����� �֡�� С��ġ�����ӥ���ե��γ�.ʬ��
[0:255] ���ϰ���ˤ���Ȳ���� �����
Ʃ��
C 3 (transparency)
2
3 transparency
?image transparency
?transparency
?alpha channel
�r � � � � � � � `rgbalpha` �ϡ��� ƥ γ
ǡ���� ϥԥ���� 뤬 [0:255] ���ϰ���
�Υ���ե�����äƤ���ɬ� ‫ ���פ�����ޤ‬alpha = 0 �Υԥ�����ϴ�t��Ʃ
�$ǡ����β� (��) ���r����Ǥ�t���Ѥ������ alpha = 255 �Υԥ������
��t����Ʃ�$Ǥ������ ٤��
Ƥν��Ϸ|��ϡ� ������ 2 �Ĥ�ξ��ü���� �‫�ݡ‬
�Ȥ��0 � ��‫ޤ‬$< alpha < 255 �Υԥ������ȾƩ�$ǡ�Ⱦ$ Ʃ�$ $‫ ��ݡ‬Ȥ��Ƥ�
�ʤ����Ϸ|��Ǥϡ�������� 0 �� 255 �Τ���� 줫��‫���ݤ�ޤ‬
3 image pixels
?plotting styles image pixels
?style image pixels
?image pixels
?pixels
?plotting styles image failsafe
?style image failsafe
?image failsafe
?failsafe
���Ϸ|��ˤ�äƤϡ�2 ������Ĺ����ΰ���Ǥβ���ǡ����r�Ρ��ǥХ���
��饤�֥�� ˰�¸������Ŭ���롼�e����Ѥ��Ƥ��������� � ϡ����Х�
��ԥå��俭��������� ʤ��ä��ꡢ�郎��� ��
� ʤɡ�˾������ ʤ����Ϥ�
8.���뤳 �Ȥ����������� � � �  � � `pixels` �ϡ����Τ 褦� ʥ 롼 � e����
� � �ˡ � � � � � � 1 �ԥ � � � � 뤺 � � � r 褹 � � 褦 � ʰ���Ū�ʥ����ɤ���Ѥ����
� � gnuplot � ˻ ‫ � � � �����ؼ����ޤ‬r � ⡼ � ɤ Ǥ ϡ � � r � � � ٤���� ȤƤ���� �
� � � ϥ ե � � � � � � 8 . � � � ������ � ɤν��Ϸ|��Ǥ ⶦ��Ū �ʸ � � � � ‫ ��ܤ‬. � � � Ƥ �
� � � Ǥ � � 礦 ( � � � ‫` ����ץ‬pixels` � ϡ � � � p � � gnuplot � Ǥ � `failsafe`
� ȸ Ƥ Ф � Ƥ � � ���� )� �
� �:
plot 'data' with image pixels
2 impulses
?plotting styles impulses
?style impulses
?impulses
Ffigure_impulses
`impulses` � � � � � � � � ϡ � 2 � � � � � r � Ǥ � y=0 � � � � � � $ � y � � �� ‫ؤ‬Ρ � 3 � �
� � � r � Ǥ � z=0 � � � � � � $ � z � � �� ‫ؤ‬Ρ � � � ľ � � � ʬ � � ɽ � � � � � ���� y � � z
� � �� � � � � �� Ǥ � �� � �Ȥ���դ��Ƥ��$������ǡ������ɲ����ƿ�ľ�ʬ
� ο � � � ) � � � � � � Ѥ Ǥ � � ������� Υ � � � � � � � � 3 � � � � � r � ǻ � � Ѥ � � � � ��

� � � (linewidth > 1) � � � � � Ѥ � � � Ȥ � � � � Ū � Ǥ � � � � � � � � � � 3
��� � � � � �
� � � � դ ˻ � � Τ ˤ ʤ � ����

1 � �: y
2 � �: x y # [x,0] � � � � [x,y] � ‫( ��ؤ‬2D)
3 � �: x y z # [x,y,0] � � � � [x,y,z] � ‫( ��ؤ‬3D)

2 labels
?plotting styles labels
?style labels
?labels
Ffigure_labels1
��� � � � � � `labels` � ϡ � � ǡ � � � � ե � � � � 뤫 � � � ɸ��ʸ������ɤ߹��ߡ����� ʸ

�� � � � �� �2 � � � � � � 3 � ��‫ � � � � � � ޤ‬ɸ � � �֤�� ������ � � ϴ���Ū�� 3 ��

� 4 � ��‫ � � � � � ޤ‬Ϥ � ɬ � ‫פ‬Ȥ�������� � � � ;ʬ�������ϡ�ʸ����β�ž��


(� � � � �  � � `rotate variable`) � �ʸ � � ( �ʲ� � � � � : `textcolor variable`)
� Τ 褦� ʡ��������ư����°�� -����� ��줿 � Ȥ ߤʤ�������

3 � �: x y string # 2 ��� � � �
4 � �: x y z string # 3 � � � � � �

� ե � � � ȡ � � � � � � � ž � Ѥ �� � ¾ � � � r � ƥ � � � � Ȥ � ° - � � � ɲ å � � ‫ ����ץ‬Ȥ���
��� � �ǽ �Ǥ � ( �ʲ� � � � � : `set label`) � � � � � � � � ϡ � � � ϥ ե � � � � � � 1
��� �
� � � � � ä � � Ԥ �� p � � � � � � � � ʸ � � � � � 4 , 5 � � � ‫ ����ܤ‬ä� � Ͽ �� ɸ��
� r �� ����� ե���ȥ������ϡ�3��� ��� �������
�������� ‫ܤ‬
� ����� ���� Ƥ� �ơ � � � � ξ � � Ϥ �
� � Ͽ � � � �� � � � Ƥ � � ����

CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), String)


plot 'cities.dat' using 5:4:(CityName(stringcolumn(1),$3)) with labels

�� ե � � � ȥ � � � � � � �ġ � � λ Ԥ �� p � � � Ф � � ư ۤʤ 륵 � � � � �˹� 碌� ʤ��Ƥ���
� ʤ � С � � � � ‫ �ޥ‬ɤϤ�äȴ�ñ�Ǥ�:

plot 'cities.dat' using 5:4:1 with labels font "Times,8"

labels � � `hypertext` � � � Ĥ � � Ƥ � � � � �� � � �ʸ� � � � ϥ ‫ � � � � � ������ޥ‬б�


� � � � � $ ξ � � � �� Ȥ��ˤ$����������� ʲ�� � � � : `hypertext` � � � � � ξ � �
� ϥ � � ѡ � � ƥ � � � � Ȥ � �֤���� Ȥ��Ƶ�ǽ�����$��뤿 � � ˤ��Υ�٥��
`point` °-� �� � � ˤ � � � ɬ � ‫ �פ�����ޤ‬:

plot 'cities.dat' using 5:4:1 with labels hypertext point pt 7

Ffigure_labels2
��� � � � � � `points` � Ǥ � � �� � � � � �d � � � Ƥ � � � � $ ε � � 椬 Ŭ�
‫ڤ‬Ǥ ʤ � � � � � � �
� � � Ͻ � ʬ � Ǥ ʤ � � � �� � � � � � � �Ȥ��ƥ������� `labels` ��Ȥ����Ȥ� Ǥ�
� ����� �� � С � �ʲ � � � ñ � � ʸ � � Ȥ � � � j � � � � � � Ȥ � �d�� � � 3 � � � ‫ܤ‬Υǡ � � �
�� � � б � � � � 뤽 � Ĥ
ΰ �Ĥ �� դ
Ĥ γĤ � $ ˳ � � � � Ƥ � � � Ǥ � ( � � � � : �ʲ� � Υ � � �
� ‫< ��ץ‬UTF-8 ʸ� � � � > � � � � ʬ � ˤ ϡ � � � � � � � � �5���‫ݤ‬ �� � � � �� � �‫ ��ܡ‬ȥ���
��� � ʤɤ � UTF-8 ʸ� � � � � ¤ � Ǥ � � ������ � � � � � �� ��� � � � �� Ȥ�ξΩ���ʤ���
� � � � � Ƥ � � �� ):

set encoding utf8


symbol(z) = "<UTF-8 ʸ� � � � > " [int(z):int(z)]
splot 'file' using 1:2:(symbol($3)) with labels

�ʲ � � ϡ � 4 � � � ‫� �ܤ‬ � ��� � �� β �ž� ѤȤ � � �5 ��� ‫� �ܤ‬


� �ʸ � � ("tc") � Ȥ �
� � � ٥� λ � � � � � Ǥ � � � � � � � �� ο � � � � � ϡ � � � � `using` � � � � κ Ǹ � � � �
��� 뤳 � Ȥ���դ��Ƥ��$�����

plot $Data using 1:2:3:4:5 with labels tc variable rotate variable


2 lines
?plotting styles lines
?style lines
?lines
Ffigure_lines
`lines` � � � � � � � � � � � � ‫ ����ܤ‬$ � ľ � � � ʬ � Ƿ � Ӥ ����
�� � � ϡ �2 �� � � � r � Ǥ⡢3 �� � � � r � Ǥ � � � Ѥ Ǥ � � � � � � � Ū �ˤϡ�1 �� 2
� � 3 � � � � �� ���
� ‫פ‬Ȥ������
ǡ���� �� �� ���ɬ �� ϥ
;ʬ�������ϡ���ο����ѹ��ʤɤξ��� � �����
� � 줿 � � ΤȤ��ƻ�� Ѥ ����
� � ( �ʲ� � � � � : `rgbcolor variable`) � �

2 ��� � ("using" � � � � ʤ � ) � ξ � �
1 � �: y # � � �ֹ � ˤ � � � �ۤ� x
2 � �: x y
3 ��� � ("using" � � � � ʤ � ) � ξ � �
1 � �: z # x � ϰ � �ۤι� �ֹ 桢 y � � index � � � �
3 � �: x y z

�ʲ � � �� � : `linetype`, `linewidth`, `linestyle` � �


2 linespoints
?plotting styles linespoints
?style linespoints
?style lp
?linespoints
?lp
?pointinterval
?pointnumber
Ffigure_linespoints
`linespoints` � � � � � � � � ( � � ά � � `lp`) � ϡ � � � � ‫ ����ܤ‬$$� ľ�����ʬ��
� � ӡ � � � � θ � Ǻ ǽ � � � � ä Ƴ � � $ ˾ � � � � ʵ � � � � � d � � 5 � ���‫ � � �ޤ‬ϡ �
`set pointsize` � Ƿ � �� ǥե � � � Ȥ � � �� � � � �d � � ������ plot � � � ‫��ޥ‬
� � � � $ Υ � � � � � � � � � �� �� ꡢ ���뤤 � � � � ϥǡ������ɲ���Ǹ�����%�����
� � � � ��뤳 � Ȥ� Ǥ������� ɲä � � � � � � ϡ � � � �� � � � ο � � ʤ ɤ ξ � � � � � �
� � � � Τ ˤ � Ȥ � � ����� ʲ� � � � � : `lines`, `points` � �
� � � � դ Τ � � ٤Ƥ � � $ ˵ � � � ΰ � � Ĥ � � 뤫 � ‫ �) ���ݤ‬椹 � � 2 � ĤΥ � � � �  � �
`pointinterval` ( � � ά � � `pi`), `pointnumber` ( � � ά � � `pn`) � � � � � � ����

`pi N` � � � 뤤 � � `pi -N` � ϡ � N � � � � � 1 � Ĥ$ � � � � � � �֤�� 褦 gnuplot � �


� ‫� � �����ؼ����ޤ‬ � �� � �� �
ȡ� ��������ʬ����ʬ��
β ä�� ������� ξ �
�� � �ʬ �Υ � � � � � � � `set pointintervalbox` � � ) � � Ǥ � � ����

`pn N` � � � 뤤 � � `pn -N` � ϡ � � ǡ � � � � $ Τ � � � N � Ĥ$ � � � ٥�� դ�����褦


gnuplot � ˻ ‫ ����ؼ����ޤ‬$Ϥ��Υǡ���t�Τ��Ϥäƶ���ʴֳ֤˼�� ����
`pi` Ʊ����������� �� �ȡ� ����
β����ʬ����ʬ��ä������

2 parallelaxes
?plotting style parallelaxes
?style parallelaxes
?parallelaxes
Ffigure_parallel
ʿ�Ժ�ɸ�r�(parallel axis plot, parallel coordinates plot �Ȥ�ƤФ�
� � ) � ϡ � ¿ � � � � � ǡ � � � � � � � ‫ ��ؤ‬в � � � �
������� � � � � ϡ � ��� � Υ � � � � � � � �
� ļ � � ˳ � � � � Ƥ � � 1 � �����‫ � ޤ‬Ԥ � � � � ɤ ߹���$� � 줾 � � � � � � �� ϡ � 1
� � � ‫ܤ‬μ � � � � � 2 � � � ‫ܤ‬μ� � ‫ ���ܤ‬2 � ‫ء‬μ � � � � � 3 � � � ‫ܤ‬μ � � ‫ ��ؤ‬ʬ�Ƿ�Ф��
� � � � � � � ʤ � � ʿ � Ժ � ɸ � r � � � Ǥ ϡ � � � Ϥ γ ƹ Ԥ � � � � 줾 � � � � Ω � � � � � ���� ˤ �
� � ������� � � � � � � � � ʬ�ष� ƿ � � � � � � � Ƥ 뤳 � ȤϤ�� Ԥ��������
� � � � ϡ � � � � � ʬ � � ȼ � � Ȥ δ ֤δ ‫ �����ط‬Ū � � Ĵ � � � � � 뤳 � Ȥ��ǽ�ˤ������
� ǥե � � � Ȥ Ǥ ϡ � g nuplot � ϼ � ư Ū � ˸ ġ � � μ � � � � ϰ ϡ � � � � � � � � � � � � ϥ ǡ � � �
� � � � � � �������� � � � � `set axis range` � � � ‫ �ޥ‬ɤˤ�äƤ�� �� ��� � ��� �
� ‫ ������ޥ‬뤳 � Ȥ��ǽ� Ǥ����ʲ�����: `set paxis`��

ʿ�Լ��κ���� Ŀ ϡ�gnuplot �Υ���ѥ����� ��졢 � � �


˸� κ� � � �� ϡ �
`show version long` � � ɽ � � � � � � ����
2 points
?plotting styles points
?style points
?points
?point type
?pointtype
Ffigure_points
`points` � � � � � � � � ϳ � � $ ˾ � � � � ʵ � � � � ɽ � � � � � ������� ε � � � Υ ǥ ե � � � �
� � � �� � � � �ѹ� � � � � ˤ ϥ � � ‫` ��ޥ‬set pointsize` � � � Ȥ � � ����� ǥե � � � �
� � � < � ϡ � � � � � Ʊ � � � � Τ ˤ ʤ � ����� ʲ� � � � � : `linetype` � � p lot � � � ‫�ޥ‬
� ɤ � `using` � � �꤬�� ʤ� � � � ϡ � � � ϥ ǡ � � � � � ϲ � � ��줿 � � ˡ� Dz ᤵ � ��
� ����� ʲ�� � � � : `style lines` � �

� ǽ � � 8 � Ĥ � � < � ϡ � � � � ٤Ƥν � � Ϸ | � � Ƕ � �� Ǥ � � � � � � � � ¿ � � � � � < � � �


�� ˥ � � ‫ ��ݡ‬Ȥ�����Ϸ|�� ⤢ �� ߤ������‫ޤ‬ν � � Ϸ | � � � � � � � Ǥ ɤ Τ 褦� � � �
� 郎� Ѱդ���Ƥ �� 뤫 � � � � ˤϡ � � � � ‫` ��ޥ‬test`
� � � � � � � � � � Τ 褦� ˤ � � ơ � Ǥ � դ ΰ � � � ǽ ʸ � � � � < � �ֹ � ���� � ˻ � � Ѥ � � �
� � � Ȥ � Ǥ � � ������� Ĺ � �ʸ � � � � ϡ � � r � � � � � � � `points` � Ǥ Ϥ ʤ �
`labels` � � Ȥ � � н � � Ϥ Ǥ � � ����

plot sin(x) with points pt "#"

� < � Ȥ � � ơ � Ǥ � դ � UTF-8 ʸ� � � � � Ѥ Ǥ � � ����� ʲ�� � � � : `utf8` � �


=variable
?variable
?variable pointtype
?variable pointsize
?pointtype variable
?pointsize variable
plot � � � ‫ �ޥ‬ɾ�ǥ������ `pointtype`, `pointsize`, `linecolor` ���
� � � ‫����˥ � ���� � ֹ� �ݡ‬�� `variable` ���ɲä��뤳 � Ȥ�� Ǥ��������
� ξ � �� � �$ � � б � � � � � ° - �� � � � ϥ ǡ
�� � � � � � ɲ � � ��� �
$� � ������� �
(variable) pointsize �� ϡ�� � � `using` � � � � � � ǽ�� � � � Ϳ � � ɲ � � �
� � � ꡢ���� color �� ϡ � � � ˺ Ǹ � � � ɲ � � �� � �� ������
� � ΤȤ���ϡ�
��� � � � � � `linespoints` � � � r � � � � � � $ ο � � � �� � � ˻ � � ��뤳 � ȤϤǤ���
� � � ��� �
$ �Ф ��� 3 �Ĥ �� ° - � �٤ƻ���� ��� ϡ� � � ϥǡ � � � � � � � �
� ν � �֤ ϰʲ��Τ 褦� ˤʤ� ����

plot DATA using x:y:pointsize:pointtype:color \


with points lc variable pt variable ps variable

�� �: � ֥ �� � � � � �ѿ�‫ ����פ‬variable � ˴ ‫ � �����ؤ‬ˤĤ � � Ƥϡ � � ʲ � � �


� � : `variables` � �
2 steps
?plotting styles steps
?style steps
?steps
Ffigure_steps
`steps` � � � � � � � � � 2 ��� � �r �ǤΤ� � � � Ѳ �ǽ �Ǥ � � � � � � � � 2 �
� � �� $ � Ĥ ʤ � � ‫ ���ܤ‬1 :�‫( �ޤ‬x1,y1) � � � � (x2,y1) � �ǡ � 2 � � � ‫�ܤ‬
(x2,y1) � � � � (x2,y2) � �ǡ � � � � � � ξ � � ϡ � ` l ines` � � `points` � � � Ф �
� � � Τ � Ʊ � � � Ǥ � � � ` f s teps` � � `steps` � ΰ �� ϡ� `fsteps` � ϡ � � �����
�� � y �� �˽ � � � � � �x � � � ˽
�� Ƥ � � Τ � � Ф � � � ` s teps` � � � � � x ��
�� �˽ � � � � � �y � � � ˽�������
�� Ƥ �� � ȥ ١���� �� � Ǥ � � � y=0 � Ȥ �
� ֤��ΰ� � � ɤ � � ٤�� ˤϡ� `fillsteps` � � � � Ѥ � � Ƥ � � $ � � � � �
�ʲ � � �� �
^ <a href="http://www.gnuplot.info/demo/steps.html">
steps � ǥ ⡣
^ </a>

2 rgbalpha
?plotting styles rgbalpha
?style rgbalpha
�ʲ � � � � � : `image` � �
2 rgbimage
?plotting styles rgbimage
?style rgbimage
�ʲ � � � � � : `image` � �
2 vectors
?plotting styles vectors
?style vectors
?vectors
Ffigure_vectors
2 ��� � � � `vectors` � � � � � � � � � (x,y) � � � � (x+xdelta,y+ydelta) � �Ǥ Υ �
�� � � ȥ � � �3 � ��‫� � � � � � ޤ‬ `vectors` � � � � � � � � � Ʊ �� Ǥ � � � � � � ǡ � � � � ϴ �
� � Ū � � 6 � � ɬ � ‫פ‬Ǥ � � � � � � � � � ξ � � ⡢ � � � � � � � ɲ � (2D � Ǥ � 5 � � �� 3����� ‫ܡ‬D
�Ǥ � 7 � � � � ) � � � � ȡ � � � � � � ϳƥǡ � � � � � � � � variable color � � � � ( �ʲ�
� � � � : `linecolor`, `rgbcolor variable`) � Ȥ � � ƻ Ȥ � � ����
� ƥ ٥�� ȥ����ü�ˤϾ��������� �� � � �
� ����

4 � �: x y xdelta ydelta
6 � �: x y z xdelta ydelta zdelta

��� � � � � "with vectors" � � � θ � � ϡ �ˡ � � � � � � � � � arrow � � � � � � � �


� � � � � � ��
� ������
� � � � � �d � � � Ƥ � � � arrow � � � � � � � � λ � � � � � � � 뤤 � � �
��
� ƥ ٥�� ȥ���Ф���ɬ�‫ �פ‬arrow � � � � � � � � Υ � � � ǥ å � � � � � � ɤ � 褦� ʻ���
��ȼ �����Ȥ ��Ǥ �� ‫ � � � � � �ޤ‬: "arrowstyle variable" ����Ѥ���� �� б �
���� ٥� � ȥ 뤬 � r �� � �‫ݤ‬ˤϤ ��줬 �
arrow ��° - � ���٤Ƥ � � � � � Τ �
���� plot ��� ‫��� ¾ � � � � �ޥ‬° - �� arrow
����������� � Υ ���� ����� � 
�Ⱥ �� ߤ� � � � 뤳 � ‫� � �ޤ‬
ȤϤǤ��

plot ... with vectors filled heads


plot ... with vectors arrowstyle 3
plot ... using 1:2:3:4:5 with vectors arrowstyle variable

��:
plot 'file.dat' using 1:2:3:4 with vectors head filled lt 2
splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2

vectors ���������Ȥ ä Ƥ � splot �� `set mapping cartesian` �Τ ߤǥ � � �


���Ȥ ���Ƥ �� ‫� � �ޤ‬
`set clip one` �� `set clip two` �� 2 �����Υ ٥� � ȥ���r��d �
ƶ�����
�‫ � � � �ޤ‬ʲ�� � � � : `set clip`, `arrowstyle` � �
2 xerrorbars
?plotting styles xerrorbars
?style xerrorbars
?xerrorbars
Ffigure_xerrorbars
`xerrorbars` ��������� 2 �����Υ ǡ ����r �Τ ߤ� � � � Ѳ� � ǽ Ǥ� � �
`xerrorbars` �ϡ ���ʿ �θ �� ‫( � �ؼ‬error bar) ��ɽ �������ʳ ���
`points` ��Ʊ���Ǥ ������� (x,y) �ˤ ����� (xlow,y) ���� (xhigh,y) �
‫ޤ‬ǡ �
�‫( � � �ޤ‬x-xdelta,y) ���� (x+xdelta,y) �‫ޤ‬Ǥ��ʬ ����� ‫� � � � � � � � � �ޤ‬
�Ϥ ����Ĥ Υ ǡ ������� �
� ���
��� 뤫 � ˤ � ä � � Ѥ � � ‫ � � � �ؼ � � � � � �ޤ‬ü �ι �
�ߤΰ �θ ���� ‫ܤ‬ϡ � `set errorbars` � � ) � � Ǥ � � ‫ � � � � � �ޤ‬Υ �������ϴ ���Ū
�ˡ �3 �� 4 ��Υ ǡ �����ɬ � ‫פ‬Ǥ�:

3 ��: x y xdelta
4 ��: x y xlow xhigh

�������ɲ � (4,5 ����) ����ȡ ��������$ � variable color


����Ȥ ���
�Ȥ �� ‫� � �ޤ‬

2 xyerrorbars
?plotting styles xyerrorbars
?style xyerrorbars
?xyerrorbars
Ffigure_xyerrorbars
`xyerrorbars` ��������� 2 �����Υ ǡ ����r �Τ ߤ� � � � Ѳ� � ǽ Ǥ� � �
`xyerrorbars` �ϡ ���ʿ ����ľ �θ �� ‫( � �ؼ‬error bar) ��ɽ �������ʳ �
�� `points` ��Ʊ���Ǥ ������� (x,y) �ˤ ����� (x,y-ydelta) ����
(x,y+ydelta) �‫ޤ‬Ǥ� (x-xdelta,y) ���� (x+xdelta,y) �‫ޤ‬ǡ�� ‫� � �ޤ‬
(x,ylow) ���� (x,yhigh) �‫ޤ‬Ǥ� (xlow,y) ���� (xhigh,y) �‫ޤ‬Ǥ��ʬ ����
���� ‫ � � � � � � � � � �ޤ‬Ϥ����ĤΥǡ��������� ��
�� � � 뤫 � ˤ� ä � � Ѥ � � ‫� � �ޤ‬
��� ‫ � � � �ؼ‬ü �ι �ߤΰ �θ ���� ‫ܤ‬ϡ � `set errorbars` � � ) � � Ǥ � � ‫� � � � �ޤ‬
���� 4 �� 6 � ��Υ ǡ �����ɬ � ‫פ‬Ǥ���

4 ��: x y xdelta ydelta


6 ��: x y xlow xhigh ylow yhigh

�ǡ ���������� ‫ � �ݡ‬Ȥ���Ƥ��ʤ������ η| ����� ���


�� �
� 줿��硢`plot` ��
�‫ �ޥ‬ɤ� `using` �ե��륿 � � Ȥä�Ŭ�‫ڤ‬ʷd�ľ���ʤ��Ȥ����‫ � � � �ޤ‬㤨
�Х ǡ ����� (x,y,xdelta,ylow,yhigh) �Ȥ ����| ��Ǥ ���� �� ʲ� � Τ 褦� �
���‫ �ޤ‬:

plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars

�������ɲ� (5,7 ����) ����ȡ������ϳƥǡ�������� variable color


����Ȥ��ƻȤ��‫���ޤ‬

2 yerrorbars
?plotting styles yerrorbars
?plotting styles errorbars
?style yerrorbars
?style errorbars
?yerrorbars
Ffigure_yerrorbars
`yerrorbars` (�‫` ���ޤ‬errorbars`) ��������� 2 �����Υǡ����r�Τ ߤ�
���Ѳ�ǽ�Ǥ���`yerrorbars` �ϡ���ľ�θ��‫( ��ؼ‬error bar) ��ɽ������
��ʳ��� `points` �˻�Ƥ��‫( �������ޤ‬x,y) �ˤ����� (x,y-ydelta) ����
(x,y+ydelta) �‫ޤ‬ǡ��‫( ���ޤ‬x,ylow) ���� (x,yhigh) �‫ޤ‬Ǥ��ʬ������
�����������Ϥ����ĤΥǡ������� �� ��� 뤫 �
� ��� ˤ � ä � � Ѥ � � ‫�������ޤ‬
�����ü�ι�ߤΰ�θ����‫ܤ‬ϡ � `set errorbars` � � ) � � Ǥ � � ‫���ޤ‬

2 ��: [��ۤ�� x] y ydelta


3 ��: x y ydelta
4 ��: x y ylow yhigh

�������ɲ� (4,5 ����) ����ȡ��������$� variable color


����Ȥ���
�Ȥ��‫���ޤ‬

�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/mgr.html">
errorbar �ǥ⡣
^ </a>
2 xerrorlines
?plotting styles xerrorlines
?style xerrorlines
?xerrorlines
Ffigure_xerrorlines
`xerrorlines` ��������� 2 �����Υǡ����r�Τ ߤ���� Ѳ�ǽ�Ǥ���
`xerrorlines` �� `linespoints` �˻�Ƥ��‫ � ������ޤ‬ʿ�θ�����d����
���Ȥ���� ‫( � ������ޤ‬x,y) �ǡ��ǡ�����θĿ����(xlow,y) ��� ���
(xhigh,y) �‫ޤ‬ǡ��‫( ���ޤ‬x-xdelta,y) ���� (x+xdelta,y) �‫ޤ‬Ǥ��ʬ���d�
��‫ � � ������ޤ‬ü�ι�ߤΰ�θ����‫ܤ‬ϡ� `set errorbars` � � ) � � Ǥ � � ‫���ޤ‬
����Ū�ˤϡ�3 �� 4 ��Υǡ�����ɬ�‫פ‬Ǥ�:

3 ��: x y xdelta
4 ��: x y xlow xhigh

�������ɲ� (4,5 ����) ����ȡ��������$� variable color


����Ȥ���
�Ȥ��‫���ޤ‬

2 xyerrorlines
?plotting styles xyerrorlines
?style xyerrorlines
?xyerrorlines
Ffigure_xyerrorlines
`xyerrorlines` ��������� 2 �����Υǡ����r�Τ ߤ���� Ѳ�ǽ�Ǥ���
`xyerrorlines` �� `linespoints` �˻�Ƥ��‫ � ������ޤ‬ʿ� ȿ� ľ� θ� � ����
����뤳 � Ȥ��
�� ‫( � � �����ޤ‬x,y) �ǡ��ǡ�����θĿ��� ��
� ��ơ�
� � ��
(x,y-ydelta) ���� (x,y+ydelta) �‫ޤ‬Ǥ� (x-xdelta,y) ���� (x+xdelta,y)
�‫ޤ‬ǡ����뤤 � � (x,ylow) ���� (x,yhigh) �‫ޤ‬Ǥ� (xlow,y) ���� (xhigh,y)
�‫ޤ‬Ǥ��ʬ���d���‫ � � � �����ޤ‬ü�ι�ߤΰ�θ����‫ܤ‬ϡ � `set errorbars`
��)��Ǥ��‫ � � �����ޤ‬ϡ � 4 � � 6 � � � � � ϥ ǡ � � � � � ɬ � ‫פ‬Ǥ���

4 ��: x y xdelta ydelta


6 ��: x y xlow xhigh ylow yhigh

�ǡ����������‫ ��ݡ‬Ȥ���Ƥ��ʤ��� � η|�����


�� ����
�� � 줿��硢`plot` ��
�‫ �ޥ‬ɤ� `using` � ե � � 륿 � � Ȥä�Ŭ�
‫ڤ‬ʷd�ľ���ʤ��Ȥ����‫ ����ޤ‬㤨
�Хǡ����� (x,y,xdelta,ylow,yhigh) �Ȥ����|��Ǥ������ ʲ� � Τ 褦� �
���‫ �ޤ‬:

plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines

�������ɲ� (5,7 ����) ����ȡ������ϳƥǡ�������� variable color


����Ȥ��ƻȤ��‫���ޤ‬

2 yerrorlines
?plotting styles yerrorlines
?plotting styles errorlines
?style yerrorlines
?style errorlines
?yerrorlines
Ffigure_yerrorlines
`yerrorlines` (�‫` ���ޤ‬errorlines`) ��������� 2 �����Υǡ����r�Τ�
�����Ѳ�ǽ�Ǥ���`yerrorlines` �� `linespoints` �˻�Ƥ��‫ � � �����ޤ‬ľ��
������d���뤳 � Ȥ�� �� ‫( � ������ޤ‬x,y) �ǡ��ǡ�����θĿ��� ��
� ���
���
(x,y-ydelta) ���� (x,y+ydelta) �‫ޤ‬ǡ��‫( ���ޤ‬x,ylow) ���� (x,yhigh)
�‫ޤ‬Ǥ��ʬ���d���‫ � � � �����ޤ‬ü�ι�ߤΰ�θ����‫ܤ‬ϡ �
`set errorbars` ��)��Ǥ��‫ � � �����ޤ‬ϡ � 3 � � 4 � � � � � Ϥ � ɬ � ‫פ‬Ǥ���

3 ��: x y ydelta
4 ��: x y ylow yhigh

�������ɲ� (4,5 ����) ����ȡ��������$� variable color


����Ȥ���
�Ȥ��‫���ޤ‬

�ʲ���� ȡ�
^ <a href="http://www.gnuplot.info/demo/mgr.html">
���顼� С��Υǥ�
^ </a>
2 zerrorfill
?plotting styles zerrorfill
?style zerrorfill
?zerrorfill
��:

splot DATA using 1:2:3:4[:5] with zerrorfill {fc|fillcolor <colorspec>}


{lt|linetype <n>} {<line properties>}

�r � � � � � � � `zerrorfill` �ϡ�2 �������r �� � � � � �ΰ�Ĥ��Ѽ�Τ 褦� �


��ΤǤ�������ϡ�2 �Ĥδ ‫ �ؿ‬δ֡��‫ ���ޤ‬Ʊ�� x ���Ф��� 2 �Ĥ� y ��ɸ
���$���� $ ��� ��ǡ������ ‫ ���ޤ‬δ֤��ΰ���ɤ��‫��ޤ‬٤����� � � ϡ � 4
�� 5 �����Ϥ�ɬ�‫פ‬Ǥ���

4 ��: x y z zdelta
5 ��: x y z zlow zhigh

zlow �� zhigh �δ֤��ΰ���ɤ��٤����� � � θ� z ���Τ


�Ȥ��������d���
�����ǥե���ȤǤϡ���������ɤ��٤�� ˤ �Ʊ������Ȥ ��
splot ���‫ �ޥ‬ɾ���ѹ��Ǥ��‫ ����ޤ‬ɤ� � ٤������ � ϡ����Ū �� fill style
�αƶd��‫ ����ޤ‬ʲ� � � � � `set style fill` � �

splot ���‫ �ޥ‬ɤ� ʣ � � ζ � � � � � � � � � � � � ϡ�����d ����������p �Τ ���


�Ƥζ��� ��Ƥ��
� �� � �� � ‫ ���ޤ‬ǽ-������
�褦� � Ŭ�‫ڤ‬ʿ�������¤٤����� Ԥ��ˤϡ����‫` ��ޥ‬set pm3d depthorder`
����Ѥ��Ƥ��$�������ǰ�ʤ��� � � � � � � z ������б ���� 뤹 � ٤Ƥ��‫��ޤ‬
���d�����ˡ����٤Ƥ��ΰ���ɤ��٤��� Ԥ��‫ �����ޤ‬äơ��‫���ޤ‬ � ��
� �
� �

�褦� ˤ��ơ������ΰ���ɤ��٤�� ο�������¤٤����� Ԥ��ˤϡ��ΰ���ɤ�
�٤����� ʬŪ � � Ʃ � � (transparent) � � � � � 뤫 � � � ٥�� ɤ � (solid fill)
���˥ѥ������ɤ� (pattern fill) ����Ѥ���Ȥ������⤷�� ‫���ޤ‬

�ʲ��κǽ�� 2 �Ĥ�����ɤ��٤�� ΰ�ϡ�Ʊ����Τˤʤ�‫���ޤ‬

splot 'data' using 1:2:3:4 with zerrorfill fillcolor "grey" lt black


splot 'data' using 1:2:3:($3-$4):($3+$4) with zerrorfill
splot '+' using 1:(const):(func1($1)):(func2($1)) with zerrorfill
splot for [k=1:5] datafile[k] with zerrorfill lt black fc lt (k+1)

�����r �� � � � � �ϡ����� (fence plot) ���.����Τ˻Ȥ����Ȥ�Ǥ�


�‫ ����ޤ‬ʲ�� � � � : `fenceplots` � �

C 2 3 �����r� (3D plots)


2 3D plots
?3D plots
?plotting styles 3D plots
=3D
3 ��������դϡ����‫` ��ޥ‬plot` �ǤϤʤ����‫` ��ޥ‬splot` ��Ȥä�8.
���2 � ���¿ ���‫����� ޤ‬r � � � � � � � (points, images, impulse, labels,
vectors) �ϡ�z ��ɸ�ǡ�������ɲû���� ��3 �����Ǥ�Ȥ��2 � ��‫���� ޤ‬
�ͱƥ���դΤ ߤ��ߤ����� � Ǥ⡢`splot` ���‫ �ޥ‬ɤ �Ȥ ä � 8. � � � ʤ � � � �
�����ʤ��r 跿 (pm3d coloring, surfaces, contours) ����ˤϤ���‫���ޤ‬
C 3 �����r� (Surface plots)
3 Surface plots
?surface plots
=surface
Ffigure_surface+contours
�r � � � � � � � `splot with lines` �� `splot with surface` �Ϥ���������
��ʻ����8.���‫� �����ޤ‬ � ��ɤ��٤�� ϡ��������� `splot with pm3d` ��
�Ԥ����Ȥ��Ǥ��‫� �����ޤ‬ � �����줬 3 �����ζ���Ǥ���ȤϤä����
����褦� � Ŭ�‫ڤ‬ʻ�������ɽ������‫ ����ޤ‬ʲ�� � � � : `set view` � �
���ξ�硢 X, Y, Z ���Ϥ��٤�� r����ɽ������3 � ��‫���� ޤ‬Ū�ʺ�Фϡ���
������� � � � � � �Ǥο���0��ˤ�ꡢ �������� ‫ ����ޤ‬ʲ� � � � � :
`hidden3d`, ����� `set pm3d` �Υ��‫ ����ץ‬Ǥ��� `depthorder`��
���‫� ��ޥ‬ `splot` �ϡ����� Z � ��� Ф�������������� r 褹 � 뤳 � Ȥ��
���‫ � � � � � � � � � �����ޤ‬ϡ�������켫 � Τξ�����Ȥ�Ǥ��‫ �����ޤ‬XY
˽
ʿ��‫ͱؼ‬Ƥ��뤳� Ȥ�Ǥ�� ‫ ����ޤ‬ʲ�� � � � : `set contour` � �
Ffigure_mapcontours
C 3 2 �����ͱ� (set view map)
3 2D projection (set view map)
?2D projection (set view map)
?projection
���‫` ��ޥ‬splot` ������ʾ��Ȥ��ơ��r�� Z ���μͱƤˤ�롢 Z ��ɸ
�� 2 ��������‫ ��ؤ‬Ͽ �� . (map) ������‫ ����ޤ‬ʲ�� � � � : `set view map` � �
�����r�⡼�ɤϡ��������r��� � ʬ�ۤ� 8.����Τ����ѤǤ��‫�����ޤ‬
�ο ‫ ��ޤ‬r 襹� � � � � � `lines` ����١� `labels` ������r 褷 � � � � � �� � � ��
�Ƥ��‫����( �ޤ‬: �‫ �ޤ‬ɽ � � � � � � Ƥ � � � � � ) � �
C 2 �˺�ɸ�r� (Polar plots)
2 Polar plots
=polar
Ffigure_polar
�˺�ɸ�r� (polar) �ϡ�plot ���‫ �ޥ‬ɤ� � � Ϥ � � � p � � � ˸ ߤκ�ɸ�Ϥ�˺�ɸ
���ѹ����뤳 � Ȥˤ�ä�8.��� ‫` ����ޤ������ץ‬set polar` �ϡ���Ϥ���
2 ������ɸ�� <x>,<y> ������� <��>,<Ⱦ��> �Ȳ᤹ � � 뤳� Ȥ� gnuplot
�˻
�٤��� � � ��‫ ؼ����ޤ‬ƤǤϤ ʤ �� Ǥ ����� ¿���� 2 �����r 襹 � � � � � 뤬 � ˺�ɸ
�⡼�ɤǤ ⵡ ǽ���‫ޤ����ޤ‬ϡ��r 襹� � � � � � `lines` �� `filledcurves` ��
�Ȥ߹�碌��� � �Ƥ��‫����( ���ޤ‬: �‫ �ޤ‬ɽ � � � � � � Ƥ � � � � � ) �ʲ � � � � � :
`set polar`, `set rrange`, `set size square`, `set theta`, `set ttics`��
C 2 �ӡ������������r� (Bee swarm plots)
2 Bee swarm plots
?beeswarm
?bee swarm
=jitter
Ffigure_jitter
�ӡ����������� (bee swarm) ����դϡ��ɤ 餮 (jitter) ��Ŭ�Ѥ��ƽ�ʣ��
��ʬΥ���뤳� Ȥˤ���$�����Ǥ�������� ŵ ��
Ū ���ϡ�����
$ x ��ɸ
������ �2 �İʾ�Υ��ƥ���ˤ�ä�ɽ�� � � � y ����ʬ �ۤ��� ӤǤ���
� ��
�Ťʤ��Ƚ����䡢 jitter �ǻ��Ѥ����ư�ѥ������)�椹� � � � ˡ� ˴‫�ؤ‬
�Ƥϡ��ʲ�����: `set jitter`�����ο ‫ޤ‬Υ���դϡ��ۤʤ � jitter � � � � � � �
�Ф���Ʊ�� plot ���‫ �ޥ‬ɤˤ� äƺ � � 줿� � ΤǤ���
`plot $data using 1:2:1 lc variable`
C 2 ���� (Fence plots)
2 Fence plots
?fenceplots
=zerrorfill
Ffigure_fenceplot
���� (fence plot) �ϡ�ʣ��� 2 ��������դ � ��
���Y �ɸ�� ·������
�줾 � � � � ����뤿 � � � X �˱�äƤϤ�� �� � �dǷ��� � � �ΤǤ�������
������� �ġ ��Υ ���դ� Z ��ɸ�‫ޤ‬Ǥδ֤��ΰ���ɤ��٤���� Ȥǡ�Y ����
0��� Z ��ɸ�ι⤵�ΰ �� θ����‫ �ܤ‬Ĵ���‫ ���ޤ‬gnuplot �Ǥ��η|��Υ�
���դ�� ˤϤ����
Ĥ �����ˡ������ ‫ ����ޤ‬Ǥ�ñ��ʤΤϡ�5 ��η|���
`zerrorfill` ������������Ѥ�����ˡ�Ǥ���i ��ź���줿 ʣ��ζ�� z
= Fi(y) ������Ȥ���`splot with zerrorfill` �ǰʲ��Τ 褦� � � � � � � � �
���к��դ���Ȥ��Ǥ��
� �� � �� � � � � ‫ �ޤ‬:
i y z_base z_base Fi(y)

C 1 ���‫( ��ޥ‬Commands)
1 Commands
?commands
���Υ��������Ǥ� `gnuplot` �����դ��륳 � ‫ �ޥ‬ɤɤ�ե � � ٥åȽ� �
�¤٤Ƥ��‫ � �����ޤ‬Υɥ� � � �� Ȥ�� ˰������� Τ� t� ƤΥ� � ‫ �ޥ‬ɤ� ‫�ޤ‬
�Ǥ��‫��÷ � � ������ޤ‬ǻ��ȤǤ���ɥ�����Ȥ���ϴ�t�ǤϤʤ���ǽ-����
��‫ ����ޤ‬º ‫ ����ݡ‬θ��Ф��β��˲��Υ��‫ �ޥ‬ɤ �ɽ � � � � � � ʤ � � � � � � ƥ ब����
�‫���ޤ‬

�ۤȤ�ɤξ��� � �‫�� �ޥ‬Ȥ��Υ��‫ ����ץ‬ϡ�ʶ��路� � � ʤ� � ϰϤ Ǿ � ά


���뤳� Ȥ���ǽ�Ǥ������ʤ��a "`plot f(x) with lines`" �������
"`p f(x) w li`" �Ȥ��뤳� Ȥ��Ǥ�� ‫���ޤ‬

� �ε � ��Ҥˤ����ơ��
楫� å� ({}) ���ɲû���Ǥ������������
���� (|) �ϸ ߤ����� ¾Ū�ʰ�����‫ ��ڤ‬ΤȤ��‫���ޤ‬
2 Break
?commands break
?break
���‫` ��ޥ‬break` �ϡ�`do`, `while` ʸ�η����֤�� ¹���ʬ�Υ��å���Ǥ�
�߰�
� ���d ‫ � �����ޤ‬Υ��‫ �ޥ‬ɤϡ � � � � � � 楫� å���λĤ������ ��
��å�
���������֤������Ǥ��������Ĥ����å��μ���ʸ����¹Ԥ�Ƴ����
‫ ����ޤ‬ʲ�
��� � : `continue`��
2 cd
?commands cd
?cd
`cd` ���‫ �ޥ‬ɤϥ � � � � ȥ ǥ � � 쥯 � ȥ��� ѹ � � � �‫���ޤ‬

��:
cd '<�ǥ��쥯 � ȥ�̾' >

�ǥ��쥯 � ȥ�̾ � ϰ����� ˰ Ϥ‫ �ޤ‬Ƥ�� ʤ ��� Ф ʤ � ‫���ޤ‬

��:
cd 'subdir'
cd '..'

�Хå�����å��� (\) ����Ű������� (") �Ǥ�����ʰ�����äƤ��‫���ޤ‬


��˥��������‫ ���פ‬ɬ�‫ ��פ�����ޤ‬Τǡ�Windows ��� � �ˤ� ñ���������
�����Ȥ � ��
� ‫ ����ޤ‬㤨� С�
cd "c:\newdata"
�Ǥϼ��Ԥ��‫�����ޤ‬
cd 'c:\newdata'
cd "c:\\newdata"
�ʤ��������ư���Ǥ���� �
2 call
?commands call
?call
`call` ���‫ �ޥ‬ɤϡ � � ɤ ߹���ե������θ��ˡ�9 �Ĥ‫ޤ‬ǤΥѥ��� ���
�� �� 뤳� Ȥ��Ǥ��뤳� Ȥ���`load` ���
‫ �ޥ‬ɤ � � � d Ǥ � � �

call "inputfile" <param-1> <param-2> <param-3> ... <param-9>

gnuplot �ΰ�p�ΥС������Ǥϡ����Υѥ��� � ʸ � � � � � � � � Ƥ � � � �� ʵ �
�� $0, $1, ..., $9 ��‫ ���ޥ‬Τ 褦� � �ִ � ��� 뤳� Ȥ�ɽ�����Ƥ�� ‫� � �����ޤ‬
�λ��Ȥ ߤϡ����ߤ��� 侩� Ǥ� (�ʲ�����: `call old-style`)��

���ߤ� gnuplot �ϡ�ʸ�����ѿ� ARG0, ARG1, ..., ARG9 �ȡ�0���ѿ� ARGC


��� ��
� �� � ‫` ���ޤ‬call` ���‫ �ޥ‬ɤ� ¹ Ԥ � � � ȡ � A R G0 �ˤ � � � ϥ ե � � � � ��� � � �
ARGC �ˤϥѥ��� ������ ���
졢 ARG1 ���� ARG9 �ˤϥ��‫ �ޥ‬ɥ �� � � � �
�٤� 줿� ѥ��� ��� � ���ɤ߹��‫���ޤ�ޤ‬

��ѥ��� ��� ʸ� � � � �� Ȥ� � � � � ¸� � � � � Τǡ� � � � � � ‫ ���ޥ‬Ÿ�����ƻ���


���뤳� Ȥ�Ǥ�� ‫ �ޤ‬ν(�Ť��|��ν ���� �) ν��������� ¿���ξ� �� � � � � �
� � � � � � � � � � � �꼫 s�Ǥ���� �
¾���ѿ��Ʊ�����Ѥ������
C 3 �� (Example)
3 Example
?call example
?commands call example
�ʲ��� call �����:
MYFILE = "script1.gp"
FUNC = "sin(x)"
call MYFILE FUNC 1.23 "This is a plot title"
�ƤӽФ��줿� � � � � � ‫ ���ץ‬Ǥϰʲ��Τ 褦� ˤʤ�:
ARG0 �� "script1.gp"
ARG1 ��ʸ������ "sin(x)"
ARG2 ��ʸ������ "1.23"
ARG3 ��ʸ������ "This is a plot title"
ARGC �� 3
���Υ�����‫ ���ץ‬Ǥϰʲ��Τ 褦� ʤ�Τ�¹ԤǤ���:
plot @ARG1 with lines title ARG3
print ARG2 * 4.56, @ARG2 * 4.56
print "This plot produced by script ", ARG0

������� ARG1 �ϥ ‫ ���ޥ‬Ȥ��ƻ��Ȥ��ʤ���� Ф ��‫�ޤ‬


�� � ARG2 �ϥ ‫���ޥ‬
� ��
���ȤǤ� (�������ˤʤ�)���ѿ�Τ ‫ޤޤ‬Ǥ� (ʸ���� "1.23" ���¿�� ��� � ˼
ưŪ � � � Ѵ � � � � 줿� � � �
Ʊ �

��
� )�����
ʤˤʤ ����Ȥ ��դ���Ƥ ��$ ����

�����륹 � � � �‫ץ‬Ȥ��gnuplot � �
‫ �ޥ‬ɥ ��� ‫` ����ץ‬-c` �Ĥ��Ǽ¹�

���뤳� Ȥǡ������Ʊ�����Ȥ��ľ ܹ Ԥ����Ȥ�Ǥ��‫ �ޤ‬:

gnuplot -persist -c "script1.gp" "sin(x)" 1.23 "This is a plot title"

3 old-style
?commands call old-style
?call old-style
�ʲ��ϡ��Ť��С������� gnuplot �ǻȤ��Ƥ��� call �λ��Ȥ ߤε��Ҥ�
���������ߤ��� 侩� Ǥ���

call "<input-file>" <param-0> <param-1> ... <param-9>

��ϥե������ϰ�����ǰϤ ‫ޤ‬ʤ���Фʤ�‫ �����ޤ‬ϥե�����γƹԤ���


�߹���‫ݤ‬ˡ��ʲ� � � � � �� � ʸ � � � � � � � � � 8$ 7$ 6$ 5$ 4$ 3$ 2$ 1$ 0$ :�‫ޤ‬
$9 $#�����줬� � � Ĥ��ä���� � `$`+���‫` ����פ‬call` ���‫ �ޥ‬ɥ �� � �
�б�����ѥ��� ��� ��֤ �����
�Ԥ��‫ ���ޤ‬ʸ� � � � `$#` � ϥ ѥ � �� ���� ��֤ ����� ‫��¾ � ������ޤ‬ʸ���
��ˤĤ��Ƥ��� `$` �ϡ����������‫������ץ‬ � � Ȥ��ƽ���‫ ����ޤ‬㤨� � 1
�� �� `$` ��Ȥ��ˤ� `$$` �Ȥ��‫���ޤ‬

��:

�ե����� 'calltest.gp' �ϰʲ��ιԤ�‫ �ޤ‬Ǥ���Ȥ����:


print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"

���ιԤ���Ϥ����:
call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"

�ʲ��Τ 褦� � ɽ � � � � � � � Ǥ � � 礦:
argc=7 p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx

���: ʸ�� `$` �ϡ�gnuplot ���ȤΥǡ������ѤνȤ νν


� ֤Ĥ���‫�����ޤ‬
Unix �ϤΥ�����δĶ��ѿ�Ȥ��� � �� `$` Ȥ �֤ Ĥ���‫� �����ޤ‬ � �ʸ����
`$#` �ϡ�gnuplot �ΥС������ 4.5 ���� 4.6.3 �‫ޤ‬Ǥϡ��ְ 㤨� ƥ�����
ʸ� � � � ζ � � ‫ �ڤ‬ʸ� � Ȥ � � Ʋ ᤵ � �� Ƥ��‫ �����ޤ‬ʸ� � � � �ִ � � Ǥϰ���������
�����Τǡ�ʸ�������ϴ�ñ�˲��Ƥ��‫���ޤ��ޤ‬
2 clear
?commands clear
?clear
=inset
?inset
`clear` ���‫� �ޥ‬ ɤϡ � `set terminal` � � `set output` � � j � � � � � � ��� � �
��������� � �‫ ����ޤ‬ϡ��ɥ��ԡ����֤�� Ф��Ƥ����‫ �����ڡ‬Ԥ��‫���ޤ‬

�����Ĥ��ν������֤� `clear` ���‫ �ޥ‬ɤǤ � `set size` � � � � d � � 줿� r�


�ΰ�Τ ߤ� õ � ‫ ������ޤ‬Τ�� ᡢ`set multiplot` �ȤȤ�˻��Ѥ�뤳�Ȥ�

‫ ��ޤ‬ĺ�뤳�Ȥ��Ǥ��
���� ‫���ޤ‬

��:
set multiplot
plot sin(x)
set origin 0.5,0.5
set size 0.4,0.4
clear
plot cos(x)
unset multiplot

�ܺ٤ˤ Ĥ��Ƥϡ��ʲ�����:`set multiplot`, `set size`, `set origin`��


2 Continue
?commands continue
?continue
��� ‫` ��ޥ‬continue` �ϡ�`do`, `while` ʸ�η��� �֤�� ¹���ʬ�Υ��å����
�Τ��߰ ���‫������ޤ‬
d Υ��‫ �ޥ‬ɤϡ������楫�å���λĤ������ ��
� �� � �
�‫ ������פ‬η��� �֤�� ˿ʤ ߤ‫���( �ޤ‬ �롼�‫פ‬λĤ꤬ �����)���ʲ�� �� :�
`break`��
2 Do
?commands do
?do
��:
do for <iteration-spec> {
<commands>
<commands>
}
����ϡ���‫�ޥ‬ ����� ʣ���¹Ԥ�� ‫ �ޤ������ޥ‬ɤ��楫�å� {} �ǰϤߡ���
�ij��ϥ��å�"{" �ϡ�������  �`do` ��Ʊ���Ԥ� �֤� ɬ�‫�����פ�����ޤ‬
�Υ�� ‫ �ޥ‬ɤϡ� � Ť � � | � ( � � � ä � � ʤ � ) � � if/else � �ʸ � Ȱ � � ˻Ȥ � � � � Ȥ �
�Ǥ�� ‫��ޤ‬
� ��� �
� �� �֤����� <iteration-spec>
����ˤĤ��Ƥϡ��ʲ�����:
`iteration`����:
set multiplot layout 2,2
do for [name in "A B C D"] {
filename = name . ".dat"
set title sprintf("Condition %s",name)
plot filename title name
}
unset multiplot
�ʲ�� �� :� `while`, `continue`, `break`��
2 evaluate
?commands evaluate
?evaluate
��� ‫` ��ޥ‬evaluate` �ϡ����ʸ����Ȥ���� ����줿���‫ �ޥ‬ɤ� ¹Ԥ � � ‫���ޤ‬
���
����ʸ������� ˲ ��ʸ������ƤϤ���‫���ޤ‬ �

��:
eval <string expression>

�����ϡ���
ä Ʊ��
��
Υ ‫ �ޥ‬ɤη � � � �֤�� ��ѤǤ���
p

��:
set_label(x, y, text) \
= sprintf("set label '%s' at %f, %f point pt 5", text, x, y)
eval set_label(1., 1., 'one/one')
eval set_label(2., 1., 'two/one')
eval set_label(1., 2., 'one/two')
�ʸ���
� � ��‫ �ޥ‬ɤ� ¹Ԥ � � � ��� � �ˡ �˴‫ ��ؤ‬Ƥϡ��ʲ�����:
`substitution macros`��
2 exit
?commands exit
?exit
exit
exit message "��� 顼��å�����ʸ����"
exit status <0��Υ�� 顼������>

`exit` ��`quit` ��ξ��� ‫ �ޥ‬ɤ� END-OF-FILE ʸ�� ( ��� Ctrl-D) Ʊ ���


���ߤ��� ϥ��ȥ��
� ����ʤ��� ü ������ä ѥ�����ϡ��ե����������
(
����)�������Ϥ�� λ ����
‫�����ޤ‬ ϥ��ȥ��
�ब���� (����Ū��
`load` �Υ����‫ץ‬
� Ȥ�) �ˤʤäƤ���� �ɤ߹��ߤϿƤΥ � � ȥ � � �
Ƿ �
³����‫ ����ޤ‬ȥ å ٥ �‫ �ץ‬Υ��ȥ��
� ब�Ĥ�����ȡ�‫�ץ‬����Ϥ��켫
�Ƚ�λ���‫���ޤ‬

���‫` ��ޥ‬exit gnuplot` �ϡ�ľ�dˡ�� � ��ˡ�������� ϥ��ȥ��


㤨�� ��

���¿�ʳ��˥��Ȥ���Ƥ��Ƥ⡢˥˥
�gnuplot �λ ����‫������ޤ‬
� �� �����
�Ƥ���t�Ƥν��ϥե�����Ϥ�줤 ����t�ʷdǤ��Ĥ����ʤ����ǽ- �����
�‫ � � � ������ޤ‬:

bind "ctrl-x" "unset output; exit gnuplot"

���‫` ��ޥ‬exit error "error message"` �ϡ����‫ץ‬����२� 顼��Ԥ���


��������÷ �⡼�ɤǤϡ��������å�������ɽ��������
Υ顼 � � Ȥ� �줿
٤Υ��
�롼�‫ �פ‬call �����Ǥ��ƥ�� � � �‫��÷ � � � �����ޤ‬⡼�ɤǤϡ�
‫ �ޥ‬ɥ �� ˵�
�‫�����ץ‬λ���‫���ޤ‬

gnuplot �����
λ ���������
) ����� � ���
�� �֤� ��
ϰ���Τʤ���Τˤ�
�뤳�Ȥ�����‫ � � ������ޤ‬Υ�� ‫ �ޥ‬ɤ�ʲ�� Τ 褦�˼¹Ԥ� � � С� �����������
�����
֤ ���� Ȥ���ǽ�Ǥ���

exit status <value>

�ܺ٤ϡ��ʲ�����: `batch/interactive`��
2 fit
?commands fit
?fit
?least-squares
?Marquardt
��� ‫` ��ޥ‬fit` �ϡ�Marquardt-Levenberg ˡ�ˤ������zǾ�����ˡ (NLLS)
���Ѥ��ơ��ǡ����$ν�����
˥ ���
�� �� 뼰� ��� ƤϤ�‫ �����ޤ‬Ω�ѿ��
12 �‫ޤ‬ǵ��Ƥ��ơ���°�ѿ�Ͼ�� 1 �Ĥǡ�Ǥ�ո �� ������
Ŀ�Υѥ�
�Ϥ� 뤳�Ȥ��Ǥ��‫ � � � ������ޤ‬ɲäǡ� � ǡ� � �� $νŤ� � դ� � Ѥ˸� ɾ� d� �
�Ϥ�� 뤳�Ȥ��ǽ�Ǥ���

Ū ���ˡ�ϡ��ʲ���ñ����� ����
`fit` �κǤ�����ʻ Ƥ��‫ �ޤ‬:

f(x) = a + b*x + c*x**2


fit f(x) 'measured.dat' using 1:2 via a,b,c
plot 'measured.dat' u 1:2, f(x)

��:
fit {<ranges>} <expression>
'<datafile>' {datafile-modifiers}
{{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}}
via '<parameter file>' | <var1>{,<var2>,...}

�ϰ�(xrange, yrange ��) �ϡ���ƤϤ�˻��Ѥ���ǡ�������


) ¤ �����
Ū�
�Ȥ����Ȥ��Ǥ��������ϰϤ�� 뤷 ‫ ������ޤ‬νν �
Ķ ����ǡ������
�� `plot`
���‫ ��ޥ‬Ʊ��
[{dummy_variable=}{<min>}{:<max>}],
�Ǥ����ʲ�����:`plot ranges`��

<expression> �ϡ���Ϥ�� � ��� ��� ����


�� d�� 줿 f(x) �‫ ���ޤ‬f(x,y)
�ηdδ ‫ �ؿ‬Ǥ�����`gnuplot` �� � ��
�p�
� ʤ�
ɤ�
�ʿ�Ǥ ����
�� �� ������
Ǥ�‫�ޤ‬
������ � $�
�¿��ʹ‫ �ؿ‬Ǥʤ���� Ф ��‫�ޤ‬
���
��Ω�ѿ��p�ϡ���‫�ޥ‬ �� `set dummy` ����� ��뤫��fit ���ϰϻ�����
ʬ (<rangse>) ����� � � ‫�( �ޤ‬ʲ�������) �ǥե���ȤǤϡ�� ǽ��2 �Ĥ�
x, y �Ȥʤ� ‫���ޤ‬
����ˡ����� ο ϡ���ƤϤ�κ�Ȥˤ������ �� ���1��İʾ����
��(�ѥ� �� �) ���¸��٤�� Ǥ���

<datafile> ��`plot` ���‫ �ޥ‬ɤ�Ʊ� �


˰��
�� � � �
‫` ���ޤ‬plot datafile` �ν�
����(`using`, `every`,...) �ϡ�`smooth` ���ơ�t��`fit` �˻Ȥ���
�Ȥ��Ǥ��‫ ����ޤ‬ʲ�����:`plot datafile`��

�ǡ����ե���������Ƥϡ�plot ���
‫ �ޥ‬ɤ˻�� Ѥ � � � Τ � Ʊ � � `using` � � � � �
�Ȥ����Ȥǽ���ᤵ˲ � ���뤳�Ȥ��Ǥ��‫ ����ޤ‬㤨�С���Ω�ѿ�x ��2 ����
��3 ���‫� ��ܤ‬¤Ȥ���8.����z���� �6 ��‫ ����ܤ‬ꡢ � Ť 1 �
� ߤ �Ȥ�����
���ϰʲ��Τ褦�ˤ��‫ �ޤ‬:

fit ... using ($2+$3):6

`using` ���
�꤬ � ʤ��� 硢 fit �ϰ��ۤ��� Ω�ѿ��1 �Ĥ$��Ȳ�� � � ‫���ޤ‬
�ե����뼫�ȡ��‫ ���ޤ‬using �� �꤬ 1 ��$��Υǡ�������
� ľ�� ��
��
������Ω ѿ��Ȥ
��
��
�� ��
ƻ�
������
Ѥ�‫�ޤ‬
����
`using` ������ �� ������ ���12 ��(���
����� �� ƥ���ѥ��뤷�Ƥ���Ф���
�ˤ���ʾ�) ����� Ω ѿ�����ѤǤ�‫�ޤ‬���

���‫` ����ץ‬unitweights` (��� 줬�ǥե����) �ϡ����٤ƤΥǡ����$���


���ߤ��
Ť ‫ � ������ޤ‬ϡ�������� `error` ����Ѥ��뤳�Ȥ�
ĤȤ ߤʤ��
�ѹ��Ǥ�������ϥǡ����ե���뤫��
� 1 �İʾ���ѿ�θ�ɾ�d��߹ɤ��ߡ�
����θ�ɾ�d��б������ѿ�� �
�ɸ�����s Ȥ ߤʤ����ƥǡ�����1/s**2
к
�νŤ � �ߤ
����� Τ˻��Ѥ��‫���ޤ‬

��Ω�ѿ�θ�ɾ�dˤ����ơ����νŤߤˤϡ�"��ʬ��ˡ"p
� � �� � �" (effective
variance method; Jay Orear, Am. J. Phys., Vol. 50, 1982) �˽��äơ���
�����ƤϤ�‫ ����ؿ‬ʬ���� �� �
�� � ‫���ޤ‬

������ �`errors` �ˤϡ����� θ �ˡ���Ϥ��ɤ��ѿ��θ �Ǥ����


Τ ��
������� 1�� �‫� ���ڤ‬İʾ���ѿ����Ȥ� Υ �դ��‫ �����ޤ‬°�ѿ�z �Ͼ�
�ˤ�����ˤʤ���� Ф ��‫�ޤ‬�� � �Ω�ѿ��ɬ�
���
� �� ‫ܤ‬ǤϤ��� ‫���ޤ‬
�����
Υ Ȥγ��ѿ���� Ф ���ե���뤫��餽��ʬ�Ρ����� ѿ θ�ɾ�d���
�ɲä�����߹��ɤ ߤ‫ ��֤� � ������ޤ‬ˤʤ�‫` �����ޤ‬using` ����ˤ������
����ǽ� ˤʤ�‫���ޤ‬
��äơ���Ω�ѿ�� ο ϰ��ۤˡ�`using` ���������ο�� 1 ����
(��°�ѿ�ʬ)�������`errors` ��������ѿ�θĿ�����ˤʤ 뤳�Ȥ�
��դ��Ƥ��� $ ����

��Ȥ��ơ�2�Ĥ���Ω�ѿ��ꡢ������
� 1 ��� ‫ ���ܤ‬Ω�ѿ�Ƚ�°�ѿ�θ�
���ǡ�����������ϡ�`errors x,z` �����5 ���`using` �����Ȥ���
�Ȥˤʤ�‫ � � � � ������ޤ‬x:y:z:sx:sz �Τ褦�˲ᤵ � �� ‫( �ޤ‬x, y �����
Ω �
��z �����
° ѿ�sx, sz ��x, z ��ɸ���� к )��

`errors` ����Τd�äȤ����ά �ˡ��2,3 �Ѱդ���Ƥ��


‫ �ޤ‬:
`yerrors` (��Ω�ѿ�1 � �� ���ƤϤ��)�
��
�`zerrors` (������ξ��)�ϡ��������`errors z` ��Ʊ�ǡ�
�� �$ �
1
�ɲäν�°�ѿ��Ѥ� ��

θ �� �

�� 뤳�Ȥ������Ƥ��
‫� � �ޤ‬

`xyerrors` �ϡ���Ω�ѿ��1 ��ǡ�������� Ω ѿ�Ƚ�°�ѿ���


ξ ��2 ��
뤳 Ȥ������
�θ����ɲä���� ‫ � � � � � �ޤ‬ξ�硢 x ��y �θ���Orear
p���
��ʬ��ˡ��
(effective variance method) �ǽ���‫� � �ޤ‬

`yerror` ��`xyerror` �η|�����Ӳ��ϡ���줾


�� � �� �����
2 �����r
뤳 Ȥ���դ��Ƥ���
��`yerrorlines` ��`xyerrorlines` ��Ʊ��Ǥ��� $ ����

���‫` � �ޥ‬set fit v4` ����Ѥ���ȡ�fit �Υ�� ‫ �ޥ‬ɽɽ �`gnuplot` ��


�������4 ��p�ȸ ߴ� � νν ˤʤ�‫ � � � � � �ޤ‬ξ�硢`using` �ˤϡ���Ω��
��2 �İʾ�ʤ�С���� Ω ѿ��ο ��2 ��(z ��s) ¿���� �꤬ ɬ�‫פ‬ǡ�
`gnuplot` �ϡ�`using` ������ ����줿� ο��˱����ơ��ʲ��νν˽
��� �
�ν
ν ��
��
ν
�‫ �ޤ‬:

z # ��Ω�ѿ��1 ��(���ֹ � )
x:z # ��Ω�ѿ��1 ��(�� 1 ��)
x:z:s # ��Ω�ѿ��1 ��(t���3 ��)
x:y:z:s # ��Ω�ѿ��2 ��(t���4 ��)
x1:x2:x3:z:s # ��Ω�ѿ��3 ��(t���5 ��)
x1:x2:x3:...:xN:z:s # ��Ω�ѿ��N ��(t���N+2 ��)

����ϡ�2�İʾ����Ω�ѿ��fit � �� 硢��z-��s ��� ����


���� ɬ�
�‫� � �פ‬
�뤳�Ȥ�������
뤳 Ȥ���դ��Ƥ���$ �����1Ť � ߤ �ˤ��������ϡ�����
�� �x:y:z:(1) �Τ褦�ʽʽʽ � using � ˻� � ��뤳�Ȥ��<�Ū���
��� ��

��ɬ�‫� � �פ�����ޤ‬

���ѿ� �ϡ����ǾҲ��褦���ϰϻ� � � ǻ� ���뤳�Ȥ��ѹ��Ǥ��‫� � � � �ޤ‬


�����ϰϤ�`using` ����κǽ�Τ�Τ��б������ʲ�Ʊ�Ǥ �������ѿ��
°
����z ���ϰϻ����Ǥ�‫�ޤ‬� � � � � � � � � ϡ�f(x,...) ��� �����ϰϳ��ˤ���
�� � ��� � �� � �
‫ � �ޤ‬褦�ʥǡ����$����ĺ���Ǿ������뤳�Ȥˤϴ��
��� ��ʤ�����
����������
pp
p ��p
����
����

ʣ��Υǡ��������ʣ��� 1 �ѿ�‫ � �ؿ‬Ʊ������ƤϤ�뤳�Ȥ⡢y ��'��


�ѿ�' �Ȥ���� в ǽ�Ǥ�����Хǡ�����
� ֹ � � Ȥ���2�ѿ�
‫ � � �ؿ�ؤ‬Ƥ�
�ᡢ � Ȥ���Ф����Ǥ��� ��ʲ�����: `fit multi-branch`��

�� ��
`via` ����Ҥϡ��ѥ� � � � ϥѥ��� ��
ľ ܹ Ԥ�����‫�ޤ‬
κ�Ŭ����� ե�
�����Ȥ ��
��� � 뤳�Ȥˤ�äƹԤ��������� ‫� � �ޤ‬

��:
f(x) = a*x**2 + b*x + c
g(x,y) = a*x**2 + b*y**2 + c*x*y
set fit limit 1e-6
fit f(x) 'measured.dat' via 'start.par'
fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
fit f(x) './data/trash.dat' using 1:2:3 yerror via a, b, c
fit g(x,y) 'surface.dat' using 1:2:3 via a, b, c
fit a0 + a1*x/(1 + a2*x/(1 + a3*x)) 'measured.dat' via a0,a1,a2,a3
fit a*x + b*y 'surface.dat' using 1:2:3 via a,b
fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3 via a,b

fit [][][t=*:*] a*x + b*y + c*t 'foo.dat' using 1:2:3:4 via a,b,c

set dummy x1, x2, x3, x4, x5


h(x1,x2,x3,x4,s5) = a*x1 + b*x2 + c*x3 + d*x4 + e*x5
fit h(x1,x2,x3,x4,x5) 'foo.dat' using 1:2:3:4:5:6 via a,b,c,d,e

ȿ��θġ��Υ��ƥå‫פ‬θ�ǡ���ƤϤ�θ�� �֤ ˤĤ��Ƥξܺ٤ʾ���
ߤξ��
�����ɽ�����‫�ޤ‬
� � � � � � � � ǽ�ȺǸ�ξ� �֤ �‫ � � �ؤ‬Ʊ������ "fit.log"

�Ȥ������ե�����ˤ� ��Ф���‫ � � � � � �ޤ‬Υե������p����ƤϤ������
��ä��ʤ�褦 ‫��˾ � � � � � � � �ޤ‬ʤ���뤤� ���
��˾� � � ɲä� � � Ƥ� ���
��p�ˤǤ��‫` � �ޤ������ޥ‬set fit logfile` ��Ȥäƥ��ե������
p���ѹ���뤳��Ȥ�Ǥ�� ‫� � �ޤ‬

`set fit errorvariables` ����Ѥ���� � ���


�� ƤϤ�ѥ��� �� θ���
���Υѥ��� ��
Ȼ��p ("_err" � � � ɲä� �줿p) ���ѿ�����
¸ ����
���Τǡ�����θ���θ�η�� � � � � ϤȤ��ƻ��Ѥ�뤳 ��Ȥ��Ǥ��‫� � �ޤ‬

`set fit prescale` �Ȥ������ ƤϤ � �ѥ��� �� ����


������ ����

��� ������Ѵ����‫ � � � � � � �ޤ‬ˤ�ꡢ� ġ��Υѥ� �� ������ ��ˤ��ʤ�㤤
�����褦��ʾ��Ǥ⡢Marquardt-Levenberg �롼�ee�������� ����
eee 꿮� �
-�Τ���� ˼�«
� ���������褦�ˤʤ�‫� � �ޤ‬

��ƤϤ��ȿ���Ctrl-C (wgnuplot �Ǥ�Ctrl-Break) � �� ����Ȥ����Ǥ�


���ߤ������‫ �ޤ‬ȿ��5��˽�λ������ � ʲ��Τ����줫� j��֤ � � � Ȥ��Ǥ���
��:
(1) ��ƤϤ�� ߤ� Ƹ��ߤΥѥ��� ����� ���Ѥ���
(2) ��ƤϤ��³�Ԥ���
(3) `set fit script` ������ Ķ �ѿ�`FIT_SCRIPT` �ǻ�� � � � `gnuplot` ��
�‫ �ޥ‬ɤ� ¹Ԥ � � 롣� �� Υǥե���Ȥ� `replot` �ǡ�� �� �ǡ�������ƤϤ��
�� � � � � � � �� � �
����ĤΥ���դˤ�� �� ���� r ��Ƥ���С���ߤ �� � � ƤϤ�ξ��֤ �� ɽ��
���뤳�Ȥ��Ǥ�� ‫� � �ޤ‬

`fit` ����� λ �����ϡ��Ǹ�Υѥ� �� ���


� ���¸�
�����Τ `save fit` ��
�‫ �ޥ‬ɤ�Ȥ � � ‫� � � � � � � �ޤ‬ Ϻ Ƥӥѥ��� ���
�� � �Ȥ��ƻȤ����Ȥ��Ǥ ��
‫�ޤ‬ ��
�ܺ٤ϡ��ʲ�����: `save fit`��
C 3 �ѥ� �� ���
Ĵ0 (adjustable parameters)
3 adjustable parameters
?commands fit parameters
?fit parameters
?commands fit adjustable_parameters
?fit adjustable_parameters
?fit_parameters
`via` �ϥѥ� �� ��� Ĵ᤹ � �뤿� ��2 �Ĥ���ˡ�����Ǥ�‫�ޤ‬ � � � � � Ĥ�
��� ‫ �ޥ‬ɥ ���� ľ� �ܻ ‫ � � � � � �ؼ‬Τǡ��⤦��Ĥϥѥ�
� �� ��ե������
���Ȥ��ƴ���� Ԥ���ΤǤ�������2 �ĤϽ���
Ū ˹� �
��
ä ���ǰ�����ˡ���
�� ‫� � �ޤ‬

Ĵ0����ѥ� �� ��ϡ�`via` ������ɤθ��˥���‫ޤ‬Ƕ��‫ �ڤ‬줿�ѿ� �


�Υ��Ȥ�� ��
�ǻ
�Ȥ ��Ǥ�� ‫ � � � � �ޤ‬d���Ƥ��ʤ��ѿ�Ͻ����1.0 ��
���ƺ���‫ � � � � � � � � � � �ޤ‬ƤϤ�ϡ��ѿ�
���
������ ���
���� Ŭ�‫���� �ڤ‬
��� �
Ƥ�����¿ʬ®����� « ����Ǥ �� �

�� ��
�ѥ� ե�����ϸġ��Υѥ��� ������
��� 1 �Ԥ
˰ �
ġ�
Ĥ�
����
��
���褦�
Τ ʷdǻ�� � � ��‫� � �ޤ‬
�ѿ� = �����

'#' �ǻϤ‫ޤ‬륳� ��
ȹԤ��Ԥ���
‫� � � � � �ޤ‬
� ʷ|��Ȥ���
�ѿ� = ����� # FIXED

�ϡ������ѿ�� �
��줿�ѥ��� ��
Ǥ�� 뤳�Ȥ�����������Ϥ��Υե���
��ǽ���
‫ � � � � �ޤ‬Ĵ��Ϥ���‫��ޤ‬
� ��
��� ϡ�`fit` �ǥ�‫ � �ݡ‬Ȥ����

�ѿ����ǡ��ɤ줬� �� 뤫� ��
��줿�ѿ�Ǥ�� <�����Τ��

p �ѤǤ� � ���
��
 ɤϸ���ˤ��ηdǤʤ��ƤϤʤ�‫� � �ޤ‬
����`# FIXED` �ȸ$�������
C 3 fit �γ�ά (fit beginners_guide)
3 short introduction
?commands fit beginners_guide
?fit beginners_guide
?fit guide
?fitting
`fit` �ϡ�� ���줿�ǡ����$��
����� ����
��� 줿�桼����t ‫ �ؿ‬ˤ�äȤ��ɤ�
��ƤϤ��褦�ʥѥ�� �� ��Ĥ���Τ˻Ȥ�� ‫ � � � � � � � � �ޤ‬ƤϤ�ϡ�
Ʊ�����Ǥ���ϥǡ����$ȴ‫�� �ؿ‬ Ȥμ�������� 뤤
��ϻĺ� (SSR:Sum
of the Squared Residuals) ���¤���Ƚ� �� �‫� � � � � � � �ޤ‬
� ����(����)
����ȸƤФ�‫ � � � � � �ޤ‬Υ�� 르�ꥺ��� SSR ���Ǿ�����뤳 ����
Ȥ褦��
���‫������ܤ‬ � �‫���ޤ‬
� � ��� � � � $��ȡ��ǡ������ ( 1.0 � � �‫� )ޤ‬νŤߤĤ��ĺ���
������(WSSR) �κǾ�����ԤäƤ�� ٤ܺ����‫ޤ‬ϡ��ʲ�����:
`fit error_estimates`��

��� 줬� (������)�Ǿ�������ƤϤ�ˡ�ȸƤФ�� �� Ǥ� � ��`������ ` �


������ ���Ƥ���� Τ �뤿� �����
�� Ҳ �‫ � � � � � � � � �ޤ‬p�ˤ����� Ĥ ��
����ˤĤ��ƽҤ ٤Ƥ���� ‫ � � � � � � � �ޤ‬Ǥϴ�ñ�Τ�� ᡢ 1 �ѿ�Υ�� ������
�‫ � �ؿ‬z=f(x), 2 �ѿ�δ‫ � �ؿ‬z=f(x,y) �Τ褦�ˤ���������⽾°�ѿ��
����z ���Ѥ�뤳 ��Ȥˤ��‫ � � � �ޤ‬ѥ��� �� Ȥ� `fit` ��Ĵ0����� Ŭ‫�� �ڤ‬
��� �� �
�� ����� ѿ�ǡ�� ‫������| � � � �ؿ‬ο�Ǥ��������Ǹ� $ �����
-/������Ȥϡ�
- ��°�ѿ�z ��`fit` ��Ĵ0����ѥ� Ȥ ‫� � � � �ط‬
�� ��δ
�����ΤǤ�� ꡢ z ����� Ω ѿ�x (�‫ � � �ޤ‬x ��y) �Ȥδ‫ � �ط‬Τ��ȤǤϤ���
�‫���( � � �ޤ‬Ū�˽Ҥ ٤� ȡ���zǾ���������Ǥϡ���ƤϤ�‫ �ؿ‬Υѥ��
���ˤ��2 ��(�����ƹ��˹���)Ƴ�0 � � ‫��� ؿ‬Ȥ������Ȥˤʤ� ‫��) �ޤ‬

��zǾ�����ˡ (LLS) �Ǥϡ�� �� ��� t ‫ � �ؿ‬ñ��ʴ‫ � � �ؿ‬¤Ǥ�� ꡢ� � � �


����ϰ�ĤΥѥ� � � � � � � � � � ‫�¾ �ܤ‬Υѥ� �� � � � ‫ޤޤ‬ʤ���ˤʤ� ‫� � �ޤ‬
����zǾ�����ˡ (NLLS) �ǤϤ��ʣ���‫�ؿ‬ ʴ �� � � � � ѥ�� � � �Ͽ � � � �
�Ȥ���� ��

� ‫ � � � �ޤ‬ա � ��� ����� d�����dκǾ�����ˡ�ΰ㤤��ɽ��
��Ĥ���Ǥ����ա� � ��
�� Ǥϰ�Ĥι��
z=a*sin(c*x) + b*cos(c*x).
�Τ褦� �ɽ����‫ � � ⤷ � � � �ޤ‬a ��b ����Τʥѥ� � � � � � c �����$Ȥ����
�ѥ�� � � � � ɾ�d���zǾ���������ˤʤ� ‫ � � � � � � � � � � �ޤ‬c ����Τʥѥ�

���ʤ�� Ф ������������ˤʤ� ‫� � �ޤ‬

��dξ� �� ѥ�� � � � � ��� ���� Ū���ñ ��������� ľ �ˡ�ˤ�äƷ����


��� ‫ � � � � � � � � � � � �ޤ‬Τ 褦� � LLS ���ü�ʾ��Ǥ�� ꡢ'gnuplot' �����Ѥ���
�ȿ��ˡ�ϡ���d� ��� �ơ��������
‫�ޤ‬ Ū �NLLS ����� ���
���Ȥ ��
�� ���
Ǥ�
�‫� � � �ޤ‬`fit` �ϸ����Ԥ����ȤǺǾ�� ���
� ���Ȥ��‫ � � �ޤ‬ȿ��γƥ��ƥå�
õ
�ϡ��ѥ� � � � �ο ������� �
��Ȥ����� WSSR �‫����ޤ‬
Ф � �� � � Marquardt-
Levenberg �Υ�� 르 � ꥺ � � ϼ� � Υ� � ƥå‫פ‬Υѥ�� � � � � �
���j��
� ‫�ޤ‬
� ����
���Ƥ���Ϥ�� � � � ��� ������ ��a��ʤ� �(1) �ƤϤ � "��«����"
(WSSR ������ и ������� ³�꾮
�� �

� � � � �ʤä��� �� ʲ�����:
`set fit limit`)��� (2) � � �‫��� ޤ‬ �� � � � � � ���줿 ȿ���θ³���ã����
���(�ʲ�����:`set fit maxiter`)���Τ���줫 � � � � � � � � �‫�����ޤ‬³ �‫� � �ޤ‬
����� ‫ � �ܡ‬ɤ���� � � �ƤϤ ��ȿ������ ߤ������
ǤǤ �� ³ � � � � � � � � �‫� � ��ޤ‬
���Ȥ�Ǥ�� ‫�( �ޤ‬ʲ�����:`fit`)��� �� � �ѿ� FIT_CONVERGED �ϡ� ľp��
fit ��� ‫ �ޥ‬ɤ���«�ˤ�꽪 λ��������1 ���a�����ʳ�����ͳ������
��������0 ���‫�ޤ‬ d � � FIT_NITER �ϡ�ľp����ƤϤ�ǹԤ� 줿� � � � � �
���β����d ‫� � �ޤ‬

��ƤϤ�˻Ȥ��� ‫ �ؿ‬Ϥ��Ф��Ф����ǥ� (�‫ � �ޤ‬Ϥ�������) � � �ˤ���


���ơ�����ϥǡ����� ο ����
Ҥ
����
���
�� ꡢ� � � 뤤 � � ͽ¬���
褦� Ȥ��
��`fit` �ϡ��ǡ��������� Υ ǥ�ˤɤ줯 � 餤 � � � ‫ � � �ޤ‬ƤϤ ‫ޤ‬äƤ���Τ���
�����뤿 � ᡢ � � � � � Ƹġ��Υѥ��� � �θ����ϰ �ɾ�d� 뤿 �
Ϥ� � ˡ����
��μ�ͳ�ʥѥ�� � � � � � ����Τ� ˻Ȥ��
� ‫ � � � �ޤ‬ʲ�����:
`fit error_estimates`��
�����Ǥʤ���� С ����ˤ����ƤϤ�ˤ����‫ؿ‬
�� ϡ���ǥ�Ȥ���
‫ � � �ط‬j
�Ф�Ƥ��
‫����( �ޤ‬Ͻ�ʬ��ɽ���ϤȺǤ�� ʤ���Υѥ� � � � � � � a��ǡ�
������
�Ҥ �������
�� ������ ʴ ‫ �ؿ‬Ȥ��Ʒи����Ť�� j�Ф��Ǥ��礦)��

���������� ��t
��ʤ���Ƥ Υ ǡ����� $ ��
�褦� ʳ��� ʶ�����ߤ� � � � ʤ�
`fit` �ǤϤʤ���ष��� `plot` ��`smooth` ��� ‫ � � � �ץ‬Ǥ����Ԥ��
٤� � �
����� �
C 3 ��ɾ��(error estimates)
3 error estimates
?commands fit error_estimates
?fit error_estimates
?fit errors
`fit` �ˤ�������" " �Ȥ����Ѹ��2 �Ĥΰۤʤä�ʸʸ���Ѥ���‫�ޤ‬ ���
��Ĥϥǡ��������� ⤦ �Ĥϥѥ�� � � � � � Ǥ���

�ǡ������ϡ�ʿ��ĺ��νŤ��դ�����WSSR�����ʤ� ּ�f���������
���
�ġ��Υǡ����� $ �����ʽŪ Ť � �� ߤ� � � � Τ��Ѥ���‫�ޤ‬ � � � � � � � � ϥѥ��
������ɾ�d˱ƶd�� ��‫ � � � � � � �ޤ‬ϡ����� � � � �ƤϤ��줿� ‫� � �ؿ‬
����
�ġ��Υǡ����� $ �� к �����
ǽ Ū �� ����
�d � �� � � � � ���뤳 �
��ƶ���
�� Ȥˤ�
��5 � � �‫�ޤ‬Τʥǡ�����ɾ�d�� �����Ƥ�����
����� ������ ˤϡ

��ѥ�
��� �� � �θ�
ɾ�����
`fit` � � � � � Ϥ ������ Ĥ ϤǤ�����
�� � �� �

`statistical overview` �Ǥ�`fit` �ν��ϤΤ����� Ĥ ������ $ ��


'practical guidelines' ���Ф���‫ط‬ �ʤ�Ҥ٤Ƥ��‫� � �ޤ‬
C 4 ���Ū�ʳ���(statistical overview)
4 statistical overview
?commands fit error statistical_overview
?fit error statistical_overview
?statistical_overview
����zǾ�����ˡ (Non-Linear Least-Squares; NLLS) �����$ϡ������ 5�
ʬ�ۤ � � � $�������� Ū ˵ �Ҥ���Ƥ�‫�ޤ‬� � � � � � ʤ�a���ϥǡ������ �� ��
���줿
ʿ�ѤȤ���ʿ�Ѥ��Ф�������� ����줿 ɸ���к����� ĥ ����(5��) ʬ� �ۤ˽���
�콸 � Ĥ����ɸ� ‫ܤ‬Ȳ���� �‫ � � � � �ޤ‬ʬ��� � ɸ�‫ � � � � � � � �ܡ‬콸 � Ĥ�ɸ���к�
���Τ뤳 � Ȥ��Ф��Ƥϡ�� ּ � � � ʬ���� ‫ � �פ‬Ѥ � � ơ � ���ּ֦�ּ � � � ‫פ‬ȸƤФ��
�� �Ĵ�
�٤뤳 � Ȥˤ�����ƤϤ���ɤ��‫ �פ‬Ҥ٤뤳 � Ȥ��Ǥ��‫� �� � � � � � �ޤ‬
����ͳ� ٤Φּ��� (ּ� � � � μ�ͳ� ٤ϡ��ǡ����$ο����ƤϤ����ѥ�
�� � � �θĿ�$�����)��1.0 �Ǥ�����ϡ��ǡ����� $ ��ƤϤ�� 줿
�‫ �ؿ‬Ȥ��к��νŤ ߤĤ������� ¤ ���� ߤΥѥ�
� � � �� ��Ф �
���‫��� �� � �ؿ‬
�줿 ɸ���к��ˤ�ä���� � � 콸 � ĤΡ����%�ʥ��
ħ դ��줿 ‫�ץ‬
� � � ���
�����¤Ȥ�t��Ʊ���Ǥ�뤳 � � Ȥ������‫� � �ޤ‬

‫פ‬Ǥ����
ʬ�� = �� �� �‫ �׳‬Ʊ� �ο�
콸�
� Ĥ�ɸ���к������Ǥʤ�� �

���$ϴ�¬�������к ���ȴ
¤��Ԥ������к ����
¤ ��Ӥ���Ȥ���
˸ ��˽Ť�
�Ť�����٤�
� � Ǥ���

�ǽ��ʳ���`fit` ��'stdfit'�����ʤ�{ĺ���RMS (����ʿ��ʿ��)�ǵ�


�������ƤϤ��ɸ���� к �ȡ��ǡ����� $ �ŤߤŤ����Ƥ��������
' ��
���줿� ּ � � � ' �Ȥ�ƤФ��ĺ���ʬ����‫ݡ‬ �� � Ȥ��‫�(��ͳ � � � � �ޤ‬ǡ�����
�ο����ƤϤ�ѥ� � � � �ο������)�Ϥ�����ɾ�dǻ��Ѥ����
�����ʤ��ʤ � � ǡ����$λĺ���� η � ǻȤ���ѥ��� � � � Ʊ���ǡ�������
�$����Τ$���Ǥ����ǡ����� $ �Ťߤ� � ľ�硢`gnuplot` �Ϥ�����
��
�p-�‫����ޤ‬ �� � � � � � � Ϥ��μ�ͳ�٤ȷ��Φ ּ������Ф�� �ּ � � � ʬ�ۤ � �
����ʬ� �۴1 ������‫ؿ‬ ����� ��Ǥ� � ���ʲ������
:`practical_guidelines` �
������� ϰʲ
����
�� ��
�������������
ѿ�������� �:
‫�ޤ‬

FIT_NDF = ��ͳ� ٤ο�
FIT_WSSR = �ŤߤĤ��ĺ��μ�����
FIT_STDFIT = sqrt(WSSR/NDF)
FIT_P = p-��

�ѥ� � � � ��‫ � �ؤ‬뿮 � � � ٥� � ɾ���


d 뤳 � Ȥǡ���ƤϤᤫ � � �$���Ǿ�
᤹‫ ׵‬뿮 �
�Φּ���ȡ��᤹᤹‫׵‬
᤹‫�׵‬ ��뤿 �
� � ٥� Φּ�������� � Φּ�������
���Ѥ�뤳 � � Ȥ�����‫ � � � � � � � � � � � � � �ޤ‬Τ 褦� � �� �8.
�����ѥ�
� � � � � � Ȥ�
��� �� �ˤϡ������ Τ ��ʤ� � � ɬ�‫פ‬Ȥʤ�Ǥ���� �
��

`fit` �Ͽ��� �֤ η�����


� ष���Ǹ� � ȿ� � �� ʬ� ��- � ʬ� � �� � �
�ľ�
�d��$���ѥ� � � � �θ�ɾ�d��� �‫ � � � � � � � � �ޤ‬ɾ�dϡ�ɸ��� к�
�Ȥ��Ʒ �� � � � � � ��λ���� � � � � ‫ � ؤ‬ξ�郎� � � � ��ˤ�����zǾ�����
����
����Ǥ�� ‫ � � �ݾڤ‬ʤ��ΤǤ�������zǾ���������Ǥ�ɸ����ƥѥ� ( �
����ɸ���� к )��Ʊ����ˡ� Ƿ
‫�����ޤ‬ �� � � � � � � � Ƥ��Τ��ᴷ��ˤ�ꡢ � � � �
���"ɸ���" �Ȥ�"r��ɸ���"�ȸƤФ�Ƥ�� ‫ � � �ޤ‬r��ɸ����ϰ�
��˳‫ڴ‬Ѳ�� ������ ٥� η���ˤϻȤ�� ٤� � ǤϤ��� ‫��ޤ‬
� ��� � � -Ū�ʻ�
ɸ�Ȥ��Ƥ����� Ω ĤǤ���� �

�ǽ�Ū�ʲ�ϡ�����ϰϤˤ�����ѥ� � � � � � � � ‫����� ��ؤ‬


8� � � ‫ع‬ .����
��: ���μ��г����ǡ����ʤ�� | ��� ‫�ؤ‬
Ͼ�� 1 �ǡ�t�Ƥ�Υ�ѥ� ���� �
Ω�ʤ������ г ���ǤϤ�٤� � 0 �˶ᤤ� �ˤʤ� ‫ � � � � �ޤ‬t��¾��� �� � � � 2
�Ĥ��ѿ�ϡ�� � � � � 1 �ǡ�� ‫����ؤ������ؤ‬ � 5���� ‫ط‬ � � ˤ�ä�5�����
�ʤ����������� г ���Ǥ��‫�ޤ‬d � � � � � г����Ǥ�� � � � � � � � � � �� �ۤɡ���
�ѥ�� � � � � ɸ���к���� ɾ dϡ�r��ɸ����˶��ʤ� ‫� � �ޤ‬
C 4 ����� Ū ʥ����� ɥ � �(practical guidelines)
4 practical guidelines
?commands fit error practical_guidelines
?fit error practical_guidelines
?practical_guidelines
?guidelines
�ġ��Υǡ����‫ؤ‬νŤ $ ߤŤ��γ����Ƥδ��ä��ΤäƤ���ʤ 顢 � � � 줬 ¬��
�����Ф����‫ܤ‬ �� � � � � � � � � � Ѥ � � � �褦� Ȥ���Ǥ��� � �� � � �С���Ĥ�
���$�¾���� $ ���Ƥˤʤ�Ȥ������Ȥ��� θ ��� 뤳
�� Ȥ���ǽ�Ǥ�������
�ơ������Ϻ� ǽ Ū�ʥѥ� �� � � � � � ˱�ƶ��
d ‫� � �ޤ‬

�ǡ����νŤ��դ��ϡ��Ǹ��ȿ����`fit` ���ɲý��Ϥ��� Ф ����� δ ��


��� ��
� ��‫ � � � � � �ޤ‬$�Ʊ��˽Ť��դ���Ԥʤ��ˤ��Ƥ⡢�Ť�1 ��Ȥ����Ȥ�
���ष��ʿ��ɸ���к���ɾ�d��뤳 � Ȥ���� ּ � � �� � d ˤ��� ��Ǥ����
���ˡ�WSSR ��� �����ѿ�Ȥ�� 뤳 � Ȥˤʤ�‫� � �ޤ‬

��ƤϤ�ȿ��γ��ʳ��ǡ���ƤϤ�οʹԤ�ɾ�d˻Ȥ����Ȥ���������ɽ
�����‫�ޤ‬ � ('*' �Ϥ� 꾮 � � � � �
WSSR ��Ĥ�����ʤ�ä� ����ȡ������ƺƻ�
�Ԥ��Ƥ�� 뤳 � Ȥ������‫'��) �ޤ‬sum of squares of residuals' (�ĺ��μ���
��) �ϡ�'chisquare' ( � ּ � � � ) �Ȥ�ƤФ� ‫ � � � � � � � � �ޤ‬ϥǡ�������ƤϤ�
�‫ �ؿ‬Ȥδ֤� WSSR �������Ƥ��ơ�`fit` �Ϥ����� Ǿ ���� � Ȥ��‫� � �ޤ‬
褦�
�����ʳ��ǡ��� �� ǡ����ˤ�äơ�
Ť �դ���줿 � ּ � � � � �� ϼ�ͳ��(= �ǡ���
�$ο� - �ѥ� � � � �ο�) �˶��դ����Ȥ����Ԥ�� � � � WSSR �����
‫�ޤ‬ 5 �줿

�ּ����� (WSSR/ndf; ndf = ��ͳ��)��� ‫ � � � � �ޤ‬ƤϤ � ɸ ���к� (stdfit =
sqrt(WSSR/ndf)) �� �� � � � � Τ˻Ȥ�� ‫ � � � � � � � �ޤ‬Ϻǽ�Ū��WSSR ���Ф�
�ƥ� ‫ � �ݡ‬Ȥ���‫� � �ޤ‬

�ǡ�������
Ť �դ�����Ƥ��ʤ���� �� � � �ñ��ǤΡ��ǡ���
С stdfit �ϡ��
����ƤϤ�
‫ � � �ؿ‬к���RMS (����ʿ��ʿ��)�ˤʤ� ‫� � �ޤ‬

������ʥǡ�������� �
�$���ǡ�����ʬ ¿������ǥ 뤬 5������� С
��ּ5� � � � ��
Ϥۤ� 1 �ˤʤ� ٤ܺ�) �‫ޤ‬ϡ�Ŭ����‫ܤ‬
���‫ � � � ּ �' ׳� ؤ‬ʬ
��' �ι� ��Ȥ��Ƥ� $�
����) �����ξ�� � �γ�� 뤳 �
‫��˽���פ‬Ƥ Ȱʳ�
�ˡ���ǥ뤬� ǡ����ˤɤ줯 � 餤 � ɤ���Ƥ ‫ޤ‬äƤ��뤫 � � � ���뤿 � � � �ɲ�
�λ��ˡ�������� Ĥ ��� �� �
‫�ޤ‬
��ּ5� � � 褬 1 ���Ϥ뤫 � � � 礭 � � � ʤä�� 顢� � � � � � � 5�ʥǡ�����ɾ�a�
5��ʬ�ۤ � � � ʤ��ǡ������������ƥ���� ¬ ������� Ω ���ɸ����
(outliers)��� ‫ � � � �ޤ‬ɤ��ʤ���ǥ�‫ �ؿ‬ʤɤΤ���Ǥ�� � �� � ��
��
`plot 'datafile' using 1:($2-f($1))` �ʤɤȤ��ƻĺ����r 褹 � 뤳 � Ȥϡ�
������ Ū ������뤿
Υ ���ƥ��ʷ Τ � � μ꤬����Ȥʤ�‫ � � � �ޤ‬ǡ����$ȴ‫�ؿ‬
��ξ�Ԥ��褹 r � 뤳 � Ȥϡ�¾�Υ�ǥ����������� � μ � ꤬����Ȥʤ�Ǥ���� �


Ʊ�ˡ�
�� � 1.0 � �꾮 �
��� � � � � �5� ּ � � � ϡ�WSSR ����� 5 ��ۤ
ʬ � � � � � � � � ĥ�
��%�ʥ��‫�ץ‬ � ȴ‫ � � �ؿ‬Ф��ƴ��Ԥ������ Τ⾮
� � � � � � � � Ȥ�������
�����ǡ�����ɾ�� 礭 � � � � � � Τ�������ʲ
d � Ū � �꤬ 5�����ʤ��� Τ ��‫�ޤ‬

�ϥ�ǥ� ‫ � � � �ؿ‬Ū�����ơ����� Ū ����˲ä����� ü ʥ�� ‫�ץ‬
� ˤ����ư
����ƤϤ�ˤʤäƤ���ΤǤ�� �� � �Ǹ�ξ��ϡ����� ‫ץ‬ �� ʴ ‫ �ؿ‬ˤ�
��Ф�� ‫ � �ޤ‬Ԥ��Ǥ���� �

���ƤϤ��p-� �ϡ��� �Φ������Ф��


٤ͳȷ��ּ � ּ � � � ʬ�ۤ � � � � � � ʬ��
��1 � ����
�‫ؿ‬ ���� ��Ǥ� Τ ������ϡ���ƤϤ���ɤ���
� ��������� ��

�‫� � � �ޤ‬ p-� ���ϰϤ0� ����1 �‫�ޤ‬ Ǥǡ�p-� ���⾮ ȤƤ� � � � � � � � � 뤤 � ϤȤƤ�
�礭� � � � � ϡ���ǥ뤬� ǡ����Ȥ��� θ ��� d �ȵ��Ҥ��Ƥ��ʤ����Ȥ��
� ���‫ � � � � �ޤ‬ǽҤ٤� � 褦� ˡ�����ϥǡ��������꤬ � � � 뤫� � � � � � � � ǥ��
��� ꤬���롢 � ‫ � �ޤ‬Ϥ������Ȥ߹ �碌� ʤΤ$��Ȼ‫� � � �פ��ޤ‬ p-� ��������
���Ȥϡ������ᾮɾ�d���Ƥ���Τǡ���äƺǽ�Ū�ʥѥ� �� � � � � �
�������Ѵ��� � � $��Ȥ������Ȥ�������Ǥ���� � �ʲ���� �
٤� :
`set fit errorscaling`��

ɸ��Ū�ʥ�� 顼�� - ˴‫ � �ؤ‬롢 � � � � � 긽 � � Ū��ɾ�d�


ѥ��� � � � � Գ� � � �
�‫ � �ط‬դ�� 뤳� ȡ��������‫ � � �ع‬ν���� - �ɾ�d�� 뤳� Ȥ��Ǥ���褦� ˤʤ�
p�ˡ����ʤ���`fit` �ȡ������� Ŭ Ѥ�褦 �� Ȥ��뤢 � � � � � � � �˴� ��Ƥ�
��ɬ� ‫ � � � � �פ‬Ǥ�� �� �

`fit` �ϡ����������zǾ�����ˡ�μ���Ǥ϶��� ��ơ�����


Υ μ ��
(y-f(x))**2 �νŤ��դ������ ¤ Ǿ ���� � Ȥ��뤳� Ȥ���դ��Ƥ��$�����
褦�
�����ϡ�x���� ��
�" " �� ‫ � ����˴ؤ‬ƤϤɤ����ˡ��� ���
ƤϤ� � �� � ñ
��y ��‫ � � �ؤ‬ɾ�dΤ ߤǤ���� ‫��" � � �ޤ‬Ω��"(5��ʬ� �ۤΥ�ǥ�Τ���� �
�Ƥ���ǡ������Ͼ�
) ˲� ��������� �
������‫� � �ޤ‬
ǽ-
C 3 )�� (control)
3 control
?commands fit control
?fit control
���‫` � �ޥ‬fit` ������ϡ�`set fit` ��)� �� ‫ � � � � �ޤ‬p�� `gnuplot` �Υ�
�����ѿ�ϡ��� С �����5 ���� 侩� ȤʤäƤ��‫ � � � �ޤ‬ʲ�����:
`fit control variables`��

`gnuplot` �ε�ưp��`fit` ��ƶ �


d���� 褦� � � � dǤ���¿���δĶ���
�����
�����‫ � � � �ޤ‬ʲ�����:`fit control environment`��
C 4 )���ѿ�(control variables)
4 control variables
?commands fit control variables
?fit control variables
=FIT_LIMIT
=FIT_MAXITER
=FIT_START_LAMBDA
=FIT_LAMBDA_FACTOR
���������� �� � � � � �ѿ�ϡ���
$ �� 侩� Ǥ����ʲ�����:`set fit`��

�ǥե���ȤΤ�äȤ⾮� � � � � � � θ³� (1e-5) �ϡ��ѿ�


FIT_LIMIT
���ѹ��Ǥ�‫�ޤ‬
� � � � ĺ���ʿ����� ¤ 2 �Ĥ�ȿ��ƥ֤å‫״‬ǡ����ο��

���
�꾮 � � � � � � � �Ѳ����ʤ���
ä �� � Ƥ Ϥ� 롼 �
� e�ϡ��������
' «����'
�� �
�ȸ��ʤ�‫�ޤ‬

ȿ���κ�����
��
�� ѿ�
� ��

FIT_MAXITER
��)�¤���
0 � ��‫ �����ޤ�( ޤ‬d��ʤ�����
) �)��������
� ��‫�ޤ‬
���

���ˤ��Υ�� 르 � ꥺ � � � )��� � � � � � �ǡ�����Marquardt-Levenberg ����


���ꥺ� � � � ɤ��ΤäƤ�����ϡ�����ˤ��� ƶ �d
˱�����
����� ����ѿ ‫���ޤ‬
�`lambda` (��) �κǽ���� �ϡ�
�ML
�� �
��� 鼫 ưŪ�˷‫�������������ޤ‬
������ ���
� � � � �Ѱ դ� � � �� ˥� � åȤ� � ������
FIT_START_LAMBDA
�˥��åȤ��Ƥ��� $ ����FIT_START_LAMBDA ��0 �ʲ��˥��åȤ���ȡ���ưŪ
�˷������� �� ˤʤ�‫ ����ޤ‬ѿ�
FIT_LAMBDA_FACTOR
�ϡ��ּ �� 貽 � � � 줿 � ‫ ���ؿ‬á���� 뤤 � ϸ � � � � � � � ˤ Ĥ � � `lambda` � � � � �
���뤤 � ϸ � � � � � � � � � � ��� �� � ‫ ���ޤ‬FIT_LAMBDA_FACTOR ��0 �Ȥ���ȡ������
�ǥե���Ȥΰ��10.0 �����Ѥ�� �
‫���ޤ‬

`fit` �ˤ� FIT_ ����Ϥ‫ ��ޤ‬ѿ�¾�ˤ⤢��‫������ � � � ����ޤ‬


� � � � � �ѿ�Ȥ�
�ƤϤ����
Τ �p�ǻϤ‫ ��ޤ‬ѿ�ϻȤ�ʤ�� t Ǥ�� � �
�� ˤ���Τ����

�ѿ�FIT_SKIP ��FIT_INDEX �ϡ���p���Ǥ�`gnuplot` �Ρ�`gnufit` �ȸ�


�Ф�Ƥ���`fit` �ѥådǻȤ��Ƥ�����Τǡ���ߤ� ϻ��Ѥ���Ƥ��‫���ޤ‬
FIT_SKIP �ε�ǽ�ϥǡ����ե�������� Ф ��`every` ����Ҥ��Ѱդ���Ƥ���
����FIT_INDEX ��ʣ����ƤϤ�ˡ (multi-branch fitting) �ǻȤ��Ƥ�����
�ΤǤ�����1�ѿ��ʣ����ƤϤ�ˡ�ϡ����Ǥ�����3 ������ƤϤ�Ȥ��ƹ�
�ʤ��Ƥ��ơ������Ǥϻ‫ޤ‬λ���ˤ�2 �ѿ��`using` ���Ȥ��Ƥ�� ‫���ޤ‬
�ʲ�����:`fit multi-branch`��
C 4 �Ķ��ѿ�(control environment)
4 environment variables
?commands fit control environment
?fit control environment
=FIT_LOG
=FIT_SCRIPT
�Ķ��ѿ��`gnuplot` ��Ω���~ �
p����d��ʤ���ʤ Ф ‫�ޤ‬ �� � � �
��������
��
����ˡ�ϥ��‫ڥ‬졼 � ƥ����
� ��ƥ���¸� ‫���ޤ‬
� �

FIT_LOG
�ϡ���ƤϤ�Υ���� ��
���ե
(��������ӥѥ� )���ѹ���� ‫ ����ޤ‬ǥ�
����ȤǤϡ���ȥǥ��쥯 � ȥ��� "fit.log"
Ƥ
��ʤ

Ȥ ‫������ޤ‬
ä Υǥե�
��Ȥ����
ϥ��
���
‫` ��ޥ‬set fit logfile` ��Ȥäƾ�
� Ǥ��
� � �� ‫���ޤ‬

FIT_SCRIPT
�ϡ�� 륳 �
�� � � � � � �Ǥ�����˼¹Ԥ�� ‫ �ޥ‬ɤ���� � ‫ ����ޤ‬ǥե���ȤǤ�
`replot` �Ǥ�����`plot` ��`load` ��� ‫ �ޥ‬ɤȤ���С���ƤϤ�οʹԾ�
����ɽ��� ��

����
��� ‫ �������ޥ‬Τ�����Ǥ�� � � � � � � � � � �ϡ�
`set fit script` ��Ȥä��ѹ��Ǥ�‫�ޤ‬���
C 3 ʣ�����ƤϤ�(multi-branch)
3 multi-branch
?commands fit multi-branch
?fit multi-branch
?multi-branch
?branch
ʣ����ƤϤ�ˡ (multi-branch fitting) �Ǥϡ�ʣ��Υǡ������� ���
�� ��
��


�ѥ�� � ����� ʣ���1 �ѿ�δ‫ �ؿ‬ˡ�WSSR �����¤�Ǿ������뤳 � Ȥˤ�
�ä�Ʊ������ƤϤ� 뤳 � Ȥ�����‫ ����ޤ‬ƥǡ���������� �� ȥѥ ��
Ф �‫ؿ‬
��(��) ��'�����ѿ�'��Ȥ����Ȥ�� j �Ǥ��
‫ �� ����ޤ‬С��ǡ����� �ֹ �
(-1; '�ǡ�����'��
�ֹ � ) �‫ ��ޤ‬ϥǡ����ե���� ‫ ���ܤ‬Ω
�� (-2) ��2 ���
�ֹ
�ѿ�Ȥ��‫���ޤ‬

��: 2 �Ĥλ‫ ���ؿ‬z=f(x) ��� ����Ƥ��


� �������� ����줾 �
ơ���� �ۤʤ�ǡ�������
� �� Ҥ��Ƥ� � � � � ��������
뤬� ��� a����Υѥ�
�֤ �� ���� ��ɾ� 롣
d��
�ǡ����ե���뤬 � x:z:s �η|��Ǥ��� ä �Ȥ���ȡ����� ξ �ʲ����
Τ ˤ�
���� �
f(x,y) = (y==0) ? a*exp(-x/tau) : b*exp(-x/tau)
fit f(x,y) 'datafile' using 1:-2:2:3 via a, b, tau

���ʣ������ˤĤ��Ƥϡ��ǥ�ե�����"fit.dem" �ǻȤ���"hexa.fnc"
� �� Ȥ��Ƥ�
$�
�����

���° � ѿ� Υ��������
˺ ������ 硢�ñ��νŤ��դ��Ǥ�1 �Ĥλ‫���ޤ‬
�ۤ��Ƥ��‫ ���ޤ‬ǽ-������Τǡ�Ŭ��ʽŤ��դ���ɬ� ‫פ‬ˤʤ�‫ ����ޤ‬ƻ ‫��ޤ‬
���Х����ƤϤ��Τ�ʣ����ƤϤ�ˡ�β����� Ȥ
ϡΤ
����Ѥ������ t ��
���碌� � � � γƻ ‫ ��ޤ‬Ф��������ʱƶŪ d�‫ ���ؤ‬ɽ����� ���
��뤳 � Ȥˤʤ��
����� �
C 3 �����(starting values)
3 starting values
?commands fit starting_values
?fit starting_values
?starting_values
�������ƤϤ�ϡ�����ʺŪ �Ŭ��(�ĺ��μ�����(SSR) �κǾ��� ��
IJ��� )

�‫ؤ‬μ�«��� ‫ݾڤ‬Ϥ��‫��ޤ‬ � �� � ɽ�Ū�ʶ˾
� � ��
��
�� 뤳 � ȤϤǤ��‫� � �����ޤ‬
���

��
���֥ 롼 � e�Ϥ�������� ���� �y��
ˡ� ��� 碌� Ƥ�� ʤ �� Τ ǡ���� 줬 � �
���ä����ɤ�����Ƚ�Ǥ���Ϥ Τ ��ʤ�����Ǥ�Ȥʤ‫�ޤ‬ ���

`fit` �ϡ�� �
��
���
�����Ϥ��
�� ��
ȼ�
������
Ԥ�� 뤫 � � �Τ�
�ϵ������ ‫ޤ‬$���� � � Ȥ����Τϡ�SSR ����� � � � �ѥ��� ����Ѳ����Ф���
�����Ѳ������������� 뤤�� Ͽ���Ū�����
�����
ΰ � (� �� п���

���� � � � � �



��ư����η�� դ��� �) � �� ã���Ƥ��
� � ‫ޤ‬äơ����η��"������
(undefined value)" �Υ�å�������`gnuplot` ���� ߤ������ � Ƥ��‫�ޤ‬
��� ʾ�
�������� ‫���ޤ‬

���Ū�ʺ�Ŭ��� Ĥ���� ���


ǽ- q ���ˤϡ
��ǽ�� �� ��
� ʤ�
���
�˾
�� � �
�Ȥ�
� �ܶ�
� ۤ� ˼��٤�� Ǥ�� � � �� � � �С����ǽ � ʤ� а��ʬ��� � � � �
�ϰ���ǡ��� ǽ �� � ���
���
˶�
� ᤤ�ۤ���
� 5�ʲ�ǽ�λ���Ƥ�� ‫ ���ޤ‬ǽ-��� �� �
��‫�� ����ޤ‬ ǽ�����
� � Ĥ ��Ĥ���ˡ�ϡ��ǡ�������ƤϤ�
�� ‫ ��ؿ‬Ʊ������
�դξ����� r �
Ŭ��ʶᤵ �� ã���� ‫ޤ‬ǡ��ѥ� �� ���� � ���ѹ�����
`replot` ��� 뤳 � �� Ȥ��֤���� �� ȤǤ��������r�ϡ���5�ʶ˾�
� ��Ĥ


�����Ȥ���ƤϤ�� �λ �������ɤ����� e��� å ����Τ��
ˤ�

� Ѥ��
p�
� Ǥ���
��

��d� ����� ‫��ܤ‬


� ɤ���ƤϤ����Ĥ��äƤ⡢����� "������褤" ��
�ƤϤ� (�����ɤ�� 줿 � � ƤϤ ���ɤ��δ��ˤ�ä���ħ�դ���줿� � ‫�׳‬
뤤 Ϥ��Υ�ǥ�Τ��Ŭ�‫ڤ‬ʲ�Ǥ��
Ū�ʰ���ǡ����� 롢 � Ȥ���ʪ��Ū�ʰ��
��) ��¸� ߤ�� ʤ����Ȥξ��$ˤϤʤ� ‫ � � �����ޤ‬ˤ�äƤϡ��ƥѥ� �� �
Ϥ�ΰ���Τ����ϰϤ��С���� �
�� �
�ο��ʽ����
� ν �����
�� Ф ��`fit` ��
�뤳 � Ȥ�˾�‫ � � � �����ޤ‬Τ�‫���ޤ‬
C 3 �ҥ��(tips)
3 tips
?commands fit tips
?fit tips
?tips
�����Ǥϡ�`fit` ������ ¤ ���Ѥ� 뤿
�� � ˤ����Ĥ��Ф��Ƥ���٤�
�� ҥ�Ȥ�
�Ҳ�‫ � � � � ������ޤ‬ȿ�Ū�ǤϤʤ��Τǡ����� �
�ܼ d����
߹���‫ޤ‬Dz�����
���ɤ�Ǥ���
$ ����

�� �
`fit` �ΰ���`via` �ˤϡ�2 �Ĥ�� �ۤʤ���Ū�Τ����2 �Ĥη|���
����‫` ���ޤ‬via "file"` �η|��ϡ��Хå}���(������ ÷ �Ǥμ¹Ԥ���ǽ)
졢 �
�ǺǤ��ɤ��Ȥ� � � Υե��������ǽ����� � �� �
���� 뤳 � Ȥ��Ǥ��‫���ޤ‬

`via var1, var2, ...` �η|������� 졢 �


÷ �μ¹Ԥ��ɤ��Ȥ� � � ‫ �ޥ‬ɥҥ���
��ε������Ȥäƥѥ� �� ���� Ȥ��Խ���Ԥ�����ƤϤ��¹Ԥ����ꡢ ��
�뤤 � Ͽ��������� ��μ¹
ʤ
���Ƽ��� ��Ԥ�ä��
��
� � � ‫�� � � �����ޤ‬
� ��
� �� �
� �
� �

�����Ф��Ƥ��ä� �
p �Ѥǡ� t�ƤΥѥ� �� ����Ф���1 �٤$���ƤϤ��ľ��
��¹Ԥ��Ƥ⡢�ɤ����� Ǥ
�ʤ�����‫ ������ޤ‬ʤ����Ȥ��������
Ф 뤫�
$ � Ǥ���
������Ĥ���ˤϡ������� Ĥ �Υѥ��� ��Τ ߤ�� Ф��Ʋ���ȿ���Ԥʤ���
�ǽ�Ū�ˤ�t�ƤΥѥ� �� ����Ф���1 �٤��� ƤϤ � � �� ‫ � �����ޤ‬Ȥ����
��ʬ��� ʤ�
�� �
‫ޤ‬Ǥ����
� �� �֤���� ȤǤ���

��ƤϤ��Ԥʤ�‫ؿ‬
�� Υѥ��� ��֤ ˶��
� �
� ΰ̧� ‫ ����ط‬ʤ����Ȥϳ�ǧ����
�����Ƥ���
$ ����� �a*exp(x+b) ����ƤϤ�˻ȤäƤϤ����
㤨�С ‫��ޤ‬ �
� ��
���a*exp(x+b)=a*exp(b)*exp(x) �$���Ǥ�����Ƥ
ä ���
ξ ��a*exp(x)
�‫ ���ޤ‬exp(x+b) ��ȤäƤ��$�����

�����Ū ʤ����: ���� �


���
�� Ǥ��
� ���� � � �ѥ��� ��ȺǤ �� � � � �ѥ��� ����椬
��� � � � � �ƤϤ� μ�«���٤�� ʤ�‫ � �����ޥ� � �� � � ������ޤ‬ư����� :� �
�εտ�˶ᤤ����� ‫ ��ޤ‬Ϥ���ʾ�ʤ�С��ۤ‫ ��ܤ‬äȼ�«���ʤ�����«����p
�˼¹Ԥ����Ǥ���Ǥ��� � � � �äƤ��Τ �� ʾ��ϡ����‫����ؿ‬
δ d��㤨
���'parameter' ��'1e9*parameter' �ˤ���Ȥ����� ǽ �� ��
�1e9 dz���
�����Ƥ����� ���� �� ˲��ɤ�� 뤫��� ‫` ���ޤ‬set fit prescale` �ǥѥ��
�������ν ��� ���� Υ��������Ѵ�������Ǥ餻
˽Ƥ ä
� ��뵡 ǽ���Ѥ��뤫 ����
�����줫 � � ɬ�‫פ‬Ǥ���� �

���
����

‫ ����ؿ‬ƤϤ �� ѥ � �� ��� � �� Ȥ��롢 ñ��ʴ‫ ����ؿ‬w���
��ʤ
� � ϤȤƤ ⤤
顢���� � $��������Τʤ 顢���
� �� Τ � '�� ����Ƥ�� �꤬
��Ϥ�����dǤϤʤ��Τǡ�ȿ��Ͼ��ʤ���� 礦� Ǽ��⤷����
�«����Ǥ��
����� ä����Ǥ��फ� ⤷�� ‫���ޤ‬

�º ‫ݤ‬μ¸��ιֵdǤϥǡ������Ϥ��Ф��뤤 � � �Ĥ��λ ‫��� �����ؼ‬졢 � � � � �


�ǡ����‫ؤ‬κǽ�δ ‫����ؿ‬ƤϤ �� Ԥʤ ��‫ ������ ⤷ ����ޤ‬ȡ��������$�
ʣ����� б ����ʣ���‫�����ץ‬ɬ�
¦ ˤҤȤĤ����� Υ ‫����פ‬Τ�‫��ޤ‬ �
� ��
�����Ƥ����δ ‫����ؿ‬ƤϤ � Υ ѥ � �� ���������� ߤ����ä��������

�Ф��Ǥ���� � � � � � � � � �`fit` ��Ȥ��С�����ѥ��� �� λ��$���ľ�‫�ܥ‬
�ǥ�‫��ؿ‬ � ���
�� Ȥˤ�ꡢ����Ϥ��Ф��� 1
��ǺѤ�ΤǤ��������Ϥ��
� �� ���ƤϤ����� η �������Ȥ������‫�ޤ‬ ������ǡ����Ѵ��⤫�ʤ�γ��
��� � � 뤳 � Ȥ�����
‫ ��� ⤷ ����ޤ‬줬 � � � �ƤϤ� ‫��ؿ‬ñ��� �‫��ؤ‬ơ�p��
�������⤷�Ƥ�Ȼ ‫��פ‬ʤ 顢����� 5��Ǥ���

"singular matrix" �Υ�å������ϡ����� Marquardt-Levenberg ���르�ꥺ


��Υ 롼 � ee�����ȿ����Ф���ѥ� �� ��� ��η
��������ʤ����Ȥ��
� ���‫������ޤ‬ξ�硢��ʽ�� ����Ϥ���
� � � � � 뤫��� ‫���ؿ‬
� ʷdǽ�ľ������
����ñ�ʴ ‫�ؿ‬ˤ��ƤߤƤ��$�����

�Ǹ�ˡ�¾����ƤϤ�ѥå����� (fudgit) �Υ ‫ ˥ޥ‬奢�뤫�顢������ʸ��


����� � ��
� �� ʤ������Ѥ��� ‫�ޤ‬: "Nonlinear fitting is
an art! (��
�����ƤϤ�ˡ�Ϸ ‫ݽ‬Ѥ� !)"
2 help
?commands help
?help
`help`���‫�ޥ‬ɤϡ��Ȥ߹��‫�ߥإ�פ‬ɽ�����
‫��������ޤ‬ˤ Ĥ��Ƥ�����
$ �
��� ����
Ȥ��ˤϡ����ν�Ȥ
ν Ʋäν����� :

help {<����>}

�� <����> ������� � ʤ��ä����ϡ�`gnuplot` �ˤĤ��Ƥδ�ñ������


��ɽ������‫��������ޤ‬ � � � �‫ܤ‬ˤ Ĥ��Ƥ�����ɽ
����� $ ����줿��塢������Ф���
���‫ܤ‬Υ�˥�� � 졢 �
ɽ����� � � κ�������Ϥ��뤳 � ȤǺ�� ‫��ܤ‬Ф�����‫�� إ‬
��³���뤳 � Ȥ��Ǥ��
‫��������ޤ‬ơ����κ�� ‫����ܤ‬$�ɽ�����줿��ˡ������
���������Ϥ��‫׵‬ᤵ��뤫���1 ���‫�� ޤ‬p�ι��‫ܤ‬Υ�‫�����ޤ‬٥���
���� ��
� �� � ֤��Ȥ �� ơ�`gnuplot` �Υ��
‫�ޥ‬ɥ �� �
‫���ؤ����ޤ‬

�‫ޤ��������� )?( ����ܤ‬Ȥ��ƻ�� �� �


ȡ����ߤΥ�٥�ι��‫ܤ‬Υ �� Ȥ�
ɽ������ ‫���ޤ‬
2 history
?commands history
?history
���‫` ��ޥ‬history` �ϡ����‫������ޥ‬ΰ����ɽ�������ꡢ��¸�����ꡢ��
�����Υ��‫�ޥ‬ɤ �Ƽ ¹ Ԥ � � � � ��‫������ޤ‬Υ��‫�ޥ‬ɤε �ư � � � Ѥ � � � ˤ ϡ �
�ʲ�����: `set history`��

`history` ���‫�ޥ‬ɤǻϤ ‫���ޤ‬ϹԤϡ����‫������ޥ‬ˤ���¸���


‫���ޤ‬

��:

history # ����t�Τ�ɽ��
history 5 # �������ľp�� 5 �Ĥ�ɽ��
history quiet 5 # ����ȥ��ֹ�ʤ���ľp�� 5 �Ĥ�ɽ��
˽ history "hist.gp" # ����t�Τ�ե����� hist.gp ���Ф�
history "hist.gp" append # ����t�Τ�ե����� hist.gp ���ɲä���
history 10 "hist.gp" # ľp�� 10 �Ĥ�ե����� hist.gp �˽���
history 10 "|head -5 >>diary.gp" # �ѥ��5 ������‫פ‬Ľ �ĽĽФ �
history ?load # ������� "load" �ǻϤ ‫��ޤ‬Τ��٤Ƥ�ɽ��
history ?"set c" # ���Ʊ�� (ʣ��θ�ϰ�����ǰϤ�)
hi !reread # "reread" �ǻϤ ‫�ޤ‬Ǥ�� � � � �Ԥ�¹�
hist !"set xr" # ���Ʊ�� (ʣ��θ�ϰ�����ǰϤ�)
hist !55 # 55 ���‫ܤ�������ܤ‬Υ��‫�ޥ‬ɤ�Ƽ ¹ �
2 if
?commands if
?if
��������:
if (<condition>) { <commands>;
<commands>
<commands>
} else {
<commands>
}
��p�ν�:
if (<���>) <���‫�ޥ‬ɹ�> [; else if (<���>) ...; else ...]

���ΥС������� gnuplot �ϡ�if/else �Υ֥�å��|�� � � ‫��ݡ‬Ȥ��Ƥ���


����������� `if`, `else` �θ��˳��ϥ��å� "{" ��³����硢"}" ��
��λ����֥� å��‫ޤ‬ǤΤ��٤Ƥ�ʸ ( ʣ ����� ϹԤ��) �˾��Ū�ʼ¹Ԥ�Ŭ
�Ѥ���‫���ޤ‬if ���‫�ޥ‬ɤ� � � � Ҥ ˤ � � 뤳 � Ȥ�Ǥ��
‫���ޤ‬

�Ť��|��� 1 �Ԥ� if/else ʸ��‫��ݡ‬%‫��ޤ‬Ȥ���Ƥ�� ‫��֥������������ޤ‬


���|�� ν νȤϺ����ƤϤ����
��
ν � � � � �� � � � � ν � � ʲ�����:`if-old`��
‫��ޤ‬
3 if-old
?if if-old
?if-old
gnuplot �С������ 4.4 �‫ޤ‬Ǥϡ�if/else ���‫�ޥ‬ɤ � � � � � � ϰ Ϥ � 1 � � � � � α
�‫ޤ‬äƤ��ߤ����������‫�ޤ‬ʣ��Ԥ��楫�å� { } �ǰϤ�ǽ ǽ���Ȥ��Ǥ���

ǽ � �� � � � � �
�����Ť��|�����Ĥ���Ƥ��‫�����������ޤ‬楫�å��Υ֥�å���ǻȤ���
�ȤϤǤ��‫���ޤ‬

������� `if` �� "{" ��Ȥ�ʤ�ʤ����ϡ�<���> ���� (����Ǥʤ�)


�ʤ�� <���‫�ޥ‬ɹ�> �Υ��‫( ��ޥ‬ʣ����) ���¹Ԥ��졢 � � (����) �ʤ��
�����å ‫���������פ���ޤ‬ξ�����ϹԤκǸ�ˤʤ 뤫��`else` �������
�Ȥ���‫ޤ‬Ǥ��줬 � Ԥ��‫�� `;`���ޤ‬Ȥ���Ʊ���Ԥ�ʣ��Υ��‫�����֤���ޥ‬
����ǽ�Ǥ���������դ��Υ��‫`( ��ޥ‬if` �ι�ʸ����) �Ϥ����ǤϽ���ʤ�
���Ȥ���դ��Ƥ��$�����

��:
pi=3
if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi
��¹Ԥ���ȡ�
?Fixing pi!
3.14159265358979
��ɽ������‫�����ޤ‬
if (1==2) print "Never see this"; print "Or this either"
�Ȥ���ȡ�����ɽ������‫���ޤ‬

����¾:
v=0
v=v+1; if (v%2) print "2" ; else if (v%3) print "3" ; else print "fred"
(���٤�Ԥ Ǹ � ι� � � �֤�� Ƥ ߤƤ��$��� !)
2 for
?for
`plot`, `splot`, `set`, `unset` ���‫�ޥ‬ɤǤϡ � � � � � �֤��� for ���Ȥ�
���Ȥ�Ǥ��‫�������ޤ‬ϡ�����Ū�ʥ��‫�ޥ‬ɤ� ʣ � � � ¹ Ԥ � � � ��� � a � � �
�Τ��Τ��Τμ¹ԤǤϷ����֤� )���ѿ�ˤ�äƿ�Ϻ�ɾ�d���‫`���ޤ‬do`
���‫�ޥ‬ɤǤϡ � � ɤ � ʥ � � ‫����ޥ‬ǤⷫǤ�� �֤�� ¹Ԥ����뤳 � Ȥ��Ǥ��‫�����ޤ‬
���֤���ϸ�� ߤϰʲ���2 �Ĥη|��‫��ݡ‬Ȥ��Ƥ��‫�ޤ‬:
��

for [intvar = start:end{:increment}]


for [stringvar in "A B C D"]

��:

plot for [filename in "A.dat B.dat C.dat"] filename using 1:2 with lines
plot for [basename in "A B C"] basename.".dat" using 1:2 with lines
set for [i = 1:10] style line i lc rgb "blue"
unset for [tag = 100:200] label tag

�����֤������Ҥ⥵‫��ݡ‬Ȥ��Ƥ��‫�ޤ‬:

set for [i=1:9] for [j=1:9] label i*10+j sprintf("%d",i*10+j) at i,j

����ʤ����$ˤĤ��Ƥϡ��ʲ�����: `iteration`, `do`��


2 import
?commands import
?import
���‫` ��ޥ‬import` �ϡ���� � � � �
�‫�˷�ޤ��ؿ‬ӤĤ��‫�������ޤ‬ϡ�gnuplot �����Ѳ�ǽ�ʴ ‫��������ؿ‬ĥ
����‫ץ‬饰��� �� ��
�� � .���‫���ޤ‬

��:
import func(x[,y,z,...]) from "sharedobj[:symbol]"
��:
# �‫ �ؿ‬myfun �� "mylib.so" �� "mylib.dll" ��������Ǻ�.����
# gnuplot �Ǥ��r 衢����Ͽ � � ͷ �������Ѳ�ǽ
import myfun(x) from "mylib"
import myfun(x) from "mylib:myfun" # ���Ʊ��

# "theirlib.so" �� "theirlib.dll" ����zѤδ ‫ �ؿ‬theirfun ���.


# ۤ�ʤ�p�����Ѳ�ǽ
import myfun(x,y,z) from "theirlib:theirfun"

�‫���� ϶����ץ‬ �֥������ ȤȤ����� �� � � 줿 p � ˡ � ��� ‫ڥ‬


� ��
졼 � ƥ��� ��

���ƥ�˽��ä� ".so" �� ".dll" ���ɲä�����������ե�ѥ��Ȥ��Ƹ�
������˥����ȥǥ��쥯 � ȥ ꤫ ������ Хѥ� Ȥ
��
�� Ƹ�
�� �
�� �
� � ‫�ޤ������ڥ‬
���ƥ�� � ������ƥ
� � � � ༫�Τ� LD_LIBRARY_PATH �� DYLD_LIBRARY_PATH ��Ǥ�դ�
�ǥ��쥯 � ȥ������

2 load
?commands load
?load
`load` ���‫�ޥ‬ɤϡ � � � � ��줿��ϥե�����γƹԤ Ԥ ��
� Ԥ
� Ԥ 줬 � � � �Ū�����
���줿���Τ �� ˼¹Ԥ�� ����`save` ���‫�ޥ‬ɤǤĤ � � � 줿�ե�����ϡ�
`load` ���뤳 � Ȥ��Ǥ������ ��ʥ�� ‫�ޥ‬ɤν
p ν ν줿�ƥ����ȥե������
�Ĥ���С�����ϡ�`load`���‫�ޥ‬ɤˤ� ä ơ � � ¹ Ԥ � � 뤳 � Ȥ��Ǥ������
`load` ��Υե��������ˤ���� `load` ����� `call` ���‫�ޥ‬ɤ � � � � ä �
������
� ���� ��
� �� � ‫����ޥ‬Υ����ȤˤĤ��Ƥϡ��ʲ�����:
`comments`��
`load` ����Ȥ��˰���� ��
� Ĥ ����ˡ�ˤ �Ƥϡ��ʲ����� : `call`��

��:
load "<��ϥե�����>"

��ϥե������ϰ�����ǰϤ�ʤ���Фʤ�����

`load` ���‫�ޥ‬ɤϡ �ɸ � � � � Ϥ � � � Υ � � ‫�ޥ‬ɤ� � � Ϥ Τ � � � ˡ � � � ��ʥ ե � � �


�� "-" ���Ѱդ��Ƥ����������ϡ�`gnuplot` �Υ��‫�ޥ‬ɥե���� 뤬����
���Ĥ��Υ��‫�ޥ‬ɤ �ɸ � � � � Ϥ � � � � � դ � � 뤳 � Ȥ������٤ ܺ ����‫ޤ‬ˤĤ���
�ϡ��ʲ�����: `batch/interactive`��

Unix �Τ � � �popen �‫�ؿ‬


� ‫��ݡ‬Ȥ�����
� ʥ����ƥ�Ǥϡ�'<' �ǻϤ��
�ե������ˤ��뤳 � Ȥǡ���ϥե������ѥ��‫����פ‬ɤ߹��ळ �Ȥ��Ǥ������

��:
load 'work.gnu'
load "func.dat"
load "< loadfile_generator.sh"

`gnuplot` �‫ؤ‬ΰ��Ȥ����� �� � � 줿�ե�����


� �� �ϡ����ۤΤ��d� `load` ��
�‫�ޥ‬ɤˤ� ä Ƽ ¹ Ԥ � � � ���������ϡ������줿��˥ �� ɤ �� 졢 � � � θ�
`gnuplot` �Ͻ�λ�������
2 lower
�ʲ�����: `raise`��
2 pause
?commands pause
?pause
?pause mouse
`pause` ���‫�ޥ‬ɤϡ � � � � ‫�ޥ‬ɤ � ³ � � Ǥ � դ � ʸ � � � � � ɽ � � � � � � � �� � ��� �
�����֤���ϡ����ԥ���������������Ԥd ����`pause` ���‫�ޥ‬ɤϡ �
`load` �ѤΥե�����ȶ��˻��Ѥ���ȡ�����ˤʤ�Ǥ���� �
��:
pause <time> {"<string>"}
pause mouse {<endcondition>}{, <endcondition>} {"<string>"}

<time> �ϡ�Ǥ�դ�������� ϼ¿ �� �
μ� � � � � �Ǥ -1`
` pause ϲ� � ԥ� � � � � � � � �
��������Ԥa�0 ������ � Ȱ����Ԥ�����5�ο������ � Ȥ����ÿ��
���Ԥd ����`pause 0` �� `print` ��Ʊ���Ǥ���

���Ѥ��Ƥ�����Ϸ|��� `mousing` (�‫�����ޥ‬ǽ) � � �‫��ݡ‬Ȥ��Ƥ����硢


`pause mouse` �ϡ��‫�������ޥ‬å������뤫 ctrl-C ������������ԤĤ 褦
�ˤʤ����������Ǥʤ����Ϸ|�������ϥ ‫�����ޥ‬ǽ p�� �
Ƥ�ˤʤpʤ����
ä
`pause mouse` �� `pause -1` ��Ʊ���Ǥ���

��ġ����뤤 � �ʣ��ν�λ��� (endcondition) �� `pause mouse` �θ���


����줿������ 硢 Τ��dΤɤΰ�ĤǤ� pause �Ͻ�λ�����������Ǥ��뽪
λ���ϡ�`keypress`, `button1`, `button2`, `button3`, `close`, `any`
�Τ����줫 � Ǥ���pause ��������Ϥˤ�äƽ�λ������硢����������� 줿
ASCII �����ɤ� MOUSE_KEY ����¸���졢 ʸ � � 켫 � Ȥϡ�1 ʸ���ʸ������
�Ȥ��� MOUSE_CHAR ���֤��� ����`keypress` ����λ���ΰ�ĤǤ���С�
�‫ۥ‬å ȥ����
(�
�������ƥ�� ‫����� )��ޥ‬ˤʤ�����`buttons3` ����λ
���ΰ�ĤǤ���С����絡 ǽ�����ˤʤ�����

�ɤξ��Ǥ�‫����ޥ‬κ�ɸ���ѿ� MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ��


��¸���������ʲ�����
`mouse: variables` � �

���: `pause` ���‫�ޥ‬ɤ� OS � ‫ؤ‬Υ��‫�ޥ‬ɤǤ � � � � r � ΰ � � � Ǥ Ϥ ʤ � � Τ ǡ �


�ۤʤ�������֤ Ǥϰۤʤ�ư��� ���
�ǽ- ����� ����(����ϡ��ƥ�����
�ȥ���ե��å��������ɤΤ �� ˺�� ߤ��뤫�ˤ������)

��:
pause -1 # ���ԥ���������������Ԥ�
pause 3 # 3 ���Ԥ�
pause -1 "³����ˤ� return ���ǤäƤ��$���"
pause 10 "�����������ʤ��Ǥ��� ? 3 ���� spline �Ǥ�"
pause mouse "j� �� ��ǡ���� >��Ǥ�դΥ ‫���ܥ‬ �å����Ƥ��$���"
� ��
pause ��ʥ�����ɥ���� A-F ��ʸ�����Ϥ��Ƥ��$���"
mouse keypress "p
pause mouse button1,keypress
pause mouse any "Ǥ�դΥ������‫���ܥ‬ǽ�λ�����"

����Ǥ��� "pause mouse key" �ϡ�����



p �
p � � r
p 襦����ɥ���Ǥ�Ǥ�դ Υ���
��Ϥˤ�äƺƳ������������ � ʥ�����Ϥ ���ԤĤ �� ˤ��������ϡ���
���Τ � � �reread �ˤ��롼 � ‫�פ‬Ȥ����Ȥ��Ǥ����:

print "�r 襦����ɥ���� Tab �������Ǥ Ĥ�������"


load "wait_for_tab"

�ե����� "wait_for_tab" �ϰʲ��Τ �� ʤ�ΤǤ�:

pause mouse key


if (MOUSE_KEY != 9) reread

2 plot
?commands plot
?plot
`plot` �� `gnuplot` �ǿ ���d�����δ���Ū�ʥ��‫�ޥ‬ɤǤ � � � � � � � ϴ ‫�ؿ‬
��ǡ����Ρ�¿���μ���Υ����ɽ����� ��
� �� � ����`plot`
��ǡ������d��Τ˻Ȥ�졢`splot` �� 3 �����ζ����ǡ����� 2 �������
���d������
��:
plot {<ranges>} <plot-element> {, <plot-element>, <plot-element>}

���r����� (plot-element) �ϡ���� (definition) ���‫( �ؿ‬function) ����


���� (data source) �Τ����줫 1 �Ĥˡ����5����-°�����‫�ץ‬Ҥʤɤ���
������ΤǤ�:
�r����� (plot-element):
{<iteration>}
<definition> | {sampling-range} <function> | <data source>
{axes <axes>} {<title-spec>}
{with <style>}

���r����ǤΥ����ɽ���|��ϡ��㤨�� `with lines` �� `with boxplot` ��


�ɤΤ �� ˥������`with` �Ƿ��
�������ʲ�����
`plotting
: styles` � �

�r �� � ǡ����ϡ�1 �Ĥδ � ) � �������.8��‫��ؿ‬ѿ�⡼��


(parametric) �Ǥ� 2 �Ĥδ ‫��ؿ��(���ޤ‬ϰ�ĤΥǡ����ե���� 뤫���ɤ�
�������Ρ�����ϻ�p����d�� 줿 p �դ��ǡ����֥� å������ɤ߹���
����Ρ��Τ����줫�Ǥ��������Ƕ��‫ڤ‬뤳 � Ȥǡ�ʣ��Υǡ����ե����롢
�ǡ����֥� å����‫�ؿ‬ʤɤ� 1 �Ĥ� plot ���‫�ޥ‬ɤ� � r � Ǥ � � �����ʲ���
��: `data`, `inline data`, `functions`��

�‫��ؿ‬ѿ ����d��r���� Ǥϡ������� Ϥ� 8.������


� ����
��� 3 ���‫���ܤ‬
� �� Ȥ��Ƥ��
$�����

��:
plot sin(x)
plot sin(x), cos(x)
plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
plot "datafile.1" with lines, "datafile.2" with points
plot [t=1:10] [-pi:pi*2] tan(t), \
"data.1" using (tan($2)):($3/$4) smooth csplines \
axes x1y2 notitle with lines 5
plot for [datafile in "spinach.dat broccoli.dat"] datafile

�ʲ�����: `show plot`��


C 3 �� (axes)
3 axes
?commands plot axes
?plot axes
?axes
�� (axes) �ϡ�4 ������Ȥ����ѤǤ����; ������� <axes> �ϡ������ľ
���ɤμ��˼��٤��碌�뤫���Ȥ������Ȥ�j� ��� ˻Ȥ��
� ����
`x1y1` �ϲ��μ��Ⱥ��μ������; `x2y2` �Ͼ�ȱ��μ��λ���; `x1y2` �ϲ�
�ȱ��μ��λ���; `x2y1` �Ͼ�Ⱥ��μ��λ���Ǥ���`plot` ���‫�ޥ‬ɤǻ � � �
�줿�ϰϤϡ����κǽ�μ�������
( �Ⱥ�) �ˤΤ�Ŭ�Ѥ���
����
3 binary
?binary
?data binary
?datafile binary
?plot data binary
�Х��ʥ�ǡ����ե�����:

�ե������θ��� `binary` �Υ�����ɤ���� Ф �ʤ��� ��� ���ե�


��
����|���‫��ؤ‬뽽 ʬ� �� � � � � � �‫�ޥ‬ɥ ���� �� ���
�ܺ٤ʾ���ϡ�� 뤫��
����ϥ��‫��ݡ‬Ȥ��Ƥ��� `filetype` �ΥХ��ʥ�|��Υե����뤽��� 켫 Ȥ���
ȴ���Ф��� 뤫����ɬ�‫����פ����� ޤ‬Х��ʥ�ե�����ˤϡ��� � �2 �Ĥ�
�|���binary matrix �|��� binary general �|�����������
`binary matrix` �|��ϡ�32 �ӥå� IEEE ���ʤ���ư������ (float) �� 2
���������ηd��¤ӡ������κ�ɸ��ɽ���Ԥ����ɲ �ä ����Ƥ�� ����plot
���‫�ޥ‬ɤ � `using` � � � � ˤ � � � � ơ � 1 � � � � (column(1)) � Ϲ � � � ι Ԥ κ � ɸ � �
���Ȥ���2 ���� (column(2)) ����κ�ɸ� � �Ȥ���
�3 ��� (column(3)) �ϡ�
����Τ����κ�ɸ�ξ�����¸����Ƥ���� Ȥ��
�����
� � ����

`binary general` �|��ϡ�Ǥ�ոĤ���Υǡ������ ������ξ���ϥ���


‫ޤ‬
��ɥ �� � ǻ���� � ɬ�‫����פ����� ޤ‬㤨�� `array`, `record`, `format`,
`using` �ʤɤǥ�������|����ǡ����μ��������Ǥ������¾�ˤ⡢�ե���
‫ إ‬å��ɤ���Ф����ꡢ����ǥ�����(endian) ���ѹ���뤿
���� � � �p
� ��Ѥʥ�
�‫�ޥ‬ɤ � � � � � ���������֡�� ǡ������Ѵ���Ԥʤ����‫�ޥ‬ɤ� � Ȥ � � � � � ����
����ϡ�����ɸ �ܲ�����
� �� 줿�ǡ����ξ�硢���κ�ɸ���ե�����ˤϴ ����
�����Ȥ��ɤ����뤫��Ǥ���matrix �Х��ʥ�ե������ƥ����ȥǡ�������
����ϤȰ �� Ȥ���Ǥ�����general �Х��ʥ�� 1,2,3 �Ȥ��ä� `using` ��
���Ȥ�8.��������ֹ��Ȥ � � � � � � � � 1 ���‫ܤ‬ϥե������ 1 ���‫���ܡ‬
�뤤 � �`format` ��� Ȥǻ����줿��Ρ��ˤʤ�����

���‫ �ޤ�� ޤ‬binary ���‫������ץ‬Ф������Ū�ʥǥե���Ȥ�������ǽ�ǡ�


����� `(s)plot <filename> binary ...` ���‫�ޥ‬ɤ����� 륪 � ‫�����ץ‬t
��Ʊ��� � �ǻ���Ǥ�� �������νν �`set datafile binary ...` �Ǥ���
����Ū�ʵ�§�Ȥ��ơ��ǥե���ȤΥѥ��� �� ϥե����뤫��ȴ���Ф��줿��
���� ��
Ǿ� �� ��졢����ϥ��‫�ޥ‬ɥ �� � ǻ����줿����ʥѥ��� �
�Ǿ� �� ��� ����

�㤨�� `array`, `record`, `format`, `filetype` �� `binary general` ��


��������� � � � ʥ�����ɤ�����Ĥ��Ƥ��ʤ���С��ǥե���ȤΥХ���
��|��� `binary matrix` �Ǥ���

general �Х��ʥ�ǡ����ϡ�����ʥե����� '-' ��Ȥäƥ��‫�ޥ‬ɥ �� �


������Ϥ��뤳 � Ȥ�Ǥ������������������ϥ����‫��ܡ‬ɤ� � � � � � Ϥ � տ ��
����ΤǤϤʤ����ѥ��‫�פ‬Ȥäƥ ‫ ˥����ץ‬Х��ʥ�|����� 뤿
Ѵ ������ �
�Τ�ΤǤ����Х��ʥ�ǡ����ˤϺǸ��ɽ������� � � �����Τǡ�gnuplot
�ϥѥ��‫���פ‬ǡ������ɤ߹����硢`array` ����Ҥǻ���� ����� ?�ˤ�
���ǥǡ������߹���³���
ɤ ‫�ܺ˴ؤ‬
٤ ���‫��ޤ‬Ƥϡ��ʲ�����:
`binary matrix`, `binary general`��

`index` ������ɤϡ��ե�����ե����‫ޥ‬åȤ� 1 �ĤΥե�����ˤĤ� 1 ��


�ζ��������ʤ����ᡢ��� ‫��ݡ‬Ȥ�������`every` �� `using` �ե��륿
�ϥ��‫��ݡ‬Ȥ�������`using` �ϡ��ǡ��������������� 3 ���Ȥηd��ɤ ��
�����Τ �� � Ư�������
^ <a href="http://www.gnuplot.info/demo/binary.html">
�Х��ʥ�ե������ splot �Υǥ⡣
^ </a>
4 general
?commands plot binary general
?commands splot binary general
?plot binary general
?splot binary general
?datafile binary general
?data binary general
?binary general
������� `binary` ��ñ�Ȥǻ���� ���� ϡ�����ʳʻҤ��
� �. �����ɸ
�����ȡ��Ƴʻ��$Ǥ���ξ ���� ĥХ��ʥ�ǡ����Ǥ�� 뤳 � Ȥ����� (��
������: `binary matrix`)��¾�η|��ΥХ��ʥ�ǡ����ξ��ϡ����Υǡ���
�η|����������ɲå�����ɤ����� � ɬ�‫�����פ����� ޤ‬ǰ� ʤ �� 顢��
ν�����ɲå���� � �ɤνν��ñǤϤ��� ��� � � � �Ǥ� general ��
�����
� ��
���ʥ �����
���� ɤϡ��
ä ����
� ¿̤ Υǡ gnuplot � �� ʥ��‫��ץ‬ ��� � �
��˼
��
ͭ � äƤ Ѥ Ǥ ���

�� :
plot '<file_name>' {binary <binary list>} ...
splot '<file_name>' {binary <binary list>} ...

general � Х� �ϡ��
ʥ � |� ե� ��� 빽¤�˴ ‫ �˴������ؤ‬Ϣ � � � �� ��� ɡ�
���ʤ�� `array`, `record`, `format`, `filetype`
ʤɤ � � <binary list>
���Ϳ��� 뤳�Ȥ���� ˤʤ � ‫ �������ޤ‬ʳ ��� ξ �ϡ�� � � �� � matrix
�ʥ�
��ȸ��ʤ��
| ‫˴ؤܺ�( ���ޤ‬٤��Ƥϡ ��
����
ʲ� � matrix` � )
: `binary

��� � :�

��Ǥ� p �
ʥ�ǡ�
����
��
ϡ��
gnuplotǤ�ɤ�

ˡ Х Ѥ Υ�β 
`plot` �� `splot` �ǤϾ���� �� � � � � �‫��������ޤ‬ΰ�̣� ΰ�� ս�ϡ� � � ��
���Ǥ� gnuplot��ϡ�
Ǥ�
��� ΰ뤤 � �ξ��� ѹ � �-� � � ��
��� � ǽ ‫���ޤ‬

gnuplot �ϡ�� 㤨�� PNG ���� �� Τ ˴�� t ˼� �� ʵ� �� Ҥ � � � � ɸ� � ʥŪ �� Х


�� ե����ɤ
� � ��� | ߹����� ˡ� � �� �Ĥ��äΤƤ � � ‫������ޤ‬ΰ���ϡ����� ò
�̤� `show datafile binary` ���� Ϥ ��뤳�Ȥǻ � � Ȥ Ǥ � � ‫��������ޤ‬ʳ � � �
��
ˤ ��Ƥϡ���ǰ��
Τ Ĥ��ʥ�ǡ���� ϥ Х ϥ ƥ � � � � ȥ ǡ �����Ʊ�ͤ� ˹ͤ� 뤳
�Ȥ��Ǥ�� ‫������ޤ‬$ˤϡ� using`
` �����
� ������� j � ���
�� � � � � � � �� � ‫���ޤ‬
`format` ʸ � � � � � � � �� ʤ�� ���ä 硢 gnuplot �� ϥ� Хʥ
��� � �ͤ ο
`<using list>` ��Ϳ������������ �ֹ������� ‫����ޤ‬㤨�С�
`using 1:3` �Ȥ���� � ǡ�
3����ɤ
� ĥ� ���졢 2 ��� ‫ܤ‬Τ��̵Τ� 뤷
� ‫������ޤ‬r �� �using � � � �ˤϥǥ���Ȥ�
� � ե �꤬����� ‫����ޤ‬㤨��
`with image` � ϥ ǥ � `using
� � Ȥ �ե1` w i�t h rgbimage`
` � � � ���ǥ��
ϥե
�� `using 1:2:3` ��Ȥ�� ‫���ޤ‬
4 array
?binary array
���Х ʥ� ե � � � � � �ɸ�‫�����ޤ ��� � � � � � ���������ܤ‬ɸ�� gnuplot � � 8
.���Ƥ��� ‫��������ޤ‬μ�����ɽ������� �� ʤ��� ����Ф ‫����ޤ‬㤨��
`array=(10,20)` �ϡ� 2� ����
ǽ����� Ǻ μ� (x)ˤ � � � �� � ‫ܤ‬μ�
10 2 !
���� (y) � �
ˤ ɸ�20
� �ܲ��ǡ��������
$ 뤳�Ȥ � �� � � � ‫����ޤ‬ե������
��
� λ ‫ޤ‬ǥǡ������ ³ ���� �Ȥ����
��
ΤȤ� �Ȥ�� � Ȥ �ͤ
���� ‫����ޤ‬ǡ��������� 1 ��

���ϡ����
��Ͼ�
�Ǥ�� å ά ‫���ޤ‬ʣ� � Υ ǡ � � � � Υ � � � � � � � � � � ʬ Υ � � � � Τ ˡ �
������Ȥ����Ȥ�� Ǥ�� ‫����ޤ‬㤨�� `array=25:35` �� 2 � Ĥ �
1 ���ǡ�
����� ե � � � � ����ˤ��뤳�Ȥ � �� � � � ‫���ޤ‬
��� : gnuplot � ������С �
4.2Ǥ � �
� � Ȥ �
array=(128,128) � �
�Ϥ ʤ � r �r�a ay = 1 2 8 x128
��Ͽ � 侩����Ƥ�� ‫���ޤ‬
4 record
?binary record
���
���� Υ  � ɤ � `array`

��
��Ʊ� � �
ǡ�Ʊ���� �ǽ�� ‫���������ޤ‬
`record` �� gnuplot �˺�ɸ�����ư �
.���� 8 ‫��ޤ‬
� �� � �ϡ���� ��
��� Τ �
��ɸ���
��ʥ�ǡ����
���

����˴Х ե � ���� Τ ���
‫�ޤ ޤ‬Ƥ����� � Τ Τ
�Ǥ���
Τ
4 skip
?binary skip
���
���� ����
Υ��ʥ������
� ɤ�
�ϡ
��� Х � Τ ե ‫��פ‬ǽ�ˤ��
Υ ‫���ޤ‬
å
� 㤨�С���� ե � Υ� � � 뤬�ǡ���� � �� � ΰ γ �֤ϰ�� p�� 1024 ��Ȥ Х ‫ �� إ‬å$� Υ
�� Ĥ�� ʾ��ˤϡ��ʲ��Τ �� ˤ������Ȼ ‫��פ‬Ǥ�� 礦:
plot '<file_name>' binary skip=1024 ...
�ե � � � � �� ʣ �� 쥳 Υ � � � ɤ� � � � � � 硢���Τ�� 줾 � � � �Ф�����Ƭ�
�� Τ 餷
� ֤������ 뤳�Ȥ � � Ǥ � � ‫����ޤ‬㤨�С�� � ǽ 쥳 Υ � � � ɤ � p � � 512 � Х � � Ȥ �
����� ‫���ܤ‬ å 3�‫ ���ܡ‬2���‫פ‬Υ 쥳 � � � ɤ� p � � 256 � Х � � Ȥ � ��åȤ ‫����פ‬
�ϰʲ�� �� Τ ˤ�� ‫�ޤ‬:
plot '<file_name> binary record=356:356:356 skip=512:256:256 ...
4 format
?binary format
�ǥ ե �Х��ʥ�

��Ȥϡ�
Υ �
:��ư���� | ��
Ǥ�
ñ�
���
� � � (float)
� � ġ
����������� ��뤿 � � ˡ�� � � �� � � Υ ѿ � � � � � �
format ˴ ٤ܺ���‫ؤ‬ʾ�
������Ǥ�� ‫����ޤ‬㤨�� `format="%uchar%int%float"` �ϡ�� �� ǽ using
��Ȥ������ʤ�ʸ��� ѿ � (unsigned char) �� � � � ‫�������ܤ‬Ĥ� 2 0
�� (int) �� ��3 ‫����ܤ‬ñ:����ư���� (float) ��� � �� Ƥ�� ‫⤷����ޤ‬
����������
�������� Ҥ ο 꾮 � � � � � � �ϡ��������
Ĥ ѿ � � � � � ϰ ���
���
Τ˺ Ǹ��Ϳ
d����� ѿ � � � � �������� ‫���ޤ‬

����� `using` � ��Ʊ�


* ͡� ` �
� �
ɤ �� ʸ ` �ΤƤ������
Ĥ �˻ �� �
���Ȥ�Ǥ�� ‫ ���֤����������ޤ‬ե�����ɤ ‫ؤ‬β�����ˤ� ư� ä��ۤη��� �֤��
���� ��뤳�Ȥ � Ǥ � � ‫����ޤ‬㤨�С�f `o r mat="%*2int%3float"` �ϡ� � �3 Ĥ
��ǡ������ɤ�
¿ �� ˡ ��
ǡ�����ɤ
�p � 2 0 Ĥ ‫������ޤ‬ѤǤ ����
�ΤƤ � ѿ
�����
���ϡ�s ΰ h o w ` datafile binary datasizes` ��Ǹ � 뤳�Ȥ � � Ǥ � � ‫���ޤ‬
�����ϡ���� 줾 � � Υ���Ƥ�� ѥ � � ��Х�
ˤȥ� ������ȤȤ�˥
ä Υ ‫����ޥ‬
��
�����
¸ �� ѿ �̾� Υ롼 � ‫פ‬ȡ� �‫����ޥ‬ ˰�� ¸ � � ʤ � � ѿ��� Υ � 롼 � ‫�פ‬ʬ����
�Ƥ�� ‫���ޤ‬
4 endian
?binary endian
�ե � �Х�
� �ʥ�ǡ����
�����ǥ�����ϡ�
Υ n ��
u Υ � p ưl o � t �g ‫�ץ‬åȥ�
�� 
����
���ǥ�����Ȥϰ
Υ ۤʤ�����ɤ����� ‫��������ޤ‬ Ĥ������
λ
gnuplot ��� ��Ȥ�ɤХ ��Τ ˰�� � � � � �
)� � Ǥ � � ‫����ޤ‬ 㤨��
`endian=little` �ϡ����ʥ�Х �
Ӥ

եХȤ

� �
�����
���� �� � Υ ¤ 夫��
��� � � � � �¤�Ǥ���ȸ�� ʤ��� ‫����ޤ������ץ‬ϰʲ��Τ�Τ��Ȥ��‫���ޤ‬

little: ������� 夫 � � � � � � ʷ���¤�


big: ��� ʷ 夫 � � ���
� � � ʷ���¤�
default: compiler ��Ʊ������ǥ�����ȸ�� ʤ�
swap (swab): ����ǥ������� ѹ � � �
��
���
��� �
( �� ʤ �� �
�Ȥ
Ƥ ä ߤƤ��
��� $ )

gnuplot �ϡ����� ѥ � � � � ˥ � �‫���ץ‬ � ��� ��


� � �� � Ƥ���� m Сi d "d l e "
(��
"pdp") ����ǥ�����⥵ �‫��ݡ‬ȤǤ � � ‫���ޤ‬
4 filetype
?binary filetype
?filetype
gnuplot �ϡ������
�ɸ��
�ʥ ��ʥ� �

ˤ Ĥ�
Ƥ�
ɬ� Ū Х ե����� | ‫פ‬ʾ����
Ĥ
����
ե Υ� � � 뤫 � � ȴ�� � � Ф���Ȥ��Ǥ�� ‫����ޤ‬㤨�� "format=edf" �� ESRF ��
�!��
å �ե�
� � �ե� �� |� � � Υ � Ȥ � � � � ɤ߹��‫ޤ����� � ߥ��ݡ‬ ߤ��Ȥ � � Ƥ � � � �
������
��ˤ
��Ƥϡ� |s h Ĥo w `datafile binary � �
���Ƥ
��� Ǹ �
filetypes` $

���̤ �
ʥ�Ȥ���
ե � � ��� | �
�`auto`
� � � ꡢ��� ξ�� gnuplot ��ʥ�� ϥ Х
������
� �Ҥ������ γ ĥ ‫��ݡ‬Ȥ � � � Ƥ � � � | � � � ɸ � � Ū � ʳ � ĥ � Ҥ Ǥ � � 뤫 � � e�
�����
å ‫���ޤ‬

��� ‫�ޥ‬ɥ ���� ���


ɤϥե � � � � 뤫 � � � ɤ���������
˻Ȥ� ���� Τ
�졢 � ե����뤫 � � � ɤ������� ϥ ǥ � �� �� ���
Ȥ� ��
��� ����
� � � � ��
�� ե ‫����ޤ‬ʲ�� � � �
:

`set datafile binary`��


5 avs
?binary filetype avs
?filetype avs
?avs
`avs` �ϡ���ư
��ǧ����������
Ū �� ���� Ф���
��ʥ� Х��� ե � � � � � η
��
Ǥ���Ĥ V S � �ʥ
A��
�� ‫ޥ‬åȤǡ � � � � ‫�� � � � � ��ץ‬
ñ ե���� � ֤ Ǥ��Ȥ�
����
˺Ǥ����Ƥ��
Τ Ŭ ‫�������ޤ‬ϡ� 2 � Ĥlong (xwidth �
� �ȡ�
ywidth)
���
����ԥ�������
θ �³ � �� . ꡢ���γƥԥ������
�� 4 ��Ȥ���
�� Х .‫���ޤ‬
5 edf
?binary filetype edf
?filetype edf
?edf
?filetype ehf
?ehf
`edf` �ϡ���ư
��ǧ����������
Ū �� ����
���
��ʥ� Х��� ե � � � � � η
��
Ǥ���Ĥ D F E�
� �
��
ǡ ESRF
� ե���� ‫ޥ‬å� (ESRF Data Format) ���̣����
���ơ������ edf � ��� � ��|� ehf ‫��ݡ‬Ȥ ��� Ƥ � � ‫��( �ޤ‬Ԥ� ESRF
ξη
Header Format)������
�� λ Ѥ ˴‫�������ؤ���ܤ‬ϰʲ��Ǹ��Ĥ���Ǥ�� 礦:

http://www.edfplus.info/specs
5 png
?binary filetype png
?binary filetype gif
?binary filetype jpeg
?filetype png
?filetype gif
?filetype jpeg
gnuplot �� png/gif/jpeg ����� Ѥ � libgd � ��֥ ���� Ȥ � � 褦 �˥�� ����
��� 뤵 � � Ƥ���� 硢�����β��� �����ʥ�
| Х ե � � � �� Ȥ����ɤ߹��ळ
�Ȥ�Ǥ�� ‫����ޤ‬ʲ�� Τ 褦 ��� <��Ūʥ�� ‫��ޥ‬
plot 'file.png' binary filetype=png
��Ȥ����Ȥ� Ǥ�� ‫� � � ����������ޤ‬ʲ�� Τ 褦 ����� ��ơ��� �Ҥ��ĥ 鼫ư
Ū�˲���
���ư
��ǧ�������
| Ū 뤳 � Ȥ � Ǥ � � ‫���ޤ‬
set datafile binary filetype=auto
4 keywords
?binary keywords
�ʲ��
����� Υ � 
� (keyword) � ʥ� � �ϡ եХ���� 뤫 � � � ɸ�� .����Ȥ�
8
�ˤ
�� Τ Ŭ Ѥ � � �‫����ޤ‬Ĥ ‫ޤ‬ꡢ binary array, matrix, image �ġ������Ǥ� θ
����� x,y,z�� �‫��� �� ֤ ؤ‬
� ΰ �֤ ��
)����� �ΤǤ��� Τ Τ
5 scan
?binary keywords scan
?scan
gnuplot �����ʥ� Х ե � � � � ��ɤ 褦���������� Τ 뤫 Ȥ � � � � � � Ȥ ȼ º ‫���ݤ‬
��Ǹ���� 뼴 � � � � �Ȥδ ֤δ ‫�����ط‬ ��
ˤ�Ĥ �Ƥ� ¿ κ � ������ $‫�����ޤ‬
����
κ � ��" ˤϡ�
nuplot
g ��� �ʥ�������
��
���ϥХ� � ե " // ‫�ޤ‬
��
�� �®���
� / ٤����������ȹȹ
/ � ��Ȥ����Ǥ�� �� � � � �Υ����  � ɤ �
gnuplot �ˡ�������������

��ɤ � ɸ
�� �
Ƥ�
r� � � Τ ˳(x/y/z) κ �
������ ��2 ��������‫��� ޤ‬ ġ 3 ���‫�� ޤ‬ʸ���� Ĥ Ӥ�ɽ�������

�ʸ ¤ ǽ
���
ˡ�����ʸ����ˡ�
$ � � � 3 ‫�ܤ‬ʸ� � �� � � б � � � � ‫����ޤ‬㤨�С�
`scan=yx` �ϡ��Ǥ�
���� ® � � � ( �����
����̤�
� �� �$ j �) y б ®
�� (� ��
�� j �����)���� � x 뤳б � Ȥ � �� � � � ‫���ޤ‬

��r ⡼ � ɤ � `plot`�� ξ ˤ���


硢���� ��
x y 2 �ʸ���Ȥ����Ȥ�
Ĥ
�Ǥ���
s p l` o t `�
�Ƥ�
� Ф x, y,�

Ȥ
�z���Ȥ��Ǥ��
ʸ� � � 3 Ĥ ‫���ޤ‬

�����Ƥ ˴‫ ؤ‬ϡ �� ��Ƥ ��



̤ ��
��
����/�/ ľ ‫ ���ؤ‬Τ ߤ�)�����������
¤
�̤ˤ��� ‫��ޤ‬ � �������
���� ͳ�ǡ������ɸ�
��Ƥ��ơ�������
���ɸ�� � ľ� �� �x, �
y, z � �, � � t �
( � d r, z � )
�ʤ
Ƥ�� ä ‫���ޤ‬
5 transpose
?binary keywords transpose
?transpose
`scan=yx`��� ‫` ���ޤ‬scan=yxz` ��Ʊ���Ǥ������ʤ� ��������ϻ����� a
�Ԥ
ԥ�����
Υ ‫ �� ؤ‬γ����Ƥ˱ƶ
�Ϳ��� d ‫���ޤ‬ɽ� � � � � � ‫֤� � � � �˲ݤ‬ž�����
�ϡ��ʲ�� 褦Τ�ˤ��Ƥ ߤƤ�� ��� $ :
plot 'imagefile' binary filetype=auto flipx rotate=90deg with rgbimage
5 dx, dy, dz
?binary keywords dx
?binary keywords dy
?dx
?dy
gnuplot ����ɸ�� ����� 8
. 硢���δ֤Ϥ ֳ � � � � Υ � � � �  � ɤ ǻ � � ��줿
��
���� Τ Ѥ � � �‫����ޤ‬㤨�� `dx=10 dy=20` �� x ���� 10� ��� y 20
� δֳ֤�ɸ�ܲ���� 줿���Ȥ � �� � � � ‫`���ޤ‬dy` �� `dx` �� Ȥ�
�ʤ���
� л ‫�ޤ‬
��Ʊ�ͤ � `dz` � � �
Ȥ� �
ʤ�
��
��
`dy` л � �⤷�
‫��ޤ‬ ��������
ǡ���� μ �

������� �ɤ
�������� μ � � � ��� � �Ĥ�������
μ ֳ֤ϡ����
δ ��줿
�Ǥ� ⤤ ����
Ʊ���ͤ
� ������
Τ Τ Ѥ� � � ‫����ޤ‬㤨�в��� ե � � � �뤫���ɤ �
��� ‫ޤ‬졢`dx=3.5` � Τ�����줿���硢 gnuplot �� x ��� ֳ֤� yδ ��
� δֳ֤� 3.5 ���� Ѥ � �‫���ޤ‬

�ʲ��
���� Υ .�ˤ��

� �
ɤ�� � ɸ�� 8 Τ ���‫ޤ‬Ѥ������������
Ŭ ʲ��
ΤΤ��
matrix ���
Х ʥ� ե � � � � � ˤ� Ȥ��‫���ޤ‬
5 flipx, flipy, flipz
?binary keywords flipx
?flipx
?flipy
?flipz
���
Х ʥ� ǡ ���� ե � � � � � ������� ���
Ȱ � � � gnuplot
� � ‫��פ‬ʤ�����
����� ‫ޤ‬ˤ���‫��������ޤ‬Υ����  � ɤ ϡ ����줾 � � x, y, z ���
ǡ��� Υ
�������� ո � � � � ˤ��‫���ޤ‬
5 origin
?binary keywords origin
?binary origin
gnuplot ��
��ž (transpose) �ȿ ž��
(flip)�ˤ�
�ƺ�ɸ��
��
.�� 8 硢
�������
������
���
ʤ�
ˤ κ $ 褦�$ˤ��‫������ޤ‬ʤ� ��ǡ�������
a �֤ ��ž
žԤ ι ʤ� 줿���ľ���ɸ� Ϥ � � � 1 � ‫ݸ‬¤���� 褦�ˤ��‫���ޤ‬
ȿ�

������� �
��դ�����Τ ¾ ξ �֤ �������� 硢`origin` ����� ���  � ɤ ǻ
�������� gnuplot �
���
������ κ 碌�‫������ޤ‬λ
$ ���ϡ� `` �
p l o t �
�� 2 �� κ ɸ���ȡ�
Ĥ s p l o t `� Ǥ � �
��
Ȥ�ɸ
���

κ 3 Ĥ ������
��Ƥ�� $ 㤨
�� `origin=(100,100):(100,200)` �ϡ��� Υ ե � �Ĥ � � � ˴ 2 ��‫� ޤޤ‬Υ� Ĥ
�������
������ǡ�� �
��
���

��
Ǥ���
� � � 2 � r � Ф � 2
`origin=(0,0,3.5)` �� ���ȡ������ ��
�Ǥ��
���
�3 � Ѥ r λ
5 center
?binary keywords center
?keywords center
?center
`origin` �Ȼ�Ƥ�� ‫��������ޤ‬Υ����  � ɤ ϡ ��������� � � � �Υ����  � �
���
ǻ �� �� $ˤʤ�褦�����֤ ��� ‫����ޤ‬㤨�� `center=(0,0)` � Τ褦�ˤ���
��������
������� Υ ��� `Inf`Ȥ � � � �center Τ ‫ �����ޤ‬Ѥ Ŭ
5 rotate
?binary keywords rotate
?keywords rotate
?rotate
ž�� (transpose) ��ȿ (flip)
ž � � ‫�ޥ‬ɤϺ � ɸ � � 8 . � Ⱥ � ɸ � � � � � � � ˤ �
���
��� ν ��
�Ϳ�
Ƥ���
- ‫˴ؤ‬٤��������������‫��ޤ‬봰 t�� ��ϡ�) �
��
2
���
β ž �� � Ҥ ����� žѤ ٥��ȥ��Ϳ���
ѥ 뤳 � Ȥˤ� � Ԥ ʤ � � � � Ȥ � � � ǽ � ˤ �
�� ‫���ޤ‬

�����  � � `rotate`�� , ��
ǡ� �
`plot`, `splot`�
���
���
̤�
�� � � ξ 2 Ф Ŭ
���� ‫�����ޤ‬ž�Ϻ�ɸʿ�̤
� �� � 5 γ‫˴ؤ‬٤��ƹԤʤ��‫���ޤ‬
��� ٤ϡ���� � � �ñ�̤ Ǥ �����
i �
p� � � �ܿ� Ȥ � � Ƥ Υ �� � � �Ǥ�ɽ
degrees
���Ǥ�� ‫����ޤ‬㤨�С�r `o t ate=1.5708`, `rotate=0.5pi`, `rotate=90deg` ��
��� ٤�Ʊ ����̣
���� � Ǥ

`origin` ����� ��줿����� 硢 ž��ʿ� ˺������


���
ư
p��
�� $ ˤ��ƹ�
��
�ʤ�� ‫�������ޤ‬ʳ � �Ǥϲ� ž ���� � � � � 濴 (`center`) �˴‫�� �� ؤ‬ƹԤʤ���
����
5 perpendicular
?binary keywords perpendicular
?perpendicular
`splot` �˴‫�� �� ؤ‬Ʋ�ž�٥��ȥ�����꤬���� ٥��ȥ 3��
������
�� ɽ� �
ο Ĥ
�Ȥ��� ��뤳 � ȤǼ � � � � Ƥ � � ơ � � � � Υ ٥��ȥ 2��
� �����
xy ʿ� �̤���
���Ƹ���� դ � � �줿 ˡ�� ٥��(perpendicular)
ȥ� ����
� ��ɽ Ƥ ‫�����ޤ‬d�

ǥ �ե
Υ � � � Ȥ � (0,0,1)� �Ǥ�
�o t a t e � r� �

��� � �
perpendicular ξ
��� 뤳 � Ȥˤ� ꡢ 3 ����������̵ � ����� ‫إ‬ǡ�������� դ � � � �뤳 � Ȥ�
�ʤ� ‫���ޤ‬

�‫��ޤ‬ǽ�� 2 � ������
��Ԥʤ� β ž 졢���μ��� 3 � ����
���Ԥʤ�� β ž ‫���ޤ‬
� Ĥ‫ޤ‬ꡢ R' ���ˤ��
� 2 xѤ 2 �
� �
��Ȥ��� β ž � � P � � (0,0,1)
(xp,yp,zp) �‫�ػ‬Ҹ� � � �� ˲ � ž
����� '3� x 3 � ���
Ȥ� � R ι � � ʬ
�� � �
����Ȥ��ƻ�� 3,3 ��
���
�ʬ.ʬ �
�� Ǥ � 1 � � � Ǥ ¾ �0 . 褦�ʹ��� (�Ĥ�
�� z � �
���
���
��� �
����β� �
Ѵ���ɽ������ˤ��
� žȤ � ) С ‫�����ط‬
v' = P R v �Ȥʤ� ‫��������ޤ‬ǡ� v �ǡ���� ϥ ե � � � �뤫���ɤ߹��‫ޤ‬줿
3 x 1 ��ΰ �� ֥ ٥��3 ȥ�����
�Ǥ� �ǡ ������ե������ ǤΥ �
��ʤ Ū Τ ʤ
�ϡ�����
�ʥ Ū 롼�� 뤬 Ŭ� Ѥ � � � � � ǡ3��
��ȸ��ʤ���

������ Υ ‫��( �ޤ‬
���
��̾��С �
z�
ɸ�� �� Ȥ � 0 졢 xy ʿ����� 2 � ��ǡ����ȸ��ʤ���
‫��)�ޤ‬
C 3 �ǡ��� (data)
3 data
?commands plot datafile
?plot datafile
?data-file
?datafile
?data
?file
�ե ����
� � � �� Ǽ 줿 Υ�� �ʥǡ����ϡ�
Ū p l o t `� `� � ‫�ޥ‬ɥ �� �� ǡ�����
�ǡ���� ե � � � � �̾ (<datafile>) �
������ � ‫�����ޤ‬Ű
ñ �����ǰ
��� Ϥ � ǻ
��� 뤳 � Ȥˤ� ä �ɽ � � � Ǥ � � ‫���ޤ‬

�� :
plot '<file_name>' {binary <binary list>}
{{nonuniform} matrix}
{index <index list> | index "<name>"}
{every <every list>}
{skip <number-of-lines>}
{using <using list>}
{smooth <option>}
{bins <options>}
{volatile} {noautoscale}

��
�Ҥ�5 `binary`, `index`, `every`, `skip`, `using`, `bins`, `smooth`
�ϡ���� 줾 � � � ʬ�������
�� $ ‫�����ޤ‬ñ�˸ ��
$ ȡb�i n a ` r y` � ǡ�
ϥ������
���ʥ� ե � � � �뤫����$Ǥ��� 褦�index` ˤ���` � ϥ ‫�ޥ‬eǡ������� ե � � �
� 뤫��ɤΥǡ � � � � � � � � ɽ � � � � � � Τ � � � j � ӡ � ` e very` � � � � � � Ĥ Υ ǡ � � � � � � �
����ɤ��
�ɽ������

����
ӡ $ u s ��
ɤ�
�i
�Ԥ� �
Τ n g ϰ`j �` ᤹ � ��
Τ�
���� �� �������`smooth` ���� ���� ñ � ֤ ȶ���Ԥ��
� ‫`���ޤ‬bins` �ϸ�
��������
� ˱ � 褦����ζ�
$x � ֤ ˻�ʬ�����ƶ�� ֤ ˰�Ĥ$ � � � � � � � �� � � �
��� ‫���ޤ‬
`splot` ��� � ��
� ��
Ȥ � � ‫`�����ޤ‬smooth` ���‫����ץ‬ϥ� � ‫��ݡ‬Ȥ � � �
���‫���ޤ‬

������ � �`noautoscale`
� �
�ϡư ����ϰϤ �
˼Ū ��� �� � 뵡 ǽ�����
p
�� p� p
������ˡ������
� � ˤ � �
r �
�.�ǡ���� $ ϡ

Ƥ
� ����뤵 �
���Ĥ � � � (��
ư��ܵ� ǽ� η���о ‫� ����ݤ‬ ) ��� ˤ� � ‫���ޤ‬

�ƥ����ȥǡ����ե �
���� :

�ǡ����ե � �����ϡ���Ԥˤ
� ǡΥ �
Ĥ��ʤ��Ȥ�� �


Ĥ ‫�ޤ‬ɬ�‫������פ‬ $
�� (`using` � ϰ� ΥԤ����
ǡ Ĥ � ‫���ݥ‬Ȥ � j �֤ ���
��� Ȥ � � Ǥ � � ‫��)�ޤ‬# ``
(VMS �Ǥ� `!`) �Ϥ ‫�ޤ‬Ԥϡ������ȤȤ��ư���
ǻ 졢��뤵 � � ‫����ޤ‬ƥ�
�����
ϡ x ,$�y ) ( � �
Ȥ
�ɽ��� ‫������ޤ‬顼� С����‫��ޤ����ޤ‬ɽ���ե � � 顼� �
���� `plot` � �

Ǥ( �
�ʲ���`errorbars`,
: ϡ
`errorlines`) � �
ǡ�
ƥ�
��
� � $
(x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh),
(x,y,xlow,xhigh,ylow,yhigh) � �Τ ��� 줫 � � �����‫���ޤ‬

��ɤ�ʾ��Ǥ⡢
� ��
λ ��Ҥ� `using` � ‫�����ץ‬ ��ä ������Ƥ�
ˤ� � � � � � ��
�ʤ���
� ƹ С �ǡ����ե
� ����� Ԥγ �ϡ� �� ȥ� � ‫ ��( ���ڡ‬Ĥ‫���ޤ‬ʣ
‫�ۥ‬
ο
��
� ζ �ƶ�

��
) �ˤ � �
�ä ‫��ڤ‬Ƥ��� � ɬ ‫������פ�����ޤ‬Υ ‫ ��ۥ‬ȥ� � �
�����ϡ��ƹԤ���
� �
‫����ڤ�ޤ‬
ι �˶‫������ܤ‬$
���� �����
� Ű ����ǰϤ ‫ޤ‬줿 � ‫ۥ‬磻
�ȥ��‫ �������ڡ‬δ���Ǥ�� � 뤵� 졢� � äƼ � � Τ �� ʥǡ����Ԥ� 3 � �
� �
���ʤ��� ‫�ޤ‬:
1.0 "second column" 3.0

�ǡ����ϡ�� ‫����ؿ‬e, E ��ʸ���� Ĥ ���‫�ؿ‬ɽ� � � ǽ


ǽ�Ƥ
ǽ
�ǽ�� � Ƥ
� � � �� ‫�ޤ‬
��� ��‫` ��ޥ‬set datafile fortran`
o r ����ʾ��ϡ�
t r�afn � p p ‫����ؿ‬ λ
p
�� d, D, q, Q � �Ȥ��‫���ޤ‬

ɬ�‫פ‬Ǥ���
Ϥ
� ��
�Τ 0 Ĥ �� (y � � �ߤ�
�� ) ⤷�
Ǥ���� x�� �
��

ά�
Τ �줿
�顢`gnuplot` �Ϥ���� 0 �Ϥ 0 �‫�� �ޤ‬Ȥ����Ѱդ
ǻ ��
���� � � �� ��
�� �‫���ޤ‬

�ǡ����ե �
����ˤ����ơ� ��� ��� �
(����Ȳ��ԡ���ʳ���ʸ��� ‫�ޤޤ‬
���� )� ‫פ‬Ǥ���

Ͻ�

1 �Ԥ Υ��� Ԥϡ�`plot` ����Ϣ³��‫� ;�ؼ����ޤ‬ ��Ԥˤ�äƶ�


� ��
�‫�ڤ‬줿�$���Ƿ�Ф�뤳�ȤϤ��� ‫( ���ޤ‬line style �ǽ� �Ƥ����
ǽ ��
ǽ � � �ǽ
��ˤ�)��

� ֤ ζ��‫� �ڤ‬
2 �ԤΥ��� Ԥϡ�����Υǡ������� ‫����ޤ‬ʲ�����:
� ��
`index`��

�⤷ autoscale �ξ��� ֤ Ǥ���� ( �ʲ �����: `set autoscale`) ������t �Ƥ �


9� ��� �����
�ǡ����‫���ݥ‬Ȥ�‫ �˼���ޤ‬ưŪ� ˰� � Ф� �� ơ����꤬�
�ʤ��t�Ƥ���9�꤬�� ‫�������ޡ�������ޤ‬ϡ�2 �Ĥη���������‫�ޤ‬:
i) `splot` �Ǥϡ�����γѤ�����γѤ�� ��‫��פ‬Ƥ��ʤ����Ȥ�����‫�����ޤ‬

�ξ���Ĥ���Ͻ �
���뤳�ȤϤ��� ‫���ޤ‬ii) 2 ����μ��ǤΡ�Ʊ�� x
���ϰϤΥǡ�����ɽ���κ ‫ ⤷��ݡ‬x2 �μ����Ф�����9�꤬� ���� � Ƥ��ʤ���
��ϡ�x ��ɸ�����äƤ��ʤ����Ȥ�����‫ ��������ޤ‬x �� (x1)
��t�Ƥ���
9��ˤ ‫ޤ‬Ǽ�ưŪ���Ф� ��� Τ��Ф���x2 ���Ϥ����ǤϤʤ�����Ǥ���
������Ǥ������� � � 뤳�Ȥ��Ǥ�� ‫�ޤ‬:

reset; plot '-', '-' axes x2y1


1 1
19 19
e
1 1
19 19
e

������ˤϡ��autoscale`
��
`set �� ‫�ޥ‬ɤ� `fixmin`/`fixmax` ���‫�ץ‬
����Ȥ����Ȥ��Ǥ��‫�������ޤ‬ϡ�������9��ι�ߤ˹�����˼����ϰ�
��ưŪ�˳�ĥ���뵡 ǽ�����ˤ��‫���ޤ‬

��٥�κ�ɸ��ʸ�����ǡ����ե����뤫� �� ɤ߹��ळ� Ȥ��Ǥ��‫�( �ޤ‬ʲ���


��: `labels`)��
4 bins
?commands plot datafile bins
?plot datafile bins
?plot bins
?data-file bins
?datafile bins
?bins
�� �
�ʳ��
ε ��ǽ (����κ ٤�����ʬ�ϡ � � � � Υ � � ‫���ץ‬ � �����
� � � �Ǥ˸�����p
�ˤ�����ѹ������ǽ-������‫��)�ޤ‬
��:
plot 'DATA' using <XCOL> {:<YCOL>} bins{=<NBINS>}
{binrange [<LOW>:<HIGH>]} {binwidth=<width>}

`plot` ���‫�ޥ‬ɤ��Ф��륪� ‫` ����ץ‬bins` �ϡ��ǽ�˸��Υǡ�����x ��


���������Ĥ����Ĥ���Ȣ (�ӥ�) �˳����ơ�������Ȣ����Ĥ��
�Τ ߤ��r ��‫����ޤ‬
Ȣ�ο�Υ ǥ ե � � � � �� ϡ� Ƿ��
� samples`��‫���ޤ‬
`set
����� plot ���‫�ޥ‬ɤǥӥ�ο���<�Ū�˻����뤳�Ȥ��ѹ��Ǥ��‫���ޤ‬

binrange �������
ʤ��ȡ��ϰϤ� 'DATA' �����
�ξü
�� ��� ‫���ޤ‬

Ȣ����ϡ������ �� ϰϤ�Ȣ�ο�鼫 ưŪ�˷0�$��������� ����


NBINS-1 �‫ޤ‬Ǥ�Ȣ�˳����Ƥ ‫�ޤ‬:
BINWIDTH = (HIGH - LOW) / (NBINS-1)
xmin = LOW - BINWIDTH/2
xmax = HIGH + BINWIDTH/2
first bin holds points with (xmin <= x < xmin + BINWIDTH)
�ǽ��Ȣ�� (xmin <= x < xmin + BINWIDTH) ���ϰϤ��$��‫�ݻ‬
�Ǹ��Ȣ�� (xmax-BINWIDTH <= x < xman) ���ϰϤ��$��‫�ݻ‬
���$� i = floor(NBINS * (x-xmin)/(xmax-xmin)) �֤ �� Ȣ�˳�����

����Ȥ���ˡ��������Ȣ������뤳�Ȥ��ǽ�Ǥ������ξ�硢 Ȣ�ο�
(nbins) �ϡ��$��ϰ�t�Τˤ �� Ǿ����Ȣ�ο�Ȥʤ�‫���ޤ‬

Ȣ�ν��Ϥϡ��������$��r 衢�‫���ޤ‬ɽ�ˤ� � � ‫� ������ޤ‬gnuplot �����



��� Ȣ��������������ǽ ��Ȣ�� x ��ɸ�ν��Ϥ� x=LOW �Ǥ��ꡢ
x=xmin �ǤϤ���‫���ޤ‬

using ��ǰ�Ĥ���Τ ߤ����� ����


� � ���ƥ ǡ � � � � $ϡ� � � � � x � � ɸ�� �
�Ф���Ȣ�ι��� �
1�
� �$�� �� �
���
�� ‫ ���ܤ‬2���‫�����ޤ‬ ���ȡ�����Ȣ�ι��
��ͤ�ˤ
�2 ��� ‫����ܤ‬ɲä��� ‫�����ޤ‬äơ��ʲ��� 2 �Ĥ� plot ���‫�ޥ‬ɤ�
Ʊ � � � ˤ ʤ � ‫�ޤ‬:
plot 'DATA" using N bins=20
set samples 20
plot 'DATA' using (column(N)):(1)

��Ϣ�����r �� ����� ˴‫��ؤ‬Ƥϡ��ʲ�����: `smooth frequency`,


`smooth kdensity`��
4 every
?commands plot datafile every
?plot datafile every
?plot every
?data-file every
?datafile every
?every
������� ��`every` ϡ�� �
r �� ǡ�����ǡ�������� ���
Ū�˥���‫�ץ‬
� �� ��뤳�Ȥ��ǽ�ˤ��‫���ޤ‬

�����Ǥ� �� ֥ ‫���ݥ‬ȡ ‫פ‬ϥե�������� 1 �ĤιԤˤ�ä���d����ǡ�����


�����ǡ����Ρ֥ � å��‫פ‬ϡ�p��Υ֥ � å��ȶ�ԤǶ��‫���ڤ‬Ϣ³������
�ν���������뤳�ȤȤ��‫���ޤ‬

��:
plot 'file' every {<�‫������ݥ‬ʬ>}
{:{<�
֥ � å���ʬ>}
{:{<���ϥ ‫}>����ݥ‬
{:{<���ϥ֥ � å�>}
{:{<��λ�‫}>����ݥ‬
{:<��λ�֥ ��
å�>}}}}}


�r �� ǡ����‫���ݥ‬ Ȥϡ�<���ϥ ‫��< ���� >����ݥ‬λ�‫��< �ݥ����< �ޤ‬
�������ʬ> ����ä�j�ӡ��֥ �� å��� <���ϥ֥ � å�> ���� <��λ�֥ ��
å�>
�‫�� ֥�< �ޤ‬å���ʬ> ����ä�j�Ӥ ‫���ޤ‬

�ƥ֥ � å��κǽ�Υǡ����ϡ��ե�������κǽ�Υ֥ � å���Ʊ�����ˡ�


��0 �� ֡ ‫פ‬ȿ� ‫���ޤ‬

�‫�ץ‬åȤǤ��ʤ������‫�ޤ‬Ԥ⥫����Ȥ��뤳�Ȥ���դ��Ʋ�������

�����Ĥ��ο��Ͼ�ά�Ǥ��‫;�ޤ‬ � ��ʬ�Υǥե���Ȥ� 1 �����Ϥ��Ϻ �ǽ


��
�‫���ݥ‬Ȥ��ǽ�Υ֥ � å��������ƽ�λ���ϺǸ�
� �� Υ
� ‫���ݥ‬Ȥ��Ǹ�Υ֥ � �
���������‫`���ޤ‬every` �Υ��‫' ����ץ‬:' �ǽ����Τϵ��Ƥ��‫�ޤ‬
��`every` ������ʤ���С�t�ƤιԤ�t�ƤΥ ‫���ݥ‬Ȥ�‫�ץ‬åȤ��‫���ޤ‬

��:
every :::3::3 # 4 ���‫ܤ‬Υ֥ � å��$�j�Ӥ ‫( �ޤ‬0 �֤ ���
ǽ�)
every :::::9 # �ǽ�� 10 �֥ ��å���j�Ӥ ‫�ޤ‬
every 2:2 # 1 �Ĥ����Υ֥ � å��� 1 �Ĥ����Υ ‫���ݥ‬Ȥ�j��
# �‫�ޤ‬
every ::5::15 # ���줾� Υ֥�� å��ǥ ‫ �ޤ‬15 ���� 5 ����‫ݥ‬Ǥ�
# j�Ӥ ‫�ޤ‬

����:
^ <a href="http://www.gnuplot.info/demo/simple.html">
ñ��� plot �ǥ� (simple.dem)
^ </a>
,
^ <a href="http://www.gnuplot.info/demo/surface1.html">
������ѿ�⡼�ɤǤ� splot �ǥ�
^ </a>
,
^ <a href="http://www.gnuplot.info/demo/surface2.html">
����ѿ�⡼�ɤǤ� splot �ǥ�
^ </a>
��
C 4 �ǡ����ե�������� (example)
4 example datafile
?commands plot datafile example
?plot datafile example
?plot example
?datafile example
?data-file example
?example
������ϡ��ե����� "population.dat" ��Υǡ��������6����‫ޤ‬ˤ�����
�Ǥ���

pop(x) = 103*exp((1965-x)/10)
set xrange [1960:1990]
plot 'population.dat', pop(x)

�ե����� "population.dat" �ϼ��Τ ��ʥե�����Ǥ���

# Gnu population in Antarctica since 1965


1965 103
1970 55
1975 34
1980 24
1985 10

=skip
binary ����:

� # 2 �Ĥ� float ���� �j


�� (2 ���‫���ܤ‬ � ��
� )��������ɤ �Τơ�
� # ��Ĥ����� float � ���� ¤�Ĺ��³�� 1 �����ǡ����Ȥ��ƻ���
plot '<file_name>' binary format="%float%*float" using 1:2 with lines

# �ǡ����ե����뤫���ɸ��8.����Τ�ɬ�‫פ‬ʾ���٤ � �Ƥ��Υ ‫�إ‬


# �$˴‫�ޤ‬Ǥ��� EDF �ե�����ξ��
plot '<file_name>' binary filetype=edf with image
plot '<file_name>.edf' binary filetype=auto with image

# 3 �Ĥ����ʤ�ʸ��0���� (unsigned char) ��8�� RGB ����ο�


# .ʬ�Ȥ���j� � y � ����ȿž��������������ɸʿ� �
ѹ�
��� ���
# ���� (����� �� $ˤʤ��� )����ԥ�����δֳ֤������� ��� ե���
# ��ˤ� 2 �Ĥβ���‫�ޤޤ‬Ƥ��ơ����Τ��p�Ĥ� origin ��ʿ��
# ��ư���롣
plot '<file_name>' binary array=(512,1024):(1024,512) format='%uchar' \
dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage

# 4 �Ĥ���Υǡ�������ʤ ꡢ��ɸ�����ǡ����ե�����˴‫�ޤޤ‬Ƥ�
# �롣�ե������gnuplot ���¹Ԥ���Ƥ��� 륷 ƥ�Ȥϰ ۤʤ 륨� �
��
# �ǥ������8.����Ƥ��롣
splot '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3

# Ʊ����ϥե�����ǡ������ 1 ���‫ ���ܤ‬3 �‫ܤ‬Υ 쥳� �� ɤ ɤ���


å
splot '<file_name>' binary record=30:26 skip=360:348 endian=swap u 1:2:3

�ʲ�����: `binary matrix`��


4 index
?commands plot datafile index
?plot datafile index
?plot index
?data-file index
?datafile index
?index
������� ��`index` ϡ�� r��Ѥ�ʣ��Υǡ���������ĥե����뤫�顢��
��Υǡ��������� j� �뤳�Ȥ��ǽ�ˤ��‫���ޤ‬
��:
plot 'file' index { <m>{:<n>{:<p>}} | "<name>" }

�ǡ�������� 2 �Ԥζ����ʬΥ����Ƥ��‫`���ޤ‬index <m>` �� <m> ���‫ܤ‬ν�


��$���� ‫` ;�ޤ‬index <m>:<n>` �� <m> ���� <n> �‫ޤ‬ǤΥǡ��������
j� �
j��; `index <m>:<n>:<p>` �ϡ�<m>, <m>+<p>, <m>+2<p>, �ʤɡ�<p> ������
������j�������<n> �ǽ�λ��� ‫���ޤ‬C �8��ź�� (index) ���դ���˽�
����index 0 �Ϥ��Υե�����κǽ�Υǡ�������������‫����� ������ޤ‬
index �λ���ˤϥ��顼��å��������֤ ���� ‫<���ޤ‬p> ������ � <n> �����
�ˤ�����硢<p> ��Υǡ�����ե�����κǸ�‫��ޤ‬ɤ߹�� ߤ‫`���ޤ‬index` ��
�����ʤ����ϡ��ե�����Υǡ���t�Τ�ñ��Υǡ�������Ȥ����r �� �
����

��:
plot 'file' index 4:5

�ե�����γ��$��Ф��ơ����줬�‫���ޤޤ‬ ǡ�������� index � �ϡ�������


`column(-2)` �����ѤǤ��‫�������ޤ‬ϡ��ʲ��˸��� ��ˡ� � ��ե���

Υ ���
�θġ��Υǡ�������������������ˡ��� ��
� � � ‫�������ޤ‬ϡ��r��Ѥ� 1

�ĤΥǡ��������j� �� ����ʤ����� `index` ��� ‫�ޥ‬ɤ����Գ ��Ǥ�


�����ġ��Υǡ��������ۤʤ�°-������Ƥ������ˤϤȤƤ�����Ǥ���
�ʲ�����: `pseudocolumns`, `lc variable`��

��:
plot 'file' using 1:(column(-2)==4 ? $2 : NaN) # �ȤƤ��Գ 湥
plot 'file' using 1:2:(column(-2)) linecolor variable # �ȤƤ����� !

�`index '<name>'` �ϡ��ǡ��������p '<name>' ���


j��‫���ޤ‬p�ϥ�
˽ ���ȹԤ˽ ƥǡ�������˳����Ƥ ‫���������ޤ‬ʸ � � Ȥ � � � � ³ � � � � � �
˽
Υ � ����ȹԤ������ơ����
� � η��� <name> ����Ϥ ‫ޤ‬äƤ���С�
�����³���ǡ�������� <name> �Ȥ���p���Ĥ����ơ���������Ǥ���
����

��:
plot 'file' index 'Population'

<name> �ǻϤ ‫ޤ‬뤹�٤ƤΥ����Ȥ������³���ǡ��������p�ˤʤ 뤳� �


�����դ��Ƥ��$�����������뤿 �� ˡ��
� �� �'== Popolation ==' ��
�'[Population]' �ʤɤ��ˡ��j� � � ������Ǥ�� �� �

^ <p>�ʲ��� Web �‫ ������ڡ‬:�


^ <a href="http://www.gnuplot.info/demo/multimsh.html">
^ index ��Ȥä� splot �Υǥ�
^ </a></p>
4 skip
?plot datafile skip
?data-file skip
?datafile skip
?skip
������� ��`skip` ϡ�� ‫˥����ץ‬ƥ� � � � ȥǡ� � �� ե�����(� Х� � ʥ� ǡ�
�����Բ�) ����Ƭ�ο�Ԥ ��
� �� � å ‫��������פ����ޤ‬å ‫���פ‬Ԥϡ�`every` ��
����Կ �ɽ���Ǥ
ι �ˤϥ�����Ȥ�� ‫`���ޤ‬every ::N` �Ϥ��Υե�������
�Υǡ����Τ��٤ƤΥ֥ � å�����Ƭ� � ����
� å ‫`�����פ��ޤ‬skip N` �Ϥ��Υ�
���������Ƭ��ʬ�ιԤΤ ߤ�� � å ‫��פ‬뤳�Ȥ���դ��Ƥ��$������Х��ʥ�
��ǡ����ե������Ŭ�Ѥ����Ʊ�Υ ��� ‫����ץ‬ˤ� Ĥ �Ƥϡ��ʲ����� :
`binary skip`��
4 smooth
?commands plot datafile smooth
?plot datafile smooth
?plot smooth
?data-file smooth
?datafile smooth
?smooth
?splines
`gnuplot` �ϡ��ǡ������� � ֤ ȶ���Ԥ������ 롼 e� �� ��
Ū ʥ� Ĥ ����
�Ƥ��‫` �������ޤ‬smooth` ���‫��˥�������ץ‬롼�‫�����ײ‬Ƥ��‫������ޤ‬
����줿�ǡ������� ����
С �� �����ˤ����ƥǡ����� p���� � 뤫��
�‫���ޤ‬Ŭ�‫ڤ‬ʥ�ǥ�� fit ��Ȥ��Τ������Ǥ���� �

��:
smooth {unique | frequency | fnormal | cumulative | cnormal | bins
| kdensity {bandwidth}
| csplines | acsplines | mcsplines | bezier | sbezier
| unwrap}

`unique`, `frequency`, `fnormal`, `cumulatie`, `cnormal` �ϡ�x ��ɸ��


�‫���ؤ‬ƥǡ���� � ��
��Ȥ����
x ���� Ƥ � � � �
�ۤΤ������ͻҤ�
��� �� Ф ���ʬ
�r ��‫���ޤ‬

spline �ϡ�Bezeir �ϤΥ��‫����ץ‬ϡ��ǡ�����ü��ü����Ϣ³����η���


������‫������ޤ‬ζ���ϴ ‫���ؿ‬ դ�Ʊ����ˡ�����ʤ�d���� �x��ɸ

�˱褦 Ʊ����ζ�֤ ���Ȥ�j�� (�ʲ�����: `set samples`)���������$�
�ʬ�ǤĤʤ����Ȥ��r ��‫����ޤ‬ǡ�������� Ԥ�� � ������ ‫��ڤ‬Ƥ�
� � �
�����‫��ڤ‬Ƥ��ʤ����줾� ���� ʬ �
��
����³����Ȥ�� Ϣ ƤĤ ʤ �� ‫���ޤ‬
����������ˤĤʤ�����ʬƱ�Τϡ�����Ȥ����‫ڤ‬줿�ꡢ��Ϣ³�ˤʤä�
���뤫�⤷��‫���ޤ‬

`unwrap` �ϡ��ǡ������Ф�����ʥ����‫�פ‬ʤ����ˡ�2Ф0
��� � � ‫�ܤ‬
�ä������‫���ޤ‬
� �

� ֤ Ǥ���С������ϰϤϸ��Υǡ�������ǤϤʤ�����
�⤷ `autoscale` �ξ��
����������ǽ�Ū�ʶ�����Ф��Ʒ ‫���������ޤ‬

�⤷ `autoscale` �ξ��� ֤ Ǥʤ������ĥ��‫����� ��ץ‬


8.������� ���
���‫����� ��ץ‬ ɸ�ܲ�� ϡ���ϥǡ�����‫� ���ޤ‬x ���ϰϤȡ�
`set xrange` ����d�������� ����� ɸ���ϰϤζ�����ʬ�ξ�ǹԤʤ��
�‫���ޤ‬

�᤹᤹‫׵‬
᤹‫׵‬
᤹‫��׵‬ʿ� 경� ��
‫�����ץ‬Ŭ�Ѥ���ˤϥǡ������?���ʤ�������ϡ�
���顼��å�������ɽ������‫���ޤ‬

`smooth` ���‫����ץ‬ϡ��‫���ؿ‬r�ΤȤ��ˤ���뤵��‫���ޤ‬
5 acsplines
?commands plot datafile smooth acsplines
?plot datafile smooth acsplines
?data-file smooth acsplines
?datafile smooth acsplines
?plot smooth acsplines
?plot acsplines
?smooth acsplines
?acsplines
`acsplines` ���‫����ץ‬ϡּ�s�ʳ���ʥ��‫פ ��ץ‬ǥǡ��
� ������
�����ǡ����� x �˴‫���ؤ‬ñĴ�ˤ��줿�� (�ʲ�����: `smooth unique`)��1
�Ĥζ�����������Ĥ��� 3 ��¿�༰�ΰ���ʬ�ˤ���ʬŪ�˹����� . ‫���ޤ‬
������ 3 �����η���ϡ��ġ��Υǡ����$˹�����˵� � � � ‫�����ޤ‬
using ����ˤ�ä� 3 ���‫� ��ܤ‬ ��
����
��
� �� 줿��� ϡ������Ǹ
� ��
ġ��� $�
˽�
�ߤ�Ĥ��‫����ޤ‬ǥե���Ȥϡ��ʲ���� Ʊ ���Ǥ :
plot 'data-file' using 1:2:(1.0) smooth acsplines

-�~��Ť ߤ�����Ū����� ��ϡ������.����Τ˻Ȥ����ʬ�ο���


���‫�⤷����ޤ‬Ť ߤ���� ���
С��ġ��Υǡ����αƶd���� �� ʤ ꡢ������
���ζ���ϡ��٤��� Ʊ��֤ ��
s 3 �����‫ ��ץ‬Ǥ�Ĥʤ����$�����
�˶�Ť��‫�⤷����ޤ‬Ť ߤ���������С����ζ���Ϥ�꾯�ʤ���ʬ�ǹ�.���졢
����ˤ�äƤ��ʿ��Ū�ˤʤ�‫������ޤ‬κǤ��ü�ʾ��Ϥ��� 1 �Ĥζ�ʬ
����ʤ���Ǥ��ꡢ�����t�ƤΥǡ����˽Ť ߤ��դ���zǾ� 2 �����
��äƺ���‫�������ޤ‬Ω�줫� $���С�ʿ���νŤ ߤϡ����ζ�����Ф�
���ʿ�경��ҡ ‫פ‬ˤ�
�ʬ�
ä 䤵�����
줿 $‫ؤ‬Ρ����Ū�ʽŤ ߤȸ � � 뤳�Ȥ���
���‫�������ޤ‬ˤ�ꡢ���Υե��������ɸ��( Ū��)����ʿ� ��νŤ ߤȤ�
�ƻȤ����Ȥ��Ǥ��‫���ޤ‬

��:
sw(x,S)=1/(x*x*S)
plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines
5 bezier
?commands plot datafile smooth bezier
?plot datafile smooth bezier
?plot smooth bezier
?data-file smooth bezier
?datafile smooth bezier
?plot bezier
?smooth bezier
?bezier
`bezier` ���‫����ץ‬ϡ�n �� (�ǡ����$θĿ�) �Υ ٥�������ǥǡ������
��‫������ޤ‬ζ����ξü���$�Ĥʤ��‫���ޤ‬
5 bins
?data-file smooth bins
?datafile smooth bins
?smooth bins
`smooth bins` �� `bins` ��Ʊ���Ǥ����ʲ�����: `bins`��
��Ϣ�����r �� ����� ˴‫��ؤ‬Ƥϡ��ʲ�����: `smooth frequency`,
`smooth kdensity`��
5 csplines
?commands plot datafile smooth csplines
?plot datafile smooth csplines
?plot smooth csplines
?data-file smooth csplines
?datafile smooth csplines
?plot csplines
?smooth csplines
?csplines
`csplines` ���‫����ץ‬ϥǡ�����ñĴ��·������� (�ʲ�����:
`smooth unique`) ��s 3 �����‫���� ��ץ‬ ǰ�³ � � � $ � Ĥ ʤ � � ‫���ޤ‬
5 mcsplines
?commands plot datafile smooth mcsplines
?plot datafile smooth mcsplines
?plot smooth mcsplines
?data-file smooth mcsplines
?datafile smooth mcsplines
?plot mcsplines
?smooth mcsplines
?mcsplines
`mcsplines` ���‫����ץ‬ϡ�ʿ�경����� 줿 ‫�����ؿ‬$�ñĴ-����-����¸
������ �3 �����‫���� ��ץ‬ ǰ�³ � � � $ � Ĥ ʤ � � ‫�������ޤ‬ϡ�������
�αƶd���� �� ‫���ޤ‬
FN Fritsch & RE Carlson (1980) "Monotone Piecewise Cubic Interpolation",
SIAM Journal on Numerical Analysis 17: 238-246.
5 sbezier
?commands plot datafile smooth sbezier
?plot datafile smooth sbezier
?plot smooth sbezier
?data-file smooth sbezier
?datafile smooth sbezier
?plot sbezier
?smooth sbezier
?sbezier
`sbezier` ���‫����ץ‬ϡ��ǽ�˥ǡ�����ñĴ��·�� (�ʲ�����: `unique`)
������ `bezier` ���르 ����� ꥺ Ŭ�Ѥ��‫���ޤ‬
5 unique
?commands plot datafile smooth unique
?plot datafile smooth unique
?plot smooth unique
?data-file smooth unique
?datafile smooth unique
?plot unique
?smooth unique
?unique
`unique` ���‫����ץ‬ϡ��ǡ����� x ����ñĴ�ˤ��‫���ޤ‬Ʊ�� x ���ĥ�
������$� y ���� �ʿ�Ѥ��ư�
Ĥ ��$ � �֤ ������� ‫��������ޤ‬Ƥ��η��Ȥ���
�$����$��ʬ�Ƿ�Ӥ ‫���ޤ‬
5 unwrap
?commands plot datafile smooth unwrap
?plot datafile smooth unwrap
?plot smooth unwrap
?data-file smooth unwrap
?datafile smooth unwrap
?plot unwrap
?smooth unwrap
?unwrap
`unwrap` ���‫����ץ‬ϡ�2 �Ĥ�³���$��Ф�ۤ� ��� �� ��Фʤ����˥ǡ�
����5���‫�ޤ‬: y ���������ϰϤ
� � � � � � �� �� �� �
�ۤ� ���
�����Ф��ϰϤ˼�‫� ���ޤ‬2�Ф�0���‫�ܤ‬ä��‫����������ޤ‬ϡ������ ᤷ
p���ķϤ���
� Ū � �ͤ�Ϣ ³�ˤ�����Τ�ͭ �
�� ѤǤ����
5 frequency
?commands plot datafile smooth frequency
?plot datafile smooth frequency
?plot smooth frequency
?data-file smooth frequency
?datafile smooth frequency
?plot frequency
?smooth frequency
?frequency
=histogram
���‫` ����ץ‬frequency` �ϡ��ǡ����� x �˴‫���ؤ‬ñĴ�ˤ��‫���ޤ‬x ��ɸ��Ʊ
����$ϡ������� y ���ι ��‫� �פ‬ y ���Ȥ��ƻ��İ ��Ĥ�$ ��֤ ������� ‫���ޤ‬
�¿����� �ͤ
ǡ����
Υ Υҥ��ȥ��������γ����� (bin) ���d��ˤϡ������
��� y ���� �ͤ ˤ��ơ�����Ǥ���� ¤�Ʊ������������$θĿ��ɽ���

1.0 褦
�ˤ��‫�������ޤ‬ϡ��ǡ��� 1 ��$������� ���� ϡ�����ۤΤ��d˹Ԥʤ�
��‫���ޤ‬
��:
� binwidth = <Ŭ�����> # x ���γ �Ƴ�����
bin(val) = binwidth * floor(val/binwidth)
plot "datafile" using (bin(column(1))):(1.0) smooth frequency
plot "datafile" using (bin(column(1))) smooth frequency # Ʊ��
�ʲ����ȡ�
^ <a href="http://www.gnuplot.info/demo/smooth.html">
smooth.dem
^ </a>
5 fnormal
?commands plot datafile smooth fnormal
?plot datafile smooth fnormal
?plot smooth fnormal
?data-file smooth fnormal
?datafile smooth fnormal
?plot fnormal
?smooth fnormal
?fnormal
���‫` ����ץ‬fnormal` �ϡ����‫` ����ץ‬frequency` ��Ʊ��ư�� � �� � �‫�����ޤ‬
���
5���������ҥ��ȥ�����8.���‫������ޤ‬ʤ�a��ǡ����� x �˴‫���ؤ‬ñĴ
�ˤ��ơ�y ���Ϥ Τ � �ͤ�
�� �
٤Ƥ��¤� 1 �ˤʤ��� 5�������‫���ޤ‬x ��ɸ��
�Ʊ���$ϡ������� y ���ι ��‫� �פ‬ y ���Ȥ��ƻ�
�İ ��Ĥ�$ ��֤ ��������
�����¿����� �ͤ
ǡ����
Υ Υҥ��ȥ��������γ����� (bin) ���d��ˤϡ���
����� y ���� �ͤ ˤ��ơ�����Ǥ���� ¤�Ʊ������������$θĿ��ɽ��

1.0
���ˤ��‫�������ޤ‬ϡ��ǡ��� 1 ��$������� ���� ϡ���� �ۤΤ��d˹�
�ʤ��‫����ޤ‬ʲ����ȡ�
^ <a href="http://www.gnuplot.info/demo/smooth.html">
smooth.dem
^ </a>
5 cumulative
?commands plot datafile smooth cumulative
?plot datafile smooth cumulative
?plot smooth cumulative
?data-file smooth cumulative
?datafile smooth cumulative
?plot cumulative
?smooth cumulative
?cumulative
���‫` ����ץ‬cumulative` �ϡ��ǡ����� x �˴‫���ؤ‬ñĴ�ˤ��‫���ޤ‬x ��ɸ��
�Ʊ���$ϡ�����ʲ��� x ��� ��

Ĥ �� ٤Ƥ��� (���ʤ�x��ߤΥǡ����$�
���¦����) ���Ф��� y �������� �Ū �ʹ� ‫� �פ‬y ���Ȥ��ƻ�
�İ ��Ĥ�$ ���
���������‫�������ޤ‬ϡ��ǡ�����������ʬ�۴ ‫���ؿ‬$�Τ����ѤǤ��
‫���ޤ‬
�ʲ����ȡ�
^ <a href="http://www.gnuplot.info/demo/smooth.html">
smooth.dem
^ </a>
5 cnormal
?commands plot datafile smooth cnormal
?plot datafile smooth cnormal
?plot smooth cnormal
?data-file smooth cnormal
?datafile smooth cnormal
?plot cnormal
?smooth cnormal
?cnormal
���‫` ����ץ‬cnormal` �ϡ�x �˴‫���ؤ‬ñĴ � �ǡ�y ���� ��[0:1] �5 ��������
���ǡ�����8.���‫����ޤ‬ Ʊ�� x �������
�$ �ʣ�����ϡ������ 꾮
����� x ����� �Ĥ �� ٤ƤΥǡ����� (���ʤ�x��ߤΥǡ����$����ˤ�
����) �������¤�� ¤ �
� ¤ ¤ ٤Ƥ� y �����dz¤ �� ä ���� � �y
���Ȥ��ƻ�
��� � �� Ĥ
� 褦
�ʰ��$Υǡ������֤ ��� Ѥ����‫�������ޤ‬ϡ��ǡ�������5�������줿����ʬ
�۴ ‫���ؿ‬$�Τ˻Ȥ��‫�( �ޤ‬ä�ɸ���?�ΰۤʤ�ǡ����������Ӥ���Τ�
�� Ѥ Ǥ� )� �
�ʲ����ȡ�
^ <a href="http://www.gnuplot.info/demo/smooth.html">
smooth.dem
^ </a>

5 kdensity
?commands plot datafile smooth kdensity
?plot datafile smooth kdensity
?plot smooth kdensity
?data-file smooth kdensity
?datafile smooth kdensity
?plot kdensity
?smooth kdensity
?kdensity
���‫` ����ץ‬kdensity` �ϡ��������ˤ��Ѥ��������%�j���$γ����ɾ��
(����ϳ���ʥҥ��ȥ����ˤʤ�‫��� )�ޤ‬r �� ��� ˡ�ΰĤ
�Ǥ � � � � � � �
���ˤ��� 1 ��γ��$ΰ��֤���� �� ֤
�졢 � ����� Υ������ˤ��٤ Ƥ��¤��‫��ؿ‬
�����r �� ‫���ܤ‬� �ͤ�
2���‫���������ޤ‬ˤ
� ϡ νŤ ߤȤ��ƻ��Ѥ���5���‫��ޤ‬
�����줿�ҥ��ȥ������$�ˤϡ������ 1/(�$θĿ�) �Ȥ��٤��Ǥ����ǥ�
����ȤǤϡ�gnuplot ��5��ʬ� �ۤΥǡ������Ф��ƺ�Ŭ�Ȥʤ���ʥХ����
���������Ѥ��‫���ޤ‬
default_bandwidth = sigma * (4/3N) ** (0.2)
�������ϤȤƤ��‫�ݼ‬Ū�ǡ����ʤ����Х����Ǥ����Х����ϡ���
��Ū�˻����뤳�Ȥ�Ǥ��‫���ޤ‬
plot $DATA smooth kdensity bandwidth <value> with boxes
p���r�ǻ��Ѥ��줿�Х����ϡ��ѿ� GPVAL_KDENSITY_BANDWIDTH ����¸��
��‫���ޤ‬
C 4 ����ʥե����� (special-filenames)
4 special-filenames
?commands plot datafile special-filenames
?plot datafile special-filenames
?plot special-filenames
?datafile special-filenames
?special-filenames
?+
?++
����ʰ�����ĥե������Ȥ��ơ����Τ�Τ�����‫�ޤ‬: '', '-', '+',
'++'

��Υե����� '' �ϡ�Ʊ�� plot ���‫�ޥ‬ɾ�ǡ�ľp����ϥե������Ƥ�


���Ѥ��뤳�Ȥ� gnuplot �˻‫�����ؼ����ޤ‬äơ�Ʊ����ϥե������ 2 �Ĥ�

�ǡ�������r �� ˤϰʲ��Τ ��ˤ��‫�ޤ‬:

plot 'filename' using 1:2, '' using 1:3

���� filename �ϡ����θ�� plot ���‫�ޥ‬ɤǤ� '' �Ǻ����ѤǤ��‫�����ޤ‬


���ξ��� `save` ����ȡ������ȤȤ��Ƥ���p��Ͽ����Τ ߤǤ���

'+' �� '++' �Ȥ�������ʥե������ϡ�`using` �����t�Τ��r �� �����



�˥����� ‫��ؿ‬Ȥ�����ˤ�� 뤿� λ��Ȥ
� ߤǤ�����‫��ؿ‬r�ϥ�
��‫������ץ‬ñ��� y (�‫ ���ޤ‬z) ��������Ƥ � � � � � � �‫��ޤ‬ ���������
� �� � � � � � � � �ե�����
'+' �Ϥ��줬� �������º ‫���ݤ‬ϥե�����Ǥ�����ˡ�`using` � � � � ˤ � �
1 ���‫��ܤ‬ �
Ȥ�ư�����������ɲ
$ �� � ɸ ä��������
� ���� ��뤳�Ȥ��ǽ��
����ɸ���$ϡ��ǥե���ȤǤ� `set xrange` ������� �� ϰ�t�Τ��Ϥ ꡢ
`set samples` ��)�椹��ɸ�ܲ�� ˽��äƼ��� ‫���ޤ‬

plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves


'+' ��ľp�ˡ���Ω��ɸ���ϰϤ�����뤳�Ȥ�Ǥ��‫�����ޤ‬δ ‫��ؿ‬r��
��Ʊ�ο���Ω�ѿ��p������Ƥ 뤳�Ȥ�Ǥ��‫���ޤ‬plot �κǽ�����Ǥ�
�� ����硢 ɸ���ϰϤˤϤ�����<������ ����`sample` ��p�֤ ����
ɬ
�‫�( �פ�����ޤ‬ʲ���� :� `plot sampling`)��

plot sample [beta=0:2*pi] '+' using (sin(beta)):(cos(beta)) with lines

����ˡ�`+` ���ϰϻ���ˤϡ�ɸ����ʬ��Ϳ��� 뤳�Ȥ�Ǥ��‫���ޤ‬

plot $MYDATA, [t=-3:25:1] '+' using (t):(f(t))

?special-filenames ++
����ե����� '++' �ϡ�u ���� `set samples` ��)��� ��� $ο�v ��
���� `set isosamples` ��)��� ��� $ο�Ρ�ɸ��Ū�� [u,v] ��ɸ�γʻ�
��8.���� 2 ��Υǡ������֤ ��� ‫�����ޤ‬äơ�'++' ���r��p�ˡ�urange
�� vrange ������� � ɬ �‫�����פ�����ޤ‬x �� y ���ϰϤϼ�ưŪ������� �
�뤫���‫�<����ޤ‬Ū�� urange, vrange �Ȥϰ 㤦� ������Ǥ�� ‫'���ޤ‬++' ��
����‫�ץ‬ � Ǥ�
� u, v �λ��Ѥϡ�version 5.0 ������ѹ��Ǥ���
��:

splot '++' using 1:2:(sin($1)*sin($2)) with pm3d


plot '++' using 1:2:(sin($1)*sin($2)) with image

`'-'` �Ȥ�������ʥե������ϡ��ǡ������������Ǥ��뤳�Ȥ�‫���ؼ‬
�‫������ޤ‬ʤ�a��ǡ���� � � ‫�ޥ‬ɤθ��³���ƻ����‫������ޤ‬ΤȤ��ϥ�
�����Τ ‫�ߤ����ޥ‬ɤ�³���$‫�����ޤ‬äơ�`plot` ���‫�ޥ‬ɤ��Ф���ե���
�����������ȥ 롢 ���������
饤 Ȥ��ä����‫����ץ‬ϡ�`plot` �Υ��‫��ޥ‬
���������˽�ʤ Ȥ����‫��ޤ‬ � �ϡ�unix �����륹� ���
���
� �� ‫ץ‬Ȥˤ���
�� << (�ҥ��ɥ������)�����뤤� �VMS DCL �ˤ����� $DECK ��Ʊ�Ǥ ����ͤ
�� �

���Υǡ����ϡ�������ե���� 뤫���ɤ߹��‫ޤ‬줿���Τ ��ˡ�


�1 ԤĤˤ�
1 �Ĥ��ĤΥǡ����$���Ϥ���‫��������ޤ‬ƥǡ��� � ν ���ϡ� 1 ��� ‫ܤ‬λϤ��
ʸ � � "e" � � �֤ �����
Ȥǻ ‫���ؼ����ޤ‬

`'-'` �ϡ��ǡ����ȥ��‫�ޥ‬ɤ���˻p �Ĥ��Ȥ�Ѥ Τ�Ǥ � � ��� �ͭ��ˤ���


�‫������ޤ‬С�����Υ��‫����� ��ץ‬ ���� `gnuplot` �ˤ���ξ��ѥ���
��Ϥ������Ǥ������С��ǥ�ե��������ˤϤ��ε�ǽ��Ȥ���Τ���

��Ǥ���� `index` �� `every` �Τ �� �`plot` �Υ��‫���� ������ץ‬
�Ƥ���ȡ������ϻȤ��뤳�ȤΤʤ��ǡ�������Ϥ��‫׵‬ᤷ�Ƥ��‫�������ޤ‬
ñ��ʾ����٤Ƥξ��ǡ�`'-'` ����ǡ������ɤ߹�����⡢�ǽ�
�˥ǡ����֥ �� å�����d��Ƥ�����ɤ߹�����¿ʬ��ñ� Ǥ����ʲ�����:
`datablocks`��

�⤷��`replot` ���‫�ޥ‬ɤ� `'-'` ��Ȥ��ʤ 顢���ʤ��� 1 � ��ʾ�ǡ�����


��Ϥ���ɬ�‫�����פ‬Ǥ���� �� ʲ�����
`replot`,
: `refresh` � � � � � � �֤ ����
�������ǡ����֥ �� å���Ȥ�����Ǥ���

��Υե����� ('') �ϡ�ľp�Υե��������ƤӻȤ��뤳�Ȥ�‫�����ؼ‬


��������ϡ�

plot '����/�ȤƤ�/Ĺ��/�ե�����' using 1:2, '' using 1:3, '' using


1:4

�Τ ��ʤȤ�������Ǥ���(�⤷Ʊ�� plot ���‫�ޥ‬ɾ�ǡ�`'-'` �� `''` ��


ξ�����Ѥ���ȡ������ˤ�����ˡ�� � � � ���ǡ����� 2 �Ĥν����
�� ���ɬ�
‫)���פ�����ޤ‬
popen �‫���ؿ‬äƤ� � 륷� ��
ƥ��Ǥϡ��ǡ����ե�����ϡ�'<' �ǻ Ϥ ‫��ޤ‬
�������ˤ�äơ������륳�‫�ޥ‬ɤ� � � ѥ � � � � � Ϥ � � 뤳�Ȥ��Ǥ��‫����ޤ‬㤨
��

pop(x) = 103*exp(-x/10)
plot "< awk '{print $1-1965, $2}' population.dat", pop(x)

�ϡ��ǽ�ο������Ʊ��������r ��‫������ޤ‬$���x ��ɸ�� 1965 ǯ��


��ηв�ǯ��ɽ�����ˤʤ � ¹����������‫ޤ‬Ԥ���Ȥ��ϡ���Υǡ�����
Ԥ������Υ����ȹԤԤ ٤ƺ��ʤ���Фʤ�‫�� ��ޤ‬
��
��
� � ‫��ޤ‬Ͼ�Υ���
Τ �� ��
���ɤκǽ����ʬ�� Ѥ � � 뤳�Ȥ�Ǥ��‫����( �ޤ‬³ �‫����ޤ‬ʬ):

plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"

���Υ��‫��ץ‬d ϺǤ����- ������‫`�����ޤ‬using` ������ɤ��Ѥ���ñ��


�ʥե��륿 �� �
ǹԤ����Ȥ��ǽ�Ǥ���

fdopen() �‫���ؿ‬ĥ����ƥ�Ǥϡ��ǡ����� �ե����


�� � � � 뤫�ѥ��
‫�˷פ‬ӤĤ�
��줿 Ǥ�դΥե�����ǥ�����‫������ץ‬ �֤ Υ�
ɤ߹��ळ� Ȥ��Ǥ��‫`���ޤ‬n` �
������ǥ�����‫������ץ‬ɤ߹���ˤϡ�`'<&n'` �Ȥ��Ƥ��$���������ˤ�ꡢ
1 ��� POSIX shell ����θƤӽФ�����ǡ�ʣ��Υǡ����ե����뤫��Υ�
������Ϥ��ư ‫˹פ‬Ԥ� � � ��ˤʤ�‫�ޤ‬:

$ gnuplot -p -e "plot '<&3', '<&4'" 3<data-3 4<data-4


$ ./gnuplot 5< <(myprogram -with -options)
gnuplot> plot '<&5'
4 thru
?commands plot datafile thru
?plot datafile thru
?plot thru
?data-file thru
?datafile thru
?thru
������� `thru` ����侩�Ǥ���

�Ť���:
plot 'file' thru f(x)

���ߤν�:
plot 'file' using 1:(f($2))
4 using
?commands plot datafile using
?plot datafile using
?plot using
?data-file using
?datafile using
?using
�Ǥ���Ȥ���ǡ����ե�����ν����Ҥ� `using` �ǡ��������ϥե���

��ΤɤιԤ��r �� Τ���‫���ؼ����ޤ‬

��:
plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}

format ������ � ȡ� � � ���C � ��֥��� ‫' �ؿ‬scanf' ��Ŭ�Ѥ��ƥǡ���


�ե�����γƹԤ��ɤ ߤ‫��������ޤ‬Ǥʤ���С��ƹԤϥ ‫��ۥ‬ȥ��‫����( ���ڡ‬
������� )� �Ƕ��‫�ڤ‬줿�ǡ������� (�ե������) ����ʤ�Ȥ ߤʤ��‫���ޤ‬
�ʲ���� :� `datafile separator`��
�� <entry> �ϡ���ϥե�����ΰ�ĤΥե�����ɤ�� j� � 뤿� ��
ñ�ʤ���
���ֹ�� ���
ĤΥǡ�������κǽ�ιԤ���Υ�‫ � ˰��פ‬٥���ʸ��� ���
�����
���ǰϤ ‫ޤ‬줿���xticlabels(2) �Τ ��˥��å��ǰϤ‫ޤ‬ʤ������ ‫��ؿ‬
ʴ
�����줫�Ǥ���

���Υ���ȥ꤬ � �� å��ǰϤ ‫ޤ‬줿��ξ�硢 N ���‫� �� �����ܤ‬ Τ˴‫�ؿ‬


column(N) ����ѤǤ��‫����ޤ‬Ĥ ‫ޤ‬ꡢ column(1) ���ɤ߹��‫ޤ‬줿�ǽ�ι��‫�ܤ‬
���Ȥ���column(2) �ϼ��ι��‫��ܡ‬Ȥ��ä����Ǥ���column(1), column(2),
... ��ά���Ȥ��ơ�����ʵ��� $1, $2, ... ����ѤǤ��‫�ޤ����ؿ‬
`valid(N)` �ǡ�N ���‫��ܤ‬p��ʿ��Ǥ�� 뤫�ɤ����ƥ��ȤǤ��‫���ޤ‬
=column
=columnheader
��ϥե�����κǽ�ιԤγ���ˡ��ǡ������ǤϤʤ��� ٥���äƤ����
��� � � � �
��� �� Υ�٥������������� plot �����ȥ�˻��ѤǤ��‫�ޤ����ؿ‬
column() �ϡ����ֹ�ʳ��˥�٥��������j��Ǥ��‫����ޤ‬㤨�С��ǡ���
�ե����뤬�ʲ��Τ ��ʾ��:
Height Weight Age
val1 val1 val1
... ... ...
�ʲ��� plot ���‫�ޥ‬ɤ�Ʊ������ˤʤ�‫�ޤ‬:
plot 'datafile' using 3:1, '' using 3:2
plot 'datafile' using (column("Age")):(column(1)), \
'' using (column("Age")):(column(2))
plot 'datafile' using "Age":"Height", '' using "Age":"Weight"

����ʸ���
� �� t ��� � ˰ ‫���פ‬ɬ�
��Υ�٥�� plot �����ȥ�˻Ȥ��ˤϡ�`set key autotitle columnhead`
�Ȥ��Ƥ��$�����

��ϥǡ����ե������ 1...N �Ȥ����º ‫˲���ݤ‬ä� � ơ� gnuplot � ϴ� � ����


���Ĥ����Ĥ��� "������" ��� � ���
� � ‫����ޤ‬㤨�С�$0
�ǡ���������Τ��Υǡ����Ԥι��ֹ��� �� � � ֤‫�����ޤ‬ʲ�����:
`pseudocolumns`��

<entry> �˲�
���ʤ���
� �� С ��� Υ���ȥ�Υ ��Ȥν�˥ǥե���Ȥ����� �
�Ȥ��‫����ޤ‬㤨�� `using ::4` �ϡ�`using 1:2:4` �Ȳᤵ � ��
‫���ޤ‬

`using` �ˤ��0�ĤΥ���ȥ������ ���� ϡ����� <entry> �� y ���� � �


���ƻȤ�졢�ǡ����$��ֹ� (������ $0) �� x �Ȥ��ƻȤ��‫����ޤ‬㤨��
"`plot 'file' using 1`" �� "`plot 'file' using 0:1`" ��Ʊ������Ǥ���
`using` �� 2 �ĤΥ���ȥ������� Ϳ� �� �����x, y �Ȥ��ƻȤ��‫���ޤ‬
����˥���ȥ���ɲä��ơ���Ϥ���Υǡ��������Ѥ����� �� r �� �����
�ξܺ٤ˤĤ��Ƥϡ��ʲ�����: `set style`, `fit`��

'scanf' �‫�ؿ‬ǤϿ����ʥǡ����|��ο�����Ϥ��Ȥ��‫`�����ޤ‬gnuplot` ��t


�Ƥ���ϥǡ�������:����ư����Ȥ ߤʤ��‫����ޤ‬顢`gnuplot` �Ǥ� `%lf`
���ܼ � � �ο �����ϻ�� ꡢ�Ȥ������Ȥˤʤ�‫���ޤ‬
Ū����
��ʸ����ˤϡ����ʤ��Ȥ��ġ������� 7 �İʲ��Ρ����Τ �� ��� ϻ����
������ɬ�‫���פ�����ޤ‬
'scanf' �Ͽ�ȿ�δ֤˥‫��ۥ‬ȥ��‫��������ڡ‬ʤ�v��
� ����
� ("\t") �����
("\n")���‫��ޤ‬ϲ��‫\"( ���ڡ‬f") ������ȴ��Ԥ��‫�������ޤ‬ʳ�����Ϥ��<�
Ū�˥����å ٤����‫��פ‬Ǥ���

"\t", "\n", "\f" ��Ȥ��Ȥ���ñ���������ष���� Ű������Ȥ��٤�


�Ǥ��뤳�Ȥ���դ��Ƥ��$�����
C 5 using ���� (using_examples)
5 using_examples
?commands plot datafile using examples
?plot datafile using examples
?datafile using examples
?using examples
������ϡ�1 ���‫ܤ‬Υǡ������Ф��� 2 ���‫� ���ܤ‬3 ��� ‫��ܤ‬¤
��� ��plot ��
‫���ޤ‬
��ʸ����ϡ�����ǡ��������‫�ڡ������ڤ‬Ǥʤ������� ‫����ڤ‬Ǥ�����

��‫����ؼ‬Ƥ��‫�����ޤ‬Ʊ�����Ȥ�`set datafile separator comma` ����



���ȤǤ��ǽ�Ǥ���
plot 'file' using 1:($2+$3) '%lf,%lf,%lf'

ʽ������ϡ����ʣ���ʽ � ���ǥǡ�����ե�����
"MyData" ʽ ����ɤ ߹���
�‫���ޤ‬
plot 'MyData' using "%*lf%lf%*20[^\n]%lf"

ν ���ν���
�ΰ ν �
� ϰʲ������Ǥ� :

%*lf �����
� �
� �
��� � �
%lf ��:����ư������ɤ߹��� (�ǥե���ȤǤ� x ����)
%*20[^\n] 20 �Ĥβ���� ʳ���ʸ���� ��
� � � �� � ��� �
%lf ��:����ư������ɤ߹��� (�ǥե���ȤǤ� y ����)

=filter
=NaN
3 ��黻�� `?:` ��Ȥäƥǡ�����ե��륿� ����
Ĥη����Ҳ �‫���ޤ‬

plot 'file' using 1:($3>10 ? $2 : 1/0)

����ϡ�1 ���‫ܤ‬Υǡ������Ф��ơ�3 ���‫ܤ‬Υǡ����� 10 �ʾ�Ǥ����� �


2 ���‫ܤ‬Υǡ����� plot ���1/0`���‫�� `ޤ‬
� ����Ǥ�� ꡢ`gnuplot` �����
�� � �
�d��$���뤹� Τ�ǡ���ä�Ŭ�‫ڤ‬Ǥʤ��$ϱ�������Ȥˤʤ�‫���ޤ‬
�‫��ޤ‬ϡ������ �����d���Ƥ����� NaN ��ȤäƤ�Ʊ�����Ȥˤʤ�‫���ޤ‬

���å��ǻϤ ‫ޤ‬äƤ��ʤ��¤���������ֹ�Ȥ��ƻȤ����Ȥ��Ǥ��‫���ޤ‬
�㤨�� `using 0+(ʣ���ʼ�)` ���ʤ��Ȥ��Ǥ�� ‫��������ޤ‬ơ����ο�ϡ�
� � � �� � � � � �

���å��ǥ������Ȥ��Ƥ��ʤ���п���� �����ɾ�
d ��� 졢��
�å��ǥ�������
���Ƥ���иġ��Υǡ����$��ɤ߹�िि � ��
ˤ� � � ��� ���� ɾ� d� �� 롢� Ȥ���
�$����‫פ‬Ǥ���

������ե����‫ޥ‬åȥǡ�����ȤäƤ������ �� �֤ Υǡ�����ʣ������
�
�Ϥ 餻���
뤳 Ȥ��Ǥ��‫������ޤ‬ξ�硢 ¾�Υǡ����γ��ϰ��֤�� ������Ȥ���
���֤Υǡ����˶��
� � ‫�ޤޤ‬Ƥ����Ȥ���դ��Ƥ��$������㤨�С��ǡ���
�Ԥκǽ�����Ǥ����‫ڡ���������ޤ‬줿��� �֥ ǡ����Ǥ���ʤ�С�y ���� � �
Ȥ��ƻ�� �� ��
3 ���‫���ܤ‬ ٤��Ǥ���

(a) `plot 'file'` �ȡ�(b) `plot 'file' using 1:2`��������


(c) `plot 'file' using ($1):($2)` �ˤ�����ʰ 㤤�������뤳 Ȥ���դ��Ƥ�
�$������٤�����ư�ϡ��С������ 5 ���ѹ�����Ƥ��‫����ޤ‬ʲ�����:
`missing`��

�ǽ��ñ��

plot 'file' using 1:2

�Ȼ������Ȥǡ�����ξ��ɤ�ʤ˥��ߤΥǡ�����‫�ޤ‬Ԥ��ĥե�����
��� plot �����Ȥ���ǽ�ˤʤ�
ʸ�����Ĥ��Ƥ��������ʤ�С����Υƥ����ȹԤ������˥�����ʸ�� (#)
���֤������t�Ǥ���� �
C 5 ������ (pseudocolumns)
5 pseudocolumns
?pseudocolumns
?commands plot datafile using pseudocolumns
?plot datafile using pseudocolumns
?datafile using pseudocolumns
?using pseudocolumns
plot ʸ�� `using` ������μ��Ǥϡ���ϥե�����˴‫��ޤޤ‬º ‫ݤ‬Υǡ�����
�˲ä��ƴ��������ȤǤ��������� "������" (pseudocolumns) �˴‫�ޤޤ‬
�Ƥ��‫���ޤ‬
column(0) �ǡ���������Ǥγ��$ν��֡����� �� ֤ � 0 ����Ϥ ‫ޤ‬ꡢ 2
�ԤΥ�� � Ԥǥ ��åȤ���‫���ޤ‬ά�� $0 ����Ѳġ�
column(-1) �����ֹ�� 0 ����Ϥ ‫ޤ‬ꡢ 1 �ԤΥ���Ԥǥ ��å�
����‫�������ޤ‬ϡ���� � � ‫��ޤ‬ϳʻҾ�ǡ�����Υǡ���
�Ԥ��б����‫���ޤ‬
column(-2) ʣ��Υǡ���������ĥե�������Ρ����ߤΥǡ�������
�� index �ֹ档�ʲ�����: `index`��
5 xticlabels
?xticlabels
?using xticlabels
?plot using xticlabels
���ι�ߤθ��Ф� (ticlabel) ��ʸ����‫�ؿ‬ˤ�äƺ���Ȥ�Ǥ��������
��ϰ��Ȥ��ƥǡ���� � ��
���
$ � ‫����ޤ‬Ǥ�ñ��ʷ|��ϡ��ǡ���� � ��

��ʸ����Ȥ��Ƥ����Ѥǡ�xticlabels(N) �� xticlabels(stringcolumn(N))
�ξ�ά�dȤ��ƻȤ��‫����ޤ‬ʲ������ 3 ���‫����ܤ‬Ǥ� x ���ι�ߤθ��Ф���
���ƻ��Ѥ��‫���ޤ‬

plot 'datafile' using <xcol>:<ycol>:xticlabels(3) with <plotstyle>

������9��θ��Ф��ϡ�Ǥ�դ��r 輴 x,x2,y,y2,z �Ѥ�8.�Ǥ��‫���ޤ‬


`ticlabels(<labelcol>)` ����ϡ�`using` �������ǡ����Υǡ����κ�ɸ��
�꤬t�ƺѤ�8�˹Ԥ�ɬ�‫��פ�����ޤ‬p ��� X,Y[,Z] ��ɸ���Ȥ��ij�
�ǡ����$��Ф��ơ�xticlabels()
Ϳ�
�����ʸ����� �������
б �
ϡ �ͤ����� $�
x ��ɸ��Ʊ������ x ���θ��Ф��Υ ��Ȥ��ɲä���‫`���ޤ‬xticlabels()`
�� `xtic()` �Ⱦ�ά�����Ȥ�Ǥ���¾�μ��˴‫��ؤ‬Ƥ� Ʊ�� Ǥ� � �

��:

splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6)

�������Ǥϡ�x ����y ���θ��Ф��� x,y ��ɸ�Ȥ���


��� ��� ��
���
Ф ��
�������z ���θ��Ф��ϡ��б������$� z ��ɸ�����8. � ��� ‫���ޤ‬

��:

plot "data" using 1:2:xtic( $3 > 10. ? "A" : "B" )

������ϡ�x ���θ��Ф���8.��ʸ�����ʹ ‫����ؿ‬Ѥ�����Τǡ��ǡ����ե�


����γ��$� x ���ι�ߤθ��Ф��ϡ�3 ���‫��ܤ‬ � �
ˤ�ä� "A" �� "B" ����
�����줫�Ȥʤ�‫���ޤ‬
5 x2ticlabels
?using x2ticlabels
?plot using x2ticlabels
�ʲ�����: `plot using xticlabels`��
5 yticlabels
?using yticlabels
?plot using yticlabels
�ʲ�����: `plot using xticlabels`��
5 y2ticlabels
?using y2ticlabels
?plot using y2ticlabels
�ʲ�����: `plot using xticlabels`��
5 zticlabels
?using zticlabels
?plot using zticlabels
�ʲ�����: `plot using xticlabels`��
4 volatile
?datafile volatile
?data volatile
?plot datafile volatile
?plot volatile
?volatile
plot ���‫�ޥ‬ɤΥ������ `volatile` �ϡ���ϥ��ȥ�� �फ� ե����뤫��
��p���ɤ߹���%ǡ����������ɤ߹�����ˤ����ǤϤʤ����Ȥ������‫���ޤ‬
����ϡ�`replot` ���‫�ޥ‬ɤ�����ˡ���ǽ�ʸ¤� `refresh` ���‫��ޥ‬
��Ȥ��褦 gnuplot �˻‫����ؼ����ޤ‬ʲ�����: `refresh`��
3 errorbars
?commands plot errorbars
?commands splot errorbars
?plot errorbars
?splot errorbars
=errorbars
���顼�С��ϡ�1 ���� 4 �Ĥ��ɲä��줿�ǡ������ɤ� (�‫��ޤ‬ϥ���ȥ��
�`using` ���ɲ�j��� ) ���Ȥˤ� ꡢ 2 �����ǡ������r�ˤ����Ƽ¸�����
�Ƥ��‫���������ޤ‬ɲä�����ϡ���� �� 줾� Υ��顼�С���������ǰۤ
� � � � � � ʤä�
�dǻȤ��‫���ޤ‬

�ǥե���ȤǤϡ�`gnuplot` �ϥǡ����ե�����γƹԤ˰ʲ��Τ �� �3 �ġ�


4 �ġ����뤤� �6 �Ĥ�� ��
� �� � ��Ȥ���Ԥ��Ƥ��‫�ޤ‬:

(x, y, ydelta),
(x, y, ylow, yhigh),
(x, y, xdelta),
(x, y, xlow, xhigh),
(x, y, xdelta, ydelta),
(x, y, xlow, xhigh, ylow, yhigh)

x ��ɸ��ɬ�������ʤ���Ф����‫��ޤ‬ � � ƿ� �� � �ǵ�ǵ ǵ�
� ��� ǵ
�ǵ
�� � ��
� ��
��
�ʤ��ƤϤʤ�‫��ޤ‬ � ���
� � !�`using`
���Ƥ������������ ��Ȥϲ�ǽ�Ǥ������㤨�С�

plot 'file' with errorbars


plot 'file' using 1:2:(sqrt($1)) with xerrorbars
plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars

�Ǹ����ϡ�����Ū�� x �θ�������Ū�� y �θ����Ȥ��������


‫��ݡ‬Ȥ����
���ʤ��ȤΥե�������Ф����ΤǤ���`using` ����ȥ꤬����Ū�� x �θ�
���������Ū�� x �κǾ���
Ⱥ����
�� �8.
�� �Ƥ�� ‫���ޤ‬

y �Υ��顼�С��ϡ�(x, ylow) ���� (x, yhigh) �‫ؤ‬α�ľ����Ȥ����d���‫���ޤ‬


ylow �� yhigh ������� ydelta �������줿�Ȥ��ϡ�ylow = y - ydelta,
yhigh = y + ydelta �Ȥʤ�‫�������ޤ‬Ԥ˥ǡ����� 2 �Ĥ����ʤ���С�ylow ��
yhight �ϤȤ�� y �Ȥʤ�‫���ޤ‬x ���顼�С���Ʊ�˷������줿��ʿ��Ǥ���
�ǡ����γ��$����‫����������ޤ‬ϡ�with errorbars �� with lines ��
�����ơ�Ʊ���ǡ����ե������ 2 �� `plot` ���Ʋ�����
(���$������������
2 �ĤΥ���ȥ����ʤ����ˡ����ΰ���ˤ� `notitle` ���‫�����ץ‬Ȥ�
���Ȥ�˺��ʤ��Dz�����)��¾��j���Ȥ��ơ�errorlines ���‫�ޥ‬ɤ⤢��‫�ޤ‬
(�ʲ�����: `errorlines`)��

���顼�С���ü�ι�ߤΰ�θ����‫ܤ‬ϡ�`set errorbars` ��)��Ǥ��‫���ޤ‬

��ư�ϰϻ�� �
�꤬ p��Ǥ���С������r��ϰϤϥ��顼�С���‫ ���ޤ‬Ĵ0
����‫���ޤ‬

�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/mgr.html">
���顼�С��Υǥ�
^ </a>

���ʤ����˴‫��ؤ‬Ƥϡ��ʲ�����: `plot using`, `plot with`, `set style`��


3 errorlines
?commands plot errorlines
?commands splot errorlines
?plot errorlines
?splot errorlines
?errorlines
��� (errorbar) ��ȼ����r�ϡ�2 �����ǡ����ե�������r�ǥ��‫���ݡ‬
����Ƥ��ơ������ 1 �Ĥ��� 4 �Ĥ��ɲä� (�‫` ���ޤ‬using` �ǻ���� � )
��ǡ������� Ϳ� ��ȤǹԤʤ��‫����������ޤ‬ɲä�����ϡ��ο �� ���
� ��� � � �
errorline ��������Τ��줾� ǰۤ �ʤä��dǻȤ��‫���ޤ‬

�֤ Ǥϡ�`gnuplot` �ϡ��ǡ����ե�����γƹԤ� 3 �ġ�4 �ġ�


�ǥե���Ȥξ��
6 �ĤΤ����줫 �θĿ�Υǡ����������Ȥ���Ԥ������줾� ʲ�� � Τ����줫
���б����‫���ޤ‬

(x, y, ydelta),
(x, y, ylow, yhigh),
(x, y, xdelta),
(x, y, xlow, xhigh),
(x, y, xdelta, ydelta),
(x, y, xlow, xhigh, ylow, yhigh)

ɬ�‫������פ�����ޤ‬ǡ����ν��֤��� η|��Ǥ���ɬ�‫���פ‬
x ��ɸ�ϻ���� �
��‫`�����ޤ‬using` �����ҤǤ��ν��֤ � ���
 ���� �
� ��Ƥ�������Ф�����
Ϳ�
������ ����Ȥ��Ǥ��‫����ޤ‬㤨��

plot 'file' with errorlines


plot 'file' using 1:2:(sqrt($1)) with xerrorlines
plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines

�Ǹ����ϡ�����Ū�� x �θ�������Ū�� y �θ����Ȥ������


‫��ݡ‬Ȥ����
���ʤ��ȹ 礻�Υǡ����Υե�������Ф����Τǡ�`using` ������Ū�ʸ���
�������Ū�� x �κǾ���
Ⱥ����
�� �8.
�� �Ƥ�� ‫���ޤ‬

y ����� (x, ylow) ���� (x, yhigh) ���r �� �����


Ǥ���ylow, yhigh
����� ydelta �������줿���ϡ�ylow = y - ydelta, yhigh = y + ydelta
�Ȱ����‫�������ޤ‬Ԥ� 2 �ĤΥǡ��������ʤ���硢 yhigh, ylow ��ξ���
�� y �ˤʤ�‫���ޤ‬x �����Ʊ����ˡ�Ƿ
� � � �� � �

���顼�С���ü�ι�ߤΰ�θ����‫ܤ‬ϡ�`set errorbars` ��)��Ǥ��‫���ޤ‬


��ư��� (autoscaling) �� ON �ξ���r��ϰϤϸ��������� Ĵ0
����‫���ޤ‬

���ʤ����ˤĤ��Ƥϡ��ʲ�����: `plot using`, `plot with`, `set style`��


C 3 �‫��ؿ‬r� (functions)
3 functions
?commands plot functions
?plot functions
?functions
���‫` ��ޥ‬plot`, `splot` �Ǥϡ��ե����뤫���ɤ߹���%ǡ������r�$�
�Ǥʤ����Ȥ߹�� ‫��� ����ߴؿ‬ t ‫���ؿ‬r 褹���뤳 Ȥ�Ǥ��‫����ޤ����ؿ‬
�ϡ���Ω�ʼ�������ϰϤ��Ϥäƥǡ�������‫�����ץ‬Ȥ�ɾ�d��‫���ޤ‬
�ʲ�����: `set samples`, `set isosamples`��

��:
approx(ang) = ang - ang**3 / (3*2)
plot sin(x) title "sin(x)", approx(x) title "approximation"

�‫�ؿ‬Υǥե���Ȥ��r �� ����������� ���


ˡ�ˤĤ��Ƥϡ��ʲ�����:
`set style function`���Ȥ߹�� ‫�ߴؿ‬ξ���ˤĤ��Ƥϡ��ʲ�����:
`expressions functions`����p�Ǵ ‫����ؿ‬d�����ˡ�ˤĤ��Ƥϡ��ʲ�����:
`user-defined`��
C 3 ����ѿ�⡼���r� (parametric)
3 parametric
?commands plot parametric
?commands splot parametric
?plot parametric
?splot parametric
����ѿ�⡼�� (`set parametric`) �Ǥϡ�`plot` �Ǥ� 2 �Ĥο���Ȥ�
`splot` �Ǥ� 3 �Ĥο���Ȥ����ɬ�Ϳ� ‫���פ�����ޤ‬

��:
plot sin(t),t**2
splot cos(u)*cos(v),cos(u)*sin(v),sin(u)

�ǡ����ե������p��Ʊ����� �� �
r �� ‫������ޤ‬$����ǡ����ե����뤬
Ϳ�
�r�Τ��������� p�ˡ�Ǥ�դ�� ���ѿ�‫�˴���ؿ‬t�˻����줿
�����ƤǤ����$�������ȡ�x ������ѿ�‫�����( �ؿ‬Ǥ� `sin(t)`)
�� y ������ѿ�‫�����( �ؿ‬Ǥ� `t**2`) �Ȥδˡ ֤ �¾�ν����Ҥ�ǡ���
�‫��ؿ‬Ϥ��ߤ���ǤϤ����‫��ޤ‬ ��
� �� �Τ ��ʤȤ��Ȥ� �Ȥ��
ȡ ʸ��� 顼�ˤ�
������ѿ�‫��ؿ‬t�ˤϻ���� �
Ƥ��ʤ�����ɽ������‫���ޤ‬

`with` �� `title` �Τ �� ¾��ν����Ҥϡ�����ѿ�‫�ؿ‬λ��꤬��� λ����


��˻����ʤ���Ф����‫���ޤ‬

plot sin(t),t**2 title 'Parametric example' with linespoints

�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/param.html">
����ѿ�⡼�ɤΥǥ⡣
^ </a>
C 3 �ϰ� (ranges)
3 ranges
?commands plot ranges
?commands splot ranges
?plot ranges
?splot ranges
?ranges
���Υ��������Ǥϡ����‫` ��ޥ‬plot` �ΰ��ֺǽ�ι��‫ܤ‬Ȥ��ƽ � ��������
� � � � � � �
�ϤΥ��‫����ץ‬ˤĤ��ƤΤ����$��‫������������ޤ‬ ���ȡ������ϰϤϡ���
���p�Τɤ� `set range` �ˤ���ϰϤ�)�¤������
� ��ư ����‫�����ޤ‬
�‫` ��ޥ‬plot` ����ʾ��˻����롢� ġ����r����Ǥ��ϰϤ�)�¤���Υ�
�‫����ץ‬ˤĤ��Ƥϰʲ�����: `sampling`��

��:
[{<dummy-var>=}{{<min>}:{<max>}}]
[{{<min>}:{<max>}}]

1 ���‫ܤ‬η|����ϰϻ������Ω�ѿ���ϰ� (`xrange`���� � ���


��ѿ�⡼��
‫ޤ‬
�Ǥ� `trange`) �Ѥǡ�2 ���‫ܤ‬η|��Ͻ�°�ѿ���ϰ��ѤǤ������‫�����ץ‬
<dummy-var> ����Ω�ѿ�ο�����p�����ѤǤ��‫�( �ޤ‬ǥե���Ȥ��ѿ���
`set dummy` ���ѹ��Ǥ��‫��)�ޤ‬

����ѿ�⡼�� (parametric) �Ǥʤ���С��ϰϻ���ϰʲ��ν����ʤ��� Ϳ�


�Ф����‫���ޤ‬:
plot [<xrange>][<yrange>][<x2range>][<y2range>] ...

����ѿ�⡼�� (parametric) �Ǥϡ��ϰϻ���ϰʲ��ν����ʤ��� Ϳ� Ф���


�‫���ޤ‬:
plot [<trange>][<xrange>][<yrange>][<x2range>][<y2range>] ...
�ʲ��� `plot` ���‫�ޥ‬ɤϡ�`trange` �� [-pi:pi], `xrange` �� [-1.3:1.3],
`yrange` �� [-1:1] ������� ��� Ǥ�:

plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2

`*` �ϡ�min (�Ǿ���) �� max (������) �˼�ư�ϰϻ��� (autoscale) �ε�ǽ


��Ȥ����Ȥ��ǽ�ˤ��‫���������ޤ‬ �֤ Τ���$���ɬ�‫��פ‬ϰϻ���ˤϡ����
�ϰ� `[]` ��ȤäƤ��$�����

`plot` �� `splot` �Υ��‫�ޥ‬ɹԤǻ����줿�ϰϤϤ��Υ���հ�ĤˤΤ߱�


�d�‫���������ڤܤ����ޤ‬äơ����θ�Υ���դΥǥե���Ȥ��ϰϤ��ѹ�����ˤ�
`set xrange` �� `set yrange` ����Ѥ��Ƥ��$�����

���֥ǡ������Ф��Ƥϡ��ϰϤϡ��ǡ����ե����뤫���ɤ߹���Τ˻��Ѥ����
��Ʊ��� �
ǡ�������ǰϤ�
� � ǻ � �� �
ɬ�‫����פ�����ޤ‬ʲ�����:
`set timefmt`��

��:

�ʲ��ϸ��ߤ��ϰϤ���Ѥ��‫�ޤ‬:
plot cos(x)

�ʲ��� x ���ϰϤΤ ߤλ���Ǥ�:


plot [-10:30] sin(pi*x)/(pi*x)

�ʲ��Ͼ��Ʊ���Ǥ��������ѿ�Ȥ��� t ��Ȥ��‫�ޤ‬:
plot [t = -10 :30] sin(pi*t)/(pi*t)

�ʲ��� x �� y ��ξ����ϰϤλ���Ǥ�:
plot [-pi:pi] [-3:3] tan(x), 1/x

�ʲ��ϡ�y ���ϰϤΤ ߤλ���Ǥ�:


plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)

��ʲ��� x �κ����� ��y �κǾ�� Τ ߤλ���Ǥ���


plot [:200] [-pi:] $mydata using 1:2

�ʲ��� x ���ϰϤ�����ǡ����Ȥ��ƻ����Ƥ��‫�ޤ‬:
set timefmt "%d/%m/%y %H:%M"
plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'

C 3 ����‫( ��ץ‬sampling)
3 sampling
?sampling
?commands plot sampling
?plot sampling
=sample
C 4 1 �����Υ���‫( ��ץ‬x �‫ ���ޤ‬t ��) (1D sampling)
4 1D sampling (x or t axis)
?sampling 1D
?plot sampling 1D
�ǥե���ȤǤϡ��‫ ���ؿ‬ե����� � "+" ��8.�����ǡ����ϡ��r��ϰ�
t�Τˤ ��ä�ɸ�� (����‫��������ޤ������ )�ץ‬ϰϤϡ���p�˥��‫��ޥ‬
`set xrange` �������뤫��plot ���‫�ޥ‬ɤ� splot ���‫�ޥ‬ɤκǽ�ξ��
������ϰϤ��<�Ū�˻����뤫���ʤ���С����Υ���դΤ��٤Ƥ����Ǥ��
���ϰ���˥ǡ���t�Τ����褦 x ���ϰϤ�ư��� (autoscaling) ���‫���ޤ‬
������������ɸ�ܲ��� ϰϤϸġ����r�������ˤ����)�¤��Ƴ����Ƥ ���
��Ǥ��‫���ޤ‬

��:

�ʲ��ϡ�x t�Τ��ϰϤ� 0 ���� 1000 �Ȥ��ƥե�����Υǡ������r �� 2�


�Ĥδ ‫��ؿ‬t�Τ��ϰϤΰ���ʬ�$����줾� �� r ��‫�ޤ‬:
plot [0:1000] 'datafile', [0:200] func1(x), [200:500] func2(x)

�ʲ��ϡ���Ȥۤ�� Ʊ��
Ǥ�����
t ���Τ�ϰϤϥǡ����ե���������Ƥˤ� äƷ�
���‫������ޤ‬ξ�硢 ɸ�ܲ������� ‫�ؿ‬ϡ�t�Τ��������˼�‫ޤ‬뤫�⤷��
�‫��ޤ‬� ����
� � � ‫�ޤ‬ʤ����⤷��‫���ޤ‬:
set autoscale x
plot 'datafile', [0:200] func1(x), [200:500] func2(x)

�ʲ��Υ��‫�ޥ‬ɤˤϤ����‫�����ޤ������ޤޤ�ޤ‬Ƭ���ϰϤϡ�¿ʬ�ǽ�δ ‫�ؿ‬
��ɸ�ܲ��� Τ ߤ˸ ������ Τ$Ȼ ‫������פ��ޤ‬º ‫ݤ‬Ϥ����ǤϤʤ������٤Ƥ��r�
���Ǥ�Ŭ�Ѥ�����˲ᤵ � �� ‫�ޤ‬:
plot [0:10] f(x), [10:20] g(x), [20:30] h(x)

�ʲ��Υ��‫�ޥ‬ɤϡ������Τ����‫����˥�������ޤ‬�� `sample` ��
�ɲä�����Τǡ������ϰϻ���� plot t�Τ�Ŭ�Ѥ��ʤ����ˤ��Ƥ��‫�ޤ‬:
plot sample [0:10] f(x), [10:20] g(x), [20:30] h(x)

�ʲ�����ϡ�3 ��������դˤ 餻��ζ�����d���Ĥ���ˡ��� ��


� �� � ‫�ޤ‬:
splot [-2:2][-2:2] sample [h=1:10] '+' using (cos(h)):(sin(h)):(h)

C 4 2 �����Υ���‫( ��ץ‬u �� v ��) (2D sampling)


4 2D sampling (u and v axes)
?sampling 2D
?plot sampling 2D
����ե����� '++' ���Ф��Ʒ �� ‫��ؿ‬
8 �� � ����� � .���줿�ǡ����ϡ�u, v ��
� � ���
�˱�ä�ɸ�ܲ�� (����‫�� )��ץ‬Ԥ��‫�������ޤ‬ϡ�5.2 ���p�ΥС�����
�� ��
λ����Ρ��ѹ�� ‫פ‬ǡ������ x, y ���˱�ä�ɸ�ܲ����� Ƥ��‫�������ޤ‬
������: `special-filenames ++`��2 �����Υ���‫`� �� �ץ‬plot`, `splot`
���‫�ޥ‬ɤǻ��ѤǤ��‫���ޤ‬

�ʲ��ϡ�2 ������ `plot` ���‫�ޥ‬ɤ��Ф��� 2 ��������‫��� �� �ץ‬ Ǥ���


����ϡ��r �� �����`with vectors` ��ɽ������륰� դ�
� 8.� � � ‫���ޤ‬
�ʲ�����: `vectors`��
set urange [ -2.0 : 2.0 ]
set vrange [ -2.0 : 2.0 ]
plot '++' using ($1):($2):($2*0.4):(-$1*0.4) with vectors

�ʲ��� 3 ������ `splot` ���‫�ޥ‬ɤ��Ф��� 2 ��������‫��� �� �ץ‬ Ǥ���


����ϡ�`sampling.dem` �ǻ��Ѥ���Ƥ����Τ˻���‫����ޥ‬Ǥ�������
2 �Ĥζ���ϡ�8.����륰� դ��ϰ�� t�Τ��ⶹ � � u, v ���ϰϤ�ɸ��
����Ԥ����Ȥ���դ��Ƥ��$�����
set title "3D sampling range distinct from plot x/y range"
set xrange [1:100]
set yrange [1:100]
splot sample [u=30:70][v=0:50] '++' using 1:2:(u*v) lt 3, \
[u=40:80][v=30:60] '++' using (u):(v):(u*sqrt(v)) lt 4

C 3 plot ���‫�ޥ‬ɤ� for �롼� �(for loops in plot command)


3 for loops in plot command
?commands plot for
?commands splot for
?plot for
?splot for
?for loops
=iteration
¿����Ʊ��Υե������‫��ؿ‬Ʊ�����r 褹����ϡ����줾� ��plot ����
��ɤη����֤�� (iteration) �Ǥ����Ԥ��Τ�����Ǥ���

��:
plot for [<variable> = <start> : <end> {:<increment>}]
plot for [<variable> in "string of words"]

�����֤���Ŭ���ϰ� (scope) �ϡ����Υ���� (,) �����‫�ޥ‬ɤν�����Τ�


���줫��˸��줿�Ȥ���‫ޤ‬ǤǤ������$����r 褹����‫�ܤ‬p����|� (ʣ��
���) ���¤�Ǥ�����ϡ�����‫ ����֤��ޤ‬äƤ��Ƥ⤽�����Ȥʤ�‫���ޤ‬
�����֤�������ѿ�⡼�� (parametric) �Ǥϵ�ǽ���ʤ����Ȥ���դ��Ƥ�
�$�����

��:
plot for [j=1:3] sin(j*x)

��:
plot for [dataset in "apples bananas"] dataset."dat" title dataset

������Ǥϡ������֤��� ϥե��������б����륿� ��
ȥ��8.��ξ��ǻȤ��
�Ƥ��‫���ޤ‬

��:
file(n) = sprintf("dataset_%d.dat",n)
splot for [i=1:10] file(i) title sprintf("dataset %d",i)

������ϡ��ե�������8.�����ʸ�����ʹ ‫����ؿ‬d������Τ �� �10 ��


�Υե������Ʊ�����r ��‫ �����֤��������ޤ‬ѿ� (������Ǥ� 'i')
0��Ȥ��ư���졢����� 2 ��ʾ���ѤǤ��‫���ޤ‬

��:
set key left
plot for [n=1:4] x**n sprintf("%d",n)

������ϡ��‫���ؿ‬Ȥ��r ��‫���ޤ‬

��:
list = "apple banana cabbage daikon eggplant"
item(n) = word(list,n)
plot for [i=1:words(list)] item(i).".dat" title item(i)
list = "new stuff"
replot

������Ǥϡ��ꥹ�Ȥ˽��äƳƥ��ƥå ‫ʹ��פ‬Ԥ������γƹ��‫��ܤ‬Ф��ư�Ĥ�
�$ �� ‫��ޤ‬Τǡ� � � � Υ ꥹ�Ȥ��ѹ�
�r 褬�Ԥ��‫������ޤ‬γƹ��‫�ܤ‬ưŪ����
�Ȥ��Ǥ��‫���ޤ‬
�������Τ ‫ �ޤ‬replot ���뤬뤬뤳

��:
list = "apple banana cabbage daikon eggplant"
plot for [i in list] i.".dat" title i
list = "new stuff"
replot

������ϡ�0��η����֤��� ѿ � Ǥ Ϥ ʤ � � � ʸ� � � � η� � � �֤��� ѿ � |� � � � Ѥ � � �
�Ȱʳ���p�����t��Ʊ���Ǥ���
���뤬뤬뤳

<end> ��0�������˵��� * ����Ѥ���С������֤��� Ϥ� � ٤Ƥ�pp


��ʥ�p
����
p
�������ʤ��ʤ�‫ޤ‬Ǥη����֤��� Ȥʤ�‫�������ޤ‬ϡ��ƹԤ˴‫�ޤޤ‬뤬뤬뤹 �٤Ƥ�
��ν���뤬뤬뤤�ϥե�������Τ��٤ƤΥǡ������å� (2 �Ԥζ�ԤǶ��‫�ڤ‬
�٤ƤΥե�����ʤɤ���٤˽����Τ�
���) �ν���������ƤϤ ‫ޤ‬뤬뤬뤹
����Ǥ���

��:
plot for [i=2:*] 'datafile' using 1:i with histogram
splot for [i=0:*] 'datafile' index i using 1:2:3 with lines
plot for [i=1:*] file=sprintf("File_%03d.dat",i) file using 2 title file

3 title
?commands plot title
?commands splot title
?plot title
?splot title
?columnheader
�ǥե���ȤǤϳƶ���ϡ��б�����‫��ؿ‬ե������ǥ�������˰���ɽ����
��‫�����ޤ‬plot �Υ��‫` ����ץ‬title` ��Ȥ����Ȥǡ��<�Ū�ʥ����ȥ���
���뤬뤬뤳 �Ȥ�Ǥ��‫���ޤ‬

��:
title <text> | notitle [<ignored text>]
title columnheader | title columnheader(N)
{at {beginning|end}} {{no}enhanced}

������ <text> �ϡ�������ǰϤ ‫ޤ‬줿 ʸ� � �


� �� ʸ�
d � � � � ɾ� � � 뺹뼰뤬
����
�Ǥ���������ϥ����ˤ�ɽ������‫���ޤ‬
�줿줬뤳

��ϥǡ�������κǽ�ι��� (���ʤ�������Ƭ) ��ʸ����ե�����ɤȲ��


�������� � ������ȥ�Ȥ������Ѥ��
� �
� � � � � �� �� � � � � � � � � � 뤬쥹륪

‫ץ��� � ⤢��ޤ‬ ����ʲ�� � � � :
`datastrings` ������ϡ �` s et key autotitle columnhead` ���� �� �
Хǥ�
����Ȥ ε �ư �Ȥ ʤ� ‫���ޤ‬

��������ȥ �ȥ ��� ‫` ���ͽ��ץ‬notitle` ��Ȥ����Ȥǥ���������Ǥ�


�‫�������ޤ‬ʤ � � � � � � ȥ � (`title ''`) � � `notitle` � � Ʊ � � � �� � � � d ‫���ޤ‬
����ߤ����$�‫����ץ‬Ȥ��ϡ���İʾ�ζ�����ȥ� ���θ �����Ƥ�
�$��� (`tilte ' '`)��`notilte` �θ���ʸ�����Ĥ�����硢���� ʸ� � � �
����뤬뤬뤵�‫���ޤ‬

`key autotitles` ������� ��(�ǥե����)������ `title` �� `notitle`


������ �
ʤ � � ä � � � 硢���� Υ����ȥ�� `plot` ���‫�ޥ‬ɾ�ˤ � � � ‫�ؿ‬
���ǡ����ե������ˤʤ�‫����ޤ‬ե������ξ��ϡ������ �� Ǥ�դΥǡ�
���ե����뺹롼뽤 �
Ҥ��ǥ Υ ե���ȥ����ȥ�˴ ‫���ޤޤ�ޤ‬
��

���֤䥿���ȥ�ΰ���·���ʤɤ�����Υ 줿뤿줬 �
���� `set key` ��)��Ǥ�
Ȥϡ�
�٤ܺ����‫ޤ‬ϡ��ʲ�����: `set key`��

������� `at` �ˤ��� ��� Υ����ȥ ���ư


� Ū �����
� key ˺ �Ȣ��
���ˤǤ��֤����� Ȥ��Ǥ���褦�ˤʤ�‫`���ޤ‬at {beginning|end}` ����Ѥ�
�����ϡ�����Υ����ȥ��դ��
� ζ ����Ȥ� ľp����� 뤬뤬뤤��
ľ��� �֤����
�������Υ��‫����ץ‬ϡ�`with lines` ���r 褹����p ��ѤǤ����� ¾����
�襹������
Ǥ������Ǥ���

`at <x-position>,<y-position>` �η|�����Ѥ���С�����Υ����ȥ���


�������Ǥ�դΰ��֤���� ���� � � � � ֤ Ȥ��Ǥ��‫����ޤ‬ǥե���ȤǤϡ����� ΰ�ֻ����
������� ���ɸ�Ȳ ‫����ޤ‬㤨�� `at 0.5, 0.5` �ϡ�����դμ��� �˽˽
ᤷ ��
� � �� � �
�䶭��� ˤϴ ‫��ط‬ʤ� � � � � ˥ � � � � � ɿ
��Τ � � � � � � �� � � � ‫���������ޤ‬ˡ � � � �
�֤��뤬륽줿 ��
ν� �key
ȥ�νϡ� ν �Υ� ‫�������ץ‬αƶd��‫����ޤ‬ʲ �����:
`set key`��

��:

�ʲ��� y=x � �� ��ȥ�


'x' ��ɽ����� ‫�ޤ‬:
plot x

�ʲ��ϡ�x �� 2 ���� ��ȥ� �


"x^2" ǡ��ե����� "data.1" � ��� ȥ�

"measured data" ��ɽ�����‫�ޤ‬:
plot x**2 title "x^2", 'data.1' t "measured data"

�ʲ��ϡ��ե��������Ƭ�Ԥγ���˥����ȥ��‫�ޤ‬ʣ � � � � Υ ǡ � � � � � � r 褷��
�����ƥ����ȥ�ϡ���Ω��������ǤϤʤ����б��������θ����֤��� ‫�ޤ‬:
unset key
set offset 0, graph 0.1
plot for [i=1:4] 'data' using i with lines title columnhead at end

�ʲ��ϡ�2 �Ĥ�����Υ���դ� key �ξ��� 1 �ս�ˤ��‫�ޤ‬:


set key Left reverse
set multiplot layout 2,2
plot sin(x) with points pt 6 title "Left plot is sin(x)" at 0.5, 0.30
plot cos(x) with points pt 7 title "Right plot is cos(x)" at 0.5, 0.27
unset multiplot

3 with
?commands plot with
?commands splot with
?commands plot style
?commands splot style
?plot with
?plot style
?splot with
?splot style
?style
?with
�‫��ؿ‬ǡ�����ɽ���ˤ�
������
� Ϥ � ��
��
Ȥ�Ȥ�
�Ǥ��
���
��
ΰ Υ Τ d Ĥ
������� `with` ������j��Τ�����Ѱդ���Ƥ��‫���ޤ‬

��:
with <style> { {linestyle | ls <line_style>}
| {{linetype | lt <line_type>}
{linewidth | lw <line_width>}
{linecolor | lc <colorspec>}
{pointtype | pt <point_type>}
{pointsize | ps <point_size>}
{fill | fs <fillstyle>} {fillcolor | fc <colorspec>}
{nohidden3d} {nocontours} {nosurface}
{palette}}
}

�����ǡ�<style> �ϰʲ��Τ����줫:

lines dots steps errorbars xerrorbar xyerrorlines


points impulses fsteps errorlines xerrorlines yerrorbars
linespoints labels histeps financebars xyerrorbars yerrorlines
surface vectors parallelaxes
�‫��ޤ‬ϡ�
boxes boxplot ellipses histograms rgbalpha
boxerrorbars candlesticks filledcurves image rgbimage
boxxyerror circles fillsteps pm3d zerrorfill
�‫���ޤ‬
table

�ǽ�Υ��뤬롼뤤 ‫פ‬Υ� �
�������ϡ�����!�ʸ���°-���a��� 2 �Υ��뤬롼뤤�
�Υ�������ϡ�������ɤ��٤�°-���äƤ��‫����ޤ‬ʲ�����: `fillstyle`��
����˥�� ֥ ��������� ĥ�������⤢��‫����ޤ‬ġ��Υ�������ξܺ٤ˤ Ĥ�
�Ƥϡ��ʲ�����: `plotting styles`��
�������� `table` �ϡ�����դ������ɽ�|��ν��Ϥ�8.���‫����ޤ‬ʲ���
��: `set table`��

�ǥե���ȤΥ�������ϡ�`set style function` �� `set style data` ��j


��Ǥ��‫���ޤ‬

�ǥե���ȤǤϡ����줿뤬륢 δ�
�‫��ؿ‬ǡ���� ե � � � � �ϡ��Ȥ����Ȥ�� Ǥ��뷿쥹뷿
��
������ã����‫ޤ‬ǰۤʤ � � �  � < � � Ȥ � � ٤������‫ޤ‬Ƥ�ü���ѥɥ饤�Ф�
���� 6 �Ĥΰۤ�� � < � �‫��ݡ‬Ȥ��Ƥ��ơ�� ⤷ ��������� ‫׵‬ᤵ�줿��硢
�������˺����Ѥ��Ƥ����‫���������ޤ‬ν��Ϸ|��Ǥ����<�ν���t
������
�С Τ�`test` Ȥ��Ƥ�� $�����

��Ĥ��r�������<��j�Ӥ����ʤ�С�<line_type> �� <point_type> ��
������Ƥ��$������������ϡ�

r ������Ȥ ǻ�������� <���� �
��
5��0��� (�‫��ޤ‬Ͽ�) �Ǥ������Ѥ���ü��ǻȤ������<��ɽ������
�ˤ� `test` ���‫�ޥ‬ɤ�Ȥ ä Ƥ � � $ � � � � �

�r���������$��礭����<line_width> �� <point_size> ���ѹ��Ǥ��‫���ޤ‬

�����Ϥ��γơ���ü��Υǥե���Ȥ���� �Ф � ������ Ū���Ȥ��ƻ�� � � �� � �


�� �� �
�����$��礭���� t�Τ����Ѥ���褦��� ѹ � � Ǥ � � ٤ܺ����‫ޤ‬ϡ��ʲ�����:
`set pointsize`���������������ǥ��åȤ���� <point_size> �ȡ�
`set pointsize` �ǥ��åȤ�����礭��� ϡ��������ǥե���ȤΥ ‫���ݥ‬ȥ�
�����˳‫����ݤ‬뤬뤬뤳 �
Ȥ���դ��Ƥ�� $��������ʤ�a������θ������Ѥ�
���‫����ޤ‬㤨�С�`set pointsize 2; plot x w p ps 3` �ϡ��ǥե���Ȥ�
�������� 3 �‫ܤ‬Ǥ��äơ�6 �‫ܤ‬ǤϤ���‫���ޤ‬

�饤� �����ΰ���ʬ�����뤬뤬뤤
������� ϳ��plot �ˤ����� `pointsize variable`
�Ȥ���������ǽ�Ǥ������ξ�硢�� Ϥˤ��ɲä� 1 ���‫׵‬ᤵ��‫�����ޤ‬
���� 2D �r�Ǥ� 3 ��3D �r�Ǥ� 4 ��Υǡ�����ɬ�‫פ‬ˤʤ�‫����ޤ‬ġ�
���$Υ������ϡ�t�Τ�����Ƥ� pointsize �ˡ��ǡ����ե����뤬뤬줿������
��ˤ���
��������
ȤΤ ��Ʒ�� �� �
‫���ޤ‬
`set style line` ��Ȥä����/����<�/������Ȥ���d���С����Υ�
��������ֹ�� <line_style> �˥��åȤ��뤳 ȤǤ�����Ȥ����Ȥ��Ǥ���

����

gnuplot ���`pm3d` � �
‫��ݡ‬Ȥ���褦�˥� � �ȡ�
��
�� 뤬뤬뤵�Ƥ��
� �ʤ��
С

`splot` �ˤ����� lines, points, dots �ο����餫��� Ѳ������뤬뤿뤿�


����
��ʥ������ `palette` ���Ȥ��‫������ޤ‬ο��ϡ����‫` ��ޥ‬set palette`
�Ǥ��餫������� ��줿��餫���
Ѳ����뤬쥹뤳 ��å

ѥ� Ȥ����
顼 j��‫�����ޤ‬
���ϡ��
�$ �� z �ɸ������� ‫`���ޤ‬using` �� 4 ���‫ܤ‬Υѥ��� ��
� � � � � Ȥ���
����� � 뺹뿧륳��
ɸ��� б����3������ 2��� ‫������� ޤ‬r� (`plot` �� `splot`

���‫�� )��ޥ‬ξ��ǡ��ѥ�åȿ��� ����


� �ͤ �
�� � �
‫��ޤ‬ϥ��顼� ‫ܥ‬å������ϰϤ���
���Ť���줿� Τ�����줫�ǻ����뤳 Ȥ��Ǥ��‫����ޤ‬
� �
ѥ�åȿ ������� ϡ
`using` ������<�Ū�˻����줿����� � �� ɤ߹��ळ� Ȥ��ǽ�Ǥ���
�ʲ�����: `colors`, `set palette`, `linetype`��

������� `nohidden3d` �ϡ�`splot` ���‫�ޥ‬ɤ� 8. � � � � � � r � ˤ Τ � Ŭ � �


����‫����ޤ‬�����Х�ʥ�� ‫` ����ץ‬set hidden3d` �ϥ���վ��t��
���r��Ŭ�Ѥ���‫������ޤ‬ơ����r�� `nohidden3d` ���‫�����ץ‬Ĥ��뤳
�Ȥǡ������ hidden3d �ν�����뤳�Ȥ��Ǥ��‫`���ޤ‬nohidden3d`
���‫������ޡ‬줿�� ��ʳ��θġ����r����� (�ʬ���!���٥���) �ϡ����
¾�β��餫���
r����ǤDZ�����Ƥ��‫�����ޤ‬t���r 褵�� ‫���ޤ‬

Ʊ�� ˡ� � � � � � � � `nocontours` � ϡ� � � � � � Х� � `set contour` � � �


�꤬
�� � ʾ� � Ǥ⡢� ���� plot � � � Ф� ������� r �դˤ�� ‫���ޤ‬
赡 ǽ� �

Ʊ�� ˡ ������  �� `nosurface` �ϡ���� � � Х �� `set surface` �� �


�꤬ p
��ʾ��Ǥ⡢����� plot ���Ф��� 3 ���������r� ��դˤ��‫���ޤ‬

������ɤϰż�����褦�ʷdǾ � ά � � ǽ � Ǥ � � �

�ǥ
`linewidth`, `pointsize`, `palette` ���‫�����ץ‬t�Ƥ�ü�����֤ ��
‫�ݡ‬
�Ȥ���Ƥ���櫓�ǤϤʤ����Ȥ���դ��Ƥ��$�����

��:

�ʲ��ϡ�sin(x) ���ľ����r 褷�‫�ޤ‬:


plot sin(x) with impulses

�ʲ��ϡ�x ���$��r 褷�� x**2 ��ǥե���Ȥ�����r 褷�‫�ޤ‬:


plot x w points, x**2

�ʲ��ϡ�tan(x) ��‫�ؿ‬Υǥե���Ȥ���ǡ�"data.1" ��� ‫�����ޤ‬r 褷�‫�ޤ‬:


plot [ ] [-2:5] tan(x), 'data.1' with l

�ʲ��ϡ�"leastsq.dat" ���ľ����r 褷�‫�ޤ‬:


plot 'leastsq.dat' w i

�ʲ��ϡ��ǡ����ե����� "population" ���d��r 褷�‫�ޤ‬:


plot 'population' with boxes

�ʲ��ϡ�� � С��դ����‫�����ޤ‬r 褷�‫���( �ޤ‬顼�С���


"exper.dat" � 顼�
3 � �� ��뤬뤬뤤 �4���Υǡ�����ɬ�‫פ‬Ȥ��‫)�ޤ‬:
plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars

�⤦��Ĥ� "exper.dat" �Υ��顼�С��դ����‫( ��ޤ‬errorlines) �Ǥ��r�


��ˡ (���顼�С��� 3 � �� �� 뤬뤬뤤 �
4���Υǡ�����ɬ��):
plot 'exper.dat' w errorlines

�ʲ��ϡ�sin(x) �� cos(x) ��‫������ޡ‬դ���� ‫�����ޤ‬r 褷�‫����ޤ����ޤ‬


Ʊ�����Ǥ� � � � � � ‫������ޡ‬ϰۤʤä ���Τ �Ȥ �� ‫�ޤ‬:
plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4

�ʲ��ϡ�"data" ���<� 3 �ǡ��$��礭���� ��� 2 �‫��ܤ‬r 褷�‫�ޤ‬:


plot 'data' with points pointtype 3 pointsize 2

�ʲ��ϡ�"data" ���r 褷�‫ ���ܤ‬4����� ‫����ޤ‬ɤ � % ǡ � � � � � pointsize � � � �


�Ȥ��ƻ��Ѥ��‫�ޤ‬:
plot 'data' using 1:2:4 with points pt 5 pointsize variable

�ʲ��ϡ�2 �ĤΥǡ���������Ф��ơ���Τ߰ۤʤ�����Ѥ����r 褷�‫�ޤ‬:


plot 'd1' t "good" w l lt 2 lw 3, 'd2' t "bad" w l lt 2 lw 1

�ʲ��ϡ�x*x �ζ����������ɤ�Ĥ� ֤ �ȿ����Ӥ��r 褷�‫�ޤ‬:


plot x*x with filledcurve closed, 40 with filledcurve y=10

�ʲ��ϡ�x*x �ζ���ȿ���Ȣ���r 褷�‫�ޤ‬:


plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y=10 lt 8

�ʲ��ϡ���餫��� Ѳ����뺹뿧륳 ��Ƕ���


�� ��r 褷�‫�ޤ‬:
splot x*x-y*y with line palette

�ʲ��ϡ�2 �Ĥο��ΤĤ���������ۤʤ�⤵��ɽ�����‫�ޤ‬:
splot x*x-y*y with pm3d, x*x+y*y with pm3d at t

2 print
?commands print
?print
`print` ���‫�ޥ‬ɤ� <� � > � � �� � � �� � ɽ� � � � � ‫` ��������ޤ‬pause 0` ��Ʊ
���Ǥ���<��> �ϡ����8.���� `gnuplot` �ο�����‫���ޤ‬ʸ � � � � Ǥ � � �

��:
print <��> {, <��>, ...}

�ʲ�����: `expressions`�����ϥե������ `set print` ������Ǥ��‫���ޤ‬


�ʲ��⻲�� : `printerr`��
2 printerr
?commands printerr
?printerr
`printerr` �� print ���‫�ޥ‬ɤȤۤ�Ʊ���Ǥ�� � � � � � � � p � � `set print` ��
�Ǥ���Ϥ���
�‫�ޥ‬ɤθ �� � ³ � � � Ƥ � � � � �֤ stderr �����Ȥ���$�����
���‫���ޤ‬
2 pwd
?commands pwd
?pwd
`pwd` ���‫�ޥ‬ɤϥ � � � � ȥ ǥ � � 줿쥹뤿ȥ � � � p � � � ��‫���ޤ‬
� ɽ �����

�����ȥǥ��줿쥹뤿 �
ȥ��ʸ�����ѿ���� ¸������ ʸ� � � � � ǻ Ȥ � � � � � � � �
�ϡ��ѿ� GPVAL_PWD ��Ȥ����Ȥ��Ǥ��뤳�Ȥ���դ��Ƥ��$������ʲ�����:
`show variables all`��
2 quit
?commands quit
?quit
`exit` �� `quit` ��ξ���‫�ޥ‬ɤ � END-OF-FILE ʸ� � ϡ � ` gnuplot` � � λ
�����‫��������ޤ‬Υ��‫�ޥ‬ɤϡ � � � � � � � �֤��(`clear` ���‫�ޥ‬ɤ � Ʊ �� � )
���ꥢ��� Ƥ��齪 λ�����‫���ޤ‬
2 raise
?commands raise
?commands lower
?raise
?lower
��:
raise {plot_window_id}
lower {plot_window_id}

���‫` ��ޥ‬raise` �� `lower` �ϡ����Ϸ|


��Τ����Ĥ��ˤ�����ǽ����������
�Ƥ��ʤ������Ѥ��뤬쥹륦 �
��ɥ��‫ޥ‬
� ‫������ ޥ‬ɽ��� 赡 ǽ������ˤ��¸����
� �
��ǽ-������‫���ޤ‬
set term wxt 123 # �ǽ���r 襦���� ɥ���8.
plot $FOO
lower # ¸�ߤ����r 襦���� ɥ��Τ ߤ��
set term wxt 456 # 2 ��� �8���‫ܤ‬. (‫ ���ܤ‬1ξ�ˤ��֤�� )
plot $BAZ
raise 123 # 1 ���‫��ܤ‬r 襦���� ɥ�����
�����Υ��‫�ޥ‬ɤϡ � � � � ‫���ޤ‬Ƥˤʤ�ʤ��Ȼ ‫פ‬äƤ��$�����
2 refresh
?commands refresh
?refresh
���‫` ��ޥ‬refresh` �ϡ�`replot` �˻�Ƥ��2 �������� ‫� ޤ‬Ĥ��$ǰ 㤤��
����‫`���ޤ‬refresh` �ϡ�����ɤ߹���%ǡ������ Ѥ � � ơ � ���ߤ��r���0
�d����r 褷�‫�������ޤ‬ϡ�`refresh` �� (����ǥХ��� '-' �����) ����
�饤�� ǡ������ 衢�� r �����Ƥ
���Ѳ�������ǡ����ե��� 뤬뤬줿
� � �
� � ˻�
r�
����Ȥ������Ȥ������‫������ޥ‬$������‫` ��ޤ‬refresh` �ϡ����¸�ߤ�
���r�˿ � �� � ��ǡ������ɲä���ΤˤϻȤ�� ‫���ޤ‬

�‫�����ޥ‬�ä˥����।��ȥ��� िॢ � ���
ȤǤϡ�Ŭ�‫ڤ‬ʾ��� `replot` ��
����ˤ ष�� `refresh` ����Ѥ��‫�����ޤ‬:

plot 'datafile' volatile with lines, '-' with labels


100 200 "Special point"
e
# ����ʥ ‫������ޥ‬ ��
� � � Ǽ¹�
set title "Zoomed in view"
set term post
set output 'zoom.ps'
refresh

2 replot
?commands replot
?replot
`replot` ���‫�ޥ‬ɤ � � � ʤ � � Ǽ ¹ Ԥ � � � ȡ � � Ǹ � ˼ ¹ Ԥ � � � `plot` � ‫���ޤ‬
`splot` ���‫�ޥ‬ɤ �Ƽ ¹ Ԥ � � ‫�������ޤ‬ϡ�����‫�ץ‬åȤ� �ۤʤ� `set` ��
�‫����ץ‬Ǥ ߤ��� Ʊ��� ‫�ץ‬åȤ� �ۤʤ���� �˽
֤ ��Ϥ������ Ȥ ��������
�Ǥ��礦��

`replot` ���‫�ޥ‬ɤ � � Ф � � � � � Ϻ Ǹ � ˼ ¹ Ԥ � � � `plot` � ‫` ���ޤ‬splot`


���‫�ޥ‬ɤΰ � � � ( � � �ۤ� � ',' �ȶ���) �ɲä��졢���줫��¹ Ƽ Ԥ���‫���ޤ‬
`replot` �ϡ��ϰ� (range) ���Ƥϡ�`plot` �� `splot` ��Ʊ������
�Ȥ 뤳�Ȥ��Ǥ��‫�����ޤ‬äơ�ľp�Υ��‫�ޥ‬ɤ� `splot` � Ǥ Ϥ ʤ � `plot`
�ξ��ϡ��‫��⤦��ؿ‬Ĥμ���ߤǥ ‫�ץ‬åȤ���Τ� `replot` ��Ȥ�����
���Ǥ��‫���ޤ‬

���:
plot '-' ; ... ; replot

�Ȥ����Ȥ���Ͽ 侩���� ‫��ޤ‬ ���


� �� �� ϡ����줿줬줬 �

�Ƥ���Ϥ��᤹᤹‫׵‬ ᤹‫� ׵‬뤳�Ȥˤʤ 뤬뤬줿
᤹‫׵‬ ��
Ǥ��������Ƥ�� ξ�硢����˥��‫��ޥ‬
`refresh` ��Ȥ��‫�������ޤ‬ϡ���p���ɤ߹���% ǡ�����Ȥ
ƥ��� ä դ��
�r 褷�‫���ޤ‬

`multiplot` �⡼�ɤǤϡ�`replot` ���‫�ޥ‬ɤ Ϥ � � ٤Ƥ� plot �ǤϤʤ���ľ


p�� plot ��ʬ�$������Ƽ¹Ԥ��ʤ����Ȥ���դ��Ƥ��$�����

�Ǹ��¹Ԥ��� `plot` (`splot`) ���‫�ޥ‬ɤ� � � � Ƥ � 5 � � � � � � ˡ � ˤ Ĥ � � Ƥ �


�ʲ��⻲��: `command-line-editing`��

ľp���r 襳�‫�ޥ‬ɤ � t � Τ �ɽ � � � � � � � 뤳�Ȥ 䡢�����`history` �����


���ԡ�������ˡ�ˤĤ��Ƥϡ��ʲ��⻲�� : `show plot`��
2 reread
?commands reread
?reread
`reread` ���‫�ޥ‬ɤϡ � `load` � � � ‫�ޥ‬ɤ ‫��ޤ‬ϥ��‫�ޥ‬ɥ 饤�� ǻ���� �
`gnuplot` �Υ��‫��ޥ‬ ɥե� � � � � ����
μ �Υ �� ‫�ޥ‬ɤ � � ɤ ‫��ޤ‬p�ˡ���
���$˺������‫�������ޤ‬ϡ����‫�ޥ‬ɥե�����κǽ 餫��`reread` ����
��ɤ ‫ޤ‬ǤΥ��‫�ޥ‬ɤ�� � ¥ 뤬롼뤤 ‫��פ‬
� ��ܼ
� Ū��� � � �� � 뤳�Ȥˤʤ�‫���ޤ‬
���Ƥ��
(������������ϲ���� �����ȤǤϤ���
� � � � �� � � � �‫`���ޤ‬reread` �� `if` ���Ȥ߹�
�碌� 뤳 ȤǤȤƤ��Ѥʥ��
� �
pp� � � � p ‫�ޥ‬ɤȤ ʤ � ‫)���ޤ‬
ɸ����Ϥ������Ϥξ��ϡ�`reread` ���‫�ޥ‬ɤϲ � � � ƶ d � ��� Ϳ ‫���ޤ‬

��:

�ե����� "looper" �����Τ 褦�ʥե������


a=a+1
plot sin(x*a)
pause -1
if(a<5) reread
�����ơ�`gnuplot` ���鼡�Τ 褦��¹Ԥ ���Ȥ��‫���ޤ‬
a=0
load 'looper'
����ȡ�pause �Υ�å�������ʬ�䤵�� 줿 5 ��Υ ‫�ץ‬åȤ��Ԥ��뤳�Ȥ�
�ʤ�‫���ޤ‬

�ե����� "data" �����ƹԤˡ�0 ���� 10 �‫ޤ‬Ǥ��ϰ� (yrange) �� 6 �ĤΥ�


���� ���a��ǽ 餬 x ��ɸ�ǡ�����¾�� 5 �Ĥΰۤʤ�‫�ؿ‬Ρ����� x �Ǥ�
�� �Ǥ���Ȥ�� ‫��������ޤ‬ơ��ե����� "plotter" ��
c_p = c_p+1
plot "$0" using 1:c_p with lines linetype c_p
if(c_p < n_p) reread
�ǡ�`gnuplot` ���鼡�Τ 褦��¹Ԥ ���Ȥ�� ‫���ޤ‬
n_p=6
c_p=1
unset key
set yrange [0:10]
set multiplot
call 'plotter' 'data'
unset multiplot
����ȡ�5 �ĤΥ ‫�ץ‬åȤ��碌�� 1 �ĤΥ���դ��Ǥ��‫���ޤ‬yrange �ϡ�
ƽ multiplot �⡼�ɤǺǽ�Τ�Τ�³���ƽ��
ƽ � 5ƽ �ĤΥ��դ���Ʊ������
��Ĥ 褦�ˡ��<�Ū�˻���� ɬ ��‫�����������פ�����ޤ‬ �
ʤ���Фʤ��
���� ���ʤ��ȡ�
t �Ƥ Υ ���դ�Ʊ�����ǽ�� �ǽ

ǽ
� 뤳�Ȥˤʤ�‫���ޤ‬
���˥�� ����
Υ���‫�ץ‬Ȥ��ơ�demo �ǥ��줿쥹뤿� animate.dem �⻲��
ȥ��
���Ƥ��$�����

2 reset
?commands reset
?reset
?reset errors
?reset bind
?reset session
���‫` ��ޥ‬reset` �ϡ�`set` ���‫�ޥ‬ɤ � � � d Ǥ � � 롢 �
���
դ˴‫���ؤ‬ t�Ƥ�
���‫�����ץ‬ǥե���Ȥ�� �ᤷ� ��
� ‫������ޤ‬Υ��‫�ޥ‬ɤϡ � load � � � � � � � ‫�ޥ‬
�ɥե������¹Ԥ�����ǥǥե���Ȥ������������ ��� � ���������
������
��������Ǹ��ξ��֤��� � ᤷ
� �����
ᤷ � � � ᤷ Ȥ��ʤɤ�����Ǥ���

�ʲ��Τ�Τϡ�`reset` �αƶd��‫���ޤ‬
`set term` `set output` `set loadpath` `set fontpath` `set linetype`
`set encoding` `set decimalsign` `set locale` `set psdir` `set fit`

`reset` �ϡ�ɬ������‫����ץ‬Ω�~夬�ä������ �ˤ֤ �ᤵ � ʤ����Ȥ���



�դ��Ƥ��$���������ϡ��������ե����� gnuplotrc �� $HOME/.gnuplot
��Υ��‫�ޥ‬ɤǥǥե � � � Ȥ � �� � � ѹ � � � � � � � � ϡ � � � � � � ꥻ�åȤ���Ƥ���
������Ǥ��������� `reset session` �Ȥ���С������Υ��‫�ޥ‬ɤ �Ƽ ¹ �
���‫���ޤ‬

=session
ѿ � 桼����
`reset session` �ϡ��桼������ t ٤�� ‫ؿ‬Ƥ���ǥ�
����Ȥ��������������ƥ�t�Τν������ե����� gnuplotrc �ȸĿ�
�Ѥν������ե����� $HOME/.gnuplot ��Ƽ¹Ԥ��‫����ޤ‬ʲ�����:
`initialization`��

=error state
`reset errors` �ϡ����顼�����ѿ � GPVAL_ERRNO � � GPVAL_ERRMSG � Τ ߤ�
�ꥢ��� ‫���ޤ‬

=bind
`reset bind` �ϡ�������d�ǥե���Ȥξ��֤���� ‫���ޤ‬
2 save
?commands save
?save set
?save
?save fit
��:
save {functions | variables | terminal | set | fit} '<filename>'

�ɤ������ʤ��ä����ϡ�`gnuplot` �ϡ��桼���� t ‫��ؿ‬ѿ � set � �


�����뤬쥹륪� � � Ǹ��¹Ԥ��� `plot` (�‫` ���ޤ‬splot`) ���‫�ޥ‬ɤ �
‫���ץ‬
t�Ƥ���¸���‫���ޤ‬

`save` �ϡ��ƥ����ȷ|��ǽ��Ϥ��‫������ޤ����ޤ‬Υե������ `load` ����


��ɤ��ɤ߹��ळ�Ȥ��Ǥ��‫`���ޤ‬set` ���‫�����ץ‬դ���� ‫��ޤ‬ϲ��⥪� ‫���ץ‬
���Ĥ����� `save` ��¹Ԥ�����硢`terminal` ��j��� `output` �Υ�
ǽ�������ϥ����ȵ���Ĥ��ǽФ
ǽ ǽ ��� ‫�������ޤ‬Ϥ��ν��ϥե������
¾�δĶ��˥��ȡ���� �
��� 뤵�줿 gnuplot ���ư�������ˡ���5�ʤ��˻Ȥ�
��褦�ˤ��롢���뤤� Ϥ��ä���ե���������
� ��Ƥ � ‫ޤ‬ä���� �-�
���� � 롢�Ȥ��ä����������‫���ޤ‬

`save terminal` �ϡ�`terminal` �ξ�� �֤��� ����ȵ ����Ĥ���� �


˽���
���‫�������ޤ‬ϼ� ˡ � � d� äȤδ ֤$� `terminal` �����������‫�������ؤ‬
����¸���Ƥ����� `terminal` �ξ��֤��� ɤ߹��ळ�Ȥǰ�p�� terminal ����
����᤹���ʤɤ���Ω�d ‫�!������ޤ‬ñ��� gnuplot ���å����Ǥϡ���
�ߤ� terminal ����¸/���¾����ˡ�Ǥ��뤬쥹륳 ‫��ޥ‬� `set term push` ��
`set term pop` ��Ȥ���ष�������⤷��‫��ޤ‬
� � ʲ�����:
`set term`��

`save fit` �ϡ�ľ��� `fit` ���‫�ޥ‬ɤǻ � � Ѥ � � � � ѿ � Τ ‫�����ߤ���¸���ޤ‬


����¸�ե�����ϡ���� `via` ������ɤ�Ȥ����Ȥ� fit ���‫�ޥ‬ɤν � �
���ѤΥѥ��� �� ե�����Ȥ������ѤǤ��‫���ޤ‬

�ե������ϰ�����˰Ϥ��Ƥ��ʤ���Фʤ�‫���ޤ‬

����ʥե����� "-" �ˤ�� `save` ���‫�ޥ‬ɤ �ɸ � � � � Ϥ ˽ � � Ϥ � � � � 뤳��


���Ǥ��‫���ޤ‬popen �‫�ؿ‬ �‫��ݡ‬Ȥ���褦�
� ����
(Unix
ʥ ��ƥ�ʤ Ǥ)� ϡ �
save �ν��Ϥ�ѥ����ͳ��¾�γ���‫������ץ‬Ϥ����Ȥ��Ǥ��‫�������ޤ‬
��硢�ե������Ȥ��ƥ��‫������ޥ‬Ƭ�� '|' ��Ĥ�����Τ�Ȥ��‫���ޤ‬
����ϡ�`gnuplot` �ȥѥ�� �
‫�����ץ‬ � �‫���� פ‬ˡ�`gnuplot` ����
� ����
������˴‫�������ؤ‬Ӥ � � � � � � �� �
��� ե� � ٤� ܺ����‫ޤ‬ϡ��ʲ���
�� � � � � � � � ��
��: `batch/interactive`��

��:
save 'work.gnu'
save functions 'func.dat'
save var 'var.dat'
save set 'options.dat'
save term 'myterm.gnu'
save '-'
save '|grep title >t.gp'
2 set-show
?commands set
?commands show
?set
?show
?show all
`set` ���‫�ޥ‬ɤϼ¤ � ¿ � � � Υ � � ‫����������ץ‬ ��
�Τ˻Ȥ�� ‫�����������ޤ‬
`plot`, `splot`, `replot` ���‫�ޥ‬ɤ ����� � � � ‫ޤ‬Dz� � � ɽ � � � � � ‫���ޤ‬

`show` ���‫�ޥ‬ɤ Ϥ � � � � � � � � � �� � ɽ � � � � � ‫`���ޤ‬show all` �Ǥ����t��


��ɽ����� ‫���ޤ‬

`set` ���‫�ޥ‬ɤ � � ѹ � � � � 줿���


‫����ץ‬ϡ�������б����� `unset` ���‫�ޥ‬
�ɤ�¹Ԥ��뤳�Ȥǥǥե���Ȥξ��֤������ �
�ᤷ᤹ � ᤹Ȥ��Ǥ�� ‫����ޤ‬ʲ��⻲��
� :
`reset`�������t�ƤΥѥ��� �������� ǥե���Ȥ���ᤷ � �‫���ޤ‬
��

=iteration
`set` �� `unset` ���‫�ޥ‬ɤˤϷ � � � �֤��������
ѤǤ�� ‫����ޤ‬ʲ�����:
`plot for`��

C 3 �Ѥ�ñ�� (angles)
3 angles
?commands set angles
?commands show angles
?set angles
?show angles
?angles
?commands set angles degrees
?set angles degrees
?angles degrees
?degrees
�ǥե���ȤǤ� `gnuplot` �϶˺�ɸ����դ���Ω�ѿ��ñ��ϥ 饸�������
��� ‫`���ޤ‬set polar` ��p�� `set angles degrees` ������ � ȡ������ ñ�
���٤ˤʤ�� ǥե���Ȥ��ϰϤ�[0:360] �Ȥʤ� ‫�������ޤ‬ϥǡ����ե�����
���r���ä�����Ǥ��礦����� ٤�����ϡ�`set mapping` ���‫�ޥ‬ɤ� � � � �
�뤳�Ȥˤ�� 3 �����Ǥ���Ǥ���

p�p �� � � p

��:
set angles {degrees | radians}
show angles

`set grid polar` �ǻ���� ����


٤⡢`set angles` �ǻ���� �
ñ����ɤ ‫�ޤ‬
ɽ������ ‫���ޤ‬

`set angles` ���Ȥ߹�� ‫ �ߴؿ‬sin(x), cos(x), tan(x) �ΰ��� asin(x),


Ϳ�
acos(x), atan8x), atan2(x), arg(x) �ν��Ϥˤ�ƶd��� ‫����ޤ‬ж����
��䡢�٥å���‫�ؿ‬ΰ��ˤϱƶd�Ϳ��� ‫��ޤ‬ �������
� �� ʣ�ǿ � � � � Ȥ �
������
����ж���‫�ؿ‬ν��Ϥˤϱƶd��Ф ‫��������ޤ‬δ ‫�ؿ‬Ȥ���Ȥ��ϡ�
`set angles radians` ������Ϥΰ��δ˰�� ֤ -���ä������¸�����
���ʤ���Фʤ� ‫���ޤ‬

x={1.0,0.1}
set angles radians
y=sinh(x)
print y #{1.16933, 0.154051} ��ɽ��
print asinh(y) #{1.0, 0.1} ��ɽ��
��������
set angles degrees
y=sinh(x)
print y #{1.16933, 0.154051} ��ɽ��
print asinh(y) #{57.29578, 5.729578} ��ɽ��
�ʲ��⻲��
^ <a href="http://www.gnuplot.info/demo/poldat.html">
poldat.dem: `set angles` ���Ѥ����˺�ɸ�r�Υǥ�
^ </a>
C 3 ��� (arrow)
3 arrow
?commands set arrow
?commands unset arrow
?commands show arrow
?set arrow
?unset arrow
?show arrow
?arrow
?noarrow
`set arrow` ���‫�ޥ‬ɤ �Ȥ � � � � Ȥ ˤ � �� ���վ��Ǥ�դΰ��֤������
ɽ��
���뤳�Ȥ��Ǥ�� ‫���ޤ‬

��:
set arrow {<tag>} from <position> to <position>
set arrow {<tag>} from <position> rto <position>
set arrow {<tag>} from <position> length <coord> angle <ang>
set arrow <tag> arrowstyle | as <arrow_style>
set arrow <tag> {nohead | head | backhead | heads}
{size <headlength>,<headangle>{,<backangle>}}
{filled | empty | nofilled | noborder}
{front | back}
{linestyle | ls <line_style>}
{linetype | lt <line_type>}
{linewidth | lw <line_width>}
{linecolor | lc <colorspec>}
{dashtype | dt <dashtype>}

unset arrow {<tag>}


show arrow {<tag>}

���� <tag> �ϳ����������0��Ǥ������������� ʤ����ϡ����λ�


�Ū �˳ � � � � Ƥ � � ‫� � � � � � � � �ޤ‬Ȥ����Ȥǡ�
�$�����ѤκǤ⾮������ư
����������ѹ������ꡢ� � � �Ǥ��ߤ � ¸ � � � � � � ‫�������ޤ‬°-����
��������ϡ��������<����� `set arrow` ���‫�ޥ‬ɤ� � ѹ � � ս � � � � �� �
���$�����

���κǽ��ü�$ΰ��֤ϡ���� "from" �ǻ���� ‫�� ⤦������ޤ‬Ĥ�ü�$�


�ʲ������$��� 3 �Ĥΰۤʤ���ȤߤΤ����줿줬뤳 �ǻ���Ǥ�� ‫<���ޤ‬position>
�� x,y ���뤬뤬뤤 ��x,y,z �ǻ���� ‫���������ޤ‬ Ƥ���p�˺�ɸ
� �Ϥ�� 뤿
j�
��� `first`, `second`, `graph`, `screen`, `character` ���֤� ���Ȥ���
��� ‫�����ޤ‬ɸ������ ʤ���Хǥե���ȤǤ� 0 �ȸ��ʤ���� ϰ�
٤ �����‫ޤ‬
������: `coordinates`���ǽ��ü�$��Ф����ɸ����Ҥϡ�2 ���‫�ܤ‬ü�$�
�ϱƶd������

1) "to <position>" �ϡ��⤦��Ĥ�ü�$����к�ɸ������ ����

2) "rto <position>" �ϡ�"from" �ΰ��֤� ��Τ�������� �������ξ�硢


��|� (���п�)������� `graph`, `screen` ��ɸ���Ф��Ƥϡ����$Ƚ���
�ε�Υ���� ����
��� 줿뤬줿����
Ū�����
� �б ���� ���������п���Ф��Ƥϡ��� ��

��줿뤬줿����Ū���ϡ����
� �$ � � � б����������äơ��п��
�� 齪�$‫ܿ������ؤ‬
��硢���� Ū���Ȥ�0�� � ������ ��
������
��� 뤬뤬뤳
�Ȥϵ������

3) "length <coordinate> angle <angle>" �ϡ������ʿ����Ǥ�������


������ ����length �ˤ�Ǥ�դκ�ɸ�Ϥ�Ŭ�ѤǤ������angle ��ñ��Ͼ�
���٤ˤʤäƤ�� ����

����¾��°-�⡢���餫������ d�����Υ�������ǡ�����ϥ��‫��ޥ‬
`set arrow` �Ǥ��줿뤬륢�
� ��
�� �Ȥ���ǽ�Ǥ�������¾��°-�ξܺ٤ˤ Ĥ�
뤬뤬뤳
�Ƥϰʲ�����: `arrowstyle`��

��:

���$��� (1,2) �‫�����ؤ‬桼����zѤΥ 饤� ����� 5 ���d��ˤ�:


���
set arrow to 1,2 ls 5

�r��ΰ�κ����Ѥ��� (-5,5,3) �3 �ֹ� ���‫������� إ‬d��ˤ�:


set arrow 3 from graph 0,0 to -5,5,3

����ü�� 1,1,1 ���ѹ��������������� ��


� 2 ˤ���ˤ� :
set arrow 3 to 1,1,1 nohead lw 2

x=3 �ν�‫���إ‬դβ������ �DZ�ľ����d��ˤ�:


set arrow from 3, graph 0 to 3, graph 1 nohead

T ��������ξü�˻�ı�ľ��������d��ˤ�:
set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90

���$��������Ū�ʵ�Υ� ��պ�ɸ��
� Ϳ ��������
� d ��ˤ� :
set arrow from 0,-5 rto graph 0.1,0.1

x ���п������Ū�ʽ��$����� � � � � �d����:
set logscale x
set arrow from 100,-5 rto 10,10
����� 100,-5 ���� 1000,5 ��Ǥ�����d�������� |� (y) ���Ф��Ƥ���
��Ū�ʺ�ɸ 10 �� "�� 10" ��������Τ��Ф����п� (x) ���Ф��Ƥ�����
Ū�ʺ�ɸ 10 �� "�ܿ�� 10" �Ȥ���Ư�������

֤ �����ä��ˤ�:
2 �
unset arrow 2

t�Ƥ�����ä��ˤ�:
unset arrow

t�Ƥ����ξ���� (�����ν��) ����ˤ�:


show arrow

^ <a href="http://www.gnuplot.info/demo/arrowstyle.html">
���Υǥ�
^ </a>

C 3 ��ư��� (autoscale)
3 autoscale
?commands set autoscale
?commands unset autoscale
?commands show autoscale
?set autoscale
?unset autoscale
?show autoscale
?autoscale
?noautoscale
��ư��ܵ � ǽ (autoscale) �� x, y, z �γƼ����Ф�����Ω�ˡ�����ϰ � 礷
�ƻ���Ǥ�������ǥե���ȤǤ�t�Ƥμ����� Ф �Ƽ�ư��������Ԥ��
����
�����ΰ�����r� (`plot`) ���ȤΤ ߤ�� autoscale ���������ϡ���

���о ‫ݤ‬Ǥʤ� `plot` �˥ե 饰 `noautoscale` ��Ĥ��뤳 Ȥ��Ǥ������
�ʲ�����: `datafile`��

��:
set autoscale {<axes>{|min|max|fixmin|fixmax|fix} | fix | keepfix}
set autoscale noextend
unset autoscale {<axes>}
show autoscale

�����ǡ�<axes> (��) �� `x`, `y`, `z`, `cb`, `x2`, `y2`, `xy` �Τ�����
���Ǥ���`min` ����� `max` �� � � û�ɲ � � � � � (`xy` �ǤϻȤ������)
����� `gnuplot` �ˤ��μ��κǾ��ο�����Ϻ�����Τ ߤ�ư�ν ‫����ܤ‬뤳
�Ȥˤʤ�������� �� ���
�� �
Ƥ��ʤ������
t Ƥμ����о
‫ݤ‬Ȥʤ�����

?noextend
�ǥե���ȤǤϡ���ư��ܵ�ǽ�ϼ����ϰϤθ³����r�ǡ���t�Τ�� ‫ޤ‬
�Ǥᤤ � �� 9���٥��� ֤ ���� �� ����������� `fixmin`, `fixmax`,

`fix`, `noextend` �ϡ�������9����֤�Ǥ��ϰϤμ�ư����� gnuplot ��
�Ԥ 碌�ʤ��褦�ˤ�� �������ξ�缴��� ϰϤ θ³ � � ϡ � � � � � ü � ˤ � � � ǡ � � � � �
�κ�ɸ�� ˴��t��� � ˰
‫`���פ��ޤ‬set autoscale noextend` �ϡ�
`set autscale fix` ��Ʊ���Ǥ��������ϰϻ��ꥳ�‫�ޥ‬ɤθ � � ˥ � � � �  � �
`noextend` ���ɲä���С���Ĥμ����ϰϤα�Ĺ��ǽ�$����ˤ��뤳�Ȥ�
�Ǥ��������:
set yrange [0:*] noextend

`set autoscale keepfix` �ϡ�fix ��������ѹ������˻Ĥ����٤����‫ޤޡ‬Ƥ�


����ư��‫ܤ‬ˤ�� ����

��ư��ܵ�ǽ��Ȥ��Ȥ��ϡ��r��ϰϤϼ�ưŪ�˳��Ф��줿뼰륦 ��
°�ѿ�
(`plot` �ΤȤ��� y ����`splot` �ΤȤ��� z ��) �ϡ��‫��ؿ‬ǡ������Ͱ 褬
�� ����
����褦����� �

��°�ѿ� (y ����� z) �μ�ư��ܵ�ǽ������� �


Ƥ��ʤ����ϡ���ߤ�

y �� z ���r��ϰϤ����Τ � Ȥ������
‫ޤ‬

��Ω�ѿ� (`plot` �ΤȤ��� x ����`splot` �ΤȤ��� x,y ��) �μ�ư���


��ǽ������� � Ƥ�����ϡ��褵��
r �t�ƤΥǡ����ե�������$�����
�褦���� p��Ȥ�褦�ˤʤ� �����ǡ���� ե � � � �뤬 1 �Ĥ����� �Ƥ�
�ʤ����ϡ���ư��ܵ�ǽ�Ϥʤ�θ��⤢ ����� � � Ĥ�ꡢ�‫�ؿ‬Τ ߤ�
����� � Ƥ��ƥǡ������ե������Ȥ�ʤ����ϡ�x������ r �ϰ�
(z = f(x,y) ���r 褷�Ƥ���Ȥ���y ����)�ϱƶd� ��d �
� ����

‫�� ؤ���� ܤ‬Ƥϡ��ʲ�����:`set xrange`��


�ϰϤ˴‫����������������˴ؤ‬

����ѿ � ⡼ � � (parametric) � Ǥ ⼫ư �ν ܵ�p


ǽ����Ǥ�
� ( p ʲ����� :
`set parametric`)�����ξ�硢��� ¿���ν�°�ѿ����Τǡ�x, y, z ��
���˴‫��ؤ‬ơ����¿����)�椬�Ԥ��� � ���‫ޤ‬ ��ѿ � ⡼ � ɤ Ǥ � � � Ω � ѿ � (� �
�ѿ�) �� `plot` �Ǥ� t �� `splot` �Ǥ� u, v �Ǥ�������������ѿ � ⡼ � �
�Ǥϡ���ư��ܵ�ǽ�� (t, u, v, x, y, z) ��t�Ƥ��r��ϰϤ�)�椷�� x,
y, z ���ϰϤμ�ư�����t�˹Ԥ������

��9�꤬��� 2 �μ���ɽ�����졢�����⤳���μ����Ф����r 褬�Ԥ��ʤ�


�ä����ˤϡ�x2range �� y2range �� xrange �� yrange �����Ѥ���
���� � ��
��������ϡ��ϰϤΤ��餷�μ¹Ԥ 䡢�ϰϤ � 0��Ĥ���9����˼�ư� �������
��p�‫˹פ‬Ԥ� ����Τ ǡ����ˤ�
�ͽ��ʤ���̤
ä � ⤿ � 餹��
ǽ-������
����������� � ��
� Τˡ��� 2 �����ϰϤ��� 1
�����ϰϤ��<�Ū�˥��
(link) ������ˡ�����������ʲ�����: `set link`��

��:

Ϳ�
�ʲ��� y ���μ�ư��ܵ�ǽ�������� (¾�μ��ˤϱƶd��� ����):
set autoscale y

��ʲ��� y ���κǾ���� �Ф ��Ƥ Τ ��ư��ܵ�ǽ�������� (y ���κ����ο�


�����¾�μ��ˤϱƶd��� Ϳ� ����):
set autoscale ymin

�ʲ��� x2 �����٤���9��‫ؤ‬μ�ư�ϰϳ��絡 ǽ�����ˤ�����ä��r�ǡ�


���⡢����ϴ ‫���ؿ‬Ф������٤��r��ϰϤ�‫�ݻ�ޤ‬:
set autoscale x2fixmin
set autoscale x2fixmax

�ʲ��� x, y ξ���μ�ư��ܵ�ǽ��������:
set autoscale xy

�ʲ��� x, y, z, x2, y2 t���μ�ư��ܵ�ǽ��������:


set autoscale

�ʲ��� x, y, z, x2, y2 t���μ�ư��ܵ�ǽ��‫�������ޤ‬


‫ػ‬ ߤ��� �:
unset autoscale

�ʲ��� z ���Τ ߤˤ Ĥ��Ƽ�ư�� ܵ�ǽ��‫�������ޤ‬


‫ػ‬ ߤ��� �:
unset autoscale z
C 4 �˺�ɸ�⡼�� (polar)
4 polar mode
?commands set autoscale polar
?set autoscale polar
�˺�ɸ�⡼�� (`set polar`) �Ǥϡ�xrange �� yrange �ϼ�ư��‫ܥ‬⡼�ɤǤ�
�ʤ��ʤ�����ư� ¼ � � � � ϰ � ) � � � Ѥ � `set rrange` � � � � Ѥ � � � � � 硢 xrange
�� yrange �Ϥ���˹礦�褦� ˼� ư�� Ū Ĵ0��������������������ˤ����
Ĵ0��������С����θ���<�Ū�� xrange �� yrange ���‫�ޥ‬ɤ �Ȥ � � � � Ȥ �
�Ǥ�������ʲ�����: `set rrange`��

�ʲ��⻲��
^ <a href="http://www.gnuplot.info/demo/poldat.html">
�˺�ɸ�Υǥ⡣
^ </a>
3 bind
?commands show bind
?show bind
=bind
`show bind` �ϡ����ߤΥ ‫ۥ‬åȥ����γ����� (binding) ��ɽ�����������
������: `bind`��
3 bmargin
?commands set bmargin
?set bmargin
?bmargin
���‫` ��ޥ‬set bmargin` �ϡ������;��Υ������������٤ ܺ ����‫�ޤ‬
�ʲ�����: `set margin`��
C 3 ����դ���� (border)
3 border
?commands set border
?commands unset border
?commands show border
?set border
?set border polar
?unset border
?show border
?border
?noborder
`set border` �� `unset border` �� `plot` �� `splot` �ǤΥ���դ��Ȥ�
ɽ����)�椷������Ȥ�ɬ�����⼴�Ȥϰ��‫��פ‬ʤ����Ȥ���դ��Ƥ��$�����
`plot` �Ǥ������� ‫`�����פ�� ޤ‬splot` �Ǥ�������‫��פ‬Ƥ�� ����

��:
set border {<integer>}
{front | back | behind}
{linestyle | ls <line_style>}
{linetype | lt <line_type>} {linewidth | lw <line_width>}
{linecolor | lc <colorspec>} {dashtype | dt <dashtype>}
{polar}
unset border
show border

`set view 56,103` �Τ 褦�� Ǥ�դ�����ɽ�����줿줬륦 � �


`splot` �Ǥϡ� x-y
ʿ �� � � 4 � Ĥγ Ѥ � � � p (`front`), � � � (`back`) , � � (`left`), � �
(`right`) �Τ 褦�˸ƤФ� ������d� � ���Ʊ��4 �ĤγѤ�ŷ�����ˤ�
����������äơ��㤨��x-y ʿ �� � θ � � ȱ � � γ Ѥ � Ĥ ʤ � � � � � � �
"��α���� (bottom right back)" �ȸ$������ŷ��μ�p�γѤ�Ĥʤ���
���� "��ľ��p (front vertical)" �ȸƤ֤��Ȥˤ���� (���� � ˡ�ϡ���
�Ԥ�����ɽ����뤿� � � � $��˻Ȥ����)��

�Ȥϡ�12 �ӥåȤ�0�����沽����Ƥ�� 4 ���� : �‫� ޤ‬ӥåȤ� `plot` ����


���뷿뼰볰 �`splot` ���Ф��Ƥ������
ȡ� γ �ȡ�����4 �ӥåȤ� `splot` �α�ľ
�ʳ��ȡ������ƾ�� 4 �ӥåȤ� `splot` ��ŷ����γ��Ȥ�)�椷��������
�Ƴ��Ȥ�����ϡ�����ɽ���б�������‫ܤ‬ο����¤ˤʤ���:
@start table - first is interactive cleartext form
�ӥå� plot splot
1 �� ����p
2 �� �����
4 �� ����p
8 �� �����
16 ���ʤ� ��ľ��
32 ���ʤ� ��ľ���
64 ���ʤ� ��ľ��
128 ���ʤ� ��ľ��p
256 ���ʤ� ŷ��κ����
512 ���ʤ� ŷ��α����
1024 ���ʤ� ŷ��κ���p
2048 ���ʤ� ŷ��α���p
4096 �˺�ɸ�� ���ʤ�
#\begin{tabular}{|c|c|c|} \hline
#\multicolumn{3}{|c|}{����ն�������沽} \\ \hline \hline
#�ӥå� & plot & splot \\ \hline
#1 & �� & ����p \\
#2 & �� & ����� \\
#4 & �� & ����p \\
#8 & �� & ����� \\
#16 & ���ʤ� & ��ľ�� \\
#32 & ���ʤ� & ��ľ��� \\
#64 & ���ʤ� & ��ľ�� \\
#128 & ���ʤ� & ��ľ�μ�p \\
#256 & ���ʤ� & ŷ��κ���� \\
#512 & ���ʤ� & ŷ��α���� \\
#1024 & ���ʤ� & ŷ��κ���p \\
#2048 & ���ʤ� & ŷ��α���p \\
#4096 & �˺�ɸ�� & ���ʤ� \\
%c c c .
%�ӥå� @plot@splot
%_
%1@��@����p
%2@��@�����
%4@��@����p
%8@��@�����
%16@���ʤ�@��ľ��
%32@���ʤ�@��ľ���
%64@���ʤ�@��ľ��
%128@���ʤ�@��ľ��p
%256@���ʤ�@ŷ��κ����
%512@���ʤ�@ŷ��α����
%1024@���ʤ�@ŷ��κ���p
%2048@���ʤ�@ŷ��α���p
%4096@�˺�ɸ��@���ʤ�
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="right">
^ <col align="center">
^ <col align="center">
^</colgroup>
^<thead>
^<tr> <th>�ӥå�</th> <th>plot</th> <th>splot</th></tr>
^</thead>
^<tbody>
^<tr> <td>1</td> <td>��</td> <td>����p</td></tr>
^<tr> <td>2</td> <td>��</td> <td>�����</td></tr>
^<tr> <td>4</td> <td>��</td> <td>����p</td></tr>
^<tr> <td>8</td> <td>��</td> <td>�����</td></tr>
^<tr> <td>16</td> <td>���ʤ�</td> <td>��ľ��</td></tr>
^<tr> <td>32</td> <td>���ʤ�</td> <td>��ľ���</td></tr>
^<tr> <td>64</td> <td>���ʤ�</td> <td>��ľ��</td></tr>
^<tr> <td>128</td> <td>���ʤ�</td> <td>��ľ��p</td></tr>
^<tr> <td>256</td> <td>���ʤ�</td> <td>ŷ��κ����</td></tr>
^<tr> <td>512</td> <td>���ʤ�</td> <td>ŷ��α����</td></tr>
^<tr> <td>1024</td> <td>���ʤ�</td> <td>ŷ��κ���p</td></tr>
^<tr> <td>2048</td> <td>���ʤ�</td> <td>ŷ��α���p</td></tr>
^<tr> <td>4096</td> <td>�˺�ɸ��</td> <td>���ʤ�</td></tr>
^</tbody>
^</table>

��ǥե���Ȥ������ � �ͤ31 ǡ������ `plot` �Ǥ� 4 ���γ���t�ơ�


`splot` �Ǥ���������t��� z �����d����Ȥ����������

2 �����r�Ǥ϶����Ϥ��٤Ƥ��r����Ǥ� ‫���־‬d����� (`front`)��


ΰ �
� ⤷ �������r����Ǥβ����d����������ϡ�`set border back`
�Ȥ��Ƥ���
������

3 ����������� (hidden3d) �r�Ǥϡ���϶�����.��������r����Ǥ�


Ʊ�� ˱� � � � � � � � о ‫ݤ‬ˤʤ�����`set border behind` �Ȥ���Ȥ��Υǥե�
��Ȥε�ư���Ѥ������

<linestyle>, <linetype>, <linewidth>, <linecolor>, <dashtype> �����


�ơ�������r�ˤ�����ȿ�Ǥ����뤳�Ȥ��Ǥ��ߤ���) �‫ޤ‬ν������֤�����
���Ȥ����Τ˸���� � ��)��
����ˡ����ι�� (tics) ���r 褹�� ‫ݤ‬⡢����� � �������
� � � � � � r 褹�뤫 ��
������r 褹�뤫�˴‫�ؤ‬餺����� Υ 饤�
����������Ѥ������


p�p �� � p 뤳�Ȥǡ����Ⱥ��ʳ��ζ�������9����d�
`plot` �Ǥϡ��� 2 ������ˤ��
���Ȥ��Ǥ��ܺ �٤ ���‫ޤ‬ϡ��ʲ�����: `xtics`��

"`unset surface; set contour base`" �ʤɤˤ�ä� `splot` ������ˤΤ�


�r 褹���硢�� ľ���ŷ��Ϥ���餬��� �� �
Ƥ��Ƥ��褵��
r ����

`set grid` �Υ��‫' ����ץ‬back', 'front', 'layerdefault' �Ǥ⡢�r����


������ � ��
� �֤� )��Ǥ������

������� `polar` �ϡ�� �ɸ����դ


� ˺߷dζ�����Ĥ������
˱ �� � � � ��

��:

�ʲ��ϡ��ǥե���Ȥ�������d����:
set border

�ʲ��ϡ�`plot` �ǤϺ��Ȳ���`splot` �Ǥ�����κ���p�Ⱥ������������


�����:
set border 3

�ʲ��ϡ�`splot` �Ǽ���˴�t��Ȣ���d����:
set border 4095

�ʲ��ϡ���p�α�ľ���ŷ��Τʤ�Ȣ���d����:
set border 127+256+512 # ����� set border 1023-128
� ʲ� � ϡ� `plot` � � � Ф� � ƾ � ȱ � � � � � Τ ߤ� � �

d� � � � � � � � �
Ȥ�9 � � � � �� �
� � � � � ‫ �ޤ‬:
unset xtics; unset ytics; set x2tics; set y2tics; set border 12

C 3 � %� � � � � � (boxwidth)
3 boxwidth
?commands set boxwidth
?commands show boxwidth
?set boxwidth
?show boxwidth
?boxwidth
� � � ‫` � �ޥ‬set boxwidth` � � `boxes`, `boxerrorbars`, `boxplot`,
`candlesticks`, `histograms` � � � � � � � � ˤ� � � � � � $Υǥ ե � � � Ȥ� � � � � � � �
� � � 뤿�� ˻ Ȥ� � ‫� � �ޤ‬

��:
set boxwidth {<width>} {absolute|relative}
show boxwidth

� ǥ ե � � � ȤǤϡ� � ٤� 礦�$� � ‫ � � �ܤ‬褦�˳ ơ����$������� ‫� � � � �ޤ‬


� � Ȥϰ ۤʤ �ǥե���Ȥ��� � � � � �� � ˤ� `set boxwidth` ��� ‫ �ޥ‬ɤ� � � �
� � � ‫` � � �ޤ‬relative` � ξ� � � � � ϡ� � ǥ ե � � � Ȥ� � � � � Ф� � � � � Ǥ� � � Ȳ� �
� � � � ‫� � �ޤ‬

� � � � � � `relative` � � � � �� ʤ��ä���硢�$� � � (boxwidth) � Ȥ� � ƻ � � �


� 줿뤬줿 �Ū� � �� ϡ� � � � ߤ� x � � � � ñ�� Ǥ ο� � (`absolute`) � Ǥ� � � Ȳ� �
<�
� � � � ‫ � � �ޤ‬x � � � � � п� (� ʲ� � � � � : `set log`) � Ǥ� � � � 硢 boxwidth � � � �
� ϼ º ‫ݤ‬ˤ� x=1 �ǤΤ� "����Ū" �Ȥʤꡢ� � � �ʪ��Ū��Ĺ������t�Τ����
� � � ‫ � � �( �ݻ��ޤ‬ʤ � a� � $� x � � ɸ� � � � äˤȤ� ʤ äƶ � � � � ʤ ä� � � �
� � � ‫ � � �) � � �ޤ‬п� � x � � � � � ϰ Ϥ � x=1 � � � � Υ� � Ƥ� � � � � ϡ� Ŭ� ‫� � � �ڤ‬
� � � Ф� � ˤϲ� � ٤���Ƥ ߤ�ɬ�‫�� ������פ‬ Τ� ‫���ޤ‬

� ǥ ե � � � Ȥ����ϡ` b oxes` � � `boxerrorbars` � � � � � � � � � � � � � � � Ѥ� � ɲ ä�


� ǡ � � � � � � � <� Ū� ������ � � Ф � � � ˤ� ä� �֤�������� 4 ���‫ � � ޤ‬Υǡ � � �
� ξ� 硢��4 � � � ‫��ܤ‬ � � � $� � � Ȥ� � ƻ Ȥ� � 2.0 - ���������$������‫ޤ‬
� ξ� � ˤ� � $� � � ϼ� ư������
٤� �����‫ޤ‬
���
��� � ��ϡ� � ʲ� � � � � : `style boxes`,
`style boxerrorbars`� �

� $� � � � ư Ū� ˥� � åȤ� � � ˤ�
set boxwidth

� Ȥ� � 롢������
뤤 4 ��Υ ǡ ������Ф ��Ƥ ϰ ʲ ��Τ 褦�ˤ ��‫���ޤ‬
set boxwidth -2

`plot` �Υ ���� �� `using` ��Ȥ ä Ƥ�Ʊ ����� ��$ 뤳�Ȥ ��Ǥ �� ‫�ޤ‬:
plot 'file' using 1:2:3:4:(-2)

�$ ����ư Ū �����Ⱦʬ�ˤ���ˤ�
set boxwidth 0.5 relative

�$ ����� � � � Ū � � � � 2 �ˤ���ˤ�
set boxwidth 2 absolute
C 3 ��� 顼�⡼�� (color)
3 color
?commands set color
?set color
gnuplot �ϡ� 2 � Ĥΰ ۤʤ��� ‫�ﷲ‬ �
�‫ ��ݡ‬Ȥ ��Ƥ �� ‫ ����ޤ‬ǥե���ȤǤϡ���
������ � ˰ ۤʤ뺹뿧륳 ��
�Ѥ�
�� ‫ ��������ޤ‬ο ������ � � � � � � � � d � � � � Ȥ �Ǥ � � �
����� ⤦ � � Ĥ � � � � � � � � ǡ � � � � / � � � � ѥ � � � � � � � � � Τ ߤ�������
� �
� ‫` ��ޤ������ޥ‬set color` �ϥ�� 顼������j� � � ‫����ޤ‬ʲ� � � � � :
`set monochrome`, `set linetype`, `set colorsequence`��
C 3 ������ � (colorsequence)
3 colorsequence
?commands set colorsequence
?set colorsequence
?colorsequence
�� :
set colorsequence {default|classic|podo}

`set colorsequence default` �ϡ����Ϸ | �� ˰ � ¸ � � � ʤ � 8 ��� ν ��� � � j


�� �‫����ޤ‬ʲ� � � � � : `set linetype`, `colors` � �

`set colorsequence classic` �ϡ����Ϸ | ��� ˤ�� Υ ɥ 饤�Ф��Ѱդ���� � �


������ j� �‫������ޤ‬μ ���ϡ� 4 ����� � 100 �� Ķ �‫�������ޤ���� ޤ‬
�� ¿ ���ϡ� �֡�� С �� ġ �� 硢�忧��������ǻϤ‫ޤ‬
� �‫������ޤ‬줿줬줬 ��
p���Ǥ�
gnuplot �Υ ǥե���Ȥ ε �ư �Ǥ�� �

`set colorsequence podo` �ϡ� Wong (2011) [Nature Methods 8:441] �ǿ 侩


����Ƥ�� 롢 P ���� D �� (Protanopia, Deuteranopia) � ο ���Ԥ��ư ‫� � �˶פ‬
�Ǥ��� 8 �����Ȥ�� j� �‫���ޤ‬

������ ξ ��Ǥ ⡢ ���� � Ĺ �� �Ȥ � � ο ��ˤ Ĥ ��ƤϤ� � �˥�� � � � � ‫����ޥ‬Ǥ���


�����ʲ���� � : `set linetype`, `colors`��
3 clabel
?commands set clabel
?commands unset clabel
?commands show clabel
?set clabel
?unset clabel
?show clabel
?clabel
��� Υ �� ‫�ޥ‬ɤ � � � 侩�Ǥ����� � � � `set cntrlabel` ����Ѥ��Ƥ�� $ ���� �
`unset clabel` �� `set cntrlabel onecolor` �ˡ� `set clabel "format"`
�� `set cntrlabel format "format"` �� �֤����� äƤ��‫���ޤ‬
C 3 ���� å ԥ� (clip)
3 clip
?commands set clip
?commands unset clip
?commands show clip
?set clip
?unset clip
?show clip
?clip
�� :
set clip {points|one|two}
unset clip {points|one|two}
show clip

�ǥե���Ȥ ξ ��� :
unset clip points
set clip one
unset clip two

������ ΰ � ζ ��� � � � � 濴�����


�ǡ����$ϡ������$�ɽ������Υ���������
��ε ��� � γ � ��ˤ Ϥ
�� ߤ$��Ƥ�� ‫��ޤ‬褦�ʾ��Ǥ⡢����r 褷�‫���ޤ‬
`set clip points` �ϡ� 2 ����� r �Ǥ�� Τ 褦���
$�� 濴�������ΰ
����ˤ�
����Ǥ ⡢ ��� Τ 褦��� å� �ԥ �� ‫� ( �ޤ‬Ĥ ‫��ޤ‬r 褷�‫����)���ޤ‬
$ $�

��� 濴�������ΰ�賰�ˤ���褦�ʥǡ� � � �
$ϡ � � 褷���r 褷�‫���ޤ‬

�ʬ�ˤ Ĥ ��Ƥϡ���� ΰ ��� � ü � $ �� r ��ϰ � (xrange �� yrange) � γ ��ˤ���


���ϡ��� 綠��� ʬ��� r 褷�‫���ޤ‬
`set clip one` �ϡ���� � � ü � $ �� r ��ϰ Ϥ γ ��ˤ� � � �ʬ � � � ϰ � � � � � �ʬ � �
�r 褹��褦��`gnuplot` � ˻ ‫���ؼ����ޤ‬
`set clip two` �ϡ� ξ ��� ü � $ �� r ��ϰ Ϥ γ ��ˤ� � � �ʬ � � � ϰ � � � � � �ʬ � �
�r 褹��褦��`gnuplot` � ˻ ‫���ؼ����ޤ‬
�ʬ t � Τ �� r ��ϰϳ��Ǥ�� � 褦��� ʬ�Ϸ 褷��� r 褷�‫���ޤ‬

��� :

* `set clip` �ϡ�� r 襹������`lines`, `linespoints`, `points`,


`vectors` �� 8. ���� � � ! ��ʬ� Τ ߤ˱ƶd � � ‫���ޤ‬

* `pm3d` �� 2 ����� ͱƤ���� ǻ ��Ѥ�� 뿧 Ĺ �� dΥ ��� å�� ԥ ϡ�


`set pm3d clip1in` �� `set pm3d clip4in` �ǹԤ�� ‫���ޤ‬

* �� �� ������ ȤΥ ��� å�� ԥ ϡ��


ġ �� Υ � ��������� (object) ��
`{clip|noclip}` °-�� ) � 椷�‫���ޤ‬

C 3 ������ ٥� (cntrlabel)
3 cntrlabel
?commands set cntrlabel
?commands show cntrlabel
?set cntrlabel
?show cntrlabel
?cntrlabel
�� :
set cntrlabel {format "format"} {font "font"}
set cntrlabel {start <int>} {interval <int>}
set contrlabel onecolor

`set cntrlabel` �ϡ���� � � � (�ǥե��� � ) ���� `splot ... with labels` ��


� ‫ݤ‬Υ ���վ ��� � � � � Υ � ٥��)�椷�‫�����ޤ‬Ԥξ �硢�� ٥�ϥ � ٥뵭
�� °- �� `pointinterval` �� `pointnumber` �˽� � ä Ƴ���� � � ˱ � ä � � � � �
���� ‫����ޤ‬ǥե���ȤǤϥ� ٥��������. ���� 5 ��� ‫��ܤ‬ʬ� ξ ����
��� 졢 20 �Ĥ ��ʬ�� ˷ � � � �֤��� ‫������ޤ‬Υǥե���Ȥϡ��ʲ���Ʊ���Ǥ�:
set cntrlabel start 5 interval 20
������ �� ϥ� � ‫` ��ޥ‬set cntrlabel` �ǡ��� � ��� `splot` ��� ‫�ޥ‬ɤ˴�
� ֤������ 뤳�Ȥ��ѹ��Ǥ�� ‫�ޤ‬:
set contours; splot $FOO with labels point pointinterval -1
� ֳ֤�����
� ���� �� � ȡ� � �٥�ϳ������� 1 �Ĥ$��Ĥ�� ‫���������ޤ‬
`set samples` �� `set isosamples` ��� 礭�� ��ξ ��� ¿ ��� � � � � � � � � �
��� Ĥ$ ���� d �� ‫���ޤ‬

���� (key) �ˤϡ����� � � ٥� �줾


� �� (linetype) ����Ѥ��ƽ �
����
��� ‫����ޤ‬ǥե���ȤǤϡ��� K�Ȥ������ � � Υ � ٥��Ϳ����
����
Τǡ 줾
���� Ф ����� �� Υ � ٥뤬����‫` ��ޤ������ޥ‬set cntrlabel onecolor` ��
��� ٤Ƥ�������Ʊ�������褹 r ��Τǡ�����ˤϰ� ĤΥ�٥�Τ ߤ��
� ‫������ޤ‬Υ�� ‫�ޥ‬ɤϡ � � Ť � � � � ‫` ��ޥ‬unset clabel` �� �֤�������� ΤǤ���
C 3 ���� ) �� (cntrparam)
3 cntrparam
?commands set cntrparam
?commands show cntrparam
?set cntrparam
?show cntrparam
?cntrparam
r 褹����ˡ � �
`set cntrparam` ������ � � 8. ��ˡ��� � � �Ӥ� � � � � 餫���
)�椷�‫`���ޤ‬show contour` �ϸ�� ߤ� `contour` ����� � $ ��Ǥ ʤ � `cntrparam`
������ � �ɽ � � � � � ‫���ޤ‬

�� :
set cntrparam { { linear
| cubicspline
| bspline
| points <n>
| order <n>
| levels { auto {<n>} | <n>
| discrete <z1> {,<z2>{,<z3>...}}
| incremental <start>, <incr> {,<end>}
}
}
}
show contour

��� Υ �� ‫�ޥ‬ɤ � 2 � Ĥε � ǽ � � � ä Ƥ � � ‫�����ޤ‬Ĥ ������ � � � � (�ǡ���� �


������ � ֡������ϴ ‫��ؿ‬ɸ�ܲ��(isosample) �ˤ���� ) �Ǥ� z ����� ��
��ǡ � � ⤦ � � Ĥ ϡ�� � � Τ 褦�˷�� ��줿 z ������Ʊ� Τ ��� � � � Ƿ � �
��ˡ�� ) ��Ǥ��� <n> �� 0 ����� � � <z1>, <z2> ... ��Ǥ�դ� � � � �
�����ƥ � � ‫�����ץ‬ѿ�ΰ ���ϼ����� �Ǥ�:

`linear`, `cubicspline`, `bspline` --- ��� (��� ) ��ˡ���� ��‫���ޤ‬


`linear` �ʤ� С �� � � � � ϶ � �� � � � � $ � 줿�� � �ʬ Ū �� ľ ��Ƿ�Ӥ ‫���ޤ‬
`cubicspline` (3 ����� ‫ץ‬饤�� ) �ʤ � С ���ʬ Ū �� ľ �� Ϥ � � � �֤� ʤ�餫
������ � � � $ � � � 褦��� �֤��� ‫����� ¿�����ޤ‬Ǥ IJ � ǽ- ����� � ‫���ޤ‬
`bspline` (B-spline) �ϡ���� � 餫�ʶ�����d����Ȥ��‫�����ݾڤ���ޤ‬
����� z ����� $ΰ � �֤��� Ƥ���$��Ǥ���

`points` --- �ǽ � Ū �ˤϡ� t �Ƥ�� r �ϡ�� �ʬ Ū �� ľ �� ǹԤ� � ‫�������ޤ‬


�ǻ �� �� ��ϡ� `bspline` � ‫` ���ޤ‬cubicspline` �Ǥζ �� ˻ Ȥ � � � � ʬ
�ο �� ) � 椷�‫����ޤ‬º ‫ݤ‬ˤ� cubicspline �� bspline �ζ�� (����ʬ) ��
��� `points` ���ʬ� ο ���Ѥ�� � � ʤ � ‫���ޤ‬

`order` --- bspline ��� μ ���Ǥ� � � � � � μ � � � � 礭���


ʤ�ˤĤ�ơ����
��Ϥ ʤ � 餫�ˤʤ�‫��� ( �ޤ‬d� ⼡��bspline
� ����ˤ ʤ �ۤɡ�����
��ʬ Ūľ ���� � � Υ ��Ƥ��� � ‫ ����� )�ޤ‬Υ �� ‫` �����ץ‬bspline` � ⡼ �ɤǤ�
��� ��Ǥ��� � � � �Ǥ � � � �� ϡ� 2 (ľ� ) ���� 10 � ‫ޤ‬Ǥ� 0 ��Ǥ���

`levels` --- ����� Υ � ٥�ο�ϡ� `auto` ( �ǥե��� � ), `discrete`,


`incremental` ������ � Υ � ٥�� <n> �� ) � 椷�‫���ޤ‬

`auto` �Ǥϡ� <n> �ϲ�� Υ � ٥�ο�Ǥ�� ꡢ�º ‫ݤ‬Υ�٥�ο �ϡ��� ñ � ʥ �


� ٥��8.���� 褦�� Ĵᤵ �ᤷ�� ‫������ޤ‬ � � z ��ɸ�� zmin ���� zman ����
�Ϥˤ�� �Ȥ � � � � � � � � Ϥ � � δ ֤� dz �� 0 ��� ‫ܤ‬ˤʤ�褦��
8.���� ‫�����ޤ‬
���ǡ � dz �� 10 � Τ ��� ٤���� 1, 2, 5 � ‫��ܡ‬Τ���� 줿줬뤳 � (2 � Ĥ ��� 9 ��
Ǥ�
�δ ֤����‫�ٳ���ڤ‬褦�� )��

`levels discrete` �Ǥϡ���� � �ϻ�� ��줿 z = <z1>, <z2> ... ��� Ф ���
8.���� ‫��������ޤ‬ ���
� �Ŀ������ Υ � ٥�θĿ�Ȥʤ� ‫`���ޤ‬discrete`
�⡼ �ɤǤϡ� `set cntrparams levels <n>` �Ȥ����� � �Ͼ ��� � 뤬뤬뤵
� �
‫���ޤ‬

`incremental` �Ǥϡ���� � � � z = <start> ���� Ϥ ‫ޤ‬ꡢ<increment> ����


��ƹԤ� � ³ �� θĿ �� ã ��� � ‫ޤ‬ǽǽ � ‫<���ޤ‬end> �Ϥ��� � � � � � ο �� �
� �� �
Τ˻Ȥ� � ‫���������ޤ‬ϸ� � `set cntrparam levels <n>` � ˤ� ä�
����ѹ��� � � ‫���ޤ‬z ����� п � ξ � 硢`set ztics` �ξ ���Ʊ�� ˡ�
<increment> �� �ܿ��
Ȥ��Ʋ ᤵ �ᤷ��
‫���ޤ‬

��� ‫` ��ޥ‬set cntrparam` ����� ʤ � � ˸ Ƥ Ф 줿���ϡ���� Υ ǥե � � � Ȥ �


�� � �Ȥ�� ‫�ޤ‬: linear, 5 points, order 4, 5 auto levels

�� :
set cntrparam bspline
set cntrparam points 7
set cntrparam order 10

�ʲ��ϥ� ٥�δ�ब �礨��5 �ĤΥ � ٥뤬�� ˼� ư Ū � � j� � � �‫�ޤ‬:


set cntrparam levels auto 5

�ʲ��� .1, .37, .9 �˥� ٥������� �‫�ޤ‬:


set cntrparam levels discrete .1,1/exp(1),.9

�ʲ��� 0 ���� 4 � ‫ޤ‬ǡ�1 ������䤹�� ٥�������


�‫�ޤ‬:
set cntrparam levels incremental 0,1,4

�ʲ��ϥ� ٥�ο �� 10 ����� �� ‫ �� ( �ޤ‬äκǸ���� (end) � ‫��ޤ‬ϼ�ư��


��� �� ��� ٥�ο���ѹ��� � � ‫)�ޤ‬:
set cntrparam levels 10

�ʲ��ϥ� ٥�ο��� ٥�‫�ݻ ޤޥ‬γ�����


� ���ʬ �� ���� �� ‫�ޤ‬:
set cntrparam levels incremental 100,50

������ � d ��� � � ) �� ˴ ‫��ؤ‬Ƥϡ��ʲ�����:`set contour`��������


Υ
� ٥�ν ν � � � � )
�� �˴ ‫��ؤ‬Ƥϡ��ʲ�����:`set cntrlabel`��

�ʲ�� ⻲�Ȥ��Ƥ�� $ ��� � �


^ <a href="http://www.gnuplot.info/demo/contours.html">
����� Υ ǥ� (contours.dem)
^ </a>
�����
^ <a href="http://www.gnuplot.info/demo/discrete.html">
� 桼����e�٥�������Υǥ� (discrete.dem).
^ </a>
C 3 ��� 顼�‫ܥ‬å��� (colorbox)
3 color box
?commands set colorbox
?commands show colorbox
?commands unset colorbox
?set colorbox
?show colorbox
?unset colorbox
?colorbox

��� ΰ ���ɽ� � � � � ʤ � � `pm3d` �� `palette` �� min_z ���� max_z � ‫ޤ‬Ǥγ �


� 餫�ʿ� � θ � �ۤϡ� `unset colorbox` ���Ȥ��Ƥ�� ʤ � � ¤ ꥫ�顼�‫ܥ‬å���
(colorbox) ��� d ��� ‫���ޤ‬

set colorbox
set colorbox {
{ vertical | horizontal } {{no}invert}
{ default | user }
{ origin x, y }
{ size x, y }
{ front | back }
{ noborder | bdefault | border [line style] }
}
show colorbox
unset colorbox

��� 顼�‫ܥ‬å���� ΰ � �֤ ϡ� `default` � ‫` ���ޤ‬user` �ǻ ���Ǥ��� � �Ԥ ξ ��


��� ΰ � �֤�� 礭����`origin` �� `size` ��� ‫�ޥ‬ɤ � � � � �� ‫������ޤ‬顼�‫�ܥ‬
�����ϡ� � � � � դ � � �� θ � (`front`) ��� ����� (`back`) ��� r 褵����

�Ȥ�Ǥ�� ‫���ޤ‬

����� ۤ����ϡ���� ‫` ����ץ‬vertical` �� `horizontal` ����� ‫��ؤ‬뤳�Ȥ�


�� ǽ �Ǥ���

`origin x, y` �� `size x, y` �� `user` ��� ‫����ץ‬Ȥ��ȤǤ Τ ���Ѥ���


� ‫���ޤ‬x, y ����ϡ��ǥե �� �ȤǤϥ � � � � �� �� � � � � ᤵ �ᤷ��
� �ɸ�Ȳ ‫���������ޤ‬
�� 3 ����� r ��Ѥ Τ ��� � � � ‫ޤ‬ä���� ‫��˲����ץ‬ � ‫`���ޤ‬set view map` ��
��� splot �� 2 �‫ ����� ޤ‬r �Ǥϡ�Ǥ�դ κ �ɸ� ϤǤ λ � �꤬ �ᤷ��ǽ�Ǥ���� 㤨
�аʲ��� ���Ƥ�ߤƤ��$���:
set colorbox horiz user origin .1,.02 size .8,.04
����Ͽ�ʿ�� � ο ��� �ۤ �β� � �� դ��� r褷�‫���ޤ‬
� ��� դ

`border` �϶�� � � r �� ON �ˤ�� ‫� ( �ޤ‬ǥե�� � � ) ���� `noborder` �϶�� � � �


��� OFF �ˤ�� ‫`���ޤ‬border` �θ ��� 5 �� 0 ��� Ϳ��� � ȡ � � � ��
���� � � �
� �� �
� 褹���� line style �Υ ����Ȥ� � ƻȤ � � ‫����ޤ‬㤨��:
set style line 2604 linetype -1 linewidth .4
set colorbox border 2604
�� line style `2604`����� ʤ � z ٤���Υǥե���Ȥζ�����(-1) �Ƕ�����
�r 褷�‫`���ޤ‬bdefault` ( �ǥե�� � � ) �ϡ���� 顼�‫ܥ‬å ���� ζ ���� � � r �˥�
�ե���Ȥ ζ ���� � line style ��Ȥ�� ‫���ޤ‬

��� 顼�‫ܥ‬å���� μ ��� `cb` �ȸƤ Ф 졢�� � μ �� Υ �� ‫�ޥ‬ɤ � ) � 椵��‫���ޤ‬


��� ʤ � � `set/unset/show` �� `cbrange`, `[m]cbtics`, `format cb`,
`grid [m]cb`, `cblabel` �ʤɤ��� � � � � � � ¿ ʬ `cbdata`, `[no]cbdtics`,
`[no]cbmtics` �ʤɤ�Ȥ�� �Ǥ� � 礦��

�ѥ� ���� � ��� `set colorbox` �ϥǥե � � � Ȥ ΰ � �֤���� ‫���ؤ��ޤ‬


`unset colorbox` �ϥ�� 顼�‫ܥ‬å���� Υ ѥ� �� ��� ꥻ�
ǥե�����˥�
�� å�
������ � ξ �ǥ � � 顼�‫ܥ‬å����� OFF �ˤ�� ‫���ޤ‬

�ʲ�� ⻲�� : `set pm3d`, `set palette`, `x11 pm3d`, `set style line`��
C 3 ��� (colornames)
3 colornames
?colornames
?show colornames
?commands show colornames
?show palette colornames
gnuplot �ϸ�� ��줿�Ŀ�ο ���� p ��� ä Ƥ�� ‫��������ޤ‬ϡ� pm3d �ѥ�
�å ȤǤĤ ʤ� � � 뿧���ϰϤ � � � d � � � Τ ˡ � � � � ��ϸġ�������饤� ��� �
���� ο ���� �Ϸ | �� ˰ � ¸ � � � ʤ � � d � � � d � � � � �� �
Τ˻Ȥ� � ‫���ޤ‬gnuplot
�λ � Ŀ �� � ΰ ����ˤϡ����
� � ��� � � � ‫` ��ޥ‬show colornames` ����Ѥ��Ƥ���
������ � � :

set style line 1 linecolor "sea-green"


C 3 ���� (contour)
3 contour
?commands set contour
?commands unset contour
?commands show contour
?set contour
?unset contour
?show contour
?contour
?contours
?nocontour
��� ‫` ��ޥ‬set contour` �϶��� �� � � � � � � � Ȥ � ‫������ؼ����ޤ‬Υ���
������ `splot` �Ǥ Τ��� �Ǥ����� � �ϡ� � ʻ Ҿ � ǡ � � � (grid data) ��ɬ
� ‫פ‬Ȥ�� ܺ�
٤ ���‫ޤ‬ϡ��ʲ����� : `grid_data`����ʻҾ � ǡ � � � � � � � � � � � � �
������ � � �ϡ � � ʻ Ҥ � 8. ��� 뤿���`set dgrid3d` ����Ѥ�� ‫���ޤ‬

�� :
set contour {base | surface | both}
unset contour
show contour

������ 3 � ĤΥ �� ‫�����������ץ‬ɤ� � ˰ � � � � � �� ‫`���ޤ‬base` ��


������ � � x/y ��� ι � ߤΤ ������� �� d �� 졢`surface` �Ǥ���� � � Ϥ � � �
���� �� Τξ ��� d �� 졢`both` �Ǥ����� ȶ��� �� ξ �� � � d ��� ‫�������ޤ‬
����� ��
� �
� �� �
Ƥ��ʤ�����`base` �Ǥ���Ȳ�� �� �‫���ޤ‬

������ � r � ˱ ƶ d � Ϳ���ѥ
� � �� ��
ˤ Ĥ��Ƥϡ��ʲ�����:
`set cntrparam`������ � Υ � ‫��(��˴ؤ‬٥��Ƥϡ��ʲ�����:
`set cntrlabel`��

����� Τ ߤΥ���դ�� $ 뤿�� ˡ � � � �ν � � Ȥ � � r褦� � � 뤳ʤ��Ȥ�


� ˤ�� �
�Ǥ�� ‫�( �ޤ‬ʲ����� : `unset surface`)�� `set size` ��Ȥ ä ơ���� � դ � �
�� � �դ�� r 褹���
뤳 Ȥ�� ǽ �Ǥ��� � � � � � � � � � ä � � � �Ϸ | ���� ⡢ ��� � � Υ �
������ ǡ � � � ��� ˽ Ф ���� � � � �Ƥ� 2 ����� ǡ � � � � Ȥ � � � �ɤ ߹���
å ��˽ ˽
��� r 褹��Ф�� 褤)�椬�� ǽ�ˤʤ� ‫�ޤ‬:

unset surface
set contour
set cntrparam ...
set table $datablock
splot ...
unset table
# ����� ξ �� �Ϻ� $datablock ����ˤ�� �
set term <whatever>
plot $datablock

������ � d ��� � �ˤϡ�� ǡ � � � �ϳʻҾ � ǡ � � � ("grid data") �Ǥ���ɬ � ‫�פ‬


���� ‫������ޤ‬Τ 褦�y- ʥե�����Ǥϡ���
� ��Ĥ � � ��
Ω t Ƥ �
� �
$� � �
�¤ ٤��Ƥ���� ٤ ���������‫ �ޤ‬y-�� Ω ����� $ �� � � � ¤ ٤�졢�������١�
�� ³ ���Ƥ��� � ‫���ޤ‬y-�� Ω �Ʊ� Τ �ʬ Υ ����ˤϰ �Ԥ ζ �� (������ �
���
ʳ���ʸ��
� � � �� � �‫ޤ‬ � ) � � ߤ‫����ޤ‬ʲ����� : `splot datafile`��
� ‫ޤ‬ʤ����

�ʲ�� ⻲�Ȥ��Ƥ�� $ ��� � �


^ <a href="http://www.gnuplot.info/demo/contours.html">
����� Υ ǥ� (contours.dem)
^ </a>
�����
^ <a href="http://www.gnuplot.info/demo/discrete.html">
� 桼����e�٥�������Υǥ� (discrete.dem).
^ </a>
C 3 ��� / ��� � � � � (dashtype)
3 dashtype
?commands set dashtype
?commands show dashtype
?set dashtype
?show dashtype
��� ‫` ��ޥ‬set dashtype` �ϡ���� / ��� � ѥ � � � � � � �ֹ�ǻ��ȤǤ��� 褦��
��Ͽ��� ‫�������ޤ‬ϤȤƤ�����ǡ��������/����ѥ������ � � �ֹ�Ǽ�

�Ĥ ��Ƥ����� � ʤ � С � �ɤ � �Ǥ� � < � Ū ��� � � / �� � � ѥ � � � � � � � Ĥ � � �
���� ‫���ޤ‬
�� :
set dashtype 5 (2,4,2,6) # 5 �֤� dashtype ���� d ‫��ޤ‬Ϻ � � � �
plot f1(x) dt 5 # ���� dashtype ��Ȥ ä � plot
plot f1(x) dt (2,4,2,6) # ��� t ��Ʊ�� � � � � �
set linetype 5 dt 5 # ��� Υ ѥ��� � � � linetype 5 � Ǿ � ˻ Ȥ �
set dashtype 66 "..-" # ʸ� � � � ǿ � � � � � dashtype �����
�ʲ����� : `dashtype`��
3 data style
?set data style
��� Υ �� ‫�ޥ‬ɤη| � � ϸ � � ߤϿ 侩����Ƥ��‫��ޤ‬ � � ʲ����� :
`set style data`��
3 datafile
?set datafile
?show datafile
��� ‫` ��ޥ‬set datafile` �ϡ� `plot`, `splot`, `fit` ��� ‫�ޥ‬ɤ � � � ϥ ǡ �
�����ɤ���ˡ��� � � � � (field) � β �� λ ���� ) � 椹� 뤬쥹륪‫�������ץ‬

�ߤ������‫ޤ‬ϡ� 6 � ĤΤ �� Τ 褦�ʥ��‫���ץ‬ � �����
���� Ƥ��‫���ޤ‬
4 set datafile fortran
?set datafile fortran
?show datafile fortran
?fortran
��� ‫` ��ޥ‬set datafile fortran` �ϡ���ϥ ե � � � � � � Fortran D ���� Q ��
������������ʥe�� å ���� ǽ �ˤ�� ‫����������ޤ‬ � ʥ e �� å ���� �Ͻ � � � �
� ‫���� ޤ‬٤��Τǡ��º ‫ݤ‬ˤ��Υǡ����ե���� 뤬 Fortran D ���� Q ������ � �
�� äƤ�����ˤ Τ ߤ����j� � �٤��Ǥ������ Υ �� ‫����ץ‬ϡ���� θ ��
`unset datafile fortran` ��Ԥ���� ��ˤǤ�� ‫���ޤ‬
4 set datafile nofpe_trap
?set datafile nofpe_trap
?fpe_trap
?nofpe_trap
=floating point exceptions
��� ‫` ��ޥ‬set datafile nofpe_trap` �ϡ���ϥ ե � � � � �� � ǡ������ɤ߹�
� ߤκ ‫ݤ‬ˡ� � � � ٤Ƥο��ɾ�d�p����ư������ 㳰�
� ϥ�ɥ�κƽ���
�ʤ� � 褦��gnuplot ��� ᤷ �ᤷ� ‫�������ޤ‬ˤ�ꡢ�ȤƤ�� 礭�ʥե���� �� �
�Υ ǡ���� � � � Ϥ � � � � ʤ � ® � � � ʤ � ‫�������ޤ‬ư������ � 㳰���������� ‫�ץ‬
˥�
���� ब�‫۾‬ェ λ���Ƥ�� ‫����ޤ‬Ϥ���‫���ޤ‬
4 set datafile missing
?set datafile missing
?show datafile missing
?set missing
?missing
�� :
set datafile missing "<string>"
set datafile missing NaN
show datafile missing
unset datafile

��� ‫` ��ޥ‬set datafile missing` �ϡ���ϥ ǡ � � � � ե � � � � � � � Ƿ � » � ǡ � � � � �


���Ҥ�� � � � �� �ʸ��� ��
� �
�� 뤳�Ȥ� `gnuplot` � ˻
‫`���ؼ����ޤ‬missing` ��
� ‫���ؤ‬ǥե������(ʸ��) �Ϥ��� ‫���ޤ‬gnuplot �ϡ ַ�»�ǡ���� ‫פ‬ȡ��
����‫ � ( � ޥ‬㤨�� "NaN" �� 1/0) ����� �� ‫����ޤ‬㤨�С �Ϣ³ ���� ǡ � � � � $ �
�Ф �� 뤬쥹볰 �
� ‫���ޤ‬r�ϡ�� �����ˤ � äƤ������ ‫�»�������ڤ�ޤ‬ǡ�
դ��
��� ξ �� Ϥ � � � � Ǥ Ϥ � � � ‫���ޤ‬
���� ��� �Ԥ � � � � � �� ǿ ��� ǤϤ ʤ � ʸ � � � 줿���ϡ���� 줬 `missing`
�ǻ �� �� �
ʸ �� � �˥ ‫ޥ‬åd������ �ơ � �� �� » � ǡ � � � �Ǥ Ϥ ʤ � � �� � �
���� Ȥ��Ʋ ᤷ �ᤷ�‫���ޤ‬

�դˡ� `set datafile missing NaN` �Ȥ��� ȡ � � � � ǡ � � � � � ο ���Ǥ Ϥ�


���� (NaN) �Ϥ�� ٤Ʒ� » � ǡ � � � � Ȥ � � ư � � � � ‫���ޤ‬

`��� `: ����� � η � » � ǡ � � � � �� �� � �� ΰ ����ϡ�� � � ߤΥС������ �


gnuplot �Ǥ��ѹ��� � �Ƥ�� ‫����ޤ‬ʲ����� ǡ � gnuplot �С ����� � 4 �ȥ С �
����� 5 �Ǥ ΰ 㤤� ����� ‫���ޤ‬
Ffigure_missing
�� :
set style data linespoints
plot '-' title "(a)"
1 10
2 20
3 ?
4 40
5 50
e
set datafile missing "?"
plot '-' title "(b)"
1 10
2 20
3 ?
4 40
5 50
e
plot '-' using 1:2 title "(c)"
1 10
2 20
3 NaN
4 40
5 50
e
plot '-' using 1:($2) title "(d)"
1 10
2 20
3 NaN
4 40
5 50
e

(a) �Υ ���դϡ� 3 ��� ‫ܤ‬ˤ���������ҤȤĤ����ʤ���� ᡢ gnuplot 4 ��


gnuplot 5 �ǰ 㤤������ ‫����ޤ‬С������ 4 �Ǥϡ����� � � 1 �Ԥ� 1 � Ĥ ���
�ǡ��� � � � ʤ � � ä � � � � ε � § �� Ŭ �Ѥ���� � �ֹ�� "x" �ˡ��ǡ � � � � � "y" �ȸ�
�ʤ� � � � � ä Ƥ��� � $ � (2,3) ��� r 褷�Ƥ��‫�����ޤ‬

ʸ� � '?' ���� » �ǡ � � � � � �� �� � � � Τ Ȥ��ƻ�� �� �Ƥ���(b) �Ǥϡ��Ť�


�Ǥ� gnuplot �Ǥ ⿷����� ǤǤ�Ʊ��� ǡ � � � � � 5 � � � � � � � � ‫���ޤ‬

(c), (d) �Υ ���դ˸��� � � 褦�ˡ � � Ť � gnuplot �Ǥ � NaN � � using � λ �


�� λ ���ˤ� ä ư ۤʤä�����Ƥ��
� � ߤ��������‫ޤ‬ϡ� gnuplot ����� � � �
����

���� N �Ȼ�� �� � Ƥ��Ƥ�($N) �Ȼ�� �� �Ƥ��Ƥ�NaN ���Ф��Ƥ�Ʊ����


���Ԥ�� ‫����ޤ‬ʲ�� Υ ǥ� ⻲�Ȥ��Ƥ�� $ ���� �
^ <a href="http://www.gnuplot.info/demo/mgr.html">
imageNaN �ǥ⡣
^ </a>
�С ����� � 5.0.6 ��� $ ǡ� � � � �Ϸ � » �� ե 饰�˴‫��ؤ‬Ƥ�5�����Ǥ�����p
�ΥС ����� �Ǥϡ� plot ��� ‫�ޥ‬ɤ� `using N` � Ǥ Ϥ ʤ � `using ($N)` � � �
� �� ���� ϡ��� » �� ե 饰��ǧ���˴ְ㤤����� �
ߤ����������������‫�ޤ‬
gnuplot �Ǥ�� ä Ƥ⡢ � �����ǡַ�»� ‫���פ ޥ‬Ѥ � � � Ȥ � � η �� � NaN � Ȥ �
� ꤦ � 뤳�Ȥ���դ��Ƥ�� $ ��� � � � 㤨�С �1 ��� ‫ ���ܤ‬2 � ‫` �ܤ‬missing` ��ʸ
��� � � ����
� � � �硢`using ($1+$2)` �ˤ��ɾ� d � NaN �Ȥ ʤ � ‫������ޤ‬ξ��
�Ǥ⤳ ���� » �� Ȥ��ư � � � � � � � � � С � � � � ‫` ��ޥ‬set datafile missing NaN`
����Ѥ��Ƥ�� $ ��� � �
4 set datafile separator
?set datafile separator
?show datafile separator
?datafile separator
?separator
��� ‫` ��ޥ‬set datafile separator` �ϡ���� θ ��� � ϥ ե � � � � � Υ ǡ � � � � � �
ʬ Υ ʸ� � � � � � (whitespace) �Ǥʤ��ơ����� � ǻ �� �� � ʸ ��Ǥ����
`gnuplot` � ˻ ‫������ؼ����ޤ‬Υ�� ‫�ޥ‬ɤκ Ǥ � � � � Ū � ʻ � � � � � ϡ � ɽ � ������
�Ȥ�ǡ � � � � ١������եȤ���� csv (���� ‫� )����ڤ‬ե���� � � �ɤ �� �Ǥ �
� 礦��� ǥե���ȤΥǡ������ʬΥʸ��϶���(whitespace) �Ǥ���

�� :
set datafile separator {whitespace | tab | comma | "<chars>"}

�� :
# �� �� ��‫�ڤ‬Υե���������
set datafile separator "\t"

# ����‫����ڤ‬Υե���������
set datafile separator comma

# ��ϥե � � � � 뤬 * �� | � Τ ���� 줿줬뤳 Ƕ��‫�ڤ‬


� 줿����ľ��
set datafile separator "*|"
4 set datafile commentschars
?set datafile commentschars
?commentschars
��� ‫` ��ޥ‬set datafile commentschars` �ϡ��ǡ � � � � ե � � � � � � � Υ � � � � ȹ �
�γ ���ʸ��Ȥ��Ƥɤ�ʸ���Ȥ � � � � � � � �� ‫��������ޤ‬ ��
�ʸ� � � � � ΰ � Ĥ �
�ǡ��� �Ԥ κǽ ��� � � � �ʸ � �Ȥ � � Ƹ � � � 줿��硢���Υǡ����ԤΤ���ʹ ߤ�
��ʬ��� � 뤬뤬뤷 �
‫����ޤ‬ ǥե����ʸ����ϡ�VMS �Ǥ�"#!"������ʳ��Ǥ�"#"
�Ǥ���

�� :
set datafile commentschars {"<string>"}
show datafile commentschars
unset commentschars

�� ä ơ�� ǡ � � � � ե � � � � � ΰ ʲ�� ι Ԥϴ� t ��� � 뤬뤬뤵


��
‫�ޤ‬:
# 1 2 3 4
�����ʲ�� ι �
1 # 3 4
�ϡ� 2 ��� ߤ�������˥‫����ܤ‬ꡢ���θ �����ʥǡ����� 3 ��� ‫ ���ܤ‬4 ‫ܤ‬ˤ����

ǧ������ ‫���ޤ‬

�� :
set datafile commentschars "#!%"
4 set datafile binary
?set datafile binary
��� ‫` ��ޥ‬set datafile binary` �ϡ��ǡ � � � � ե � � � � � � �ɤ ߹�����˥Х���
��ե��� � � � ǥ ե � � � Ȥ � � � � �� � � � ϡ���� 줬 `plot`
Τ˻Ȥ� � ‫����ޤ‬
� ‫` ���ޤ‬splot` ��� ‫�ޥ‬ɤǻȤ � � � Τ � 5 � Τ � Ʊ � � � Ǥ � � � < b i nary list> � �
�� ��
� ��� ‫����ܤ‬
ɤ˴‫��ؤ‬Ƥϡ�� ϡ��ʲ�����: `binary matrix`,
`binary general`��

��:
set datafile binary <binary list>
show datafile binary
show datafile
unset datafile

��:
set datafile binary filetype=auto
set datafile binary array=(512,512) format="%uchar"

?show datafile binary


show datafile binary ߤ�����
# ��� ΰ���ɽ��
C 3 ����������(desimalsign)
3 decimalsign
?commands set decimalsign
?commands show decimalsign
?commands unset decimalsign
?set decimalsign
?show decimalsign
?unset decimalsign
?decimalsign
=locale
���‫` ��ޥ‬set decimalsign` �ϡ���9��θ��Ф��������� `set label` ʸ
����˽��
���
�ξ ��� 5����� j� � ‫���ޤ‬

��:
set decimalsign {<value> | locale {"<locale>"}}
unset decimalsign
show decimalsign

ƻȤ�ʸ����Ǥ���ŵ��Ū��
�֤������
��� <value> �ϡ����ξ����5����
��Τϥԥ ꥪ��'.' �䥳���',' �Ǥ���¾�ˤ���Ѥʤ�Τ�����Ǥ�� 礦��
��� <value> ���ά����ȡ������$ζ��‫�ڤ‬ϥǥե���� (�ԥ ꥪ�� ) ����
�ѹ�����‫���ޤ‬unset decimalsign �� <value> ���ά����Τ�Ʊ������
��d‫���ޤ‬

��:

¿���Υ衼��å ѽ��Ǥ�5 �������Ϸ | ����$ �ˤ�:


set decimalsign ','

�� ��硢��
���Τ��Ȥ���դ��Ƥ��$���: �<�Ū��ʸ�������� � �� ϼ�����
�9��ʤɤ� gnuplot ���gprintf() �‫�ؿ‬ǽ��Ϥ�������Τߤ˱ƶd���

ν ��ϥǡ���
ν�
ν�� �νν��
��sprintf()
�� �� ‫�ؿ‬ǽ��Ϥ�������ˤϱƶd���
�������
�η| ����Ϥ���Ϥ��ε �ư���ѹ����������ϡ�����˰ʲ���
���Ѥ��Ƥ��$���:

set decimalsign locale

ν ����ϡ�gnuplot �ˡ���ϤȽ��Ϥν Ķ
ν��ѿ� LC_ALL, LC_NUMERIC,
LANG �θ��ߤ�����˽��ä���Τ�Ȥ碌��褦� ˤ��‫���ޤ‬

set decimalsign locale "foo"

ν ����ϡ�gnuplot �ˡ���ϤȽ��Ϥν� ν
��"foo"
��� ˽�� ä���Τ�
� � �‫�����ޤ‬Υ�
����
��뤬����ȡ��뤬뤬뤵 �

Ƥ���ɬ�‫����פ�����ޤ‬ ⤷ ��
���� "foo" �����Ĥ���ʤ��ä���硢���顼�� ��졢������
������������

��������ѹ�����‫ ���ޤ‬linux �����ƥ�� �


ϡ������˥��

���������� �� Ǥ 뤬뤬뤵
ȡ��
� ���

���������ΰ���� "locale -a" �Ǹ��뤳�Ȥ�������‫ ���ޤ‬linux �Υ���


��ʸ�����$����� "sl_SI.UTF-8" �Τ 褦�ʷ|�� Ƥ��‫ �����ޤ‬Windows
�����
�Υ�����ʸ����� "Slovenian_Slovenia.1250"���‫" ���ޤ‬slovenian" �Τ�
����ʷ|��Ǥ�
���������ʸ����β��ϡ�C �Υ� � ���
饤�֥��� �꤬ Ԥ���
�Ȥ���դ��Ƥ��$������Ť� C �饤�֥�� �ϡ �������������‫���ݡ‬
Υ
(�㤨�п��� 3 ����ζ��‫ �ڤ‬ʸ��ʤ�) ����ʬŪ�ˤ���� ��Ƥ��ʤ�����
��
�������������
����‫���ޤ‬

set decimalsign locale; set decimalsign "."

����ϡ����ߤΥ�����˹�ä��ɤ�ʾ����$Ǥ �t�Ƥ�����Ϥ ��Ф��ƻ�


�Ѥ���褦����� ��‫ �����ޤ‬gnuplot ������‫ �ؿ‬gprintf() ��Ȥä� �ƽ �
���������<��Ū���� ˻ 줿 '.' �ˤʤ�‫��)���( �ޤ‬
���

C 3 �ʻҾ�ǡ������� (dgrid3d)
3 dgrid3d
?commands set dgrid3d
?commands unset dgrid3d
?commands show dgrid3d
?set dgrid3d
?unset dgrid3d
?show dgrid3d
?dgrid3d
?nodgrid3d
=kdensity
���‫` ��ޥ‬set dgrid3d` �ϡ���ʻҾ�ǡ�������ʻҾ�ǡ����‫ؤ‬μ���ǽ��
���ˤ������Τ���Υѥ��� ���������‫ ����ޤ‬ʻҾ�ǡ����ι�¤�ˤĤ���
�ξܺ٤ϡ��ʲ�����: `splot grid_data`��

��:
set dgrid3d {<rows>} {,{<cols>}}
{ splines |
qnorm {<norm>} |
(gauss | cauchy | exp | box | hann)
{kdensity} {<dx>} {,<dy>} }
unset dgrid3d
show dgrid3d

�ǥե���ȤǤ� `dgrid3d` ��� ��ˤʤäƤ��‫� ��ޤ‬ � ��ˤʤ�ȡ��ե�����


�����ɤ߹�� 3 � �‫����� ޤ‬Υǡ����ϡֻ��‫ߤ����ץ‬ǡ � � � ( � �ʻ Ҿ � ǡ � � � )
�Ǥ���ȸ��ʤ���‫ ����ޤ‬ʻҤϡ�����դ��������r�Τ���ˡ����ߤ�����
�d ��� $���#ˡ�ȡ�row_size/col_size �ǻ���� ���
��������� ι�
������Ĥ 褦�� 8.����‫ ����ޤ‬ʻҤ� x �� (��) �� y �� (��) �����
�֤Ǥ ���ϻ��
����
z�� ߤ�����ǡ � � � � �
� � z � � �� νŤ � � դ � � � ʿ � ѡ � � ‫ ��ޤ‬ϥ � � ‫�ץ‬
‫ ����������ޤ‬$��Ѥ���С���§Ū�ʴֳ֤γʻҤ�8.���졢
������֤Ȥ��Ʒ
t�Ƥγʻ��$Ǹ��Υǡ����γ꤫ � ʶ�����ɾ�d���‫ � �����ޤ‬Υǡ � � � � � � � �
��ˤ��ζ������� 褵��‫���ޤ‬
��r
��

�ǥե���Ȥ���ο�ϹԤο���������Υǥե���Ȥ�� ��10 ������


� �Ǥ
��

���Υǡ������������� ������ 뤿�� Τ����Ĥ��Υ��르 ���


ꥺ ब� Ѱդ����
���ơ��ɲäΥ���� ������ Τ⤢��‫ ֤� � � � � ������ޤ‬ϡ��ʻ�
�� ���
�$˶ᤤ � ǡ � � � � $ ۤɡ����γʻ��$��Ф��Ƥ�겼뤬줿 ƶ�
��d�
Ϳ�
�� ‫���ޤ‬

`splines` ���르����
ꥺ ϡ�"��Ĥ���" � � ˤ�����ַ ���� Ԥ��‫���ޤ‬
������ɲå���� �����
‫���ޤ‬

`qnorm` ���르����ꥺ ϳ Ƴʻ ��$ ���ϥ ǡ ����ν Ť ��դ �ʿ �Ѥ�


‫����ޤ‬ ����
���$ϳʻ��$���ε�Υ�� norm ��εտ�ǽŤ��դ�����‫�( ���ޤ‬º ‫ݤ‬ˤϡ�
dx, dy ��ƥǡ����$ȳʻ��$Ȥκ���.ʬ�Ǥ���Ȥ���ȡ��Ť ߤ� dx^norm
+ dy^norm �������� 2 � ��‫� ޤ‬Τ ٤�� ΥΥ���ä� 4, 8, 16 �˴‫ ��ؤ‬Ƥϡ�
���νŤ ߤη��� � 桼���� åɵ�Υ��Ȥ����Ȥ� (dx^2+dy^2)^norm/2 �Τ 褦
�˺�Ŭ������Ƥ ‫ �����ޤ‬Ǥ� դ���ʤ� Ǥ 0���Ȥ����Ȥ��ǽ�Ǥ���) �Υ��
�Τ ٤��� ���0�Ĥ��ɲ
� å�ѥ� �� �� ��‫ � �����ޤ‬Υ��르��
Ȥ��ƻ������ ꥺ
�ब�ǥե���ȤˤʤäƤ��‫���ޤ‬

�Ǹ�ˡ��Ť��դ�ʿ��η��� �ˡ ���������ʿ�겼켫뤵
Ĥ �
Ť��դ��‫ؿ‬� (kernel)
���Ѱդ���Ƥ��‫ �ޤ‬: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), ������ z_i
�� i ���‫ܤ‬Υǡ � � � � � �� ǡ � d _i � ϸ � � ߤγʻ��$� i ���‫ܤ‬Υǡ � � � � $ ΰ � �֤�
�ε�Υ��������
������٤ƤνŤ��դ��ߤ����������� �‫ؿ‬γʻ��$˶ᤤ�� Υǡ � � � � $ ˤ �
�礭�ʽŤ ߡ����� Υǡ � � � � $ ˤ Ͼ � � � � � � Ť ߤ�� դ��‫���ޤ‬

�ʲ��νŤ��դ��‫�ޤ ��� ���ؿ‬


�:
gauss : w(d) = exp(-d*d)
cauchy : w(d) = 1/(1 + d*d)
exp : w(d) = exp(-d)
box : w(d) = 1 d<1 ��
= 0 ����¾
hann : w(d) = 0.5*(1-cos(2*pi*d)) d<1 ��
w(d) = 0 ����¾

����� 5 �Ĥ�ʿ�겼켫뤵 �
Ť��դ��‫�ؿ‬ Τ��p�Ĥ��������
����硢 2 �Ĥ ‫�� ��ޤ‬
�å���� �dx �� dy �������� ��‫ � � ������ޤ‬ϡ���Υ�η����� ˺�ɸ�ΰ�
���
� ������
������ ȤΤ Ѵ˻�� ‫ �ޤ‬:
d_i = sqrt( ((x-x_i)/dx)**2 + ((y-y_i)/dy)**2 ), �����ǡ�x,y �ϸ��ߤ�
�ʻ��$κ�ɸ�ǡ�x_i,y_i �� i ���‫ܤ‬Υǡ � � � � $ κ � ɸ � Ǥ � � � d y � Υ ǥե � � � �
�������dx ǡ���� Υ�
ǥե���Ȥ���
� ���1 ˤʤ äƤ��‫� ���� ����ޤ‬dx ��
dy �ϡ��ǡ����$��ʻ��$֥‫ء‬ǡ � � � � � � 켫켫뷿
Ȥ��
ñ��
ǡ ‫פ‬δ����ϰ
�� ����
Ϥ� Ԥ�
)����ǽ�ˤ��‫���ޤ‬

���‫� ���ץ‬��
��� ��
�� �
�� `kdensity` �ϡ��Ť��դ��‫��ؿ‬θ��� (���
‫����ץ‬
��) ���������Ѵ��Υѥ��� ���p���֤��� Τǡ � � � � � � � � 르������
ꥺ ѹ�
���ơ��ʻ����Ѥ˷������ ��� Ť ߤ��� ( z = Sum_i w(d_i) * z_i ) �Ǥϳ�
��ʤ��褦�ˤ��‫ ���ޤ‬z_i �����٤���� ξ�硢���� ϻ�¾ � 2 � ѿ � ν Ť �
�դ�ɾ�d��r 褷�‫ �ޤ‬: (��� 5 �ĤΤ��dΰ�Ĥ�) �Ť��դ��‫ �ؿ‬ƥǡ���
֤ �� 졢�����νŤ ٤ � ���¤ ��ߤƤγʻ��$�ɾ�d��졢�����Ƹ��Υǡ�
�$��
��������ˤ��γ�餫�ʶ�����r 褵��‫ � ������ޤ‬ϡ�1 �����Υǡ�������
���Ф��� `smooth kdensity` ���‫���ץ‬ � � Ԥ����ȤȤ����‫ ��ޤ‬ˤ�Ʊ����� �
(������� kdensity2d.dem � � Ȥ��Ƥ��
$���)��

����ߴ� -�Τ���ˡ��鷺��� ˰ۤʤ�� �⥵�


� ‫ ��ݡ‬Ȥ���Ƥ��‫ ����ޤ‬ɤΥ���
��������< ��Ū��j�� ʤ�����
ä 硢`qnorm` ���르���
ꥺ ब����� �

3 �İʲ��Ρ������ (,) ���‫ �ڤ‬Υ��‫����� ���� ����ץ‬ �����
������ ϡ�
� � 줾��Կ��������� norm �� Ǥ���Ȳ ᤷ � �
����� ‫���ޤ‬

���‫` ����ץ‬dgrid3d` �ϡ����ߤ��� ǡ � � � � � Ť � � դ � ʿ � Ѥ ǵ � § Ū �ʳʻҤ �


�֤���� ����ʻ��Ȥ
ñ ߤ˲��
�‫��ޤ‬
� ��
� �
� �
� �
� �
� �
� �
� �
� �
� Ф���������줿��ˡ

��¸�‫ ��ߤ��ޤ‬Τǡ � � � � � ñ � � � � � ˡ � � � Խ � ʬ � Ǥ � � � С � ` g nuplot` � γ � � Ǥ � � �


�褦����ˡ�ǥǡ�����p�����٤�� �� � 礦��

�ʲ��⻲��
^ <a href="http://www.gnuplot.info/demo/dgrid3d.html">
dgrid3d.dem: dgrid3d �Υǥ�
^ </a>
�����
^ <a href="http://www.gnuplot.info/demo/scatter.html">
scatter.dem: dgrid3d �Υǥ�
^ </a>

C 3 ���ѿ� (dummy)
3 dummy
?commands set dummy
?commands show dummy
?set dummy
?show dummy
?unset dummy
?dummy
���‫` ��ޥ‬set dummy` �ϥǥե���Ȥβ��ѿ��
���ѹ����‫���ޤ‬

��:
set dummy {<dummy-var>} {,<dummy-var>}
show dummy

�ǥե���ȤǤϡ�`gnuplot` �� `plot` �Ǥϡ����� ѿ�⡼�ɡ ���� ��϶ ˺ �


ɸ� ⡼�ɤǤ� "t", �����Ǥʤ���� "x" ����Ω�ѿ� (���ѿ�) �Ȥ���Ʊ���
ϡ����� ѿ�⡼�ɤǤ� (`splot` �϶ ˺ �ɸ�⡼�ɤǤϻȤ�� ‫) ���ޤ‬
`splot` �����
"u" �� "v", �����Ǥʤ���� "x" �� "y" ����Ω�ѿ�Ȥ��‫���ޤ‬

���ѿ�ϡ�ʪ��Ū� �
��

Τ˰���p�������Ϥ � � � � �p��Ȥ��ƻȤ���
��
��礦���㤨� С����֤ δ ‫ ���ؿ‬r 褹����:
�������

set dummy t
plot sin(t), cos(t)

��:
set dummy u,v
set dummy ,s

�������ϡ�2 ���‫ ��ܤ‬ѿ�� s �Ȥ��‫ ������ޤ‬ѿ���ǥե���Ȥ���


� � �

�ˤϰʲ��Τ 褦�ˤ��Ƥ��$�����

unset dummy
C 3 ʸ��
� ����
�� (encoding)
3 encoding
?commands set encoding
?commands show encoding
?set encoding
?show encoding
?encoding
?encodings
?utf8
?sjis
=UTF-8
=SJIS
���‫` ��ޥ‬set encoding` ��ʸ��Υ��
�����
� (encoding) ��
j�� ‫���ޤ‬

��:
set encoding {<value>}
set encoding locale
show encoding

������ (value) �ϰʲ������Ǥ���


default - ���Ϸ|��˥ǥե���ȤΥ�� ����ɤ
�λ ��� ��
��� �Ѥ
iso_8859_1 - UTF-8 ��������
�Ū �> �衼�� å������Υ�
��ɡ����
��� ��ɤ�PostScript ��$����� 'ISO-Latin1' ��� ����
iso_8859_15 - �桼����� ‫ �ޤ‬iso_8859_1 �ΰ���
iso_8859_2 - ���/��衼�� å�ǻ� � ���
���� 뤬쥹륨 ����

��
iso_8859_9 - (Latin5 �Ȥ����Τ���) �ȥ 뤬쥹륳 ǻ�������
���뤬쥹륨 �
����

koi8r - �ɤ��Ȥ��� Unix �Υ����ʸ�� ���
�����
koi8u - Unix �Υ����饤������ Υ����ʸ�� ���
�����
cp437 - MS-DOS �Υ����ɥ ‫���ڡ‬
cp850 - >�衼�� å�� OS/2 �Υ����ɥ ‫���ڡ‬
cp852 - ���/��衼�� å�� OS/2 �Υ����ɥ ‫���ڡ‬
cp950 - MS ��� Big5 (emf terminal ��)
cp1250 - ���/��衼�� å�� MS Windows �Υ����ɥ ‫���ڡ‬
cp1251 - ����������ӥ����֥ 륬 �����
ꥢ ‫ ��ޥ‬ɥ˥��� (8 �ӥå�)
cp1252 - >�衼�� å�� MS Windows �Υ����ɥ ‫���ڡ‬
cp1254 - �ȥ 뤬쥹륳 �
� Windows �Υ����ɥ ‫( ���ڡ‬Latin5 �γ�ĥ)
MS
sjis - Shift_JIS ��� �� 줿뤿볰 ������
utf8 - ��ʸ��� Unicode ����ȥ�‫ ���ݥ‬ȤΡ�����Ĺ (�‫ �ޥ‬e�
����) ɽ��

���‫` ��ޥ‬set encoding locale` �ϡ�¾�Υ��‫ ����ץ‬Ȥϰ 㤤������ ϸ���


�Υ������¹Ի��δĶ���������褦�Ȥ��‫ � � ������ޤ‬Ƥ��Υ����ƥ��� �
����ϴĶ��ѿ � LC_ALL, LC_CTYPE, LANG �Τ����줿줬뤳ˤ��
ä�)�椵��
‫���ޤ‬
���λ��Ȥ ߤϡ��㤨�� wxt, cairopdf ���Ϸ|��ǡ�UTF-8 �� EUC-JP �Τ 褦
�ʥ ‫ �ޥ‬eХ���ʸ�� ��ɤ���
��������������ɬ�‫�פ‬
������� � �������‫�ޥ‬
Υ ɤ����դ�
���ʤɤΥ�������d���
ɽ��
���ˤϱƶ
� �� Ϳ ‫���ޤ‬
���p �
�ʲ��⻲�� : `set locale`, `set decimalsign`��

����
˥�� ��ɤ�����ϡ���� 줬 Ŭ�‫ڤ‬ʥ��
��������������� ���Ȥ�
j � � ƶ�d����
����� 褦
�ˡ����Ϸ|��������p�˹Ԥʤ�ɬ�‫���פ�����ޤ‬
C 3 �����ü (errorbars)
3 errorbars
?commands set errorbars
?commands show errorbars
?set errorbars
?show errorbars
?errorbars
?commands set bars
?commands show bars
?set bars
?show bars
?bars
���‫` ��ޥ‬set errorbars` �ϡ�������� (errorbar) ��ξü�������
boxplot �ˤĤ�Ȣ�Ҥ���ξü�Υ ‫�) �����ޡ‬椷�‫���ޤ‬

��:
set errorbars {small | large | fullwidth | <size>} {front | back}
{line-properties}
unset errorbars
show errorbars

`small` �� 0.0 (����ʤ�)��`large` �� 1.0 ��Ʊ���Ǥ��������������

�ʤ���Хǥե���Ȥ�� ��1.0 ������


� �Ǥ
��
������� `fullwidth` �ϡ�errorbar ��ȼ�� boxplot �� histograms �ˤ�
�ߴ� Ϣ���‫ � � ������ޤ‬errorbar ��ξü������б�����Ȣ�����Ʊ��������

���‫ �����ޤ‬Ȣ�����Τ��ѹ����뤳�Ȥ����
���‫���ޤ‬

������� `front`, `back` �ϡ��ɤ�� ٤� Ĺ��dΤĤ��� errorbar �Τ ߤ�


��Ϣ���‫( �ޤ‬boxes, candlesticks, histograms)��

��� (errorbar) �ϡ��ǥե���ȤǤϴ� Ϣ���� Ȣ� ζ������Ʊ���°-����


�褷�‫ � � � � � � � ������ޤ‬Ѥ� Ѱ�դ����°-���ѹ��Ǥ��‫���ޤ‬

set errorbars linecolor black linewidth 0.5 dashtype '.'


C 3 ����t ‫( ��ؿ‬fit)
3 fit
?commands set fit
?commands show fit
?set fit
?show fit
?set fit quiet
?set fit verbose
?set fit brief
?set fit results
?set fit prescale
?set fit limit
?set fit maxiter
?set fit errorscaling
?set fit errorvariables
?set fit logfile
?set fit script
?set fit v4
?set fit v5
���‫` ��ޥ‬set fit` �ϡ�`fit` ���‫� ���ޥ‬Υ� � ‫�) �����ץ‬椷�‫���ޤ‬

��:
set fit {nolog | logfile {"<filename>"|default}}
{{no}quiet|results|brief|verbose}
{{no}errorvariables}
{{no}covariancevariables}
{{no}errorscaling}
{{no}prescale}
{maxiter <value>|default}
{limit <epsilon>|default}
{limit_abs <epsilon_abs>}
{start-lambda <value>|default}
{lambda-factor <value>|default}
{script {"<command>"|default}}
{v4 | v5}
unset fit
show fit

���‫` ����ץ‬logfile` �ϡ�`fit` ���‫ �ޥ‬ɤ����ν���� � �Ф ��������


���‫< ��� ���ޤ‬filename> �ϡ�ñ������䤫�� Ű�����ǰ���� �ɬ�‫������פ‬
�����ե������
������ ʤ��ä��� 硢�‫` ���ޤ‬unset fit` ����������� ������
�ϡ����ե�����
ǥ ϥ �Ȥե�� ���
� "fit.log"
��Ǥ �� ‫ ��ޤ‬ϴ Ķ � � ѿ �
`FIT_LOG` ���˥ꥻ�åȤ���‫� � � �� ���ޤ‬줿���
�� ե������� / �� \ ��
���äƤ����硢���� ϥǥ � 줿쥹뤿� ȥ����Ȳᤵ � �
졢���ե�����Ϥ��Υǥ�
�줿쥹뤿ȥ��
� "fit.log" �Ȥʤ�‫���ޤ‬

˽�ǥե���ȤǤϡ����Υ��ե������������ϡ����
�÷ ��� Ϥˤ���Ϥ�
�‫` ���ޤ‬set fit quiet` �� ������
�÷ ����
� դˤ���
� `results` Ϻǽ ����
�Τ ߤ��� �� � ‫` ���ޤ‬brief` �ϡ��ɲä� fit �Τ��٤Ƥη����֤�� ˴1
� ��‫ؤ‬
��
�Ԥ������� ��

� ��� ‫` ���ޤ‬verbose` �ϡ��С������ 5 ��p�ǥǥե���Ȥ$�
�����ܺ٤ʷ����֤������� Ԥ��‫���ޤ‬

���‫` ����ץ‬errorvariables` �� ON �ˤ���ȡ�`fit` ���‫ �ޥ‬ɤǷ����� 줿


� ��� ��
�ġ�����Ƥ���� θ��������Υѥ��� ��p ���� "_err" ��Ĥ�
p Υ 桼������
���� ѿ�˥��ԡ�����‫ � � �����ޤ‬ϼ�ˡ ���ƤϤ�‫ �ؿ‬ȥǡ�
�����r 襰��ξ ��� ��
դ �˥�� Ȥ��θ� �
�� Ȥ
���Ѥ
��
��
Ϥ˽ �
���
Τ ˻�
������:

set fit errorvariables


fit f(x) 'datafile' using 1:2 via a, b
print "error of a is:", a_err
set label 1 sprintf("a=%6.2f +/- %6.2f", a, a_err)
plot 'datafile' using 1:2, f(x)

���‫` ����ץ‬errorscaling` ������ ��(�ǥե����)���ѥ��� �� η��


������5�ּ��� (reduced ��-square) �ǿ���
��‫ � ������ޤ‬ϡ � � ��Ȥ ���
��5�
ּ ��� � ˤʤ 롢��Ƥ��
�� ����� ɸ���к� (FIT_STDFIT) �����ǡ���
����� � 뤳�Ȥ�Ʊ��ˤʤ�‫` ����ޤ������ץ‬noerrorscaling` ����
��
� ��� ϡ�
ɾ�x��ϡ��������ʤ���ƤϤ�ѥ��� ���ɸ���к��ˤʤ�‫���ޤ‬
�ǡ����νŤ ߤ��� �� �ʤ���� �� ��
С �ѥ� θ��Ͼ�˿������‫���ޤ‬

���‫` ����ץ‬prescale` ��� �ˤ���ȡ� Marquardt-Levenberg � 뤬롼뤤�


e����
��� ���
��p�ˡ��ƥ�� ��� �����
ν ˽��
� ƻä�����p �˥��������Ѵ�����
��������ϡ��ƥ�� ��� ���� 礭��� ˤ��ʤ��礭�ʰ 㤤�������ˡ ��������
��
Ǥ ����
��������
� � $�t ��� 0 ����Ƥ��� � �� ��
���
ѥ� ˤϡ��褷�Ƥ��� Ϥ
���������Ѵ��Ϲ ��Ԥ ‫���ޤ‬

‫` ����ץ‬maxiter` ��)�¤���0 � � � �����‫�� ޤ‬


ȿ ���θ³ ���ϡ ����

`default` �Ȥ���ȡ�����ϸ³����ʤ����Ȥ���
���‫���ޤ‬

���‫` ����ץ‬limit` �ϡ���«� � Ф � �� 뤿��Τ�äȤ⾮������θ �³�


�(1e-5) �Υǥե���Ȥ�� ��
Ȥ�ѹ�
�����
Τ ˻� ‫ � ������ޤ‬ĺ����¤����ο���
��
������Ψ���Ѳ��������ʤ����ϡ���Ƥ � ϡϤּ�«�����‫ �פ‬Ƚ�Ǥ���‫���ޤ‬
��

���‫` ����ץ‬limit_abs` �ϡ�����ĺ����¤��Ѳ��θ³� (������) ���ɲä�


�‫ ����ޤ‬ǥե���Ȥ� 0 �Ǥ���

���르����
ꥺ ˴‫������ ��)�� ���ؤ‬
� 硢������Marquardt-Levenberg

���르������
ꥺ ɤ��ΤäƤ����硢��� ��˱ ƶ dͿ�
��
��ʲ �� Υ� ‫����ץ‬
�������
��‫ �ޤ‬: `lambda` �ν���ϡ���K ư Ū�� ML-���
����
��
� � �� �������
���
������ɬ�‫פ‬ʤ�Х�� ‫` ����ץ‬start_lambda` ��ȤäƤ�������� 뤳�Ȥ���
���‫` � � ������ޤ‬default` �Ȥ���ȡ��ƤӼ�ư��� �꤬ ���ˤʤ�‫� � �����ޤ‬
����� `lambda_factor` �ϡ��о ‫ݤ‬Ȥ���‫ �ؿ‬Φּ������� ������ ����
����/��������Ȥ��Ͼ�� `lambda` ����ä�����/�����������Ҥ������ �

��������� `default` �Ȥ���ȡ��ǥե���Ȥΰ�ҤǤ��� 10.0 �ˤ��‫���ޤ‬

���‫` ����ץ‬script` �ϡ�fit �����Ǥ ����Ȥ��˼¹Ԥ ��� `gnuplot` ���‫�ޥ‬


�ɤ����� ��
ΤǤ� ���ʲ�����
: `fit`����������ϥǥե���Ȥ� `replot`
��Ķ��ѿ� `FIT_SCRIPT` ���� ����
�Ǥ
� Ͼ
���� ���
� �

���‫` ����ץ‬covariancevariables` ��� �ˤ���ȡ�� � �� ���


ǽ�Ū�ʥ��
�ζ�ʬ����桼������ ѿ����¸���‫ ����ޤ‬ƥ�� ��� ����
Ȥ��Ф��Ƥ��ζ�ʬ
������¸�����ѿ��
�ϡ�"FIT_COV_" �˺ǽ�Υѥ�����
�� "_" �� 2 ����
����� ���
Ĥʤ���p�ˤʤ�‫ ����ޤ‬㤨�Х���� �"a" �� "b" ����
���Ƥϡ����ζ�ʬ���ѿ��
�� "FIT_COV_a_b" �Ȥʤ�‫���ޤ‬

�С������ 5 ������� νѹ
ϡ����‫ ��ޥ‬fit �ν��
ν ����
�������
ν ν 졢�������� `error`

������� �Ƥ�� ʤ � � � � � ñ ��Ť � (`unitweights`) ���ǥե���Ȥˤʤ��


���������‫` ����ץ‬v4` �� gnuplot �С������ 4 �Υǥե���Ȥε�ư�����
�‫ ����ޤ‬ʲ��⻲�� : `fit`��
C 3 �ե���ȥѥ� (fontpath)
3 fontpath
?commands set fontpath
?commands show fontpath
?set fontpath
?show fontpath
?fontpath
`fontpath` ������ϡ��ե���ȥե�������ɤ߹�����Υե�����θ����
�����ɲ���d��‫ ������ޤ‬ΤȤ���postscript ���Ϸ|��Τ ߤ� `fontpath`
�� ‫��ݡ‬
� Ȥ��Ƥ��‫ ����ޤ‬ե����뤬���ߤΥǥ��줿쥹뤿 � Ĥ���ʤ��ä���
ȥ�˸��
�硢`fontpath` �Υǥ��줿쥹뤿 ȥ꤬��
����‫ ��ޤ������ݡ‬Ȥ��Ƥ���ե����
�ե�����η|��˴‫ ������ؤ�����ܤ‬$� `terminal postscript` ��������
���ʸ����ˤ���‫���ޤ‬

��:
set fontpath {"pathlist1" {"pathlist2"...}}
show fontpath

�ѥ����ñ��Υǥ��줿쥹뤿 ȥ��� �Υ ꥹ�ȤȤ���������


���‫ ���ޤ‬ʣ��Υѥ�� ���
����ʣ��Υѥ�����ʤ�ѥ��ꥹ�Ȥ� OS ��� �Υ
��ѥ��� ‫ڤ‬ꡢ �㤨�� Unix ��
� ��
����
(':'), MS-DOS, Windows, OS/2 ���� �� ߥ���� (';') ��Ƕ��‫�ڤ‬
�‫` ���ޤ‬show fontpath`, `save`, `save set` ���‫ �ޥ‬ɤϡ�����-�Τ����
OS ����Υ
��ѥ��� ‫�ڤ‬� ‫֤������ޤ‬
� ��� (' ') ���‫ ����ڡ‬ǥ��줿쥹뤿 ȥ���
����
���������� ���� ‫� )'!'( ���ޡ‬ǽ��äƤ����硢��� Υǥ��줿쥹뤿ȥ��
Υ�
�֥ǥ��줿쥹뤿 ȥ��
⸡���‫���ޤ‬

�Ķ��ѿ� GNUPLOT_FONTPATH ������� �Ƥ����硢������Ƥ� � `fontpath`


���ɲä���‫ � � ������ޤ‬줬����� �Ƥ��ʤ���祷���ƥ�˰�¸�����ǥե���
�Ȥ������ ����
��������
Ѥ�
� � ‫ ����ޤ‬ǽ�˥ե���ȥѥ���Ȥä��Ȥ��ˡ����δ�Ĥ��Υ�
���줿쥹뤿 �ߤ�� ��ƥ��Ȥ��졢���åȤ���‫ �����ޤ‬äơ����� ǽ��
ȥ꤬¸�
`set fontpath`, `show fontpath`, `save fontpath` �䡢���� ߥե����
������������
� `plot`, `splot` ϡ������� �֤������� ‫�������ޤ‬ � ��

�Ǥ�û����������С��Ķ��ѿ� GNUPLOT_FONTPATH ������� Ƥ��$���������

����Хǥ��줿쥹뤿ȥ��
Υe��å��� OFF �ˤʤ�‫ ����ޤ‬ǥե���ȤΥե���ȥ�
����ϡ�`show fontpath` �Ǹ��뤳�Ȥ�����
���������� ��‫���ޤ‬

`show fontpath` �ϡ��桼����


d� fontpath �ȥ����ƥ�� fontpath ����

��ɽ�����‫` �����ޤ‬save`, `save set` ���‫ �ޥ‬ɤϡ��桼���� d� `fontpath`
�Τ ‫���ߤ���¸���ޤ‬

gd �饤�֥� �� ���ƥե������ �ǥե���Ȥ˥�������������ϥɥ 饤�Ф�


�‫ ��ؤ‬Ƥϡ��ե���ȸ���ѥ��ϴĶ��ѿ� GDFONTPATH ��)�椵�� ‫���ޤ‬
C 3 �����
� (format)
3 format
?commands set format
?commands show format
?set format
?show format
?format
?format cb
��ɸ���ι�ߤθ��Ф��ϡ����‫` ��ޥ‬set format` �‫` ���ޤ‬set tics format`
�‫ ��ޤ‬ϸ���
˥��‫` ��ޥ‬set {��}tics format` �ǽǽ�����
ǽ ��ǽ ‫���ޤ‬
��������

��:
set format {<axes>} {"<format-string>"} {numeric|timedate|geographic}
show format

�����ǡ�<axes> (��) �� `x`, `y`, `xy`, `x2`, `y2`, `z`, `cb`���‫ ��ޤ‬ϲ�
������ ʤ���(���ξ� 礽�ν ννϤ� � ٤Ƥμ���Ŭ�����
���‫� ) �ޤ‬Τ����줫
������ʲ���
� 2 �ĤΥ� ‫ �ޥ‬ɤ�t��Ʊ����:�
set format y "%.2f"
set ytics format "%.2f"

��ʸ�����Ĺ���� 100 ʸ��‫ޤ‬ǡ � � � ) � ¤ � � � Ƥ � � ‫ ����ޤ‬ǥե���Ȥν�


ʸ����� "% h" �ǡ�LaTeX �Ϥν��Ϸ|��Ǥ� "$%h$" �Ǥ���¾�� "%.2f" ��
‫ �ޤ‬뤳�Ȥ�¿������
"%3.0em" �Τ 褦���ʽ ���� ��礦�� "set format" �θ��
�˲���Ĥ����˼¹Ԥ���ȡ��ǥե���Ȥ�ᤷ � � ‫���ޤ‬

��ʸ���� "" ������ ���硢�� ���Ȥ�ɽ�����‫ ������ޤ‬Ф���Ĥ��‫���ޤ‬


�����Ȥ�ä��ˤϡ� `unset xtics` �‫` ���ޤ‬set tics scale 0` ������

�Ƥ��$�����

��ʸ�����ϡ�����ʸ��
� (\n) �� ĥʸ������� (enhanced text) ��Υ�
�������å ‫ �פ‬Ȥ��‫ ��� ���ޤ‬ξ��ϡ�ñ������� (') �Ǥʤ� (") ��Ȥä�
���$������ʲ��⻲�� : `syntax`��
"%" ��Ƭ�ˤĤ��ʤ�ʸ��Ϥ��Τ ‫ �ޤ‬ɽ� � � � � � ‫ �����ޤ‬äơ���ʸ�������
���‫ �����ڡ‬ʸ����ʤɤ����뤳�Ȥ����� ��‫ ����ޤ‬㤨�� "%g m" �Ȥ���С�
����θ
���� " m" ��ɽ������‫" ���ޤ‬%" ���Ȥ�ɽ��������ˤ� "%g %%" ��
�褦��2 �ŤŤ�Ľ ‫���ޤ‬

˴
��‫������ߤؤ �����ܤ‬ � ˤĤ��Ƥϡ��ʲ��⻲�� : `set xtics`���‫���ޤ‬
������ˡ�ǽ��Ϥ������˥ǥե���Ȱʳ��ξ���ʬΥʸ���Ȥ������ˤ�
���Ƥϡ��ʲ�����: `set decimalsign`��
�ʲ��⻲�ȡ�
^ <a href="http://www.gnuplot.info/demo/electron.html">
���줿쥹뤿 � (�Ż�) �ǥ� (electron.dem).
ȥ��
^ </a>
4 gprintf
?gprintf
ʸ����‫ �ؿ‬gprintf("format",x) �ϡ�gnuplot ���‫ �ޥ‬ɤ� `set format`,
`set timestamp` �ʤɤ�Ʊ� Ρ
��gnuplot �ȼ��ν�ν
���Ҥ�Ȥ��

��������
ν
� ν ‫� � �����ޤ‬

ν��ν���Ҥϡ�ɸ��
�Ū ν� C �8�δ ‫�� �� �ؿ‬sprintf() �Τ�Τ�t��Ʊ
��������
���‫ ���ޤ‬gprintf() �ϡ�0�r��������ϰ�Ĥ�����Ĥ��‫�ޤ‬
� � ��
Τ���ˡ�gnuplot �ˤ� sprintf("format",x1,x2,...) � ‫ ���ؿ‬Ѱդ�
��Ƥ��‫ ���ޤ‬gnuplot � νν��νν ‫ ����ץ‬ΰ���ˤĤ��Ƥϡ��ʲ�����:
`format specifiers`��
C 4 ��� ����(format specifiers)
4 format specifiers
?commands set format specifiers
?set format specifiers
?format specifiers
?format_specifiers
���Ѳ�ǽ�ʽ� (����/���ե⡼�ɤǤʤ����) �ϰʲ�����
�Ǥ�:

@start table - first is interactive cleartext form


�� ����
%f ���꿷꾮륪 ��
���
ɽ�
%e, %E �‫ �ؿ‬ɽ�
��; ‫ ��ؿ‬p�� "e", "E" ��Ĥ���
%g, %G %e (�‫ ���ޤ‬%E) �� %f ��ά��
%h, %H %g �� "e%S" �Ǥʤ� "x10^{%S}" �� "*10^{%S}" ��Ĥ���
%x, %X 16 ��ɽ��
%o, %O 8 ��ɽ��
%t 10 �ʤβ�����
%l ���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ��
��
%s ���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ��
�;����ñ�� (scientific power)
%T 10 �ʤλ ‫���ؿ‬
%L ���ߤ�� п�‫ ������ܤ‬Ȥ���‫���ؿ‬
%S ���ñ��
λ ‫( ���ؿ‬scientific power)
%c ���ñ��ʸ��
%b ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) �β�����
%B ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ����Ƭ��
%P �Ф��ܿ��
#\begin{tabular}{|cl|} \hline
#\multicolumn{2}{|c|}{��9���٥� ͽ
�������}\\
#\hline \hline
#�� & ���� \\ \hline
#\verb@%f@ & ���꿷꾮륪 �����
\\
ɽ�
#\verb@%e@, \verb@%E@ & �‫ �ؿ‬ɽ�
��; ‫ ��ؿ‬p�� "e", "E" ��Ĥ��� \\
#\verb@%g@, \verb@%G@ & \verb@%e@ (�‫\ ���ޤ‬verb@%E@) �� \verb@%f@ ��ά�� \\
#\verb@%h@, \verb@%H@ & \verb@%g �� "e%S" �Ǥʤ� "x10^{%S}" �� "*10^{%S}" ��Ĥ���@\\

#\verb@%x@, \verb@%X@ & 16 ��ɽ�� \\


#\verb@%o@, \verb@%O@ & 8 ��ɽ�� \\
#\verb@%t@ & 10 �ʤβ����� \\
#\verb@%l@ & ���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ����
\\
#\verb@%s@ & ���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ���
;����ñ�� (scientific power) \\
#\verb@%T@ & 10 �ʤλ ‫\\ ���ؿ‬
#\verb@%L@ & ���ߤ�� п�‫ ������ܤ‬Ȥ���‫\\ ���ؿ‬
#\verb@%S@ & ���ñ��
λ ‫( ���ؿ‬scientific power) \\
#\verb@%c@ & ���ñ��ʸ�� \\
#\verb@%b@ & ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) �β�����\\
#\verb@%B@ & ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ����Ƭ��\\
#\verb@%P@ & �Ф��ܿ�� \\
%c l .
%��@����
%_
%%f@���꿷꾮륪 �
����
ɽ�
%%e, %E@�‫ �ؿ‬ɽ� ;
�� ‫ ��ؿ‬p�� "e", "E" ��Ĥ���
%%g, %G@%e (�‫ ���ޤ‬%E) �� %f ��ά��
%%h, %H@%g �� "e%S" �Ǥʤ� "x10^{%S}" �� "*10^{%S}" ��Ĥ���
%%x, %X@16 ��ɽ��
%%o, %O@8 ��ɽ��
%%t@10 �ʤβ�����
%%l@���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ��
��
%%s@���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 ��
�;����ñ�� (scientific power)
%%T@10 �ʤλ ‫���ؿ‬
%%L@���ߤ�� п�‫ ������ܤ‬Ȥ���‫���ؿ‬
%%S@���ñ��
λ ‫( ���ؿ‬scientific power)
%%c@���ñ��ʸ��
%%b@ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) �β�����
%%B@ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ����Ƭ��
%%P@�Ф��ܿ��
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th>��</th> <th>����</th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>%f</tt></td> <td>���꿷꾮륪 �
�ɽ�
��<�/td></tr>
^<tr> <td><tt>%e</tt>, <tt>%E</tt></td> <td>�‫ �ؿ‬ɽ� ��
; ‫ ��ؿ‬p�� "e", "E"
��Ĥ���</td></tr>
^<tr> <td><tt>%g</tt>, <tt>%G</tt></td> <td><tt>%e</tt> (�‫< ���ޤ‬tt>%E</tt>)
�� <tt>%f</tt>����</td></tr>
^<tr> <td><tt>%h</tt>, <tt>%H</tt></td> <td><tt>%g</tt> �� "e%S" �������
"x10^{%S}" �� "*10^{%S}" ��Ĥ���</td></tr>
^<tr> <td><tt>%x</tt>, <tt>%X</tt></td> <td>16 ��ɽ��</td></tr>
^<tr> <td><tt>%o</tt>, <tt>%O</tt></td> <td>8 ��ɽ��</td></tr>
^<tr> <td><tt>%t</tt></td> <td>10 �ʤβ�����</td></tr>
^<tr> <td><tt>%l</tt></td> <td>���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 �
�� �
</td></tr>
^<tr> <td><tt>%s</tt></td> <td>���ߤ�� п�‫ ������ܤ‬Ȥ��뷿켫벾 �
��
;����ñ��
(scientific power)</td></tr>
^<tr> <td><tt>%T</tt></td> <td>10 �ʤλ ‫< ���ؿ‬/td></tr>
^<tr> <td><tt>%L</tt></td> <td>���ߤ�� п�‫ ������ܤ‬Ȥ���‫< ���ؿ‬/td></tr>
^<tr> <td><tt>%S</tt></td> <td>���ñ��λ ‫( ���ؿ‬scientific power)</td></tr>
^<tr> <td><tt>%c</tt></td> <td>���ñ��ʸ��</td></tr>
^<tr> <td><tt>%b</tt></td> <td>ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi,
Yi) �����</td></tr>
^<tr> <td><tt>%B</tt></td> <td>ISO/IEC 80000 ��ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi,
Yi) ����Ƭ��</td></tr>
^<tr> <td><tt>%P</tt></td> <td>&pi; ���ܿ �� </td></tr>
^</tbody>
^</table>

��3 �‫ �� ܿ��� ؿ‬Ǥ���褦�ʤ� ΤǤ� � �


���ñ�� ('scientific' power) ����
���ñ��‫"`( �ؿ‬%c"`) ��ʸ��‫ ��ؤ‬Ѵ��� -18 ���� +18 �‫ޤ‬Ǥλ ‫ ���ؿ‬Ф���
���‫ ��ݡ‬Ȥ���Ƥ��‫��������ޤ‬ ϰ ϳ� � λ‫ �ؿ‬ξ�硢� � ���λ ‫���|�ؿ‬
���
���‫���ޤ‬

�ۤ��˻Ȥ����ȤΤǤ��뺹롼뽤 ����
Ƚ ֤ ˽ ��
("%" �� ����Ҥ δ˽ ) �ˤ ϡ�
���Τ����Ĥ�������‫�ޤ‬: "-" �Ͽ�� ��
��� � "+"
�ˤ��� �5 �ο�ˤ�����
�Ĥ���" " (������) ����ο�� "-" ��Ĥ���٤�����5�ο�ξ��˶�
����ĤĤ���"#" �Ͼ����0ʲ��ο�� 0 �$��Ǥ��äƤ⾮��� $�Ĥ���
5��0��Ͻ��������ᡢ����������ľp�� "0" (ʸ��Ǥʤ����) ����Ƭ
�˶����ʬ��������������� 0 ����ᡢ�����$θ�������0���
Τ�:� 0) �‫������ޤ‬٤��ξ��ϺǾ��塢����
� � ��� ξ��Ͼ����0�
����)��

� �‫��ݡ‬Ȥ��Ƥ��ʤ� OS �⤢��Ǥ��礦�����
�������t�Ƥν����� դˤ���
�ʳ��Τ�Τ�⥵�‫��ݡ‬Ȥ��� OS �⤢��Ǥ��礦�����路����� ��Ŭ�‫ڤ‬ʻ�
�d�Ĵ�١������Ƽ¸����Ƥ ߤƤ��$�����

��:
set format y "%t"; set ytics (5,10) # "5.0" �� "1.0"
set format y "%s"; set ytics (500,1000) # "500" �� "1.0"
set format y "%+-12.3f"; set ytics(12345) # "+12345.000 "
set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"
set format y "%s*10^{%S}"; set ytic(12345) # "12.345*10^{3}"
set format y "%s %cg"; set ytic(12345) # "12.345 kg"
set format y "%.0P pi"; set ytic(6.283185) # "2 pi"
set format y "%.0f%%"; set ytic(50) # "50%"
set log y 2; set format y '%l'; set ytics (1,2,3)
#"1.0", "1.0", "1.5" ��ɽ������� (3 �� 1.5 * 2^1 �ʤΤ�)

�‫�ݤ‬Ȼ ‫�ؿ‬ɬ�‫פ‬Ȥʤ�褦���ʽ �
9.999 ����ʿ��
�������
ʽ
�����
���꤬ ����� 뤳�Ȥ�����‫���ޤ‬

���Υǡ����������ǡ��� (time/date) �ξ�硢�� ʸ����� 'strftime'


�‫'( �ؿ‬gnuplot' ����"man strftime" �Ȥ��Ƥ ߤƤ��$���) �˴‫���ؤ‬ � ���
�����Ԥ�ɬ�‫����פ�����ޤ‬Ͻ Ȥ�����Ͻ ���ΰ���˴ ‫��ؤ‬Ƥϡ��ʲ�����:
`set timefmt`��
C 4 ���ǡ�������� (time/date specifiers)
4 time/date specifiers
?commands set format date_specifiers
?commands set format time_specifiers
?set format date_specifiers
?set format time_specifiers
?set date_specifiers
?set time_specifiers
?date_specifiers
?time_specifiers
νν
���ǡ����⡼�� (time/date mode) �Ǥ����ν
����ν ����ѤǤ��ν
��������� ‫�ޤ‬:

@start table - first is interactive cleartext form


�� ����
%a ������ξ�ά�� (Sun,Mon,...)
%A ����� (Sunday,Monday,...)
%b, %h ����ξ�ά�� (Jan,Feb,...)
%B ��� (January,February,...)
%d �� (01--31)
%D "%m/%d/%y" �δ�ά�� (���ϤΤ�)
%F "%Y-%m-%d" �δ�ά�� (���ϤΤ�)
%k �� (0--23; 1 ��2 ���‫)�� ޤ‬
%H �� (00--23; ��� 2 ��)
%l �� (1--12; 1 ��2 ���‫)�� ޤ‬
%I �� (01--12; ��� 2 ��)
%j ����ǯ������� (001--366)
%m �� (01--12)
%M ʬ (00--60)
%p "am" �‫" ���ޤ‬pm"
%r "%I:%M:%S %p" �δ�ά�� (���ϤΤ�)
%R "%H:%M" �δ�ά�� (���ϤΤ�)
%S �� (���ϤǤ� 00--60 ��0����ϤǤϼ¿�)
%s 1970 ǯ�ǽ 餫���� ÿ�
%T "%H:%M:%S" �δ�ά�� (���ϤΤ�)
%U ����ǯ������� (�����������ȿ��)
%w �����ֹ� (0--6, ���� = 0)
%W ����ǯ������� (���Ϸ������ȿ��)
%y >�� (2000-2068 ǯ�� 0-68��1969-1999 ǯ�� 69-99)
%Y >�� (4 ��)
#\begin{tabular}{|cl|} \hline
#\multicolumn{2}{|c|}{���ջ����}\\
#\hline \hline
#�� & ���� \\ \hline
#\verb@%a@ & ������ξ�ά�� (Sun,Mon,...) \\
#\verb@%A@ & ����� (Sunday,Monday,...) \\
#\verb@%b@, \verb@%h@ & ����ξ�ά�� (Jan,Feb,...) \\
#\verb@%B@ & ��� (January,February,...) \\
#\verb@%d@ & �� (01--31) \\
#\verb@%D@ & \verb@"%m/%d/%y"@ �δ�ά�� (���ϤΤ�)\\
#\verb@%F@ & \verb@"%Y-%m-%d"@ �δ�ά�� (���ϤΤ�)\\
#\verb@%k@ & �� (0--23; 1 ��2 ���‫\\ )�� ޤ‬
#\verb@%H@ & �� (00--23; ��� 2 ��) \\
#\verb@%l@ & �� (1--12; 1 ��2 ���‫\\ )�� ޤ‬
#\verb@%I@ & �� (01--12; ��� 2 ��) \\
#\verb@%j@ & ����ǯ������� (001--366) \\
#\verb@%m@ & �� (01--12) \\
#\verb@%M@ & ʬ (00--60) \\
#\verb@%p@ & "am" �‫" ���ޤ‬pm" \\
#\verb@%r@ & \verb@"%I:%M:%S %p"@ �δ�ά�� (���ϤΤ�)\\
#\verb@%R@ & \verb@"%H:%M"@ �δ�ά�� (���ϤΤ�)\\
#\verb@%S@ & �� (���ϤǤ� 00--60 ��0����ϤǤϼ¿�)\\
#\verb@%s@ & 1970 ǯ�ǽ 餫���� ÿ� \\
#\verb@%T@ & \verb@"%H:%M:%S"@ �δ�ά�� (���ϤΤ�)\\
#\verb@%U@ & ����ǯ������� (�����������ȿ��) \\
#\verb@%w@ & �����ֹ� (0--6, ���� = 0) \\
#\verb@%W@ & ����ǯ������� (���Ϸ������ȿ��) \\
#\verb@%y@ & >�� (0-99��1969-2068 ǯ�β� 2 ��) \\
#\verb@%Y@ & >�� (4 ��) \\
%c l .
%��@����
%_
%%a@������ξ�ά�� (Sun,Mon,...)
%%A@����� (Sunday,Monday,...)
%%b, %h@����ξ�ά�� (Jan,Feb,...)
%%B@��� (January,February,...)
%%d@�� (01--31)
%%D@"%m/%d/%y" �δ�ά�� (���ϤΤ�)
%%F@"%Y-%m-%d" �δ�ά�� (���ϤΤ�)
%%k@�� (0--23; 1 ��2 ���‫)�� ޤ‬
%%H@�� (00--23; ��� 2 ��)
%%l@�� (1--12; 1 ��2 ���‫)�� ޤ‬
%%I@�� (01--12; ��� 2 ��)
%%j@����ǯ������� (1--366)
%%m@�� (01--12)
%%M@ʬ (0--60)
%%p@"am" �‫" ���ޤ‬pm"
%%r@"%I:%M:%S %p" �δ�ά�� (���ϤΤ�)
%%R@"%H:%M" �δ�ά�� (���ϤΤ�)
%%S@�� (���ϤǤ� 0--60 ��0����ϤǤϼ¿�)
%%s@1970 ǯ�ǽ 餫���� ÿ�
%%T@"%H:%M:%S" �δ�ά�� (���ϤΤ�)
%%U@����ǯ������� (�����������ȿ��)
%%w@�����ֹ� (0--6, ���� = 0)
%%W@����ǯ������� (���Ϸ������ȿ��)
%%y@>�� (0-99��1969-2068 ǯ�β� 2 ��)
%%Y@>�� (4 ��)
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th>���ս�</th> <th>����</th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>%a</tt></td> <td>������ξ�ά�� (Sun,Mon,...)</td></tr>
^<tr> <td><tt>%A</tt></td> <td>����� (Sunday,Monday,...)</td></tr>
^<tr> <td><tt>%b</tt>, <tt>%h</tt></td> <td>����ξ�ά�� (Jan,Feb,...)</td></tr>

^<tr> <td><tt>%B</tt></td> <td>��� (January,February,...)</td></tr>


^<tr> <td><tt>%d</tt></td> <td>�� (01&ndash;31)</td></tr>
^<tr> <td><tt>%D</tt></td> <td><tt>%m/%d/%y</tt> �δ�ά�� (���ϤΤ�)</td></tr>

^<tr> <td><tt>%F</tt></td> <td><tt>%Y-%m-%d</tt> �δ�ά�� (���ϤΤ�)</td></tr>

^<tr> <td><tt>%k</tt></td> <td>�� (0&ndash;23; 1 ��2 ���‫<)�� ޤ‬/td></tr>

^<tr> <td><tt>%H</tt></td> <td>�� (00&ndash;23; ��� 2 ��)</td></tr>


^<tr> <td><tt>%l</tt></td> <td>�� (1&ndash;12; 1 ��2 ���‫<)�� ޤ‬/td></tr>

^<tr> <td><tt>%I</tt></td> <td>�� (01&ndash;12; ��� 2 ��)</td></tr>


^<tr> <td><tt>%j</tt></td> <td>����ǯ������� (1&ndash;366)</td></tr>
^<tr> <td><tt>%m</tt></td> <td>�� (01&ndash;12)</td></tr>
^<tr> <td><tt>%M</tt></td> <td>ʬ (0&ndash;60)</td></tr>
^<tr> <td><tt>%p</tt></td> <td>"am" �‫" ���ޤ‬pm"</td></tr>
^<tr> <td><tt>%r</tt></td> <td><tt>%I:%M:%S %p</tt> �δ�ά�� (���ϤΤ�)</td></tr>

^<tr> <td><tt>%R</tt></td> <td><tt>%H:%M</tt> �δ�ά�� (���ϤΤ�)</td></tr>


^<tr> <td><tt>%S</tt></td> <td>�� (���ϤǤ� 0&ndash;60 ��0����ϤǤϼ¿�)</td></tr>

^<tr> <td><tt>%s</tt></td> <td>1970 ǯ�ǽ 餫����ÿ�</td></tr>


^<tr> <td><tt>%T</tt></td> <td><tt>%H:%M:%S</tt> �δ�ά�� (���ϤΤ�)</td></tr>

^<tr> <td><tt>%U</tt></td> <td>����ǯ������� (�����������ȿ��)</td></tr>

^<tr> <td><tt>%w</tt></td> <td>�����ֹ� (0&ndash;6, ���� = 0)</td></tr>


^<tr> <td><tt>%W</tt></td> <td>����ǯ������� (���Ϸ������ȿ��)</td></tr>

^<tr> <td><tt>%y</tt></td> <td>>�� (0-99��1969-2068 ǯ�β� 2 ��)</td></tr>

^<tr> <td><tt>%Y</tt></td> <td>>�� (4 ��)</td></tr>


^</tbody>
^</table>

���
����ɽ��� ˤ�� 0
���Ƭ�� ��� 뤿���"0" (����) ��p�ˤĤ��뤳
�Ȥ��Ǥ����‫��ޤ‬Ǿ��ν����������뤿���
5��0���p�ˤĤ��뤳�Ȥ��
���‫ �����ޤ‬%S �� %t ��:�‫�����ٻ‬Ĥ���Τǡ�����λ�/ʬ/�ä��
���Ȥ�Ǥ��‫���ޤ‬

@start table - first is interactive cleartext form


�� ����
%tH ʤ�)
���‫ݥ‬å����‫�����ؤ‬Ū��5��λ� (24 �Ǥδ�ᤷ � �
%tM ���‫ݥ‬å����‫�����ؤ‬Ū��5���ʬ
%tS ľp�� tH, tM ���‫��ܤ‬б�����5����ÿ�
#\begin{tabular}{|cl|} \hline
#\multicolumn{2}{|c|}{��������}\\
#\hline \hline
#�� & ���� \\ \hline
#\verb@%tH@ & ���‫ݥ‬å����‫�����ؤ‬Ū��5��λ� (24 �Ǥδ�ᤷ � �ʤ�) \\
#\verb@%tM@ & ���‫ݥ‬å����‫�����ؤ‬Ū��5���ʬ \\
#\verb@%tS@ & ľp�� tH, tM ���‫��ܤ‬б�����5����ÿ� \\
%c l .
%��@����
%_
ʤ�)
%%tH@���‫ݥ‬å����‫�����ؤ‬Ū��5��λ� (24 �Ǥδ�ᤷ � �
%%tM@���‫ݥ‬å����‫�����ؤ‬Ū��5���ʬ
%%tS@ľp�� tH, tM ���‫��ܤ‬б�����5����ÿ�
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th>�����</th> <th>����</th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>%tH</tt></td> <td>���‫ݥ‬å����‫�����ؤ‬Ū��5��λ� (24
ʤ�)</td></tr>
�Ǥδ�ᤷ � �
^<tr> <td><tt>%tM</tt></td> <td>���‫ݥ‬å����‫�����ؤ‬Ū��5���ʬ</td></tr>
^<tr> <td><tt>%tS</tt></td> <td>ľp�� tH, tM ���‫��ܤ‬б�����5����ÿ�</td></tr>

^</tbody>
^</table>

C 5 �� (Examples)
5 Examples
?commands set format date_specifiers examples
?commands set format time_specifiers examples
?set format date_specifiers examples
?set format time_specifiers examples
?set date_specifiers examples
?set time_specifiers examples
?date_specifiers examples
?time_specifiers examples

�����:
���ս ���

x �������1976 ǯ 12 �� 25 ��ο��뺹쵭륳 p�
��
λ�����б������ÿ�Ǥ����
�����‫������ޤ‬ΰ��֤μ��ι�٥ � ߥ�ʸ����ϡ��ʲ��Τ 褦�ˤʤ�‫�ޤ‬:

set format x # �ǥե���ȤǤ� "12/25/76 \n 23:11"


set format x "%A, %d %b %Y" # "Saturday, 25 Dec 1976"
set format x "%r %D" # "11:11:11 pm 12/25/76"

�����:
���� ���

���
���ս ����Ǥ
��ÿ �λ� �֤��
���� λ�� ‫פ‬λ���˥��
� ���������� � �
�ɤ��‫�����ޤ‬äơ����� 0 ���� 23 �‫ޤ‬ǡ�ʬ�� 0 ���� 59 �‫ޤ‬ǤΤ ߤ�ư����
�����������������ϡ����‫ݥ‬å� (1970 ǯ 1 �� 1 ��) ���p�����դ���

�����‫����ޤ‬ÿ�Ǥλ��֤��
���� 0 ���Ф�������Ū�ʻ�/ʬ/�äο����
� ���

���ƽ��Ϥ�����ˤϡ����ֽ� %tH %tM %tS ����Ѥ��3672.50-���‫� ޤ‬ä���


�ϰʲ��Τ 褦�˽��Ϥ���‫���ޤ‬

set format x # �ǥե���ȤǤ� "12/31/69 \n 22:58"


set format x "%tH:%tM:%tS" # "-01:01:12"
set format x "%.2tH hours" # "-1.02 hours"
set format x "%tM:%.2tS" # "-61:12.50"
3 function style
?set function style
���Υ��‫�ޥ‬ɤη|��ϸ��ߤϿ 侩����Ƥ��‫��ޤ‬ � � ʲ�����:
`set style function`��
3 functions
?commands show functions
?show functions
`show functions` ���‫�ޥ‬ɤϥ 桼�������d
�����‫�ؿ‬Ȥ���������Ƥ�ɽ��
���‫���ޤ‬

��:
show functions

gnuplot �ˤ�����‫����ؿ‬dȤ��λȤ���ˤĤ��Ƥϡ��ʲ�����:
`expressions`��
�ʲ��⻲��
^ <a href="http://www.gnuplot.info/demo/spline.html">
�桼���� t ‫�ؿ‬ǤΥ��‫ץ‬饤��(spline.dem)
^ </a>
�����
^ <a href="http://www.gnuplot.info/demo/airfoil.html">
�‫��ؿ‬ʣ���ѿ����˻��� (airfoil.dem)��
^ </a>
C 3 �ʻ�� (grid)
3 grid
?commands set grid
?commands unset grid
?commands show grid
?set grid
?unset grid
?show grid
?grid
?nogrid
���‫` ��ޥ‬set grid` �ϳʻ�����d��‫���ޤ‬

��:
set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
{{no}{m}x2tics} {{no}{m}y2tics} {{no}{m}rtics}
{{no}{m}cbtics}
{polar {<angle>}}
{layerdefault | front | back}
{<line-properties-major> {, <line-properties-minor>}}
unset grid
show grid

�ʻ����Ǥ�դμ���Ǥ�դ�����9��/����9����Ф������/���ˤǤ�������
����9��Ⱦ���9����Ф������������Ǥ������ߤν������֤����‫�ݡ‬
�Ȥ����ϰϤǡ����餫������ d����饤�����������Ѥ��
� 뤳�Ȥ�Ǥ��‫�ޤ‬
(�ʲ�����: `set style line`)��

2 �����r�Ǥ϶˺�ɸ�ʻҤ�j��Ǥ��‫�������ޤ‬ϡ�gnuplot ���˺�ɸ�⡼��
(polar) �ΤȤ��� `set grid` �Υǥե���Ȥε�ư�Ǥ������<�Ū��
`set grid polar <angle> rtics` �Ȥ���С��˺�ɸ�⡼�ɤǤ���ʤ��˴‫�ؤ‬
�餺�¹ԤǤ�� ‫���ޤ‬Ʊ���ߤ� r ���μ���9/����9�Ǹ���
ǸǸǸ Ǹ
��� 褦���
d���ư

�¤� <angle> �γѤ����d��‫���ޤ‬Ʊ���ߤμ��Ϥ���9��ι�ߤ��


`set ttics` ��)�椷�‫����������ޤ‬ư�¤γʻ��� ����ˤ�
�8. �� ‫���ޤ‬
`set grid` ���d�p�ˡ�ɬ�9���‫���פ‬ � ��ˤʤäƤ��ʤ���Фʤ�‫���ޤ‬
`gnuplot` ���¸� ߤ��ʤ���9����Ф���ʻҤ��� � r������ñ����뤬뤬뤷�
‫���ޤ‬
����������Ǥ�����9�
�꤬ ���ˤʤ�Ф�����Ф���ʻҤ��d��‫���ޤ‬

���ʻ�����Ф������
� ����
��� ��ʤ���С���ʻ����Ʊ����郎�Ȥ���
�����ǥե���Ȥζ˺�ɸ�γ��٤� 30 �٤Ǥ���

`front` ������ �ȡ��ʻ ���ϥ ���դ Υ ǡ ����ξ‫`���ޤ‬back`


���d ���
�������줿���ϳ ʻ ���ϥ ���դ Υ ǡ ����β ���� d ���
‫`���ޤ‬front` ���
���С���������ǡ����dzʻ���������ʤ��ʤ 뤳�Ȥ��ɤ����Ȥ��Ǥ��‫�����ޤ‬

�ե���ȤǤ� `layerdefault` �ǡ������ 2D �r�Ǥ� `back` ��Ʊ���Ǥ���


3D �r�Υǥե���Ȥϡ��ʻҤȥ���դ��Ȥ� 2 �Ĥ��r�ñ���ʬΥ�����ʻ�
����ˡ��Ȥ��
�r ǡ���� ‫��ޤ‬ϴ ‫��ؿ‬p˽ �˽
�� ‫������ޤ‬$���`hidden3d`
�⡼�ɤǤϡ����줬����� 켫 Ȥ��¤Ӵ����Ƥ��
��� �
��� ‫��ޤ‬Τǡ��ʻ���ν��֤Υ�
�‫�����ץ‬t����뤵��� 졢 ʻ���Ᵽ�����ˤ������‫��������ޤ‬Υ��‫�ץ‬
������º
�� ‫ݤ‬ˤϳʻ���$��Ǥʤ���`set border` �ˤ�뷿줬쵭 ����
Ȥ����� 9
��ι�� (�ʲ�����: `set xtics`) �ˤ�ƶd�‫�������ڤܤ����ޤ‬

z �γʻ�����r��������d���‫���������ޤ‬r�μ������ʬŪ��Ȣ���r�
����Ƥ�����ˤϤ����Ǥ��礦��� ʲ�����: `set border`��
C 3 ������� (hidden3d)
3 hidden3d
?commands set hidden3d
?commands unset hidden3d
?commands show hidden3d
?set hidden3d
?unset hidden3d
?show hidden3d
?hidden3d
?nohidden3d
`set hidden3d` ���‫�ޥ‬ɤ϶����r� (�ʲ�����: `splot`) �DZ������� �Ԥ
���褦�˻‫������ؼ����ޤ‬ν��������르���� ꥺ ˴‫����ؤ‬ɲõ �ǽ �⤳�Υ �
�‫�ޥ‬ɤ�)��Ǥ��‫���ޤ‬

��:
set hidden3d {defaults} |
{ {front|back}
{{offset <offset>} | {nooffset}}
{trianglepattern <bitpattern>}
{{undefined <level>} | {noundefined}}
{{no}altdiagonal}
{{no}bentover} }
unset hidden3d
show hidden3d

gnuplot ������ɽ���Ȥϰۤʤ ꡢ�������Ǥ�Ϳ���


� 줿�‫���ؿ�ޤ‬ǡ �
� �º ‫ݤ‬ζ�������ζ�����‫�ظ‬ˤ��äƱ�����Ƥ����r����Ǥ�
���γʻ���
�����ʤ��Τ�Ʊ���褦�˽���‫������ޤ‬줬��ǽ���뤿�� ˤϡ����ζ����
'�ʻҾ�' (�ʲ�����: `splot datafile`) �Ǥ���ɬ�‫����פ‬ꡢ�‫�������ޤ‬
`with lines` �� `with linespoints` ���d���Ƥ��ʤ���Ф����‫���ޤ‬

`hidden3d` �����ʤȤ��ϡ��ʻ���$��Ǥʤ�������ʬ������ξ������
(�ʲ�����: `set contour`) �Ᵽ����‫���ޤ‬ʣ�������r 褷�Ƥ�����ϡ�
�ƶ���ϼ�ʬ���Ȥ�¾�ζ���DZ��������ʬ���d ‫��ؤ‬
� �����‫�������ޤ‬
ɽ�� (`set contour surface`) �ϵ�ǽ���‫���ޤ‬

gnuplot �С������ 4.6 �Ǥϡ�����վ�˶������Ĥ�ʤ����֤Ǥ⡢


hidden3d �� `points`, `labels`, `vectors`, `impulses` �� 3 �������r�
Ϳ� ‫`���ޤ‬vectors` �ϡ�������ʤ���ʬ���ʬ (����ʤ�)
��������˱ƶd���
�Ȥ���ɽ������‫����������ޤ‬γ �ơ����r �ν � �����
<�Ū�˽��
���Ȥ��ϡ�`with` ���������Υ��‫` ����ץ‬nohidden3d` ���ɲä��Ƥ��$�
����

hidden3d �ϡ�pm3d �⡼�ɤ��r 褵�����줿 ɤ��٤��줿����ˤϱƶd�Ϳ���



����pm3d �ζ�����Ф���Ʊ��θ�������$����ʤ�С����������
�� `set pm3d depthorder` ��ȤäƤ��$�����ʣ��� pm3d ���������
`hidden3d` ������Ȥ߹�碌��ˤ����� ����‫` ����ץ‬set hidden3d front` ��
���Ѥ��Ƥ��$���������ϡ�hidden3d �����t�Ƥ����Ǥ�pm3d �����‫�ޤ‬
�Ĥ��¾���r����Ǥθ�˶�)Ū���r 褹���ΤǤ���

�‫��ؿ‬ � ϳʻҸ�Ω��θ��$�ɾ�d���‫������ޤ‬뤳�Ȥν�����ʬ������
����ġ��δ ‫��ؿ‬ ֤
$δϤ��
� �������ǡ ���� Υ��르����
ꥺ ˤ�ä������
�֤���‫`���������ޤ‬hidden3d` ���r 褹����� `nohidden3d` ���r 褹
����Ǵ ‫�ؿ‬θ��������ۤʤ 뤳�Ȥ������‫����ޤ‬ʤ��ʤ�С���Ԥξ���
����ϳ�ɸ���$�ɾ�d����� � Ǥ������ΰ 㤤�˴‫�����ؤ‬$ˤĤ��Ƥϡ�
�ʲ�����: `set samples`, `set isosamples`��

����α��������ʬ��õ��Τ˻Ȥ��륢 ������
르 ꥺ �� �����‫�ޥ‬ɤ�
Υ
)�椵������
뤤 Ĥ����ɲå��‫������ץ‬äƤ��‫`���ޤ‬defaults` �����
��Ф����Ϥ��٤ơ��ʲ��ǽҤ ٤�褦�ʥǥե���Ȥ��������� � ‫���ޤ‬
`defaults` ������� � ʤ��ä����ˤϡ��<�Ū�˻����줿���‫�����ץ‬
�ߤ��ƶd�������ʳ��Τ�Τϰ ‫�����ޤ‬äơ�����
�p���� ������� Ѥ
��Υ��‫�������ץ‬ 뤳�Ȥʤ���ñ�� `set {no}hidden3d`
��d�} � 5������
�Τ ߤDZ� �����
� ��/
���դ ����� Ǥ 뤳�Ȥˤʤ�‫���ޤ‬

�ǽ�Υ��‫` ����ץ‬offset` �� '�¦' ������r 褹��������˱ƶ �Ϳ��


d
�‫����ޤ‬ �������뤿��
� �϶����ɽ������ ˡ��¦�������ɽ
�¦ �������
���礭�� �ֹ����郎�Ȥ��‫`���ޤ‬offset <offset>` �ˤ�äơ������ɲä�
�����
���ǥե���Ȥ�
� 1 Ȥϰ ۤʤ���ʬ� ѹ
��
�� Ǥ
����� ‫`���ޤ‬nooffset` ����
�����
������ `offset 0` �������������ɽ�������������������
��Ʊ������Ȥ����Ȥˤʤ�‫���ޤ‬

���Υ��‫` �����ץ‬trianglepattern <bitpattern>` �Ǥ���<bitpattern> ��


0 ���� 7 �‫ޤ‬Ǥο��ǡ��ӥåȥѥ�����Ȳᤵ � ��
‫����ޤ‬ƶ ������ѷϻ d�
ʬ�䤵�� ‫��������ޤ‬Υӥåȥ ѥ�����γ ƥ ӥ å ȤϤ����λ ��ѷ d γ ��դ �ɽ
��������‫����ޤ‬ӥå� 0 �ϳʻҤο�ʿ�ա��ӥå� 1 �ϳʻҤο�ľ�ա��ӥ�
�� 2 �ϡ������γʻҤ� 2 �Ĥλ��ѷd�ʬ�䤵��� Ȥ����г��դǤ����ǥե�
��ȤΥӥåȥѥ������ 3 �ǡ������t�Ƥο�ʿ�դȿ�ľ�դ�ɽ�������г�
�դ�ɽ�����ʤ����Ȥ������‫����ޤ‬г��դ�ɽ��������� 7 ������‫���ޤ‬

���‫` ����ץ‬undefined <level>` �ϡ���d���Ƥ��ʤ� (�礱�Ƥ���ǡ���


�‫���ޤ‬� ��dδ ‫����Ϳ���ؿ���( �����ޤ‬줿 x,y,z ���ϰϤ�Ķ���Ƥ����
�����$�Ŭ�Ѥ����륢�������
르 ꥺ ‫������ؼ����ޤ‬Τ 褦��� $�� ����Ǥ�
ɽ������Ƥ��‫������ޤ������ޤ‬ǡ ����������� ‫���������ޤ‬
���‫��ܤ‬$��‫���ޤ‬t�Ƥζ������Ǥ�Ʊ��˼���졢��äƶ ��� ꤬8� ˷
���‫<���ޤ‬level> = 3 �ξ�硢�����`noundefined` ��Ʊ���ǡ��ɤ���$�
�ΤƤ��‫��ޤ‬ ����
� �� ��� ¾�ξ��Ǥ��������������������$�Τ�

�Ȥ�ʤ��٤��Ǥ���<level> = 2 �Ǥ����d��$ϼΤƤ��‫������ޤ‬ϰϤ�Ķ
����줬�ǥե���ȤǤ������ϰ�
�����$ϼΤƤ��‫<���ޤ‬level> = 1 �Ǥ�����
��Ķ�����$�ΤƤ��‫���ޤ‬

`noaltdiagonal` ������ � ȡ�`undefined` ����Ȥ Τ ��� ( ���ʤ�� <level>


�� 3 �Ǥʤ����) �˵�����ʲ��ξ��Υǥե���ȤǤμ 谷�����ѹ��Ǥ���
������϶���γƳʻҾ����ʬ�ϰ�����г���ˤ�ä� 2 �Ĥλ��ѷd�ʬ��
����‫����ޤ‬ � �Ϥ������г����t�Ƥ��ʻҤ��Ф���Ʊ���������Ƥ���
�����⤷������ʻҤ� 4 �ĤγѤΤ��p�Ĥ� `undefined` ����ˤ��Ȥ��
����Ƥ��ơ����γѤ����������г���˾�äƤ�����ϡ�����ξ��λ�
�ѷd������Ƥ��‫�⤷������������ޤ��ޤ‬ǥե���Ȥ�����Ǥ���
`altdiagonal` �����ˤʤäƤ����硢��� γʻҤˤĤ��Ƥ�¾�����г��
�������� 졢����η���礭�����
j� � Ǿ��ˤʤ�褦�ˤ��‫���ޤ‬

`bentover` ���‫����ץ‬Ϻ��٤� `trianglepattern` �ȤȤ�˵�������Τ���


��)�椷�‫������ޤ‬ʤ ��勞�d�ζ���Ǥϡ����� ASCII ʸ��˽�����
˽˽
���
���ˡ������ 1 �ĤγʻҤ� 2 �Ĥ�ʬ����줿���ѷd�ɽ����� �¦ȿ�����
�Ƥ��‫���( ����ޤ‬ʤ�a����λͳѷd��‫�ޤ‬ʤ����Ƥ��� ('bent over')
���) ������‫�ޤ‬:

C----B
���� 4 �ѷ�: A--B ɽ������� 4 �ѷ�: |\ |
("set view 0,0") | /| ("set view 75,75" perhaps) | \ |
|/ | | \ |
C--D | \|
A D

����γʻҤ��г��դ� <bitpattern> �� 2 bit �ˤ�äƸ�����褦�ˤϤʤ�


�ƤϤ��ʤ���硢���� г��� CB �Ϥɤ��ˤ� �
�����������
�ʤ����Ȥˤʤ ꡢ���줬��
����ɽ������ˤ�����
ˤΤ ��� ‫����ޤ‬ǥե���Ȥ���d���� `bentover`
���‫��� ������ץ‬ Τ 褦�ʾ�礽��� ɽ������褦�ˤ��‫����������⤷����ޤ‬

�ʤ��ʤ 顢`nobentover` ��j��Ƥ�������
$
�ʲ��⻲��
^ <a href="http://www.gnuplot.info/demo/hidden.html">
�������Υǥ� (hidden.dem)
^ </a>
�����
^ <a href="http://www.gnuplot.info/demo/singulr.html">
ʣ���ʱ���Υǥ� (singulr.dem).
^ </a>
3 historysize
?commands set historysize
?set historysize
?unset historysize
?historysize
(��侩)
`set historysize N` ���`set history size N` �Ʊ���Ǥ���
`unset historysize` ���`set history size -1` �Ʊ���Ǥ���
C 3 ���‫( ������ޥ‬history)
3 history
?commands set history
?set history
��:
set history {size <N>} {quiet|numbers} {full|trim} {default}

gnuplot �ν�λ���˥ҥ��ȥ�ե��������¸����Կ��history size ����


��)�¤��‫`���ޤ‬set history size -1` �Ȥ���ȡ��ҥ��ȥ�ե�����˽ ���
˽˽

���Կ��)�¤��ʤ��ʤ�‫���ޤ‬

����‫` ��ޥ‬history` �ϳƥ��‫�ޥ‬ɤ�p�˹��ֹ����Ϥ���


�ǥե���ȤǤ�����
����`history quiet` �ϡ�����μ¹Ԥ��Ф��ƤΤ��ֹ���ά���‫�����ޤ‬
`set history quiet` �������
�Τ � ٤Ƥ� `history` ���ֹ���ά���‫���ޤ‬

����ߤΥ��‫�ޥ‬ɤ��Ф���p��Ʊ����Τ���뤳��
���‫` ����ץ‬trim` ������
�ǡ����‫��������ޥ‬ν ��ʣ����Ԥ�ο� �餷�‫���ޤ‬gnuplot �ΥС������ 5
����줬�ǥե���Ȥε�ư�Ǥ�����
��p�Ǥ�����

�ǥե���Ȥ�����: `set history size 500 numbers trim`


C 3 ��Ω�����‫( ��ץ‬isosamples)
3 isosamples
?commands set isosamples
?commands show isosamples
?set isosamples
?show isosamples
?isosamples
�‫���ؿ‬� Ȥ����r 褹����θ�Ω� (�ʻ�) ����٤�� �
‫` ��ޥ‬set isosamples`
���ѹ��Ǥ��‫���ޤ‬

��:
set isosamples <iso_1> {,<iso_2>}
show isosamples

�ƶ������դ� <iso_1> �Ĥ� u-��Ω��� <iso_2> �Ĥ� v-��Ω����d ‫���ޤ‬


<iso_1> �Τ����� � С�<iso_2> �� <iso_1> ��Ʊ���������� �
‫���ޤ‬
�ǥե���ȤǤ��u, v �� 줾�� 10 �‫�ܤ‬ɸ�ܲ�����Ԥ��‫���ޤ‬ɸ�ܿ����ä�
¿������Ф��5�Τʥ���դ�����‫���������ޤ��������֤�������ޤ‬
�ѥ��� ��ϡ�ǡ����ե��������ˤ
r ϲ��ƶ Ϳ �
� d��� ‫���ޤ‬

��Ω��Ȥϡ�����ΰ�Ĥ�����ѿ������ơ��⤦��Ĥ�����ѿ�ˤ�ä�
� Ϳ ‫���ޤ‬
�d�������Τ��ȤǤ�����Ω��ϡ������ɽ������ñ�����ˡ����
���� s(u,v) ������ѿ� u ������뤳�Ȥ� u-��Ω� c(v) = s(u0,v) ��
���졢����ѿ� v ������뤳�Ȥ� v-��Ω� c(u) = s(u,v0) ���Ǥ��‫���ޤ‬

�‫�ؿ‬ζ������դ��������ʤ����d���Ƥ����硢`set samples` ��
�Ƹ�Ω����ɸ�ܲ��������$ο��)�椷�‫����ޤ‬ʲ�����: `set samples`,
`set hidden3d`�������r�뤬롼뤤 e����‫���ؿ‬$�ɸ�ܲ���ϳƸ�Ω��θ���
���
�ǹԤ���Ȳ����Ƥ���Τǡ��‫�ؿ‬ζ���������β����٤��ѹ�����Ȥ�
���`isosamples` �Ʊ��� 褦��`samples` ���ѹ�����Τ�˾�‫����ޤ‬Ǥ��礦��
3 jitter
?commands set jitter
?set jitter
?jitter
=beeswarm
��:
set jitter {overlap <yposition>} {spread <factor>} {wrap <limit>}
{swarm|square}
��:
set jitter # 1 ʸ��������$� jitter
set jitter overlap 1.5 # 1.5 ʸ��������$� jitter
set jitter over 1.5 spread 0.5 # Ʊ�塢������x �ΰ�ư��Ⱦʬ��

�ǡ����� 1 �ġ��‫���ޤ‬ξ��κ�ɸ��Υ�����)�¤���Ƥ����硢¿������
����t�˸ߤ��ο���˾�ä����礬���� ‫���ޤ‬jitter (�ɤ 餮) ��������
������
�κ $ɸ�ˤ�� 餷���Ϳ��
$ �Ťʤ��$���� � 뤳�ȤǤ����$�˼��˹����‫���ޤ‬
�$��ŤʤäƤ���ȸ��ʤ����������ϡ�ʸ����ñ���������Ǥ�դκ�ɸ��
�‫�����ץ‬Ȥäƻ���Ǥ��‫����ޤ‬ʲ�����: `coordinates`��jitter �ϡ�2 ��
Ϳ� ‫���ޤ‬
߱ d���
������դ� `with points` �� `with impulses` �ˤΤƶ

�ǥե���Ȥ� jitter ư��ϡ��$� x ���Τ߰ �ư���‫֥����������ޤ‬ӡ�


�������॰�� ա�( bee swarm plot) �ȸƤ Ф �����ä Υ ѥ��������
‫���ޤ‬
���‫����ץ‬Υ�������� `square` ���ư�����
�$ ϡ� x �ɸ�˲ ä��ơ�
`overlap` �ǻ���� ���
Υ�$��Ͼ��ʤ��Ȥ�Υ�줿����γ��‫ؤ‬ˤ���褦��y
��ɸ��·���‫���ޤ‬

ʸ ��ñ���κ���ΰ�Ǥ
ư��Υ�ϡ�������� ¤ ¤
� `wrap` �) �¤ ¤¤
¤
¤�����
���� ‫���ޤ‬

�Ťʤ��Ƚ����ȡ��ɤ 餮���礭��� ϡ� �������ǥե���ȤǤ�1 ʸ��ñ


��Ǥ��뤳�Ȥ���դ��Ƥ��$�������äƥ���դθ����‫ܤ‬ϡ� ���Ϸ|��Υե�
��ȥ������������Х�������������Ψ�ˤ�ä��ѹ����Ƥ��‫��������ޤ��ޤ‬

ϡȽ
� � �ˤ � y Ϥ �ɸ�
��Ťʤ�� ����� � ��ñ�� (��������
� `first`) �
����� ��$Υ������ȳ��緸���Ŭ�‫��ڤ‬� �Ĵ0���Ƥ��$������ʲ�����:
`coordinates`, `pointsize`, `jitter`��
C 3 ���� (key)
3 key
?commands set key
?commands unset key
?commands show key
?set key
?unset key
?show key
?key
?nokey
?legend
���‫` ��ޥ‬set key` �ϡ��r��ΰ���γƥ���դ��Ф��뤬륽줿 ���
ȥ�ȥ���‫�ץ‬
(�ʬ���!�Ȣ) �������� (�����ɽ��) �����ˤ����������ε�ǽ��� �
`set key off` �� `unset key` �Ȥ��뤳�Ȥ����ˤǤ����������θġ���
���‫ܤ‬ˤĤ��Ƥϡ��б����� plot ���‫�ޥ‬ɤǥ�������� `notitle` ��� Ѥ�
�뤳�Ȥ����ˤǤ����������Υ����ȥ�ʸ����ϡ����‫����ץ‬
`set key autotitle` �䡢�ġ��� `plot` �� `splot` ���‫�ޥ‬ɾ�� `title`
�) �Ǥ�� ٤ ܺ ����‫ޤ‬ϰʲ�����: `plot title`��
�������ɤ�

��:
set key {on|off} {default}
{{inside | outside | fixed}
| {lmargin | rmargin | tmargin | bmargin}
| {at <position>}}
{left | right | center} {top | bottom | center}
{vertical | horizontal} {Left | Right}
{{no}enhanced}
{{no}opaque}
{{no}reverse} {{no}invert}
{samplen <sample_length>} {spacing <line_spacing>}
{width <width_increment>} {height <height_increment>}
{{no}autotitle {columnheader}}
{title {"<text>"} {{no}enhanced} {center | left | right}}
{font "<face>,<size>"} {textcolor <colorspec>}
{{no}box {linestyle <style> | linetype <type> | linewidth <width>}}
{maxcols {<max no. of columns> | auto}}
{maxrows {<max no. of rows> | auto}}
unset key
show key

���� (key) �ϳ����Ǥ� `vertical` (��) �� `horizontal` (��) �λ���˽�


�äƽŤ�����`vertical` �ξ��� �� �ǽ νĤ
�ʤ��
ϲ�
2,3 � ����Ȥ�Ĥ
��������ʤ�a���ľ���ξ�꤬���� �֤ϳ����Ǥ� 1 �Ĥ�����¤�٤�����
���μ��Ͽ���������¤‫ٻ‬Ϥ�������ľ���ιԿ���`maxrows` �Ȥ ä�)
ϡ� �
�¤Ǥ������`horizontal` �ξ������ ϲ ι�Կ��ʤ� ٤����ʤ�����
���Ȥ��������ʿ�������� `maxcols` ��)�¤Ǥ������

�ǥե���ȤǤ��
������� ΰ
����� �� ¦�α���γѤ��֤������������
�� `left`, `right`, `top`, `bottom`, `center`, `inside`, `outside`,
`lmargin`, `rmargin`, `tmargin`, `bmargin` (, `above`, `over`, `below`,
`under`) ���������
�ΰ �¾ �ξ��‫ؤ‬μ�ưŪ�����֤Τ���˻��Ѥ������
�‫����ܤ‬뤿���`at <position>` ��
������r��ɤ����֤�������‫������������ؼ‬
�����������ξ��� ������`left`, `right`, `top`, `bottom`,
`center` ��Ʊ��δ���9�碌���������Ū�ǻȤ������
���‫����ܤ‬ϡ��ʲ�����: `key placement`��

����դ Υ����ȥ �ι�·���� `Left`, `Right` (�ǥ ե����) �ǻ ‫���ؼ����ޤ‬


��٥�ʸ ����ȶ ���Υ���‫�ץ‬Ϻ�������‫��ؤ‬뤬뤬뤳�Ȥ��Ǥ���� (`reverse`)
���� t�Τ��Ȥǰ Ϥ ळ �Ȥ�Ǥ���� (`box {...}`)�������Ȥ���ϡ����
(`linetype`), ��� (`linewidth`)�����뤬뤬뤤 ����zѤΥ 饤� �������
(`linestyle`) ������뤬뤬뤳 �Ȥ�Ǥ������

�����ʸ ����ϡ��ǥ ե���Ȥdz�ĥʸ ����⡼�� (`enhanced`) ������� ��


�������������ϥ��‫{` ����ץ‬no}enhanced` ���ѹ��Ǥ��������Υ����ȥ ��
���䡢�ġ��Υ��������ѹ����뤬뤬뤳 �Ȥ��ǽ�Ǥ���

�ǥ ե���ȤǤϡ�����ϰ�ĤΥ���դ�Ʊ���˺ ����������ʤ �a������


����ȥ ����ȥ �ϡ�������б����뤬쥹볰 ��
դ�Ʊ�����d�����������ϡ�����
������դ����ˤ �����ξ�����Ǥ��֤�����֤ �����뤬뤬뤳
�Ȥ����������
�`set key opaque` �ϡ����� �� ٤ƤΥ���դ��r 褬���
���8.������
�������ξ�硢������ΰ���‫ط‬ʿ����ɤ�Ĥ֤��������ε���ȥ ����ȥ 뤬
�d���������äơ����㼫�ȤϤ����Ĥ����r����Ǥ�ʤ�������Ƥ�����$�
���Ȥˤ ʤ�����`set key noopaque` �ǥ ǥ ե���Ȥ���Ǥ������

�ǥ ե���ȤǤϡ��ǽ���r�Υ�٥뤬����ΰ��‫��� ˸�־‬졢�����³����
�٥뤬���β����¤�ǹ Ԥ� ‫` ����ޤ�������ץ‬invert` �ϡ��ǽ�Υ� ٥����
��ΰ��ֲ���� ֤ ��������³����٥� � ξ����¤٤ƹԤ��
�������Υ��‫�ץ‬
���ϡ�����Υ� ٥�νĤ��¤Ӥν��֤��Ѥ�夲�|��Υҥ��ȥ ����
(`histograms`) ��Ȣ�ν��֤˹ �碌��Ȥ�������Ǥ��礦��

<height_increment> �ϡ������Ȣ�ι⤵�˲ ä����긺�餷��� �� �


⤵ (��
ʸ��ʬ��) ��ɽ������Ǥ�������ϼ�ˡ�����β���Ȣ���d����ǡ�����
���¤Ӥβ��ζ���������礭���������� Τ�
�ΤǤ���

t�Τ��Ϥ 뤬륽줿 ȥ������



�� ξ�ˤĤ��뤬뤬뤳
Ȥ��
Ǥ���� (`title "<text>"`)��
ñ������� (') ����Ű����� (") �ΰ 㤤�ˤĤ��Ƥϡ��ʲ��⻲�� : `syntax`��
�����ȥ�ι�·���ϥǥե���ȤǤ�����碌�ǡ�����ϥ������ `right`
�� `left` ���ѹ����뤬뤬뤳 �
Ȥ�Ǥ������

`set key` �Υǥե���Ȥϡ�`on`, `right`, `top`, `vertical`, `Right`,


`noreverse`, `noinvert`, `samplen 4`, `spacing 1`, `notitle`, `nobox`
�Ǥ���������Ȥ����ϥǥե���ȤǤϥ�����r�γ��Ȥ�Ʊ����Τ��Ȥ��
�����`set key default` �Ȥ���ȥǥե���Ȥ�������������

����ϡ�1 �Ԥ� 1 ���ʬ���Ĥο�ԤΤ �Ȥ ��Ȥ��ƽ �


ƽ ƽƽ
��� �����ƹԤα �
¦�ˤ� (`reverse` ��ȤäƤ���к�¦�ˤ�) ���ζ����Ʊ�������ľ��Υ�
��‫ץ‬뤬��졢¾��¦�ˤ� `plot` ���‫�ޥ‬ɤ����$���ʸ���� (title)
���֤������������ιԤϡ��Ͷ��ľ�������κ�¦�ȱ�¦��ʬ���뤬뤬줿 �
Τ�
���˿�ľ��0� �� � ‫` ��ޤ������ޥ‬set key` �ǻ���� �� ɸ�Ϥ��β Ͷ��
�ʬ�ξ��ü�κ�ɸ�Ǥ���`plot` �Ǥ�ľ��ΰ��֤����� 뤬뤿뤿
� ��� �� y
x
�$���Ȥ������

TeX, LaTeX �Ϥν��Ϸ|��䡢 0�~���ʸ��������������Ϸ|� � ��


�����ϡ�`gnuplot` ������ΰ��ַ��Τ����ʸ��������ɾ�d��뤬뤬뤳 Ȥ��
���Ǥ����� �
� ������ �
� �� �֤����ϡ�`set key left Left
reverse`
�Ȥ����ȹ 礻�� Ȥ��Τ������Ǥ��礦��

C 4 3 ��������դ����� (3D key)


4 3D key
?set key 3D
?set key splot
?key 3D
?key splot
?set key fixed
?key fixed
3 ��������� (`splot`) ����������֤ϡ��ǥե���ȤǤ� `fixed` ��� ‫���ץ‬
�����Ѥ����������ϡ���p���Ǥ� gnuplot �Ȥϰۤʤ��ư�Ǥ��뤬뤬뤳 �
���
�դ��Ƥ��$�����`fixed` �ˤ�����֤ϡ�`inside` �ˤ�����֤˻� Ƥ� � ��
�������‫פ‬ʰ 㤤���� Ĥ���3���‫�������� ޤ‬դλ��$���ž�����ꥹ�����뤹
��ȡ������ȼ�ʤä��r�ζ������Ѳ����������������֤� `inside` �ξ�
��ϡ����$��ѹ�����Ȥ��ˤ����ζ�������ư���뤬뤿뤿 �
ᡢ������ư�������
`fixed` �ξ��ϡ���Ѥ 䥹�������ѹ
����� �뤬뤬뤷
������������Τǡ���
�֤
��դ���ž���Ƥ⡢����ΰ��֤ϥ����Х��ΰ�Ĥξ��˸����줿뤬줿 �
���
�ʤ�����

�ʤ���2 ��������դǤϡ�`fixed` ���‫����ץ‬ϴ�t �� `inside` ��Ʊ���Ǥ���

`splot` �������� �
� �� 硢�ǥե���ȤǤϰۤʤ����θġ����������

����Ф��ơ����������ι��‫����ޤ‬.8���� ‫���������ܤ‬ѹ�����ˤϡ��ʲ�����:
`set cntrlabel`��

C 4 ����Υ���‫( �ץ‬key examples)


4 key examples
?set key examples
?key examples
�ʲ��ϥǥե���Ȥΰ��֤������ɽ�������:
set key default

�ʲ��������ɽ�����ʤ������:
unset key

�ʲ��ϥǥե���Ȥ� (����) ��ɸ�ϤǤ� (2,3.5,2) �ΰ��֤������ɽ��


�����:
set key at 2,3.5,2

��ʲ��������դ� β���ɽ����� ��:


set key below

��ʲ������� �
� ��Ѥ�ɽ�������ƥ����ȤϺ��˹�
· ���ǡ������ȥ�� Ĥ���
���� 3 �γ��Ȥ� � � ��:
set key left bottom Left title 'Legend' box 3
C 4 ����μ�ư�����ȥ� (key autotitle)
4 key autotitle
?commands set key autotitle
?set key autotitle
?key autotitle
?autotitle
`set key autotitle` �ϡ�����γƥ���դ�plot ���‫�ޥ‬ɤ ǻ��Ѥ����ǡ �
���ե������‫��ؿ‬ � p�ˤ�ä������ � 褦�ˤ�����������줿줬줬 �
ǥե����
�ε�ư�Ǥ���`set key noautotitle` �ϡ����μ�ưŪ�ʥ���դΥ����ȥ��դ�
�����ˤ������
=columnheader
���‫` ��ޥ‬set key autotitle columnheader` �ϡ�����ϥǡ�������Ƭ�Ԥγ�
��Υ���ȥ��ƥ�����ʸ����Ȳᤷ � ��� б������r 襰��Υ դ ��� �ȥ �Ȥ �
�ƻ��Ѥ�������r 褵��� �����ʣ�����ǡ����δ ‫�ؿ‬Ǥ�����ϡ�
�gnuplot �Ϥɤ�����ȥ���
� �r �˻Ȥ�� Ф����Τ�� 狼�� ����Τǡ�����
��硢 plot ���‫�ޥ‬ɾ�ǡ��㤨�аʲ��Τ 褦��� <�Ū�˥����ȥ��������
����ɬ�‫���פ�����ޤ‬
plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines

���: `set key autotitle columnheader` �Ȥ���ȡ����Ȥ����� (key) ��


`unset key` �����ˤʤäƤ�����Ǥ⡢1 ���‫�ܤ‬ǡ����Ȥ��ƤǤϤʤ���
��Υ ‫إ‬å$Ȥ��ƽ�����������ϡ�`stats` �� `fit` �Τ 褦��������
��ʤ����‫�ޥ‬ɤ��Ф��Ƥ�Ʊ��Ǥ���

�����������ξ��Ǥ⡢plot ���‫�ޥ‬ɤ��<�Ū�� `title` �� `notitle`


������ɤ����� � С������ `set key autotitle` �ˤ�����������
��������
C 4 ��������� (key placement)
4 key placement
?commands set key placement
?set key placement
?key placement
������Ǥϡ���ưŪ��8.�����������������֤����$$������Ū��
����ι�.�䡢 ¾�ξ��‫��ؤ‬r 西��� ȥ�� � � �֤ˤĤ��Ƥϡ��ʲ�����:
`multiple keys`��

���֤λ��Ȥ ߤ���
� ��
� κǤ���‫פ‬ʳ�ǰ�ϡ�������ΰ 衢���
ʤ���⤫����

�Ȥ������Ȥȡ�������ΰ�ζ����Ȥδ֤�;�� (margin) ��
� ��뤬뤬뤳�
ȤǤ���

������ΰ�˱�äơ�������� `left/center/right` (l/c/r) ��


�`top/center/bottom` (t/c/b) �ϡ����� (key) � �� ��
ΰ����¦�Τɤ�����
������)�椷�����

�⡼�� `inside` �Ǥϡ�����ϥ���� �� � � `left` (l), `right` (r), `top`


(t), `bottom` (b), `center` (c) �ˤ�äưʲ��ο �Τ 褦���r��ΰ�ζ���
�˸����äƽ��Ϥ�����:

t/l t/c t/r

c/l c c/r

b/l b/c b/r

�⡼�� `outside` �Ǥ���Ʊ��˼�ưŪ�����֤���������������ΰ�ζ�


�����Ф��ơ��Ȥ�������ष����� ‫��ܤ‬Ф��ơ��Ȥ����٤��Ǥ��礦������
��a�����դζ����ϡ�������ΰ�γ�������ξ����뤬뤿뤿 �� ¦�˰�
ˡ���
ư���뤬뤬뤳 � �����������������¾�Υ�٥�μ����������
Ȥˤʤ� �� ⤷��
��������ϥǥХ����ˤ�äƤϥ��顼����������⤷����������ν�
�Ϥ˹�碌�Ƥɤ� � r 趭������ ư���뤬뤬줿�
ϡ��� ˽Ҥ ٤�����ΰ��֡�����ӽ�
�;夲����� ˰� ¸� � � 4���‫����� ޤ‬濴·���Υ��‫`( ����ץ‬center`) �˴�
���Ƥϡ��ɤζ�����ư���Τ��˴‫��ؤ‬뤬뤬벾 �
� �
�����Ϥ���� ��
� ���
�� Ѥ
�Υ��‫����ץ‬ˤĤ��Ƥϡ��Ť;夲����`vertical` �ξ��Ϻ�����ϱ���
��������`horizontal` �ξ��Ͼ����ϲ��ζ����������줿뤬륢 ���
¦�
��Ŭ�‫�ڤ‬
��ư�������

;�� (margin) �ν���ϡ��Ť;夲����� ˤ�����ʤ���ưŪ�����֤��ǽ


�ˤ��Ƥ������`lmargin` (lm), `rmargin` (rm), `tmargin` (tm),
`bmargin` (bm) �Τ��dΰ�Ĥ��� ⤷�ʤ� 1 ���Υ���� �ɤ��Ȥ �
� �� � ߹��
���ƻ��Ѥ�����硢�ʲ��ο �˼� � � � �������� 㤬�� �֤�����:

l/tm c/tm r/tm


t/lm t/rm

c/lm c/rm

b/lm b/rm

l/bm c/bm r/bm

������� `above` �� `over` �� `tmargin` ��Ʊ������Ǥ�����p�ΥС���


���Ȥθ ߴ�-�Τ���ˡ�`above` �� `over` �� l/c/r ��Ť;夲���Υ�
����ɤʤ��ǻ��Ѥ���ȡ�`center` �� `horizontal` ��Ȥ������������
���� `below` �� `under` �� `bmargin` ��Ʊ������Ǥ����ߴ�-�Τ���ˡ�
`below` �� `under` �� l/c/r ��Ť;夲���Υ�����ɤʤ��ǻ��Ѥ����
`center` �� `horizontal` ��Ȥ����������ˡ�`outside` ��ߴ�-�Τ���
�� t/b/c ��Ť;夲��� Υ�����ɤ��ʤ���С�`top`, `right`,
`vertical` (�Ĥ ���� t/rm ��Ʊ��) ����Ѥ������

����ΰ��� (<position>) �ϡ���p�ΥС�������Ʊ��ñ�� x,y,z �����


�Ƥ⤤���Ǥ��������κǽ�Υ���‫��ץ‬ j� �뤬뤿뤿
Ԥκ�ɸ�κ�ɽ�Ϥ�� ���
5
�ĤΥ������ (`first`, `second`, `graph`, `screen`, `character`) ��
Ƭ�ˤĤ��뤬뤬뤳 �
Ȥ�Ǥ�� ٤ܺ����‫ޤ‬ϡ��ʲ�����: `coordinates`��<position>
Ϳ�
����� 줿뤬줿�� ��
`left`, `right`, `top`, `bottom`, `center` �θ��ϡ�
label ���‫�ޥ‬ɤ����֤����ʸ����ξ���Ʊ���褦�˴� � � �֤ΰ���·����
���Ѥ����������ʤ�a�`left` �����㤬 <position> �α����֤���ƺ���
�碌�ǽ��Ϥ�������¾�ξ���Ʊ��Ǥ���
C 4 ����Υ���‫( �ץ‬key samples)
4 key samples
?commands set key samples
?set key samples
?key samples
�ǥե���ȤǤϡ�����վ�γ��r������ (key) ��ˤ��줿뤬륢 �
���
б����륨
��ȥ��8.����������Υ���ȥ�ˤϡ��r 西���ȥ� ȡ � � � � � � r � ǻ Ȥ � �
��Τ�Ʊ������Ʊ���ɤ�Ĥ֤�°-�ˤ���/��/Ȣ �Υ���‫ץ‬뤬�������
font �� textcolor °-�ϡ�������˸�����ġ����r 西���ȥ� θ � � � � ‫�ܤ‬
)�椷�����textcolor �� "variable" �˥��åȤ���ȡ�����γƥ���ȥ��
ʸ����ϡ��r 襰�� դ � � � � � ɤ � Ĥ ֤�����Ʊ�����ˤʤ���������ϡ���p
�Τ������ gnuplot �Υǥե���Ȥε�ư�Ǥ�����

����ն���Υ���‫���ץ‬ʬ��Ĺ���� `samplen` �ǻ���Ǥ����������Ĺ��


����9���Ĺ���ȡ�<sample_length>*(ʸ����) ���¤Ȥ��Ʒ
‫���������ޤ‬
`sapmlen` �ϡ�����վ���$Υ���‫�ץ‬ΰ��֤ˤ� (�⤷����‫��ץ‬ʬ���Ȥ�
��ʤ��Ƥ�
� � ) �ƶd�� ��� � Ϳ
��Ƥ��

�� ��������ϡ��$ε���ϥ���‫��ץ‬ʬ����
��˽���
�뤬뤿뤿��
Ǥ���

����Υ ١����饤��֤ϡ����ߤΥ
ֳ ե���ȥ��������Ф����1 �Զ��
(single space) �ˤʤäƤ����������� `set key spacing <line-spacing>`
���ѹ��Ǥ������

<width_increment> �ϡ�ʸ�����Ĺ���˲ä����긺�餷����� ���(��ʸ��ʬ


���) ��ɽ������Ǥ�������ϡ�����˳��Ȥ� � ��ʸ�����
�) �ʸ���Ȥ���
��ˤ$���ѤǤ��礦�� `gnuplot` �ϳ��Ȥ����������Ȥ��ϡ���٥�ʸ��
���ʸ����ñ��˿��$��ʤΤǡ������5����Τ˻Ȥ������
C 4 ʣ�������ν��� (multiple keys)
4 multiple keys
?multiple keys
?set key multiple keys
?key multiple keys
=legend
Ffigure_multiple_keys
�ƥ���դΥ����ȥ�� �� ���� ٤Ƽ�ưŪ��8.��������� (key) ���ɽ������
������ˡ�ɽ���������ư�����֤��뤬뤬뤳 �
Ȥ��Ǥ�� ��������ˤ�ꡢ�㤨
��¿���r�⡼�� (multiplot) �Ǥγƥ�������Ǥ��Ф���ɽ��� 1 �ս�˽�
� ƺ�
� � 뤬뤬뤳 �
Ȥ��Ǥ��� 褦�ˤʤ�����
�ʲ��Ϥ��ΰ���:
set multiplot layout 3,2 columnsfirst
set style data boxes
plot $D using 0:6 lt 1 title at 0.75, 0.20
plot $D using 0:12 lt 2 title at 0.75, 0.17
plot $D using 0:13 lt 3 title at 0.75, 0.14
plot $D using 0:14 lt 4 title at 0.75, 0.11
set label 1 at screen 0.75, screen 0.22 "Custom combined key area"
plot $D using 0:($6+$12+$13+$14) with linespoints title "total"
unset multiplot
C 3 ��٥� (label)
3 label
?commands set label
?commands unset label
?commands show label
?set label
?unset label
?show label
?label
?nolabel
`set label` ���‫��ޥ‬ ɤ�Ȥ����Ȥˤ�ä�Ǥ�դθ��Ф� (label) � �����

��ɽ�����뤬뤬뤳 �
Ȥ��Ǥ�� ����

��:
set label {<tag>} {"<label text>"} {at <position>}
{left | center | right}
{norotate | rotate {by <degrees>}}
{font "<name>{,<size>}"}
{noenhanced}
{front | back}
{textcolor <colorspec>}
{point <pointstyle> | nopoint}
{offset <offset>}
{boxed}
{hypertext}
unset label {<tag>}
show label

���� (<position>) �� x,y �� x,y,z �Τɤd 餫�ǻ���� ��� ɸ�Ϥ����� �


�ˤϤ��κ�ɸ��p�� `first`, `second`, `polar`, `graph`, `screen`,
`character` ��Ĥ��٤ܺ����‫ޤ‬ϡ��ʲ�����: `coordinates`��


���� (<tag>) �ϸ��Ф�������뤬뤿뤿��
0���� Ǥ�������������ʤ��ä�

�������ѤΤ�ΤǺǤ⾮����
�����ưŪ�˳����Ƥ��ߤ������‫ޤ‬θ��Ф�
���ѹ�����Ȥ��Ϥ��Υ������ѹ����������‫�����ܤ‬ ��
� `set label` ���‫�ޥ‬

�ɤ�Ȥ������

<label text> ��ʸ�������Ǥ�� ���


� ���� �
� �� ʸ�����ѿ�
����ʸ�����
����ļ��Ǥ�� ���
� ����
��ʲ�����: `strings`, `sprintf`, `gprintf`��
�ǥե���ȤǤϡ������ ���x,y,z �˸��Ф���ʸ�Ϥκ�ü�����褦������
��������x,y,z � � Τɤ���·��� 뤬뤬줿
Ф � �� �ѹ�����ˤ��ѿ�
��
<justification> ��������������ˤϡ�`left`, `right`, `center` ��
�����줿줬뤳 ������
Ǥ������줿뤬륢 �
� κ����������椬���
ʸ�Ϥ �� ��
$����褦

�����֤���褦�ˤʤ������r��ϰϤγ��ˤϤ�Ф�褦�ʻ�������
��������ɸ���θ��Ф���¾��ʸ����ȽŤʤ��礬���� ����

Ȣ���դ��Υ�٥� � ‫��ݡ‬
� Ȥ�����Ϸ|��⤢�������ʲ�����:
`set style textbox`����ž������ʸ�����Ȣ�դ��ϡ����٤Ƥν � �Ϸ | � � � � �
ǽ�ʤ 櫓�ǤϤ�������

`rotate` ������ � ȥ� ٥�ϽĽˤ


ĽĽ
�ʤ
��Ľ
Ľ ����`rotate by <degrees>`
������ � ȡ� ʸ� � � � Υ ١����饤�����
�� ��
Ѥ�������������$���ʸ
����β�� ž� ‫��ݡ‬
� Ȥ��Ƥ��ʤ����Ϸ|��⤢������

��ե���ȤȤ��Υ������ϡ����Ϸ|����ե���Ȥ����� �‫��ݡ‬Ȥ��Ƥ����

`font "<name>{,<size>}"` ���<�Ū��j��Ǥ�����������Ǥʤ����Ϸ|���
�ϡ��ǥե���ȤΥե���Ȥ��Ȥ������

���ϡ����ߤν��Ϸ|������‫��ݡ‬Ȥ��Ƥ���С���٥�ʸ�����t�Ƥ�ʸ����
�˳�ĥʸ�������⡼�� (enhanced text mode) �����Ѥ�������

Ȥǡ�����
`noenhanced` ����Ѥ��뤬뤬뤳 Υ�٥���ĥʸ�������鳰����
�Ȥ��Ǥ����������ϡ���٥뤬� 㤨� Х���!������� (_) ����Ǥ����
��ʤɤ���ѤǤ����ʲ�����: `enhanced text`��

Ϳ�
`front` �������ȡ���� Ф��ϥǡ����Υ���դξ�˽ ˽
��� ����`back`
Ϳ�
�������� (�ǥե����)�����Ф��ϥ���դβ��˽ ˽��� ����`front`
��Ȥ����Ȥǡ���ʥǡ����ˤ�äƸ��Ф���������Ƥ�������Ȥ�� � � � 뤬뤬뤳��
����������

`textcolor <colorspec>` �ϸ��Ф�ʸ����ο����ѹ��������<colorspec> ��


��rgb ��������ϥѥ�åȤ ‫ؤ‬γ���Τ����줿줬뤳 ��
����
Ǥ������
�ʲ�����: `colorspec`, `palette`��`textcolor` �ϡ�`tc` �Ⱦ�ά��ǽ�Ǥ���
`tc default` �ϡ�ʸ���ǥե���Ȥˤ������
`tc lt <n>` �ϡ�ʸ������ <n> (line type)��Ʊ����Τˤ������
`tc ls <n>` �ϡ�ʸ��� line style <n> ��Ʊ����Τˤ������
`tc palette z` �ϡ����Ф��� z �ΰ��֤��б������ѥ�åȿ��ˤʤ�����
`tc palette cb <val>` �ϡ������� (colorbar) �� <val> �ο��ˤʤ�����
`tc palette fraction <val>` (0<=val<=1) �ϡ�[0:1] ���� `palette` ��
������Ĵ/���顼�‫ؤ‬μ�����б��������ˤʤ�����
`tc rgb "#RRGGBB"`, `tc rgb "0xRRGGBB"` �ϡ�Ǥ�դ� 24-bit RGB ����
���������
`tc rgb 0xRRGGBB` ��Ʊ���Ǥ� (16 �������ˤϰ����������)��

<pointstyle> ���������`lt`, `pt`, `ps` �ȤȤ��������



( Ϳ ʲ�
Ϳ�
����: `style`)����� 줿뤬줿 �
������
ȡ�� Ϳ�� � � 줿뤬줿
��
ο���Ǹ��Ф����֤�
�� (point) ���r 褵�����
졢 Ф�ʸ����Ͼ�����ư�����������Υ��‫����ץ‬
�� `mouse` ��ĥ���줿뤬줿 �

Ϸ�
|��ǤΥ�٥�����֤ˡ��ǥե���Ȥǻ��Ѥ���
�Ƥ���������Ф�ʸ�������� �$ �r 赡 ǽ�� off (���줿줬줬 �
ǥե���� ) �ˤ�
��ˤϡ�`nopoint` ����Ѥ��Ƥ��$�����

���ΰ�ư�ϡ��ǥե���ȤǤϡ�<pointstyle> ��Ϳ������� `pointsize` ��


ñ��� 1,1 �ǡ�<pointstyle> ��Ϳ�����Ƥ��ʤ���� 0,0 �Ǥ�����ư�ϡ�
�ɲä� `offset <offset>` �Ǥ�)��Ǥ�����������ǡ�<offset> �� x,y ��
����� � x,y,z �η|��Ǥ���������˺�ɸ�Ϥ�j� �� ơ����� p�� `first`,

`second`, `graph`, `screen`, `character` �Τ����줿줬뤳� �
Ȥ�Ǥ�
Ĥ��뤬뤬뤳
�٤ܺ����‫ޤ‬ϡ��ʲ�����: `coordinates`��
�⤷��� (���뤬뤬뤤 �
Ϥ���ʾ�� ) �������ּ��Ǥ����硢�� ɸ�� `timefmt`
ν �νˤ�
ư �����ν�����ǰϤ
ä �줿 ʸ�����Ϳ���ɬ�
� ‫����פ�����ޤ‬ʲ���
��: `set xdata`, `set timefmt`��

� ��ʥ��‫����ץ‬ϡ��r 襹������`labels` �Ǥ����


`set label` �˴‫���ؤ‬
�Ǥ����ʲ�����: `labels`�����ξ�硢`textcolor`, `rotate`, `pointsize`
��°-�θ��˥������ `variable` ��Ĥ��ơ������������Ǥʤ��褦
�ˤ��뤬뤬뤳 �
Ȥ��� ǽ�Ǥ������ξ��ġ��Υ�٥���б�����°-��ϡ�`using`
������ɲ���ˤ����������

4 examples
?label examples
?set label examples
��:

(1,2) �ΰ��֤� "y=x" �Ƚ�����


�:
set label "y=x" at 1,2

Symbol �ե���ȤΥ����� 24 �� "������" (��) � � �դ ��


ο���˽���
���:

set label "S" at graph 0.5,0.5 center font "Symbol,24"

���Ф� "y=x^2" �α�ü�� (2,3,4) �����褦�ˤ��������ֹ�Ȥ��� 3 ��Ȥ�


���:
set label 3 "y=x^2" at 2,3,4 right

���θ��Ф������·���ˤ�����:
set label 3 center

�����ֹ� 2 �θ��Ф��������:
unset label 2

t�Ƥθ��Ф��������:
unset label

t�Ƥθ��Ф���� � �ֹ���ɽ��������:
show label

x �������ּ��Ǥ��뤬쥹볰 դ�
�� � Ф � � � � � � �� ���
˸ :
set timefmt "%d/%m/%y,%H:%M"
set label "Harvest" at "25/8/93",1

�ǡ����ȡ���������ƤϤ��줿�ѥ��� �� ˤ����ƤϤ�‫���ؿ‬r 褷����


��硢`fit` �θ�Ǥ��� `plot` ��p�˰ʲ���¹Ԥ����:
set label sprintf("a = %3.5g",par_a) at 30,15
bfit = gprintf("b = %s*10^%S",par_b)
set label bfit at 30,20

��ƤϤ����ѥ��� �� ΤĤ����‫���|����ؿ‬ɽ�����������:
f(x)=a+b*x
fit f(x) 'datafile' via a,b
set label GPFUN_f at graph .05,.95
set label sprintf("a = %g", a) at graph .05,.90
set label sprintf("b = %g", b) at graph .05,.85

���Ф�ʸ���� �
����
� � $ � 龯��� $���ư������:
set label 'origin' at 0,0 point lt 1 pt 2 ps 3 offset 1,-1
pm3d ��Ȥä� 3 �����Υ��顼�����Τ����$ΰ��֤ˡ����� z ���� (����
���� 5.5) ���б�������� Ф ��ʸ����ˤĤ�����:
set label 'text' at 0,0,5.5 tc palette z
C 4 �ϥ��ѡ��ƥ����� (hypertext)
4 hypertext
?hypertext
?label hypertext
?set label hypertext
���Ϸ|�����ˤ� (wxt, qt, svg, canvas, win) ����վ������ΰ��֤䥭
���Х���Τ���¾����ʬ�˥ϥ��ѡ��ƥ����Ȥ�Ž���դ��뤬뤬뤳 �
Ȥ��Ǥ�����
������‫����ޤ����ޥ‬ξ � ���˻�äƤ����ȡ�ʸ�������Ȣ���‫ݥ‬å ‫���ץ‬
Ȥ
�‫������פ���ޤ‬ϥ��ѡ��ƥ����Ȥ ��‫��ݡ‬Ȥ��ʤ����Ϸ|��Ǥϡ�����ϲ���
ɽ�������� � � ϥ��ѡ��ƥ����Ȥ�Ž���դ���ˤϡ����Υ�٥�� `point`
°-�����ˤ���ɬ�‫���פ�����ޤ‬
��:
set label at 0,0 "Plot origin" hypertext point pt 1
plot 'data' using 1:2:0 with labels hypertext point pt 7 \
title 'mouse over point to see its order in data set'

��ʳ��ε�ǽ (����κ ٤�����ʬ���ѹ��β�ǽ-����):


"image{<xsize>,<ysize>}:<filename>{\n<caption text>}" �η|���ʸ�����
�‫ݥ‬å ‫��ץ‬å‫ץܥ‬å�����Dz���ե������ɽ��������褦�ˤ��������������
��ˤ��ǥե���ȤΥ����� 300x200 ���ѹ��Ǥ������ǧ� � � ������ ե���
��η��Ͻ��Ϸ|��ˤ�äư 㤤�������*.png �Ͼ�� OK �Ǥ�������ե�����
��θ��˽��ϥ
�ʸ����ϡ���
Υ � ��ѡ��ƥ����Ȥ�Ʊ���ɽ����� ����
C 3 ��� (linetype)
3 linetype
?commands set linetype
?commands show linetype
?set linetype
?show linetype
?linetype
���‫` ��ޥ‬set linetype` �ϳƼ��r�˻��Ѥ�������Ū����� (linetype)
�����d��뤬뤬뤳 � ǽ�ˤ���������Υ��‫�ޥ‬ɤΥ��‫����ץ‬ϡ�
Ȥ��
"set style line" �Τ�Τ�t��Ʊ���Ǥ����饤� ��������Ȱ
� 㤦�Ȥ���ϡ�
`set linetype` �ˤ�����dϱ�³Ū�ʤ��Ȥǡ������ `reset` �αƶd��
�������

�㤨�С���� 1 �� 2 �ϥǥե���ȤǤ��֤��ФǤ��������ʲ��Τ 褦�˺�


��d����:

set linetype 1 lw 2 lc rgb "blue" pointtype 6


set linetype 2 lw 2 lc rgb "forest-green" pointtype 8

����� lt 1 ����Ѥ��Ƥ��뤹� ٤ƤΤ � Τ � � � � ٤���� (lt 1 �ΰ�p�Υǥ�


�����) �Ǥʤ��$�����ˤʤ���������-�dϡ�lt 1 �˴�Ť��ƺ��줿
��Ū�ʥ 饤�
����������dΤ
� 褦�ʤ�Τ���Ǥ������

`���`: ���Υ��‫�ޥ‬ɤ� gnuplot �С������ 4.6 �ǿ�����Ƴ����줿��Τǡ�


��p�Τ�������ʥ��‫" ��ޥ‬set style increment user" ���֤�������Τ�
�Ť����‫�ޥ‬ɤϸ��ߤ���侩�Ǥ���

���λ��Ȥ ߤϡ�gnuplot �ǻ��Ѥ����������Ф���Ŀ�Ū�ʹ��ߤ���������


��
�ˤ�Ȥ�����������Ԥ��ˤϡ��¹Ի����ե����� ~/.gnuplot �ˡ��㤨
�аʲ��Τ 褦�ʤ����ѤΥ��‫������ޥ‬ɲä��뤬뤬뤳��
ȤȤ ᤷ ��
��:

set linetype 1 lc rgb "dark-violet" lw 2 pt 1


set linetype 2 lc rgb "sea-green" lw 2 pt 7
set linetype 3 lc rgb "cyan" lw 2 pt 6 pi -1
set linetype 4 lc rgb "dark-red" lw 2 pt 5 pi -1
set linetype 5 lc rgb "blue" lw 2 pt 8
set linetype 6 lc rgb "dark-orange" lw 2 pt 3
set linetype 7 lc rgb "black" lw 2 pt 11
set linetype 8 lc rgb "goldenrod" lw 2
set linetype cycle 8

��������ȡ����ʤ��� gnuplot ��¹Ԥ����٤����Ϥ�������˽��


���������Ϥ��ʤ��������$����Ǥ����������d��ʤ����ϡ���
��ϥǥե���Ȥ�°-����³��������㤨����� 3 �����d��鳰��� С�
������Ĥ� pt 3, lw 1 �Ȥʤ������ʤ�������‫ץ‬뤬륽륹 ���
‫�ץ‬
Ȥκǽ�� 2,3
�ιԤϡ��Ť��С������� gnuplot �Ǥϥ����å ‫����פ‬뤬뤿뤿
����
‫��ݸ‬Ǥ���

Ʊ��Υ�����‫ץ‬ȥե�� � � � ǡ � � ơ � � ١ ‫����ޥ‬ο�j�����d�Ԥä��ꡢ����
���r 西���‫����ס‬뤬뤬뤤 �����ν�
��Ϸ|��Ѥ˿�� �� � �
����
� �� ‫����������ޥ‬
�뤬뤬뤳
��
���ǽ�Ǥ���

=cycle
���‫` ��ޥ‬set linetype cycle 8` �ϡ��礭�� �ֹ�������Ф��ƤϿ������
�˴‫��ؤ‬뤬뤬뤳 ������
d�����Ѥ��뤬뤬뤳 � gnuplot ���d���������ʤ�a�
Ȥ�
��� (linetype) 9-16, 17-24 ����Ф��Ƥϡ������Ʊ��������������Ѥ�
��������$����$�°- (pointtype, pointsize, pointinterval) �ϡ�����
���‫�ޥ‬ɤαƶdϼ�����`unset linetype cycle` �Ϥ��ε�ǽ������
��������礭�����ֹ�����°-���<�Ū����d������ϡ�����Ͼ�����
�ֹ������°-�κ����Ѥ�����褵������
C 3 �� 2 ���Ȥ��б� (link)
3 link
?commands set link
?set link
?link
��:
set link {x2 | y2} {via <expression1> inverse <expression2>}
unset link

���‫` ��ޥ‬set link` �ϡ�x ���� x2 ��������� y ���� y2 ���δ֤��б���


���������<expression1> �ϡ��� 1 ���κ�ɸ���� 2 ���˼�����Ǥ�
����<expression2> ���� 2 ���κ�ɸ���� 1 ���˼�����Ǥ���

��:

set link x2

����ϡ����Υ��‫�ޥ‬ɤκǤ�ñ��ʷ|��ǡ�x2 �����ϰ� (range) ��� ��



(scale) ������ x ����t��Ʊ���ˤ������`set xrange`, `set x2range`
�� `set auto x` �ʤɤΥ��‫�ޥ‬ɤϡ����ξ�� x ���ˤ� x2 ���ˤ���Ѥ���
����

set link x2 via x**2 inverse sqrt(x)


plot "sqrt_data" using 1:2 axes x2y1, "linear_data" using 1:2 axes x1y1

���Υ��‫�ޥ‬ɤϡ�x ���� x2 ���Ρ������ȵ������б��������Ƥ� � ����


�������б��ϡ�x2 ���ι�٥ � ߥ�ȡ � � ‫ �����ޥ‬x2 ��ɸ��8.����Τ˻�
�����������б��ϡ�x2 ���Ϥǻ����줿��ɸ���r 褹�� Τ˻Ȥ��������
���б��ϡ������ x ��ɸ�ˤΤ����Ǥ��뤬뤬뤳 �
Ȥ���դ��Ƥ�� $�����y2 ����
�б���������硢<expression1> �� <expression2> �ˤϲ��ѿ�Ȥ��� y ���
��ɬ�‫���פ�����ޤ‬
3 lmargin
?commands set lmargin
?set lmargin
?lmargin
���‫� ��ޥ‬ �
`set lmargin` �Ϻ���;��Υ������å �Ȥ�� ٤ܺ����‫ޤ‬ϡ��ʲ�
����: `set margin`��
C 3 �ɤ߹��߸���ѥ� (loadpath)
3 loadpath
?commands set loadpath
?commands show loadpath
?set loadpath
?show loadpath
?loadpath
`loadpath` ������ϡ�`call`, `load`, `plot`, `splot` ���‫�ޥ‬ɤΥǡ���
�ե����뤬졼롢 ���ɥե�����θ ���ѥ����ɲ���d�����ե����
‫�ޥ‬ �� 뤬���ߤ�
�ǥ��줿쥹뤿 � Ĥ � � � ʤ � � ä � � � 硢`loadpath` �Υǥ��줿쥹뤿
ȥ�˸�� ȥ꤬��
���
������

��:
set loadpath {"pathlist1" {"pathlist2"...}}
show loadpath

�ѥ����ñ��Υǥ��줿쥹뤿 � � � ����ʣ��Υѥ�� �Υ ꥹ� ȤȤ�����Ϥ���


ȥ���
����ʣ��Υѥ�����ʤ�ѥ��ꥹ� Ȥ� OS ��� ѥΥ
������ ‫ڤ‬ꡢ�㤨�� Unix ��
�ϥ���� (':'), MS-DOS, Windows, OS/2 �Ǥϥ��ߥ���� (';') ��Ƕ��‫�ڤ‬
�����`show loadpath`, `save`, `save set` ���‫�ޥ‬ɤϡ�OS ����Υѥ���
�‫�ڤ‬
� ‫֤������ޤ‬
� ��� (' ') ���‫���ڡ‬

�Ķ��ѿ� GNUPLOT_LIB ������� �


Ƥ � � � � 硢������Ƥ�
� `loadpath` � � � �
�ä���������`show loadpath` �ϡ�`set loadpath` �� GNUPLOT_LIB �����
�����ɽ�����������`save`, `save set` ���‫�ޥ‬ɤϡ�GNUPLOT_LIB �����

�����뤬뤬뤷 �
����
C 3 ������ (locale)
3 locale
?commands set locale
?set locale
?locale
`locale` ������� `{x,y,z}{d,m}tics` �������դθ8����������

��:
set locale {"<locale>"}

<locale> �ˤϥ�� ��
�� �
ȡ��
�� 뤵�������
줿 ƥ�ǻȤ����Ȥν����Ǥ�դθ8��
����Ǥ��������ǽ�ʥ��‫����ץ‬ˤĤ��Ƥϥ����ƥ�Υɥ�����ȤȤȤ� Ȥ Ȥ
��
�Ƥ��$��������‫` ��ޥ‬set locale ""` �ϡ��Ķ��ѿ� LC_TIME, LC_ALL, ��
���� LANG �����������������褦�Ȥ������

�����$˴‫ ���ؤ‬locale ���ѹ����������ϡ��ʲ�����: `set decimalsign`��

ʸ����ɤ
ɤ�
� ɤ ��
ɤ ߤΥ�����Τ�Τ��ѹ����������ϡ��ʲ�����:
`set encoding`��
C 3 �п� (logscale)
3 logscale
?commands set logscale
?commands unset logscale
?commands show logscale
?set logscale
?unset logscale
?show logscale
?set log
?logscale
?nologscale
��:
set logscale <axes> {<base>}
unset logscale <axes>
show logscale

�����ǡ�<axes> (��) �ϡ�`x`, `x2`, `y`, `y2`, `z`, `cb`, `r` ��Ǥ�դ�
�����Ȥ߹礻����ǽ�Ǥ���<base> �ϡ��п���9�����Ǥ� (�ǥե���Ȥ�
��� 10)����������ʤ��ä����ϡ�`r` �ʳ��Τ��٤Ƥμ � � � � о ‫ݤ‬Ȥʤ��
�������‫` ��ޥ‬unset logscale` �ϡ����٤Ƥμ � � � � п � � � 9 � � � � � ����
�п���Ф��ƤĤ�������9��ι�ߤϡ���֤ǤϤʤ����Ȥ���դ��Ƥ�
ֳ
�$������ʲ�����: `set xtics`��

��:

x, z ξ���ˤĤ����п���9�������� �
:
set logscale xz

y ���ˤĤ����� 2 �Ȥ����п���9�������� �
:
set logscale y 2

pm3d plot �Ѥ� z �ȿ��μ����п���9�������� �


:
set logscale zcb

z �������9������:
unset logscale z
C 3 �‫( ���ޥ‬macros)
3 macros
?commands set macros
?set macros
���ߤΥС������� gnuplot �Ǥϡ��‫��ִ����ޥ‬Ͼ�����Ǥ������‫ �ޥ‬ɥ�
������� @<stringvariablename> �η|�����ʬʸ����ϡ�ʸ�����ѿ�
<stringvariablename> �˴ ‫ � �ޤ ޤ‬ƥ�����ʸ������ ֤� � � � � � � � ‫ � � � �ޤ‬ʲ�
����: `substitution`��
C 3 3 ������ɸ�� (mapping)
3 mapping
?commands set mapping
?commands show mapping
?set mapping
?show mapping
?mapping
�ǡ����� `splot` �˵����ɸ������ɸ��Ϳ��� � 줿� � 硢`set mapping`
���‫ �ޥ‬ɤ� `gnuplot` �ˤ����ɤΤ ��˰����������� �Τ˻Ȥ�� ‫� � �ޤ‬

��:
set mapping {cartesian | spherical | cylindrical}

�ǥե���ȤǤϥ����ƥ������ɸ (���� x,y,z ��ɸ) ���Ȥ�� ‫� � �ޤ‬

�����ɸ�Ǥϡ��ǡ����� 2 �Ĥ� 3 �Ĥ��� (� ‫ � �ޤ‬Ϥ��θĿ�� `using` ����


�ȥ�) �Ȥ���Ϳ����
� ‫ � � � �ޤ‬ǽ�� 2 �Ĥϡ�`set angles` �������줿 ñ��
�Ǥ����� (theta) �ȶij� (phi) (���ʤ�� "����" �� "����") �Ȥ ߤʤ���
� ‫ � � �ޤ‬Ⱦ�� r �ϡ��⤷ 3 ��� ‫ܤ‬Υǡ���������Ф��줬 Ȥ� � 졢� ⤷�
ʤ����
1 ������� �‫ � � � � � �ޤ‬ѿ�� x,y,z �Ȥ��б��ϰʲ������Ǥ�:

x = r * cos(theta) * cos(phi)
y = r * sin(theta) * cos(phi)
z = r * sin(phi)
����ϡ�"�˺�ɸ��" �Ȥ�����ꡢ�ष�� "�ϳ ‫�ؾ‬κ�ɸ��" (���١�����) ��
����뤳�Ȥ���դ��Ƥ��$��� (���ʤ�a�phi �� z ���Ȥʤ��ѡ��Ȥ���
�����ƻ����‫פ‬ä��ijѡ��ˤʤ� ‫��)�ޤ‬

�����ɸ�Ǥϡ��ǡ����Ϥ�Ϥ� 2 �Ĥ� 3 �Ĥ����Ϳ��� � 졢�ǽ�� 2 �Ĥ�


theta (`set angle` �ǻ����줿 ñ���) �� z �ȸ��ʤ��� ‫���ޤ‬Ⱦ�� r ��
�����ɸ�ξ���Ʊ�‫�ޥ‬3 ���‫ܤ‬Υǡ���������Ф��줬� �� ʤ���� 1 ������
���� ‫������ޤ‬ѿ�� x,y,z �Ȥ��б��ϰʲ������Ǥ�:

x = r * cos(theta)
y = r * sin(theta)
z = z

`mapping` �θ��ϡ�`splot` ���‫�ޥ‬ɾ� � `using` � ˤ� � ե� � 륿�Ǽ¸�


���뤳�Ȥ��ǽ�Ǥ�����¿���Υǡ����ե����뤬 � � � � � � � � � `mapping`
��������Ǥ���� ��������� `mapping` ��ȤäƤ��Ƥ⡢� � �ե�����
Υ� ⤷
�����ν��֤ ��Ŭ�‫ڤ‬Ǥʤ��ä����� `using` ��ɬ�‫פ‬ˤʤäƤ��‫���ޤ��ޤ‬

`mapping` �� `plot` �Ǥϲ��⤷� ‫���ޤ‬


^ �ʲ���� �
^ <a href="http://www.gnuplot.info/demo/world.html">
world.dem: mapping �Υǥ⡣
^ </a>
C 3 ���Ϥ�;�� (margin)
3 margin
?commands set margins
?commands show margins
?set margin
?set margins
?show margins
?margins
`margin` (���Ϥ�;��) �Ȥϡ��r��ΰ�ζ������饭���Х��ΰ��ֳ�¦� ‫�ޤ‬
�δֳ֤Τ��ȤǤ�������;������ �� ϼ�ưŪ�ˤȤ��‫��ޤ��������ޥ‬
`set margin` ���ѹ����뤳�Ȥ�Ǥ��‫`���ޤ‬show margin` �ϸ��ߤ������ɽ
����� ‫����ޤ‬r��ΰ�ζ���������¦���r����Ǥ ‫ޤ‬Ǥδֳ֤��ѹ�����������
�ʲ�����: `set offsets`��

��:
set lmargin {{at screen} <margin>}
set rmargin {{at screen} <margin>}
set tmargin {{at screen} <margin>}
set bmargin {{at screen} <margin>}
set margins <left>, <right>, <bottom>, <top>
show margin

<margin> �Υǥե���Ȥ�ñ��ˤϡ�Ŭ�‫ڤ‬Ȼ ‫��פ‬롢 ʸ��ι⤵����Ȥ�


��5���‫���ޤ‬ � �;�������Ū����� � � � � �d�������� (�‫���ޤ‬
� ����) ��
`gnuplot` �ˤ�äƼ�ư�����������Ȥ����Ȥˤʤ�3���‫����� ޤ‬r�Ǥ�
����;�� (lmargin) �Τ ߤ�ʸ������ � � �ñ��Ȥ�������Ǥ��‫���ޤ‬

������� `at screen` �ϡ�����;��λ���꤬ t�Τ��r��ΰ���Ф�����


�Ǥ��뤳 � Ȥ������‫�������ޤ‬ϡ�¿���r� (multiplot) �⡼�ɤǤ� 2D, 3D
����դγѤ�5�Τ�·����Τ˻Ȥ��‫����������ޤ‬ � ֤ ϸ� � ߤ� `set origin` ��
�� `set size` �������뤹��褦�ˤʤäƤ��ơ������¿���r���Υ����
�����֤��� ���ˡ�Ȥ��ƻȤ��뤳 � Ȥ�տ‫��ޤ‬Ƥ� � ‫���ޤ‬

9��θ��Ф������θ��Ф����r�Υ����ȥ 롢
�r��;��������9�ꡢ��
˷�� �������
���ա������ƶ����γ��ˤ���������� (key) �Υ������� �
��������������9��ι�ߤ������Ǥʤ�������ˤĤ��Ƥ����� (��� �
`set xtics axis` �ˤ�ä�)����9��ι����ȤȤ��θ��Ф���;��η����
�ϴ ‫��ޤޤ�ޤ‬
� ��
� �¾ �ʸ���� ΰ� �
;��˽���� � ֤ η���ˤ�‫���ޤޤ�ޤ‬
����ϡ����ȶ��������˶ᤤ�� 硢���θ��Ф���¾��ʸ������ ����
� �� ���
� ����
ǽ-� � ‫���ޤ‬
3 micro
?commands set micro
?commands show micro
?commands unset micro
?set micro
?show micro
?unset micro
?micro
�ǥե���ȤǤϡ����ι�8��٥ � ߥ.�˻��Ѥ���ʳ ‫ط‬Ͻ��ϤΤ��� νν �ν
��� "%c" �ϡ�� � ֥ (6-^10)������‫��� ���ޥ‬Ƭ���Ȥ��ƾ�ʸ���u ��Ȥ�
�‫` ��ޤ������ޥ‬set micro` �ϡ�����Ȥϰۤʤ�����ʸ�� (unicode
U+00B5) ����Ѥ���� gnuplot �˻‫�������ؼ����ޤ‬ʸ���ɽ������Τ˻�
�Ѥ����Х�����ϡ����ߤ� encoding �˰�¸���‫����ޤ‬ʲ�����:
`format specifiers`, `encoding`��

���Υ��‫�ޥ‬ɤϻ�ʳ��Τ�Τǡ�)�¤�����‫��������ޤ‬
� κ ٤�����ʬ����
�������ǽ-������‫���ޤ‬

3 minussign
?commands set minussign
?commands show minussign
?commands unset minussign
?set minussign
?show minussign
?unset minussign
?minussign
gnuplot �ϤۤȤ�ɤν��դ���Ϥ� C �8�Υ 饤�֥ ��� 롼 � e�Ǥ���
sprintf() �ǽ���‫�����������ޤ‬gnuplot �ˤ��ȼ�� νν�� ��νν 롼 � e�
`gprintf()` �⤢�ꡢ����ϼ��ι��ʸ�����8.�˻Ȥ��Ƥ��‫���ޤ‬C �Υ�
���֥��롼 � e�ϡ�-7 �Τ �� ��� ο��ɽ���ˤϾ�˥ϥ��ե�ʸ�� (ASCII
\055) ����Ѥ��‫������ޤ‬ष������ Ū�Ǥϡ�����Ȥϰۤʤ����ѤΥ ‫���ޥ‬
�����ʸ�� (Unicode U+2212) ��Ȥ� ��7 �Τ �� � ɽ����������¿���ο‫�ޥ‬
�ϻ ‫��פ‬Ǥ��礦 (����: ��ʸ�Ǥ� '7' ��p�� Unicode �Ρ֥‫��ޥ‬ʥ�����‫�פ‬
�Ȥ��Ƥ��뤬 � � � � � � �Ǥ� JIS ��t�ѥ ‫��ޥ‬ʥ����� 245D ���Ѥ���)�����‫�ޥ‬
��

set minussign

�ϡ�gprintf() �ο��ν��Ϥˡ��ϥ��ե������˥‫��ޥ‬ʥ����ʸ������
������‫���ؼ����ޤ‬UTF-8 ������ǤϤ���� Unicode U+2212 ���б�����
�‫�ޥ‬eХ���ʸ����ˤʤ ꡢ Window �����ɥ 1252 ���‫������ ڡ‬Ǥϡ�����
�� 8 �ӥå�ʸ��� ALT+150 ("en dash") �ˤʤ�‫��ޤ������ޥ‬
`set minussign` �ϡ����ι�ߤΥ�٥�ȡ � gprintf � � � < � Ū � ˸ Ƥ ӽ Ф � � � 8
.���줿 ʸ����˱ƶd��� Ϳ� ‫�¾���������ޤ‬ξ��Υϥ��ե��‫�ޤ‬ʸ�����
�ϲ���ƶd���Ϳ� ‫��ޤ‬
� � ʲ�����: `gprintf`��

LaTeX �ϡ����켫 � Ȥ��������p�ǽ������Ȥߤ��äƤ� � 뤿 � ᡢ��


�Υ��‫�ޥ‬ɤϡ�LaTeX �Ϥν��Ϸ|�����Ѥ��Ƥ��������뤵���� 뤳 Ȥ���
�դ��Ƥ��$�����postscript ���Ϸ|�����Ѥ�����⡢gnuplot ��
postscript ��p����롼 � ե
e� ascii �Υϥ��ե
�����
� \055 � `minus`
�Ȥ����p�ΰۤʤ�ʸ����Ѵ�����Τǡ����Υ��‫�ޥ‬ɤ�ɬ�‫פ‬Ϥ���‫���ޤ‬

���Υ��‫�ޥ‬ɤϻ�ʳ��Τ�Τǡ�)�¤�����‫��������ޤ‬
� κ ٤�����ʬ����
�������ǽ-������‫���ޤ‬
�� (utf8 ���������):

set minus
A = -5
print "A = ",A # �ϥ��ե��‫�ޤ‬ʸ��������
print gprintf("A = %g",A) # U+2212 ʸ���‫�ޤ‬ʸ��������
set label "V = -5" # �ϥ��ե��٥��‫�ޤ‬
set label sprintf("V = %g",-5) # �ϥ��ե��٥��‫�ޤ‬
set label gprintf("V = %g",-5) # U+2212 ��٥��‫�ޤ‬
C 3 ���⡼�� (monochrome)
3 monochrome
?commands set monochrome
?set monochrome
?monochrome
��:
set monochrome {linetype N <linetype properties>}

������ `set monochrome` �ϡ���‫���ﷲ‬


� �����ˡ��� j��‫����������ޤ‬
���ΰ �� ǤϤʤ������/����ѥ���������ΰ �� ˤ���ΤǤ������Υ�
���ɤϡ�gnuplot �ΰ�p�ΥС������Τ�����Ϸ|��� monochrome ���‫�ץ‬
���Ȥ���� � ��Ƥ�����
Τ� ���� ��������� Τǡ�����ߴ�-
�Τ��ᡢ�����
�ν��Ϸ|��� "mono" ���‫���������ץ‬ ���ȡ � � � �ۤ� �
`set monochrome` ��
�ƤӽФ��‫���ޤ‬
��� �
set terminal pdf mono
�ϡ��ʲ���Ʊ��Ǥ���
set terminal pdf
set mono

���⡼�� (monochrome) ��j��ϡ��<�Ū�� RGB �����ѥ�åȿ�����Ѥ�


�ƤΥ��顼������r��˸�����ΤǤϤ���‫��ޤ‬ � ���
�� ʲ���� �
:
`set palette gray`��
�ǥե���ȤǤ� 6 �Ĥ������郎��d���Ƥ��‫�����������ޤ‬°-���ѹ�
�����ꡢ��������ɲä����Ȥϡ��ե�|��Ǥ��Υ����ɤ���Ѥ�����
�ǤǤ��‫���������ޤ‬ˤۤɤ����줿�ѹ��ϡ����顼�����ˤϱƶd�Ϳ����
��������
դ ε ��Ʊ��Ǥ������ 顼�������ˤϡ�`unset monochrome`
����`set color` �Ȥ��Ƥ��$�����
C 3 ����� (mouse)
3 mouse
?commands set mouse
?commands unset mouse
?set mouse
?unset mouse
?mousing
?mouse
?nomouse
������ `set mouse` �ϡ����ߤ����÷����Ϸ|����Ф��ƥ������ǽ�����
�ˤ��‫��÷������ޤ‬⡼�ɤǤ����ǥե���ȤǤ�������ˤʤäƤ��‫�����ޤ‬
�����ɤ��ե����뤫 � � � ɤ߹��‫����ޤ‬ϥǥե���ȤǤ����ˤʤäƤ���
����

������⡼�ɤ� 2 �����Ѱդ���Ƥ��2���‫����� ޤ‬⡼�ɤϡ�`plot` ������


�� `splot` �� 2 �����ͱ� (���ʤ�a�z �β�ž�Ѥ� 0, 90, 180, 270, 360
�٤� `set view`������� `set view map`) ��ư��‫������ޤ‬Υ⡼�ɤǤϡ�
�‫��ޥ������֤����פ‬졢 � ‫���������������ܥ‬ȤäƳ���� � � � � �0�ư
������Ǥ��
‫�������ޤ‬դ � � б � � � � � � � � � Υ � � � � ȥ � � ��ʥ � � � � � � � � å ȥ � � � � �
ɤ��ʤɤ
���å��� ���Ȥǡ��ġ��Υ���դ��r �� ����դ��

� / ‫���ڤ��ؤ‬
Ȥ���Ȥ
��‫��ݡ‬Ȥ�����Ϸ|��⤢��‫���ޤ‬

`splot` �ˤ�� 3 ��������դ��Ф��Ƥϡ�����դλ��� (view) �Ƚ�‫�ܤ‬


�ѹ��������줾 � � 2 �� 1 ���‫�( �����ܥ‬ˤ��ɥ�å�) �ǹԤ��‫�ޤ����ܥ‬
�� 2 �ο�ľ���Υɥ�å��� shift ������Ʊ���˹Ԥ��ȡ�z ���ΰ��ֲ��ΰ�
�� (`xyplane`) ���� � �‫��������ޤ‬Υ ‫���ܥ‬ˤ���� <ctrl> ����� �
� ��
�ȡ���ɸ����ɽ������‫������ޤ‬ǡ�����ɽ���Ͼä��‫ �����������ޤ‬ʥǡ���

���Ф�����ѤǤ���� � �3 ���‫� �����ܥ‬ϡ�z ���θ��� (azimuth) ��)�椷


�‫�( �ޤ‬ʲ�����: `set view azimuth`)��

�������¿���r� (multiplot) �⡼����Ǥ����Ǥ�����`unset multiplot`


��¿���r 褬������뤹 С��������ǽ�� ON �ˤʤ�‫������ޤ‬$������κ��Ѥ�
multiplot ��κǸ���r� (replot ���r � � ��
� � �ʤ��) ���Ф��ƤΤ�
�Ǥ���

��:
set mouse {doubleclick <ms>} {nodoubleclick}
{{no}zoomcoordinates}
{zoomfactors <xmultiplier>, <ymultiplier>}
{noruler | ruler {at x,y}}
{polardistance{deg|tan} | nopolardistance}
{format <string>}
{mouseformat <int>/<string>}
{{no}labels {"labeloptions"}}
{{no}zoomjump} {{no}verbose}
unset mouse

���‫` ����ץ‬noruler` �� `ruler` �ϡ��구 (ruler) ��ǽ�� off, on �ˤ���


����`ruler` �ˤϺ�ɸ��Ϳ��Ƹ��
� $���� ����Ȥ�Ǥ��‫`���ޤ‬ruler` ��
on �δ֡�ruler �θ��$���‫ޥ����ޤ‬ǤΥ �� �
ñ��Ǥε�Υ��Ϣ³Ū��ɽ��
����‫����ޤ‬ǥե���ȤǤϡ�ruler �Υȥ��륹 � � � åd� 'r' �˥���������
����Ƥ��‫���ޤ‬

���‫` ����ץ‬polardistance` �ϡ�������������뤫���� 구 (ruler) �‫ޤ‬Ǥε�


Υ��˺�ɸ�Ǥ�ɽ�� (��Υ������ӳ��‫ޤ‬٤��Ϸ���) ���뤫�ɤ��������� �
��������ϥǥե���ȤΥ��������� '5' ���б����‫���ޤ‬

=labels
�2 ���‫ �� ܥ‬gnuplot �α�³Ū�ʥ�٥����d���ˤϡ����‫����ץ‬
`labels` ����Ѥ��‫����ޤ‬ǥե���Ȥ� `nolabels` �ǡ��2 ���‫�� ܥ‬ñ�˰�
Ū�ʥ�� � ٥���������� r �� ٥�����‫�ޤ‬ϸ��ߤ� `mouseformat` ����
��˽��ä��ƽ �‫`���ޤ‬labeloptions` ʸ����ϡ������� `set label` ��
���ɤ��Ϥ���‫������ޤ‬Υǥե���Ȥ� "point pointstyle 1" �ǡ�����ϥ�
�‫� ˾������ץ‬ ֤ � ٥饹 (`+`) ���r �� ‫�����ޤ‬Ū�ʥ�٥�ϡ����μ���
`replot`���‫��ޤ‬ϥ �������������Ǥϸ���‫��ޤ‬ � ��
�³Ū�ʥ�٥�ϡ����
����$ξ�� Ctrl ����� � �2 ���‫�� � ܥ‬å���� ��ȤǾä����Ȥ�
��ƥ
� ��
�Ǥ��‫����ޤ‬º ‫ݤ‬Υ�٥�ΰ�� �ˤɤ�����ǥ���
å ���ʤ��� Ф����ʤ���
������� `pointsize` �Ƿ���� � ‫���ޤ‬

���‫` ����ץ‬verbose` �� ON �ξ�硢�¹Ի� � ��� ���ɤ�ɽ������‫���ޤ‬


���Υ��‫����ץ‬ϥɥ �� Х�����ɥ���� `6` ���ǤĤ��Ȥ� ON/OFF ������
�ådǤ��‫����ޤ‬ǥե���ȤǤ� `verbose` �� OFF �ˤʤäƤ��‫���ޤ‬

�ɥ �� Х�����ɥ���� 'h' ���ǤĤȡ�������ȥ�� � � � � � � û � � � � � $ � ɽ � �


����‫�������ޤ‬ϡ���� � � �dΥ���������ʤ�� `bind` �����ɤˤ��
`hotkeys` (�ʲ�����: `bind`) ��ɽ������‫� � � ������ޤ‬d� `hotkeys` ��
�ǥե���ȤΥ�����������ˤ��‫���ޤ‬
�ʲ���� � : `bind`, `label`��
4 doubleclick
?set mouse doubleclick
?mouse doubleclick
�%륯֥ � � å��β����٤ϥ ߥ��� (ms) ñ���Ϳ��
� ‫�������ޤ‬ϡ��1 ���‫ܥ‬
�ѤΤ�Τǡ����ߤΥ ������� ��� å� ‫`( ��� ץܡ‬clipboard`) �˥��ԡ���
��Τ˻Ȥ����Ϸ|�������‫����ޤ‬ǥե���Ȥ�����300 ms Ǥ�������� 0
ms ������� � �� � 륯 �
ȥ�� � å��Ǥ��Υ��ԡ���Ԥ����ˤʤ�‫���ޤ‬
4 mouseformat
?set mouse format
?set mouse mouseformat
?mouse format
?mouseformat
������ `set mouse format` �ϡ�sprintf() ���Ф����ʸ����λ���ǡ�
�������������� [x,y] ��ɸ���r 襦����ɥ��ȥ���å ‫��ץܡ‬ɤˤɤΤ �
��ɽ�����뤫������‫����ޤ‬ǥե���Ȥ� "% #g" �Ǥ���

`set mouse mouseformat` �ϡ��1 ���‫� ܥ‬ȥ 2 ���‫� ܥ‬κ��ѻ� (��ɸ� �


��
� �� �
�‫��ץܡ‬ɤ ‫��إ‬ԡ������ ������� �˰�Ū������Ĥ���) ��ʸ����ν���
�˻Ȥ��0������‫��ޤ‬ξ�硢�ʲ���ɽ�ˤ��� ��
��
� �� ‫����ץ‬ΰ�Ĥ�j
�� �‫������ޤ‬ʸ����ξ��ϡ�� ��
��
� �� 6 ����‫ �� ץ‬sprintf() �ν�ʸ
����Ȥ��ƻȤ��‫��ޤ‬Τǡ�2 �Ĥμ¿�λ���Ҥ�‫�ޤ‬ɬ�‫�����פ�����ޤ‬:
`set mouse mouseformat "mouse x,y = %5.2g, %10.3f"`.
����ʸ�����‫����ޤ‬դˤ� � � ˤϡ � `set mouse mouseformat ""` � Ȥ � � ‫���ޤ‬

ν �ʲ��ν����Ѳ�
�ǽ ν Ǥ� :

0 �ǥե���� (1 ��Ʊ��)
1 ���κ�ɸ 1.23, 2.45
2 ����պ�ɸ (0 ���� 1 �‫)�ޤ‬ /1.00 ,0.00/
3 x = timefmt y = ����ɸ [(`set timefmt` ������), 2.45]
4 x = ���� y = ����ɸ [31. 12. 1999, 2.45]
5 x = ���� y = ����ɸ [23:59, 2.45]
6 x = ����/���� y = ����ɸ [31. 12. 1999 23:59, 2.45]
7 `set mouse mouseformat` �ˤ�� �� � : "mouse x,y = 1.23,
���
� �� 2.450"
C 4 ������������� (scrolling)
4 scrolling
?set mouse scrolling
?mouse scrolling
?mouse wheel
?scrolling
?mousewheel
2 ��������դ� 3 ��������դ�ξ��ǡ�X �� Y ���ο���ϥ‫������ޥ���� ۥ‬
�Ȥ����Ȥ�Ĵ0�Ǥ��‫<���ޤ‬wheel-up> �ϥ������륢 � å ‫( �פ‬YMIN �� YMAX
��ξ��� Y ���ϰϤ� 10 �ѡ�����Ȥ�����ä�����Y2MIN �� Y2MAX �ˤ�Ʊ��
�Τ��Ȥ�Ԥ��‫<��)�ޤ‬wheel-down> �ϥ�������%�� � � ‫���ޤ‬
<shift-wheel-up> �Ϻ��������뤷 (XMIN �� XMAX ��ξ����� X2MIN
�� X2MAX ��� �<shift-wheel-down>
)�
� � �ϱ�������� 뤷�‫���ޤ‬
<control-wheel-up> �ϥ���դ���� � �˥����।� �
� ��
<control-wheel-down> �ϥ����ॢॢ���Ȥ��‫<���ޤ‬shift-control-wheel-up> ��
X �� X2 ���Τ ߤ˱�äƥ����।� �
� �� <shift-control-wheel-down> �� X ��
X2 ���˱�äƤΤ ߥ����ॢॢ���Ȥ��‫���ޤ‬
C 4 X11 �ǤΥ ���� (X11 mouse)
4 X11 mouse
?mouse x11_mouse
?x11_mouse
?x11 mouse
x11 �ν��Ϸ|��Υ��‫` ����ץ‬set term x11 <n>` ��Ȥä�ʣ��� X11 �r�
������ɥ��������Ƥ����硢�� � ����� ��ɤȥ ‫ۥ‬åȥ� � � � ε � ǽ � � d � � �
�Ȥ���Τϸ��ߤ��r 襦����ɥ��Τ ߤǤ�����������¾�Υ�����ɥ���� � � �
������κ�ɸ��ɽ����Ϥ��Ƥ����Ǥ���� �
4 zoom
?mouse zoom
?zoom
���� (zoom) �ϡ����Ϻ��‫��������ܥ‬
� �����
���� ȤǹԤ�졢 � � �
��ϰϤ����
���ϥ �����Υɥ�å��ǹԤ��‫���������ޤ‬Ȥϰۤʤ� ��᤹‫������׵‬ ��� ᤹��
᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹‫ޥ‬
�����᤹᤹᤹
�¹ԴĶ��⤢ � 뤫�⤷��‫��ޤ‬� ���
�� Υ���դϡ�����ե�����ɥ���ǥ ‫ۥ‬å�

����� 'u' ����‫����פ‬Ȥ���Ǥ��‫ޤ����ۥ‬åȥ� � � 'p' � � 'n' � ϡ � � �


���������������p��ˤ��ɤ�‫���ޤ‬

���‫` ����ץ‬zoomcoordinates` �ϡ�����κ ‫ݤ‬ˡ�������Ȥ�ü�ˤ��κ�ɸ��


� ��ɤ�������
� � �� ��
ǥե���ȤǤ� ON �ˤʤäƤ��‫���ޤ‬

���‫` ����ץ‬zoomjump` �� ON �ξ�硢�3 ���‫� ܥ‬ˤ������ϰϤ�j���


�Ϥ���ȡ��‫��ޥ���� ݥ‬
� � ϼ�ưŪ�˾����$����줿�� �˰�ư���‫�������ޤ‬
�ϡ����������� (�‫���ޤ‬ ϶�Ǥ�������) �����ϰϤ�j � � ‫����ޤ‬Ȥ���
� Ƥ��
��Τ�����Ǥ���� � �ǥե���ȤǤ� `zoomjump` �� OFF �Ǥ���

3 mttics
?commands set mttics
?commands unset mttics
?commands show mttics
?set mttics
?unset mttics
?show mttics
?mttics
?nomttics
�˺�ɸ����դμ��Ϥξ���9���ߤΰ�� `set mttics` ��)��� � ‫�����ޤ‬
������: `set mxtics`��
C 3 ¿���r�⡼�� (multiplot)
3 multiplot
?commands set multiplot
?commands unset multiplot
?set multiplot
?unset multiplot
?multiplot
?nomultiplot
?layout
������ `set multiplot` �� `gnuplot` ��¿���r�⡼�ɤˤ��‫�������ޤ‬
�ϡ�ʣ��Υ���դ�Ʊ���
�٤�ɽ�����‫���ޤ‬

��:
set multiplot
{ title <page title> {font <fontspec>} {enhanced|noenhanced} }
{ layout <rows>,<cols>
{rowsfirst|columnsfirst} {downwards|upwards}
{scale <xscale>{,<yscale>}} {offset <xoff>{,<yoff>}}
{margins <left>,<right>,<bottom>,<top>}
{spacing <xspacing>{,<yspacing>}}
}
set multiplot {next|previous}
unset multiplot

Ϳ�
���Ϸ|� (terminal) �ˤ�äƤϡ������� `unset multiplot` ������
���Dz����r��ɽ������ʤ����Ȥ������������ξ��� Υ����ɤˤ��
�‫���ڡ‬t�Τ��r 褬�Ԥʤ�졢 gnuplot ��ɸ���ñ���r�⡼�ɤˤʤ�����
����ʳ��ν��Ϸ|��Ǥϡ��� `plot` �����ɤ����줾 � � ɽ���
� �����
� � � �����

=inset
������ `clear` �ϡ������r�˻Ȥ�Ĺ����ΰ��ä��Τ˻Ȥ������ŵ��
Ū�ˤϡ���� � � � � �դ � � � � � ˾ � � � � ʥ � � � դ � � � � � � � � ��ʾ���ɬ�‫פ‬Ǥ���

��zѤθ��Ф���٥��� � � � � r �ˤ � � � � ơ � � � �
ȥ�ϡ� ߤΥ������ȸ��$˽�
�ä��ƽ ��� (����餬 `screen` ��ɽ�Ϥ���d���Ƥ��ʤ����)������
�ʳ���t�Ƥ� `set` ����d�����Τ���r �� ٤Ƥ� Ŭ � Ѥ � � � �����⤷
1 �٤��r�ˤ$��������ߤ�����Τ���� �� ʤ 顢������������
줬 㤨
(timestamp) �$Ȥ����顢`set multiplot` �� `unset multiplot` �ǰϤ��
���֥�å���� `plot` (����� `splot`, `replot`) ���ΰ�Ĥ�
`set time` �� `unset time` �ǤϤ���Ǥ��$�����

multiplot �Υ����ȥ�ϡ��ġ����r 西���ȥ 뤬 � � � ä��Ȥ��Ƥ⡢����Ȥ���


�Τ�Τǡ��‫����ڡ‬ξ���ˤ��Τ���Υ����Х�t�Τ���ˤ 錄��� 륹 ‫�����ڡ‬
���‫�� � ޤ‬ ‫���ݤ‬

layout ������� � 뤤 Ϥ���ɤ����ַ��


Ƥ � � ʤ � � � 硢����� � ��
������
� � � � �ϡ�
������ `set origin` �� `set size` ���r��5������� �� ���� �� �ɬ�‫�פ‬
��
����٤ ܺ �����ϡ��ʲ�����: `set origin`, `set size`��

��:
set multiplot
set size 0.4,0.4
set origin 0.1,0.1
plot sin(x)
set size 0.2,0.2
set origin 0.5,0.5
plot cos(x)
unset multiplot

����ϡ�cos(x) �Υ���դ�sin(x) �ξ���Ѥ�Ť�� ɽ� � ��� ����

�`set size` �� `set origin` ��t�Τ��r��ΰ� � Ȥ�������ϳ�� r����


�Ѥ��������ʲ���� � : `set term size`���r �� � � � � � � �·�������ʤ�
�С�`set margin` �����ɤǡ������γ���;� �� �����Ʊ���������� ·����

���Ȥ������������λ��Ѥ˴‫���ؤ‬ Ƥϡ� �ʲ� � � � � : `set margin` � � ; � � � � �



��ʸ����ñ�������Ū�ʿ���ñ�����Ѥ����Ȥ���դ��Ƥ��$�������
�äƻĤä����‫������ڡ‬d���륰 � � դ �ɽ � � � � � � ǥ Х � � � � � ɽ � � � � � � � � � ˰ � ¸
����������С��‫�ץ‬��ȥǥ�� � � ‫ץ‬쥤 � � ɽ����¿ʬ��ä���Τˤʤ�Ǥ�
��� �

���‫` ����ץ‬layout` �ˤ�ꡢ���r��p�ˤ��줾 � � Ϳ���Ƥ���


`set size`
�� `set origin` �����ɤʤ��ˡ�ñ���ʣ���դ��r���.�Ǥ������
����������ϼ�ưŪ�˹Ԥʤ�졢���ĤǤ⤽��������ѹ��Ǥ������
`layout` �Ǥ�ɽ���� <rows> �Ԥ� <cols> ��γʻҤ�ʬ�䤵��� 졢 ƳʻҤϡ�
���θ��³���б������p�Υ��‫����ץ‬ˤ�äƹ� (rowsfirst)�����뤤����
(columnsfirst) ����������ƹԤ�������r �� � դ � � Ѥ ��� ϲ���
(`downwards`) �ˡ�����Ͼ��� (`upwards`) �˿��Ӥ���ˤǤ��������
�ե���Ȥ� `rowsfirst` �� `downwards` �Ǥ���
������ `set multiplot next` �� `set multiplot previous` �ϡ��쥤 � � � �
�ȥ��‫�������ץ‬Ѥ��Ƥ�����Τ ‫`���ߤط��� � ޤ‬next`
˴ �ϡ��ʻ���μ�
å ‫��������פ‬Ĥ������`prev` �ϡ�ľp���r �� � � ����
�ΰ�� ��� �� ľ
p�γʻҰ������� ����
���r�� `scale` �ǿ����`offset` �ǰ���� ʿ���
�ư��Ԥʤ����Ȥ��Ǥ�
�� � � � � � � � � � � � �
�����scale �� offset �� y �������ά���줿���ϡ�x �������� ˻ � � � � ������
� � � �
��������`unset multiplot` �ˤ�꼫 ư���ֵ�ǽ�ϥ��դˤʤ ꡢ������
`set size` �� `set origin` ����� `set multiplot layout` ��p����
�������

��:
set size 1,1
set origin 0,0
set multiplot layout 3,2 columnsfirst scale 1.1,0.9
[ �����ˤ� 6 �Ĥ �Ǥ��r �� ��� ]
unset multiplot

�����Ǥ� 6 �Ĥ��r 褬 2 �����˾夫�鲼�‫������ؤ ��������ء‬ƹ�


����������r�Ͽ�ʿ�������� 1.1/2����ľ�������� 0.9/3 �Ȥʤ�����

¾�ˤ⡢���Υ 쥤 � � � � � � � �Τ��٤ƤΥ � � � դ ˰ � � ʥ ‫�����ޡ‬


� �� � � ‫����ץ‬
`layout margins` �� `spacing` ���������Ȥ��Ǥ������������ϰ���
�Ȥ�ɬ�‫פ���� � ޤ‬ ���`margins` �ϡ��ʻ������ ʣ����t�Τγ�¦���Ф�
��‫�����������ޡ‬ �����

`spacing` �ϡ����‫�����ܤ‬ʬ����մ� Ϳ���������`character` ��


��
`screen` ñ��ǻ������Ȥ�Ǥ������ñ���������� �ȡ� � � � � � x,
y ��ξ������˻��Ѥ���2������ �Ĥΰۤʤ�������
� � � ����Ȥ�Ǥ������

��Ĥ����ñ����ʤ���С�ľp�Υ ‫���������ޡ‬Τ�Τ���Ѥ������

��:
set multiplot layout 2,2 margins 0.1, 0.9, 0.1, 0.9 spacing 0.0

���ξ�硢���ˤ��륰 � � դκ � � ζ � � � � ϡ � � � � � � � � �0.1
�ɸ�� � ����

���ˤ��륰 � � դα � � ζ � � � � ϥ � � � � � � �0.9
�ɸ �ξ � � �����
롢��Ȥ�
�������ƥ���դη���0 �˻����Ƥ� � � Τ ǡ � � � ¦ � ζ � � � � � Ͻ Ť ʤ � �
����

��:
set multiplot layout 2,2 margins char 5,1,1,2 spacing screen 0, char 2

����ϡ����Υ���դζ����ϡ������Х��κ�ü���� 5 ʸ����ξ��ˡ���
�Υ���դα��ζ����ϡ������Х���ü���� 1 ʸ����ξ��ˤ�����ʥ�
�������Ȥ�8.����������Υ 1 ������‫ ޡ‬ʸ��ʬ�ι⤵����Υ 2 ������‫ޡ‬
ο�ʿ���η�Ϥ������
ʸ��ʬ�ι⤵�ˤʤ���������մ� �����
� �� ����
�ˤ� 2 ʸ��ʬ�ι⤵����������������

��:
set multiplot layout 2,2 columnsfirst margins 0.1,0.9,0.1,0.9 spacing 0.1
set ylabel 'ylabel'
plot sin(x)
set xlabel 'xlabel'
plot cos(x)
unset ylabel
unset xlabel
plot sin(2*x)
set xlabel 'xlabel'
plot cos(2*x)
unset multiplot

�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/multiplt.html">
multiplot �Υǥ� (multiplt.dem)
^ </a>
3 mx2tics
?commands set mx2tics
?commands unset mx2tics
?commands show mx2tics
?set mx2tics
?unset mx2tics
?show mx2tics
?mx2tics
?nomx2tics
x2 (��) ���ξ���9���ߤΰ�� `set mx2tics` ��)��� � �����ʲ�����:
`set mxtics`��
C 3 ����9���� (mxtics)
3 mxtics
?commands set mxtics
?commands unset mxtics
?commands show mxtics
?set mxtics
?unset mxtics
?show mxtics
?mxtics
?nomxtics
x ���ξ���9���ߤΰ�� `set mxtics` ��)��� � ����`unset mxtics`
�ˤ�äƤ����ɽ�������ʤ������Ȥ���������Ʊ���)��� ��ɤ��Ƽ�
����Ѱդ���Ƥ������

��:
set mxtics {<freq> | default}
unset mxtics
show mxtics

�����ν�
ν ν `mytics`, `mztics`, `mx2tics`, `my2tics`, `mrtics`,

`mttics`, `mcbtics` ���Ф��Ƥ�Ʊ���Ǥ���

<freq> ������9���Ρ�����9��ˤ�ä�ʬ�䤵����ο� (����9���


��ǤϤ�������) �Ǥ���������|����Ф��Ƥϥǥե���Ȥ���� 2 �� 5
�ǡ����������9��ˤ�ä��Ѳ����������ä�����9����1 �ġ������
4 �Ĥξ���9�꤬��� ��Ȥˤʤ�����`default` ��������Ȥˤ�äƾ�
��9��ο�ϥǥե���Ȥ�����������

�����п�Ǥ����硢 ʬ��� �ο�ϥǥե���ȤǤ���դʿ�˥��åȤ���


��� (10��Ĥ�Ĺ���) �ˤ� ��<freq> ������Ƥ���
��� Ф � Ϳ �d 餬�� 褵
���������������п�Ǥ����ξ���9�� (���� 1 ���� 10 ��Ǥ� 2, 3,
..., 8, 9 �ι��) �ϡ�9 �Ĥ���ʬ���������� ��� �
� ��<freq> �������
10 �Ȥ����ȤǤ����ʤ�����

����9���Ǥ�դΰ�� �� ���� �� ("<label>" <pos> <level>, ...) ��


�� �ˤϡ�
�|��� `set {x|x2|y|y2|z}tics` �ǻ��Ѥ��Ƥ��$��������$���<label> ��
�� ("") �ǡ�<level> �� 1 �ˤ������

������ `set m{x|x2|y|y2|z}tics` �ϡ�����9�꤬��� ��δֳ֤ξ��ˤΤ�


Ư��������⤷t�Ƥ�����9� �꤬ `set {x|x2|y|y2|z}tics` �ˤ�äƼ�ư��
����� � 줿���ϡ����ξ���9��Υ����ɤ���뤵��������ưŪ������ 9
������� ȼ�ư�ξ���9������ �ϡ�`set {x|x2|y|y2|z}tics` ��
`set {x|x2|y|y2|z}tics add` �Ȥ�Ȥ����ȤǶ�¸�Ǥ������
��:
set xtics 0, 5, 10
set xtics add (7.5)
set mxtics 5
���ξ�硢����9��� 0,5,7.5,10������9��� 1,2,3,4,6,7,8,9 �ξ��
set logscale y
set ytics format ""
set ytics 1e-6, 10, 1
set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \
"10^-4" 0.0001)
set mytics 10
���ξ�硢����9��ϻ����줿� ǡ������ 9����п�Ū������

�ǥե���ȤǤϾ���9���ɽ���ϡ���|��Ǥϥ��դǡ��п�Ǥϥ���ˤʤ�
�Ƥ��������������ϡ�����9����Ф��� `axis|border` �� `{no}mirror`
�λ����Ѿ����‫������ޤ��������˴ؤ‬ˤĤ��Ƥϡ��ʲ�����:
`set xtics`��
3 my2tics
?commands set my2tics
?commands unset my2tics
?commands show my2tics
?set my2tics
?unset my2tics
?show my2tics
?my2tics
?nomy2tics
y2 (��) ���ξ���9���ߤΰ�� `set my2tics` ��)��� � �����ʲ�����:
`set mxtics`��
3 mytics
?commands set mytics
?commands unset mytics
?commands show mytics
?set mytics
?unset mytics
?show mytics
?mytics
?nomytics
y ���ξ���9���ߤΰ�� `set mytics` ��)��� � �����ʲ�����:
`set mxtics`��
3 mztics
?commands set mztics
?commands unset mztics
?commands show mztics
?set mztics
?unset mztics
?show mztics
?mztics
?nomztics
z ���ξ���9���ߤΰ�� `set mztics` ��)��� � �����ʲ�����:
`set mxtics`��
3 nonlinear
?commands set nonlinear
?set nonlinear
?nonlinear
��:
set nonlinear <axis> via f(axis) inverse g(axis)
unset nonlinear <axis>

���Υ��‫����ץ‬ϻ�ʳ��Ǥ� (gnuplot �ΰ����ǥ������


�p ˻��� κ ٤�
����ʬ���ѹ������ǽ-��������)��
���Υ����ɤϥ����� `set link` �˻�Ƥ��2������ �ĤΥ� �� ��
줿��
�ΰ���Τ ߤ�ɽ�������$���� ����������뼴 � � � �|��Τ ��Ǥ���ɽ����
�뼴 � ˱�� �ɸ�ϡ�g(x) ��Ŭ�Ѥ��Ʊ���Ƥ��뼴 � κ�ɸ��������Ƥ�졢
f(x) ��ɽ�����뼴 � �

κ�ɸ� �
�Ƥ�����
| ���� ����� ����

��:

set xrange [1:1000]


set nonlinear x via log10(x) inverse 10**x

��������п���.���Ƥ��ơ�`set log x` ��Ʊ������8��⤦��Ĥ���


ˡ�Ǥ������ξ��� � Ƥ� � 뼴 � ϡ�[log10(xmin):log10(xmax)] ��������
�Ȥ� [0:3] �Ȥ����ϰϤ��d �����Ѵ����ȵ��Ѵ����ϡ�����ξ ����� �
��ɬ�‫פ���� � ޤ‬
���

��:

set xrange [-3:3]


set nonlinear x via norm(x) inverse invnorm(x)

������ϳ�Ψ�������� ("�‫�ץ‬ӥå�") �� x �����.��������5��ʬ�۴ ‫�ؿ‬


Phi(x) �Υ���դ���d� y �����Ф���ľ��Ȥʤ�����

=logit
��:

logit(p) = log(p/(1-p))
logistic(a) = 1. / (1. + exp(-a))
set xrange [.001 : .999]
set nonlinear y via logit(y) inverse logistic(y)
plot logit(x)

������ϥ��åȥ�������� y �����.������d� x �����Ф��� logit(x)

�Υ���դ�ľ��ˤʤ�����

=broken axis
��:

f(x) = (x <= 100) ? x : (x < 500) ? NaN : x-390


g(x) = (x <= 100) ? x : x+390
set xrange [0:1000] noextend
set nonlinear x via f(x) inverse g(x)
set xtics add (100,500)
plot sample [x=1:100] x, [x=500:1000] x

������� "���Ǽ�" ���.�������x ��ɸ�Ϻ��� 0 ���� 100������ 500


����
1000 ���¤ӡ����δ�� 10 ��ξ����ʷ����Ǥ��100���� < x < 500 �δ�
�Υǡ������r 褵��������
줺 ϴ�������ư��� ����

C 3 ��e��֥ ��������(object)
3 object
?objects
?commands set object
?commands show object
?set object
?show object
������ `set object` �ϡ����θ�Τ��٤ƤΥ � � � դ ˸ � � � � ñ � � Υ � �֥ ����
���Ȥ���d���������֥ ������� ȤϤ����ĤǤ���dǤ���������֥ ������� Ȥ�
���ϡ����ߤ� `rectangle` (Ĺ���)��`circle` (��)��`ellipse` (�ʱ�) ��
���‫��ݡ‬Ȥ��Ƥ������Ĺ��dϡ������� `set style rectangle` �ˤ�ä�
�����줿���������°-���� (�ɤ��٤�����������) ��ǥե���ȤȤ��Ƽ�
���Ѥ���������ġ��Υ��������Ȥ�����Υ�������°-���r 褹��� 뤳 Ȥ���
����ǽ�Ǥ����ߤ��ʱ ߤϡ�`set style fill` �ˤ���ɤ��٤�����������
���Ѥ��2���� ��������դΥ��֥ ������� Ȥϡ�����ɸ������պ�ɸ (`graph`),

�˺�ɸ�����������ɸ
� (`screen`) �Τ������Ȥ ߹�碌�Ǥ���dǤ������

3 ��������դΥ��֥ �������
Ȼ���Ǥϡ�����պ�ɸ�ϻȤ��3���� ������Ĺ
��d��ʱ ߤϡ�������� ���ɸ�
$ �� )�¤���Ƥ������

��:
set object <index>
<object-type> <object-properties>
{front|back|behind} {clip|noclip}
{fc|fillcolor <colorspec>} {fs <fillstyle>}
{default} {lw|linewidth <width>} {dt|dashtype <dashtype>}
unset object <index>

<object-type> �ϡ�`rectangle`, `ellipse`, `circle`, `polygon` �Τ�����


���Ǥ����ġ��Υ��֥ ������� Ȥη��ϡ����η������� �d⤤�� Ĥ���äƤ�
�- ��
�����

`front` ������ � ȡ � � � �֥ ������� ȤϤ��٤Ƥ� � r � � � � Ǥ � p ( � � ) � � � r 褵


��������`front` �Ȼ����줿��٥���ϸ�� (��) �ˤʤ�����`back`
������ � ȡ � � � � ٤Ƥ� � r � � � � ǡ � � � � ٤ƤΥ � ٥�θ���������� ����
`behind` �ϡ����� `back` ��Ĺ��d��ह� ٤ƤΤ � Τθ � � � � � ������
������äơ�
set object rectangle from screen 0,0 to screen 1,1 behind
�ϡ�����դ�‫���ڡ‬t�Τ��‫ط‬ʤ˿���Ĥ���Τ����ѤǤ������

�ǥե���ȤǤϡ����֥ ������� Ȥϡ����ʤ��Ȥ� 1 �Ĥ�ĺ�$�������� ���ɸ


���
Ϳ�
������Ƥ��ʤ�� ¤ ꡢ����ԥ ն����ǥ���å�� ԥ ��� ����`noclip` ��
����� �ȡ� � � � � ն � � � � Ǥԥ
ԥ Υ � � � å ԥ ��� � ˤ ʤ � ������������� ��

�������Ф��륯 � �ԥ
åԥԥ ϹԤ�� ����

���֥������Ȥ��ɤ��٤��ο��� <colorspec> �ǻ��������`fillcolor` ��


`fc` �Ⱦ�ά�Ǥ�������ɤ��٤���������� <fillstyle> �ǻ���������ܺ�
�ϡ��ʲ�����: `colorspec`, `fillstyle`��������� `default` �����
��ȡ�������°-���r 褬�º ‫˹ݤ‬Ԥ�� � Ȥ � � Υ ǥե� � � Ȥ � � � � � � � �
��������ʲ�����: `set style rectangle`��
C 4 ��� (rectangle)
4 rectangle
?rectangle
?commands set object rectangle
?commands show object rectangle
?set object rectangle
?show object rectangle
��:
set object <index> rectangle
{from <position> {to|rto} <position> |
center <position> size <w>,<h> |
at <position> size <w>,<h>}

�ϡ��гѤ˸������礦 2 �Ĥ�ĺ�� (�����ȱ���) �ΰ��֡ ������


Ĺ��dΰ��
�Ȳ��� (<w>) �Ƚ ��� (<h>) �ǻ ���Ǥ��
������� $� �����������
�ϡ����κ�ɸ (`first`, `second`)��������ΰ�������к�ɸ
���$�
(`graph`)�����������ɸ
� (`screen`) �Τ��� 줫 � � � �ѤǤ����
(�ʲ�����: `coordinates`)�����‫` ����ץ‬at` �� `center` ��Ʊ������Ǥ���

��:
# ��ɸ���ǰϤ �줿�ΰ�t�Τ��‫ط‬ʤ�忧��
set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
set object 1 rect fc rgb "cyan" fillstyle solid 1.0

# �����Ѥ� 0,0, ����Ѥ� 2,3 ������ ͳѤ������


set object 2 rect from 0,0 to 2,3 fc lt 1

# �Ĥ������ζ� (�ɤ��٤��ʤ�) Ĺ��d����


set object 3 rect from 0,0 to 2,3 fs empty border rgb "blue"

# ĺ�$ϰ�ư���ʤ��‫��ޤޡ‬ɤ��٤��ȿ���ǥե���Ȥ��ѹ�
set object 2 rect default

���������ɸ��
�Ĺ �dγ Ѥ����� �
ȡ � � � � � ϸ � � ߤΥ�����ΰ��ü���
�����Ȥ��ǽ�Ǥ���������¾�ξ���Ĺ��dϥ������� ˼ ����˥���
�å��ԥ �������

C 4 �ʱ� (ellipse)
4 ellipse
?ellipse
?commands set object ellipse
?commands show object ellipse
?set object ellipse
?show object ellipse
��:
set object <index> ellipse {at|center} <position> size <w>,<h>
{angle <orientation>} {units xy|xx|yy}
{<other-object-properties>}

�ϡ���� � � ��� ����


�ʱ ߤΰ�� θ�����ȹ⤵ (�缴����) ������ �
����������� `at` �� `center` ��Ʊ������Ǥ������ ΰ�� �λ���ˤϡ�
���κ�ɸ (`first`, `second`)��������ΰ�������к�ɸ (`graph`)��������

�����ɸ (`screen`) �Τ����줫 � � � �ѤǤ���� (�ʲ�����: `coordinates`)��


�缴�����Ĺ���ϡ����κ�ɸ��Ϳ��ʤ���� Ф���� �����ʱ ߤθ���
γ��٤ǻ����٤��������Ϳ
(orientation) �ϡ���ʿ�����ʱ ߤμ 缴�Ȥδ�
���ʤ���С��ǥե���Ȥ��ʱ ߤθ���������˻Ȥ���� (�ʲ�����:
`set style ellipse`)��������� `units` �ϡ��ʱ ߤμ��ν�‫�˻��)�ܤ‬
�Ѥ������`units xy` �ϡ��缴�� x ����ñ��ǡ���� y ����ñ��Ƿ��
���������`units xx` ��ξ���Ȥ� x ����ñ��ǽ�‫`���ܤ‬units yy` ��ξ��
�Ȥ� y ����ñ��ˤʤ�����
�ǥե���Ȥ� `xy` �Ǥ�����`set style ellipse units` ������Ǥ��ĤǤ���
���Ǥ������

���: x ���� y ���ν�‫����ܤ‬ʤ���� (������ `units xy` �ξ��)����


ž��μ 缴��������5�����Ϥʤ�����

`set object ellipse size <2r>,<2r>` �� `set object circle <r>` �Ȥϡ�
����ˤ�Ʊ�����ȤˤϤʤ�ʤ����Ȥ���դ��Ƥ��$�����circle ��Ⱦ�¤Ͼ�
�� x ����ñ��Ƿ ‫�פ‬졢��ä� x ���� y ���ν�‫���ܤ‬ä��ꡢ�r�Υ���
�‫����ڥ‬椬 1 �Ǥʤ��Ƥ⡢��˱� � ��� .8 �
ߤ���`units` �� `xy` ������
����Ƥ���С�'set object ellipse' �Ǥϡ��ǽ�� <2r> �� x ����ñ��ǡ�
���� <2r> �� y ����ñ��Ƿ ‫פ� � ޤ‬ ���������� x ���� y ���ν�‫�ܤ‬Ʊ
���ǡ������r�Υ����‫����ڥ‬椬 1 �Ǥ�����Τ8 ߱ �
ߤ.�����Ȥ���
���������������`units` �� `xx` �� `yy` �˥��åȤ���С�������
`set object` �ǻ���� �
ľ�¤�Ʊ��ñ��Ƿ�������Τǡ��ʱ 5 � ߤ������
���‫�������ڥ‬a��r���� � � � � � �Ƥ⤽ � Υ � � � � ‫ݻ � ޤ‬
� � ������
‫���ڥ‬

C 4 �� (circle)
4 circle
?circle
?commands set object circle
?commands show object circle
?set object circle
?show object circle
��:
set object <index> circle {at|center} <position> size <radius>
{arc [<begin>:<end>]}
{<other-object-properties>}

�ϡ���� � � ��� ����


�ߤΰ�� θ���Ⱦ�¤���������������� `at`
�� `center` ��Ʊ������Ǥ���2 ��������դǤϡ������ Ⱦ�¤�Ǥ�դκ�ɸ��
�ǻ���Ǥ�������ʲ�����: `coordinates`��3 ��������դα ߤˤϥ���պ�
ɸ�ϻȤ����� � ���
�� Τɤξ��Ǥ⡢Ⱦ�¤ϼ�������ա���������
�ο ʿ��

���ν�‫��ܤ‬Ф��Ʒ ‫�פ‬졢��ʿ���ȿ�ľ���ν�‫ܤ‬ˤ������äƤ⡢ � � �
�����5�����ߤˤʤ��� � ľ����ߤ�������դκ �ɸ � � � d � � � � � (�Ĥ �
���ʿ���ȿ�ľ���Υ������뤬 �����
㤦 ˤϤ����ʱߤȤ���ɽ��������
�ˤ�����) ���ϡ������ `set object ellipse` ��ȤäƤ��$�����

�ǥե���ȤǤϡ���t�ʱ ߤ��r 褵��‫` �����ޤ������ץ‬arc` �˳��ϳѤ�


��λ�Ѥ��٤�ñ��Ȥ��ƻ���� � ȱ߸̤��r �� �����߸̤ϡ����ȿ���‫�ײ‬
����d�������

�ʲ���� �
: `set object ellipse`��

C 4 ¿�ѷ� (polygon)
4 polygon
?polygon
?commands set object polygon
?commands show object polygon
?set object polygon
?show object polygon
��:
set object <index> polygon
from <position> to <position> ... {to <position>}
�����
from <position> rto <position> ... {rto <position>}

Ϳ�����Ȥǻ���Ǥ�����������ˤϡ�
�ϡ�ĺ�$ΰ�������
¿�ѷdΰ��
Ǥ�դκ�ɸ�Ϥ��Ȥ����������Ū�ʺ�ɸ (rto) ������ ��� ϡ����κ�ɸ
�Ϥ�p��ĺ�$�Ʊ����ɸ�ϤǤʤ���Ф������� ��ʲ�����: `coordinates`��

��:
set object 1 polygon from 0,0 to 1,1 to 2,0
set object 1 fc rgb "cyan" fillstyle solid 1.0 border lt -1

C 3 ����հ���� Ĵ0 (offsets)
3 offsets
?commands set offsets
?commands unset offsets
?commands show offsets
?set offsets
?unset offsets
?show offsets
?offsets
?nooffsets
���ե��åȤϡ���ư��‫��ܤ‬줿����դ � � � Υ ǡ � � � � μ � � � ˶ � ζ � � � � � �����
�Ȥ ߤ��
� ���
�� �������ե��åȤϡ�x1,y1 ���� 2 ������ `plot`
�����ɤ�
�ߤǰ�����d ����

��:
set offsets <left>, <right>, <top>, <bottom>
unset offsets
show offsets

�ƥ��ե��åȤ�������Ͽ���Ȥ��������Υǥե���Ȥ��ȹ� 0 �Ǥ���
�ǥե���ȤǤϡ������Υ��ե��åȤ� x1 ����Ʊ��ñ��ǻ���� ��
�� ���
���åȤ� y1 ����Ʊ��ñ��ǻ����������������� "graph" ���Ѥ���
�ȤǼ���t�ϰϤ��Ф�����Ȥ��ƥ��ե��åȤ�������Ȥ�Ǥ��5����
�Υ��ե��åȤ���ϡ������ϰϤ�����줿���‫��ؿ‬Ф����������5�β�

���Υ��ե��åȤ� y �κǾ�����꾮 � � � ���ˤ���������Ƥ� � � � ϰ �

�Ǥ���Υ��ե��åȤϡ���ư��‫����ܡ‬뤤�ԥ ϥ���åԥ ԥ λȤ ‫�����פ‬


� �
���8���ǽ-������������ư��ܵ� ǽ����� � �ϰϤ�Ĵ������ ����
Ȥ����Ǥ���� �
�ϡ�"set auto fix" ������ �

��:
set auto fix
set offsets graph 0.05, 0, 2, 2
plot sin(x)

���� sin(x) �Υ���դ� y ���ϰϤ� [-3:3] �ˤʤ���������ϡ��‫��ؿ‬


y ���ϰϤ� [-1:1] �˼�ư��� � ��‫ܤ‬�������ľ���Υ��ե��åȤ����줾
�� 2 �Ǥ��뤿 � � Ǥ���x ���ϰϤ� [-11:10] �ˤʤ�����������ϥǥե�
��Ȥ� [-10:10] �Ǥ���t�ϰϤ����� 0.05 �γ��$����Ф���뤿 � � Ǥ���
C 3 ����հ�� �λ��� (origin)
3 origin
?commands set origin
?commands show origin
?set origin
?show origin
?origin
������ `set origin` �ϥ��������Ƕ����
�r �θ�$ ���� (���ʤ�a�
����դȤ���;��) ����Τ˻��Ѥ���������κ�ɸ�Ϥϥ������ ���ɸ��
� � �� �
Ϳ�
(`screen`) ���� �������κ�ɸ�Ϥ˴‫������ؤ‬ˤĤ��Ƥϡ��ʲ�����:
`coordinates`��

��:
set origin <x-origin>,<y-origin>
C 3 ��������� (output)
3 output
?commands set output
?commands show output
?set output
?show output
?output
?output file
�ǥե���ȤǤϡ�����դ�ɸ����Ϥ�ɽ������� � ����� ��� `set output` ��
���ν��Ϥ�����줿�ե������ǥХ����˥�%��쥯 � Ȥ������
��:
set output {"<filename>"}
show output

�ե�������ϰ�����ǰϤ �ʤ���Фʤ���� � � ե���������ά���줿���


�ϡ�ľp�� `set output` �dz����줿�ե����뤬���������������
졢 ʽ��Ϥ�
ɸ����� (STDOUT) ����������(�⤷��`set output "STDOUT"` �Ȥ����
���Ϥ� "STDOUT" �Ȥ����p�Υե����������뤫�⤷������ ! ["����
����ʤ�" �Ȥ����Τϡ����� `x11` �� `wxt` �ʤɤ� terminal (���Ϸ|�)
�Ǥ� `set output` ����뤵�����
뤫 Ǥ���])

`set terminal` �� `set output` ��ξ������� �� 硢`set terminal` ��


��˻���� ���� t�Ǥ�������ϡ������� terminal �Ǥϡ�OS ��ɬ�‫�פ‬
����ե 饰�� åȤ� � ��Ȥ� � � � 뤫��Ǥ � � � � ��С� � Х� � ʥ � ե� � � � � � � �
� � � � ��� � � open � � � ‫ �ޥ‬ɤ� ɬ� ‫פ‬Ȥ� � � �� �
OS � ʤ ɤ� � � � � ˳� � � ‫� � �ޤ‬

� ѥ � � ‫ � �ݡ�פ‬Ȥ� � � Ķ� � Ǥϡ� � ѥ� � �� � �� �� � ����������аʲ� � � �� � �


��:

set output "|lpr -Plaser filename"


set term png; set output "|display png:-"

MS-DOS � � ϡ�
�`set output "PRN"` Ȥ� � � � ɸ� � Υ ‫�ץ‬
� ��� �������� ‫� � �ޤ‬
VMS � ǤϽ� � Ϥ� Ǥ� դΥ� � ‫ � � � �ס‬ǽ� ʥ ǥХ� � � � � � � ��Ȥ� � � � � ‫� � �ޤ‬
C 3 � �� � � � �� �� � (parametric)
3 parametric
?commands set parametric
?commands unset parametric
?commands show parametric
?set parametric
?unset parametric
?show parametric
?parametric
?noparametric
`set parametric` � � � ‫ �ޥ‬ɤ� `plot` � � � � � `splot` � ΰ�� � � �� � δ ‫� � �ؿ‬
� 褫����� � ѿ�ɽ�� (parametric) �‫ � �ؿ‬r� � � ѹ � � � � ‫` � � �ޤ‬unset parametric`
�� � � � ‫� � �ޤ‬
� � Ȥ� � и� � � � r� � � ɤ�

��:
set parametric
unset parametric
show parametric

2 � � � � � � � � դˤ� � � � Ƥϡ� � �� � ѿ�ɽ���‫ �ؿ‬ϤҤȤĤ���� � ѿ���Ф��� 2


� Ĥδ ‫ � � � � �ؿ�������ޤ‬Ȥ� � Ƥ� plot sin(t),cos(t) � Ȥ� � ��Ȥˤ� �
� Ʊ ߤ� � d� � ‫����ޤ� )�����ڥ‬椬 5� � � � � � � �� � Ƥ� � � С � �ʲ � � � � � :
`set size`)� � `gnuplot` � ϡ� ξ� � � �‫�� ؿ‬ѿ�ˤ�� `plot` �Τ����
δ ����
�� � � � � Ƥ� � ʤ � � � Х � 顼��å� � � � � � � Ф� � ‫���ޤ‬

3 � � � � � � � � դˤ� � � � Ƥ� ��� x = f(u,v), y = g(u,v), z = h(u,v) � � � � �


� � � ‫�����ޤ‬ä� 3 � Ĥδ ‫���ؿ‬Ȥ ǻ� � �� �ɬ�‫�����פ�����ޤ‬Ȥ� � Ƥϡ�
`cos(u)*cos(v),cos(u)*sin(v),sin(u)` � Ȥ� � ��Ȥˤ� äƵ� ��� � d� � ‫���ޤ‬
`gnuplot` � ϡ� 3 � � t� � � �‫�� ؿ‬ѿ�ˤ�� `splot` �Τ��������
δ ���� Ϳ�
� Ƥ� � ʤ � � � Х� � 顼��å� � � � � � � Ф� � ‫���ޤ‬

� � � � ˤ� ä� ɽ� � � Ǥ � � � ‫�ؿ‬ϡ� ñ� � � f(x) � � � δ ‫�����ؿ‬



� ���Ȥ�
� ʤ � ‫����ޤ‬ʤ � � ʤ � С� 2 � � (3 � � ) � δ ‫ ��ؿ‬x, y (, z) � � � � �Ω�����
˷ ��
��
��� 뵭 � Ҥ��Ǥ��뤫��� � � � � º ‫�ݡ‬t,f(t) � Υ � � � դϡ � � � � � � ‫ܤ‬δ ‫�ؿ‬Τ �
�ʹ� � � ‫���ؿ‬Ѥ ��x� � �� � ������������
�� f(x) �ˤ� ä � 8. � � � � 륰

� �դ � � � d Ǥ � � � Ʊ � ˡ�
� 3 �� � � � � Ǥ � u,v,f(u,v) � � � r � ϡ � f(x,y) � � � � �
�� � � �

� ���ѿ�ɽ���‫�ؿ‬ϡ � x � δ ‫�ؿ‬y � δ ‫ � � ( �ؿ‬z � δ ‫ � )�ؿ‬ν �˻ � � �� � � � � �


� �϶ � ��� � ���ѿ��Ӥ����Ѱ����d�����Ȥ� α �դ � � Ʋ � � � � � � �

� � � �ˡ � `set parametric` � λ � � � ϡ � � � � � � � � ѿ � � Ѱ � � � � Ѥ � � ��Ȥ� Ť �


� � $ � � ‫ � � ����ޤ‬f(x) � � f(x,y) � � xrange � � yrange ( � � zrange) � � � � �
� � � � Τ � � Ф � � ơ � � ���ѿ�⡼�ɤǤϤ���˲ä��ơ�trange, urange, vrange
� � � � � � � ‫����������ޤ‬Ѱ�� `set trange`, `set urange`, `set vrange`
�ˤ� ä � ľ �ܻ��� �� ���Ȥ⡢`plot` � � `splot` � ǻ � � ����Ȥ� � � � ‫���ޤ‬
� � � � � $ � ϡ � � � � � � � � ���ѿ�Υǥե���Ȥ��Ѱ�� [-5:5] �ȤʤäƤ�� ‫���ޤ‬
� � � � Ū �ˤ � �� � Ϥ ǥ � � � �� ä
Υե �ͤ�ͭ դ ʤ �� Τ � � � � �� ��ѹ� �� �
� �� Ǥ � � ͽ
C 3 ʿ� � � r � � � � � (paxis)
3 paxis
?commands set paxis
?set paxis
?show paxis
� �:
set paxis <axisno> {range <range-options> | tics <tic-options>}
show paxis <axisno> {range | tics}
� � � ‫` ��ޥ‬set paxis` �ϡ �ʿ�Ժ � ɸ � r � � p1, p2, ... � � � ΰ � Ĥ˺ � � Ѥ � � �
� � � Ȱʳ� � ϡ � `set xrange` � � `set xtics` � � Ʊ � � � � � � � � ʲ �� � � � � :
`parallelaxes`, `set xrange`, `set xtics` � � range � � tics � � � ‫�ޥ‬ɤ ‫�ؤ‬
��� Υ � � ‫����ץ‬ϡ �ʿ � Ժ � ɸ � r �� � � � � �ˤϰ�̣ ʤ���
� Τ⤢ � � Τ ‫�����ޤ‬
� � � � � ٤Ƥ� � Ĥ � � ‫���ޤ‬
3 plot
?commands show plot
?show plot
� � � ‫` ��ޥ‬show plot` �ϸ � � ߤ��r �� ‫�ޥ‬ɡ����ʤ�� `replot` ��� ‫��ޥ‬
� Ǻ Ƹ� � � � � 롢 ľp�˹Ԥ � 줿 `plot` � � `splot` � � � ‫�ޥ‬ɤ�ɽ� � � � � ‫���ޤ‬

� � � � ˥ � � ‫`��ޥ‬show plot add2history` �ϡ � � � � θ � � ߤ��r �� ‫�ޥ‬ɤ�


˽ `history` � ��Ф � � ‫�������ޤ‬ϡ � `replot` � � Ȥ ä � ľ p � � � r �� ‫��ޥ‬
�˶ � � � � � ɲ ä � � � � � 硢�����ƥ� �
‫�ޥ‬ɹ�t�Τ ����Խ���������������
ΤΤ
�������������������� Τ
�� � � �
3 pm3d
?commands set pm3d
?commands show pm3d
?set pm3d
?show pm3d
?pm3d
pm3d � � `splot` � ΰ � ĤΥ � � � � � � � ǡ � � ѥ � å Ȥ˳� � � դ � � � 줿 3 � � � � � �
4 � � � � � ǡ � � � � �� �� 顼/ � � � � � ο � � Ͽ � / � � ��Ȥ � � � � r ��
‫�������ޤ‬Ϥ��륢
� 르 ������
ꥺ Ѥ � � Ƥ � � ơ � � � �ϥ�ǡ � � � � � �ʻ Ҿ � Ǥ � � ä Ƥ ⡢ �ǡ � � � � � � � �
� $ο � � ä Ƥ � � � �� ��� ʻҾ�Υǡ����Ǥ��äƤ⡢p������Ȥʤ �
� r � � � � ‫���ޤ‬

�� ( � � � ‫�����ץ‬Ǥ � νդ� � ��� Ϳ ��Ȥ� � � � � ‫)�ޤ‬:


set pm3d
set pm3d {
{ at <position> }
{ interpolate <steps/points in scan, between scans> }
{ scansautomatic | scansforward | scansbackward | depthorder }
{ flush { begin | center | end } }
{ ftriangles | noftriangles }
{ clip1in | clip4in }
{ corners2color
{ mean|geomean|harmean|rms|median|min|max|c1|c2|c3|c4 }
}
{ {no}lighting {primary <fraction>} {specular <fraction>}}
{ hidden3d {<linestyle>} | nohidden3d }
{ implicit | explicit }
{ map }
}
show pm3d
unset pm3d

splot � � � ‫�ޥ‬ɤ� `with pm3d` � � � � �� ���硢� ‫��ޤ‬ϥǡ�����‫��ؿ‬r 襹


� � � � � � (`style`) � � � � � Ū � � pm3d �˥ � � å Ȥ � � � Ƥ � � � � 硢����� 뤤 ϡ�
pm3d � � � ɤ`set
� pm3d implicit` Ȥʤ ä Ƥ � � � � � ϡ � p m3d � Υ � � 顼��
��� � r 褵��2 ������‫ � ޤ‬Ĥξ � � ϡ � plot � � � ‫�ޥ‬ɤǻ � � �� ����������
8.� � � � � � � � ‫ �ܤ‬p3md � � ��� � ɲ ä � � � d � � r �� ‫������ޤ‬С�
splot 'fred.dat' with lines, 'lola.dat' with lines
�ϡ � �ƥǡ� � � � � � � � � � � ‫���ޤ‬ˤ����� ‫ �ܤ‬pm3d � � ��� ξ � � � � r �� ‫���ޤ‬
� � � ‫` ����ץ‬explicit` � � ON ( � ‫` ���ޤ‬implicit` � � OFF) � ξ � � ϡ � °-
`with pm3d` � � � � � ��줿�r � Τ ߤ� pm3d � � ��Ȥ � � � � r 褵�� ‫�������ޤ‬
splot 'fred.dat' with lines, 'lola.dat' with pm3d
�ϡ � 'freq.dat' � � � ‫ � � ( ����ޤ‬Τ ߤ�) � � 'lola.dat' � � pm3d � � ��� � r 褵
� � ‫���ޤ‬

gnuplot � ε �ư � � � Ϥ � � Υ � � ɤ � `explicit` �ˤʤ ä Ƥ � � ‫������ޤ‬Ū� � � � � �


�Ƹ ߴ�-� Τ � � �ˡ � � � � ‫` ��ޥ‬set pm3d;` ( � � � ʤ � e � � ‫���������ץ‬ �ʤ�
� � � ) � � `set pm3d at X ...` ( � � � ʤ � � `at` � � � ǽ � Υ � � ‫����ץ‬ξ � � )
� ϥ⡼ �ɤ � `implicit` � � � ѹ � � � � ‫` ��ޤ������ޥ‬set pm3d;` �ϡ � � � � � ¾ � �
� � � ‫����ץ‬ ��
� �� � Υǥե���Ȥξ ��֤������ �‫���ޤ‬

� ǥե� � � Ȥ Υ ǡ� � � / � ‫���ؿ‬r � � � � � � � � `pm3d` �ˤ� � � � � � � � ϡ � � ���


set style data pm3d
�Ȥ � � ‫������ޤ‬ξ� 硢���‫` ����ץ‬implicit` � � `explicit` �ϸ � � Ϥ � � d �
��� �

� � � � � Ĥ � � � � r �ˤ � � � � Ƥ ϡ � � � � � � ϥ � � ‫�ޥ‬ɥ �� � �Ϳ����줿����r 褵
� � ��Ȥ� � � դ � � Ƥ � � $ � � � � � � � � � � � ä ˡ � � � p � � � r � � � � �
��Ƥ
�Ǥ� � � � �
� ΰ � ��
� �� � Ƥ� � � ‫���ޤ‬ǽ-� � � � � � ��ʶ�����ɤ�Ĥ֤��κ ‫����ݤ˴ؿ‬
� � � � � � �� �

p3md � ο � � դ � � ϡ � 3 � Ĥΰ ۤʤ � � � � `top`, `bottom`, `surface` � Τ � � � � �


� � � � � ‫��ޤ‬Ϥ��٤Ƥ˹Ԥ � � ‫����ޤ‬ʲ�� � � � : `pm3d position` � � �ʲ� � Υ � � ‫��ޥ‬
�ϡ � �ۤʤ ä � � ⤵� � 3 � Ĥο � � դ � � ζ � ��� � d � � ‫�ޤ‬:
set border 4095
set pm3d at s
splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t

�ʲ� � �� � : `set palette`, `set cbrange`, `set colorbox` � � � � � � � Ƥ � d �


� � ǥ �ե � � � � � `demo/pm3d.dem` � ⻲�ͤ �ʤ ˤ�� �� ���
Ǥ
� �
C 4 pm3d � Υ � � 르���� ꥺ (algorithm)
4 algorithm
?pm3d algorithm

� ‫����ޤ‬Ͽ� / � � ��� � ɤ Τ �� ��
d � � � � Τ � �ˤ Ĥ � � Ƶ � � Ҥ � � ‫�����ޤ‬ϥǡ���
�ϡ � � ‫��ؿ‬ɾ�d����$��뤫� ‫` ���ޤ‬splot data file` � � � � � $ � � ‫���ޤ‬
� � ��ϡ � � � ( � � Ω � ) � η � � � �֤��ǹ�.���� ‫���ޤ‬pm3d � � � 르���� ꥺ �ϡ �
� ǽ � � � � Ǹ � � Ф � � 줿�٤�礦 2 � $ ȡ � � � � � � � Ǹ � � Ф � � 줿 ¾ � � 2 � $ �
� ֤��ΰ 褬������� 4 � $ � z � � � � ( � ‫����ޤ‬ɲä � � 줿 'color' � � � � � � ���
�ʲ� � � � � : `using`) � ˽ � � ä Ƴ � � � � � ( � ‫��� ���ޤ‬顼��) �ɤ � � ‫����ޤ‬ǥե�
� � Ȥ Ǥ � 4 � Ĥγ Ѥ �ʿ
������
� �� �� � � ��‫���������ޤ‬ϥ��‫����ץ‬
� �Ȥ
`corners2color` � � � ѹ � � Ǥ � � ‫�������ޤ‬ʤ � ζ � ��� � d � � � � � ˤ ϡ � � ٤�礦
2 � $ � � � � � �� �� ƤϤ � � � � ʤ� � �ơ
�� � � � � � � � � � � � � $ο� �� ���
�ƤϤ �
� � � ‫��ޤ‬ �d�ǤǤ
� �� � � � �ɤ Τ� ��� � � � $ ο � Ʊ � � � � � Ȥ� �
¾ ��
� ˤϲ � � �
ɬ�‫פ‬ǤϤ � � ‫�� �( ����ޤ‬Хǡ����ϳʻҾ�Ǥ���ɬ�‫�פ‬ʤ � ) � � ¾ � ˤ ⤳ � �
pm3d � � � 르���� ꥺ ϡ � � � Ϥ � � 줿 ( � � ¬ � � � 줿������� 뤤 Ϸ�����줿) � ΰ �
� γ � �ˤϲ� � � � d � � ʤ � � � � Ȥ � � � Ĺ �꤬����� ‫���ޤ‬

� � ��ο � � Ť � � ϡ � �ʲ � � Τ �� ���
ϥǡ����˴‫��ؤ‬ƹԤ�� ‫�ޤ‬:

1. � 1 ���‫ � ؿ�ޤ‬Ĥ � 3 � ĤΥǡ� � � � � �ʤsplot: �ǡ � � � � � �


�� � Ҥ� �� ˽
� � � ͳ ѷ d � 4 � Ĥγ Ѥ � z � � ɸ � �ʿ � � � � ( � ‫` ���ޤ‬corners2color`) � � � 顢��
� � � � � ϰ � [0:1] � � Ϳ��� � `zrange` � ‫` ���ޤ‬cbrange` � � � ϰ �
[min_color_z,max_color_z] � ‫��ؤ‬б� �ˤ� ꡢ���� /� � � 顼��� � � � $ � � ‫���ޤ‬
� � � � � �ϡ � �ܳ�����ο � � Ͽ � �
� �ľ Ѥ ����Ȥ��ƻȤ�
� ������
�γ� �� �Ȥ
� � � � � �Ǥ ����‫ޤ‬
5 ��� �

� � � 줿������� ��� 顼���б� � � � � � ��Ȥ� � � � ‫�����ޤ‬t � � � � � $ ϡ � �ʲ � � �


� � : `set palette` � �

�2. 2 � Ĥ � 4 � ĤΥǡ� � � � �� �ʤsplot:


�ǡ � � � � � ��� /��� 顼��� � ϡ �
z
� � � �� �
˺��� ɸǸ�
κ � � � �� � � Ȥ ä � � $ � � ‫��ޤ‬Τǡ����� z ��ɸ����Ω
� ʤ � Τˤʤ � 4 ��������‫ � � � � � ޤ‬ǡ � � � � � � r � � Ȥ� � � � Ȥ � � ˻ � � Ǥ
‫���ޤ‬

¾� � � � � :

1. ʪ��‫ؼ‬Ԥ δ ֤�ϡ � gnuplot � �ʸ� � �� � � � �˸����� 'iso_curve' (��


Ω � ) �Ȥ � � � � � � դ � � ⡢ � � Ǹ 5 ‫( � � ' ���ڤ‬scan)' �Ȥ � � � � � � դ � � � �
� � � Ƥ � � ٤� 1���‫ � � � � ¾����ޤ‬ε � Ͽ �ˤ � 꿧 � Ͽ ‫�ޤ‬ɾ�d��롢�Ȥ� � �
� Τ Ϥ � � � � � � � � ��� Ǥ � � �

2. 'gray' � � 'color' � � � � (scale) �ϡ � � � �� � �Ѳ � � � � 륫 � 顼 � ѥ�åȤ�


� Ρ � Ϣ ³ � � � ѿ � � � � | � � � Ǥ � � � � � � μ � � � � � ͻ Ҥ � � r �� � դ �� ٤�Ĺ � � d �
ɽ�� � � � � ‫�������ޤ‬ʸ�� ǤϤ � � � � " � � � 顼�‫ܥ‬å � � � (colorbox)" � ȸ Ƥӡ�
� � � � � ѿ�� �顼�‫ܥ‬å� � � � � � � � ѿ � ȸ Ƥ Ӥ ‫����ޤ‬ʲ�� � � � : `set colorbox`,
`set cbrange`� �
C 4 � � � ǥ � (lighting)
4 lighting
?lighting
?pm3d lighting
?pm3d nolighting
?set pm3d lighting
� ǥե� � � Ȥ Ǥ ϡ � pm3d � ο � � γ � � � � Ƥ ϡ � � � � � � � � � ��ˤϰ � ¸ � � � ‫���ޤ‬
� � � ξ � �֤� `set pm3d nolighting` � � � б � � � � ‫���ޤ‬
� � � � ‫` ��ޥ‬set pm3d lighting` �ϡ � � � � $ � � 8 � � � � ξ � � $ � � � �
50% � θ �ˤ� � ñ � �ʸ � � ǥ � � j � �‫������ޤ‬Ϥ��$뤵���Ф� � 뤽 � θ�
� � � ζ � � ٤� `set pm3d lighting primary <fraction>` � � Ĵ0 � � � � ‫���ޤ‬ȿ� �
� � (specular) �‫ޤޤ����ٹ‬礤�
� ϡ � � � � � � � Ψ � � � � �꤬�� �� �‫�ޤ‬:
set pm3d lighting primary 0.50 specular 0.0 # � ϥ � � �� Ȥʤ �
set pm3d lighting primary 0.50 specular 0.6 # � � � � � ϥ � � �� �
C 4 pm3d � ΰ � � � (position)
4 position
?pm3d position
?set pm3d position
� � � ζ � ��� � � ��� ŷ � � ( � � � ξ � �ϳ � � � / � � � 顼��ʿ� � � Ͽ � ) � � � � �� � � � $ �
z � � ɸ ( � � � � / � � � 顼����) � � � d � � � � Ȥ � � � � � ��������j� �ϡ � � � � ‫����ץ‬

`at` �ˡ� `b`, `t`, `s` � � 6 � Ĥ ��� � ȹ礻��ʸ�� � � � Ĥ � � ƻ � � �����


�ǹ Ԥ� � �������� `at b` � � � � ��Τ ߤ��r �� ������`at st` � Ϻ ǽ � ˶ �
��� � d � � Ƽ � � � ŷ � � ��˿ � � Ͽ ���d� � ������`at bstbst` � � ... � � � � � ‫�ܤ‬
� á � � � � � ʤ � Τ ϻ Ȥ � � ����

�ɤ � 줿�ͳѷ d ϡ � � � � � � �� ‫��ؤ‬r 褵��ƹԤ��������� � � r 褹����


(`at s`) � � � � λ ͳѷ d � p � Τ � Τ ˽ Ť ʤ � ( �� �� )
� � �
�� �� (gnuplot � � � ɤ �
� 줿¿ � ѷ d � �֤νŤ ʤ � � � � ߺ��� � ��������ʲ�� ۸��¥ġ� � � ǤϤ � � �
� ����) � � � ǽ � � � � � � � � ǡ � � � � � ǽ � � � d � � � � Ǹ � � � d � � � � � � � � ‫���ؤ‬
� � � åe � � ‫` ����ץ‬scansforward` � � `scansbackward` � �  � Ƥ ߤƤ� � $ �
� � � � � ǥ ե � � � Ȥ � `scansautomatic` �ǡ� � � � � � gnuplot � � � Ȥ � � � ν � �
� � ¬ � � � � � ��������ǡ����‫` ����ץ‬depthorder` �ϻ ͳ ѷ dν � � � t � ˺ �
� � . � � � �����ɤ� Ĥ ֤��Ͽ� � � � � � � ¤ � � � � � � � 줿��ǹԤ�졢����ˤ� �꤫
� ʤ � ʣ � � � ʶ � ��Ǥ �� � Ū � ʤ � Τ ˤ � � ��Ȥ� � � � � ٤ ܺ ����‫ޤ‬ϡ � �ʲ � � � � � :
`pm3d depthorder`� �
C 4 � � ν � � � (scanorder)
4 scanorder
?pm3d scanorder
?pm3d depthorder
?pm3d flush
?pm3d ftriangles
?set pm3d scanorder
?set pm3d depthorder
?set pm3d flush
?set pm3d ftriangles
?depthorder
=flush
=scansforward
=scansbackward
=scansautomatic
=depthorder
=ftriangles
� ǥե� � � Ȥ Ǥ ϡ � pm3d � � � ɤ � � ٤������ . � � � � ͳ ѷ d ϡ � � � � � �� � ���
�ʻ� � $˱ � äƽ вв� в �֤��ɤ� � ‫���ޤ‬٤������ν� �֤ϡ � � � � ‫����ץ‬
`scansautomatic`|`scansforward`|`scansbackward` � � ) � � � � � ���������
� � � � (scan) � � � ‫����ץ‬ϡ � � � ��ˤϱ � ��� � � Ȥ � ξ Ω � � � ����

2 � � � Ϣ ³ � � � � � � � � $ ο � Ʊ � � � Ǥ ʤ � � ä � � � 硢�ͳѷ d � � $ μ � � Ϥ � �
ξ � � � � � κ ǽ � � �(`flush begin`) �ˤ� � 뤫���Ǹ夫�� (`flush end`)
�ˤ� � 뤫� � � � � � � �� � (`flush center`) �ˤ� � 뤫������ʤ � � � Ф � � � � ����
`flush (center|end)` � � `scansautomatic` �Ȥ � ξΩ � � � � � � � � ä �
`flush center` � ���� `flush end` � � � � �� �`scansautomatic` � � � � � �
� 줿�������硢 ��� $ � `scansforward` � � � ѹ � � � � � ����

2 � � � Ϣ ³ � � � � � � � � $ ο � Ʊ � � � Ǥ ʤ � � ä � � � 硢�ġ � � � � � � � $ � � � �
�� � � � �ˡ � � � κ Ǹ � ˿ � � � � ѷ �
d��d�� � �ɤ� � �� � ‫` ����ץ‬ftriangles`
�ϻ ‫�������ؼ����ޤ‬ϳ��� ʿ� � Ͽ �ζ � � � � � � d � � Τ ˻Ȥ� � ����

gnuplot �ϡ � � � ��� � ɤ � � ٤��ˤ����Ƥϡ�����


��̽���ϹԤ�� α ��� ���
� �� ��
� � � Ƥ � � ϱ � � � ᤤ � �� ‫ͳ˻�ؽ‬ѷ ��
Ǥ� �ɤ����
������ ٤����Ȥǽ �ʬ� ʤ � � � � � �
� �ˤʤ � �������Υ� � ɤϡ � �ʲ � � Υ � � ‫�����ץ‬Ȥ� � � � Ȥ � j � � � � � ��:
set pm3d depthorder hidden3d
� � � ‫` ����ץ‬depthorder` � � � ɤ � � ٤��ͳѷ d ‫ؤ‬λ ‫��ؼ‬ǡ����‫����ץ‬
`hidden3d` � � Ʊ � ˶ � �(� �
��� �⤷ �d � ʤ � ) � ‫ؤ‬λ ‫� � � � � � ���ؼ‬ Ū � ʥ � � ‫�ץ‬
�� �Ǥ� � � `set hidden3d` �ϡ � pm3d � � ��ˤϱƶd � � ʤ � � � � Ȥ � � � դ � � Ƥ �
�$ � � � � �

C 4 � � � � å ԥ � (clipping)
4 clipping
?pm3d clipping
?set pm3d clipping
� ͳѷ d � x,y � � ɸ � ˴ ‫��ؤ‬륯 � �ԥåԥ ԥ�2 �Ĥ���ˡ�ǹԤ�� ����
`clip1in`: �ƻ ͳѷd � t � Ƥ � 4 � $ � � � d � � � Ƥ � � ʤ � � � Ф ʤ �� � � � �ʤ � � �
� ⤽� Τ � � d � 1 � $ � x, y � � � ϰ Ϥˤ� � � � �äƤ� � ʤ � � � Ф ʤ � ����
`clip4in`: �ƻ ͳѷd � t � Ƥ � 4 � $ � x, y � � � ϰ Ϥˤ� � � � �äƤ� � ʤ � � � Ф �
� � ����

C 4 �� �γ� � � � �
4 color_assignment
?pm3d color_assignment
`3 � � Υ ǡ � � � (x,y,z) � ξ � � `:

� � � Ť � � � � � � � ϥ � � 顼�‫ܥ‬å � � � � � � r � � Ʊ � �� �`set palette` � �� � �� Ƿ ��



� � � � � � Ĥ � � r � Ǥ ϰ � ĤΥѥ � å Ȥ Τ ‫ޤ‬$��ߤ �
¸ �ߤ��������Ĥ � ζ � ��� �
� ʤ � ѥ � å Ȥ � � r 褹��ˤϡ� o r`i g i n` �� `size` � �� �� �`mutiplot`
� � Ȥ � � � � Ȥ ǹ Ԥ � � �������ϥɥ�� Ф � � � � � � � � 뿧 � � Ȥ� � Ԥ � � � � Ƥ � � ����
� �ˤ� `set palette maxcolors` � � Ȥ � � � � Ȥ � ˺ � ��ˡ�

� r 褵���� pm3d � ͳѷ dˤϰ�Ĥγ � � � / � � � 顼� � � � б � � � � �� (� � � � Ͽ �


� � � ۤǤϤ ʤ �� Ϥ�
ο��Ǥ �)� � � � � � � �
ϡ� ��
`corners2color <option>` � �� ä ˽�
4 � Ĥγ � � z � � ɸ � � � � ‫���������ޤ‬
`4 � � Υ ǡ � � � (x,y,z,color) � ξ � � `:

4 � � � ‫ ˥ܤ‬ǡ �����Ϳ ������ 硢�������� � ��˥ ѥ � å Ȥ˳� � � � Ƥ 볥 � � � �


�Ĵ � �Ȥߤʤ � � �����ġ � � λ ͳѷ dκ�� � Ͼ � � Ʊ � ˹�Ԥȹ � � ������������ z
�� �� Ȥ�� � ‫�ڤ‬Υ� � � � ����� � κ�� � � � ‫����ץ‬ˤ� ꡢ 4 � � � ‫ܤ‬Υǡ����� RGB

� � � � Ϳ�� � ��Ȥ� � � � �����ʲ�� � � � : `rgbcolor variable` � � � � � ξ � 硢��


� �� ‫�ޥ‬ɤϰʲ�� Τ ��ˤ���ɬ� ‫�פ�����ޤ‬:

splot ... using 1:2:3:4 with pm3d lc rgb variable

Ϳ����줿���$ � � Ф � � ơ � � � � μ � � � � 4 � Ĥ � � � � $ �ʿ � Ѳ � � � � 줿 (x,y) � � ɸ
� � � � Ѥ � � $ ƻ ͳ ѷ d � � ä ơ � � � � λ ͳ ѷ d � � � � $ ο � � � � ɤ 롢�Ȥ� � ä � � �� �
¾ � � � r 襢�����
르 ꥺ ब�������� 뤫�⤷������
� � � � ϡ � � � � �� ���� r � (2 � � � � � γ ʻ� ) � � � Ф � � Ƥ � `image` � � `rgbimage`
� � � � � � � � ˤ � ä ƴ � ˹Ԥ�ʤ� Ƥ � � ����

z � � � �� �
Ϥϰ ��
ȶ�� � �ϰ
ο�� � � ϡ �� z �� � cb �‫` ���ؤ‬set log` Ʊ ���
Ϥ ��˴�
`set zrange` � � `set cbrange` �ˤ� ä � � � Ω � � Ĵ 0 � � � $ ��Ȥ� � � դ � � �
� � � $ � � � � � � � � Ͽ �� cb � � � Τ ߤ�Ĵᤵ � �� �����ʲ�� �� � : `set view map`,
`set colorbox`� �
4 corners2color
?pm3d corners2color
?set pm3d corners2color
?corners2color
=mean
=geomean
=harmean
=median
=min
=max
=rms
pm3d � � ��γ ƻ ͳѷdο � �ϡ � � � � � 4 � Ĥ � ĺ � $ο � � � � � Ť
���˴ Ƴ � � � � Ƥ �
� � ����<option> � � 'mean' ( �ǥե� � � � ) � � ' geomean', 'harmean', 'rms',
'median' �ǡ� � � ��Υ � � 顼��ʿ� 경 � ˴�Ĥ��μ�������Ϳ� 'min','max' ��
� � � 줾��� ���� j� ����������ϱ� � Ҥʡ � � � � 뤤�ϵ��ʥ ԡ �
Ǿ � ��� � � � � �
� ��ʥ ԥ � � � � 륤 �
� � � �� � Ĥ �� ��
� � Ͽ ����Ȥ� �ˤ�ɬ� ‫���פ���ޤ‬

� � � Τ ��ʾ��ˤϡ��ष���‫' ����ץ‬c1', 'c2', 'c3', 'c4' � � Ȥ ä ơ �


� ͳѷ dο � � γ � � �ˤ � � 0 � Ĥγ Ѥ � z � � ɸ � � Ȥ � � ��ˤ��� ����Ǥ�� Ф �� �
�ɤ γ � � 'c1' � � � б � � � � � Τ � � � � Τ 뤿� � ˤϲ��
����Ƥ �¸ ߤ�ɬ�‫�����פ‬
� � � � �� ���� θ � � � � � � r � � � � � ˰ � ¸ � � � Ƥ � � ����
pm3d � � � 르�� ꥺ�� ϡ � � � � 顼�� ��� � � ϥ ǡ � � � � $ � � ϰ Ϥ γ � �ˤ � � d � � ʤ � � �
�ǡ� � � � ‫'����ץ‬c<j>' �ϡ � �ʻҤ � 2 � ĤΤ ‫�˱�ؤ‬ä � � ԥ � � � � 뤬��� ɤλ �
� ѷ dο � �ˤ� � ��⤿� ʤ
���� �Ȥ � � � � � ��� �Ϳ � ������� ��С � pm3d � � � 르
� ����4x4 � Υǡ� � � � $ γʻҤ � Ŭ � Ѥ � � ����� ‫` �ץ‬demo/pm3d.dem` ('
� � Ƥ�$�� � � ) � � � ϡ�(4- 1)x(4-1)=9 � � � � � � ʤ � Ĺ � � d � 8 . � � � � ����
4 border
?set pm3d hidden3d
?pm3d hidden3d
?set pm3d border
?pm3d border
� � � ‫`����ץ‬set pm3d border {line-properties}` �ϡ � �ƻ ͳ ѷdζ � � � � � �
� ͳѷ d � � r 褵�� Ƥ� � � �� � r������� � �� ϡ�� � � � � Ū � ʱ � � � � � � �
� Ԥ � � � � �ˡ � � � � ‫`����ץ‬depthorder` �ȤȤ �˻ � � Ѥ � � ���� pm3d � � � � դ �
�ϡ � � � � Ū � ʥ � � ‫`����ץ‬set hidden3d` �ϲ � � θ ��� 8 � �ʤ � � � � Ȥ � � � դ �
��Ƥ � � $ � � � � � � ǥ� ե � � � Ȥ � � � � ° - ( � � � � � � ) � � � � � �� �border ��  �θ�
�˥ � � ‫����ץ‬ Ȥ� �Ƹ � �ˤ Ĥ � � ������� Υǥե�����ϡ����
� �θ �� splot
� � � ‫�ޥ‬ɤ� � ѹ � � Ǥ � � ����

� 侩��������:�

set pm3d at s depthorder border lw 0.2 lt black


unset hidden3d
unset surf
splot x*x+y*y linecolor rgb "blue" # ��� � � � � ʤ � � ȹ �

� � : � � 侩�Υ� � ‫`����ץ‬set pm3d hidden3d N` � � �;Ȥ� � �����������


`set pm3d border ls N` � � Ʊ � � � � � � �

4 interpolate
?set pm3d interpolate
?pm3d interpolate
� � � ‫����ץ‬ `interpolate m,n` �ϡ � � � � ‫������ܤ‬٤��뤿� ˳ʻ�� � 4�֤
�� �֤ ������ǡ����r���Ф��Ƥϡ�����Ͽ��ζ�������ˤ������ ��� ζ
� � � � � � � � 5 � � � ‫��ޤ����ؿ‬r � � � Ф � � Ƥ ϡ � � � � � � �֤ ϤۤȤ�ɰ ��� Ϥ � � � �
��� �� 顢�‫��ؿ‬r � ξ � � � � � � � `samples` � � `isosamples` � � Ȥ ä � ɸ � �
� � � � � ä � � � � � Τ � � � � � � � � � �� �

5 � � m, n � � � Ф � � Ƥϳƻͳѷa � � ���ϻ��ѷdϡ����줾�������m ��
n � � � �֤��� ������� m, n � � � � �֤���� ٤ϡ � � � � ʤ � � Ȥ � |m|, |n| � $ �
� r 褵���褦�� j� �� � ����������� �ʳʻҴ‫�ؿ‬ȸ��ʤ����Ȥ ��Ǥ ���
��� �

�� �: `interpolate 0,0` �ϡ � � � ư Ū �˺ � Ŭ � � � �ֶ����? � ��


j � �����

� � � : corners2color � Ǵ �ʿ� � (geomean) � Τ �� ���� ɾ�


��d������ �
�Ƥ � � � � Ȥ � � Ƥ ⡢ � � � ߤο� � � � �֤ Ͼ�������֤ ǹԤ������
C 4 � � 侩�ʥ � � ‫����ץ‬
4 deprecated_options
?set pm3d deprecated_options
?pm3d deprecated_options
?set pm3d map
?pm3d map
?map
� � � Υ � � ‫ �ޥ‬ɤˤϥ�� ‫{ � � � �ץ‬transparent|solid} � � Ȥ � � Ƥ � � ‫� � � � � � �ޤ‬
� ߤ��
ϡ � Ʊ � � � �� � 줾� �`set grid {front|layerdefault}` �ˤ� ä � � $ �
� � � Ȥ � � � � � ‫� � �ޤ‬

� 켰�Υ� � ‫` � �ޥ‬set pm3d map` �ϰʲ� � ΰ � � Ʊ� �


ΤΤ
Ϣ ��:
��
� Ǥ
`set pm3d at b; set view map scale 1.0; set style data pm3d;
set style func pm3d;`
C 3 � ѥ � å � (palette)
3 palette
?commands set palette
?commands show palette
?set palette
?show palette
?palette
� ѥ � å Ȥϡ� `pm3d` �ǡ� � � � 顼� � � ��� ¿ � ѷ a � � � � 顼� ҥ��ȥ��������
����
� ۤ��‫ط‬ʡ�����¾�����Ƥ��롢� � � 뤤�ϼ� � � � � � Τ � � ɤ � Ĥ � ֤ �ǻ�
� � � 롢� � �ε� � � � � � Ǥ � � � � � � � � Ǥ Ϥ � � � ϳ � �� �"Ϣ³Ū��" ���顼� �
� � � � Ĵ � Υ ѥ � å Ȥ � ��� � � ‫����������ޤ‬ñ �˥ѥ � å ȤȸƤ � ֤ �Ȥˤ�� ‫���ޤ‬

� � � 顼� ѥ�åȤϡ�¿�ѷdο����ɤ�Ĥ� ֤ �ȳ���Ȥ å Ȥ ‫�ݡ‬


ʿ� � Υ ѥ � Ȥ
�Ȥ � � � � � � Ϸ | � � � ɬ � ‫פ‬Ȥ� � � � � � � ϸ � � ߡ�`pm3d` �ǰ� � �ɽ � � � � � � � � � Ϸ | �
�� ǻ � � Ѳ � ǽ � Ǥ � � � � � � � � �� � ϰ Ϥ�
ϡ� ��
`set cbrange` � `set log cb` ��� ��
Ĵ0 � � ǽ � � � � � � � � 顼�ѥ�å�t�Τ� `colorbox` ���ɽ������‫���ޤ‬

� �:
set palette
set palette {
{ gray | color }
{ gamma <gamma> }
{ rgbformulae <r>,<g>,<b>
| defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }
| file '<filename>' {datafile-modifiers}
| functions <R>,<G>,<B>
}
{ cubehelix {start <val>} {cycles <val>} {saturation <val>} }
{ model { RGB | HSV | CMY | YIQ | XYZ } }
{ positive | negative }
{ nops_allcF | ps_allcF }
{ maxcolors <maxcolors> }
}
show palette
show palette palette <n> {{float | int}}
show palette gradient
show palette fit2rgbformulae
show palette rgbformulae
show colornames

`set palette` � � ( � � � ʤ � e � � ‫ ����ץ‬ʤ � � Ǥ � ) � ǥ ե � � � Ȥ � � ��


��� � � �� �

‫ �����ץ‬Ǥ � νդ� � ��� Ϳ 뤳�Ȥ� � � � � ‫���ޤ‬


� � � � � � � � ʳ � � ξ � �� ��
`show palette` �ϡ � � � � ߤΥѥ�åȤ�°-��ɽ�����‫���ޤ‬

`show palette gradient` �ϡ � � ѥ � å Ȥ θ � � � (gradient) � � � � d � ( � � � 줬


Ŭ� ‫� � � � �ڤ‬
) ɽ�� � � � � ‫` ���ޤ‬show palette rgbformulae` �ϡ � � � z � � � �
� � � � � 롢����� � � �饫�顼�‫��ؤ‬Ѵ � � � ɽ � � � � � � ‫���ޤ‬
`show colornames` �ϡ �ǧ � � � � � � 뿧��ɽ�����‫���ޤ‬

`show palette palette <n>` �ϡ � <n> � Ĥ � Υ � � Ū �ʿ � � � � ĥ ѥ � å Ȥ Ρ � � �


� ߤΥѥ�åȤ�����ˤ�äƷ������� RGB � �� Ȥ� � ѥ Ȥȥ � �
å ɽ� � �� �
��� � ‫` ���ޤ‬set print` � ǻ � � ��줿�˽ե� � � � � ��Ф � � ‫����ޤ‬ǥե����
� ι � � �ɽ �ϡ � � ɲ äΥ � � ‫ ����ץ‬float � ‫ ���ޤ‬int �ˤ� äơ� 3 � � � [0..1]
�� μ¿ �� ��ͤ
$� ˤ � � 뤫 � [0..255] � � 0 � � � �$� ˤ � � 뤫��줾� �����
�ͤ �� � �
� � � � � � � � � � ˡ � � gnuplot � Υ � � 顼�ѥ�åȤ�Octave �Τ �� ¾�� β � � � �
� �� �������� Ϥ����Ȥ��Ǥ��‫�¾�������ޤ‬ˤ⡢ � � � ‫` ��ޥ‬test palette`
�ǡ� � � � ߤΥѥ�åȤ� R,G,B .ʬ���б����� (profile) ���r�� ��� �� � �
� � � � � ֥�å � $PALETTE �˻Ĥ � � � � 뤳�Ȥ� � � � ‫���ޤ‬

�ʲ� � Υ � � ‫����ץ‬ϡ � � � � դ � � � ° - � � � � ��‫���ޤ‬

� � � Υ ѥ � å Ȥ � � � Ѥ � � � ‫ޤ‬ϡ � `gray` � � `color` �ˤ ʤ � ‫������ޤ‬С�


`pm3d` � � � 顼���� Ǥ ϡ� �ϰ � [min_z,max_z] � � � � � � � � � ϰ � [0:1] � � � б � � �
�Ƥ � � ơ � � � � ��ͳѷ d � 4 � Ĥγ Ѥ � z � � ɸ � �ʿ � � � � � �
�ϰ Ϥ��
�� ��� � � б
��
� � � � � 뤳�Ȥ dz � � � � � ʬ � γ � � � � � � � (gray) � � � $ � � ‫���������ޤ‬ ϡ��� � � � �

Ĵ � ο � � Ͽ ‫ޤ‬Ǥ �γ �� �
� ��
�� �ľ ܻ � � � Ȥ � � � � � ‫��������ޤ‬顼�ο� � Ͽ ‫�ޤ‬
���Ȥ�
Ȥ�

�ϡ � � � � γ � � � � � � �� �(R,G,B)
� � � ‫��ؤ‬Ѵ � � � � � � ʤ � �
�� [0:1] � � � �

([0:1],[0:1],[0:1]) � ‫ؤ‬μ� � � Ȥ � � ‫���ޤ‬

� � � � Ū �ˡ � 2 � � � � ΰ ۤʤ � � � � � � � � � Ѳ � ǽ � Ǥ � : 1 � Ĥϳ � � � � � � 饫�顼��
� β � � � Ū �ʸ � � ⤦ � � Ĥ � Υ � � Ū � � � б �ɽ � � � �֤ ˤ���
Ǥ���Τ
`palette rgbformulae` � � `palette functions` � � � � � � Ū �ʸ � � Ѥ ǡ �
`palette defined` � � `palette file` � � � � � ɽ � � � � � � ` palette rgbformulae`
� � postscript � � � Ϥ Υ � � � � � � � � � � � � � � 뤳�Ȥ� � � � � ‫���ޤ‬

� � � ‫` ��ޥ‬show palette fit2rgbformulae` �ϡ � � � � ߤ� `set palette` �˺ �


� � � ɤ � � б � � � � � `set palette rgbformulae` � � Ĥ � �Ф�� � ‫�����ޤ‬s� � � � � �
� � rgbformulae � ѥ � å Ȱʳ� � � � Ф � � Ƥ � ��� � � d ‫������ޤ‬Υ� � ‫�ޥ‬ɤϼ�
�ˡ� � ѥ � å Ȥ � rgbformulae � � d � gnuplot � � Ʊ � � ʪ � � Ȥ ä Ƥ � � 볰� ‫�ץ‬

� � �zimg � ʤɤˤȤä�ͭ��Ǥ �
� � � � � �� (
^ <a href="http://zimg.sourceforge.net">
http://zimg.sourceforge.net
^ </a>
)� �

`set palette gray` �ϡ � � � � � � � Ĵ � Τ ߤΥѥ�åȤˤ���


`set palette rgbformulae`, `set palette defined`, `set palette file`,
`set palette functions` � ϥ � � 顼�ѥ�åȤˤ��‫��������ޤ‬ѥ�åȤ���ľp
� Υ � � 顼�ѥ�åȤ‫`�ء‬set palette color` � Ǵ � ñ � � � � � � � ‫���ޤ‬

`set palette gamma <gamma>` �ˤ� 뼫 ưŪ�å ʥ�� � � � � �



5� ϡ ѥ� � � � � �
Υ
(`set palette gray`) �ȡ � `cubehelix` � � � 顼�ѥ�åȷ|��˹Ԥ��‫���ޤ‬
gamma = 1 � ξ � � ϡ � � � d θ � � ‫���ޤ‬.�����
8ۤ�
���� �‫ٸ‬ ����ʲ�� � � � :
`test palette`� �

�� � � Ϸ | � � � ¿ � � � ϡ � �� �
¸ Ĥο � � � � � � ‫��ݡ‬Ȥ� � Ƥ � � ‫� �� �( ���ޤ‬gif � �
� � 256 � � ) � � � ǥ ե � � � Ȥ � gnuplot � � � � �� ����� Ƥ� � � λ Ĥ � � �� � � �
� � � ΰ � ϡ � � ǥ ե � � � Ȥ Ǥ � pm3d � Ѥ � � � ¸ � � � � ‫�����ޤ‬äơ�ʣ��Υѥ�å�
� � � � � � � � �� �multiplot �ϡ � � ǽ � Υ ѥ � å Ȥ � � � � ٤Ƥ� � �ʿ�
��� � � � � � � ��
�Ȥ � � ƻ � � Ѥ � � � Ƥ � Τ ǡ � � � � � � Ƥ ‫���� ��� � ���ޤ‬
��� Ԥ Τ �� )�� ¤ ϡ� � � ʬ
� � � � � � � � N � � `set palette maxcolors <N>` � � Ȥ � � � � Ȥ Ǵ � � ¤ � � � ‫�����ޤ‬
� Υ � � ‫����ץ‬ϡ � N � Ĥ � Υ � � Ū � ʿ � � � Ϣ ³ Ū � ʥ ѥ � å Ȥ � � � � �֤ ʥֳ � � � �
���
�� �� j� � ‫ֳ�֤�������ޤ‬ N �Ĥ �Υ � � � � � � Ȥ � � � � � � � � ϡ � � � Ĥ � Ϣ
³Ū �ʥ ѥ � å Ȥ � � � � � � `set palette defined` � � � � Ѥ � � Ƥ � � $ � � � � �

RGB � � � �֤��� Ȥ� Ԥ � � Τ˾ �ˤ� ä Ȥ � Ѥ� �� ʿ � � ��


�֤ Ǥ � � � Ȥϸ�
¤ ʤ���
�Ȥ � � � � � ͳ � ǡ � � � � �֤� `model` � � Ȥ � � � � Ȥǡ � `RGB`, `HSV`, `CMY`,
`YIQ`, `XYZ` � Τ � � � � 줫� �� ѹ � � Ǥ � � ‫���ޤ‬RGB �ʳ� � ο � � �֤ � �
`set palette defined` � �ɽ � ǿ ��� � Ȥ � � ȡ � � � � � Ϥ � � � � � � ʿ � �ˤ ʤ � ‫���ޤ‬
˽ Ƥ � � � ‫��������ޤ‬줾��ο� � �֤ ǡ��㤨
t �Ƥ � � � � $ � RGB � � � � � � Ѥ ��
� � `R` � � `H`, `C`, `Y`, `X` � Τ � � Ȥ � ��� � � 뤳�Ȥ� � � դ � � Ƥ � � $ � � �
(`G`, `B` � � Ʊ � � ) � �

t �Ƥ ο � � �֤ �
ǡ�t�Ƥ����[0,1] �) �¤���Ƥ��‫���ޤ‬

RGB � � �֡�� С � � Ĥ � CMY �Ͽ 忧 (Cyan) � � � � (Magenta) � � � � (Yellow) � �


HSV �Ͽ � � � (Hue) � � � � � � (Saturation) � � � � � � �(Value) ��줾������ � ‫���ޤ‬
YIQ � � t �ƾ� �ȥ � � 顼�ƥ� � � � � � � (the U.S. Commercial Color
Television Broadcasting) � λ Ȥ ä � � � � 顼��ǥ�ǡ�RGB ��Ͽ�� �� ˤ��
��
�Ƥ � � ‫��������ޤ‬ƥ�Ӥ � � Ф � � � � � � ߴ�-� � � ä Ƥ � � ‫���ޤ‬XYZ � � CIE
('Commission Internationale de l'Eclairage'; � � 0��‫ݾ‬Ѱ��) ����d�
� � � � � � ǥ � � 3 � Ĥθ � � ɷ �� ��Ǥ� � �
� � � � ǥ � Τ � � ‫�������ܤ‬ˤ� Ĥ �Ƥϰʲ��
����Ȥ � � Ƥ �� $ :
^ <a href="http://en.wikipedia.org/wiki/Color_space">
http://en.wikipedia.org/wiki/Color_space
^ </a>

4 rgbformulae
?commands set palette rgbformulae
?set palette rgbformulae
?palette rgbformulae
?rgbformulae
=colors
`rgbformulae` � � � ˤ�3 � Ĥ � Ŭ � ‫ڤ‬ʳ�� � � ƴ ‫�ؿ‬j � Ф � �ɬ � ‫���פ�����ޤ‬
� � � � j � � � `rgbformulae <r>,<g>,<b>` � � ��� �ƹ Ԥ � � ‫����ޤ‬Ȥ� � � � Ȥ � � �
� � � � � � � � ƴ ‫�ؿ‬ΰ � � � � `show palette rgbformulae` � Ǹ � � 뤳�Ȥ� � � � � �
� � � � � ǥ ե � � � Ȥ � `7,5,15` �ǡ� ¾ � � � � Ȥ � � Ƥ � `3,11,6`, `21,23,3`,
`3,23,21` � ʤɤ � � � � � 6-,11-,3`���‫ � `ޤ‬Τ �� ���� Υ � 顼���
��� ϡ� �դ�

� � � � ‫ � � � ( �ޤ‬ʤ � a � �
1 - gray ��δ ‫� �)�ؿ��������ޤ‬
C � � � � � ΰ ʲ � � � � � : � � � ‫` ����ץ‬positive`, `negative`)� �

RGB � ο � � �֤ �ϡ � � � � � �Ĥ � � � � ɤ � � � � � � Ƹ � � � � � ‫�ޤ‬:
7,5,15 ... � � � � Ū pm3d ( � � - � � - � � - � � )
3,11,6 ... � � - � � - � �
23,28,3 ... � � ( � � - � � - � � ); ¾ � � � Ȥ ߹�碌���Ƥ ߤƤ� � $ � � �
21,22,23 ... � � � ‫ � � ( �ٿ‬- � � - � � - � � )
30,31,32 ... � � � Υ � � 顼 ɽ�� � � ( � � - � � - � � - � � - � � )
33,13,10 ... � � ( � � - � � - � � - � � )
34,35,36 ... AFM � � � ‫ � � ( �ٿ‬- � � - � � - � � )

HSV � � � �֤ �Υե 륫�顼�ѥ�å�:


3,2,2 ... � � - � � - � � - � 忧-� � - � � - � �

`rgbformulae` �Ȥ � � ��p � Ǹ Ƥ Ф � Ƥ � � Ƥ ⡢ � � � �� ꡢ�����


δ ‫�ؿ‬ϼº �
�ˤ� <H>,<S>,<V> � ‫< ���ޤ‬X>,<Y>,<Z>, ... �Ȥ � � ä � � � � � . ʬ � � � � ��뤫
�⤷ � � ʤ � � Ȥ � � � � � � Ȥ � � � դ � � Ƥ � � $ � � � � �

� ‫ޤ‬ο � � �ȿ ž � � � � � � ˤ � `positive` � � `negative` � � Ȥ ä Ƥ � � $ � � � � �


^ <a name="positive"></a>
^ <a name="negative"></a>

¾ � ο � � η Ϥ � � Ф � � � Ǥ � � ɤ � rgbformulae � ν � � � ϡ � �ʲ � � Υ � � ‫�ޥ‬ɤǸ� � �
� � � 뤳�Ȥ� � � � � 뤳�Ȥ� Ф � � Ƥ � � � � Ƥ � � $ � � � � �
show palette fit2rgbformulae
4 defined
?commands set palette defined
?set palette defined
?palette defined
=colors
� � � � � � � � RGB � ‫��ؤ‬б � � � `palette defined` � � Ȥ � � � � Ȥ Ǽ � ư � � � � � � Ǥ � � �
� � : � � � � � � (gradient) � � RGB � �� � Ϳ �� � �ͤ 뤿� ���� d � � � � � � � � � ‫���ޤ‬
� � � ۤ�ϡ � [0,1] � γ � � � � �� �[0,1]x[0,1]x[0,1]
� � � RGB � �֤ ‫ؤ‬Ρ � � �ʬ Ū � �
� � dʼ� � � � � � � � � � � � � � � �֤ ˻Ȥ��볥� ��
��� � RGB � � � � Ȥ � � ��� � ɬ
� ‫�פ�����ޤ‬:

� �:
set palette defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }

<grayX> � � [0,1] �˳� � � � Ƥ � � � ٤������ ��� ǡ�<colorX> � � б ��� ��Ϥ��


� � RGB � � � � � � � � � � 顼�
��� �3 � � � � � � �ˡ � ǻ � � ��뤳�Ȥ� � � � � ‫�ޤ‬:

<color> := { <r> <g> <b> | '<color-name>' | '#rrggbb' }

� ֡��С � � Ĥ � � б � � � � � � � � Ƕ � � ‫�ڤ‬줿 3 � Ĥ � � � ( � � � 줾�� [0,1] � � ) � � � �


� � � � � � � � � � 줿����� � ‫��ޤ‬ϰ�����Ǥ�����줿 X � | � � λ � � � � � Τ �
� � � 줫�� � � � � ��ۤ��� d�ϡ � � � � � � � 3 � � η � � � � ͳ � � � Ȥ ߹�碌�뤳��
� � � � � � ‫ ֤���������ޤ‬Ȥ� � � RGB � � � ʤ�Τ � � � j � � 줿��翧 "red" ��
� � � � � � ä � � � Τ ˤʤ � Ǥ �� �� ���� �� � 뿧
� �� `show colornames` �Ǥ�
� ΰ � � � �뤳�Ȥ� � � � � ‫���ޤ‬

<r> �Ƚ
��Ƥ�Ƚ HSV
⡢ �� �֤ ǤϤ � � � �<H> .ʬ� � CIE- XYZ � �֤ � � <X>
�� 줿���顼��ǥ�˰�¸���ư������� ��
� � Ȥ �ä�� � �� j�� Ȥ� � � �
���Ƥ� �$ � � � � �

�<gray> � � � �
ϼ�¿ � ξ � � � � ¤ ٤�ɬ�‫������������פ�����ޤ‬
ϼ �ư Ū� �
[0,1] � � � Ѵ � � � � � ‫���ޤ‬

� � � å � � Ĥ � � θ � �ۤ��� d ʤ � � � `set palette defined` � Ȥ � � � � � 硢 RGB � �


� � ֤ˤ������ �� ������ ��줿�ե 륹�‫��ڥ‬ȥ뿧���ۤ��� � � �‫�ۤ������ޤ‬
ɽ�� � � � �ˤ � `show palette gradient` � � � � � � �
$Ƥ�� ����

� �:

� � � � � Υ ѥ � å � ( � � � Ω � � � ʤ � � � � � � � Ū � � ) � � 8. � � � �ˤ � :
set palette model RGB
set palette defined ( 0 "black", 1 "white" )

� IJ � �֤ Υѥ�å� (t�Ƥ���d�) ��8.����ˤ�:


set palette defined ( 0 "blue", 1 "yellow", 2 "red" )
set palette defined ( 0 0 0 1, 1 1 1 0, 2 1 0 0 )
set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" )

� � Τ ��ʥ ѥ � å Ȥ � 8 . � � � � ˤ � :
set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" )

HSV � � � �֤ �Υե 륫�顼���‫��ڥ‬ȥ�:


set palette model HSV
set palette defined ( 0 0 1 1, 1 1 1 1 )
set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1)

MATLAB � ǻ Ȥ � � � ǥ ե � � � ȥ ѥ � å Ȥ ζ � � :
set pal defined (1 '#00008f', 8 '#0000ff', 24 '#00ffff', \
40 '#ffff00', 56 '#ff0000', 64 '#800000')

� � ֳ֤ʾ����ο��$��Υѥ�åȤ�8.����ˤ�:
set palette model RGB maxcolors 4
set palette defined ( 0 "yellow", 1 "red" )

' � � ��� � � ' ( � � ��ǤϤ ʤ �gray = 1/3, 2/3 � � ķ � Ӥ � � � ) :


set palette model RGB
set palette defined (0 "dark-green", 1 "green", \
1 "yellow", 2 "dark-yellow", \
2 "red", 3 "dark-red" )

4 functions
?commands set palette functions
?set palette functions
?palette functions
� � � γ � � � � Ƥ � R(gray), G(gray), B(gray) � � 3 � Ĥδ ‫����Ϳ��ؿ‬ˤ�
`set palette functions <Rexpr>, <Gexpr>, <Bexpr>` � � Ȥ ä Ƥ � � $ � � � � �
� � � � � � 3 � Ĥδ ‫����ؿ‬ ѿ�ϡ�[0,1] ���� ����ѿ�
`gray` � Ǥ�� ꡢ����
� � � [0,1] � � � � � �ɬ � � ‫���פ�����ޤ‬
�� ˼

<Rexpr> �ϡ � HSV � � � �֤� j � � � Ƥ � � � � � ϡ � H ��� Ǥ�ɽ
��� �� � � � � � ʤ
�� �����
� � � � � ʤ � � � � Ȥ � � � դ � � Ƥ � � $ � � � (¾ � μ � � � � ‫ � ¾���ޤ‬ο � � �֤ �Ǥ � ���
)Ʊ�
�Ǥ �

� �:

�ե 륫�顼�ѥ�åȤ�8.����ˤ�:
set palette model HSV functions gray, 1, 1

� � � � �‫��ؤ‬
� ɤ� � ѥ � å � :
set palette model XYZ functions gray**0.35, gray**0.5, gray**0.8

�� � � � � � 5 � � � � � Υѥ�å�:
gamma = 2.2
color(gray) = gray**(1./gamma)
set palette model RGB functions color(gray), color(gray), color(gray)
4 gray
?commands set palette gray
?set palette gray
?set palette grey
?palette gray
`set palette gray` �ϡ � 0.0 = � � � 1.0 = � � ‫ؤ‬γ � � � � � Ĵ ( � � � 쥤� �����
� � ) � ѥ � å Ȥ � � ‫���������ڤ��ؤ��ޤ‬Ĵ �ѥ � å Ȥ � � 顢 ľp � Υ � � 顼�ѥ�å�
�ˤ ‫���ޤ‬
᤹ ᤹ ˤϡ�s e`t palette color` � �
Ȥ�
����
�Ǥ��� Τ ñ
4 cubehelix
?commands set palette cubehelix
?set palette cubehelix
?cubehelix
� � � ‫" ����ץ‬cubehelix" � Ϥ � � � ѥ � å � ² � � � � d � � ‫���������ޤ‬ϡ � � � � � � �
�Ĵ � � � 0 � � � � 1 � � � � ä � � � Τ � ȼ � ʤ � � � 5�� θ � � ٤�ñĴ � � � � ä � � � Τ � Ʊ
� � �ˡ� � � � � (hue) � � ɸ � �� � Ĥ˽��ä��Ѳ����‫���ޤ‬
D A Green (2011) http://arxiv.org/abs/1108.5083
`start` �ϡ � � � � � Ĥ ˱ � ä � � � � � � $ � �� ��� ñ��Ƿ � � ��‫���ޤ‬
`cycles` �ϡ � � ѥ � å Ȥ � � ϰ Ϥ � � Ϥ äƿ� � � Ĥ � Ĥ
�� Ĥ
Ĥ 뤫������‫���ޤ‬
`saturation` ( � � � � ) � � � �� �� ȡ � � � ꤢ� � � ��ʿ� �ˤ ʤ � 1���‫ � � � � ޤ‬礭
� � � � � ٤�ϡ�ԥ �ġ � � � RGB .ʬ� � �� å� �� 뤳�Ȥˤʤ ꡢ���٤�ñĴ � � �
� ʤ � � ʤ ä Ƥ � � ‫`���ޤ��ޤ‬set palette gamma` � � ѥ � å Ȥ ƶ˱������ Ϳ ‫���ޤ‬
�d
� ǥե� � � � � �Ǥϰʲ�
� � � ��� � � � � ��
���
set palette cubehelix start 0.5 cycles -1.5 saturation 1
set palette gamma 1.5

4 file
?commands set palette file
?set palette file
?palette file
`set palette file` � ϴ � � � Ū � � `set palette defined (<gradient>)` � � Ʊ
� � �ǡ � � � � � <gradient> � � �ǡ � � � � ե � � � � 뤫���ɤ߹��4���‫( � � ޤ�ޤ‬gray,
R,G,B) � � � 3 ���‫( � � ޤ‬R,G,B) � Υǡ� � � � � `using` �ǡ� � � � ե � � � � 뽤� �� Ҥ�
� � ä � j � � � � �ɬ �3���‫ � � פ�����ޤ‬ξ � �� �ֹ �椬 gray � � � �Ȥ
�� �ƻ�� �
� � � ‫ ���������ޤ‬gray � � � ϰ � ϼ �ư
Ū Ϥ � [0,1] �˥� � � � � � � � Ѵ � � � � � ‫���ޤ‬
�ե � � � � � � ��� Υ ǡ � � � � ե � � � � � Ȥ � � � � ɤ ‫��ޤ‬Τǡ�t�ƤΥǡ����ե�����
� � � � � Ҥ � � Ȥ � � ‫���ޤ‬
� 㤨�� HSV � � � �֤� j��� Ƥ �� � � � � ˤ ϡ`R` � �ϼ º ‫ݤ‬ˤ� `H` �� ‫���ؤ‬
��� � � � � Ȥ � � �դ � � Ƥ � � $ � � � � �

� �ǰ�
� �ˤ� ä ơ � <filename> � � `'-'` � ξ � � ϡ � � ǡ � � � � � � � � � �� |�
³� � � � Ϳ�� � � 졢� Ĥ�� `e` � Τ ߤιԤǤ � � 줬��λ� � � 뤳�Ȥ� ��� � � ‫���ޤ‬

� � � � (gradient) � �ɽ � � � � � � ˤ � `show palette gradient` � � � � � � � Ƥ


����
��� � � �

� �:

RGB � Υ ѥ � å Ȥ � [0,255] � � � ϰ Ϥ � � ɤ ߹���:


set palette file 'some-palette' using ($1/255):($2/255):($3/255)

� � � Υ � � � � (� � - � � - � � - � � ) �ѥ � å � :
set palette model RGB file "-"
0 0 1
0 1 0
1 1 0
1 0 0
e

� Х � � ʥ � ѥ � å ȥե� � � � � � Ʊ � �˥

�� � ͤ
‫��ݡ‬Ȥ� � � Ƥ � � ‫����ޤ‬ʲ�� � � � :
`binary general` � � R,G,B � � double � Υǡ� � � � � 64 � Ĥ � 3 � � � Ȥ � ե � � � � �
palette.bin � ˽ � � Ϥ � � � � � � � � � ɤ ߹�����:
set palette file "palette.bin" binary record=64 using 1:2:3

C 4 � � � � � � � 5 (gamma correction)
4 gamma correction
?commands set palette gamma-correction
?set palette gamma-correction
?palette gamma-correction
?gamma-correction
� � � � � � � ‫����ۿ‬Ф� � 륬� ���� 5 � � `set palette gamma <gamma>` � � ON �ˤ�
� � � ‫<���ޤ‬gamma> � Υǥե� � � Ȥ � 1.5 �ǡ� � � � � � ¿ � � � ν � � Ϸ | � � � Ŭ � ‫���ڤ‬
�� � � �

� � � � � � � 5 � ϡ � c ubehelix � � � 顼�ѥ�åȷ|��ˤ�Ŭ�Ѥ���‫ � ¾�����ޤ‬ο � � �


� � �ˤ � Ŭ � � � � � ‫��ޤ‬ � ���������
�������� < � Ū �ʿ� � ������˥�‫ؿ‬
� � � � � � �‫���ޤ‬

� �:
set palette model RGB
set palette functions gray**0.64, gray**0.67, gray**0.70

� � ֤��줿���ۤ� Ȥäƥ� � � � � � 5 � � Ԥ �� ˤ ϡ � Ŭ � � ʥ � � 顼����֤� � � �


� ��‫���ޤ‬

set palette defined ( 0 0 0 0, 1 1 1 1 )

� � � � � � � � 㤨�аʲ�� � � � ��Ƥ� � $ � � � :

set palette defined ( 0 0 0 0, 0.5 .73 .73 .73, 1 1 1 1 )

� ‫��ޤ‬ϡ � � � � � �֤� " � � � � � � � 5 " ��� � � � � �ɤ � � �


֤ ˽�ʬ�ɤ�Ŭ��� ‫�ޤ‬
� ֤��$ � õ � � � Ƥ � � $ � � � � �

4 postscript
?commands set palette postscript
?set palette postscript
�postscript �ե � � � � � Υ � � � � � � �� �
Ū � � � � � � � �ǡ � � � � � � ε � � � ��� � � � � � � t

�Ƥ ǤϤ ʤ � � � � � � Ĥ � � η �����줿 RGB � ε � � � � ե� � Υ � � ��� � � � � �


���� � ��� ˽˽
� � � � . ʬ � ‫ ��ؿ‬postscript � 8 � � ľ � ‫����ܥ‬ɲ� � � � 졢 pm3d � � � r � � ľ p � �
� ‫إ‬å$Ȥ� � Ƥ � � � � � ‫���ޤ‬/g d � � /cF � � � � d �Ȥ �
$ � Ƥ � � d � � � � �� �� ���
�d�� � � �� �� �
3 Ȥϡ � d � Ĥμ � d�˽d Τ ߤ��Ȥ� � � � � ˰ ��� � � d ‫�����ޤ‬
� � � � � � m ultiplot � �� ¾�� � � � ͳ � � postscript �ե � � � � � � � Τ � � � � Ѵ � � ‫��ؿ‬
ľ�ܼ���� Խ � � � � � � � � Ȼ ‫������פ‬Τ� ‫��ޤ‬ � ���� �줬�ǥե���ȤΥ��‫����ץ‬
`nops_allcF` � � � � � � � � ‫` ����ץ‬ps_allcF` � � Ȥ � � ȡ � t � Ƥ θ � � � � d �
˽ postscript �ե � � � � � � � �� � ‫�����ޤ‬ĤΥ� � � � � � ǡ � �ۤʤ � � ��˰ ۤ�
� � ѥ � å Ȥ � � � � � � Ȥ � � � � � Ū � � postscript �ե � � � � � � � Խ � � � � � � � � � �
�ˡ� � � � Υ � � ‫����ץ����˴ؿ‬Ĥ�� ��� ���� ε � ǽ �ϡ � `origin` � � `size`
� � � � �� �`multiplot` � � Ȥ � � � � Ȥ Ǽ ¸ � � � � � � � � � �� �

pm3d � � ��� PostScript �ե � � � � � ‫�ؽ‬Ƥ� � � � 硢 gnuplot � � � � ° � � � �


awk � � � � � � ‫` �ץ‬pm3dCompress.awk` � � Ȥ � � � � Ȥǡ � � � � Υ ե � � � � 륵� �����
50% � ‫ޤ‬Ǿ � � � � � � � � � 뤫�⤷��‫��ޤ‬ � � ǡ������ͳѷdγʻҾ�ˤʤäƤ���
� � � ϡ � � � � � � � ‫` �ץ‬pm3dConvertToImage.awk` � � Ȥ � � � � Ȥ � � � � ��ʰ���
Ψ � � � $ � � � � ǽ - � � � � � � ‫���ޤ‬
� � � �ˡ :
awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
awk -f pm3dConvertToImage.awk thefile.ps >smallerfile.ps

C 3 pointinterval � � Ȣ � � � � � � (pointintervalbox)
3 pointintervalbox
?commands set pointintervalbox
?set pointintervalbox
?pointintervalbox
� °- `pointinterval`, `pointnumber` �ϡ � � r �� �����`linespoints`
�����
� �Τ �Ȥ� � ‫���ޤ‬pointinterval � � pointnumber � � � �� � � �� -N � �

� � � � ȡ � � $ ε � � � � � d � p �ˡ � � � � $ ε � � � θ � � � Ȣ ( � º ‫ݤ‬ˤϱ� ) ����ʬ
� � � ‫ط‬ʿ� � � � ɤ � Ĥ ֤����ȤǾä � � ‫` ��ޤ������ޥ‬set pointintervalbox` � �
� � � ξä � � ΰ � � � �� �(Ⱦ � � ) � � ) � ��‫��������ޤ‬ �����
ϥǥ� ե�� � Ȥ � Ⱦ � �
(= pointsize) � � � Ф � � � � � Ψ � � � � �
C 3 � % � � � � � (pointsize)
3 pointsize
?commands set pointsize
?commands show pointsize
?set pointsize
?show pointsize
?pointsize
� � � ‫` ��ޥ‬set pointsize` � � � r � ǻ Ȥ � � � � $ � � �� ����
ѹ � � � � ‫���ޤ‬

� �:
set pointsize <multiplier>
show pointsize

� Ǥ ϡ � � �� ��
� ǥե� � � Ȥ � 1.0 � ‫ܤ‬Ǥ � � � � � � � ǡ � � � � � Ϥ ‫���ݥ‬ȥ�� � � � � � � �
� � � � � �� ��� � ��� �

� � Ĥ � � r � � � Ф � � � ‫���ݥ‬ȥ�� � � � � � `plot` � � � ‫�ޥ‬ɤξ � Ǥ � � ѹ � � Ǥ � � ‫���ޤ‬


� ܺ٤ϡ � �ʲ � � � � � : `plot with` � �

� ‫���ݥ‬ȥ �� � � � � � � � � � ϡ � ɬ � � � � � � t � Ƥ ν � � Ϸ | � � ǥ � � ‫��ݡ‬Ȥ� � � Ƥ � � � 櫓
� ǤϤ ʤ � � � � Ȥ � � � դ � � Ƥ � � $ � � � � �
C 3 �˺ �ɸ � ⡼ � � (polar)
3 polar
?commands set polar
?commands unset polar
?commands show polar
?set polar
?unset polar
?show polar
?polar
?nopolar
� � � ‫` ��ޥ‬set polar` � ϥ � � � դ � � r � � �ˡ � � xy ľ � � � ɸ � Ϥ � � � � ɸ Ϥ� ˺ �
� ѹ � � � � ‫���ޤ‬

� �:
set polar
unset polar
show polar

�˺ �ɸ � ⡼ � ɤ Ǥ ϡ � � � � ѿ � (t) �ϳ� � ٦Ȥ� ��� � � ‫���ޤ‬t � Υǥե� � � Ȥ � � �


� Ϥ � [0:2*pi] � Ǥ � � � � � ñ ��Ȥ � � � � ٤�j��� �Ƥ � � � � [0:360] �Ȥʤ � �
� � ( �ʲ� � � � � : `set angles`) � �

� � � ‫` ��ޥ‬unset polar` � � � r � � �ˡ � � ǥ ե � � � Ȥ � xy ľ � � � ɸ � Ϥ � ᤷ � ��
��� �

`set polar` � � � ‫�ޥ‬ɤ� `splot` � Ǥϥ � � ‫��ݡ‬Ȥ� � � Ƥ � � ‫`���ޤ‬splot` � �


�� Ф � � � Ʊ � ε
� � ǽ ��
˴ ‫��ؤ‬Ƥϡ� �ʲ� � � � � : `set mapping` � �

�˺ �ɸ � ⡼ � ɤ Ǥ � t � ο � ΰ ��� � r=f(t) �Ȥ ʤ ꡢ t �ϲ � ž � � Ȥ
�ʤ� � ‫���ޤ‬

trange � ϴ ‫����ؿ‬p � ( � � � � ) � � ) � �� rrange, xrange, yrange � Ϥ � � 줾
� 쥰� դ� � x,y �����ϰ Ϥ � ) � 椹�뤳�Ȥˤʤ� ‫����������ޤ‬ϰϤ�
rrange �ϼ �ư Ū � � � � � �� � 뤫���‫ � <����ޤ‬Ū � � � � � � � � � ‫˴ؤ‬٤ܺ����‫�ޤ‬
�Ƥϡ � �ʲ� � � � � : `set rrange`, `set xrange` � �

� �:
set polar
plot t*sin(t)
set trange [-2*pi:2*pi]
set rrange [0:3]
plot t*sin(t)

� ǽ � � `plot` � ϥǥե� � � Ȥ γ � � ٤��ϰϤ� 0 ���� 2*pi ��Ȥ��‫���ޤ‬ư� �


� � �ȥ � � � դ Υ � � � � � � ϼ � ư Ū � ˿ � ��� � � ‫ ���ܤ‬2���‫` �ޤ‬plot` �ϳ� � ٤���
� p � � � ĥ � � � � � � � � դ Υ � � � � � � � � $ � � � 3 � � � � � ) � ¤ � � ‫ ��������ޤ‬x,y
� Τ � � 줾������� [-3:3] � � ) � ¤ � � 뤳�Ȥˤʤ� ‫���ޤ‬

� ǥե� � � Ȥ Ǥ϶ ��ɸ0� �(� � դϳ � � � ˺ � =0) � � � � � � � � � ǡ � � � ä �ȿ � � � ‫��ײ‬


�Ȥʤ � ��˸����Ť����Ƥ��0 �������‫ � ޤ‬θ � � � � � � � � � � � � ξ � � � � < �
Ū � � � ѹ � � � ǽ � Ǥ � � � � ʲ � � � � � : `set theta` � �

`set size square` �Ȥ � � � � `gnuplot` � ϥ � � � � ‫ � ( �����ڥ‬IJ � � � � � ) �� 1 ��

� � � � Τ DZ ߤ� (�ʱ ߤ� ʤ � ) � ߤ˸�������ˤʤ� ‫���ޤ‬Ʊ � � � ߤμ � � Ϥ � � � 9


� � ι � ߤϡ � `set ttics` � ǻ � � � � � � ‫���ޤ‬
�ʲ� � �� �
^ <a href="http://www.gnuplot.info/demo/polar.html">
�˺ �ɸ � Υ ǥ � (polar.dem)
^ </a>
��� � �
^ <a href="http://www.gnuplot.info/demo/poldat.html">
�˺ �ɸ �ǡ� � � � � � r � (poldat.dem) � �
^ </a>
C 3 print � � � ‫�ޥ‬ɤν � � � � � (print)
3 print
?commands set print
?commands show print
?set print
?show print
� � � ‫` ��ޥ‬set print` � � `print` � � � ‫�ޥ‬ɤν � � Ϥ �ե � � � � � ˥ � % � � 쥯� �
� � � ‫���ޤ‬

� �:
set print
set print "-"
set print "<filename>" [append]
set print "|<shell_command>"
set print $datablock [append]

� ѥ � �� ��
ʤ�� � `set print` � ϡ � � � � Ϥ � <STDERR> � � � � � � ‫"���ޤ‬-"
�Ȥ � � � <filename> � � <STDOUT> � � ��� � � ‫`���ޤ‬append` �ե 饰�ϥե�����
� � � ɲ � (append) � � � ɤ� ��������Ȥ�� ���
������� ‫����ޤ‬ѥ��‫��ݡ�פ‬Ȥ� � � ‫�ץ‬
� �� dz
� åȥۡ���� Ǥϡ <filename>
� � � "|" � ǻ Ϥ ‫ޤ‬äƤ� � � � 顢<shell_command>
� ‫ؤ‬Υѥ��‫���פ�������ޤ‬

� � � ‫` ��ޥ‬print` � � � о ‫ �ݤ‬p �դ � �ǡ � � � �֥� å � � � � � � �


�‫��ޤ‬ǡ���
��
� ֥�å ��� � '$' � ǻϤ ‫����ޤ�ޤ‬ʲ�� � � � : `inline data` � �
C 3 PostScript � � e ե � � � � � ѥ � (psdir)
3 psdir
?commands set psdir
?commands show psdir
?set psdir
?show psdir
?psdir
� � � ‫` ��ޥ‬set psdir <directory>` �ϡ � postscript � � � Ϸ | � � � prologue.ps
� �ʸ ��� ե��
Ѥ � � Υ � � � � � � õ � � � Τ˻ � � Ѥ � � 븡� ѥ���
� )���‫�����ޤ‬
� λ � � Ȥ ߤϡ � ��˥ � � � � � ˥ � � � � � � ‫ �������ޥ‬prolog �ե � � � � 뷲� ��
‫�ڤ��ؤ‬
� � Τ˻Ȥ� � ‫�������ޤ‬ν� �֤ ϰʲ��Τ ��ˤʤ Ƥ��ä ‫���ޤ‬
1) `set psdir` � � � � �� ���� Ϥ��Υǥ��쥯�ȥ�
2) � Ķ � � ѿ � GNUPLOT_PS_DIR � ǻ � � �� �� ǥ��쥯�ȥ�
3) �Ȥ ߹��‫ޤ‬줿�‫إ‬å!� � � � ‫��ޤ‬ϥǥե���ȤΥ����ƥ�ǥ��쥯�ȥ�
4) `set loadpath` � ǻ � � �� �� ǥ��쥯�ȥ�
C 3 �˺ �ɸ � �ư � ¼ � (raxis)
3 raxis
?commands set raxis
?raxis
?set raxis
?unset raxis
� � � ‫` ��ޥ‬set raxis` � � `unset raxis` �ϡ �ư � ¼ � � �ʻ � � � � x � � � � � � ʬ
Υ � � � � � r 褹�뤫 �ɤ������ �ߤ�����‫ڤ��ؤ��ޤ‬
�� � rrange �κǾ��� ��0 �� Ǥ�
���
�� (�����Ƽ�ư�� ‫�ܤ‬ʤ �
) ��硢����դȼ������$�ã���ʤ����ȤȤ�� Ȥ�
Ȥ
� ��
�‫�˺��ݤ‬ɸ����դ��濴���d���‫���������ޤ‬ϡ�����դζ�����Ʊ������
�r 褵��‫����ޤ‬ʲ�����: `polar`, `rrange`, `rtics`, `rlabel`,
`set grid`��
3 rlabel
?commands set rlabel
?rlabel
?set rlabel
?unset rlabel
���Υ��‫�ޥ‬ɤϡ�r ���ξ�˥�‫�����֤��ޤ‬٥������Υ�٥�ϡ�����դ���
��ɸ���� �� 뤫�‫�ݤ��˴ؤ‬餺 ɽ������‫����ޤ‬ɲäλ��ꥭ��
� (polar) ���
��ɤˤĤ��Ƥϰʲ�����: `set xlabel`��
3 rmargin
?commands set rmargin
?set rmargin
?rmargin
���‫` ��ޥ‬set rmargin` �ϱ���;��Υ������ å Ȥ�� ‫���ޤ‬
� �
�ܺ٤ϡ��ʲ�����: `set margin`��
3 rrange
?commands set rrange
?commands show rrange
?set rrange
?show rrange
?rrange
���‫` ��ޥ‬set rrange` �϶˺�ɸ� �ɤ �Υ⡼��դ�ư�������ϰ Ϥ������ �
��������� xrange �� yrange ��ξ��������Ƥ��‫ ���ޤ��ޤ‬ξ�Ԥϡ�
[-(rmax-rmin) : +(rmax-rmin)] �ˤʤ�‫ ���������������ޤ‬θ�� xrange ��
yrange ���ѹ����Ƥ� (�㤨�г��礹�뤿���)������� rrange ���ѹ����ʤ�

�Τǡ��ǡ����$� rrange �˴‫ ��ؤ‬ƥ���å��ԥ줿뤬줿 �� �


‫ޤޤ‬Ȥʤ�‫���ޤ‬ ¾��
���Ȥϰ 㤤�� r ���μ�ư��‫ܤ‬ǤϾ ��rmin = 0 �Ȥʤ�‫` ���ޤ‬reverse` ��� �
‫ܥ‬ե 饰���
��ư�� �뤬뤬뤵 ��
‫���ޤ‬
� �� �
���: rmin ����������
����
�� ȡ � ͽ � ����� 8 � � � ǽ - � ���� �
‫���ޤ‬
3 rtics
?commands set rtics
?commands show rtics
?set rtics
?show rtics
?rtics
���‫` ��ޥ‬set rtics` �ϡ�ư�¼��˱�ä���9������֤�� 9�����‫��ޤ‬Ȥ�
�θ��Ф��ϸ��$α�¦���d���‫��������ޤ‬�� `mirror` �ϡ���������
�κ�¦�ˤ��d��‫�¾�������ޤ‬Υ�����ɤ˴‫����ؤ‬ä ˤ��Ƥϰʲ��� Ĥ �� :
`polar`, `set xtics`, `set mxtics`��
C 3 ����‫( ��ץ‬samples)
3 samples
?commands set samples
?commands show samples
?set samples
?show samples
?samples
�‫��ؿ�ޤ‬ϥǡ������ �֤˴‫���ؤ‬ǥե���ȤΥ��� ‫� �ץ‬�� ϡ����‫��ޥ‬
`set samples` ���ѹ��Ǥ��‫����ޤ‬ġ��Υ���դ��r��ϰ� (sampling range)
���ѹ��ϡ��ʲ�����: `plot sampling`��

��:
set samples <samples_1> {,<samples_2>}
show samples

�ǥե���ȤǤϥ���100 ���‫� ץ‬$������ �Ƥ��‫ �� ���������ޤ‬䤹��


���5�Τ��r 褬���� ٤����‫��ޤ‬ʤ�‫������ޤ‬Υѥ��� �� ϥǡ����ե�����
Ϳ�
���r�ˤϲ��αƶd��� ‫��ޤ‬
� �����
���� /���Υ��‫���ץ‬
� � Ȥ��Ƥ���
���Ϥ��θ¤�ǤϤ��� 2���‫����� ޤ‬r�ˤĤ��Ƥ� `plot smooth` ��
3 �����r�˴‫��ؤ‬Ƥϡ��ʲ�����: `set dgrid3d`��

2 �����Υ�����r 褬�Ԥ ʤ � � � Ȥ � � � <samples_1> � � �� Τ ‫���ߤ��ط����ޤ‬

�������ʤ��Ƕ����r 褬�Ԥ ʤ � � � Ȥ � � ϡ � s a mples � � �� ϸ � Ω � � � � ɾ � �


����뤬륽쥭 ‫��ץ‬λ���ˤʤ�‫ޤ‬
�� ����� v-��Ω��� <samples_1> �ĤΥ����
���$��a�u-��Ω��� <samples_2> �ĤΥ���‫����ץ‬d ‫<���ޤ‬samples_1>
�Τ����� �ȡ � <samples_2> � � � �� �<samples_1> � Ʊ � � � ��� �� �� � � �� � ‫���ޤ‬
�ʲ��⻲�� : `set isosamples`��
C 3 ������ΰ 襵����(size)
3 size
?commands set size
?commands show size
?set size
?show size
?size
?aspect ratio
?set size square
?set size ratio
?ratio
?square
��:
set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
show size

<xscale> �� <yscale> ���r�t�Τγ������Ψ�ǡ��r�t�ΤȤϥ���դȥ�


�٥��;�����ʬ��‫��� ߤޤ‬
‫ޤ‬

���‫����פ‬:
gnuplot �ΰ�Ǥp���Ǥ es�
` ϡ
size`
t ��� ���
� �
����
r ���ΰ���� Ϥ
(�����Х�) �Υ�������)�椹��Τ ˤ�Ȥ Ƥ��
��
��ä����Ϸ |�� �
�����������٤Ƥν��Ϸ|��������$ä��櫓�ǤϤ� ‫�����ޤ‬
�� ����
���ߤϡ��ۤȤ�ɤν��Ϸ|����ʲ��Υ 뤬롼뤤 �� ‫�ޤ‬:
˽����

`set term <terminal_type> size <XX>, <YY>` �ϡ����ϥե�����Υ�������


�‫�����" ���ޤ‬Х�" �Υ�������)�椷�‫����������ޤ‬ѥ��� �� p������
��
p�
p
�Ĥ��Ƥϡ��ġ��ν��Ϸ|��Υ ‫�إ�פ‬Ȥ��Ƥ��$������ǥե���ȤǤϡ���
��դϤ��Υ����Х�t�Τ��r 褵�� ‫���ޤ‬

`set size <XX>, <YY>` �ϡ��r 輫�ΤΤ ����Х Υ��������Ф�������Ū��


��������1���‫�� ޤ‬꿷꾮륪 �
������
�������� �ȡ� � � � � դ ϥ � � � � Х � t � Τ �
��᤺ ��1 ����礭������ �� �
����� ȡ � � � � � դ ΰ � � � ʬ � Τ ߤ������Х�
t�Τ˹礦�褦��� r 褵�����‫ޤ‬
1 ����礭������ ������� � ȡ� � � � � � � �
����꤬������ 뤫�⤷�� ʤ����Ȥ���դ��Ƥ��$�����
�|������

`ratio` �ϡ������ �<xscale>, <yscale> ���r��ϰ���ǡ�����դΥ�����


������ (�IJ���) �� <r> �ˤ��‫<( �ޤ‬r> �� x ����Ĺ�����Ф��� y ����

������)��
ΰ � ˤ���Ȥ���ͤ�ϰ� ä���‫<���ޤ‬r>=-1 �ΤȤ���x ����y ��
�<r> ����
�������ñ�� (�Ĥ 1 �‫���� )ޤ‬9���Ĺ����Ʊ��ˤʤ�褦��� �� �
‫�����ޤ‬
��� `set view equal xy` ��Ʊ��������ʲ�����
�: `set view equal` �
<r>=-2 �ΤȤ���y ����ñ����9���Ĺ���� x ����ñ����9���Ĺ���� 2 ��

������� �
‫<���ޤ‬r>
� �������
˴ ‫��ؤ‬ưʲ�Ʊ�Ǥ
� �����

����

`gnuplot` �������줿뤬줿�����‫�����ڥ‬Υ Ƚ���դ�d��ȽȽ뤫��j��� �


����Ϸ|��˰�¸���‫�������ޤ‬դ��ΰ�Ͻ��Ϥλ�� ��줿뤬줿�ʬ�ˤ
� d��ȼ�
�‫ޤ‬ꡢ����� ���褦�ʺ����Ĺ��dȤʤ�‫��( �ޤ‬d��
‫����ڥ‬椬 <r> �����
Ŭ���;���Ĥ��‫��)���ޤ‬
=square

`set size square` �� `set size ratio 1` ��Ʊ�����


�����
���

`noratio` �� `nosquare` �Ϥ����� � �դ


դ ν
⥰ �Ϸ |� (terminal) � �
դդ
դ Ǥ
դ
�ǥե���ȤΥ����‫��������ڥ‬
ᤷ ᤷ ‫<�����ޤ‬xscale> �� <yscale> � Ϥ��Υ ǥ�
����Ȥ��� (1.0) �ˤ�ᤷ � �
‫���ޤ‬

`ratio` �� `square` �� 3 �����r�Ǥϰ�� ���d ‫��ޤ‬ �


� ��`set view map`
�������3� ���� r�� 2 ����� ͱ ˤƤϱ ƶ d �Ϳ ��� ‫� ���ޤ‬ʲ��⻲�� :
`set view equal`������ϡ�3 ������ x ���� y ����)Ū��Ʊ�����������

���‫���ޤ‬

��:

����դ����ߤΥ����Х�������褦���礭������� ��‫�ޤ‬:
set size 1,1

��Ⱦʬ���礭����
����դ��� 5��dˤ��‫�ޤ‬:
set size square 0.5,0.5

����դι⤵����� 2 �‫ܤ‬ˤ��‫�ޤ‬:
set size ratio 2

C 3 �r 襹���������� (style)
3 style
?set style
?show style
?unset style
�ǥե���Ȥ��r 襹������ϡ�`set style data` �� `set style function`
��‫��ޤ����ؿ‬ǡ����Υǥե���Ȥ��r 襹������ġ
��������� �����ѹ���
����ˡ�ˤĤ��Ƥϡ��ʲ�����: `plot with`����������ΰ���t�Τϡ��ʲ���
��: `plotting styles`, `plot with`��

��:
set style function <style>
set style data <style>
show style function
show style data

����Ǥ����r����ǤΥǥե���ȥ������������Ǥ��‫���ޤ‬

��:
set style arrow <n> <arrowstyle>
set style boxplot <boxplot style options>
set style circle radius <size> {clip|noclip}
set style ellipse size <size> units {xy|xx|yy} {clip|noclip}
set style fill <fillstyle>
set style histogram <histogram style options>
set style line <n> <linestyle>
set style rectangle <object options> <linestyle> <fillstyle>
set style textbox {opaque|transparent} {{no}border} {fillcolor}

C 4 ������������ (set style arrow)


4 set style arrow
?commands set style arrow
?commands unset style arrow
?commands show style arrow
?set style arrow
?unset style arrow
?show style arrow
?arrowstyle
�ƽ��Ϸ|�������$ηdΥǥե���Ȥν�����äƤ��ơ�����ϥ�� ‫��ޥ‬
`test` �ǻ��Ȥ�����‫`���ޤ‬set style arrow` ����ηa����$ηa�������
����d����������ǻȤ��Ȥ��ˤ��d���Ʊ������ � �
� �֤��ƻ����ʤ�
�Ƥ ⥤��ǥ å����ǻ��ȤǤ ���褦�ˤ��‫���ޤ‬

��:
set style arrow <index> default
set style arrow <index> {nohead | head | heads}
{size <length>,<angle>{,<backangle>} {fixed}}
{filled | empty | nofilled | noborder}
{front | back}
{ {linestyle | ls <line_style>}
| {linetype | lt <line_type>}
{linewidth | lw <line_width}
{linecolor | lc <colorspec>}
{dashtype | dt <dashtype>} }
unset style arrow
show style arrow

<index> ��0��ǡ��������Υ������� (arrowstyle) �������‫���ޤ‬

`default` ������ �
ȡ �t � Ƥ � arrow � � � � � � � � ѥ � �� ��
Ϥ��Υǥե���
�Ȥ��ʤ
�ˤ� �ͤ
‫���ޤ‬

<index> �� arrowstyle �����¸�ߤ����硢 ¾��t�Ƥ���¸���줿뤬줿 �


‫Ϳ�ޤޡ‬
����줿뤬줿 ��� ��
ѥ� Τ ߤ��ѹ�����‫<���ޤ‬index> ��¸�ߤ��ʤ���С�����
��ʤ��ä��ǥ �
ե�
ϥ ���Ȥ�
� ��
���� ʤ ��
�� ˤͤ �ͤ
� ‫���ޤ‬

`nohead` ������뤬뤬뤳�
Ȥǡ����� �
Τʤ���� ʤ���ʬ�� ��Ȥ� �
��������
�‫���������ޤ‬r�ξ���ʬ���d��� Ϳ� ‫����ޤ‬ǥե���ȤǤ� 1
���ˡ����
�Ĥ����褬�Ĥ��Ƥ��‫`���ޤ‬heads` �λ�����ʬ��ξü�����褬�d���‫���ޤ‬

������礭����`size <length>,<angle>` �‫���ޤ‬


`size <length>,<angle>,<backangle>` ��)�����
��‫<`���ޤ‬length>` ������
�γƻ ‫�ޤ‬Ĺ���ǡ�`<angle>` ������λ ‫��ޤ‬
� ���
�� ʤ����� (ñ��
���) �Ǥ���
`<length>` ��ñ��� x ����Ʊ���Ǥ���������� `<length>` ��p�� `first`,
`second`, `graph`, `screen`, `character` ��Ĥ��뤬뤬뤳 � ѹ��Ǥ��‫���ޤ‬
Ȥ��
�ܺ٤ϡ��ʲ�����: `coordinates`��

�ǥե���ȤǤϡ��ȤƤ�û���������Ͼ�������� ‫���������ޤ‬ϡ�`size` ��
��ˤǤ�� ‫���ޤ‬
�‫�ޥ‬ɤθ��� `fixed` ��Ȥ����Ȥ��
`<backangle>` �ϡ�����θ�����ʬ��� Ȥ��
� � �� ‫<`( ��ڤ‬angle>` ��Ʊ����
���) �ˤʤ�‫������������ޤ‬뤬 `nofilled` �ξ��Ϥ�����
����ñ�� �뤷
�‫���ޤ‬

`filled` ������ �
ȡ� � � � � β � � � � (� � � � � ) � � � d � � � � � � � � � ɤ � Ĥ �
���‫`���ޤ‬noborder` ������ � ȡ � � � � � � � ɤ � Ĥ ֤��‫�������������ޤ‬d�
�‫��ޤ‬ ��
� �� � �� ���� ��
ü���٥�� ȥ� ν � � % ԥ å � � � ξ�֤
�� ��줿뼰륦
� ��
�������t�ΤȤ��ƾ����������ʤ�‫������������ޤ‬d����ϡ�����ζ���
��ϱ�Τǡ���� `noborder` ��Ȥ��٤���� ��������ɤ�֤ Ĥ��ϡ�����
�Ƥν��Ϸ|������‫��ݡ‬Ȥ��Ƥ���Ȥϸ¤�‫���ޤ‬

���ϥ 桼������ d����饤��� ���Υ�ꥹ�� Ȥ���j�֤��Ȥ����


��‫���ޤ‬
(�ʲ�����: `set style line`)���Ѱդ���Ƥ��� `<line_type>` ���� (�ǥ�
����ȤΥ 饤��� ���Υ�ꥹ� � Ȥ��ֹ�) ������ `<linewidth>` (�ǥե����
������ܿ � ) ��ȤäƤ�������d��뤬뤬뤳 ����
Ȥ� ��‫���ޤ‬

���������桼������ z �Υ 饤 � � � ��
� � 뤬 j��
� 줿��硢���� °- (��
��) �ϡ�ñ��¾�� `set style arrow` ���‫�ޥ‬ɤ�Ŭ����ֹ�� `lt`, `lw`
�ʤɤ�����Ƥ⡢�ѹ��ϤǤ��ʤ����Ȥ���դ��Ʋ�������

`front` ������ �
ȡ � � � ϥ � � � դ Υ ǡ � � � � ξ � � � d � � � ‫`���ޤ‬back` ����
���줿��� (�ǥե����) ����ϥ���դΥǡ����β����d���‫`���ޤ‬front`
�������ǡ�������� ���
��Ȥ��С�( ʤ��ʤ 뤬뤬뤳 �
Ȥ��ɤ����Ȥ�� ��‫���ޤ‬
���

��:

���褬�ʤ����‫�������ܤ‬d��ˤ�:
set style arrow 1 nohead lw 2
set arrow arrowstyle 1

����¾����ˤĤ��Ƥϡ��ʲ�����: `set arrow`��

C 4 boxplot ����������� (boxplot)


4 boxplot
?commands set style boxplot
?commands unset style boxplot
?commands show style boxplot
?set style boxplot
?unset style boxplot
?show style boxplot
���‫` ��ޥ‬set style boxplot` �ˤ�ꡢ�r 襹������`boxplot` ��8.����
�r�Υ 줿뤿줬 �
���� ѹ��Ǥ��‫���ޤ‬
Ȥ��

��:
set style boxplot {range <r> | fraction <f>}
{{no}outliers} {pointtype <p>}
{candlesticks | financebars}
{separation <x>}
{labels off | auto | x | x2}
{sorted | unsorted}

boxplot ��Ȣ�ϡ���˥ǡ����$�����ʬ�� ����軰�� ʬ��


�� ��ϰ
Ϥ ˤ�����
��������
�äƤ��‫���ޤ‬Ȣ�����Ĺ�����Ȣ�Ҥ��θ³��ϡ �2 �Ĥΰۤʤ���ˡ��)��Ǥ�
�‫����ޤ‬ǥե���ȤǤϡ�Ȣ�Ҥ��ϡ�����Ȣ�Τ��줿뤬륢��� ʬ���ϰϤ�
ü���顢��
‫ޤ‬DZ�Ĺ
1.5 �� (���ʤ�a�����Ȣθ��(�ʿ� ľ���ι ⤵ ) �����ϰϤ ˤ
����‫���ޤ‬Ȣ�Ҥ����줿뤬륢�� �
ϡ��ǡ�������
� Τ����$�°���� y ��� ǽ
���
��褦�ˡ���� ����˸����
ä � ‫�ڤ‬ΤƤ��‫�����ޤ‬ʬ���ϰϤ����� 1.5 ��
����� �� ‫����ޤ‬顢 Ȣ�Ҥ��Ϥ�����
�$��ʤ���� ���
�� �ܾ����ϰϤ���û����
���� ���
��‫������ޤ‬Υǥե���Ȥϰʲ����б����‫���ޤ‬
set style boxplot range 1.5

�⤦��Ĥ���ˡ�Ȥ��ơ� �Ҥ����������
�$ Ȣ ��� γ�� (fraction) �����
�뤬뤬뤳 � ���
Ȥ�� ��‫������ޤ‬ξ��� ��ϰ� �������
Ϥϥ �顢�ǡ�������λ���

��
��
����ʬ��Ϥ�����‫ޤ‬ǡ��оΤ˱�Ĺ����‫������ޤ‬ΤȤ��⡢�ġ���Ȣ�Ҥ��ϥ�
������������$�ü�‫�)��ޤ‬¤���‫����ޤ‬ǡ�������� 95% ���$�Ϥ�ˤ�
�ʲ��Τ 褦�ˤ��‫���ޤ‬
set style boxplot fraction 0.95

Ȣ�Ҥ����ϰϤγ��ˤ���Ǥ�դ��$ϡ�outliers �ȸ��ʤ���‫����ޤ‬ǥե����
�ǤϤ����ϤҤȤĤҤȤı� (pointtype 7) ���d���‫����ޤ��������ץ‬
`nooutliers` �Ϥ�����
��ˤ��‫���ޤ‬

�ǥե���ȤǤ� boxplot �� candlesticks �Ȼ����������r 褷�‫�����ޤ‬


financebars �Ȼ����������r 褹����
뤿 Υ��‫ץ��� � ⤢��ޤ‬ ���

boxplot �� using ���


�꤬ 4 ���‫��ܤ‬ľ��� ���� �Ϥ�
��
� � ������
ѿ��Υ
��Ū�ʥ�٥���Ǥ� ���ȸ��ʤ��
‫������ޤ‬ξ��� � ΰ�
���ѿ�Υ�٥�ο��
Ʊ���$���ʣ��� boxplot ���d���‫ ���������ޤ‬boxplot ���٤�礦���
�) �Ǥ��������δֳ֤ϥ��‫�ץ‬
Ʊ�Τε�Υ�ϥǥե���ȤǤ� 1.0 (x ����ñ��
��� `separation` ���ѹ��Ǥ��‫���ޤ‬

���‫` ����ץ‬labels` �ϡ������� boxplot (���줿뤬륢�ǡ�������


� Τ�����ʬ
���б�����) �Τɤ��ˡ��ɤΤ 褦�˥�٥��Ĥ��뤫���� ��‫����ޤ‬ǥե���
�ȤǤ� � (x �� � x2 �Τ����줫 plot �ǻȤ��Ƥ�����) ����
ϰ�Ҥ�� ��ʿ��
9��٥�˽��Ϥ��‫�������ޤ‬ϥ��‫` �����ץ‬labels auto` ���б����‫���ޤ‬
���‫` ����ץ‬labels x`, `labels x2` �ˤ�äơ���)Ū�� x ����x2 ���ˤ�
�줿뤬륢���� Ϥ����뤬뤬뤳 ����
Ȥ� ��‫`�����ޤ‬labels off` �ǥ��դˤ��뤬뤬뤳 ���
Ȥ� �
�‫���ޤ‬

� �Ϥ �
�ǥե���ȤǤϡ�����ѿ�ΰۤʤ��٥���б����� boxplot ��0� �
�����ǡ����ե�����ˤ��Υ�٥뤬�������֤��r 褷�‫������ޤ‬ε�ư�ϥ���
������ `unsorted` ���б����‫` ����ޤ��������ץ‬sorted` ����������
���ȡ�
�٥���‫� �ޤ‬ �
� ���
˥����Ȥ������ �
ν � �
boxplot 褷�‫���ޤ‬ r

���‫` ����ץ‬separation`, `labels`, `sorted`, `unsorted` �ϡ�plot �� 4


Ϳ�
���‫ܤ‬λ����������Τ ߸��Ϥ��d‫���ޤ‬

�ʲ�����: `boxplot`, `candlesticks`, `financebars`��

C 4 �ǡ����r 襹��������� (set style data)


4 set style data
?commands set style data
?commands show style data
?set style data
?show style data
?data style
���‫` ��ޥ‬set style data` �ϥǡ����r���Ф���ǥե���Ȥ��r 襹������
���ѹ����‫���ޤ‬

��:
set style data <plotting-style>
show style data

j����‫ܤ‬ˤ��Ƥϡ��ʲ
Ĥ ����� `plotting
: s� �
styles`h o w `� �
style data`
���ߤΥǥե���ȤΥǡ����r 襹������ɽ ������‫���ޤ‬
C 4 �ɤ��٤������������ (set style fill)
4 set style fill
?commands set style fill
?commands show style fill
?set style fill
?show style fill
?fillstyle
���‫` ��ޥ‬set style fill` �ϡ�boxes, histograms, candlesticks,
filledcurves �Ǥ��r �ˤ������r����Ǥǥ �Υ �ե� Ȥ Υ ������������˻ �
���‫������ޤ‬Υǥե���Ȥϡ��ġ����r���ɤ��٤��������� (fillstyle)
������뤬뤬뤳 Ȥ�
Ǿ���� ‫����ޤ‬
�� ʲ�����: `set style rectangle`��

��:
set style fill {empty
| {transparent} solid {<density>}
| {transparent} pattern {<n>}}
{border {lt} {lc <colorspec>} | noborder}

�ǥե���Ȥ��ɤ�Ĥ֤��������� (fillstyle) �� `empty` �����


���

���‫` ����ץ‬solid` �ϡ����Ϸ|������‫��ݡ‬Ȥ��Ƥ������ � ο�


���Υ ٥�
�ɤ��Ԥ��‫����ޤ‬ѥ��� �<density> ���ɤ�Ĥ֤����ζ�����ɽ���Ƥ���
<density> �� 0.0 �ʤ�Ȣ�϶�<density> �� 1.0 �ʤ�Ȣ�Ϥ�������ϸ��ߤ�
���ȴ�t��Ʊ�������ɤ��‫������ޤ‬Ϸ|��ˤ�äƤϡ����ζ����� Ϣ ³Ū��
�Ѳ����������Τ���‫�¾���������ޤ‬Τ�Τϡ���ʬŪ���ɤ�Ĥ֤��δ�
�Ĥ��Υ�٥�����Ƥ���˲��‫��ޤ‬ � � ѥ��� �<density> ��Ϳ���

��ʤ��ä����ϥǥե���Ȥ� 1 �ˤʤ�‫���ޤ‬

���‫` ����ץ‬pattern` �ϡ����ϥɥ 饤�Ф ˤ� ��


Ϳ ä����� ѥ�����Ǥ���
��Ĥ֤���Ԥ � � ‫� ��������ޤ‬ � � � ɤĤ �֤��ѥ�����μ���ȿ�Ͻ��ϥɥ 饤
�Ф˰�¸���‫����ޤ‬ɤ�Ĥ֤��� boxes ���������ʣ��Υǡ���������r 褹
���礽�Υѥ�����ϡ�ʣ��ζ�����r�ˤ��������μ����Ʊ�ο�� ��� �ͭ
��
��ѥ����� �ѥ � <n>�
����� ��� Ϥ�Ƽ���Ū�����Ѥ�� ‫���ޤ‬

���‫` ����ץ‬empty` �ϡ�Ȣ���ɤ�Ĥ ֤��‫��ޤ‬ � � �줿줬줬


����
� �� �
ǥե���ȤǤ���

?fillcolor
?fc
�ɤ��٤��� (`fillcolor <colorspec>`) �ϡ��ɤ��٤��������� (fill style)
����ʬΥ����Ƥ��‫������ޤ‬ʤ�a�fillstyle ���r����� 䥪�֥������Ȥ���
뤬뤬뤳
���ο����ä��� �‫����ޤ‬ � ���
Ȥ�� ��‫���ޤ‬fillstyle ���Ĥ��������
���� fillcolor ��������
��‫���ޤ‬fillcolor �� `fc` �ξ�ά�d�Ȥ��‫���ޤ‬
�����ʤ����ϡ��ɤ��٤����ϸ��ߤ���� (linetype) ������‫���ޤ‬
��:

plot FOO with boxes fillstyle solid 1.0 fillcolor "cyan"

5 set style fill border


?commands set style fill border
?set style fill border
?fillstyle border
=border
������� `border` �ϡ��ɤ��٤����֥������� Ȥߤ����
� ȿ��μ���ǰ�
��褦�ˤ��‫���������ޤ‬ο��ϡ�linetype �� linecolor ���ɲû���� ����
��‫`���ޤ‬noborder` �ϡ�����������d��ʤ��褦�ˤ��‫���ޤ‬
������
��:
# �ɤ��٤��϶���Ⱦʬ��������Ʊ������ t����
set style fill solid 0.5 border
# �ɤ��٤���ȾʬƩ�ᡢ����� ϼ���ι� (��� -1)
set style fill transparent solid 0.5 border -1
# ���ߤο��ǤΥѥ������ɤ��٤������������ 5 �ο���
plot ... with boxes fillstyle pattern 2 border lt 5
# �忧 (cyan) �Ǥ��ΰ���ɤ��٤� � � � � � � � � � �
plot ... with boxes fillcolor "cyan" fs solid border linecolor "blue"

���: fill ��������� border (����) °-�ϡ��ǥե���ȥ⡼�ɤ� closed


(�Ķ��) �� `with filledcurves` �Υ���դˤ����ƶd��� Ϳ� ‫� � �ޤ‬
C 5 Ʃ�2� (set style fill transparent)
5 set style fill transparent
?commands set style fill transparent
?set style fill transparent
?fillstyle transparent
?transparent
�����Ĥ��ν��Ϸ|��ϡ��ɤ�Ĥ֤��ΰ�� `transparent` (Ʃ�2�) °-��
�‫ � �ݡ‬Ȥ��Ƥ��‫ � � �ޤ‬transparent solid ���ΰ��ɤ�Ĥ֤��Ǥϡ�`density`
((��) �ѥ��� �� � � � � ե� ��Ȥ � � ƻ� � Ѥ � � � ‫ � � � �ޤ‬Ĥ ‫ޤ‬ꡢ��� 0 �ϴ�t
��Ʃ�$���� 1 �ϴ�t����Ʃ�$������‫ � � �ޤ‬transparent pattern ����
��Ĥ֤��Ǥ ϡ��ѥ �������
‫ �� ط‬ʤ���t��Ʃ�$���t����Ʃ�$Τ����줫�Ǥ���

Ʃ�$��ɤ�Ĥ֤��ΰ��‫ޤ‬॰�� դդ� � ����


ä �� �Τ ˤ��
ϡ� �� � ) ¤
����� 뤬뤬뤳 ���դ��Ƥ��$������㤨�С�png ���Ϸ|��Ǥϡ�"truecolor"
Ȥ�
���‫������ץ‬ ���
�� Ƥ�����ˤ
��
�� Τ�Ʃ�2����ɤ��٤������ѤǤ � � ‫���ޤ‬

PDF �ե�����ˤ�Ʃ�2��ΰ 褬 5�������Ҥ���Ƥ��Ƥ⡢ PDF ��ɽ�����եȤ�


��äƤϤ����5����ɽ���Ǥ��ʤ����Ȥ � �ꤨ�� ‫ ����ޤ‬º ‫ �ݤ‬PostScript ��
��� ˡ � Ϥ
Ǥ����� � Τ ��Ghostscript/gv Ǥϥ ѥ������ɤ�Ĥ ֤��ΰ��
ʤ��
5����ɽ���Ǥ��‫���ޤ‬
C 4 �‫��ؿ‬r 襹��������� (set style function)
4 set style function
?commands set style function
?commands show style function
?set style function
?show style function
���‫` ��ޥ‬set style function` �ϴ ‫��ؿ‬r���Ф���ǥե���Ȥ��r 襹����
�� (lines, points, filledcurves �ʤ�) ���ѹ����‫����ޤ‬ ʲ�����:
`plotting styles`��

��:
set style function <plotting-style>
show style function
4 set style increment
?commands set style increment
?commands show style increment
?set style increment
?show style increment
`���`: ���Υ��‫�ޥ‬ɤ���侩�Ǥ�������˿��������‫` ��ޥ‬set linetype`
����Ѥ��Ƥ��$���������ϡ ����ѤΤ���ΰ�Ū��Ŭ������ ���

� ���

�ǤϤʤ�����K�Τ����d��‫����ޤ‬ʲ�����: `set linetype`��

��:
set style increment {default|userstyles}
show style increment

�ǥե���ȤǤϡ�Ʊ������վ�μ����r�ϡ����ߤν��Ϸ|��ǥǥե���Ȥ�
��d���Ƥ������μ��Τ�ΤǹԤ��‫���ޤ‬
��������`set style increment user` ��j�� ���������������
�� �ȡ
��ǥե���Ȥ����Ǥ�
�ʤ����桼����e 饤��� ����� �ֹ�Τ�Τ���Ѥ����뤬뤬뤳�Ȥ��Ǥ�� ‫���ޤ‬

��:
set style line 1 lw 2 lc rgb "gold"
set style line 2 lw 2 lc rgb "purple"
set style line 4 lw 1 lc rgb "sea-green"
set style increment user

plot f1(x), f2(x), f3(x), f4(x)

����ϡ��‫ �ؿ‬f1, f2, f4 �Ͽ����˥桼����d��줿 ��饤� � �������r 褵


��‫����ޤ‬桼����e � 饤� � ���� 뤬��� Ĥ���ʤ����ϡ�����ˤ������
������ǥե���Ȥ���郎���Ѥ � � � ‫����ޤ‬
㤨�С������Ǥϡ�f3(x) �ϥǥ�
����Ȥ���� 3 ���r 褵��‫���ޤ‬

C 4 ������������ (set style line)


4 set style line
?commands set style line
?commands unset style line
?commands show style line
?set style line
?unset style line
?show style line
?linestyle
?linewidth
=linewidth
=interval
=linespoints
=pointinterval
=pointnumber
�������֤ˤ Ϥ��Τ��Υǥե���Ȥ������<�ν��礬���ꡢ����� ϥ�� ‫�ޥ‬
�� `test` �Ǹ��뤬뤬뤳�Ȥ��Ǥ�� ‫���ޤ‬`set style line` ����������<��
�$�������ġ��θƤӽФ��ǡ������ξ����t������ ����� ˡ�ñ
�ʤ��ֹ�ǻ��ȤǤ���褦�ˤ��餫������d����ΤǤ���

��:
set style line <index> default
set style line <index> {{linetype | lt} <line_type> | <colorspec>}
{{linecolor | lc} <colorspec>}
{{linewidth | lw} <line_width>}
{{pointtype | pt} <point_type>}
{{pointsize | ps} <point_size>}
{{pointinterval | pi} <interval>}
{{pointnumber | pn} <max_symbols>}
{{dashtype | dt} <dashtype>}
{palette}
unset style line
show style line

`default` �ϡ�t�ƤΥ 饤��� �����


ѥ � �� �� ��
���� Ʊ��index ����
��� (linetype) �������‫���ޤ‬

<index> �� linestyle �����¸�ߤ���� � ¾��t�Ƥ���¸���줿�‫Ϳ�ޤޡ‬


����줿�ѥ � �� �� Τ ߤ��ѹ � � � � � ‫���ޤ‬
<index> ��¸�ߤ��ʤ���С�����
��ʤ��ä���ϥ ǥե���Ȥ���ˤʤ�‫���ޤ‬


���Τ 褦�ˤ Ĥ������� � ����� ϡ��ǥե���Ȥη�(���, �<�) ��
��ʤ�Τ��֤�������
뤬뤬뤳�ȤϤ��ʤ��Τǡ�� 饤� �� ���� 롢� ǥե���Ȥη���
�ɤd��Ȥ��‫����ޤ‬ 饤��� ����� ϰ�Ū�ʤ�Τǡ����‫` ��ޥ‬reset` ��
�Ͼ ⤽ä��� ‫�����ޤ‬
�¹Ԥ���Ф��ĤǤ ��� K�Τ����d��������ϡ�
�ʲ�����: `set linetype`��
�����<�ϡ����� index ���ǥե���ȤȤ��‫�������ޤ‬index ����Ф���
�º ‫ݤ‬ε���ηdϡ����Ϸ|��ˤ�äưۤʤ��$‫���ޤ‬

�����$��礭���ϡ���� ߤν��Ϸ|��Υǥե���Ȥ����礭�����Ф�����
�Ǥ� (�������������Ǥ� <point_size> �ϡ����‫` ��ޥ‬set pointsize` ��Ϳ
��������ˤϱƶd��ʤ����Ȥ���դ��Ƥ��$���)��

`pointinterval` �ϡ��������� `linespoints` �ǥ��������d�����$δ�


�֤�)�椷�‫����ޤ‬ ǥե���Ȥ� 0 �Ǥ� (���٤Ƥ��$��r 褵���)���㤨�С�
`set style line N pi 3` �ϡ��<郎 N���$��礭�������ϸ��ߤν��Ϸ|�
�Υǥե���Ȥǡ�`with linespoints` �Ǥ��r�Ǥ��$� 3 ��������r 褵��
��褦�ʥ 饤��� �������� d��‫������ޤ‬δֳ֤�����
� ˤ���ȡ�����ϴ�
�֤�5���
� ξ���Ʊ���Ǥ������$ε���β��ˤʤ���� ����
���
ʤ�� 褦�ˤ���
�� (���Ϸ|��ˤ�äƤ�)��

`pointnumber` °-�ϡ�`pointinterval` �Ȼ�Ƥ��‫�����ޤ‬


N �Ĥ������d���
���ˤ�������ˡ�t�Τ��$θĿ�� N �Ĥ˸���� �
Ȥ����㤤�‫���ޤ‬

t�Ƥν������֤�� `linewidth` ���`pointsize` � ‫��ݡ‬ 櫓�Ǥ�


� Ȥ��Ƥ���
����‫��ޤ‬ ⤷���‫��ݡ‬Ȥ���Ƥ��ʤ����Ϥ�����
� � Υ‫ץ‬��������뤬뤬뤵��
�‫���ޤ‬

���Ϸ|��˰�¸���ʤ����� `linecolor <colorspec>` �� `linetype <colorspec>`


(��ά�d� `lc`, `lt`) �Τ����줫 � � ȤäƳ����Ƥ 뤬뤬뤳�Ȥ��Ǥ�� ‫�������ޤ‬
���� ��� Ϳ� 뤫 � � gnuplot �λ�ĥѥ�åȤο��������
RGB �� 3 ���Ȥ���
�Υѥ�åȤ��Ф��뺹쵭뾮����ꡢ�‫���ޤ‬cbrange �‫ؤ‬θ��ߤΥ ѥ � å Ȥ � � б � � �
�Ф����������Τ����줫 � � Ϳ���‫����ޤ‬ ʲ�����: `colors`, `colorspec`,
`set palette`, `colornames`, `cbrange`��

`set style line <n> linetype <lt>` �ϡ����Ϸ|��˰�¸�������/����Υ�


�������ȿ� �Ȥ�� ‫���ޤ‬
���ξ�� å `set style line <n> linecolor <colorspec>`
�� `set style line <n> linetype <colorspec>` �ϡ����ߤ����/����Υѥ�
������ѹ������˿���������������‫���ޤ‬

3 �����⡼��(`splot` ���‫� )��ޥ‬Ǥϡ�"linetype palette z" �ξ�ά�dȤ�


� `palette` �Ȥ����Ȥ���Ƥ�� ‫������ޤ‬
������˥������� ο�����ϡ�
splot �� z ��ɸ (�⤵) ���б�������������뤬뤬뤤�϶ ���˱ �ä Ƴ� 餫����
�����‫���ޤ‬

��:
�ʲ��Ǥϡ��ֹ� � � � 줿뤬륢���֡���С��ĤȤ���
1, 2, 3 ���Ф���ǥե���Ȥ����
d
d �ǥե���Ȥ��d$ηd줿뤬륢��5��a������ѷdǤ���Ȥ��‫������ޤ‬ ΤȤ�
�ʲ��Υ��‫��ޥ‬

set style line 1 lt 2 lw 2 pt 3 ps 0.5

�ϡ��������饤��� ����� Ȥ��ơ��Фǥǥե���Ȥ�2 �‫������������ܤ‬


���ѷd�Ⱦʬ������$���d��‫����ޤ����ޤ‬ʲ��Υ��‫��ޥ‬

set style function lines


plot f(x) lt 3, g(x) ls 1

�ϡ�f(x) �ϥǥե���Ȥ�����ǡ�g(x) �ϥ 桼������d����Ф�����r 褷��


����Ʊ��ˡ����‫��ޥ‬

set style function linespoints


plot p(x) lt 1 pt 3, q(x) ls 1
�ϡ�p(x) ���֤����
Ƿ�Ф 줿�ǥե���Ȥλ��ѷdǡ�q(x) ���Ф���Ƿ�Ф�
�����������ѷd��r 褷�‫���ޤ‬

splot sin(sqrt(x*x+y*y))/sqrt(x*x+y*y) w l pal

�ϡ�`palette` �˽��äƳ�餫�ʿ���Ȥäƶ�����r 褷�‫�������ޤ‬Ϥ����


���‫��ݡ‬Ȥ������Ϸ|��Ǥ�����d �Ȥ�ư���$ʤ����Ȥ���դ��Ƥ�� ����
�ʲ��⻲��: `set palette`, `set pm3d`��

set style line 10 linetype 1 linecolor rgb "cyan"

‫� �ݡ‬Ȥ� �뤬뤬뤹�٤Ƥ ν��Ϸ|��ǡ�� 饤��� �����


�ϡ�RGB ���顼�� 10 �˼�
��ο 忧������Ƥ ‫� � �ޤ‬

C 4 �ߥ� � ��������(set style circle)


4 set style circle
?commands set style circle
?commands unset style circle
?commands show style circle
?set style circle
?unset style circle
?show style circle

��:
set style circle {radius {graph|screen} <R>}
{{no}wedge}
{clip|noclip}

���Υ��‫�ޥ‬ɤϡ��r 襹������ "with circles" �ǻȤ���ǥե���Ȥ�Ⱦ��


�������‫����� � �ޤ‬ϡ� � ǡ� � �� r�� 2 � � Υǡ� � � (x,y) � � � � �ä

���ʤ��

���� �� ��ϴ �‫� �ؿ‬r�ΤȤ���Ŭ�Ѥ���‫�� � �ޤ‬ǥե���Ȥϡ��ʲ��Τ 褦��
�ʤäƤ��‫�ޤ‬: "set style circle radius graph 0.02"��`nowedge` �ϡ����
�α߸���ʬ�����濴��� ����2 �‫�ܤ‬Ⱦ�¤��d��ʤ��褦�ˤ� �‫������ޤ‬ ǥե�
��Ȥ� `wedge` �Ǥ������Υѥ��� �� ϴ�t�ʱ ߤ�� ⤷
Ф��Ƥϲ��� ‫���ޤ‬
`clip` �ϱ ߤ�� r 趭���ԥ ǥ���å��ԥ �� ‫�����ޤ‬ `noclip` �Ϥ����� ��ˤ�
�‫����ޤ‬ǥե���Ȥ� `clip` �Ǥ���

C 4 ��e���������� (set style rectangle)


4 set style rectangle
?commands set style rectangle
?commands unset style rectangle
?commands show style rectangle
?set style rectangle
?unset style rectangle
?show style rectangle

���‫`��ޥ‬set object` ����d��줿 Ĺ��dˤ�����Υ������������Ǥ���



���������������������������
Υ С ���� Υ� �֥�
�ʤ��� ������Ȥϥ��‫��ޥ‬
`set style rectangle` �ˤ��ǥե���Ȥ��Ѥ��‫���ޤ‬

��:
set style rectangle {front|back} {lw|linewidth <lw>}
{fillcolor <colorspec>} {fs <fillstyle>}

�ʲ�����: `colorspec`, `fillstyle`��`fillcolor` �� `fc` �Ⱦ�ά�Ǥ��‫���ޤ‬

��:
set style rectangle back fc rgb "white" fs solid 1.0 border lt -1
set style rectangle fc linsestyle 3 fs pattern 2 noborder
�ǥե���Ȥ�����ϡ��‫ط‬ʿ��Ǥ��ɤ��٤��
ǡ � � � � � � Ϲ � ˤ ʤ ä Ƥ � � ‫���ޤ‬

C 4 �ʱ ߥ���������� (set style ellipse)


4 set style ellipse
?commands set style ellipse
?commands show style ellipse
?set style ellipse
?unset style ellipse
?show style ellipse

��:
set style ellipse {units xx|xy|yy}
{size {graph|screen} <a>, {{graph|screen} <b>}}
{angle <angle>}
{clip|noclip}

���Υ��‫�ޥ‬ɤϡ��ʱ ߤ�ľ�¤�Ʊ��ñ��Ƿ����� 뤫 � ɤ�����)�椷�‫���ޤ‬


�ǥե���Ȥ� `xy` �ǡ�������ʱ ߤμ 缴 (�� 1 ��) ��ľ�¤� x (�‫���ޤ‬x2)
Ƿ(�� 2 �
����Ʊ��ñ�� �)������ � ��ľ�¤� y (�‫���ޤ‬y2) ����ñ�� �

‫����������ޤ‬Υ �⡼�ɤ Ǥϡ ��ʱ ߤ�ξ������ϡ��r 輴�Υ����‫�����ڥ‬ ˰�
¸���‫���ޤ‬`xx` �� `yy` ������� � С����٤Ƥ��ʱ ߤ�ξ����Ʊ��ñ��� Ƿ
������‫������ޤ‬ϡ��
� 褵����ʱ
r ߤ�ξ������ϡ���ž���Ƥ�5�����‫�ޤޤ‬
��������ʿ������ľ���ΰ���ν� ‫��ܤ‬ѹ � � ˤ � � 5 � � � � � ʤ � � ʤ 뤬뤬뤳�Ȥ��
� ���‫���ޤ‬

����ϡ�object �Ȥ�����d��줿�ʱ ‫`��ߡ����ޥ‬plot` �ˤ�ä��r 褵��


���ʱ ߤ��
ξ�� ˱d t� Ϳ �Ū ������Ǥ�
ƶ � ��� r �
� ��� � `units` ����� ϡͤ
�� 衢
���֥������������������dǤ�� ‫���ޤ‬

�ʱ ߤΥǥե���ȤΥ������⡢������� `size` ������Ǥ�� ‫����ޤ‬ ǥե���


ϴ ‫��ؿ‬plot ���Ŭ�Ѥ���‫���ޤ‬
�ȤΥ������ϡ�2 ��Τ ߤΥǡ � � � � � � ‫��ޤ‬
2 �Ĥ��� ϡ
�ʱ
� � �ͤ
ߤ� (2 �Ĥμ 缴��2 �Ĥ���˸������礦) �缴 ľ�¤���
ľ�¤Ȥ��ƻ��Ѥ���‫���ޤ‬

�ǥե���Ȥϡ�"set style ellipse size graph 0.05,0.03" �Ǥ���

�Ǹ�ˤʤ�‫������ޤ‬ǥե���Ȥ

� θ����� � �
�� �
��`angle` �����Ǥ���
���������ϡ��ʱ ߤμ 缴�ȥ ���դ � x �������Ȥ ʤ��Ѥǡ �ñ �� �� ٤��� �
��ɬ�‫���פ�����ޤ‬

r 趭���ǥ���å��ԥ ��
`clip` ���ʱ ߤ�� `noclip` �Ϥ�����
‫�����ޤ‬ ���
���‫����ޤ‬ǥե���Ȥ� `clip` �Ǥ���

�ʱ ߤ� object ����d˴‫��ؤ‬Ƥϰʲ��⻲��: `set object ellipse`��2 ����


���r 襹������˴‫��ؤ‬ Ƥϰʲ�����: `ellipses`��
C 4 ʸ����‫ܥ‬å�������������� (set style textbox)
4 set style textbox
?commands set style textbox
?commands show style textbox
?set style textbox
?unset style textbox
?show style textbox
?textbox
?boxed

��: set style textbox {opaque|transparent}


{{no}border {<bordercolor>}}{linewidth <lw>}
{fillcolor <color>}
{margins <xmargin>,<ymargin>}

���Υ��‫�ޥ‬ɤϡ�°- `boxed` �ˤ�� label ��ɽ����)�椷�‫���ޤ‬ Ȣ�դ�ʸ


����
� �‫��ݡ‬Ȥ��ʤ����Ϸ|��Ϥ��� 뤷 �
Υ ��������
� ‫���ޤ‬
���: ���ߤμ���ϻ �
Ū �ǡ����
����
ѹ� �����
���
� � 뤫�⤷��‫���ޤ‬
�����Ĥ��ν��Ϸ|� (svg, latex) �Ǥμ�����Դ�t�Ǥ���
�‫���ޤ‬�ۤȤ�ɤν��Ϸ|��ϡ����
� ž ���ʸ�����Ȣ�դ����
5 ����Ǥ�‫�ޤ‬
���
C 3 �����r� (surface)
3 surface
?commands set surface
?commands unset surface
?commands show surface
?set surface
?unset surface
?show surface
?surface
?nosurface
���‫`��ޥ‬set surface` �� 3 �����r� (`splot`) �ˤΤ ‫���ߴط����ޤ‬

��:
set surface {implicit|explicit}
unset surface
show surface

`unset surface` �ˤ�� `splot` �ϡ��‫��ؿ‬ ǡ� � � � ե � � � � � � � $ � � Ф � � � �


����$�����d��ʤ��ʤ�‫������ޤ‬ϼ�ˡ������������
� ��d�����
�������Τ ߤ�� d����� �p
� Ѥ Ǥ�
������
ξ ��Ǥ � `set contour` ������
���‫�������ޤ‬ ����������d���‫���ޤ‬ ¾�Τ�Τ���
�Τ ‫ޤޤ‬ǡ � � � � � �
ǡ � � � � ե � � � � � ζ � ��Τ ߤ�դˤ���ˤϡ�`splot` ���‫�ޥ‬ɾ�
�Ĥδ ‫��ؿ‬
�ǥ���� �� 
� `nosurface` ��� ��Ƥ��$�����������ʻҤ������ɽ��
���������� `unset surface; set contour base` �Ȥ����Ȥ�����Ǥ��礦��
�ʲ��⻲��: `set contour`��

3 �����ǡ������Ȥ����� (�ʻ��) ��ǧ�������ȡ�gnuplot �ϥǥե���Ȥ�


�ϳʻҶ�����‫׵‬ᤷ� Ƥ����ΤȤ��ơ����ۤ��`with lines` ���r 襹������
���Ѥ��‫����ޤ‬ ʲ�����: `grid_data`�����‫`��ޥ‬set surface explicit` ��
���ε�ǽ����)������ϥե�����Υǡ�����ʬΥ���줿�֥� �å��ǵ��Ҥ����
��Ω��Τ ߤ�� r 褷�‫�����ޤ‬ξ ���Ǥ⡢splot ���<�Ū�� `with surface`
�Ȥ���гʻҶ��� ��r 褵��‫���ޤ‬
C 3 �ơ��֥��ǡ � � � � � � � (table)
3 table
?commands set table
?set table
?table
`table` �⡼�ɤ� ��ʾ�

����
p p�`plot` �� `splot` ���‫�ޥ‬ɤϡ����ߤν��Ϸ�
�����Ф���º ‫��ݤ‬ r��8.���������
X Y {Z} <flag>
���
���ʣ���
� � ��ʤ�ɽ�
�| ƥΥ ����Ƚ�� � �ϤԤ
�� ʤ��
��� � ‫����ޤ‬ե 饰 ʸ�� <frag>
�ϡ������$�ͭ �� � �ϰ���ˤ������ "i"���ϰϳ��ξ��� "o"��� �����
(undefined) �ξ��� "u" �Ǥ����ǡ����ν�� ��ϡ�� ν ν
ι� ߤν� (�ʲ���
��: `set format`) �ˤ�äƷ�‫ޤ‬ꡢ��ϰ�Ĥζ���Ƕ��‫������ڤ��ޤ‬ϡ� �
������8.�������������ѤΤ������¸�������Ȥ�������Ǥ���������ˡ

�ϡ���֤�
��줿�ǡ � � � � � � � ¸ � � � � Τ ˤ � Ȥ � � � � Ȥ � � Ǥ � � ‫�( �ޤ‬ʲ�����:
`set samples`, `set dgrid3d`)��

��:
set table {"outfile" | $datablock} {append}
plot <whatever>
unset table

���θ��ɽ�|��ν��Ϥϡ��ե����� "outfile" ������Ƥ���Ф���˽�


�Ф��‫���������ޤ‬ Ǥʤ
� ����ɸ����Ϥ����� � `set output` ������� ��
ߤ�
�Τ˽��Ϥ��‫���ޤ‬`outfile` �����¸�ߤ�����ϡ�a p`p e nd` ����� �ɤ�
����� ���ý
ɲ ��ϡ������ʤ���Ф��ν��Ϥ��� ��
�‫���ޤ‬
� ��� ¾�ˡ�ɽ�|�
���Ϥ���դ��ǡ���
p �֥�
�å��˥�%��줿쥹뤿�Ȥ�� 뤬뤬뤳�Ȥ�Ǥ�� ‫����ޤ‬ǡ� � � � �
�� '$' �ǻϤ ‫����ޤ�ޤ‬
��å�� ʲ��⻲��: `inline data`�����ߤν��Ϸ|�
ˤϡ�`unset table` ���<�Ū�˹ʤ�ɬ�
��ɸ��Ū���r��᤹ �� Ԥ ‫���פ�����ޤ‬

�ʲ��⻲��: `plot with table`��

4 plot with table


?plot with table
?with table
ɽ�ǡ������Ѵ��������ϥǡ�������Ф ���襹
r ������˰�¸������� (ʿ��
� �뤿 �
��������α�Ĺ��2 ���ϰ�Υe��å���) ��� ᡢ����� � ɽ�ǡ���
���Ѵ��Ǥ�����ο����䤹�ˤϡ�����r襹������������ "table"
������ɤ�ȤäƤ��$��������ξ���ϰ���/�ϰϳ�/���d�������
`i`, `o`, `u` ���֤�
����Ǹ���ɲ���ϡ����ϤˤϤĤ��‫����ޤ‬
� �� �����
�ϡ��ǽ�� `set table <where>` �ǻ���� �
ɬ�‫���פ�����ޤ‬
��:

set table $DATABLOCK1


plot <file> using 1:2:3:4:($5+$6):(func($7)):8:9:10 with table

���ξ���º ‫��ݤ‬ r 襹������� 뤬 ʤ�����ʤ


֤ Τǡ�����ˤ�����μ����б���
�ʤ����Ȥˤʤ ꡢ��
ä� xrange, yrange ����������뤬뤬뤵��‫���ޤ‬

ʸ������Ф��� `using` ��ɾ�d������ϡ�ʸ�����ɽ�ǡ���������‫���ޤ‬


�ν
ν�ǽ��
� ǽ� ǡ�%g
�� �Ͼ� � � νǽ ν Ф�ǽ� � ‫�����ޤ‬
¾ � ν�Ȥ �� ν
�ν�� � � � � � � � ϡ
� � � Τ 褦��˽�� ��� 줿 ʸ�����8.����褦�� sprintf � � gprintf � � � � �
���Ƥ � �$ � � � � �

plot <file> using ("File 1"):1:2:3 with table


plot <file> using (sprintf("%4.2f",$1)) : (sprintf("%4.2f",$3)) with table
C 3 � � � Ϸ | � (terminal)
3 terminal
?commands set terminal
?commands show terminal
?set terminal
?set term
?show terminal
?show term
?set terminal push
?set term push
?terminal push
?term push
?push
?set terminal pop
?set term pop
?terminal pop
?term pop
?pop
�`gnuplot` �Ͽ � ¿ � � � Υ � � � ե � � å � � | � � � ‫��ݡ‬
Ȥ��Ƥ�� ‫��ޤ������ޥ‬
`set terminal` � � Ȥ ä � `gnuplot` � ν � � Ϥ � � о ‫ݤ‬Ȥʤ�|��μ����� j ��
� � � $ � � � � � � � � � � � � ե � � � � ��‫��ޤ‬Ͻ����� � ֤ ˥�%��줿쥹뤿�Ȥ���ˤ�

`set output` � � Ȥ ä Ƥ � � $ � � � � �
� �:
set terminal {<terminal-type> | push | pop}
show terminal

<terminal-type> � � � � ά � � � � � � `gnuplot` � � � � � Ѳ � ǽ �ʽ � � Ϸ | � � ΰ � � � �
ɽ�����‫<���ޤ‬terminal-type> � λ � � �ˤ � û ��d � � Ȥ � � ‫���ޤ‬

`set terminal` � � `set output` � � ξ � � � Ȥ � � � �`set terminal` � � ǽ �


�ˤ� � � � � � t � Ǥ � � � � � � � ϡ � O S �ˤ� ä Ƥϡ � � � � 줬 ɬ�‫פ‬Ȥ���ե 饰��
� å Ȥ � � � � � Ϸ | � � � � � � 뤫�� Ǥ���

� � � � � Ĥ � � ν � � Ϸ | � � Ϥ � � � � � � � � � ɲ å � � ‫������ץ‬d ‫���ޤ‬
� � `<term>` � � � Ф � � � ľ p � � `set term <term> <options>` � ǻ � � Ѥ � � 줿��
� ‫����ץ‬ϵ������ 줿뼰륦���θ � � `set term <term>` � � � � � � � ꥻ�åȤ�� 뤳
�ȤϤ � � � ‫��ޤ‬ � �������
���� 㤨�а � � � � � �� p
ѤǤ��
Ĥ � � � ���
�ΰ ۤʤ���Ϸ|���

� � � ‫ �����ؤ‬p � Υ � � ‫����ץ‬ �
��
� � �֤ �������
��� ������ ɬ�‫פ‬Ϥ���
‫���ޤ‬

� � � ‫` ��ޥ‬set term push` �ϡ � � � � ߤν � �Ϸ | � � Ȥ � � � � � � � � `set term pop`


�ˤ� ä � � � � ‫ޤ‬ǵ������Ƥ��‫` ��������ޤ‬save term`, `load term` � �
� ۤ�Ʊ��Ǥ������ե ���� 뤬륽뤿���ƥ�‫ؤ‬Υ� � � � � � � � Ϲ Ԥ 鷺����ä� � 㤨�Ф� � �
�ϡ � � � � � ˥ ‫�ץ‬åȥۡ ���˰�¸ � � � ʤ � � d ǽ � � Ϸ | � � � � � � � � Ū �˻Ȥ �
� ‫���ޤ‬gnuplot � ε �ư � 塢�ǥե���ȡ�� ‫˽ ���ޤ‬ `startup` �ե � � � � � � � �
� � � � � Ϸ | � � � � � ư Ū � ˵ � � � (push) � � � � ‫�����ޤ‬äơ ��< �Ū �˽ ��Ϸ | ���
� � � � � � � 뤳�Ȥʤ���Ǥ�դΥ‫�ץ‬åȥۡ����ǥǥե���Ȥν��Ϸ|���
`set term pop` �ˤ� ä � � � � � ��Ȥ���ư�����Ԥ�������� ‫ץ‬Ȥ�
� �
� ��- � 鷺���
� � ˽� ����
Ȥ ‫���ޤ‬

� ܺ٤ϡ��ʲ����� `complete
: ��
list of terminals`

C 3 � � � Ϸ | � � ‫ؤ‬Υ� � ‫( ����ץ‬termoption)
3 termoption
?commands set termoption
?set termoption
?termoption
� � � ‫` ��ޥ‬set termoption` �ϡ � � � � �� � Ѥ � � Ƥ � � � � � Ϸ |
� � `set terminal` � � � ‫�ޥ‬ɤ�ȯ � Ԥ ʤ � � � � ѹ � � � �뤳�Ȥ��ǽ�ˤ�� ‫�������ޤ‬
� � � ‫�ޥ‬ɰ�Ĥ��Ф��ư�ĤΥ��‫����ץ‬Τ ߤ��ѹ��Ǥ��‫��������ޤ‬Ƥ� � � � � ˡ
� � � ѹ � � Ǥ � � 뤬쥹륪�‫����ץ‬Ϥ���¿���Ϥ��‫�ޤ‬ ��� ���
� � ���Ѳ�ǽ�ʥ��
‫����ץ‬
�ϰʲ�� Τ � ΤΤ ߤǤ���

set termoption {no}enhanced


set termoption font "<fontname>{,<fontsize>}"
set termoption fontscale <scale>
set termoption {linewidth <lw>}{lw <lw>}

C 3 �˺ �ɸ � � � ) � � (theta)
3 theta
?commands set theta
?set theta
?unset theta
?theta
�˺ �ɸ � � � � դ ϡ � � ǥ ե � � � Ȥ Ǥϳ Ѥ � 0 � � � � ( � � = 0) � � � � � � դ α � ¦ � �
� ‫��ؤ‬褦�����Ť� � � 줿뼰륦�Ѥ���ä�ȿ���‫˹��ײ‬Ԥ�줿뼰륦�� = 90 � � � � � � �
� � � 褦�ˤʤäƤ�� ‫`���ޤ‬set theta` �ˤ� ꡢ�˺ � ɸ � γ Ѥ κ � ɸ � ˴ 0 ���‫ؤ‬
� θ � � � � � � � � � � � � � ѹ � � Ǥ � � ‫���ޤ‬
set theta {right|top|left|bottom}
set theta {clockwise|cw|counterclockwise|ccw}
`unset theta` �ϡ � � ǥ �ե � � Ȥ ξ � � � "set theta right ccw" � � � � ‫���ޤ‬
C 3 t � � � � 9 � � ) � � (tics)
3 tics
?commands set tics
?commands unset tics
?commands show tics
?set tics
?unset tics
?show tics
?tics
� � � ‫` ��ޥ‬set tics` �ϡ � t � Ƥ μ � � � � � 9 � � ι � ߤȥ�٤���� ٥�)� 椷��
��� �

� � 9 � � � `unset tics` � Ǿä � � � ` set tics` � � � � 9 �꤬�� Ĥ� � ‫�( �ޤ‬ǥե� � �


� � ) � � � ġ � � μ � � � � � 9 � � ϡ � � � � � Ȥ � ��Υ � � ‫` ��ޥ‬set xtics`, `set ztics`
� ʤ ɤ � Ȥ ä � ) � � Ǥ � � ‫���ޤ‬

� �:
set tics {axis | border} {{no}mirror}
{in | out} {front | back}
{{no}rotate {by <ang>}} {offset <offset> | nooffset}
{left | right | center | autojustify}
{format "formatstring"} {font "name{,<size>}"} {{no}enhanced}
{ textcolor <colorspec> }
set tics scale {default | <major> {,<minor>}}
unset tics
show tics

� � � ‫����ץ‬ϡ����
� ġ ��ˤ �
μ (x, y, z, x2, y2, cb) ѤǤŬ�‫�����ޤ‬
� :
set xtics rotate by -90
unset cbtics

� � � ι � ߤ��°-�ϡ � � � � ٤ƥ���դζ���(�ʲ�����:`set border`) ��Ʊ��


� � Τ � Ȥ ä � � d � � � ‫���ޤ‬

tics � � `back` � ‫` ���ޤ‬front` � � � � � � ϡ � 2 D � r � (splot � � � Բ � ) �ˤΤ �


� � � ٤Ƥμ � � � 1 � � Ŭ � Ѥ � � � ‫�������ޤ‬ϡ��� ����
����Ǥ��
ʤ
9 ��� r Ť ä
� � � � 9 � � � � r � � � � Ǥ � p ��˽ Ф � � � � � � � � �֤������ )� 椷�‫���ޤ‬

`axis` � � `border` � � `gnuplot` � � � � 9 � � ( � � 9 � � ι � � � � θȤȤ� � � Ф �)


� � � �줾��� 켴 ˤ Ĥ���Τ��������ˤĤ���� Τ �‫�ޤ‬
����‫������������ؼ‬ˤ�
� Ƥ ᤤ � �� �`axis` � � � � Ѥ � � � ȶ � � � � � ɽ � � � � � � Ƥ � � � � ( �ʲ�� � � � :
`set border`) � � 9 � � θ � � Ф �ʸ ��
� ��� �
γ � ˽ Ф � � Ƥ � � ‫��ޤ‬Ǥ��礦������
� � 缫 ư Ū�ʥ 줿뤿줬�����ȥ�� 르 ����
ꥺ ˤ��;���������� 褯�
� ʤ���ΤȤ�
� ä Ƥ � � ‫���ޤ��ޤ‬

� ֤ ˡ����Ф��Τʤ���9���
`mirror` � � `gnuplot` � � ȿ � � ¦ � ζ � � � � � Ʊ � � � � �
� � � Ϥ � � � 褦�‫`���ؼ����ޤ‬nomirror` �ϡ � � � � ʤ � � � � � � � Ƥ � � � ��� Τ � � �
� � Ԥ ʤ � � ‫���ޤ‬

`in` � � `out` � � � � 9 � � ι � ߤ���¦ � � � d � � � � � ¦ � � � d � � � � � � ‫��ڤ‬Ѥ��‫���ޤ‬

`set tics scale` �ϡ � � � 9 � � ι � ߤ��礭����)� 椷�‫����ޤ‬ǽ � � <major>


�� �� ϡ
Ū�ˤ� � � ư �ͤ� 8 . � � � 줿뼰륦�‫��ޤ‬桼�������Ǥ�������9�� (��٥� 0)
� � � � �� � 2 � � � ‫� �ܤ‬ <minor> ��� ϡ
Ū�ˤ� � � ư �ͤ� 8 . � � � 줿뼰륦�‫��ޤ‬桼�����
� � Ǥ � � 뺹쵭뾮��9 � � ( � � ٥� 1) � � � � ��‫<���ޤ‬major> � Υ ǥե� � � Ȥ � 1.0
��ǡ � <minor> � Υ ǥե� � � Ȥ � <major>/2 � Ǥ � �� � � � � � � � �� �
ä ɲ �� � С � � � �
� � 2, 3, ... � � � � 9 � � � � 礭���ˤʤ�‫`���ޤ‬set tics scale default` � ǥ �
�ե � � � Ȥ � � � 9 � � � � 礭������‫���ޤ‬

`rotate` �ϡ �ʸ� � � � � 90 � ‫�ٲ‬ž� � � � � ƽ � � Ϥ � � � � 褦�Ȥ��


‫�������ޤ‬ϡ�ʸ
�� � �β �� ž � � ‫��ݡ‬Ȥ��Ƥ�����ϥɥ饤�� (terminal) � Ǥ ϼ ¹Ԥ � � � ‫���ޤ‬
`norotate` � Ϥ � � �� � � 뤷 �
���� ‫`���ޤ‬rotate by <ang>` �ϳ� � � <ang> � �
� � ž � � Ԥ ʤ � � ‫���������ޤ‬Ϥ����Ĥ��ν��Ϸ|� (terminal) �ǥ�� ‫��ݡ‬Ȥ���
� Ƥ � � ‫���ޤ‬

x � � y � � � � � � � � 9 � � Υ ǥ ե � � � Ȥ � `border mirror norotate` �ǡ � x2, y2


� � � � `border nomirror norotate` � � � ǥ ե � � � Ȥ Ǥ � � � z � � � Υ ǥե � � � Ȥ �
`nomirror` � Ǥ � � �

<offset> � � x,y � � � ‫� ���ޤ‬ x,y,z � η| � � Ǥ � � � � � � � � � � ɸ


Ϥ��˺ � j � ơ�
� � � � p � � `first`, `second`, `graph`, `screen`, `character` � Τ � � � � 줫
� � Ĥ � � 뤳�Ȥ�Ǥ�� ‫<���ޤ‬offset> �ϡ � � � 9 � � θ � � Ф �ʸ � � � � Υ ǥ �ե � � �
� ΰ � �֤���� Τ� � 餷���� ֤ ǡ� � � � Υ ǥ ե � � � Ȥ � ñ ��Ϥ � `character` � Ǥ � � �
� ܺ٤ϡ��ʲ����� `coordinates`
: �n� o o f f s e t `�` � � ��� offset
ˤ � ‫���ޤ‬
OFF

� ǥե� � � Ȥ Ǥ ϸ � � Ф � � � ٥�ϡ��������̤
�� � 8褦�ˡ����Ȳ�ž�Ѥ˰�¸
��� � � � � ˼ ֤ �ưŪ��·����� ‫��������ޤ‬ˤ���ʤ���С��<�Ū�� `left`,
`right`, `center` � Υ � � � �  � ɤˤ� � � � � · � � � � � �
Ǥ� � � � ѹ
‫���ޤ‬
`autojustify` � ǥǥե� � � Ȥ ε � ư � � � � ‫���ޤ‬

� � � ‫����ץ‬ʤ��� `set tics` �ϡ��� 1 �����Ф���1� (mirror) ����¦��


� � � � 9 � � ι � ߤ�ǥե���Ȥε�ư����‫ � � ¾���������ޤ‬t � Ƥ Υ � � ‫���ץ‬
� � ϡ � ľp � � � �� �ͤ
‫���ݻ�ޤ‬

� � � � 9 � � ( � � ٥�ΤĤ � ) � � ¾ � � ) � �˴ ‫��ؤ‬Ƥϡ� � ʲ � � � � � : `set xtics` � �


� � � � 9 � � � ) � �˴ ‫��ؤ‬Ƥϡ� � ʲ � � � � � : `set mxtics` � � � � � � � Υ � � ‫�ޥ‬ɤϡ �
�Ƽ � � � � � Ω � � ) � � � � ��
�� ‫���ޤ‬
3 ticslevel
?commands set ticslevel
?commands show ticslevel
?set ticslevel
?show ticslevel
?ticslevel
� � � ߤϿ 侩����Ƥ� � ‫��ޤ‬ � � ʲ�� � � � : `set xyplane` � �
3 ticscale
?commands set ticscale
?commands show ticscale
?set ticscale
?show ticscale
?ticscale
� � � ‫` ��ޥ‬set ticscale` �ϸ � � ߤϿ 侩����Ƥ� � ‫��������ޤ‬
`set tics scale` � � Ȥ ä Ƥ � � $ � � � � �
C 3 � � � � � ॹ����� (timestamp)
3 timestamp
?commands set timestamp
?commands unset timestamp
?commands show timestamp
?set timestamp
?unset timestamp
?show timestamp
?timestamp
?notimestamp
� � � ‫` ��ޥ‬set timestamp` �ϸ � � ߤλ դ� � � � � � � դ �� դ
; � դ� �ɽ � � � � � ‫���ޤ‬

� �:
set timestamp {"<format>"} {top|bottom} {{no}rotate}
{offset <xoff>{,<yoff>}} {font "<fontspec>"}
{textcolor <colorspec>}
unset timestamp
show timestamp

� �ʸ� � � � (format) �ϡ �� � �ν��˻ � � դ


� �Ȼ� � � �ν �� ���
Ѥ� �
� � ‫����ޤ‬ǥե�
� � Ȥ � asctime() � � � � � Ѥ � � � "%a %b %d %H:%M:%S %Y" � Ǥ � ( � � � � ��� �
� � � � ʬ � � � á � 4 � � � > � � ) � � ` top` � � `bottom` � � Ȥ ä ơ � � � � դ � � � �֤��
� � � 塢�����Τ � � � � � � ; � � ˤ � � 뤫�� j� � Ǥ � � ‫� ( �ޤ‬ǥե� � � Ȥ Ϻ � � � ) � �
`rotate` �ϡ � � � � դ � � ľ � � � ˽��Ф � ‫< ������ޤ‬xoff> � � <yoff> � Ϥ � � �
(offset) � � ��� � � � � � � � ˤ � ä Ƥ � � Ŭ � ‫ڤ‬ʰ��ַ��� �Ԥ��‫<���ޤ‬font> � �
� � � դ �� ��
� �ե
� ���Ȥ
�� ���� � ��‫���ޤ‬

`timestamp` � � � � � � ˾ � ά� `time` � � Ȥ ä Ƥ � � � � ‫���ޤ‬

� �:
set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica"

� � � դ ν �ʸ � � � �˴ ‫�������ؤ���ܤ‬Ĥ ˤ ��Ƥϡ��ʲ�����: `set timefmt`��


C 3 � � � ǡ � � � � � Ͻ � (timefmt)
3 timefmt
?commands set timefmt
?commands show timefmt
?set timefmt
?show timefmt
?timefmt
� � � Υ � � ‫�ޥ‬ɤϡ � � ǡ � � � � � � � � η | � � ˤ ʤ ä Ƥ � � � � � ˡ � � � � λ � � � � � ǡ � � �
� � Ŭ � Ѥ � � � ‫�������ޤ‬ϥ�� ‫` ��ޥ‬set *data time` � � ����� ���� � Ƥ
���ʤ ���Ȱ ��
� ������‫���ޤ‬

� �:
set timefmt "<format string>"
show timefmt

ʸ�� � � � � (<format string>) � � `gnuplot` � � � � � ǡ � � � � � ǡ � � � � ե � � � � �


� � � � ɤ Τ 褦���ɤ फ�� ‫���ؼ����ޤ‬ � � ʽ pϰʲ�
ʽ� Ǥ
���
ʽ ������
���� ���
�:ʽ

@start table - � ‫� � ÷������ޤ‬ƥ � � � �ȷ | �


�� ��� �
%d � � � � , 1--31
%m � � � � , 1--12
%y � �ǯ , 0--99
%Y � �ǯ , 4-digit
%j 1 ǯ�β�����, 1--365
%H � � � � , 0--24
%M � �ʬ , 0--60
%s Unix epoch (1970-01-01, 00:00 UTC) � � � � � � ÿ �
%S � � � � ( � � � Ϥ Ǥ � 0--60 � � 0 � � � � Ϥ Ǥ ϼ ¿ � )
%b � �� ( � Ѹ � ) � � 3 ʸ�� � ά � �
%B � �� ( � Ѹ � )
#\begin{tabular}{|cl|} \hline
#\multicolumn{2}{|c|}{ � � � � � � ǡ � � � � ��
� � � � } \\
#\hline \hline
# � � & � � � � \\ \hline
#\verb@%d@ & � � � � , 1--31 \\
#\verb@%m@ & � � � � , 1--12 \\
#\verb@%y@ & � �ǯ , 0--99 \\
#\verb@%Y@ & � �ǯ , 4 � � \\
#\verb@%j@ & 1 ǯ�β�����, 1--365 \\
#\verb@%H@ & � � � � , 0--24 \\
#\verb@%M@ & � �ʬ , 0--60 \\
#\verb@%s@ & Unix epoch (1970-01-01, 00:00 UTC) � � � � � � ÿ � \ \
#\verb@%S@ & � � � � ( � � � Ϥ Ǥ � 0--60 � � 0 � � � � Ϥ Ǥ ϼ ¿ � )\\
#\verb@%b@ & � �� ( � Ѹ � ) � � 3 ʸ�� � ά � � \\
#\verb@%B@ & � �� ( � Ѹ � ) \\
%c l .
%� �@ � � � �
%_
%%d@ � � � � , 1--31
%%m@ � � � � , 1--12
%%y@ � �ǯ , 0--99
%%Y@ � �ǯ , 4 � �
%%j@1 ǯ�β�����, 1--365
%%H@ � � � � , 0--24
%%M@ � �ʬ , 0--60
%%s@Unix epoch (1970-01-01, 00:00 UTC) � � � � � � ÿ �
%%S@ � � � � ( � � � Ϥ Ǥ � 0--60 � � 0 � � � � Ϥ Ǥ ϼ ¿ � )
%%b@ � �� ( � Ѹ � ) � � 3 ʸ�� � ά � �
%%B@ � �� ( � Ѹ � )
@end table

^<table align="center" border="1" rules="groups" frame="hsides" cellpadding="3">


^<colgroup>
^ <col align="center">
^ <col align="left">
^</colgroup>
^<thead>
^<tr> <th> � � </th> <th> � � � � < /th></tr>
^</thead>
^<tbody>
^<tr> <td><tt>%d</tt></td> <td> � � � � , 1&ndash;31</td></tr>
^<tr> <td><tt>%m</tt></td> <td> � � � � , 1&ndash;12</td></tr>
^<tr> <td><tt>%y</tt></td> <td> � �ǯ , 0&ndash;99</td></tr>
^<tr> <td><tt>%Y</tt></td> <td> � �ǯ , 4-digit</td></tr>
^<tr> <td><tt>%j</tt></td> <td>1 ǯ�β�����, 1&ndash;365</td></tr>
^<tr> <td><tt>%H</tt></td> <td> � � � � , 0&ndash;24</td></tr>
^<tr> <td><tt>%M</tt></td> <td> � �ʬ , 0&ndash;60</td></tr>
^<tr> <td><tt>%s</tt></td> <td>Unix epoch (1970-01-01 00:00 UTC)
� � � � � � ÿ � < /td></tr>
^<tr> <td><tt>%S</tt></td> <td> � � � � ( � � � Ϥ Ǥ � 0&ndash;60
� � 0 � � � � Ϥ Ǥ ϼ ¿ � )</td></tr>
^<tr> <td><tt>%b</tt></td> <td> � �� ( � Ѹ � ) � � 3 ʸ�� � ά � � < /td></tr>
^<tr> <td><tt>%B</tt></td> <td> � �� ( � Ѹ � ) </td></tr>
^</tbody>
^</table>

Ǥ�դ�ʸ���ʸ������ǻ��ѤǤ��‫ � � ˽� §�������ޤ‬ä Ƥ � � � ɬ � ‫���פ�����ޤ‬


\t ( � � � � ) � �ǧ � � � � � � ‫����ޤ‬Хå � � � � � å � � � + 8 �ʿ� � � (\nnn) � Ϥ � � 줬
� � � �ʸ � � � � Ѵ � � � � � ‫��������ޤ‬Ǥ����ʬΥʸ��ʤ����%d, %m, %y,
%H, %M, %S � Ϥ � � 줾�� 2 � � ο � � � � ɤ ߹�� ߤ‫���ޤ‬%S � Ǥ � � ɤ ߹��ߤǾ� � �
�� $ � � � � Υ ե � � � � � ɤˤ Ĥ � � Ƥ � � � � � ϡ � � � � ξ � � � � $ Ĥ � � ο ��� �û �� � �
� $ Ȳ ᤷ �� ‫���ޤ‬%Y � � 4 � 塢%j � � 3 � � ο � � � � ɤ ߹�� ߤ‫���ޤ‬%b � � 3 ʸ
� � � %B � �ɬ � ‫�פ‬ʬ�$���ʸ���� ‫׵‬ᤷ�‫���ޤ‬

� � � � ( � � � ‫ � )���ڡ‬ΰ � � � � Ϥ � � 㤤�‫�����ޤ‬ʸ�� � � � � � 1 � Ĥζ � � � ϡ � � �
� � � � � � � � � 0 � ġ � � � � �� � 1 � İʾ� ζ � � �ʸ � � � � � ɽ � � � ‫������ޤ‬ʤ�a�
"%H %M" � � "1220" � � "12 20" � � "12 20" � � Ʊ � � � 褦���ɤ ߤ‫���ޤ‬
�ǡ � � � � � � � � � � � ʸ � � ν � � ‫��ޤ‬줾��ϡ�
u s`i n g n:n` �
���
����� ΰ İ Ĥ
�ȥ � � � � � Ȥ � � � ‫�����ޤ‬ä � `11:11 25/12/76 21.0` � � 3 � � Υ ǡ � � � � � ǧ
� � � � � � ‫���������ޤ‬ � �뤿 � � ˡ����ǡ������‫` ����ޤޤ‬gnuplot` �ϡ �
� � � ʤ � � � `using` � � �꤬����� ʤ�ΤǤ���Ȳ����‫���ޤ‬

� � � եǡ � � � � � � � � � � ��p � � ‫�ޤ‬Ǥ������ � ʸ�� � � Ǥ � � � � � ӽ � �


� � � � Ф � � � � ‫��ޤ‬ � ��
� "%a", "%A", "%b", "%B" � Ǥ � � � � � ɽ � � � � �
뤳�ȤϤ�
� � � ‫����ޤ‬ `gnuplot` �Ͽ �� �� � 5 � � � � � � � � �� � � � � � ‫�������ޤ‬顢�‫���ڤ‬
�ǡ � � � � ν � � Ϥ � ¾ � Υ � � ‫����ץ‬ξܺ‫˴ؤ‬٤��Ƥϡ� � ʲ � � � � � : `set format` � �

2 � � � > � � � %y � � � ɤ � � � 69-99 � � 2000 ǯ�


� � � 00- 68 � � 2000 ǯ�ʸ�
� ȸ � � ʤ � � ‫������ޤ‬: � � � � ϡ � UNIX98 � λ �� ��ͤ ˹
�碌����Τ Ǥ��������δ�
� � Ϥ � � d � � dǰ 㤤������Τǡ� 2 � � � > � � � � �ܼ��Ū�ˤ� � � � ‫��ޤ‬Ǥ���
� �

¾ � ξ � � �ˤ Ĥ � � Ƥ ϡ � �ʲ � � ⻲��: `set xdata`, `time/date`� �

� �:
set timefmt "%d/%m/%Y\t%H:%M"
�ϡ � `gnuplot` � � � � � դ Ȼ � �֤������ ʬ �Υ���Ƥ��
֤� 뤳�Ȥ Ȥ�� ‫ � � � ( �ޤ‬$ � � �
� � � ʤ � � Υ ǡ � � � � � 衼�����Ƥ� � $ � � � � � � � � � ֤ $ä � � � Τ � � ɤ � � � � � ʣ � � Υ � � �
� � � � � � � Ѵ � � � � � Ƥ � � ‫� � ? ���ޤ‬ʸ � � � � ϥ ե � � � � � � � ˼ º ‫ݤ‬ˤ���ʪ�Ȱ�
� ‫��פ‬Ƥ� �ʤ � � � Ф ʤ � ‫� �)���ޤ‬
�ʲ� � ⻲��
^ <a href="http://www.gnuplot.info/demo/timedat.html">
� � � � � � ǡ � � � (time data) �ǥ⡣
^ </a>
C 3 � � � � ե � � � � ȥ � (title)
3 title
?commands set title
?commands show title
?set title
?show title
?title
� � � ‫` ��ޥ‬set title` �ϡ � � r � ξ � ο � � � ˽� � �� r 西���ȥ��8.��
� ‫`���ޤ‬set title` � � `set label` � � � ü � ʤ � Ρ � � Ȥ ߤʤ��‫���ޤ‬

� �:
set title {"<title-text>"} {offset <offset>} {font "<font>{,<size>}"}
{{textcolor | tc} {<colorspec> | default}} {{no}enhanced}
show title

<offset> � � x,y � � � ‫ ���ޤ‬x,y,z � η| � � ǻ � � �� ���� ϡ������ȥ��Ϳ��


� � 줿� � $� � � � ư � � � �‫��������ޤ‬ ˺ � ɸ � Ϥ � j � ơ � � � � � p�� � `first`,

`second`, `graph`, `screen`, `character` � Τ � � � � 줫��Ĥ� � 뤳�Ȥ�Ǥ�
� ٤ܺ����‫ޤ‬ϡ��ʲ����� `coordinates` : ��
ǥ� ե���ȤǤ�`character`
ɸ � �
� Ϥ � � Ȥ � � ‫����ޤ‬㤨�С � "`set title offset 0,-1`" � ϥ � � � � ȥ � � y � �
�ΰ � �� ֤ Τ� � ѹ � � � � � � 礶�äѤ˸$ä� 1 ʸ��ʬ�ι⤵�$������ȥ�� ����˲
� � � 1��� ‫ ޤ‬ʸ�� � � 礭���ϡ��ե ��� ���ȤȽ��Ϸ
��
˰� �� | ξ ‫���ޤ‬
¸

<font> � ϥ � � � � ȥ � 뤬���� ե���Ȥ����� � Τ�Ȥ ��


‫<���ޤ‬size> � �
ϡ � �ɤ ν � � Ϸ | � (terminal) � � Ȥ ä Ƥ � � 뤫� ˤ�ä��Ѥ��‫���ޤ‬
ñ ��

`textcolor <colorspec>` �ϡ �ʸ� � ο � � � � ѹ � � � � ‫<���ޤ‬colorspec> �ϡ � �


�  rgb � � � � � ‫��ޤ‬ϥѥ�åȤ‫ؤ‬γ � � � Τ � � � � 줫������Ǥ��‫����ޤ‬ʲ�� � � � :
`colorspec`, `palette`� �
`noenhanced` �ϡ � � � ĥ ʸ � � � � � � � (enhanced text) � ɤ �
��ͭ �
Ƥ ä��
ˤ �ʤ ⡼
� � � � Ǥ ⡢ � � � � � ȥ � � � ĥ ʸ � � � � � � � ʤ � � 褦�ˤ��‫���ޤ‬

`set title` � � ѥ � �� ��
ʤ��ǻȤ��ȥ����ȥ��õ� ‫���ޤ‬

� Хå � � � � � å � � � ʸ � � � � κ � � ѡ � � ‫�ڤ‬ʸ�� � � � Ϥ � ñ � � � � � � � � � � Ű � � � � � �
� 㤤�ˤ Ĥ��Ƥϡ��ʲ�����: `syntax`��
3 tmargin
?commands set tmargin
?set tmargin
?tmargin
� � � ‫� ��ޥ‬ `set tmargin` �Ͼ � � ; � � Υ � � � � �� å �Ȥ� � ٤ܺ����‫ޤ‬ϡ��ʲ�
� � � � : `set margin` � �
3 trange
?commands set trange
?commands show trange
?set trange
?show trange
?trange
� � � ‫` ��ޥ‬set trange` �ϡ � � ���ѿ�⡼�ɡ ���� ��϶˺ �ɸ �⡼�ɤ Ǥ� x,y
� �� ����������Τ�Ȥ ���� ���ѿ���ϰϤ������٤ܺ����‫ޤ‬ϡ��ʲ����� :
`set xrange`� �
3 ttics
?commands set ttics
?commands show ttics
?set ttics
?show ttics
?ttics
� � � ‫` ��ޥ‬set ttics` �ϡ � � ˺ ɸ � � � � � դμ� � � 9�� Ϥ � � ߤ�Ĥ� � ‫�����ޤ‬
� � ϡ � `set border polar` �Ȥ � � � � � � ϶ � � � � ˤ ʤ � ‫����������ޤ‬Ǥʤ����
�˺ �ɸ �ʻҤ Ρ � r � � � ˱ � ä ƺ Ǥⱦü � ι � ߤξ ˽� �
Ǥ Ǥ Ǥ� � � �
¦ �α ��
�ˤʤ � ‫����ޤ‬ʲ�� � � � : `set grid`, `set rtics` � � � Ѥ ΰ � � � ֤ ϡ�����٤�ñ
��ǥ � ٥��դ� � � � � ߤ������‫ޤ‬γѤ��ϰϤ����� (trange) �˴‫��ط‬ʤ���Ʊ��
� � t � Τ˹ � ٥�ߥ ��Ĥ� � 뤳�Ȥ��Ǥ�� ٥�ߥ����� ‫ޤ‬뤬 ɬ�‫��פ‬ϰϤ�����
�ϡ � � � � ˼ � � � � Τ 褦�ˤ��Ƥ��$�������‫����ߤ˴ؤ‬ɲ�°-����� ��뤳��
� � Ǥ � � ‫����ޤ‬ʲ�� � � � : `xtics` � �

set ttics -180, 30, 180


set ttics add ("Theta = 0" 0)
set ttics font ":Italic" rotate
3 urange
?commands set urange
?commands show urange
?set urange
?show urange
?urange
`set urange` � � `set vrange` �ϡ � `splot` � � � ���ѿ�⡼�ɤ� x,y,z ����
� � ������Τ�Ȥ ���� ���ѿ���ϰϤ������٤ܺ����‫ޤ‬ϡ��ʲ����� :
`set xrange`� �
3 variables
?commands show variables
?show variables all
?show variables
`show variables` � � � ‫�ޥ‬ɤϥ 桼������ѿ�������ѿ�θ��ߤ�ΰ �� � � �
ɽ�����‫���ޤ‬gnuplot �ϡ � GPVAL_, MOUSE_, FIT_, TERM_ � ǻϤ ‫ �ޤ‬p � � � �
� ѿ � � � � � � � � � d � � Ƥ � � ‫���ޤ‬

� �:
show variables # GPVAL_ � ǻ Ϥ ‫��ޤ‬ΰʳ����ѿ��ɽ��
show variables all # GPVAL_ � ǻ Ϥ ‫��ޤ‬Τ� ‫�ޤ‬t� Ƥ � � ѿ � �ɽ � �
show variables NAME # NAME � ǻ Ϥ ‫��ޤ‬ѿ�Τ ߤ�ɽ��

3 version
?show version
� � � ‫` ��ޥ‬show version` �ϸ � � ߵ�ư � � � Ƥ � � � gnuplot � ΥС � � � � � �ǽ �
� �5 � � � �  � � ȡ� Ԥ
FAQ � info-gnuplot � ����
�ꥹ�ȡ��Х���‫� � �ݡ‬
� � Υ ��뤬쥹륢�ɥ 줿쥹쥹��ɽ�����‫ � � � � � � �ޤ‬Ū�˥ ‫���ץ‬ब� ƤФ �Ƥ � � � Ȥ � � �
��� � �� � � ξ �ˤ � � � � �ɽ � � � � � ‫���ޤ‬

� �:
show version {long}

`long` � � � ‫ � � � �������ץ‬ȡ � � � � � ˥ � � ‫ڥ‬줿졼뤬�ƥ�� � ��


�� �
����
��ƥ �`gnuplot`
�� �� � ȡ� Υ � � � �� � ѥ � � 뤬쥹륪�‫���ץ‬�
� �‫��ץ‬ե�������֤� ꡢ � �� ������
(� Ƥ � ) � pѤ ʥ ��뤬쥹륢�ɥ 줿쥹쥹��ɽ�����‫���ޤ‬
C 3 � � � � � (view)
3 view
?commands set view
?commands show view
?set view
?set view map
?show view
?view
� � � ‫` ��ޥ‬set view` � � `splot` � λ � � � γ � � ٤���� �� �‫�������ޤ‬ϡ�����
� � � r � � 3 � � � � � � ɸ � � ɤ Τ 褦�� 2 � � � � � β � � � (screen) � � � � Ƥ � � 뤬뤬줿 ��)
� 椷�‫�������ޤ‬ϡ�� 褵 r �줿�ǡ� � � � β � ž � Ƚ�‫����� � � � )�ܤ‬
���Ƥ � � � ‫���ޤ‬
5� ͱ Ƥ � � � � � � ‫��ݡ‬Ȥ��Ƥ�� 3��� ‫ ͱ � � � � � ޤ‬ơ � � � � � � 2 � � � � � r � Ū � Ͽ ��
� 2 �‫ � � � � ؤ‬ľ � � ͱ Ƥ � � � � ‫��ݡ‬Ȥ���Ƥ�� ‫���ޤ‬

� �:
set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}}
set view map {scale <scale>}
set view {no}equal {xy|xyz}
set view azimuth <angle>
show view

� � � � � � <rot_x> � � <rot_z> �ϡ � � � ��� � � Ƥ � � � 뷿켫벾��Ū � � 3 � � � � � � ɸ � Ϥ �


� � ž � � (ñ ��� � � ) � � ) � � ǡ � � ǽ � � ( � � � ʤ � r � ž � � � Ԥ ʤ � � � p � � )
� � � � � � ο �ʿ � � � � x, � � � � � � ο � ľ � � � � y, � � ��� � Ȥ ˿ � ľ �ʼ� � � z �Ȥ ʤ �
� Ƥ � � ‫����ޤ‬ǽ � � x � � � μ � � � � <rot_x> � $ � � � ž � � � � ‫������ޤ‬ˡ�������
z � � � μ � � � � <rot_z> � $ � � � ž � � � � ‫���ޤ‬

� � � ‫` ��ޥ‬set view map` �ϡ � � � � � դ � � Ͽ ‫ޤ‬Τ 褦��ɽ������Τ�Ȥ��‫���ޤ‬


� � � � � � � � � (`contour`) � Υ � � � դ 䡢 pm3d � ⡼ � ɤˤ � � 2 � � � � � � � � ʬ � �
� ʤ ɤ � `with image` � � � � ष��ͭ � � ե � ��
Ԥ � � �Ǥ � ϥϡ � � �� �ǡ������$
Ѥ�ΥǤ� �
p
� 뤬륽줿�Ѥ� `zrange` �����ꡢ���� ������� `cbrange` � � � �
ӿ ����ϰ Ϥν� ��‫ܤ˴ؤ‬
� � � Ŭ � ‫˹ڤ‬Ԥ����Ȥ���դ��Ƥ��$�����

<rot_x> � � [0:180] � � � ϰ Ϥ � ) � ¤ � � � Ƥ � � ơ � � ǥ ե � � � Ȥ Ǥ � 60 � ٤Ǥ���


<rot_z> � � [0:360] � � � ϰ Ϥ � ) � ¤ � � � Ƥ � � ơ � � ǥ ե � � � Ȥ Ǥ � 30 � ٤Ǥ���
<scale> � � `splot` t � Το � � � Ψ � � ) � 椷��<scale_z> � � z � � � ο � ��Τ ߤ�
�Ԥ ʤ � � ‫�������ޤ‬Ψ � Υ ǥ ե � � � Ȥ Ϥ ɤ d � � 1.0 � Ǥ � � �

� �:
set view 60, 30, 1, 1
set view ,,0.5

�ǽ � � � � � 4 �Ĥ � t � Ƥ � ǥե � � � Ȥ �� ˤ
��
� � � � � 2��� ‫ � ޤ‬Ĥ � � � � Ͻ�� Ψ
�� Ƥ
� Τ 0.5 � ߤ � � � ѹ � � � � Ƥ � � ����
4 azimuth
?set view azimuth
?view azimuth
?azimuth
set view azimuth <angle-in-degrees>
azimuth � � � � � � ϡ � 3 � � � � � � � � � (splot) � � z � � � θ � � � � ˱ ƶ d � � �����ǥ�
� � � � Ȥ � azimuth = 0 � ǡ � � � � � դ � z ���ϥ� � � � � � � ο ʿ�� � � � Ф � �ƿ �
ľ � �ʿ ��˴��뤬졼롢 ���ʤ �a �z � � � � 2 �� � � � ͱƤ � � � � � � � � �
α �ľ� � �
� ʤ � 0���� � Ǥ ʤ � azimuth � ϻ 뷿뼰륦���$˴‫��ؤ‬Ʋ�ž ����z ���μ ͱ Ƥϱ �
ľ � � � Ǥ Ϥ ʤ � � ʤ � ����azimuth = 90 � Ǥ � z � � � ϱ � ľ � � � Ǥ Ϥ ʤ � � � � � ʿ
� � � ˤ ʤ � ����
4 equal_axes
?set view equal_axes
?set view equal xyz
?set view equal
?view equal_axes
?view equal xyz
?equal_axes
?equal xyz
� � � ‫` ��ޥ‬set view equal xy` � � x � � � � y � � � � ñ ��� Ĺ � � � � � � ) Ū � � � �
� � � ʤ � 褦�˽˽ ‫��ܤ‬碌������դ � � ‫ڡ��������ٹ‬礦�褦�ˤ��ν�‫�ܤ‬j� �
� � � ‫` ��ޤ������ޥ‬set view equal xyz` � ϡ � � � � � � z ��� � x �� y �� �˹ �
� � � 褦�ˤ��ߤ���������� z � � � � � ϰ Ϥ � � � � r 趭�����ϰϤ˹礦�‫ݾڤ‬Ϥ���
� ��� � ��ǥե���ȤǤϡ�3 �Ĥμ������ ΰ� �
٠��
��� ͭ ����褦��� ���

� � ����

�ʲ � � ⻲��: `set xyplane` � �


3 vrange
?commands set vrange
?commands show vrange
?set vrange
?show vrange
?vrange
� � � ‫` ��ޥ‬set urange` � � `set vrange` � ϡ � `splot` � � � ���ѿ� (�ѥ� �
� � ) � ⡼ � ɤ � x, y, z � � � �
� �������Τ�Ȥ ���� ���ѿ���ϰϤ���� �
� ٤ ܺ � ����ϡ��ʲ����� `set ��
: xrange`
3 x2data
?commands set x2data
?commands show x2data
?set x2data
?show x2data
?x2data
� � � ‫` ��ޥ‬set x2data` � � x2 ( � � ) � � � Υ ǡ � � � � � � � � � (� � ) �| � � � � � � �
٤ ����ϡ��ʲ����� `set
� � � ܺ� ��
: xdata`
3 x2dtics
?commands set x2dtics
?commands unset x2dtics
?commands show x2dtics
?set x2dtics
?unset x2dtics
?show x2dtics
?x2dtics
?nox2dtics
� � � ‫` ��ޥ‬set x2dtics` � � x2 ( � � ) � � � � � � 9 � � � � � � � � � ѹ � � � � ܺ�٤ ����ϡ�
�ʲ � � � � � : `set xdtics` � �
3 x2label
?commands set x2label
?commands show x2label
?set x2label
?show x2label
?x2label
� � � ‫` ��ޥ‬set x2label` � � x2 ( � � ) � � � θ � � Ф � � � � � � ��ܺ� ٤ ����ϡ��ʲ�
� � � � : `set xlabel` � �
3 x2mtics
?commands set x2mtics
?commands unset x2mtics
?commands show x2mtics
?set x2mtics
?unset x2mtics
?show x2mtics
?x2mtics
?nox2mtics
� � � ‫` ��ޥ‬set x2mtics` � ϡ � x2 ( � � ) � � � � ٤ ����ϡ�
1 ǯ� γ Ʒ � � � � � ��ܺ�
�ʲ � � � � � : `set xmtics` � �
3 x2range
?commands set x2range
?commands show x2range
?set x2range
?show x2range
?x2range
� � � ‫` ��ޥ‬set x2range` � � x2 ( � � ) � � � � ɽ � � � � � � � � ʿ � ϰ Ϥ � � � � ������
� � � ‫�ޥ‬ɥ��‫����ץ‬Τ � � ٤Ƥ � � � � $ ˤ Ĥ � � Ƥ ϡ � �ʲ � � � � � : `set xrange` � � � �
� � � ⻲��: `set link`� �
3 x2tics
?commands set x2tics
?commands unset x2tics
?commands show x2tics
?set x2tics
?unset x2tics
?show x2tics
?x2tics
?nox2tics
� � � ‫` ��ޥ‬set x2tics` � � x2 ( � � )
� � Ԥ ʤ � � ܺ�٤ ����ϡ��ʲ����� `set : xtics` ��
3 x2zeroaxis
?commands set x2zeroaxis
?commands unset x2zeroaxis
?commands show x2zeroaxis
?set x2zeroaxis
?unset x2zeroaxis
?show x2zeroaxis
?x2zeroaxis
?nox2zeroaxis
� � � ‫` ��ޥ‬set x2zeroaxis` � ϡ � � � � $ � ��� x2 ( � � ) � � (y2 = 0) � � � d � � �
� � � � � ܺ٤ϡ��ʲ����� `set : zeroaxis` ��
C 3 �� � �Υǡ� � � � � � � � � � (xdata)
3 xdata
?commands set xdata
?commands show xdata
?set xdata
?show xdata
?xdata
� � � Υ � � ‫�ޥ‬ɤ � x � � � Υ ǡ � � � � | � � β � � � ) � 椷�����¾ � μ � � � � 줿뤬륢�ˤ� �
�Ʊ���

Υ ‫�ޥ‬ɤ � � � ǽ � � � ����

� �:
set xdata time
show xdata

`ydata`, `zdata`, `x2data`, `y2data`, `cbdata` �ˤ � Ʊ � ��


� ��
���
ϤƤ�� �
� � ����

`time` � � � ‫����ץ‬ϥǡ�������ñ������ǡ����Ǥ��뤬뤬뤳 � d��������


Ȥ��
� ߤ� gnuplot � ϻ � � � � ߥ��ä � : � � � � ¸ � � � ����

� � � ‫����ץ‬ʤ � � ξ � � ϡ � � ǡ � � � � β � � � � ˡ � � ��� η | � � � ᤷ � �
����
C 4 �� �ǡ � � � (time)
4 time
?commands set xdata time
?set xdata time
`set xdata time` � ϡ � x � � ɸ � � � ٤�:���ߥ����ǡ�� � � Ǥ � � 뤬뤬뤳 � ��
Ȥ���
� ����`set
� ydata time` � Ȥ � � � Ʊ� � Υ�� ‫�ޥ‬ɤ⤢ � � ����

� � � ǡ � � � � � � � Ϥ Ƚ � � Ϥ β � � ˤ ϡ � ��� � ν � �
ν �� � � � � � � ν �����ե����뤫
�� � � � ϥǡ � � � � ϡ �t �Τ � � � � Ѥ � � � `timefmt` � � Ȥ � � � � � � ���� plot � � � �
��� � � � timecolumn() � ‫��ؿ‬Ȥä��ɤ߹��� � ߤ ��������ϵ����ϡ�������
� � (range) � � � � � �� � Ȥ���� ��֤�� � � � � ��� � ��
��� �
Ѥ ‫ݤ‬ˤ�Ŭ�Ѥ��������ʲ�
� � � � : `set timefmt`, `timecolumn` � �

� �:

set xdata time


set timefmt "%d-%b-%Y"
set xrange ["01-Jan-2013" : "31-Dec-2014"]
plot DATA using 1:2
� ����
plot DATA using (timecolumn(1,"%d-%b-%Y")):2

� � � ϡ � � � � ʤ � | � � ˱ �ä � � � 9 � � Υ � ٥�䡢�‫������ޥ‬Ǥκ�ɸ���ϤˤĤ�
� Ƥϡ � � ǥ �ե � � Ȥ Ǥ �ϡ� ä Ǥ � �� � � � 狼������ɽ������ʸ���‫�ؤ‬ ��Ѵ���
� ϡ � � ‫' �ؿ‬strftime' (unix � Ǥ � � � � Ĵ � ٤�ˤ� "man strftime" �ȥ����‫�פ‬
� Ƥ � � $ � � � ) � � Ȥ � � ����`gnuplot` � Ϥ � � � � Ŭ � � � ���
Τ ˰ � � ����ɽ���
��� �� �� �
� 褦�Ȥ��������`set format x` � � `set xtics format` � Τ � � � � 줿줬뤳�Ȥ� �
� ƥ � � � � � � ‫������ޥ‬뤬뤬뤳 �
Ȥ�Ǥ������
� � ��ʻ � ����� ��� Ҥ˴‫��ؤ‬Ƥϡ � �ʲ � � � � � : `time_specifiers` � � ¾ � ξ � � �
�ˤĤ � � Ƥ ϡ � �ʲ � � ⻲��: `time/date` � �
C 3 ��� � � � 9 � � (xdtics)
3 xdtics
?commands set xdtics
?commands unset xdtics
?commands show xdtics
?set xdtics
?unset xdtics
?show xdtics
?xdtics
?noxdtics
� � � ‫` ��ޥ‬set xdtics` � � x � � � � � � 9 � � ι � ߤ�������Ѵ����0) � �=Sun,
6=Sat) � � 6 � �ۤ� ������ 7 �ˤ � � ; �꤬�� Ȥ������`unset xdtics` � �
� � � θ � � Ф � � � ǥ ե � � � Ȥ η| � � � ᤷ �� ����¾ � μ � � ˤ � Ʊ � � � � � Ȥ � Ԥ ʤ � Ʊ
��Υ� � � ‫�ޥ‬ɤ � � Ѱ դ � � � Ƥ � � ����

� �:
set xdtics
unset xdtics
show xdtics
`ydtics`, `zdtics`, `x2dtics`, `y2dtics`, `cbdtics` �ˤ � Ʊ � ��
� ��
��� �
� Ϥ � ��
���

�ʲ � � ⻲��: `set format` � �


C 3 � � � � ٥� (xlabel)
3 xlabel
?commands set xlabel
?commands show xlabel
?set xlabel
?show xlabel
?xlabel
� � � ‫` ��ޥ‬set xlabel` � � x � � � θ � � Ф � � � � � � ������¾ � μ � � ˤ ⸫ � Ф � � �
� � � �� �� �
Ʊ���
Υ ‫�ޥ‬ɤ � � � � � ����

� �:
set xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"}
{textcolor <colorspec>} {{no}enhanced}
{rotate by <degrees> | rotate parallel | norotate}
show xlabel

�Ʊ������� `x2label`, `ylabel`, `y2label`, `zlabel`, `cblabel` ˤ� Ŭ


� Ѥ � � � ����

<offset> � � x,y � � � ���� x,y,z � η| � � ǻ � � �� ���� ϡ����


���Ϳ����Ф
� 줿� � $� � � � ư � � � � ��������� ˺�ɸ � Ϥ � j � ơ � � � � �p�� � `first`,

`second`, `graph`, `screen`, `character` � Τ � � � � 줿줬뤳�Ĥ� � � 뤬뤬뤳 �
Ȥ�Ǥ�
٤ ����ϡ��ʲ����� `coordinates`
� ܺ� : �ǥ�� ե���ȤǤ�`character`
ɸ � �
� Ϥ � � Ȥ � � �����㤨�С � "`set xlabel offset -1,0`" � ϸ � � Ф � � � x ��� �
� � � ֤Τ � � ѹ � � � � � � 礶�äѤ˸$ä� 1 ʸ��ʬ����$����Ф���ˤ�� �� �
��
� � � � 1 ʸ� � � � 礭���ϡ��� ե�
���ȤȽ��Ϸ

��
�˰�
�� | ξ ����
¸

<font> � ϸ � � Ф � � � � �� �
�ե��� �Ȥ
���� � �� �
Τ�Ȥ ��
<size> ( � 礭��) � � ñ ��ϡ � � ɤ � ʽ � � Ϸ | � � � Ȥ � � � � ˰ �¸ � � � ����

`noenhanced` � ϡ � � � ĥ ʸ � � � � � � � �
��ͭ �
(enhanced text) � ɤ
Ƥ ä��ˤ �ʤ ⡼
� � � � Ǥ ⡢ � � ٥�ʸ� � � � � � ĥ ʸ � � � � � � � ʤ � � 褦�ˤ������

� � � Ф � � � õ � � �ˤϡ � � � � ‫�����ץ‬Ĥ � � � � ˼ ¹ Ԥ � � ������: "`set y2label`"

�֤ ʲϰ
� � � θ � � Ф � � Υ ǥե � � � Ȥ ΰ � � ������ � � : Ǥ

xlabel: x � � � θ � � Ф � � ϥ � � � դ β � � ο � � �

� 뤫��ľ� �
ylabel: y � � � θ � � Ф � � ϥ � � � դ κ � � ο � � � ǡ � � � ʿ � � � �� ˽
�ˤ ʤ 뤫�Ͻ��Ϸ|���¸

zlabel: z � � � θ � � Ф � � ϼ � � � ɽ � � � ϰ Ϥ � � � ǡ � � � � Ф � � ο � � 椬 z �� �ο� � �

cblabel: � � � � � � (color box) � μ � � θ � � Ф � � � Ȣ � �ä


˱� � � ·���� � 졢 Ȣ��
� � � � � � � � ʿ � ʤ 鲼�ˡ���ľ�ʤ 鱦��

y2label: y2 � � � θ � � Ф � � � �֤ ϡ����Ϸ
y2 � � � α � � � � � � ΰ � � ���
�� | �
�¸�y �

�Ʊ���
ε §�Ƿ��ꡣ

x2label: x2 � � � θ � � Ф � � ϥ � � � դ ξ � ǡ � � � � � � ȥ � � � ϲ � � � � � � � ϡ � ��� �
ʸ� � � Ȥ � � С � � � � � ˤ � � ʣ � � ι Ԥ � � � ʤ � � r 西���ȥ�� x2 ���θ��Ф���
8. � � � 뤬뤬뤳 � ǽ����:
Ȥ��

set title "This is the title\n\nThis is the x2label"


� � � � � � � Ű � � � � � � Ȥ � � ٤��Ǥ��뤬뤬뤳 �
Ȥ���դ��Ƥ�� $��������ξ�硢���
� � � 2 � Ĥι Ԥ � Ʊ � � � ե � � � Ȥ � � Ȥ � � ����

2 ��� � �r �ξ� � � x, x2, y, y2 � � � Υ � ٥���� ( � � ž � � ) � ϡ �


`rotate by < � � � � > ` � � � � ��뤬뤬뤳 �
Ȥ��ѹ��Ǥ�� ���� � � � � � r � �
3 x, y � �
� Υ � ٥�����ϥǥե���ȤǤϿ�ʿ���ˤʤäƤ��������
`rotate parallel` � � � � ��뤬뤬뤳 Ȥ�
Ǽ���ʿ�Ԥˤ��뤬뤬뤳 �
Ȥ��Ǥ������

�⤷� � �ΰ � � �֤ Υǥե���Ȥΰ���֤ �������� ʤ � � ʤ � С � � � � � � `set label`


� � Ȥ ä Ƥ � � $ � � � � � � � � Υ � � ‫�ޥ‬ɤ �ʸ � � � � � ɤ � � � � � �֤��� 뤫���äȼ �ͳ ��
) � � Ǥ � � ����

� Хå � � � � � å � � � ʸ � � � � κ � � ѡ � � ‫�ڤ‬ʸ� � � � � Ϥ � ñ � � � � � � � � � � Ű � � � � � �
� 㤤�˴‫�������ؤ�����ܤ‬ˤĤ��Ƥϡ��ʲ�����: `syntax`��
C 3 �� � �9 � (xmtics)
3 xmtics
?commands set xmtics
?commands unset xmtics
?commands show xmtics
?set xmtics
?unset xmtics
?show xmtics
?xmtics
?noxmtics
� � � ‫` ��ޥ‬set xmtics` � � x � � � � � � 9 � � θ � � Ф � � � � � � Ѵ � � � � 1 ����=Jan
(1 � � ) � � 1 2 =Dec (12 � � ) � Ȥ ʤ � 12 ���� � �ۤ� ������ϡ� 2 1 �dz
��
�� ä ���
� � � � Ѵ � � � � � ����`unset xmtics` � � � � 9 � � ϥ ǥ ե � � � Ȥ θ � � Ф � � � � � � ����
�¾ ��
μ � � � � Ф � � Ƥ � Ʊ � � � � � ��� Ʊ�
��Υ � ‫�ޥ‬ɤ � � Ѱ դ � � � Ƥ � � ����

� �:
set xmtics
unset xmtics
show xmtics

�`x2mtics`, `ymtics`, `y2mtics`, `zmtics`, `cbmtics` �ˤ � Ʊ � ��


� � �� Ŭ �
� � � � ����

�ʲ � � ⻲��: � � � ‫` ��ޥ‬set format` � �


C 3 �� �ϰϻ� � � (xrange)
3 xrange
?commands set xrange
?commands show xrange
?set xrange
?show xrange
?writeback
?restore
?xrange
� � � ‫` ��ޥ‬set xrange` � � ɽ � � � � � � � � ʿ � � � � � ϰ Ϥ � � � ������¾ � μ �
��ˤ � Ʊ� �
Υ� � ‫�ޥ‬ɤ� ¸ � � � �

ߤ �����˺�ɸ � Ǥ � ư � � r, � ���ѿ� t, u, v
�ˤ � ¸ � � � �

ߤ ��

� �:
set xrange [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} {{no}extend}
| restore
show xrange

��� � � � <min> � � <max> � � � � � � � � ���� '*' � ǡ � '*' � ϼ � ư ��ܵ�ǽ


� � ��� � � �������ǡ�� � � ξ � 硢�ν ϰϤ� `set timefmt` �ν ν˽ �
��ä νʸ
� � � � � � � � � � ǰ Ϥ � ɬ � � � ����‫פ‬
���<min> � � <max> � � � ά � � � � � � � ϡ � � �
� ߤ�� � � ���� �� ѹ ���
��� �� � � ��
� ܵ�ǽ �˴ ٤ܺ���‫ؤ‬ϲ � � ˽Ҥ�٤����ʲ��⻲
ư˽��
� � : `noextend` � �

`yrange`, `zrange`, `x2range`, `y2range`, `cbrange`, `rrange`, `trange`,


`urange`, `vrange` � � Ʊ � � � ��

�� Ѥ
�� � � ����

x � � x2 � � � � � � � 뤬뤬뤤�� y �� y2 � � � � � ϰ Ϥ � � � �
�� 륪
�ʲ � � � � � : `set link` � �

� � � ‫` ����ץ‬reverse` � ϡ � � � ư �� ‫ܤ‬μ � � � � � � � դ ˤ � � �����㤨�С � � ǡ �


� �� � �ϰ Ϥ � �10
� ͤ �� 100 � Ǥ � � � Ȥ � � � � � � � ϡ � s e t xrange [100:10] � Ȥ �
� � �‫ܤ‬
� � � Τ � Ʊ � � � 褦�˼�ư˽�� ���`reverse` � ϡ � � � ư �� ‫ܤ‬ǤϤʤ������Ф�
� Ƥϵ � ǽ � � � �������: � � � � � ѹ � � ϡ � � С � � � � � � 4.7 � � Ƴ � � � � � ������

� � ư �� ܵ��ǽ: <min> (Ʊ���Ȥ�


Τ �<max> �ˤ�Ŭ�Ѥ��� ��) � � � � � � � � � ꥹ
� � "*" � ξ � � ϼ � ư �� ܵ�ǽ� � � � � � ˤ ʤ � �������ξ � � Τ � � � � ˡ ��
� �� � � � �
<lb> � � � ���Ͼ�� <ub>��� ���Ϥ���ξ���)�¤��� �� � � � �����
� ��� � � ϰʲ�
� � ��� Ǥ � � �
{ <lb> < } * { < <ub> }
� 㤨��
0 < * < 200
� � <lb> = 0, <ub> = 200 � Ȥ ʤ � �������Τ 褦������Ǥϡ�<min> �ϼ�ư��
� � � ��‫ܤ‬ ��������κǽ � � Ū � � � �� �0 � � � 200 � δ ֤ˤʤ��� ( � � � � � '<'
�Ǥ � � � ξ ü � � � � � � � �ߤ�) � � � � � ¤ � � � ¤ � � � ��ʤ � � � � ϡ � � � � � '<' � � �
ά � Ǥ � � ����<ub> � � <lb> � � 꿷꾮륪�������ϡ� � ϥ) �¤�դ ˤ ʤ ꡢ��t�ʼ �
ư˽��‫ܤ‬ˤʤ�����
� � � ε � ǽ � ϡ � � � ư �� ‫ܤ‬$ � � � ɤ � � ϰ Ϥ � ) � ¤ � � � � � ¬ � � ǡ � � � � � � r � 䡢����
�ԥ
��Υ � � � å�
� �� � ���ϥǡ��������� �ۤɤ � � ϰ Ϥ � ɬ � ‫פ‬Ȥ��Ƥ��ʤ��Ƥ��
� � � � � r � � ϰ Ϥ � � ‫���ݾڤ‬Τ�� � � �� � Ѥ Ǥ礦��
� �p

� � � ‫` ����ץ‬writeback` � ϡ � ` set xrange` � � � � � � � Ƥ � � � Х å ե � � � � � �


� � ư �� ܵ�ǽ �ˤ � � � � 줿�ϰϤ���¸�����������ϡ������ �� Ĥ ‫��ؿ‬Ʊ δ

˵ � � �
� � � � � � � Ǥ � � � ` w r iteback` � κ � � Ѥ ϡ � ` plot` � μ¹ � � � �
ǽ Τǡ� � � � �
� � � ‫�ޥ‬ɤ � p � � � � �� � ɬ�� � ����‫פ‬ ����Ǹ����¸������ʿ�����ϰϤ�
`set xrange restore` � � � � Ǥ � � �������夲�����

set xrange [-10:10]


set yrange [] writeback
plot sin(x)
set yrange restore
replot x/2

� � � ξ � 硢 y � � � ϰ � (yrange) � � sin(x) � � � Ͱ � Ȥ � � ƺ � � 줿 [-1:1] � � � �


�ˤ ʤ ꡢ x/2 � � � Ͱ � [-5:5] � ��� 뤬뤬뤵�������嵭�Τ� � 줿뤬륢�Υ� � � ‫�ޥ‬ɤθ �
� � `show yrange` � � ¹ Ԥ � � � С � � � Dz � � � � Ԥ ʤ � � Ƥ � � 뤫���� ����
�ˤ ʤ � Ǥ � � 礦��

2 � � � � � r � ˤ � � � � ơ � ` x range` � � `yrange` � ϼ � � � � ϰ Ϥ � � � �� �
`trange`
� ϡ � � ���ѿ�⡼�ɤ�����ѿ���ϰϡ����뤬뤬뤤 ϶�
˺�ɸ�⡼�ɤγ��٤��ϰϤ�
� � � ������� Ʊ� �
��3 �������ѿ�⡼�ɤǤϡ�`xrange`, `yrange`, `zrange`
� � � � � � � ϰ Ϥ � � � � ` u r ange` � � `yrange` � � � ���ѿ���ϰϤ��������

�˺ �ɸ � ϡ �ɤ� ⡼� ` rrange`
Ǥ � � r 褵���ư �¤��ϰϤ���������<rmin>
� � ư � ¤ ‫��ؤ‬ɲä����Ȥ��ƺ��Ѥ�������<rmax> ��ư�¤�� ‫�ڤ‬ΤƤ � (clip)
� 褦�˺�� Ѥ � � � < rmax> � �ۤ� ���ư� ¤��Ф����$��r 褵������`xrange`
� � `yrange` � ϱƶ d � � � �����������ϰϤϡ�����դ� r(t)-rmin �Υ���
� դǡ � � � 9 � � θ � � Ф � � ˤ Ϥ � � 줿뤬륢��
rmin � � ä � � � � 褦�ʤ � Τ Ǥ � � 뤫�Τ 褦
�˥ � � å Ȥ � � � ����

t �Ƥ � � ϰ Ϥ � � � ʬ Ū �ˡ � � ����t � � Ū � ˼ � ư �� � � ��‫ܤ‬
������ǡ�� � � � � r � �
� ʤ � � � С � � ѥ � �� �� ѿ�μ�ư��ܵ�ǽ�ϰ ��� � � ʤ � � Ǥ � � 礦��

� ϰ Ϥ � `plot` � Υ � � ‫�ޥ‬ɥ 饤���Ǥ����Ǥ��‫�ޤ������ޥ‬ɥ 饤�����


� � � � 줿�ϰϤ�ñ�ˤ��� `plot` ���‫�ޥ‬ɤǤ$ � � Ȥ � 졢`set` � � � ‫�ޥ‬ɤ� � �
� ��줿�ϰϤϤ��θ���r�ǡ����‫�ޥ‬ɥ 饤����ϰϤ�����Ƥ � � ʤ � � � �
t �Ƥ ǻ Ȥ � � ��������� `splot` � � Ʊ � � � Ǥ � � �

� �:

x � � � ϰ Ϥ � ǥե � � � Ȥ �� ˤ

���� ���:
set xrange [-10:10]

y �� �ϰϤ � � � � � � � � ä � � � 褦�ˤ����:
set yrange [10:-10]

�z � κǾ �� �
� ˤϱƶ
d �����
� �( � � � ư �� ‫��ܤ‬줿���)
�� � � � � � � Τ
�� 10 � � � �
� ����:
set zrange [:10]

x � κǾ �� �
ϼ � ��� ‫ܤ‬Ȥ���������
��ư ��ѹ����
� � � � � � � ����:
set xrange [*:]

� ��� ‫ܤ‬Ȥ�����������κǾ
x � κǾ �� ��
�ư � �� �� �0 ʾ �ˤ � �
� ����
set xrange [0<*:]

x � � � ϰ Ϥ � ư �� ‫ܤ‬Ȥ���������������Ƥ � 10 � � � � �
50 � � � ϰ Ϥ � � ‫�ݻ ޤ‬
( � º ‫ݤ‬Ϥ������礭���ʤ � Ǥ � � 礦):
set xrange [*<10:50<*]

� � ư �� ‫ܤ‬Ǻ � � � � ϰ Ϥ � -1000 � � � � 1000 � � � � � ʤ � � [-1000:1000] � � Ǽ � ư � �


� � � �‫ܤ‬ �:
set xrange [-1000<*:*<1000]

�x � κǾ �� �� �-200 � � � 100 � δ ֤Τɤ � � � � ˤ � � ��:


set xrange [-200<*<100:]

C 3 ��� � � � 9 � � � � � (xtics)
3 xtics
?commands set xtics
?commands unset xtics
?commands show xtics
?set xtics
?unset xtics
?show xtics
?xtics
?noxtics
x ��� � (� � � Ф � � Τ Ĥ � ) � � � � 9 � � � � � � ‫` ��ޥ‬set xtics` � � ) � � Ǥ � � ����
� �9 � � � `unset xtics` � Ǿä � � � ` s et xtics` � � ( � ǥ ե � � � Ȥ ξ � �֤�� ) � �
9�꤬�� Ĥ � � ����y,z,x2,y2
� ��� � � � � � 9 � � � ) � � � Ԥ ʤ
�� Ʊ � Υ
�� � ‫�ޥ‬ɤ � � �
� � ����

� �:
set xtics {axis | border} {{no}mirror}
{in | out} {scale {default | <major> {,<minor>}}}
{{no}rotate {by <ang>}} {offset <offset> | nooffset}
{left | right | center | autojustify}
{add}
{ autofreq
| <incr>
| <start>, <incr> {,<end>}
| ({"<label>"} <pos> {<level>} {,{"<label>"}...) }
{format "formatstring"} {font "name{,<size>}"} {{no}enhanced}
{ numeric | timedate | geographic }
{ rangelimited }
{ textcolor <colorspec> }
unset xtics
show xtics

�Ʊ������
�`ytics`, `ztics`, `x2tics`, `y2tics`, `cbtics` ˤ� Ŭ�Ѥ���
� ����

`axis` � � `border` � � `gnuplot` � � � � 9 � � (� � 9 � � ι � � � �


θȤȤ � � � Ф �)
� �� � �줾�켴�ˤĤ���Τ��������ˤĤ���Τ���‫��� � ޤ‬ ‫������������ؼ‬ˤ�
� Ƥ ᤤ � ��
硢`axis` � � � � Ѥ � �� � � � � 9 � � θ � � Ф � ʸ � � � �� �
γ � ˽ Ф� � �
� � � ���Ǥ��礦�����ξ� 缫 ưŪ� ʥ 줿뤿줬�����ȥ�� 르�ꥺ�� ˤ��;�������
� � � � 褯�ʤ � � � Τ Ȥ ʤ ä Ƥ � � � � ��
���

�֤ ˡ����Ф��Τʤ���9���
`mirror` � � `gnuplot` � � ȿ � � ¦ � ζ � � � � � Ʊ � � � � �
� � � Ϥ � � � 褦�‫��� � ޤ‬
‫`���ؼ‬nomirror` � ϡ � � � � ʤ � � � � � � � Ƥ � � � ��� Τ � � �
� � Ԥ ʤ � � ����

`in` � � `out` � � � � 9 � � ι � ߤ���¦ � � � d � � � � � ¦ � � � d � � � � � � ‫��ڤ‬Ѥ��

� � 9 � � ι � ߤΥ � � � � � � � `scale` � � Ĵ 0 � Ǥ � � ����<minor> � λ � �꤬��� ά � �


� 줿��� ϡ������ 0.5*<major> �
ʤˤ � �����ǥե���ȤΥ������ϡ�����
9�
�꤬ 1.0 � Ǿ � � � 9 � �꤬ 0.5 � ǡ � � � � � � `scale default` � Ǹ Ƥ Ӥ $ � � ����

`rotate` � ϡ �ʸ � � � � � 90 � ‫�ٲ‬ž � � � � � ƽ � � Ϥ � � � � 褦�Ȥ����������ϡ�ʸ


��� �β �� ž � �‫��ݡ‬Ȥ��Ƥ�����ϥɥ 饤�� (terminal) � Ǥ ϼ ¹ Ԥ � � � ����
`norotate` � Ϥ � � � ��� � � 뤬뤬뤷�����`rotate by <ang>` �ϳ � � � <ang> � �
� � ž � � Ԥ ʤ � � ����������Ϥ����Ĥ��ν��Ϸ|� (terminal) �ǥ��‫��ݡ‬Ȥ���
� Ƥ � � ����

x � � y � � � � � � � � 9 � � Υ ǥե � � � Ȥ � `border mirror norotate` �ǡ � x2, y2


��� � `border nomirror norotate` � � � ǥ ե � � � Ȥ Ǥ � � � z � � � ˤ ϡ �
`{axis | border}` � � � ‫ � �������ץ‬ǡ � � ǥ ե � � � Ȥ � `nomirror` � Ǥ � � � z
� � � � � � 9 � � � ߥ顼���������ʤ 顢¿ʬ `set border` �Ǥ��Τ���ζ�֤��
� � � � ɬ � ‫�����פ‬Ǥ��礦��

<offset> � � x,y � � � ���� x,y,z � η| � � ǻ � � ������������˺�ɸ � Ϥ � j


�� � ơ � � � � p�� � `first`, `second`, `graph`, `screen`, `character` � �
� � � � � 줿줬뤳�Ĥ� � � 뤬뤬뤳 �
Ȥ�Ǥ������<offset> �Ϲ � �ʸ � � Υ ǥե � � � Ȥ ΰ � � �
� � � � Τ � � � � ɽ � � � � � ǥ ե � � � Ȥ κ � ɸ � Ϥ � `character` � Ǥ � � � �ܺ٤ϡ��ʲ�
� � � � : `coordinates` � � ` nooffset` � Ϥ � � 餷���� � ˤ � � ����

� �:

xtics � � � � � r � ˶ � Ť � � � :
set xtics offset 0,graph 0.05

� ǥ ե � � � Ȥ Ǥ ϸ � � Ф � � � ٥�ϡ��������̤
�� � 褦�
8 ˡ����Ȳ�ž�Ѥ˰�¸
��� � � � � ˼ ֤ �ưŪ��·��������������ˤ���ʤ���С��<�Ū�� `left`,
`right`, `center` � Υ � � � �  � ɤˤ � � � � � · � � � � � �
Ǥ� � � � ѹ
����
`autojustify` � ǥǥ ե � � � Ȥ ε � ư � � � � ����
� � � ‫����ץ‬ʤ � � � `set xtics` � � ¹ Ԥ � � � ȡ � � � 9 � �꤬ ɽ��������� �֤ Ǥ�
� � С � � � � � ϥ ǥ ե � � � Ȥ ζ � � � � � � ���ϼ� � � � � � � � � � � Ǥ ʤ � � � в � � � � ⤷
� ����� �p� �� ˻ �� ��� 9 � � δ ֳ֡����� ( � ȸ � � Ф � ) � � � ‫���ݻ � ޤ‬

� �9 � � ΰ � � �֤ ϡ��ǥե ���ȡ�����ϥ��‫` ����ץ‬autofreq` � � � � � �� �


Ƥ�
� � м � ư Ū � ˷� � ���� ���������Ǥʤ���С����� 2 �Ĥη|��ǻ���� ��
� �:

� ż � Ū � � <start>, <incr>, <end> � | � � ϡ � � � 9 � � � � � � <start> � � � � <end>


� δ ֤� <incr> � δ ֳ֤�ɽ���������<end> � � � � ��ʤ � � � С � � � � � ��� � � �
� Ȥ ߤʤ � � � ����<incr>
� � � � � �� �� �
ǽ �� � � < s t�
Ǥart> � <end> � �ξ � � �
� �� � Ƥ � � ʤ � � � 硢<start> � � -� 硢<end> � � + � � Ȥ ߤʤ � � 졢��9 � � �
<incr> � � 0 � � � ‫ܤ‬ΰ� �֤�� ɽ���������������п � ξ � 硢��9 � � δ ֳ�
( � � ʬ ) � ϡ � �ܿ�Ȥ��ƻ��Ѥ�������

� � � <start> � � <incr> ��� �� � � ��


� �
� ˻ �� ��( � 㤨��
`rotate by <angle>` � Ȥ � `offset <offset>` � θ � � ) � � g n uplot � ι �ʸ � � � �
� � ϡ � � � � � � �� � 餽�����
ͤ <start> � � <incr> � � � ΰ �� � � ���
�� � �
� Ȥ � � � �Ԥ
� ְ㤤���Ȥ������������� � ��
� ˤϡ����Τ 褦�ʾ��ϡ�`0-<start>`
`0-<incr>` � Τ 褦��� ��Ƥ � � $ � � � � �

� �:
set xtics border offset 0,0.5 -5,1,5
�Ǹ � � ',' � Τ Ȥ � � � Ǽ � � Ԥ � � ����
set xtics border offset 0,0.5 0-5,1,5
��
set xtics offset 0,0.5 border -5,1,5
� ʤ � С � � d � � Ȼ ‫� ��ؼ‬ˡ � � � 9 � �
���� �ˡ
9 �� � � 긫
ʸ� �ʬ � $ � � � � 餷�ơ��
� start, increment, end � � 줾�� -5,1,5 � � � � � �� �
��� �

`set grid` � Υ � � ‫' ����ץ‬front', 'back', 'layerdefault' � ⡢ x � � � � � � 9


� � � � r � ν � � ˱ ƶ d � � ����

� �:

� �9 � � � 0, 0.5, 1, 1.5, ..., 9.5, 10 � ΰ � �֤�� 8.


set xtics 0,.5,10

� �9 � � � ..., -10, -5, 0, 5, 10, ... � � 8 .


set xtics 5

� �9 � � � 1, 100, 1e4, 1e6, 1e8 � � 8 .


set logscale x; set xtics 1,100,1e8

� < � Ū � � ("<label>" <pos> <level>, ...) � η| � � ϡ � Ǥ դ� � � � 9 � � ΰ � �֡��


� � � 뤬뤬뤤 Ͽ�� � Ǥ ʤ � � � � Ф � � � 8 . � � � ǽ � ˤ � � �������η| � � Ǥ ϡ � � � 9 � � ϰ �
� ֤ο � � ν � � ���
�� � � ɬ
�� ‫פ‬Ϥ������ � ����
��� 9� � ϰ � � � (pos)
(label) � � � d ���������Ф� � � ɬ � ‫ܤ‬ǤϤ������ � ���
� �Ф � � � � � Ű � � � � � �
� Ϥ �줿 ʸ� � � � Ǥ � � 뤬뤬뤳 �
Ȥ���դ��Ƥ�� $���������ϡ�"hello" �Τ 褦�ʸ�
� �ʸ � � � � Ǥ � � � � ��� � ��
� "%3f clients" � Τ 褦
�ˤ��ΰ��֤������ Ѵ���
� � � ʸ � � � � � ��Ǥ�� � ����
��� � �����
� �ʸ� � � � "" � Ǥ � � � � ��� ���
� �� ��
� � � � � � � � ˤ Ĥ � � Ƥ ϡ � � ʲ � � � � � : `set format` � � � ���ʸ�� �� �� ʤ� �⤷ �� � � � � � Ϳ
� � С � � ǥ ե � � � Ȥ ο � � θ � � Ф � � � � � � Ѥ � � � ����

� < � Ū � ʷ | � � Ǥ � 3 � � � ‫ܤ‬Υѥ��� �� Ȥ��ƥ�٥�����Ǥ�������ǥե�


� � Ȥ Υ � ٥�� 0 � ǡ � � � � � � � � � � 9 � � � ��� � � � � � ٥� 1 � ξ � � Ͼ � � � 9 � �
� � 8 . � � � �����
٥ ��ϡ�����
��ˤϷ 9 褷���դ � � 9��������� � Ⱦ � � � 9
����
� � � gnuplot � � � � ư Ū � � 8 . � � � �������桼�����< � Ū � � � � � � � � Ǥ
� � ٥뤬 2 �ʾ � � � � 9 � � ϡ � � 桼�����< � Ū � � � � ��ʤ � � � Ф ʤ 餺����ư
8. � � � � 9 � � � � � ⤤˥� � � ٤��d �����ƥ�٥����9 � � ι � ߤ��礭��
� ϡ � `set tics scale` � � ) � 椷�����

� �:
set xtics ("low" 0, "medium" 50, "high" 100)
set xtics (1,2,4,8,16,32,64,128,256,512,1024)
set ytics ("bottom" 0, "" 10, "top" 20)
set ytics ("bottom" 0, "" 10 1, "top" 20)

2 � � � ‫���ܤ‬Ǥϡ�t�Ƥ���9�꤬���� Ф � � դ � � � � � ‫ ���ܤ‬3 �������Ǥϡ�ü��


� � Τ $ � � � � � � Ф � � դ � � � � � ‫ ���ܤ‬4
�������Ρ � � � � Ф � � Τ ʤ � � � 9 � � Ͼ � � � 9
� �ˤ ʤ � ����

��� � < � Ū � � ( � � ư � � ) � � 9 � � � �֤�� � � � � � 줿��硢�� ưŪ�� .� � � � � � �


8
9 � � ϻ Ȥ � � ��� � � դˡ�`set xtics auto` � Τ 褦�ʤ � Τ � � � � ��줿��
��ϡ � � � p �˼ � ư � � � � � �� ��� 9 � � Ͼ ä � � � Ƥ � � � � ��
������μ �ư � � � � 9 � �
�ȼ � ư Ū � � � � 9 � � � ¸ � � � � � � ˤ ϥ � � � � � �`add`  ��� Ѥ��Ƥ��$�� � � �
˽� � � � � � ɲ ä � � � � � 9 � � Υ � � � � � � � � p � ��ʤ � � � Ф � � � � ����

� �:
set xtics 0,.5,10
set xtics add ("Pi" 3.14159)

� � � � ϼ � ư Ū � � � � 9 � � ι � ߤ� x � � � � �ֳ֤ ǤĤ���������ФΤȤ����
0.5 �ֳ
� < � Ū �ʸ � � Ф � � � � ɲ ä � � ����

��� � � � � � � ��Ƥ⡢ɽ� � � � � � � Τ Ϥ � � � � ���r � � ϰ Ϥ Τ � Τ$ � � Ǥ � � �

� � 9 � � θ � � Ф � � ν � ( � ���Ͼ�ά) �� `set format` ��)�椵����������


��� � � � � `set xtics (`<label>`)` � η| � � � � < � Ū � ʸ � � Ф � ʸ � � � � ���
�Ƥ � � ʤ � � � � $ � � Ǥ � � �

(� � � Ф � � դ � � � � � ʤ � ) � � � � 9 � � ϡ � ` s et mxtics` � � � ‫�ޥ‬ɤǼ �ư Ū � � � ɲ ä �
� 뤫������ϰ � �֤��� ư� � xtics ("" <pos> 1, ...)` �η| � � � � � � � �
`set
� � � Ȥ � Ǥ � � ����

� � ߤθ � � � � � ( � �  � � � � ) � ϡ � � � � � ��ξ� � d � � � � Ǥ � � ä Ƥ � �� � � ⡢
�ˤ � ä Ʒ � � �� ��� ( �ʲ� � � � � : `set border`) � �
4 xtics timedata
?set xtics timedata
?xtics timedata tics
?timedata tics
� � � ֤����դ � � � � � Ǥ � � ÿ � Ȥ � � � � ‫��ݻ‬Ƥ � � ����

�� �: �� �� � �ͤ ϡ � ϻ � � � �ͤ
� � � �`timefmt`
� �ǻ �
��� �� ��� ����
�Ѥ����ÿ�
� � � Ѵ � � � � ���������Ф� � � � � �֤ 伴���ϰϤ� `timefmt` �Dzᤵ � ������ ǡ�
� � � � � � ǰ Ϥ � � ���
�� � ����
<start>, <incr>, <end> � | � � � Ȥ � � � 硢<incr> � � � � ñ ��� � � �
Ф�ʤ���
� � � ������ϥǡ����β��ˤ� `timefmt` ��ȤäƤ��$����������ϰϤ�
� �9 � � ΰ � ��֤ ϡ�s e`t xdata time` ��� ѹ����� ����

� � � � : � � � � � � 9 � � � ٥�ϡ� s e`t format` �� `set xtics format`�



���� Τ
� � � ǻ � � ��줿�� ν ��ν �
ν �Ȥä ν� 8. � � �����ǥե���ȤǤϡ������� �
� ο � � ͽ� � � � �
ͽ� �
ͽ� �� �ǧ �� �� �� �� �� � ͽ Ǥ ���� (`set xtics
ɸ (`set xtics geographic`) � 䡢���ǡ�� � (`set xtics time`) � Υ � � ‫�ץ‬
� � ����� ����
� � � : � � p � � � Ǥ � gnuplot � Ȥ θ ߴ�-� Τ � � ᡢ���‫` ��ޥ‬set xdata time`
� � � � ۤ� `set xtics time` � � ¹ Ԥ � � ������`set xdata` � � `unset xdata`
� ϰ � �ۤ� � `set xtics numeric` ��ꥻ�åȤ������������������Ϥ��θ��
`set xtics` � � Ƥ ӽ Ф � � � � Ȥ � � ѹ � � Ǥ � � ����

� �:
set xdata time # � � ϥǡ � � � � β � � � ) � �
set timefmt "%d/%m" # � � ϥ ǡ � � � � � � ɤ ߹��ߤν �
set xtics timedate # �� �Ͻ � �β � � � ) � �
set xtics format "%b %d" # � � 9 � � � ٥�ǻȤ���
set xrange ["01/12":"06/12"]
set xtics "01/12", 172800, "05/12"

set xdata time


set timefmt "%d/%m"
set xtics format "%b %d" time
set xrange ["01/12":"06/12"]
set xtics ("01/12", "" "03/12", "05/12")
��� � � � ξ � � Ȥ � "Dec 1", "Dec 3", "Dec 5", � � � � 9 � � � 8 . � � � 2 ������
� � � ‫" ���ܤ‬Dec 3" � � � � 9 � � ϸ � � Ф � � դ � � � � � ����
4 geographic
?commands set xtics geographic
?set xtics geographic
?geographic
`set xtics geographic` � ϡ � x � � � � � �� � ٤ͤ �ñ��� � � � � � ɸ � Ǥ � � 뤬뤬뤳 �
Ȥ��
����������μ � � ι � ߤθ � � Ф � � � ɽ � � � λ � � � ˤ ϡ � ` set xtics format` � �
`set format x` � � Ȥ � � ���������ɸ � ǡ � � � � ˴ ‫���ؤ‬ ���
� �� � �Ҥϰʲ� � � � �
� �:
%D = � ٤�0� �ɽ � �
%<width.precision>d = � ٤���ư � � � � ɽ � �
%M = ʬ��0��ɽ��
%<width.precision>m = ʬ����ư����ɽ��
%S = �ä �0 � � ɽ � �
%<width.precision>s = � ä � � � ư � � � � ɽ � �
%E = +/- � Ǥ ʤ � E/W � Υ � ٥�
%N = +/- � Ǥ ʤ � N/S � Υ � ٥�
� 㤨�С� � � � ‫` ��ޥ‬set format x "%Ddeg %5.2mmin %E"` � ϡ � x � � ɸ � � -1.51
� Ȥ � � � � �� �`" 1deg 30.60min W"` � �Τ� 褦��ɽ���������
C shige: � � ��������ξ ƽ� � � � � � � Ȥ � � ƽ
� � ٤�����
C � ٤ε � � � � set encoding locale � ǽФ � 褦�ˤʤ�ȡ�

xtics � � � ǥ ե � � � Ȥ ξ � ��֤ Τ �� (`set xtics numeric`) � ξ � � ϡ � � � ɸ � �


10 �ʿ � � � ٤�ɽ������`format` ��������ʵ���ǤϤʤ�����ο��ͽ�
� � � Ȥ � � Ƥ � � � Ȥ ߤʤ � � � ����
4 xtics rangelimited
?set xtics rangelimited
?xtics rangelimited
?rangelimited
?range-frame
� � � Υ � � ‫����ץ‬ϡ���ư �� . ���� Ū 8 뺹뼰륨����9 � � θ � � Ф � � ȡ � � r 褵�줿��
� � � � � Ǽ º ‫ � � � � � � � ��ݤ‬ϰϤ � � б � � � � � � r 趭����ξ � � � ) � ¤ � � ���������
� r � � � Ф � � 뷿븽뤵�ߤ��ϰ � ) � ¤ Ȥ ��� ‫��ط‬Ǥ��뤬뤬뤳 �
Ȥ���դ��Ƥ�� $������㤨
� Х ǡ � � � "file.dat" � Υ ǡ � � � � � � � � ٤� 2 < y < 4 � � � ϰ Ϥ ˤ � � � Ȥ � � � ȡ �
�ʲ � � Υ � � ‫�ޥ‬ɤϡ � � � ¦ � � � r 趭�� (y � � ) � � y � � � ϰ � t � � ([0:10]) � Τ �
� � � � ʬ ([2:4]) � Τ ߤ��r 褵�졢�����ϰ � ([2:4]) � μ � � � � � 9 � � Τ ߤ����
� � � � r � � 8 . � � � �����Ĥ �ꡢ�r � � y � � � ϰ � t � � ([0:10]) �˳ � � 礵��
� ���������ζ � � � � � 0 ��� � 2 � δ ֡�4 � � � � ֤
10 � δ ϶���� ΰ�Ȥʤ�����
�� �Υ� � � � � � � ϡ �` �ϰ � � � ` ��� � � (range-frame) � Ȥ � Ƥ Ф � ����
set border 3
set yrange [0:10]
set ytics nomirror rangelimited
plot "file.dat"
C 3 xy ʿ��� � � � (xyplane)
3 xyplane
?commands set xyplane
?commands show xyplane
?set xyplane
?show xyplane
?xyplane
`set xyplane` � � � ‫�ޥ‬ɤ � 3D � r � � � d � � � � ΰ � �֤�� Ĵ0 � � � � Τ �
xy ʿ��
� Ȥ � � ߴ���������-� Τ � � � ˡ � " set ticslevel" � � Ʊ � � � ��� Υ � � ‫�ޥ‬ɤ�
� � � ƻ Ȥ � � � � Ȥ � � Ǥ � � ����

� �:
set xyplane at <zvalue>
set xyplane relative <frac>
set ticslevel <frac> # set xyplane relative � � Ʊ � �
show xyplane

`set xyplane relative <frac>` � ϡ � xy ʿ��� Z � � � � � ϰ Ϥ Τ ɤ � � � �֤������


� � � ������<frac> �ˤϡ � xy ʿ��� z � ΰ � �ֲ��ΰ � � �֤ Ȥκ��Ρ�z ������
� � t � Τ � � Ф � � � � � � � � � � �����ǥե���Ȥ��

��0.5 Ǥ��������� ���
��
� � Ƥ � � 3��������������� � Ĥμ � � � � � 9 � � θ � � Ф � � � � Ť ʤ � � ǽ - � � � � � �
� ����

� ⤦ �� Ĥ η | � � Ǥ � � `set xyplane at <zvalue>` � ϡ � � � � ߤ� z � � � ϰ Ϥ �


�ˤ � � 뤬뤬뤳 �
Ȥʤ������� � �z
� � �� �
ΰ� �֤�� xy ʿ���� � ���������äơ�
x,y,z � � � � ��θ � � $ � ��� 褦�ˤ���ˤϡ�`set xyplane at 0` �Ȥ����
� � � � � � � Ȥ ˤ ʤ � ����

�ʲ � � ⻲��: `set view`, `set zeroaxis` � �


3 xzeroaxis
?commands set xzeroaxis
?commands unset xzeroaxis
?commands show xzeroaxis
?set xzeroaxis
?unset xzeroaxis
?show xzeroaxis
?xzeroaxis
?noxzeroaxis
� � � ‫` ��ޥ‬set xzeroaxis` � � y = 0 � � ľ � � � � d � � ‫�ܺ˴ؤ‬٤ ������Ƥϡ � � �
� � � � � � : `set zeroaxis` � �
3 y2data
?commands set y2data
?commands show y2data
?set y2data
?show y2data
?y2data
� � � ‫` ��ޥ‬set y2data` � � y2 ( � � ) � � � Υ ǡ � � � � � � � � � (� � ) �| � � � � � � �
٤ ����ϡ��ʲ����� `set
� � � ܺ� ��
: xdata`
3 y2dtics
?commands set y2dtics
?commands unset y2dtics
?set y2dtics
?unset y2dtics
?show y2dtics
?y2dtics
?noy2dtics
� � � ‫` ��ޥ‬set y2dtics` � � y2 ( � � ) � � � � � � 9 � � � � � � � � � ѹ � � � � ܺ� ٤ ����ϡ�
�ʲ � � � � � : `set xdtics` � �
3 y2label
?commands set y2label
?commands show y2label
?set y2label
?show y2label
?y2label
� � � ‫` ��ޥ‬set y2label` � � y2 ( � � ) � � � θ � � Ф � � � � � � ��ܺ� ٤ ����ϡ��ʲ�
� � � � : `set xlabel` � �
3 y2mtics
?commands set y2mtics
?commands unset y2mtics
?commands show y2mtics
?set y2mtics
?unset y2mtics
?show y2mtics
?y2mtics
?noy2mtics
� � � ‫` ��ޥ‬set y2mtics` � � y2 ( � � ) � � � � � � 9 � � � 1 ǯ� γ Ʒ � � � ѹ � � � � ����
� ܺ٤ϡ��ʲ����� `set : xmtics` ��
3 y2range
?commands set y2range
?commands show y2range
?set y2range
?show y2range
?y2range
� � � ‫` ��ޥ‬set y2range` � � y2 ( � � ) � � � � ɽ � � � � � � � � ľ � ϰ Ϥ � � � � ������
� � � ‫�ޥ‬ɥ��‫����ץ‬Τ � � ٤Ƥ � � � � $ ˤ Ĥ � � Ƥ ϡ � �ʲ � � � � � : `set xrange` � � � �
� � � ⻲��: `set link`� �
3 y2tics
?commands set y2tics
?commands unset y2tics
?commands show y2tics
?set y2tics
?unset y2tics
?show y2tics
?y2tics
?noy2tics
� � � ‫` ��ޥ‬set y2tics` � � y2 ( � � )
� � Ԥ ʤ � � ܺ�٤ ����ϡ��ʲ����� `set : xtics` ��
3 y2zeroaxis
?commands set y2zeroaxis
?commands unset y2zeroaxis
?commands show y2zeroaxis
?set y2zeroaxis
?unset y2zeroaxis
?show y2zeroaxis
?y2zeroaxis
?noy2zeroaxis
� � � ‫` ��ޥ‬set y2zeroaxis` � ϡ � � � � $ � ��� y2 ( � � ) � � (x2 = 0) � � � d � � �
� � � � � ܺ٤ϡ��ʲ����� `set : zeroaxis` ��
3 ydata
?commands set ydata
?commands show ydata
?set ydata
?show ydata
?ydata
� � � ‫` ��ޥ‬set ydata` � � y � � � Υ ǡ � � � � � � � � � ( � � ) � | � � � � � � ������
�ʲ � � � � � : `set xdata` � �
3 ydtics
?commands set ydtics
?commands unset ydtics
?commands show ydtics
?set ydtics
?unset ydtics
?show ydtics
?ydtics
?noydtics
� � � ‫` ��ޥ‬set ydtics` � � y � � � � � � 9 � � � � � � � � � ѹ � � � � ܺ� ٤ ����ϡ��ʲ�
� � � � : `set xdtics` � �
3 ylabel
?commands set ylabel
?commands show ylabel
?set ylabel
?show ylabel
?ylabel
� � � Υ � � ‫�ޥ‬ɤ � y � � � θ � � Ф � � � � � � �������ʲ� � � � � : `set xlabel` � �
3 ymtics
?commands set ymtics
?commands unset ymtics
?commands show ymtics
?set ymtics
?unset ymtics
?show ymtics
?ymtics
?noymtics
� � � ‫` ��ޥ‬set ymtics` � ϡ � y � � � � � � 9 � � � � � � ѹ � � � � ܺ� ٤ ����ϡ��ʲ���
� � : `set xmtics` � �
3 yrange
?commands set yrange
?commands show yrange
?set yrange
?show yrange
?yrange
� � � ‫` ��ޥ‬set yrange` � ϡ � y � � � ο � ľ � ϰ Ϥ � � � � ��ܺ� ٤ ����ϡ��ʲ���
� � : `set xrange` � �
3 ytics
?commands set ytics
?commands unset ytics
?commands show ytics
?set ytics
?unset ytics
?show ytics
?ytics
?noytics
� � � ‫` ��ޥ‬set ytics` � � y � � � � ( � � � Ф � � դ � � � � � � ) � � � � 9 � � � ) � 椷�
� ܺ٤ϡ��ʲ����� `set : xtics` ��
3 yzeroaxis
?commands set yzeroaxis
?commands unset yzeroaxis
?commands show yzeroaxis
?set yzeroaxis
?unset yzeroaxis
?show yzeroaxis
?yzeroaxis
?noyzeroaxis
� � � ‫` ��ޥ‬set yzeroaxis` � � x = 0 � � ľ � (y � � ) � � � ܺ� ٤ ����ϡ���
� � � � � � : `set zeroaxis` � �
3 zdata
?commands set zdata
?commands show zdata
?set zdata
?show zdata
?zdata
� � � ‫` ��ޥ‬set zdata` � � z � � � Υ ǡ � � � � � � � � � ( � � ) � | � � � � � � ������
�ʲ � � � � � : `set xdata` � �
3 zdtics
?commands set zdtics
?commands unset zdtics
?commands show zdtics
?set zdtics
?unset zdtics
?show zdtics
?zdtics
?nozdtics
� � � ‫` ��ޥ‬set zdtics` � � z � � � � � � 9 � � � � � � � � � ѹ � � � � ܺ� ٤ ����ϡ��ʲ�
� � � � : `set xdtics` � �
3 zzeroaxis
?commands set zzeroaxis
?commands unset zzeroaxis
?commands show zzeroaxis
?set zzeroaxis
?unset zzeroaxis
?show zzeroaxis
?zzeroaxis
?nozzeroaxis
� � � ‫` ��ޥ‬set zzeroaxis` � � (x=0,y=0) � � ��� ľ � � � � d � � ��������ϡ� D 2
� r 衢����� `set view map` � Ǥ � splot � Ǥ ϸ � � Ϥ � � d ��� ܺ ٤ϡ�
� ��
�ʲ � � � � � : `set zeroaxis`, `set xyplane` � �
3 cbdata
?commands set cbdata
?commands show cbdata
?set cbdata
?show cbdata
?cbdata
� � � Υ � � ‫�ޥ‬ɤϥ � � 顼�‫ܥ‬å � � � � � � Υ ǡ � � � � � � � � � (� � ) �| � �˼ � � � � � � �
� �����ʲ� � � � � : `set xdata` � �
3 cbdtics
?commands set cbdtics
?commands unset cbdtics
?commands show cbdtics
?set cbdtics
?unset cbdtics
?show cbdtics
?cbdtics
?nocbdtics
� � � ‫` ��ޥ‬cbdtics` � ϥ � � 顼�‫ܥ‬å � � � � � � � � � 9 � � ι � ߤ�������Ѵ��������
� ܺ٤ϡ��ʲ����� `set : xdtics` ��
C 3 ��� � � � � � (zero)
3 zero
?commands set zero
?commands show zero
?set zero
?show zero
?zero
`zero` � � � ���0ͤ
0ϡ. ˶
��� ᤤ�ǥե���Ȥ����
�ɽ
��
� ��
�� ����
��

� �:
set zero <expression>
show zero

`gnuplot` � ϡ � ( ʣ � ǿ � � � $� � � ��ͤ r � ˤ � � � � Ƥ � ) � � � �� � �ͤ�ε � � ʬ � � � �


� � � �� �`zero` � � � �� �� � 礭����� ( � Ĥ ��¿ � Ǥ �
�� ʤ �� �)� � � � � ͤ ϡ � � � � �
� $ � � r 褷���� � �������
� � � ��� �`gnuplot` � � ¾ � � ��� � � � � ʬ � ˤ � � � � Ƥ � � �
( � � ����) � � � � � �� � � � �� Ȥ
�� �Ƥ��Ȥ ���Ƥ� � � ������ǥե���Ȥ�`zero` ��
��� �1e-8 � � � 1 e�-�Ǥ
3 (= ŵ � Ū � ʥ ӥ åȥ ‫ޥ‬å ‫ץ‬ǥ���� ‫ץ‬줿뤿줬�β� � � � ٤εտ�)
� � � � 礭�� `zero` � � � �� ���� � ���٤��ǤϤʤ��Ǥ��礦����`zero` � � 0.0 � �
� � � �� � Τϰ ��� Τ ʤ � � � � Ȥ Ǥ Ϥ � � � ����
C 3 ��� � (zeroaxis)
3 zeroaxis
?commands set zeroaxis
?commands unset zeroaxis
?commands show zeroaxis
?set zeroaxis
?unset zeroaxis
?show zeroaxis
?zeroaxis
x ��� � `set xzeroaxis` �ˤ � ä � � d � � 졢`unset xzeroaxis` �ˤ � ä ƺ � �
� � � � ����� Ʊ� �
��y, x2, y2, z ��Ѥ Υ�� ‫�ޥ‬ɤ� Ʊ� ��
�Ư
��� �� �� � ����
`set zeroaxis ...` (p�ֻ�ʤ � ) � ϡ � x, y, z � � � � � ٤Ƥ˵ � ǽ � � � ����

� �:
set {x|x2|y|y2|z}zeroaxis { {linestyle | ls <line_style>}
| {linetype | lt <line_type>}
{linewidth | lw <line_width>}
{linecolor | lc <colorspec>}
{dashtype | dt <dashtype>} }
unset {x|x2|y|y2|z}zeroaxis
show {x|y|z}zeroaxis

� ǥ ե � � � Ȥ Ǥ ϡ � � � � � � Υ � � ‫����ץ‬ϥ��դˤʤäƤ������j� � 줿 � 0
� μ � � � <line_type> � � � � η � � � < l i ne_width> � � � � � � � < c o lorspec> � ο � � �
<dashtype> � � � � � / � � � � ѥ � � � � � � (� � � � � � � � �
Ƥ�Ѥ⸽� �� �| � Ϸ �
� � � ‫��ݡ‬Ȥ��Ƥ����)�����뤬뤬뤤 �
Ϥ��餫������d� � 줿 <line_style> � Υ � � �
� � � � � � d � � � �����ʲ� � � � � : `set style line` � �

� �η � � � � � ��ʤ � � � С � � � � � ��� μ � � � � � η � (� � 0) � � � d � � � ����

� �:

y=0 � μ � � ��
��� 褦�˴ � ñ ˽
� �� � � :

set xzeroaxis

�$ � � � ˤ � � ơ � � � ä � � � � � � ��������ѥ�����ˤ��������:

set xzeroaxis linetype 3 linewidth 2.5


3 zlabel
?commands set zlabel
?commands show zlabel
?set zlabel
?show zlabel
?zlabel
� � � Υ � � ‫�ޥ‬ɤ � z � � � θ � � Ф � � � � � � �������ʲ� � � � � : `set xlabel` � �
3 zmtics
?commands set zmtics
?commands unset zmtics
?commands show zmtics
?set zmtics
?unset zmtics
?show zmtics
?zmtics
?nozmtics
� � � ‫` ��ޥ‬set zmtics` � � z � � � � � � 9 � � � � � � ѹ � � � � ܺ� ٤ ����ϡ��ʲ���
� � : `set xmtics` � �
3 zrange
?commands set zrange
?commands show zrange
?set zrange
?show zrange
?zrange
� � � ‫` ��ޥ‬set zrange` � � z � � � � � � ɽ � � � � � � � � ϰ Ϥ � � � � ���������Υ�
� ‫�ޥ‬ɤ � `splot` �ˤΤp � � � ǡ`�plot` � �� p p� �뤬뤬뤵��
Ǥ ٤ ����ϡ��ʲ���
ܺ�
� � : `set xrange` � �
3 ztics
?commands set ztics
?commands unset ztics
?commands show ztics
?set ztics
?unset ztics
?show ztics
?ztics
?noztics
� � � ‫` ��ޥ‬set ztics` � � z � � � � ( � � � Ф � � դ � � � � � � ) � � � � 9 � � � ) � 椷�
� ܺ٤ϡ��ʲ����� `set : xtics` ��
3 cblabel
?commands set cblabel
?commands show cblabel
?set cblabel
?show cblabel
?cblabel
� � � Υ � � ‫�ޥ‬ɤϥ � � 顼�‫ܥ‬å � � � � � � θ � � Ф � � � � � � �������ʲ� � � � � :
`set xlabel` � �
3 cbmtics
?commands set cbmtics
?commands unset cbmtics
?commands show cbmtics
?set cbmtics
?unset cbmtics
?show cbmtics
?cbmtics
?nocbmtics
� � � ‫` ��ޥ‬set cbmtics` � ϥ � � 顼�‫ܥ‬å � � � � � � � � � 9 � � θ � � Ф � � � � � � Ѵ � � �
٤ ����ϡ��ʲ����� `set
� ܺ� : xmtics` ��
3 cbrange
?commands set cbrange
?commands show cbrange
?set cbrange
?show cbrange
?cbrange
� � � ‫` ��ޥ‬set cbrange` � ϡ � � � � � � � � � `with pm3d`, `with image` � �
`with palette` � ʤ ɤˤ � ä Ƹ � � ߤΥѥ�å� (`palette`) ��Ȥäƿ��դ���
� � �����
� �Ϥϰ
�� � � � � �����������ϰ ϳ� � ��� � � Ф� � Ƥϡ� � Ǥ ᤤ� �
³� � � � �
� �
� � � � � � � Ѥ � � � ����

� � � 顼�‫ܥ‬å � � � � � (cb-� � ) � � `splot` � Ǽ � ư ��‫���ܤ‬Ƥ � � � � � ϡ � � � � �


� � � 顼�‫ܥ‬å � � � � � � ϰ Ϥ � `zrange` � � � Ȥ � � ����`splot ... pm3d|palette`
� � � r 褵����$ϡ�� �ۤʤ � `zrange` � � `cbrange` � � Ȥ � � � � Ȥ ǥ ե � � 뤬륽줿��
���Ǥ � � �����

ν`set cbrange` � ν ν ˴ ٤ܺ���‫ؤ‬ϡ��ʲ����� `set : xrange` ��



ʲ� ⻲��:
`set palette`, `set colorbox` � �
3 cbtics
?commands set cbtics
?commands unset cbtics
?commands show cbtics
?set cbtics
?unset cbtics
?show cbtics
?cbtics
?nocbtics
� � � ‫` ��ޥ‬set cbtics` � ϥ � � 顼�‫ܥ‬å � � � � � � � (� � � Ф � � դ � � � � � � )
� � ) � 椷�ܺ�٤ ����ϡ��ʲ����� `set : xtics` ��
C 2 � � � � � 뤬쥹륳�‫( ��ޥ‬shell)
2 shell
?commands shell
?shell
`shell` � � � ‫�ޥ‬ɤ � � � � � Ū � ʥ � � � � � � ư � � � ����`gnuplot` � � � � � ˤ ϡ �
VMS � Ǥ � `logout` � � U nix � ʤ � � `exit` � ʸ �� ⤷
� �END-OF-FILE �� �
MS-DOS � � OS/2 � ʤ � � `exit` � � � � Ϥ � � Ʋ � � � � � � �

� � � ‫` ��ޥ‬shell` � ϡ � � � � � ʳ � � � gnuplot � � � ‫�ޥ‬ɥ 饤���Τ Τ�Τ Τ


٤�
�뤬뤬뤷����������Ǥʤ����������ľ�d˥��‫��ޥ‬ʸ� � � � � � Ϥ � � � � � � � � ϡ �

� ‫` �ؿ‬system` � � � � � � � 硼�ȥ��å�`!` ����Ѥ��Ƥ��� $ �����ʲ�����:
`system` � �

� �:

shell
system "print previous_plot.ps"
! print previous_plot.ps
current_time = system("date")

2 splot
?commands splot
?splot
`splot` � � 3 � � � � � r � Τ � � � Υ � � ‫�ޥ‬ɤǤ � ( � � d � � ¸ � Τ Ǥ � � 礦����
� º ‫ݤ‬ˤϤ��� 2 �����‫ؤ‬μͱ�)������ϡ�`plot` ���‫�ޥ‬ɤ � 3 � � � � � Ǥ Ǥ � � �
`splot` � ϡ � � � � 줾��ñ � � � x, y, z � � � � � ��� � �� � Ѱ
$ � � ǡ � ` p lot` � � � դ
��Ƥ � � � � � 2 � � x2, y2 � Τ 褦�ʤ � Τ Ϥ � � � ����

2 ��� � � � 3 �� � � �r � �ξ � �ǻȤ� � � ¿ � � � Υ � � ‫����ץ‬ˤĤ��Ƥϡ��ʲ�����:


`plot` � �

� �:
splot {<ranges>}
{<iteration>}
<function> | {{<file name> | <datablock name>}
{datafile-modifiers}}
{<title-spec>} {with <style>}
{, {definitions{,}} <function> ...}
� � � ‫` ��ޥ‬splot` � ϡ � � 8��‫ؿ‬.� � � 줿�ǡ�� � � � � ���ϥǡ����ե����뤫
� � � ɤ ߹���%ǡ�� � � � � ���ϻ�p����¸��� 줿�p�դ��ǡ��� �֥�� å � � Υ ǡ �
� � � � � � � �����ǡ�� � � ե � � � � ��� ϡ � ��� � � � � � ǰ Ϥ � �ʸ � � � � Ȥ � � � �� Ϳ
� ‫ �ܤ‬1 ��‫��� � ؿ‬ ‫ޤ‬ο� Ǥ � � � � � � ���ѿ�⡼�� (parametric) �Ǥ� 3 �Ĥ�
� � � � Ȥ Ȥ � � � � � � � ����

� ǥ ե � � � Ȥ Ǥ ϡ � ` splot` � � � r 褵���ǡ�� � � β � � ˴ � t � � xy ��� � d � � ����


z � ΰ � �ֲ�����9 � � � xy ʿ�� ΰ � �ִ‫` ���ط‬set xyplane` � � � ѹ � � Ǥ � � ����
`splot` � μ ͱ Ƥ θ � � � � � ٤ ����ϡ��ʲ�����
`set view` � � ) � � Ǥ � � ܺ� :
`set view`, `set xyplane` � �

`splot` � � � ‫�ޥ‬ɤ � � ϰ Ϥ λ � � �ν �� ν`plot` � ξ � � Ʊ � � � � �


ννν�� � ν���ѿ�
� Ǥ
� ⡼ � � (parametric) � Ǥ ʤ � � � С � � ϰ ϻ � � � ϰʲ � � ν � ǡ �
splot [<xrange>][<yrange>][<zrange>] ...
� ���ѿ�⡼�� (parametric) �Ǥϡ��ϰϻ���ϰʲ��ν�� Ϳ � � ʤ ��� Ф���
� ����:
splot [<urange>][<vrange>][<xrange>][<yrange>][<zrange>] ...

`title` � � � ‫` �����ץ‬plot` � � Ʊ � � � Ǥ � � � ` w i th` � � `plot` � Ȥ ۤ�Ʊ����


� � � � � � 2 � � � � � � � r 襹������t� � Ȥ � � � 櫓�ǤϤ�������

`datafile` � � � ‫����ץ‬ˤϤ���˰㤤����������

� ���ѿ�⡼�� (parametric) ��‫�����ؿ‬Ѥ��ƶ�����d������ˡ�ˡ�����


�ե � � � � � '++' � � � � � Ѥ � � � xy ʿ��ʻҤ
γ ξ� � ɸ � � � $ � 8. � � � � � � � �
� � ����

�ʲ � � ⻲��: `show plot`, `set view map`, `sampling` � �


C 3 �ǡ � � � � ե � � � � � (datafile)
3 data-file
?commands splot datafile
?splot datafile
`plot` � � Ʊ � � � 褦�ˡ�`splot` �ǥե����뤫�饰��դ � 8. � Ǥ � � ����

� �:
splot '<file_name>' {binary <binary list>}
{{nonuniform} matrix}
{index <index list>}
{every <every list>}
{using <using list>}

`""` � � `"-"` � Ȥ � � ä � � � ��ʥ ե � � � � ��� � `plot` � � Ʊ� �


˵��� �������
� � � � � � : `special-filenames` � �

� � û � ˤ � � � � ȡ � ` b i nary` � � `matrix` � Ϥ � � Υ ǡ � � � � � � � ��ʷ d Ǥ � � 뤬뤬뤳�


Ȥ�
`index` � � ¿ � ť ǡ � � � � � � � ե � � � � 뤫��ɤΥǡ � � � � � � � � j � � � � r 褹�뤫��
`every` �ϳƥǡ � � � � � � 礫��ɤΥǡ � � � � � ( � � ʬ � � � � ) � � j � � � � r 褹�뤫��
`using` �ϳƥǡ � � � � Ԥ � � � ɤ Τ 褦�����j� ��� ���� �
������

`index` � � `every` � � � ‫` �����ץ‬plot` � ξ � � � Ʊ � � � 褦��


����

����
`using` � ⡢ `using` � Υ ꥹ� Ȥ� 2 �ĤǤʤ� 3 ��ɬ�‫פ‬Ǥ���Ȥ������Ȥ�
� � Ƥ � Ʊ� �Ǥ

���� �

`plot` � Υ � � ‫����ץ‬Ǥ��� `smooth` �� `splot` �Ǥ����ѤǤ����� ���


� �� ��
� � � � ` c ntrparam` � � `dgrid3d` � � � � ) � ¤ � � � Ƥ Ϥ � � ����ʿ�겼켫뤵�Τ � � � � � �
� դ � � � Ƥ � � ����

�ǡ � � � � ե � � � � � η | � � ϡ � � � � $ � (x,y,z) � � 3 � � � Ȥ Ǥ � � � ʳ � � ϡ � �ܼ�Ū � �
� `plot` � � Ʊ � � � Ǥ � � Ĥ ⤷� � � $ � � � ��
�� � � � ��С� � � � � � � � � z �Ȥ � � ƻ Ȥ �
� 졢�֥�� å� �ֹ椬 y � Ȥ � � ơ � � � � � � � x � Ϥ � � Υ ֥�å � � � Ǥ � �ֹ椬�Ȥ��
� 2 � � ���‫ޤ‬ � ġ � � � � 뤬뤬뤤�� �
4 � Ĥ � � �� ��
���
С � � � �� ` g nuplot` � �Ǹ Ϥ κ �
�� � � �� �pm3d plot � �οǤ� η ����Ȥ �� ������ Ĥ � � �� �(x,y,z) � � Ȥ ȸ � � �
3
� � � � ����¾ � �� �� � С�� ��
� � � � � ϰ � ��� � �� ��ȸ
� � �� ʤ� � � � ��������� `fit`
˸
�ǻȤ � � � � Ȥ � � � ǽ � Ǥ � � �

`splot` � Υ ǡ � � � � ե � � � � � Ǥ ϡ � 1 � Ԥ ζ � Ԥϥ ǡ � � � � Υ ֥�å �ʬ Υ � Ҥ Ǥ � � �
`splot` � ϸ ġ � � Υ ֥�å �� � � ‫ ��ؿ‬y-� � Ω � � � Ʊ � � � � Τ Ȥ � � ư � � � � ����
1 � Ԥ ζ � Ԥ � ʬ Υ � � � � Ƥ � � � � � Ʊ � Τ � � ʬ � Ƿ � Ф � 뤬뤬뤳�
ȤϤ�������t� �
� Υ ֥�å � � � t � � Ʊ � � � $ ο � � � ľ � 硢`gnuplot` � ϥ ֥�å� � � � Ǥ � � � � �
� ֥�å � � � � б � � � � � � � Ʊ � Τ � �ָ�Ω � � � � d � � ��������� "grid data" � �
� Ƥ Ф 졢����� � r 衢�������r � (`set contour`) � � � � � � � � �
(`set hidden3d`) � Ǥ ϡ � � � � η d Υ ǡ � � � � Ǥ � � 뤬뤬뤳 �
Ȥ�ɬ�‫פ‬Ȥʤ������ʲ�
� ⻲��: `splot grid_data`� �

3 � � � `splot` � ǡ � � � � ˤ � � � � Ƥ ϡ � � ���ѿ�⡼�� (`parametric`) �����


� � � 뤬뤬뤳 �
ȤϤ�Ϥ����‫פ‬Ǥ���
4 matrix
?commands plot datafile matrix
?commands splot datafile matrix
?plot datafile matrix
?splot datafile matrix
?binary matrix
?matrix
gnuplot � ϡ � matrix ( � � � � ) � | � � Υ ǡ � � � � � Ϥ � 2 � Ĥΰ ۤʤ � | � � Dz �

� 뤬뤬뤳 �
Ȥ��Ǥ������

��� � 1 � Ĥ ϡ � x, y � κ � ɸ � � � � � � �� Ȳ � � � � ��ͤǤ �
ơ������� �
� ΰ ��� ʳ ʻ�
� � matrix � Τ � � 줾������� M[i,j] �˳ � � � � Ƥ � � � ˡ � Ǥ � � �
��� � �Ƥ � � � x � � ɸ � � [0:NCOLS-1] � � � ϰ Ϥ � 0 � � Ǥ � � �
��� � �Ƥ � � � y � � ɸ � � [0:NROWS-1] � � � ϰ Ϥ � 0 � � Ǥ � � �
� � � � ϡ � � ƥ � � � � ȥ ǡ � � � � � � Ф � � Ƥ ϥ ǥե� � � Ȥ Ǥ �� � � � � Х � � ʥ � ǡ � � � � � � Ф �
� Ƥ Ϥ � � � � Ǥ Ϥ � � � ����
� � � � ɲ å � � � �  � ɤ ˤ Ĥ � � Ƥ ϰʲ � � � � � : `matrix uniform` � �

2 � � � ‫ܤ‬η| � � ϡ � � � � � ʻ x�
ʳ,Ҥ ǡ y� � ͤ �ɸ� � � < � � � � Ƥ � � � Ȳ � � �� ���
�ǡ � � � ϥ ǡ � � � � κ ǽ � ι Ԥ � y � � ɸ � � � ǽ � � � � � x � � ɸ � Ȥ ߤʤ � � ����
� Х � � ʥ � ǡ � � � � � � Ф � � Ƥ ϡ � 1 � � � ‫ܤ‬κǽ � � � � � Ǥ ϡ � � � � Ǥ ʤ � � � Ф � � � � ��
��� � �� ϡ`�b i nary matrix` � � Ϥ Ǥեϥ�ǥ� � Ȥ Ǥ � � � � � � ƥ � � � � � � � ϥ ǡ �
�� � � �Ф � � Ƥ � � ɲå� � � �  � � `nonuniform` � � ɬ � ‫פ‬ˤʤ�����
� � ˴ ‫��ؤ‬Ƥϰʲ� � � � � : `matrix nonuniform` � �

5 uniform
?commands plot datafile matrix uniform
?commands splot datafile matrix uniform
?datafile matrix uniform
?matrix uniform
?binary matrix uniform
�� � � �� �matrix ǡ � � � � � � r 褹�륳�‫�ޥ‬ɤ� � � :
splot 'file' matrix using 1:2:3 # �ƥ � � � � ȥ ǡ � � �
splot 'file' binary general using 1:2:3 # � Х � � ʥ � ǡ � � �

ʳҤ � � ͤ
� � � ʻmatrix
� ǡ � � �� � � �
ϡ �� � ƥ �֥�Ǥ
å� � � z � �� �
ϰ �Ԥ� ǰ
��� �� � ٤��ɤ�
� � �������ʤ � a �
z11 z12 z13 z14 ...
z21 z22 z23 z24 ...
z31 z32 z33 z34 ...
��
� ƥ � � � � ȥ ǡ � � � � � � Ф � � Ƥ ϡ � 1 � � � ‫��ܤ‬ǡ�� � � Ǥ ʤ � � � � ٥���ľ� 硢�ɲ�
�� � � � �  �
�� `columnheaders` � � Ȥ ä Ƥ � � $ � � � � � Ʊ � ˡ�
� �Ԥ
� ƹ �κǽ � � � � �
� � � ǡ � � � � Ǥ ʤ � � � ٥�Ǥ�����ϡ��ɲå������ `rowheaders` ����Ѥ�
�Ƥ � � $ � � � � � � ʲ � � ϡ � � � � � ξ � � � � � Ѥ � � � � � Ǥ � :
$DATA << EOD
xxx A B C D
aa z11 z12 z13 z14
bb z21 z22 z23 z24
cc z31 z32 z33 z34
EOD
plot $DATA matrix columnheaders rowheaders with image

� ƥ � � � � ȥ ǡ � � � � Ǥ ϡ � � � Ԥ 䥳���ȹԤ�����ǡ �����λ �����������ʶ ���


��� � (mesh) � �� �Ϥ ��������Ĥ
� � Τ � � Ȥ Ǥ � � � � � ` s p lot` � � � ‫�ޥ‬ɤ �
`index` � � � ‫�����ץ‬Ȥäƥե���������֤�� ͳ � j � � � Ǥ � � ����
5 nonuniform
?commands plot datafile matrix nonuniform
?commands splot datafile matrix nonuniform
?datafile matrix nonuniform
?matrix nonuniform
?binary matrix nonuniform
� � ϥ ǡ � � � � κ ǽ � ι Ԥ � y � � ɸ � � � d ����
� � ϥǡ � � � � κ ǽ � � � � � x � � ɸ � � � d ����
� Х � � ʥ � � � ϥ ǡ � � � � Ǥ ϡ � 1 � � � ‫ܤ‬κǽ � � � � � Ǥ � � � � Ǥ ʤ � � � Ф � � � � ����
( �ƥ � � � � ȥ ǡ � � � � Ǥ Ϥ � � � �ֹ���� 뤬뤬뤵����)� �

�� � � � �� �matrix ǡ � � � � � � r 褹�륳�‫�ޥ‬ɤ � � � :
splot 'file' nonuniform matrix using 1:2:3 # � ƥ � � � � ȥ ǡ � � �
splot 'file' binary matrix using 1:2:3 # �Х � � ʥ � ǡ � � �

� � ä ơ � � � � � �� ��matrix ǡ � � � � ι � ¤ � ϰʲ � � Τ 褦�ˤʤ���:

<N+1> <x0> <x1> <x2> ... <xN>


<y0> <z0,0> <z0,1> <z0,2> ... <z0,N>
<y1> <z1,0> <z1,1> <z1,2> ... <z1,N>
: : : : ... :

� � � � � ϰʲ � � Τ 褦�� 3 � Ĥο � � � � Ȥ � � Ѵ � � � � � ��:

<x0> <y0> <z0,0>


<x0> <y1> <z0,1>
<x0> <y2> <z0,2>
: : :
<x0> <yN> <z0,N>

<x1> <y0> <z1,0>


<x1> <y1> <z1,1>
: : :

��� � �ơ � � � � � � � 3 � Ĥο � � � � Ȥ � `gnuplot` � θ � Ω � � � � Ѵ � � � � 졢���θ �


`gnuplot` � � ��� � � � ˡ � � � r � λ Ĥ � � Ԥ � � ����
5 examples
?commands plot datafile matrix examples
?commands splot datafile matrix examples
?datafile matrix examples
?matrix examples
?binary matrix examples
� � � � � ٥��ȥ������ �֥ 뤬롼뤤�e � (C �ˤ � � ) � � `binary.c` � � � Ѱ դ � � �
Υ�
�� � ʥ � ǡ � � � � � � 뤬롼뤤�e � �
� Ƥ � � �����Х

int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)

�Ǥ � � � � � � � � Υ � �
�֥ 뤬롼뤤�e� � Ȥ � � 㤬 `bf_test.c` � Ȥ � � � � Ѱ դ � � � Ƥ � � ơ �
�� � � ϥǥ �ե � � � � � `demo/binary.dem` � Ѥ � ʣ � � Υ Х � � ʥ � ե � � � � � � 8 .
� � � ����

`plot` � Ǥ λ � � �ˡ :
plot `a.dat` matrix
plot `a.dat` matrix using 1:3
plot 'a.gpbin' {matrix} binary using 1:3
� � � � � � � � � � ι Ԥ � � r 褷��using 2:3 � Ȥ � � � � � � � � � � � � � r 衢 using 1:2
� ϡ � � $ κ � ɸ � � � r 褷��� (¿ʬ�����Ǥ�)�����‫` ����ץ‬every` � � Ŭ � Ѥ �
� 뤬뤬뤳 � <�Ū�˹Ԥ�������Ǥ������
Ȥ��

�� -- � ƥ � � � � ȥ ǡ � � � � ե � � � � � � � � � � μ � � γ � � � :
splot `a.dat` matrix using (1+$1):(1+$2*10):3

�� -- � ƥ � � � � ȥ ǡ � � � � ե � � � � � � � � � � � � � 3 �Ԥ� � r � :
plot 'a.dat' matrix using 1:3 every 1:999:1:2
( � Ԥ � 0 � � � � � � � � Τ ǡ � 3 � ǤϤ ʤ � � � 2 � � � � ����) � �

Gnuplot � ϡ � `array`, `record`, `format`, `filetype` � ʤ ɤ � general � �


� � � ʥ � | � � � � � � �� � 褦�ʥ�����  ɤ�Ĥ����˥��‫` ����ץ‬binary` � � �
� � � � � Ȥ ǡ � m a trix � Х � � ʥ � ե � � � � � � � ɤ ߹��ळ�Ȥ��Ǥ����������¾� � � Ѵ �
� Ѥ � general � Х � � ʥ ꥭ���� ɤϡ � matrix � Х � � ʥ � ե � � � � � ˤ � Ŭ � Ѥ Ǥ�
� � Ǥ � � 礦��(�ܺ٤ϡ��ʲ����� `binary : ��
general` )
C 4 �ǡ � � � � ե � � � � � � � �
4 example datafile
?commands splot datafile example
?splot datafile example
?splot example
�ʲ � � � 3 � � � � � ǡ � � � � ե � � � � � � � r � � ñ � � ʰ � Ĥ � � � Ǥ � � �

splot 'datafile.dat'

� � � � � ǡ � " d atafile.dat" � ϰʲ� � � ��Ȥ����:

# The valley of the Gnu.


0 0 10
0 1 10
0 2 10

1 0 10
1 1 5
1 2 10

2 0 10
2 1 1
2 2 10

3 0 10
3 1 0
3 2 10

��� � "datafile.dat" � � 4*3 � γʻ � ( � � � 줾�� 3 � $ � � � ʤ �֥�� å� � �


4 � Ĥι � ) � � � � d � � 뤬뤬뤳�
Ȥ���դ��Ʋ��������� (�֥�� å � ) � � 1 � Ԥ ζ � �
� Ƕ � � ‫���ڤ � ޤ‬

x � � � ��
��
Ϥ� �
� �줾��Υ֥�å � � � � � � � � � ˤ ʤ ä Ƥ � � � Ȥ���դ��Ʋ�������
� ⤷ y � � � � � � � �Ȥ
�� � � � � � � � �� � � � � �֤��� r 褹��ȡ�����
� ��ʾ
�� p
� ζ ��
��
� ֤��ǽǽ �
� � Ȥˤʤ�����

�ʻҾ �ǡ � � � (grid data) � � � Ф � � ơ � � ġ � � Υ ֥�å � � � � x � � � �� ���� � Ȥ


�� �
� Ƥ � � � ɬ � ‫פ‬Ϥ������ � ���
Ʊ�
�� �����y ��� �Ʊ
����� �
��� Ƥ���ɬ� ‫�פ‬
·
� � � � ����`gnuplot` � ϸ ġ � � Υ ֥�å � � � � � $ ο � � � � Ȥ � � � � � � Ȥ � ɬ
� ‫פ‬Ȥ��Ƥ���$��Ǥ�����������������Ƴ���Τ��Ѥ������������
� б � � � � � � $ � � � Ū � � j � � Ƿ �֤�ᡢ �� ��· � � � γ ʻ ҥǡ � � � � � � Ф � � � � ��� � r �
� ‫ؤ‬αƶd�ͽ � �ۤǤ����� ���
� �� � �ϥ������Х��������θ���ǥƥ��Ȥ��٤���
� � � 礦��
C 3 �ʻҾ �ǡ � � � (grid data)
3 grid data
?commands splot grid_data
?splot grid_data
?grid_data
3 � � � � � r � Τ � � � Υ 뤬롼뤤�e �ϡ � � ġ � � � � � � ‫ܤ‬γʻҤˤ����Ƥϰ�Ĥ�ɸ���$�
� � Ĥ Υ ǡ � � � � $ � � � � 뤬졼롢 �
Ȥ���� dγʻҾ�ǡ����Ѥ��߷‫���פ‬Ƥ � � �����ƥ�
� � � � � $ ϡ � � ‫���ؿ‬ �ɾ � d � � � �( �ʲ��� � � � : `set isosamples`) � � � ����
� ǡ � � � � ե � � � � � � � ɤ ߹��ळ�� ( �ʲ� � � � � : `splot datafile`) �ˤ � ä � 8.
� � � � ����" � � Ω � " � Ȥ � � � � � � դ ϴ ‫���ؿ‬Ф � � Ƥ ⡢ � ǡ � � � � � � Ф � � Ƥ � � � � ⤽
� ‫����ܤ‬ɽ����ΤȤ����Ѥ���� ‫�������ܤ‬ϡ�ɬ������ x, y˴ � ‫���ؤ‬Ĺ � �
� d Ǥ ʤ � � Ƥ � 褯��u,v � � � ���ѿ�ɽ������Ƥ�� ��ʤ����Ȥ���դ��Ʋ���
� � � � � � �� � � �� � � � � �
� � � � � ʲ � � � � � : `set isosamples` � �

� � � � � � � � ` g n uplot` � Ϥ � � Τ 褦�ʷ|���ɬ������ɬ�‫פ‬ȤϤ�������㤨�д �
� � ξ � � ϡ � ` s amples` � � `isosamples` � Ȱ � ä Ƥ � � Ƥ � � � � ��� ��
� �� �ʤ �
� a � x - � � Ω � � Τ � � a � 1 � ‫ �ܤ‬y-� � Ω � � ȸ � � ʤ � � � Τ � � � � � � Ĥ � � � � � Ȥ� �
� � � � �����ǡ�� � � ե � � � � � ξ � � ϡ � � ġ � � Υ ֥�å � � Τ Ф � Ĥ � � � � $ θ Ŀ �
t � � Ʊ � � � Ǥ � � � С � " � � Ω � � � " � ϥ ֥�å � � � � $ � � ӡ � " � � � Ǹ � Ω � " �ϳƥ �
� � å � � � � б � � � � � � � Ʊ � Τ � � ӡ � " � � � � " � � � � � Ȥ � � �����ɤd � ξ � � �
� ⡢ � � � � � � � � � � ӱ � � � � � � ⡼ � ɤ � � $ � � տ �����ե����‫ޥ‬åȤǤ��ä����

� Ȥ ϰ � ä � � r � � � � � � � Ȥˤʤ������Ф �Ĥ � � Τ � � � ǡ � � � � �
`set dgrid3d` �ˤ � ä � { � �
�ۤʤ � } �ʻ Ҿ � ǡ � � � � � � Ѵ � � � � � Ȥ��Ǥ������

� � � � � ˴ ‫��ؤ‬륳��� ɤϡ � y- � � Ω � � � � $ ȡ � � � � � � � б � � � � � � ٤� y-� � Ω � � �
� � � $ δ ֤��ʬ�˱�äƤ� z ��ĥ�Ϥ��¬���������äơ� x- �� Ω ��ˡ�
y-� � Ω � � Ȥ θ � � $ Ȥ Ϥ ʤ � ʤ � � 褦��ɸ � � � $ � � � � � 褦�ʶ� ��� � Ф � � Ƥ ϡ �
`splot` � � � � � � � Ϥ � � Τ 褦��ɸ�� � � $ ��� 뤹�뤳�Ȥˤʤ������ʲ� � �  � �
� ߤƲ�����:
set xrange [-pi/2:pi/2]; set yrange [-pi/2:pi/2]
set style function lp
set contour
set isosamples 10,10; set samples 10,10;
splot cos(x)*cos(y)
set samples 4,10; replot
set samples 10,4; replot

C 3 splot � ζ � � � (splot surfaces)


3 splot surfaces
?commands splot surfaces
?splot surfaces
`splot` � � � $ ν � � ��Ȥ��ơ����뤬뤬뤤 ϡ��������
�� �֤�
$�� Ȥˤ�äƶ���
� � ɽ � � � � � ��Ȥ��Ǥ������`plot` � � � Ʊ� ˡ�
ǡ$ � ��ϥ��� �ե � � � � 뤫���ɤ�
� � � Ȥ � Ǥ � � ����������� �줿�� �֤ Ǵ ‫���ؿ‬ �ɾ� d� � � � $ ��Ȥ�Ǥ������
�ʲ � � � � � : `set isosamples` � � � � ��ϡ � � � � $ � � ʬ � Ƿ �֤��� ȤǶ��Ū�˺��
� � �����ʲ� � � � � : `set surface` � � � � � � � Ƥ ��ξ�� � ��� � ` set hidden3d`
ϡ
� � � � Ʃ � $ ˤ � � � � ���
3 ‫ � � � � � � � � ޤ‬į � � � � � � ϡ � ` s e t view` � � � ѹ �� Ǥ �
� ‫���ޤ‬

� � � � ˡ � � ʻ Ҿ � Υ ǡ � � � � $ � � Ф � � Ƥ ϡ � ` s plot` � � Ʊ � � � � � � $��� � �֤��


� ��Ȥ� � Ǥ � (� ʲ� � � � � : `set contour`)� � � � � � � Ƥ� � � � � � � � � � � � � � � �
� � � � � Ȥ � � � � � ‫�������ޤ‬ ˡ ����η����ˤ Ͽ �ľ���ʬ���餫����� Ȥ� � �
� Ȥ � � � � � ‫� ( �ޤ‬ʲ� � � � � : `set cntrparam`) � � � ‫�ؿ‬ϡ���� `set isosamples`
� � `set samples` � Ƿ � � �� �ʻҾ � � ǡǡǡ � � � � Ȥ � � � ɾ� d� � � ‫��������ޤ‬
˽ � � � � � � Υ ǡ � � � � ϡ � ` d ata- file` � �� Ƥ� � � 褦�ʳʻ� � ǡ�
�� � � � ե�
�� � � � �
� å Ȥˤ � � 뤫�����뤤 ��ϳʻҥǡ� � � � � 8 . � � � � ( �ʲ � � � � � : `set dgrid3d`)
�Ȥ � � � � � � Ȥ � � �ʤ �
Ф � � � � � �ʤ � Ȥ‫��ޤ‬Ϥ�

� � � � � ϶ � ��ξ � � ɽ � � � � � ��Ȥ � � � � ‫ ͱ ˼ ��������ޤ‬Ƥ � � ��Ȥ � � � � �


� � � � � � �� �μͱƤϡ��ե ��� � � ˽��Ф ����Ȥ �Ǥ� � � � � � � �Ƥ�� � � `plot`
� Ǻ Ƥ � � ɤ ߹���� `plot` � Τ � 겼뤬줿 0��
� � ǽ � Ϥ � 8 � � � � � � � Ȥ � Ǥ � � ‫���ޤ‬
C 2 stats ( � � ñ � � � � ����)
2 stats (Statistical Summary)
?commands stats
?stats
?statistics
=filter
� �:
stats {<ranges>} 'filename' {matrix | using N{:M}} {name 'prefix'}
{{no}output}

� � � Υ � � ‫��ޥ‬ ɤϡ � � ե � � � � � � �1 ��2 ���‫ � � ޤ‬Υ ǡ � � � � δ � ñ � � � � �����


� � � � ‫���ޤ‬using � � � � Ҥ ϡ � p l ot � � � ‫�ޥ‬ɤ� Ʊ � � � d Dz ᤵ � �� ‫�����ޤ‬
`index`, `every`, `using` � � � � ˴ ٤ ܺ ���‫ؤ‬ˤĤ � � Ƥ ϰʲ� � � � � : `plot` � �
�ǡ � � � � $ ϡ � � � � β � � Ϥ � p � � xrange, yrange � ƥ ��ä ˽ ե � � 뤬륽줿 ˤ��� � � � � �
� � � � � ʲ � � � � � : `set xrange` � � � � � ξ � � � ϥ ǥ ե � � � Ȥ Ǥ ϥ � � � � � � � � �
Ϥ���
� � ‫` ��ޤ��������ޥ‬set print` � � � � ˻ Ȥ � � � � Ȥ ǽ � � Ϥ � ե � � � � � ˥ � % �
� 줿쥹뤿 Ȥ ��� � � ꡢ ��� ‫` ����ץ‬nooutput` � � Ȥ � � � � Ȥ ǽ � � Ϥ � � ʤ � � 褦�ˤ� � �
� Ȥ � � � � ‫���ޤ‬

� � ��� � Ϥ ˲ä � � � g n uplot � ϸ ġ � � � � � 3����� � Ĥ � � ѿ � 뤬롼뤤 ‫¸���פ‬


� ��
� ‫���ޤ‬
1 � � � ‫��ܤ‬ѿ � 뤬롼뤤 ‫פ‬ϡ��ɤ�ʥǡ������
� ¤�Ǥ��뤫 � � ���‫�ޤ‬:
@start table
STATS_records # �ϰ � � � Υ ǡ � � � � Ԥ � � � � (N)
STATS_outofrange # � ϰϳ � � Ȥ � � ƽ � 줿�Կ�
STATS_invalid # � ��/ �Դ�t / ��» �ǡ ����Ԥ ����
STATS_blank # � �Ԥ � � � �
STATS_blocks # �ե � � � � � � � Υ ǡ � � � � � index �֥�� å � � �
STATS_columns # �ǡ � � � � � Ƭ � Ԥ � � � �
#\begin{tabular}{|lcl|} \hline
#\verb@STATS_records@ & $~~N~~$ & � ϰ � � � Υ ǡ � � � � Ԥ � � � � \\
#\verb@STATS_outofrange@ & $~~~~~$ & � ϰϳ � � Ȥ � � ƽ � 줿�Կ� \\
#\verb@STATS_invalid@ & $~~~~~$ & ���/�Դ�t/��»�ǡ����Ԥ���� \\
#\verb@STATS_blank@ & $~~~~~$ & � � Ԥ � � � � \\
#\verb@STATS_blocks@ & $~~~~~$ & � ե � � � � � � � Υ ǡ � � � � � index
#\verb@STATS_columns@ & $~~~~~$ & � ǡ � � � � � Ƭ � Ԥ � � � � \\
%l l .
%�ѿ � @ � � � �
%_
%STATS_records@ �ϰ � � � Υ ǡ � � � � Ԥ � � � �
%STATS_outofrange@ �ϰϳ� � Ȥ � � ƽ � 줿�Կ�
%STATS_invalid @���/ �Դ �t / ��» �ǡ ����Ԥ ����
%STATS_blank@ � � Ԥ � � � �
%STATS_blocks@ �ե � � � � � � � Υ ǡ � � � � � index �֥�� å � � �
%STATS_columns@ �ǡ � � � � � Ƭ � Ԥ � � � �
@end table

2 � � � ‫��ܤ‬ѿ � 뤬롼뤤 ‫פ‬ϡ�


� 1 �Ĥ���Ρ��ϰ���Υǡ�����-�d�� d�
� dd ‫�����ޤ‬
��� � � y � � � �Ȥ
���ư� � � � � � ‫���ޤ‬y � � � � � � ư �� ‫ܤ‬ξ � � ϡ � � о ‫ݤ‬Ȥ � � � � ϰ �
� ˸³ � � Ϥ � � � ‫��ޤ‬ � �������
� � � � � � �ʤ � � � � � ϰ � [ymin:ymax] � � � � �
Ǥ� Τ
� Ȥ � � ‫���ޤ‬

2 �Ĥ � � � � Ʊ � � � � 1 � � � `stats` � � � ‫�ޥ‬ɤ Dz � � Ϥ � � � � � ϡ � � � � ѿ ��� �


"_x", "_y" � Ȥ � � � � � � � � � ɲ ä � � ‫����ޤ‬㤨��STATS_min_x � ϡ � 1 � � � ‫���ܤ‬
�� Υ ǡ � � � � κ Ǿ � � �
� ǡ�STATS_min_y
� � 2 ��� ‫���ܤ‬Υǡ����κǾ����� � ��
������
� ‫������ޤ‬ξ� 硢�$ � xrange � � yrange � � ξ � � Ǹ � � � � � � ��Ȥ �� դ 뤤�ˤ�
� � � ‫���ޤ‬

@start table
STATS_min # �ϰ � � � Υ ǡ � � � � $ κǾ � � �
STATS_max # �ϰ � � � Υ ǡ � � � � $ κ � � � � �
STATS_index_min # data[i] == STATS_min � Ȥ ʤ � ź � � i
STATS_index_max # data[i] == STATS_max � Ȥ ʤ � ź � � i
STATS_lo_quartile # � � � ( � � � � ) � � ʬ ��� � � � �
STATS_median # � � � �(� � � � � � � � ʬ ��� � � � � )
STATS_up_quartile # � 軰 ( � � � ) � � ʬ ��� � � � �
STATS_mean # �ϰ � � � Υ ǡ � � � � $ �ʿ � � � �
STATS_ssd # �ϰ � � � Υ ǡ � � � � $ � � � � � ɸ � � � к �
= sqrt( Sum[(y-ymean)^2] / (N-1) )
STATS_stddev # �ϰ � � � Υ ǡ � � � � $ � ɸ � � ɸ � � � к �
= sqrt( Sum[(y-ymean)^2] / N )
STATS_sum ��#
STATS_sumsq #
ʿ�� � �
STATS_skewness �ϰ � � � Υ ǡ � � � � $ � � � � �
#
STATS_kurtosis �ϰ � � � Υ ǡ � � � � $ � � � � �
#
STATS_adev �ϰ � � � Υ ǡ � � � � $ �ʿ � � � � � � � к �
#
STATS_mean_err #
ʿ�� �� � ɸ � � �
STATS_stddev_err ɸ� � � к � � � ɸ � � �
#
STATS_skewness_err � � � ٤�ɸ � � �
#
STATS_kurtosis_err � � � ٤�ɸ � � �
#
#\begin{tabular}{|lrll|} \hline
#\verb@STATS_min@ && $\min(y)$ & � ϰ � � � Υ ǡ � � � � $ κ Ǿ � � � \\
#\verb@STATS_max@ && $\max(y)$ & � ϰ � � � Υ ǡ � � � � $ κ � � � � � \\
#\verb@STATS_index_min@ && $i \mid y_i = \min(y)$ & data[i] == STATS\_min
�Ȥ ʤ � ź � � i \\
#\verb@STATS_index_max@ && $i \mid y_i = \max(y)$ & data[i] == STATS\_max
�Ȥ ʤ � ź � � i \\
#\verb@STATS_mean@ & $\bar{y}=$ & $\frac{1}{N}\sum{y}$ &
�ϰ � � � Υ ǡ � � � � $ �ʿ � � � � \\
#\verb@STATS_stddev@ & $\sigma_y=$ & $\sqrt{\frac{1}{N}{\sum{{(y-\bar{y})}^2}}}$ &
�ϰ � � � Υ ǡ � � � � $ � ɸ � � ɸ � � � к � \\
#\verb@STATS_ssd@ & $s_y=$ & $\sqrt{\frac{1}{N-1}{\sum{{(y-\bar{y})}^2}}}$ &
�ϰ � � � Υ ǡ � � � � $ � � � � � ɸ � � � к � \\
#\verb@STATS_lo_quartile@ && ~ & � � � ( � � � � ) � � ʬ ��� � � � � \\
#\verb@STATS_median@ && ~ & � � � �(� � � � � � � � ʬ ��� � � � � ) \\
#\verb@STATS_up_quartile@ && ~ & � 軰 ( � � � ) � � ʬ ��� � � � � \\
#\verb@STATS_sum@ && $\sum{y}$ & � � \\
#\verb@STATS_sumsq@ && $\sum{y^2}$ & ʿ�� � � \\
#\verb@STATS_skewness@ && $\frac{1}{N\sigma^3}\sum{(y-\bar{y})^3}$ &
�ϰ � � � Υ ǡ � � � � $ � � � � � \\
#\verb@STATS_kurtosis@ && $\frac{1}{N\sigma^4}\sum{(y-\bar{y})^4}$ &
�ϰ � � � Υ ǡ � � � � $ � � � � � \\
#\verb@STATS_adev@ && $\frac{1}{N}\sum{|{y}-\bar{y}|}$ &
�ϰ � � � Υ ǡ � � � � $ �ʿ � � � � � � � к � \\
#\verb@STATS_mean_err@ && $\sigma_y / \sqrt{N}$ & ʿ�� �� � ɸ � � � \\
#\verb@STATS_stddev_err@ && $\sigma_y / \sqrt{2N}$ & ɸ � � � к � � � ɸ � � � \\
#\verb@STATS_skewness_err@ && $\sqrt{6/N}$ & � � � ٤�ɸ � � � \\
#\verb@STATS_kurtosis_err@ && $\sqrt{24/N}$ & � � � ٤�ɸ � � � \\
%l c l .
%�ѿ � @ @� � � �
%_
%STATS_min@$min ( y )$@ �ϰ � � � Υ ǡ � � � � $ κ Ǿ � � �
%STATS_max@$max ( y )$@ �ϰ � � � Υ ǡ � � � � $ κ � � � � �
%STATS_index_min@$i~|~y sub i = min ( y )$@data[i] == STATS_min � Ȥ ʤ � ź � � i
%STATS_index_max@$i~|~y sub i = max ( y )$@data[i] == STATS_max � Ȥ ʤ � ź � � i
%STATS_lo_quartile@ @ � � � ( � � � � ) � � ʬ ��� � � � �
%STATS_median@ @ � � � �(� � � � � � � � ʬ ��� � � � � )
%STATS_up_quartile@ @ � 軰 ( � � � ) � � ʬ ��� � � � �
%STATS_mean@$y bar = 1 over N sum y$@ �ϰ � � � Υ ǡ � � � � $ � ʿ � � � �
%STATS_ssd@$sigma sub y = sqrt { 1 over { N - 1 } sum { ( y - y bar ) sup 2 } }
$ �ϰ � � � Υ ǡ � � � � $ � � � � � ɸ � � � к �
%STATS_stddev@$s sub y = sqrt { 1 over N sum { ( y - y bar ) sup 2 } }
$@ �ϰ � � � Υ ǡ � � � � $ � ɸ � � ɸ � � � к �
%STATS_sum@$sum y$@ � �
%STATS_sumsq@$sum y sup 2$@ʿ�� � �
%STATS_skewness@$1 over { N sigma sup 3} sum { left ( y - y bar right ) sup
3}$@ �ϰ � � � Υ ǡ � � � � $ � � � � �
%STATS_kurtosis@$1 over { N sigma sup 4} sum { left ( y - y bar right ) sup
4}$@ �ϰ � � � Υ ǡ � � � � $ � � � � �
%STATS_adev@$1 over N sum | y - y bar |$@ �ϰ � � � Υ ǡ � � � � $ � ʿ � � � � � � � к �
%STATS_mean_err@$sigma sub y / sqrt N$@ʿ�� �� � ɸ � � �
%STATS_stddev_err@$sigma sub y / sqrt { 2 N }$ @ɸ � � � к � � � ɸ � � �
%STATS_skewness_err@$sqrt { 6 / N }$@ � � � ٤�ɸ � � �
%STATS_kurtosis_err@$sqrt { 24 / N }$@ � � � ٤�ɸ � � �
@end table

3 � � � ‫��ܤ‬ѿ � 뤬롼뤤 ‫פ‬ϡ�


� 2 �Ĥ���Υǡ����β������ѤǤ���
@start table
STATS_correlation # x � � y � � � � � � � � ‫���ط‬
STATS_slope # � � ľ � y = Ax + B � η � � � A
STATS_slope_err # A �� �ԳΤ � � �
STATS_intercept # � � ľ � y = Ax + B � η � � � B
STATS_intercept_err # B �� �ԳΤ � � �
STATS_sumxy # ��� � (x*y � � � � )
� STATS_pos_min_y # y � κǾ � � Ϳ � ��
x� � �ͤ ɸ
� STATS_pos_max_y # y � κ � � � � Ϳ � ��
x� � �ͤ ɸ
#\begin{tabular}{|lll|} \hline
#\verb@STATS_correlation@ & & x � � y � � � � � � � � ‫\\ ���ط‬
#\verb@STATS_slope@ & & � � ľ � y = Ax + B � η � � � A \\
#\verb@STATS_slope_err@ & & A �� �ԳΤ � � � \\
#\verb@STATS_intercept@ & & � � ľ � y = Ax + B � η � � � B \\
#\verb@STATS_intercept_err@ & & B �� �ԳΤ � � � \\
#\verb@STATS_sumxy@ & & ��� � (x*y � � � � ) \\
#\verb@STATS_pos_min_y@
� & & y � κǾ � � Ϳ � �� x� � �ͤ ɸ \\
#\verb@STATS_pos_max_y@
� & & y � κ � � � � Ϳ � �� x� � � ͤ ɸ \\
%l l .
%�ѿ � @ � � � �
%_
%STATS_correlation@x � � y � � � � � � � � ‫���ط‬
%STATS_slope@ � � ľ � $y = A x + B$ � η � � � A
%STATS_slope_err@A � � � Գ Τ � � �
%STATS_intercept@ � � ľ � $y = A x + B$ � η � � � B
%STATS_intercept_err@B � � � Գ Τ � � �
%STATS_sumxy@ � � � � ($x times y$ � � � � ) , $sum x~y$
%STATS_pos_min_y@y � κǾ � � Ϳ � ��
� x� � �ͤ ɸ
%STATS_pos_max_y@y � κ � � � � Ϳ � ��
� x� � �ͤ ɸ
@end table

`matrix` � � � � � �� �� ȡ�t�Ƥι������Ǥ����β��Ϥ��о ‫ݤ‬ˤʤ � ‫�����ޤ‬


�ι � � � Υ � � � � � � ϡ � � ѿ � STATS_size_x � � STATS_size_y � � � � ¸ � � � � ‫���ޤ‬

=columnheader
2 � İʾ � Υ ե � � � � � � ǡ � � � � �������
� � Ǥ � � Τ ǡ � � ѿ � Υ ǥե � � � Ȥ � � � Ƭ � � � Ǥ �
�� � "STATS" � �� � � ‫����ץ‬
`name` � ǥ 桼������� �� �ʸ � � � � � �֤������� ��Ȥ � � � � � � 褦�ˤʤ ä Ƥ �
� ‫����ޤ‬㤨�С� � �ۤʤ � 2 � ĤΥ ե � � � � � Τ � � 줾���2 � � � ‫ܤ‬Υǡ�����ʿ����
� ϰʲ� � Τ 褦�ˤ� � � � � Ӥ � � � ‫�ޤ‬:
stats "file1.dat" using 2 name "A"
stats "file2.dat" using 2 name "B"
if (A_mean < B_mean) {...}
��� � � � � `columnheader` � � ‫` �ؿ‬columnheader(N)` �ˤ � ꡢ�ǡ����ե�
��� � � 1 � � � ‫�����ܤ‬$ � � � � � � Ƥ ˤ � � � � Ƭ � � � � 8 . � � � ��Ȥ � � � � ‫�ޤ‬:
do for [COL=5:8] { stats 'datafile' using COL name columnheader }

�STATS_index_xxx � Ǽ � � � � � � ź � � � � �ϡ � ��
p lot �� ‫�ޥ‬ɤ� � � 0 � � � � � � ($0)
�� � � �� �
б�� � � � � ǽ � � �$ �ź� � � 0� � � Ǹ � � � $ � ź � � � N-1 � Ȥ ʤ � ‫���ޤ‬

�� � � � � Ȼ � ʬ ��� � � �
���� õ
�� ‫�ݤ‬

ϥǡ ����������Ȥ $ ����� ��� N ����
� �ξ � � ϡ � � � � � (N+1)/2 � � � ‫���ܤ‬� � �� �
� ��� � � � Ȥ �N � � ��� ξ� �ϡ�
N/2 � � � ‫( �ܤ‬N+2)/2 � � � ‫ � ���ܤ‬ʿ � �� ��� � � �� �� �� �� ����
Ȥ �� �� �
� ‫�����ޤ‬ʬ��� � � � �
� � Ʊ� � � � �� ‫��� ˽ޤ‬

� � � θ � � � r � � � � � � Ĥ � � 뤬뤿뤿� ‫` ��ޥ‬stats` � � � � � Ѥ � � � � � ˤ Ĥ � � �

˥��
�� ϡ � �ʲ � � �Ȥ�
�$ � Ƥ � � � � � �
^ <a href="http://www.gnuplot.info/demo/stats.html">
stats.dem � �
^ </a>

� � � ߤΥС � � � � � � � gnuplot � � `stats` � � � ‫�ޥ‬ɤǤϡ � � � � ե � � � � � �


(`set xdata time` � � `set ydata time`) � � � ʤ � � � � � � п � Υ ǡ � � � � � �
� � � � � ‫ � )�������ޤ‬¤ ϡ � � � � � Υ С � � � � � � Ǵ � � ¤ � � � � Ǥ � � 礦��

2 system
?commands system
?system
� �:
system "command string"
! command string
output = system("command string")
show variable GPVAL_SYSTEM

`system "command"` � ϡ � � � � ‫ڥ‬줿졼뤬 ƥ�


� �
��ǥΥ
�� ���ƥ� ե���ȥ�������
�ӽФ � � � � � � Υ � � �֥ ‫����ץ‬Ȥ � � � "command" � � ¹ Ԥ � � ‫�ޤ����ؿ‬Ȥ � � �
`system("command")` � � Ƥ ӽ Ф � � � � � � ϡ � � � � Υ � � �֥ ‫�����ץ‬ɸ � � � � Ϥ � � �
� �ʸ � � ȥ � � � � ʸ
��� � �Ȥ� � � � �֤��� ‫����ޤ‬Ǹ �˲ � � Ԥ � � Ĥ� � Ƥ � � � � � ϡ �
�� � � Ϸ � �ʸ � � �� �Ͻ ��� � � ‫����ޤ‬ʲ� � ⻲�� : `backquotes`� �

�� �Υ� � �֥ ‫����ץ‬ν � λ � � � � � ɤ ϡ � � ѿ � GPVAL_SYSTEM_ERRNO � �


GPVAL_SYSTEM_ERRMSG � � � � ¸ � � � � ‫ޤ����������� � ⤷���ޥ‬ ��ʸ� � � � 2 � �
�ʾ � Υ ‫�����ץ‬ƤӽФ ��Ƥ�����ϡ�� � � Τ �� dΰ � ĤΥ ‫���ץ‬ब��
� 顼�� Ф � � Ƥ ⡢ ". � � " � � �֤���� ǽ-� � � � � ��Ȥ � � � դ � � Ƥ � � $ � � � � � � 㤨
� С � f ile = system("ls -1 *.plt | tail -1") � ϡ � *.plt � ե � � � � 뤬��
Ĥ�
�ʤ� � � � Ǥ � ". � � " � � �֤�� ‫�������ޤ‬ϡ�`ls` �����Ԥ��Ƥ� `tail` ��.
� � 뤫�� �� � �

� � � � � ƥ ॳ� ‫�ޥ‬ɤϡ � �ʲ � � ˼ � � � � 褦�˳��� ‫ ��ؿ‬gnuplot � ˼ � � � � � � �


� � � � � Ѥ Ǥ � � ‫���������ޤ‬Ϥ�� δ ‫��ؿ‬ƤӽФ �� ٤���Υ � � �֥ ‫)�����ץ‬Ū
� � 8 . � � � ��Ȥˤʤ � ‫�����ޤ‬äơ���������Ƥ ӽ Ф ���ǽ - �Τ ��� ‫�ؿ‬ϡ�
ưŪ� 饤�֥�᤹�꤫ �� � 饵� �֥ 뤬롼뤤 � ���ľ �
e �Ȥ �� ƤӽФ �� dǼ ���� � � � � �
� � � � 礦��� ʲ� � � � � : `import`, `plugin.dem` � �

f(x) = real(system(sprintf("somecommand %f", x)))


2 test
?commands test
?test palette
?test
� � � Υ � � ‫�ޥ‬ɤϡ � � � � Ϸ | � � � ѥ � å Ȥ Ǥ ɤ Τ 褦�ʽ ��Ϥ��Ԥ ʤ�� 뤫������
� ƥ � � Ȥ � ɽ � � � � � ‫���ޤ‬

� �:
test {terminal | palette}

`test` � ‫` ���ޤ‬test terminal` � ϡ � � � � �� � � � � ν � � Ϸ | � (`terminal`) � �


� Ȥ � � � � � μ � � �� $μ � � ‫��������ޤ‬Ѳ�ǽ�ʤ���¾���r��8.���‫���ޤ‬

`test palette` � ϡ � R(z),G(z),B(z) (0<=z<=1) � ξ � �֤��� r 褷�‫��������ޤ‬


� ϸ � � ߤΥ � � 顼�ѥ � å � (`palette`) � � RGB .ʬ� �� �
��� ‫���ޤ����ޤ‬RGB � �
��� � � � Ĵ � ˼ � � � � NTSC � � � � � � Ѥ � � Ʒ �����줿���� ٤��r 褷�‫�������ޤ‬
� б � � ‫��ط‬ϡ�$PALETTE �Ȥ����p�Υǡ����֥�� å � �ˤ � � � � ‫���ޤ�ޤ‬
2 toggle
?commands toggle
?toggle
� �:
toggle {<plotno> | "plottitle" | all}

� � � Υ � � ‫�ޥ‬ɤϡ � � � � ÷ � � � � Ϸ | � (qt, wxt, x11) � � ɽ � � � � � � Ƥ � � 뤬쥹볰 դ�




key � � � � ȥ � � Ǻ � � � � � å � � � � � � Τ � Ʊ � � � ��� Ϳ �� � ‫������ޤ‬ʤ � a � � � � Υ �
� � դ � ɽ � � � � � � Ƥ � � � Ф � � � � ä � � � � � � � դ � � ä � � Ƥ � � � к Ƥ � ɽ � � � � � ‫���ޤ‬
`toggle all` � ϡ � � ‫ۥ‬åȥ� � � "i" � � Ʊ ��� � � ʥ �� � �դ� � � ��
٤Ƥ˺��Ѥ�� ‫���ޤ‬
`toggle "title"` � η| � � ϡ � � � � � դ Υ � � � � ȥ � ȴ � t � ˰ � � ‫��פ‬뤬륽줿 ���
ȥ��
� � � �� � ɬ � ‫`�����פ�����ޤ‬toggle "ti*"` � ξ � � ϡ � � � � � դ Υ � � � � ȥ � �
'*' � � p � � � � ʬ � � � � � ‫���פ‬ǽ � Υ � � � դ ˺ � � Ѥ � � ߤ������‫ޤ‬ν � � Ϸ | � � � � � � �
� � � Ǥ ʤ � � � � ϡ � � � � ‫ ��ޥ‬toggle �ϲ � � ⤷ � ‫���ޤ‬
2 undefine
?commands undefine
?undefine
1 � ġ � � ‫���ޤ‬ʣ�����zѤ ߤΥ 桼��� ѿ����‫�������ޤ‬ϡ����ƥ�
� Ȥ � ‫�ޤ‬褦�ʥ�����‫ץ‬Ȥξ � �֤�� ꥻ�åȤ � � � Τ � � � � � � � � 礦��

� ѿ ���ˤϡ � � Ǹ � � ʸ � � Ȥ � � ƥ 磻�� ɥ�����ʸ �� `*` ��Ȥ����Ȥ��Ǥ���


� � � � � 磻�� ɥ�����ʸ���Ĥ ���ȡ�������p ����ʬ�ǻ Ϥ ‫ޤ‬뤹�٤Ƥ���
� � � � � ‫�������ޤ‬ϡ��������Ƭ���ȤäƤ���ʣ����ѿ������
� � � � � � � � � 礦����� $ � � � � 磻�� ɥ�����ʸ����ѿ��κǸ�ˤ����Ȥ��ʤ�
� � � Ȥ � � � դ � � Ƥ � � $ � � � � � ` u n define` �˥ 磻��ɥ�����ʸ��Τ ߤ���Ȥ �
� � Ϳ �� � � � � � ϲ � � � ⤷ ‫���ޤ‬

� �:

undefine foo foo1 foo2


if (!exists("foo")) load "initialize.gp"

bar = 1; bar1 = 2; bar2 = 3


undefine bar* # 3 �Ĥ � � ѿ � � t � � � �

2 unset
?commands unset
?unset
=iteration
� � � ‫` ��ޥ‬set` � � � � � �� ���� ‫����ץ‬ϡ�������б����� `unset` ���‫��ޥ‬
�ˤ � ä Ƥ � � Υ ǥ ե � � � Ȥ � � � �� ᤹ � ���
Ȥ� � � ǽ � � � �
` u�n set` �� ‫�ޥ‬ɤˤϷ�
� � � ֤�������Ѥ Ǥ � � ‫����ޤ‬ʲ� � � � � : `plot for` � �

� �:
set xtics mirror rotate by -45 0,10,100
...
unset xtics

# ֹ�� 100 � � � � 200 � ‫�ޤ‬Υ� ٥�� unset


unset for [i=100:200] label i
3 linetype
?unset linetype
� �:
unset linetype N
� � p � � ñ � � � � � � ˳ � � � � Ƥ � � � � ٤Ƥ��� - ���� ‫������ޤ‬θ�ˤ � � � � � �
� � � � Ѥ � � � � � 硢�� -� � � � � ϸ � � ߤν � � Ϸ | � � ˥ ǥ ե � � � Ȥ � � � � �� �Ƥ����
� Τ � � � Ѥ � � ‫ �ޤ‬p (� � � ʤ � � gnuplot 4.6 � � � p � Υ С � � � � � � � �� � $äp ��
�� � � � � ǥե � � � Ȥ � � � � ) � �
3 monochrome
?unset monochrome
� � ����p� � � � � � � � � � � 顼������‫�ޤ‬ ��‫`���ڤ��ؤ‬set color` � � Ʊ � � �
��� �
3 output
?unset output
ʣ��Υ ���դ ��Ĥ ν ��ϥ ե �����˽� � Ф ����Ȥ ��Ǥ �����Ϸ | ��⤢ ���
� ǡ � � r � θ � ǽ � � ϥ ե � � � � � � ư Ū � ˤ � � Ĥ � � ‫��ޤ‬ � ��
� äƤ�� Υ ե���� � �
� � t � ˰ � � � �뤬뤿뤿 �� � ‫ � <��ޤ‬Ū � � `unset out` � � `set output`
ˤϡ�
� Ȥ � � ��� Ȥ �p � Υ ե � � � � � � � Ĥ � � � � � ǿ � � � � � � ե � � � � � �� � $ Ƥ � � �� � � �
3 terminal
?unset terminal
� ‫����ץ‬κǽ � �� �� �ǥˤ ʤ � �
p ե�
ν � � Ȥ ��Ϸ | ��ϡ� �ġ� �Υ� � � � ƥ �Ķ� � �
gnuplot � Υ � � � ѥ � � 륪�‫���ץ‬ � ����
� � � ӴĶ��ѿ� GNUTERM �˰�¸���
‫���ޤ‬
� � � Υ ǥ ե � � � Ȥ � � � � Ǥ � � ä Ƥ ⡢ gnuplot � Ϥ � � � � � � � � � ѿ � GNUTERM � � � � ¸
� � � Ƥ � � ‫` ��ޤ������ޥ‬unset terminal` � ϡ � � � � ν � � � � � � Ϸ | � � � � � �
� � � � ϡ � ` s et terminal GNUTERM` � Ȥ � � ��Ȥ � Ʊ � � � Ǥ � � � � � � � � � � � G N U TERM
� � � � � Ϸ | ��� θ � � terminal � � � ‫�ץ�����ޤ‬Ǥ � � � � � ϡ � � � � � � � � � �
`set terminal @GNUTERM` � Ȥ � � � ɬ � ‫���פ�����ޤ‬
2 update
?commands update
?update
� � � : � � � Υ � � ‫�ޥ‬ɤϡ � � � 侩�‫פ‬Ǥ � � � � � � � � `save fit` � � � � Ѥ � � Ƥ � � �
��� � � �

� � � ‫` ��ޥ‬update` � ϡ � � С � � � � � � 5.2 � Ǥ ϸ � � � ߴ�-� Τ � � � ˻ Ĥ � � Ƥ � � �


� ‫���������ޤ‬Ϻ���ͽ ��Ǥ ���

� �:
update <filename> {<filename>}
� � � Υ � � ‫�ޥ‬ɤϡ � Ϳ �� � � 줿��
ե� � � � � � � � ¸ � � � � Ƥ � � � � ѿ �
��ߤ�� �˹
�� �
� � � ‫�����������ޤ‬ Ͻ��� ��
Υե������Ʊ���
� Ǥ �
� ʤ���
Ф ���� ‫��ޤ‬� � ʲ�
� � � � : `fit` � �

� � � Υ ե � � � � 뤬¸ � ߤ��ʤ � � � 硢������ d � � � Ƥ � � 뤹�٤ƤΥ 桼��� ѿ���


� �� ����ե� � � � � � � . � � � ‫������ޤ‬Ǹ �� � �
fit ǻ � � Ѥ � � ʤ ���
ä� ѿ � ˤ �
� � � ٤� "#FIXED" � Ȱ � � Ĥ � � Ƥ � � ‫�������ޤ‬ϡ�fit �ѿ�θ��ߤ�� � � ǻ �
� � � � � � ˡ � � � � 뤤�Ͻ�λ/���Ǥ�����Ƥ Ϥ��Ƽ¹Ԥ�� 뤬뤿뤿 ����
¸�
�� �Ƥ � � �
�Τ p� � � p ��
p �� � p
ѤǤ

2 � � � ‫ܤ‬Υե� � � � ��� � � � �� � ȡ����Υѥ��� ��ե� � � � � � � ѹ � � � � � � � 2


� � � ‫ܤ‬Υե� � � � � � � � ˹ � � � � � � 줿��
� ��Ф � � � � ‫���ޤ‬

� � � � � Ǥ ʤ � � � С � � � � �� �� ե � � � � 뤬¸ � ߤ���� `gnuplot` � Ϥ � � Υ ե � � � � �
�� `.old` ��Ĥ��ƥե��������ѹ���������� �� ե� � � � ��� Υ ե � � � � � �
� � � � � ˳ � � � ľ � � � ‫����ޤ‬Ĥ ‫ޤ‬ꡢ"`update 'fred'`" � Ȥ � � � ȡ � � � � � �
"`!rename fred fred.old; update 'fred.old' 'fred'`" � Ȥ � � � � � � Ȥ � Ʊ � � � �
� Ȥˤ ʤ � ‫���ޤ‬
2 While
?while
?commands while
� �:
while (<expr>) {
<commands>
}
� � � � ϡ � � � � ‫�ޥ‬ɤΥ֥�� å � � � < e xpr> � � 0 � Ǥ�ʤ � � �� ɾ
d��� � �֡������
� ֤��¹Ԥ��‫������ޤ‬Υ� � ‫�ޥ‬ɤϡ � � Ť � � | � ( � � � ä � � ʤ � ) � � if/else � �ʸ
� Ȱ � � ˻Ȥ � � � � Ȥ Ϥ Ǥ � � ‫��ޤ‬ʲ� � � � ⻲�� : `do`, `continue`, `break` � �
C 1 � � � Ϸ | � (Terminal)
1 Terminal types
^ <h2> Terminal Types </h2>
C 2 � � � Ϸ| � � ΰ � � �
2 complete list of terminals
?complete list of terminals
?terminal
?term
gnuplot � Ϥ � Ȥ Ƥ � ¿ � � � ν � � Ϸ | � � �‫��ݡ‬Ȥ � � Ƥ � � ‫��������ޤ‬ϡ�Ŭ�‫�ڤ‬
� � � Ϸ | � � � ɬ � ‫פ‬ʤ 鵡 ǽ � � � ѹ � � � � � � ɲ å � � ‫�����ץ‬Ĥ � � � � j � � �� �
�ˤ � � � � � �� � ‫����ޤ‬ʲ� � � � � : `set terminal` � �

� � � � ʸ � � ϡ � � � � ʤ � � Υ � � � � ƥ � � ǽ � � � � �ꤪ��� ӥ� � �ȡ�� � �뤬�ʤ � � � ʤ �


���
�ä � � � � � � � � � Ѥ Ǥ � � ʤ � � � � Ϸ | � � ˤ Ĥ � � Ƥ � � Ҥ
����Ƥ � � � 뤫��� Τ � ‫���ޤ‬
� �� ��
ȡ
���� � 뤵���줿� ġ � � � gnuplot � ǡ � � ɤ ν � � Ϸ | � � � �� �
p Τʤp� ΰ � � � �
� � � � ˤ ϡ � � � � ‫����ץ‬ � ��
� Ĥ� � � � � 'set terminal'
� � � ǤäƤ � � $ � � � � �

( � � � � : � � � � � � ����� ˴‫ ��ޤޤ‬terminal � Υ ‫˥ޥ‬奢�� ϡ����ΰ���ˤϤ�


� � � � � Ϸ | � � Τ � Τ � ‫�ޤޤ‬Ƥ�� 뤫�⤷ ��‫��ޤ‬
� ���
� �դˤ� � ΰ � � � � � ν � � Ϸ �
� � � ǥ ‫˥ޥ‬奢�뤬� ʤ � � � Τ ⤢ � 뤫�⤷��‫)���ޤ‬

`legacy` � Ȱ � Τ Ĥ � � � � � � Ϸ | � � ϡ � � Ƕ � Υ С � � � � � � � gnuplot � Ǥ ϥǥ ե �
� � Ȥ Ǥ ϥ ӥ � ɤ � � 줿뤬롢�
º�
�‫ݤ‬ˤϻ� � Ѥ Ǥ � � ʤ � � � � ⤷ � � ‫���ޤ‬
<3 -- t �Ƥ ν � � ϥ ɥ 饤�Фι � � ‫ܤ‬ϡ�.trm �ե����뤫���� ĥ � ä � � � � � ‫���ޤ‬
C 1 � Х � (Bugs)
1 Bugs
?bugs
� Х � � � ‫��ݡ‬Ȥ � e-mail � � gnuplot-bugs � ����ꥹ�Ȥ � � � 뤫��� ‫���ޤ‬
SourceForge � � gnuplot
�‫ � � � �ݡ‬ʤ������Ѥ��Ƥ ��� gnuplot
�ʤ�Ф ��Υ Х ���¾ ‫ � � �ڤ‬ƥ� � ȥ� � ���
‫ץ‬Ȥ � � � ä Ƥ � � $ � � � � � � ʲ � � � � � :
`seeking-assistance` ��

C 2 �Τ ��Ƥ ���) �� (limitations)


2 known limitations
`do` �� `while` �뤬롼뤤 ‫ � � � � � ���פ‬ǥ� � �饤��
ǡ� � � (� � : plot '-' ...)
��Ȥ ����Ȥ Ϥ Ǥ �� ‫� � �ޤ‬

=gamma
=bessel
=timefmt
=nohidden3d

���� �� ȥ٥å ��� ‫ � �ؿ‬ʣ � ǿ� � �


‫ؿ‬ ��‫ � �ݡ‬Ȥ � � Ƥ � � ‫� � �ޤ‬

" ����" �Ȥ ��ƻ �� ��줿�� ɸ � � 24 � � � � � ‫� � �ޤ��֤��ޤ‬

��� � ѿ � ζ� � : `nohidden3d` � ϡ� t� � Ū� � � � � � Ǥ � � � `set hidden3d` � �


�ġ ��Υ ���դ ��Ф ����Ƚ � 뤬뤿뤿 �
Υ��� ‫ � � � �ץ‬Ǥ����������� �� � ѿ � ζ�
� (parametric) ���Ф ��Ƥ ϵ �ǽ ��� ‫� � �ޤ‬
��� ‫` � �ޥ‬plot` ��η ��� �֤� (iteration) �ϡ �� �� � ѿ � ζ� � � � � Ф� � Ƥ�
��ǽ ��� ‫� � �ޤ‬

�X11 ���Ϸ | �: UTF-8 �ե ���Ȥ �j � � ���Ǥ ���



��� ٤Ƥ � x11 � r 襦���� ɥ����Ф��ơ����٤ˤ� 1 � ĤΥ � � 顼�ѥ � å Ȥ Τ �
��p��
��
p�Ǥ�������ϡ
����� � ��� � p �ۤʤ�ѥ�å Ȥ ���Ѥ����r �� ‫ � �ޤ‬multiplot ��
�� x11 ��Ǥ�5 ����ɽ ������ʤ����Ȥ ��� ��� ‫� � �ޤ‬

Qt ���Ϸ | �: 3 �����Ǥ�¿ �ѷ d ����β �ž ��� ٤� � ʤ��ǽ - ������ ‫� � � � �ޤ‬


����� Qt �Υ ��% � � ⡼��(Qt �����= � � Ȥ��Ƥ �� $ ���) � ���
��
˶� �
��¸ ��� ‫� � �ޤ‬

`raise` �� `lower` �ε �ǽ �Ϥ �� ‫ � � �ޤ‬ƤˤǤ � � ‫� � �ޤ‬

C 2 ���� 饤�֥� � (External libraries)


2 External libraries
?bugs external_libraries
=libgd
=svgalib
=locale
=internationalization
=pdf
���� 饤�֥� � GD (PNG/JPEG/GIF �ɥ 饤�Фǻ ���) :
�С ������ 2.0.33 �‫ޤ‬Ǥ� libgd �ˤ ϡ�Adobe �� Symbol �ե���Ȥ�ʸ ���
�‫ޥ‬å� �ԥ‫ � � ��˴ ؤ‬뤤��� Ĥ ��ΥХ ������� ‫ � � � � � � �ޤ������ޤ‬e���� ꥢ����
�줿�ʬ�������Х ��ξ �γ Ѥȸ�����ˡ �� 饤�֥� � � �
� �
� �
� �
� �
� �
� �꤬ ơ� � �
���ե ���Ȥ �������Ȥ ⤢ �� ‫� � � � �ޤ‬

���� 饤�֥� � PDFlib (PDF �ɥ 饤�Фǻ ���) :


gnuplot �� libpdf �ΥС ������ 4, 5, 6 �Τ ���� 줫 � Ǥ� �� ��
�‫�����ޤ‬
�����������ϥ С ������ˤ �ä ƥ ѥ�� ‫ ��פ‬줿���� Ϥ ν � � � � ä Ƥ � � ‫�ޤ‬
�Τ ǡ ��ѥ�� ‫ �פ‬Ȥä � PDF � � � � Ϥ � � � gnuplot � � � � � � ‫ץ‬Ȥϡ � PDFlib � Τ �
��С������Ǥ$������d���ư���ʤ����⤷�� ‫���ޤ‬

����饤�֥�� svgalib (linux, vgadl �ɥ 饤�Фǻ���):


����� gnuplot �� root �� setuid (��!) ������Ȥ � � ‫׵‬ᤷ� ‫ ������ޤ‬ӥ�
�������ɤ� X11 �ǻ��Ѥ���뤬쥹볰 �
ե��� å� � ɥ饤�p
�����
�¿ p�� ΥХ�����
��‫���ޤ‬
��‫)�����������( �ݲ‬:
�gnuplot �ϡ����� Ϥο��� ����ʸ����
�Υ  ����˰� ¸�������) ��
��C �� � ����
� � � 饤�֥�� ˴‫ ��ޤޤ‬setlocale()
��������� �-�pp p 䡢����� 뷿쵭뤹
ǽ�Υ��‫ ��ݡ‬ȤΥ � ٥� (�㤨�п��� 3 ����
�ζ�� ‫ �ڤ‬ʸ�� ʤ � ) � ʤɤϡ ���� ʤ �� Υ ���ԥ 塼���������� ‫��ݲ‬Υ��‫�ݡ‬
�Ȥ��‫ٹ‬礤�˰�¸��� ‫���ޤ‬

You might also like