Professional Documents
Culture Documents
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
���
Υ��եȥ������
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 � � 뤳 �Ȥ�Ǥ�����ޤ
set title "My First Plot"; plot 'data'; print "all done!"
Ϳ�
gnuplot ���� 뤬쥹륪�����ץϡ�����ޥɹԤΤɤ����֤�� Ƥ�� ���
����ޤ
� ��
�
������ϻ���� ���¹ ˼ Ԥ� � 졢 Ʊ��� -e ��� �����ץǤ�դΥ���ޥɤ�Ϳ
���뤳�Ȥ�Ǥ�������ޤ:
gnuplot file1.in -e "reset" file2.in
gnuplot �桼���Ȥ��Ƥμ���ɬ�פʤ顢�ʲ��Υ˥塼�������
롼 ����פѤ�
�Ƥ��$�����
comp.graphics.apps.gnuplot
�ꥹ�Ȥ˥�� ���
gnuplot ����� �ꥹ��
p�ˡ��ǽ�ˤ��Υ����
�˻��ä���ɬ�����פ뤳� � Ȥ���դ��Ƥ��$���������ϡ����ѥ�����餹
���Ȥ��ݻ뤬뤿뤿���ɬ�פǤ���
�ꥹ�ȥ��С��ؤΥ��뤬쥹륢�ɥ 쥹:
�����
gnuplot-info@lists.sourceforge.net
��ȯ�Ǥ���� ���ؤ
�� � ꥹ��:
gnuplot-beta@lists.sourceforge.net
�����������Ƥ���Ȥ��ϡ����ʤ������Ѥ��Ƥ��� gnuplot
�ΥС������
���Ϸ|������ڥ줿졼뤬�ƥ��
� �����ƥ
� � � � � ��Ȥ��ä�t�Ƥξ����
�ޤ褦�ˤ���
���$���������$����Ĥ��Ƥ��ơ����������Ƹ�����û��������
ץȤ���
����Ȥʤ��ɤ��Ǥ��礦��
* � ` �ؿtimecolumn(N,"timeformat")` � ϡ � � � � 2 � ߤ � Ĥΰ � � � � d ���ޤ
��� � � � 2 � � � ܤΰ � � Ϥ ɤ Υ ǡ � � � � � � Ȥ � � Ϣ � � � Ƥ � � 餺����äƤ���ˤ��
� ` �ؿtimecolumn` � � x � � y � � � ˻ � � �� � ΤȤϰ 㤦�| � � � � � � ǡ � � � � �
� ɤ ߹��ߤ˻Ȥ � � � 褦�ˤʤ�������ޤε � ǽ � ϡ � � � � Υ � � �����˼�ä��Ѥ�
� � �ޤ: `set xdata time; set timefmt "timeformat"` � � � � � � ϡ � ʣ � � Υ ե �
� � � 뤬뤬줿��ۤʤ � � � ����������
ǡ ɤ�ǡ��������Ȥ ߹�碌�� 1 � ĤΥ �
� � դˤ � � 뤳�Ȥ � � ǽ �ˤ � � ���ޤ
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 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
� ǡ � � � � ե � � � � � � � Ф � � 뤬쥹륳����ʸ��λ���ˤĤ��Ƥϡ��ʲ�����:
`set datafile commentschars` � �
C 2 � � ɸ � � (Coordinates)
2 Coordinates
?coordinates
=axes
� � � ��� `set arrow`, `set key`, `set label`, `set object` � ϥ � � � վ �
� � Ǥ � դ ΰ � �֤����� Ǥ��������ޤΰ� �֤ ν ϰʲ��νν
ǻ�� ���ޤ:
`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
� � � ( � � � 뤬뤬뤤�Ϥ���ʾ�) �μ������ּ��Ǥ����硢`timefmt` � ν �ʸ � � � �
� ˽ � � ä ơ � � � � � � � ǰ Ϥ ޤ줿����ʸ�����Ŭ��ʺڤɸ������ � ɬ�������פ
� � � � � ʲ � � � � � : `set xdata`, `set timefmt` � � � `���ޤgnuplot` � � 0 � � ɽ � � � �
ǧ��Ƥ��ơ����ξ�礽��0 � � � 1970 ǯ 1 � � 1 � � � � � ÿ � Ȳ ᤵ � ���
��� �
C 2 ʸ����ǡ��� (Datastrings)
2 Datastrings
?datastrings
� ǡ � � � � ե � � � � � ˤ ϡ � � ۥ磻�ȥ�� � � � �( ���ڡ䥿��) � � ޤޤʤ�Ǥ�դΰ��
� �ǽ � �ʸ � � � �� �� 뤬뤬뤤�� 2 � Ű � � � � � ǰ Ϥ ޤ줿 Ǥ�դ�ʸ����
� � � � � � � �ޤޤƤ��ɤ�)���Τ����줿줬뤳�ηd� � � ʤ � ʸ � � � � ǡ � � � � � � 뤳
� Ȥ � � ǽ � Ǥ � � � � ǡ � � � � ե � � � � � ˼ � � Τ 褦�ʹ Ԥ���ޤޤƤ����硢����� 4
� Ĥ � � � � ���ܤ3�ߡ ��ƥ�������ʬ�Ǥ���ȸ��ʤ����ޤ:
ޤ
set xtics
plot 'datafile' using 3:4:xticlabels(1) with linespoints
=columnheader
� � ϥ ǡ � � � � � � � κ ǽ � Υ � � � ȥ � (� � � ʤ � � � � θ � � Ф � ) � � ƥ � � � � � � � ʬ � Ȳ �
� ᤹�� ⤦ �� ĤΥ� � ���ץ � ��� � � � � ꡢ
���� ϥƥ�������ʬ ������
���� � r�
褷����
� Υǡ � � � � � � � � � (key) � Υ � � � � ȥ � � � ʬ � Ȥ � � ƻ � � Ѥ � �
���������ޤϡ � � � Ƭ � �
� Ԥ � 2 � � � ���ܤʬ� � � � � � ܥå � � � � � Υ � � � � ȥ � � 8 . � � � � Τ ˻ � � Ѥ � � � � � � �
��� � � � 2,4 � � � ܤ��ᤵ�줿������r 褹��Τ˽ � � � � �ޤ:
��� � � :
� � Ԥ � � � Ū � Τ � � � ˤ ϡ � � � � � � ʥ � � � � � � � Ȥ 䤽��¾ � Υ% � � � � � � � ƥ � � � � � �
� � � � � Τ � � � ¿ � � � � ʸ � � � � ĥ � � � � �(�� � � � 㤨�� iso_8859_1 � � utf8) � � �
� � Ű � � � � � � � � ʸ � � � � � ñ � � � � � � � � � � ʸ � � � � Ȥ ϰ ۤʤäƲᤵ � �� 뤳�Ȥ �
� � դ � � Ƥ � � $ � � � � � � � ʰ 㤤�ϡ � � � Ű � � � � � � � � ʸ � � � � Ǥ ϥ Х å � � � � � å � � �
� � 2 � Ľ Ť� �ɬ � ����פ뤳�Ȥ Ǥ � � �
=octal
=hexadecimal
0 � � � � � ϡ � C � � strtoll() � 饤�֥�� 뤬롼뤤�e � � Ȥ ä Ʋ ᤷ � ��������ޤ
� � ϡ � " 0" � ǻ Ϥ 8 ������ ޤʿ � ȡ � � 0" �ޤx" � � "0X" � ǻ Ϥ �����ޤ
16 �ʿ � Ȥ ߤʤ����Ȥ���������ޤ
=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 � � � � Ȥ � � 뤫���ǧ���Ƥ��$�����
� � � ֻ������
��� ϰϵ��һ� [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` �ˤ � ä �
� ٤��ѹ��Ǥ�����ޤ
^<p> </p>
^</tbody>
^</table>
^<p> </p>
^<p> </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>
=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
#\hline \end{longtable}
#%% @end � � ɬ � פȤ� � 뤬뤿뤿�ᡢ�%ߡ��� tabular � γ � � �
#\begin{tabular}{|ccl|}
@end table
� � � � ϡ � 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` � �
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 � Ǥ � (ξü � � ��) � �
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" � � �֤������
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
�ʲ � � ϡ � ñ � � 黻�ҤȤ� � λ � � � ˡ � ΰ � � � Ǥ � :
@end table
@end table
� �:
� ǽ � Ū �ʹ � � �� � � � � � � ¤ μ � � � �� Ȥ ʤ � ����
� �:
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` � � Ȥ ä ƥ � � ꥢ�Ǥ � � ����
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>
� 桼������ѿ��:
<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
� � �� � � § � ϡ � � � � � Υ �ߥ���ץ8 � � Ʊ � � � ǡ � � � Ƭ � ϥ �
� ѿ �� � � �ؿ
� � ե � � ٥åȤǡ� � � � θ � � ʸ � � ϥ � � � ե � � ٥åȡ����"_" ���Ȥ�� ����
� �:
set label GPFUN_sinc at graph .05,.95
� �:
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 ]
� �:
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] � Ȥ � � ƻ � � Ȥ � � � ɬ � �����פ�����ޤ:
C 2 �ե � � � �
2 Fonts
?fonts
gnuplot � � � 켫켫뷿�ȤˤϤɤ�ʥե � � � Ȥ � ���ƤϤ��餺������ե � � � Ƚ � � �
� � � � ä Ƥ � � � $ � � ǡ � � � � κ � � � � ᤷ � ����� Ȥ˽ � �Ϸ | � � � ˰ ۤʤ� ��������
� Ǥ ϡ � ʣ � � ν � � Ϸ | � � � Ŭ � Ѥ � � � � ե � � � ȵ � � � � ˤ Ĥ � � � � � � $ � � ����������
� 夲����ΰʳ ��ν ��Ϸ | ��ǤΥ ե ���Ȥ λ ��Ѥ ˴��ؤƤϡ����ν��Ϸ|��Υ�
Ȥ� � � � � � Ȥ �Ȥ �$ �Ƥ � � Ȥ� � � �
��äơ�
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
-���ӽ�뤫�Τ 褦�˺� � Ѥ � � � � � � Ƥ� � 뤫�� Ǥ ������Υ�������� Ǥϡ�
�����Υ�����ɤΤ����Ĥ����ɤΤ 褦�˻Ȥ��Ƥ���� 뤫 ��� $������
� ⤦��Ĥϡ��ҥ��ɥ�����ȤȤ���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
=iteration-specifier
�����֤��ϡ��ʲ��Τ 褦���ʽ ˤ�
뷿뤿뤷
������� )�椷�����
�֤
�����
�ǽ�νǤ�
� <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)" � � ������Ѱդ�
��Ƥ��ơ������Ͽ����$������/����Υѥ�������
� � Ͽ������/�������
����ν��Ϸ|����Ф�������°-�θ��ߤξ��֤ ϡ����ν��Ϸ|�������� �
���Ȥ� `test` ����ޥɤ�¹Ԥ��뤳�Ȥdz�ǧ�Ǥ��
����
��:
plot "foo", "bar" # � � � 1, 2 � � 2 � ե� � � � � � � r�
plot sin(x) linetype 4 # � � � 4 � � � � �
� � :
C 3 � � � � � � (colorspec)
3 colorspec
?colorspec
?rgbcolor
=colors
?lc
?linecolor
?tc
?textcolor
¿� � � Υ� � �ޥɤǡ � � < � Ū � ʿ � � λ � � � � Ȥ � ʤ ä � � � � � � � ��뤳�Ȥ� � Ǥ �
� ���ޤ
� � :
"#AARRGGBB" � ϡ � R GB � � � ξ �� ӥ å Ȥ˥ � � � ե � � � (Ʃ � � - ) � � � Ĥ � � Ƥ � � 뤳
� Ȥ � �� � � � �������ޤե��� 0 �ϴ�t����Ʃ�?��Ǥ��뤳�Ȥ� ��� � � � � � �
� � "#00RRGGBB" � � "#RRGGBB" � � Ʊ � � � ˤ ʤ � �������ޤե� �� ��255 (FF) �
� � t � � Ʃ � $ Ǥ � � 뤳�Ȥ � ��� � � ` � � � `���ޤ: � � � λ � � � ˡ � Υ � � � ե � �� ΰ � � �
�ϡ � � � p � � � Ǥ � gnuplot � β � � � � r � ⡼ � � "with rgbalpha" �ˤ � � � � � ξ �
� � � ȿ � Ф ˤ ʤ ä Ƥ � � ���ޤ
�
�"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 � Ѥ˽ �� �� �
Ť ������ ץȤ �ؤ
� � � � ߴ�-� � ɬ � פʾ��ϡ��ʲ��Τ 褦�ʽ�������ѤǤ���ޤ:
� �:
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 �
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ϰ�����ǰϤ�ɬ�����פ뤳�Ȥ � � � դ � � Ƥ �
�$ � � � � �
� �:
- ��� � � � � � � � � � � :
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"
� � � ��ݡȤ� � � Ƥ � � � � ü 줿쥹쥭
�ΰ�
��� �:
�ʲ � � ϡ � � º ݤΥ � � � � Ǥ Ϥ ʤ � � � � � � � � � ɥ � � ˴ ��ؤ뤬쥹뤬�ȤǤ � :
٥�
"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."
plot 'something'
pause mouse keypress
print "Keystroke ", MOUSE_KEY, " at ", MOUSE_X, " ", MOUSE_Y
gnuplot
� ϡ �ɽ
� � � � � � � � � � ɥ � � ��� d � � � � � � � ˥ � � � դ � � �� � � � � � � ƽ � λ � � � �
ɽ��������ɥ��ϥ���դ��� �դ˻ �դ ä� � �� ����ޤޥ
դ դ ��Ĥ
�˻ �������ޤϷ �
� � � ˤ � ä Ƥ ϡ � � � � λ Ĥ ä � � � � � � � ɥ � � � Ǥ � ¿ � � � Υ �����ޥ��ǽ �ʾ � � �
� � � � ���������������ޤդκ��r���᤹ ᤹ ᤹�륺 � ( �Ȥ ���
� � ε � ) � Τ �� � � �
� � ϡ � � � ˥ ���ץब��λ � � � Ƥ � � � Τ ǰ � � � Ū � ˤ �� � � Ǥ � � �
��� � � � � � � Ϸ| � � � � � � �� �
Ȥ� �ˤ � `persist` � � `nopersist` � � � � � Ǥ � � �
��� � � � :
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 �� �ޥɤǿ����������������ڡΤ � � � ) � � � Ƥ � � $ � � � � �
four = "4"
graph4 = "Title for plot #4"
graph(n) = sprintf("Title for plot #%d",n)
0 � � ϡ � � � � 줬 ʸ� � � � � � 黻�Ҥˤ� ä ƺ � � Ѥ � � 줿� ��
ϡ �ʸ � � � � � � Ѵ � � �
� � ��ޤΤǡ � � ʲ � � � � � � � � Ʊ �� � ư � � �ޤ:
N = 4
plot 'data.'.N title "Title for plot #".N
plot = "my_datafile.dat"
title = "My Title"
plot plot title title
�ʲ � � �� :� 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` � �
� �:
�ʲ � � � � � ϡ � ` l eastsq` � Ȥ � � � � �����ץ¹Ԥ������ν��Ϸ��ǡ�
`leastsq` � � ( � ��ޤΰ� � � � ��ߤ�) �֤ ������� �ޤ:
f(x) = `leastsq`
� � � $ � VMS � Ǥ ϡ �
f(x) = `run leastsq`
C = "pi"
if (exists(C)) print C," = ", @C
filename = "mydata.inp"
lines = ` wc --lines @filename | sed "s/ .*//" `
� ϡ � � � � � � ƥ ॳ� ` ��ޥuname -n` � � �֤ ��
ʸ� � � � � ʸ � � � � � ѿ � mycomputer � �
� � ¸ � � � 뤳�Ȥˤʤ� ���ޤ
� � � � � � � � � �����ִ����ޥŰ � � � � � � � Ǥ ϵ � ǽ � � � ʤ � � Τ ǡ � � � � � � ƥ ॳ� �ޥɤ�
� ���ޥȤ� � � � � d � � Ƥ � � � � ���ޥȤ � � � � � � Ѥ � � � � ĵ հ � � � � � �ִ���Ԥʤ���
� Ȥ Ϥ Ǥ Ǥ � � ���ޤ
(� �) � � � å � � ϡ � � � 9 � � θ � � Ф � � � ( � 롼�ץѥ��� ��
ǤϤ ʤ � ) �<�Ū�˽�
� � Ϳ�� � � � � ζ � � �ڤȤ� � ơ � � ` ���ޤfit`, `plot`, `replot`, `splot` � �
� �ޥɤ� `using` �ե��륿�Ǥؼ η ��������뤿��˻Ȥ�����ޤ
��
( � � � å � � �� �ޤ � � δ ��ؿɽ���Ǥ�Ȥ��)���ޤ
� � � ߥ���� (;) � ϡ � � � Ԥ Υ � � Ϳ�
�ޥɹ���������ʣ�� Υ�� �ޥɤ����
� � Τ ˻ Ȥ � � ���ޤ
� � � � � � � � ʣ � � � ʸ � � � � � ñ � � � � � � 䡢���뤤����Ű � � � � � � � ǰ Ϥ ߤ�����ޤ
� � � � ǰ Ϥ ޤ줿 ʸ� � � � Τ � � � ʤ � � � � η �� ϡ � � ɤ ΰ � � � � �� ��
j�֤ ���
ˤ�
� ä � � Ѥ � � ���ޤ
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.
Ͻ� ϰ � Ĥ Υ ǥե � � � � � � Ͻ Τ ߤ�
� ��Ǥ � � � � � äơ � �ե � � � � � � � � x �� y
� �ξ � � � � / � � � եǡ � � � � Ǥ � � � � � ϡ � � ǥ ե � � � Ȥ Ǥ Ϥ � � � � Ʊ � � � �
�� �
Ȳ
� ᤵ����������������ޤΥǥե � � � Ȥ ϡ � ` using` � � � � Ǵ ` �ؿtimecolumn`
� � � Ѥ � � ơ � � � � � � � б � � � � � � � � � Υ ե � � � � � � � �� �ǡ�� � � � � � ɤ
� ߤ��ळ�Ȥˤ �
� ꡢ�Ѥ��뤳�Ȥ� � � ǽ � Ǥ � � �
Ū �ʻ � � � �� � ˹ ͻ � � � � ʤ � � � Ф � � � � ʤ � � � � ϡ � � � � ʤ � � � � Ȥ � UT � � � Ѵ � � �
� ٤��Ǥ � � �� �
� ` �ؿtime` � ϡ � � � � ߤΥ � � � � ƥ � � � � � $ � Τ ˻ Ȥ � � ��������ޤ
� ϡ�
`strftime` � ����ؿʸ� � � � � � Ѵ � � Ǥ � � `�����ޤtimecolumn` � � � Ȥ ߹�碌
� � � � � � Ū � � � � � � � � դ � � . � � � � Τ ˤ � Ȥ � � ������ޤη� � Ϥ � � 줬�֤ �����
� � � � ��0������ � �ޤξ � � � time() � ϸ � � ߤλ � � � � 1970 ǯ 1 � � 1
� � � � 0 � � Ȥ � � � �֤ ������� ¿ � ( � ���ޤʣ�ǿ�)
� Ȥ � � � �֤ ��� � ( ���������ޤðʲ� ) � � ʬ � � : � ٤ϡ � � � � ڥ졼�ƥ�� � ������ƥ�
� � � � ��
� ˰ � ¸ � � � ������ޤʸ� � � � ʤ � С � � � � � � � ʸ � � � � Ǥ � � � Ȥ ߤʤ� � � � �
� � � � � 줿�� ʸ� � � � � � �� � � � �� ����`strftime` � � � Ϥ � � ���ޤ
��� � � � ϻ � � � / � � � եǡ� � � � � � r � � � � Ǥ � � �
� � � Υ ե � � � � � ϰ ʲ � � Τ ��ˤ� � � ɽ � � � � � � �ޤ:
��� � �ǡ �x ��� � � � 9 � �θ � �Ф � � � �
"03/21" � Τ �� ɽ���������ޤ
�ʲ � � � � � : `time_specifiers` � �
C 1 � r 襹������ (plotting styles)
1 plotting styles
?plotting styles
=plot styles
��:
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 ��
2 ��: x y
3 ��: x y x_width
Ffigure_boxes
Ȣ�����
3 ���
Τ ���ˡ�Ƿ�� Ĥ pĤ �� �
�����ޤϥǡ�����3 ���ܤΥǡ�
�����äƤ�����ϡ����줬 Ȥ���
Ȣ����˥��å � � ������ޤǤʤ���
`set boxwidth` ��� �ޥɤ�Ȣ����åȤ���Ƥ������ϡ����줬�Ȥ��
� ������ޤΤɤd�Ǥ�ʤ���硢 Ȣ����ϡ���� ���ܤĤ Ȣ�����
�� ä ��˼�ư
���������ޤ
Ū�˷
�ǡ����ե�������ɤ�Ĥ֤���Ȣ���r �� ���˥��
�
ȢƱ�Τ ����
ľ ���ڡ
���� (�%����):
�ѥ�����Ǥ��ɤ�Ĥ֤����������Ȣ����
sin cos � �� Υ դ��
r:
�
sin �ϥѥ����� 0 �ǡ�cos �ϥѥ����� 1 ���r �� ����ޤ ɲä�����r��
���ϥɥ ��Ф���� ��ݡȤ���ѥ������۴�Ū�˻��Ѥ�����ޤ
���줾� Υ�ǡ���������<�Ū���ɤ�Ĥ֤�������������:
2 boxplot
?plotting styles boxplot
?style boxplot
?boxplot
Ffigure_boxplot
boxplot �ϡ� �� ����Ū��ʬ �ۤ� �ɽ����������Ū ���ˡ�Ǥ�����ʬ������ϡ�
1/4 ���$�����ʬ������ʲ��� �� �� Ĥ ��ˡ�1/2 ���$������ʬ�����
(������
�) ʲ������� Ĥ ��ˡ���ȷ���� � � ������ޤʬ������ �
ʬ��δ֤��ΰ��Ϥ��� Ȣ���
� r 褷� �� ����
����� ��ΤȤ���ˤϿ�ʿ�����
��� ���ޤȢ�Ҥ��ϡ�Ȣ������ ����� ³��ޤDZ�Ĺ���� � � ������ޤθ³���
�
���ˤ����$ϡ��ҤȤĤҤȤ��r �� ���ޤ
��:
��
����Ȣ
Υ�ǥե���Ȥ���� `set boxwidth <width>` ������ Ǥ�� � � � � �ޤplot
��� �ޥɤ� `using` �ˤ�� 3 ���ܤΥ�� � � � � � �ץǤ����Ǥ��1 � ������ ޤ
�� 3 ���( ���ܤx ��ɸ����) ��� � �ǡ�����ǤϤʤ����Ȥ��� �� � Ϳ ���ޤ
2 boxxyerror
?plotting styles boxxyerror
?style boxxyerror
?boxxyerror
Ffigure_boxxyerror
`boxxyerror` �r �� � � � � � �2 �����Υǡ����r�ǤΤ����Ѳ�ǽ�Ǥ�������
�ϡ�`xyerrorbars` �������뤬 � θ
ʬ� θ �
�ɽ������Ȥ����
Ĺ θ�d �ɽ����
�뤳�Ȥ��С��ۤ� � �
Ʊ���Ǥ�������ϡ���ϥǡ������4 � �6 � ����� ޤ
���Ѥ��; ���ޤʬ�������ϡ�variable �Ԥ��ɤ��٤���� ξ���� ����
��줿
��ΤȤ��ƻ��Ѥ����( �ޤʲ�����: `rgbcolor variable`)��
6 ��η|��Υ��� �ޥ
ɤϡ�Ǥ�դ� x, y �����Ĺ��d����
ñ����ˡ����
������ޤ
�ǡ����ΤҤ��դ����%���դ�8.����Τ˻Ȥ�����ޤ
����ϡ���ʿ���ˤ� x �����Ȥ�����ľ���ˤϳ����� (open) �Ƚ���
�(close) � � ��Ȥ�����
Ĺ d��Ȥ�� ��������ޤơ� x �� � ��� ɸ �Ȥ
Τ � � � �
Ĺ��dΤƤä ��ڤǹ��� (high) �ޤǤȡ�Ĺ��d��줫� ǰ���
� (low)
�ޤǤο�ľ������ ��������ޤο�ľ��Ϻǹ���Ⱥǰ�������� �ؤäƤ�
�ѹ��������ޤ
����Ū�� 5 ��Υǡ�����ɬ�פǤ�:
�ǥե���ȤǤϡ���ľ�ʬ�ΤƤä ����ڤˤϿ�ľ�˸����ʿ��ϰ���
� �
��� ��������
��������� ����� �� ŵ��Ū�����Ȣ
Ҥ���
� (box-and-whisker
��:
� ���� �� ��
# ���Ѥ� 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
2 ��: x y
3 ��: x y major_diam
4 ��: x y major_diam minor_diam
5 ��: x y major_diam minor_diam angle
�� (�ʱ ߤ�
� ���������Ū�˻��Ѥ����r�):
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 � � � ���������� ޤ
�����ǡ���� ����ץϰʲ��Τ��dΤ����줫�Ǥ�:
Ffigure_yerrorfill
3 �����ܤϡ�x ��ɸ�ν��礬 Ʊ���Ǥ��� 2 �Ĥζ���δ֤��ΰ���ɤ��٤���
��������ϡ�(x, y1, y2) �� 3 ����� ǡ�����ɬ� פǤ�����ϥǡ����� 3
��������ϥ
��ʾ�ξ��ˤϤ��줬 � ǥե���ȤǤ���2 ��� �ܤy ����ǡ�3 ��������ܤ
����ǡ����Ǥ�����ϡ��Գ����ΰ��Ƥ�ɽ�����뤳� Ȥ��Ǥ������
�
����˻� 3 �����r � � � � � � � `zerrorfill` ���Ȥ��Ƥ��$�����
3 ��: x y yerror
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` ���Ф����Τ�Ʊ���Ǥ���
��Ϥʤ����ǡ����$��ϰϤ�
� �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 ����Υҥ��ȥ����|��Υ������� � ��ݡȤ��Ƥ������
�
��)�����ߤ�
Ȣ�
������Ĥ��뤳� Ȥǡ�������б����� θǤ� �� ο����� x ���˱�ä���
������֤����Ȥ��Ǥ������
��:
Ffigure_histclust
��ϥե�����ϡ�2, 4, 6, ... ����˥ǡ��� �� �� a�3, 5, 7, ... ����
�˸�ɾ�d��ĤȤ������� ʲ�����ϡ�2 ������ܤ � �Ȣθ�Ǥ
� 4����� � �ܡ �귿
(clustered; �ǥե���ȥ�������) �Υҥ��ȥ����Ȥ����r �������� � � � �
�ϡ�plot ��� �ޥɤǷ����֤� (iteration) ����Ѥ��Ƥ����� Τǡ�Ǥ�դθ�
��Υǡ�������ĤΥ�� �ޥɤǽ���Ǥ������� ʲ�����: `plot for`��
Ffigure_histerrorbar
�ե����뤬 � � �ƥǡ������¬ ���
�ξ
�ϰϤ����� ξ��� �� Ǥ������r��
������ɲä��뤳� Ȥ��Ǥ������� ʲ��Υ�� �ޥɤϸ���� (y-<error>)
���� (y+<error>) �˰�����Ƭ��Ȣ��Ʊ ���� ο�ʿ���Ĥ�������� �
�
�ȸ����ü����ϡ������� 2 ���r �� ����
Ffigure_histrows
����ϡ���İ�Ĥα�ľ���$����ǡ����ΰ�Ĥ�����б������r��8.����
�������$ϡ�2 �Ĥ���ʬ���Ѥ �夲� ηdǤ��ꡢ��� 줾� � � � � ʬ�ι⤵������
�����ե������ 2 ���� ���ܤ4 ������ �ܤ
� ����� ����
#TeX \vspace{1em}
�Ǹ�˰ʲ��Υ����ޥ
Ffigure_histcols
�ϡ���İ�Ĥ����줾� � ǡ�������б����롢 2 �Ĥα�ľ���Ѥ��
Ť�$�
�� 8
.������� x=1 �ˤ����$ϡ��ǡ����ե������ 2 ���ܤγƹԤ�����б ������
Ȣ����ʤ����� x=2 �ˤ����$ϡ��ǡ����ե������ 4 ���ܤγƹԤ�������� � �
������Ȣ
���ʤ�
� ����
������ʲ��Υ�������ʬ� Ȥ��Ƥ��
� �$ �����
���� 2 �Ĥ���ϡ�t��Ʊ���ǡ�������
ΤǤ
��Ƥ���Ϳ ����� �ۤʤ�
����Ǥ
�뤳� Ȥ���դ��Ƥ��$�����
3 newhistogram
?newhistogram
?histograms newhistogram
?plotting style histograms newhistogram
��:
Ffigure_newhist
���` ����ץat <x-coord>` �ϡ����θ�Υҥ��ȥ����� x ��ɸ�ΰ��֤�
<x-coord> ������������� :
=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` � Ȥ � � Ƥ � � �ޤ:����) � �ޤɽ
������Ƥ�����)��
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` � ϡ � � ǡ � � � � ե � � � � 뤫 � � � ɸ��ʸ������ɤ߹��ߡ����� ʸ
3 � �: x y string # 2 ��� � � �
4 � �: x y z string # 3 � � � � � �
� ե � � � ȡ � � � � � � � ž � Ѥ �� � ¾ � � � r � ƥ � � � � Ȥ � ° - � � � ɲ å � � ����ץȤ���
��� � �ǽ �Ǥ � ( �ʲ� � � � � : `set label`) � � � � � � � � ϡ � � � ϥ ե � � � � � � 1
��� �
� � � � � ä � � Ԥ �� p � � � � � � � � ʸ � � � � � 4 , 5 � � � ����ܤä� � Ͽ �� ɸ��
� r �� ����� ե���ȥ������ϡ�3��� ��� �������
�������� ܤ
� ����� ���� Ƥ� �ơ � � � � ξ � � Ϥ �
� � Ͽ � � � �� � � � Ƥ � � ����
�� ե � � � ȥ � � � � � � �ġ � � λ Ԥ �� p � � � Ф � � ư ۤʤ 륵 � � � � �˹� 碌� ʤ��Ƥ���
� ʤ � С � � � � �ޥɤϤ�äȴ�ñ�Ǥ�:
Ffigure_labels2
��� � � � � � `points` � Ǥ � � �� � � � � �d � � � Ƥ � � � � $ ε � � 椬 Ŭ�
ڤǤ ʤ � � � � � � �
� � � Ͻ � ʬ � Ǥ ʤ � � � �� � � � � � � �Ȥ��ƥ������� `labels` ��Ȥ����Ȥ� Ǥ�
� ����� �� � С � �ʲ � � � ñ � � ʸ � � Ȥ � � � j � � � � � � Ȥ � �d�� � � 3 � � � ܤΥǡ � � �
�� � � б � � � � 뤽 � Ĥ
ΰ �Ĥ �� դ
Ĥ γĤ � $ ˳ � � � � Ƥ � � � Ǥ � ( � � � � : �ʲ� � Υ � � �
� < ��ץUTF-8 ʸ� � � � > � � � � ʬ � ˤ ϡ � � � � � � � � �5���ݤ �� � � � �� � � ��ܡȥ���
��� � ʤɤ � UTF-8 ʸ� � � � � ¤ � Ǥ � � ������ � � � � � �� ��� � � � �� Ȥ�ξΩ���ʤ���
� � � � � Ƥ � � �� ):
2 ��� � ("using" � � � � ʤ � ) � ξ � �
1 � �: y # � � �ֹ � ˤ � � � �ۤ� x
2 � �: x y
3 ��� � ("using" � � � � ʤ � ) � ξ � �
1 � �: z # x � ϰ � �ۤι� �ֹ 桢 y � � index � � � �
3 � �: x y z
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`��
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
��:
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
3 ��: x y xdelta
4 ��: x y xlow xhigh
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 � ��Υ ǡ �����ɬ � פǤ���
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` � � ) � � Ǥ � � ���ޤ
�ʲ���� �
^ <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
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 � � � � � ϥ ǡ � � � � � ɬ � פǤ���
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
�ʲ���� ȡ�
^ <a href="http://www.gnuplot.info/demo/mgr.html">
���顼� С��Υǥ�
^ </a>
2 zerrorfill
?plotting styles zerrorfill
?style zerrorfill
?zerrorfill
��:
4 ��: x y z zdelta
5 ��: x y z zlow zhigh
C 1 ���( ��ޥCommands)
1 Commands
?commands
���Υ��������Ǥ� `gnuplot` �����դ��륳 � �ޥɤɤ�ե � � ٥åȽ� �
�¤٤Ƥ�� � �����ޤΥɥ� � � �� Ȥ�� ˰������� Τ� t� ƤΥ� � �ޥɤ� �ޤ
�Ǥ����÷ � � ������ޤǻ��ȤǤ���ɥ�����Ȥ���ϴ�t�ǤϤʤ���ǽ-����
�� ����ޤº ����ݡθ��Ф��β��˲��Υ�� �ޥɤ �ɽ � � � � � � ʤ � � � � � � ƥ ब����
����ޤ
� �ε � ��Ҥˤ����ơ��
楫� å� ({}) ���ɲû���Ǥ������������
���� (|) �ϸ ߤ����� ¾Ū�ʰ����� ��ڤΤȤ�����ޤ
2 Break
?commands break
?break
���` ��ޥbreak` �ϡ�`do`, `while` ʸ�η����֤�� ¹���ʬ�Υ��å���Ǥ�
�߰�
� ���d � �����ޤΥ�� �ޥɤϡ � � � � � � 楫� å���λĤ������ ��
��å�
���������֤������Ǥ��������Ĥ����å��μ���ʸ����¹Ԥ�Ƴ����
����ޤʲ�
��� � : `continue`��
2 cd
?commands cd
?cd
`cd` ��� �ޥɤϥ � � � � ȥ ǥ � � 쥯 � ȥ��� ѹ � � � ����ޤ
��:
cd '<�ǥ��쥯 � ȥ�̾' >
��:
cd 'subdir'
cd '..'
gnuplot �ΰ�p�ΥС������Ǥϡ����Υѥ��� � ʸ � � � � � � � � Ƥ � � � �� ʵ �
�� $0, $1, ..., $9 �� ���ޥΤ 褦� � �ִ � ��� 뤳� Ȥ�ɽ�����Ƥ�� � � �����ޤ
�λ��Ȥ ߤϡ����ߤ��� 侩� Ǥ� (�ʲ�����: `call old-style`)��
�����륹 � � � �ץȤ��gnuplot � �
�ޥɥ ��� ` ����ץ-c` �Ĥ��Ǽ¹�
�
���뤳� Ȥǡ������Ʊ�����Ȥ��ľ ܹ Ԥ����Ȥ�Ǥ�� �ޤ:
3 old-style
?commands call old-style
?call old-style
�ʲ��ϡ��Ť��С������� gnuplot �ǻȤ��Ƥ��� call �λ��Ȥ ߤε��Ҥ�
���������ߤ��� 侩� Ǥ���
��:
���ιԤ���Ϥ����:
call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"
�ʲ��Τ 褦� � ɽ � � � � � � � Ǥ � � 礦:
argc=7 p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx
��:
set multiplot
plot sin(x)
set origin 0.5,0.5
set size 0.4,0.4
clear
plot cos(x)
unset multiplot
��:
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��Υ�� 顼������>
gnuplot �����
λ ���������
) ����� � ���
�� �֤� ��
ϰ���Τʤ���Τˤ�
�뤳�Ȥ����� � � ������ޤΥ�� �ޥɤ�ʲ�� Τ 褦�˼¹Ԥ� � � С� �����������
�����
֤ ���� Ȥ���ǽ�Ǥ���
�
�
�ܺ٤ϡ��ʲ�����: `batch/interactive`��
2 fit
?commands fit
?fit
?least-squares
?Marquardt
��� ` ��ޥfit` �ϡ�Marquardt-Levenberg ˡ�ˤ������zǾ�����ˡ (NLLS)
���Ѥ��ơ��ǡ����$ν�����
˥ ���
�� �� 뼰� ��� ƤϤ� �����ޤΩ�ѿ��
12 �ޤǵ��Ƥ��ơ���°�ѿ�Ͼ�� 1 �Ĥǡ�Ǥ�ո �� ������
Ŀ�Υѥ�
�Ϥ� 뤳�Ȥ��Ǥ�� � � � ������ޤɲäǡ� � ǡ� � �� $νŤ� � դ� � Ѥ˸� ɾ� d� �
�Ϥ�� 뤳�Ȥ��ǽ�Ǥ���
Ū ���ˡ�ϡ��ʲ���ñ����� ����
`fit` �κǤ�����ʻ Ƥ�� �ޤ:
��:
fit {<ranges>} <expression>
'<datafile>' {datafile-modifiers}
{{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}}
via '<parameter file>' | <var1>{,<var2>,...}
�ǡ����ե���������Ƥϡ�plot ���
�ޥɤ˻�� Ѥ � � � Τ � Ʊ � � `using` � � � � �
�Ȥ����Ȥǽ���ᤵ˲ � ���뤳�Ȥ��Ǥ�� ����ޤ㤨�С���Ω�ѿ�x ��2 ����
��3 ���� ��ܤ¤Ȥ���8.����z���� �6 �� ����ܤꡢ � Ť 1 �
� ߤ �Ȥ�����
���ϰʲ��Τ褦�ˤ�� �ޤ:
`using` ���
�꤬ � ʤ��� 硢 fit �ϰ��ۤ��� Ω�ѿ��1 �Ĥ$��Ȳ�� � � ���ޤ
�ե����뼫�ȡ�� ���ޤusing �� �꤬ 1 ��$��Υǡ�������
� ľ�� ��
��
������Ω ѿ��Ȥ
��
��
�� ��
ƻ�
������
Ѥ��ޤ
����
`using` ������ �� ������ ���12 ��(���
����� �� ƥ���ѥ��뤷�Ƥ���Ф���
�ˤ���ʾ�) ����� Ω ѿ�����ѤǤ��ޤ���
��Ω�ѿ�θ�ɾ�dˤ����ơ����νŤߤˤϡ�"��ʬ��ˡ"p
� � �� � �" (effective
variance method; Jay Orear, Am. J. Phys., Vol. 50, 1982) �˽��äơ���
�����ƤϤ� ����ؿʬ���� �� �
�� � ���ޤ
��Ȥ��ơ�2�Ĥ���Ω�ѿ��ꡢ������
� 1 ��� ���ܤΩ�ѿ�Ƚ�°�ѿ�θ�
���ǡ�����������ϡ�`errors x,z` �����5 ���`using` �����Ȥ���
�Ȥˤʤ� � � � � ������ޤx:y:z:sx:sz �Τ褦�˲ᤵ � �� ( �ޤx, y �����
Ω �
��z �����
° ѿ�sx, sz ��x, z ��ɸ���� к )��
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 ��)
�� ��
`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
ȿ��θġ��Υ��ƥåפθ�ǡ���ƤϤ�θ�� �֤ ˤĤ��Ƥξܺ٤ʾ���
ߤξ��
�����ɽ������ޤ
� � � � � � � � ǽ�ȺǸ�ξ� �֤ � � � �ؤƱ������ "fit.log"
�
�Ȥ������ե�����ˤ� ��Ф��� � � � � � �ޤΥե������p����ƤϤ������
��ä��ʤ�褦 ��˾ � � � � � � � �ޤʤ���뤤� ���
��˾� � � ɲä� � � Ƥ� ���
��p�ˤǤ��` � �ޤ������ޥset fit logfile` ��Ȥäƥ��ե������
p���ѹ���뤳��Ȥ�Ǥ�� � � �ޤ
�� ��
�ѥ� ե�����ϸġ��Υѥ��� ������
��� 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`��
���������� ��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` � � � � � Ϥ ������ Ĥ ϤǤ�����
�� � �� �
פǤ����
ʬ�� = �� �� � �׳Ʊ� �ο�
콸�
� Ĥ�ɸ���к������Ǥʤ�� �
硢
���$ϴ�¬�������к ���ȴ
¤��Ԥ������к ����
¤ ��Ӥ���Ȥ���
˸ ��˽Ť�
�Ť�����٤�
� � Ǥ���
��ƤϤ�ȿ��γ��ʳ��ǡ���ƤϤ�οʹԤ�ɾ�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�����ʤ��� Τ ���ޤ
�
�ϥ�ǥ� � � � �ؿŪ�����ơ����� Ū ����˲ä����� ü ʥ�� �ץ
� ˤ����ư
����ƤϤ�ˤʤäƤ���ΤǤ�� �� � �Ǹ�ξ��ϡ����� ץ �� ʴ �ؿˤ�
��Ф�� � �ޤԤ��Ǥ���� �
ȿ���κ�����
��
�� ѿ�
� ��
�
FIT_MAXITER
��)�¤���
0 � �� �����ޤ�( ޤ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 ���
�ֹ
�ѿ�Ȥ�����ޤ
���ʣ������ˤĤ��Ƥϡ��ǥ�ե�����"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` ���� ߤ������ � Ƥ���ޤ
��� ʾ�
�������� ���ޤ
�� �
`fit` �ΰ���`via` �ˤϡ�2 �Ĥ�� �ۤʤ���Ū�Τ����2 �Ĥη|���
����` ���ޤvia "file"` �η|��ϡ��Хå}���(������ ÷ �Ǥμ¹Ԥ���ǽ)
졢 �
�ǺǤ��ɤ��Ȥ� � � Υե��������ǽ����� � �� �
���� 뤳 � Ȥ��Ǥ�����ޤ
��ƤϤ��Ԥʤ�ؿ
�� Υѥ��� ��֤ ˶��
� �
� ΰ̧� ����طʤ����Ȥϳ�ǧ����
�����Ƥ���
$ ����� �a*exp(x+b) ����ƤϤ�˻ȤäƤϤ����
㤨�С ��ޤ �
� ��
���a*exp(x+b)=a*exp(b)*exp(x) �$���Ǥ�����Ƥ
ä ���
ξ ��a*exp(x)
� ���ޤexp(x+b) ��ȤäƤ��$�����
���
����
�
����ؿƤϤ �� ѥ � �� ��� � �� Ȥ��롢 ñ��ʴ ����ؿw���
��ʤ
� � ϤȤƤ ⤤
顢���� � $��������Τʤ 顢���
� �� Τ � '�� ����Ƥ�� �꤬
��Ϥ�����dǤϤʤ��Τǡ�ȿ��Ͼ��ʤ���� 礦� Ǽ��⤷����
�«����Ǥ��
����� ä����Ǥ��फ� ⤷�� ���ޤ
help {<����>}
��:
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 ...]
��:
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 �Ĥη|����ݡȤ��Ƥ���ޤ:
��
��:
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
�����֤������Ҥ⥵��ݡȤ��Ƥ���ޤ:
�
��:
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" # ���Ʊ��
2 load
?commands load
?load
`load` ����ޥɤϡ � � � � ��줿��ϥե�����γƹԤ Ԥ ��
� Ԥ
� Ԥ 줬 � � � �Ū�����
���줿���Τ �� ˼¹Ԥ�� ����`save` ����ޥɤǤĤ � � � 줿�ե�����ϡ�
`load` ���뤳 � Ȥ��Ǥ������ ��ʥ�� �ޥɤν
p ν ν줿�ƥ����ȥե������
�Ĥ���С�����ϡ�`load`����ޥɤˤ� ä ơ � � ¹ Ԥ � � 뤳 � Ȥ��Ǥ������
`load` ��Υե��������ˤ���� `load` ����� `call` ����ޥɤ � � � � ä �
������
� ���� ��
� �� � ����ޥΥ����ȤˤĤ��Ƥϡ��ʲ�����:
`comments`��
`load` ����Ȥ��˰���� ��
� Ĥ ����ˡ�ˤ �Ƥϡ��ʲ����� : `call`��
��:
load "<��ϥե�����>"
��ϥե������ϰ�����ǰϤ�ʤ���Фʤ�����
��:
load 'work.gnu'
load "func.dat"
load "< loadfile_generator.sh"
<time> �ϡ�Ǥ�դ�������� ϼ¿ �� �
μ� � � � � �Ǥ -1`
` pause ϲ� � ԥ� � � � � � � � �
��������Ԥa�0 ������ � Ȱ����Ԥ�����5�ο������ � Ȥ����ÿ��
���Ԥd ����`pause 0` �� `print` ��Ʊ���Ǥ���
��:
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 "Ǥ�դΥ���������ܥǽ�λ�����"
2 plot
?commands plot
?plot
`plot` �� `gnuplot` �ǿ ���d�����δ���Ū�ʥ���ޥɤǤ � � � � � � � ϴ �ؿ
��ǡ����Ρ�¿���μ���Υ����ɽ����� ��
� �� � ����`plot`
��ǡ������d��Τ˻Ȥ�졢`splot` �� 3 �����ζ����ǡ����� 2 �������
���d������
��:
plot {<ranges>} <plot-element> {, <plot-element>, <plot-element>}
��:
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
�� :
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��ϡ�
Ǥ�
��� ΰ뤤 � �ξ��� ѹ � �-� � � ��
��� � ǽ ���ޤ
���ϡ����
��Ͼ�
�Ǥ�� å ά ���ޤʣ� � Υ ǡ � � � � Υ � � � � � � � � � � ʬ Υ � � � � Τ ˡ �
������Ȥ����Ȥ�� Ǥ�� ����ޤ㤨�� `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����� ѿ � � � � �������� ���ޤ
���̤ �
ʥ�Ȥ���
ե � � ��� | �
�`auto`
� � � ꡢ��� ξ�� gnuplot ��ʥ�� ϥ Х
������
� �Ҥ������ γ ĥ ��ݡȤ � � � Ƥ � � � | � � � ɸ � � Ū � ʳ � ĥ � Ҥ Ǥ � � 뤫 � � e�
�����
å ���ޤ
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 뤳б � Ȥ � �� � � � ���ޤ
������� �ɤ
�������� μ � � � ��� � �Ĥ�������
μ ֳ֤ϡ����
δ ��줿
�Ǥ� ⤤ ����
Ʊ���ͤ
� ������
Τ Τ Ѥ� � � ����ޤ㤨�в��� ե � � � �뤫���ɤ �
��� ޤ졢`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` ��
��� ٤�Ʊ ����̣
���� � Ǥ
���ޤǽ�� 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
ɬ�פǤ���
Ϥ
� ��
�Τ 0 Ĥ �� (y � � �ߤ�
�� ) ⤷�
Ǥ���� x�� �
��
�
ά�
Τ �줿
�顢`gnuplot` �Ϥ���� 0 �Ϥ 0 ��� �ޤȤ����Ѱդ
ǻ ��
���� � � �� ��
�� ����ޤ
�ǡ����ե �
����ˤ����ơ� ��� ��� �
(����Ȳ��ԡ���ʳ���ʸ��� �ޤޤ
���� )� פǤ���
�
Ͻ�
� ֤ ζ��� �ڤ
2 �ԤΥ��� Ԥϡ�����Υǡ������� ����ޤʲ�����:
� ��
`index`��
������ˤϡ��autoscale`
��
`set �� �ޥɤ� `fixmin`/`fixmax` ����ץ
����Ȥ����Ȥ��Ǥ���������ޤϡ�������9��ι�ߤ˹�����˼����ϰ�
��ưŪ�˳�ĥ���뵡 ǽ�����ˤ�����ޤ
binrange �������
ʤ��ȡ��ϰϤ� 'DATA' �����
�ξü
�� ��� ���ޤ
����Ȥ���ˡ��������Ȣ������뤳�Ȥ��ǽ�Ǥ������ξ�硢 Ȣ�ο�
(nbins) �ϡ��$��ϰ�t�Τˤ �� Ǿ����Ȣ�ο�Ȥʤ����ޤ
��:
plot 'file' every {<�������ݥʬ>}
{:{<�
֥ � å���ʬ>}
{:{<���ϥ }>����ݥ
{:{<���ϥ֥ � å�>}
{:{<��λ�}>����ݥ
{:<��λ�֥ ��
å�>}}}}}
�
�r �� ǡ�������ݥ Ȥϡ�<���ϥ ��< ���� >����ݥλ���< �ݥ����< �ޤ
�������ʬ> ����ä�j�ӡ��֥ �� å��� <���ϥ֥ � å�> ���� <��λ�֥ ��
å�>
��� ֥�< �ޤå���ʬ> ����ä�j�Ӥ ���ޤ
��ץåȤǤ��ʤ�������ޤԤ⥫����Ȥ��뤳�Ȥ���դ��Ʋ�������
��:
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)
=skip
binary ����:
# 4 �Ĥ���Υǡ�������ʤ ꡢ��ɸ�����ǡ����ե�����˴�ޤޤƤ�
# �롣�ե������gnuplot ���¹Ԥ���Ƥ��� 륷 ƥ�Ȥϰ ۤʤ 륨� �
��
# �ǥ������8.����Ƥ��롣
splot '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3
��:
plot 'file' index 4:5
��:
plot 'file' using 1:(column(-2)==4 ? $2 : NaN) # �ȤƤ��Գ 湥
plot 'file' using 1:2:(column(-2)) linecolor variable # �ȤƤ����� !
��:
plot 'file' index 'Population'
��:
smooth {unique | frequency | fnormal | cumulative | cnormal | bins
| kdensity {bandwidth}
| csplines | acsplines | mcsplines | bezier | sbezier
| unwrap}
`unwrap` �ϡ��ǡ������Ф�����ʥ�����פʤ����ˡ�2Ф0
��� � � �ܤ
�ä���������ޤ
� �
� ֤ Ǥ���С������ϰϤϸ��Υǡ�������ǤϤʤ�����
�⤷ `autoscale` �ξ��
����������ǽ�Ū�ʶ�����Ф��Ʒ ���������ޤ
�᤹᤹
᤹
᤹��ʿ� 경� ��
�����ץŬ�Ѥ���ˤϥǡ������?���ʤ�������ϡ�
���顼��å�������ɽ���������ޤ
`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
��:
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
?+
?++
����ʰ�����ĥե������Ȥ��ơ����Τ�Τ������ޤ: '', '-', '+',
'++'
?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 ������ѹ��Ǥ���
��:
`'-'` �Ȥ�������ʥե������ϡ��ǡ������������Ǥ��뤳�Ȥ����ؼ
�������ޤʤ�a��ǡ���� � � �ޥɤθ��³���ƻ����������ޤΤȤ��ϥ�
�����Τ �ߤ����ޥɤ�³���$�����ޤäơ�`plot` ����ޥɤ��Ф���ե���
�����������ȥ 롢 ���������
饤 Ȥ��ä��������ץϡ�`plot` �Υ����ޥ
���������˽�ʤ Ȥ������ޤ � �ϡ�unix �����륹� ���
���
� �� ץȤˤ���
�� << (�ҥ��ɥ������)�����뤤� �VMS DCL �ˤ����� $DECK ��Ʊ�Ǥ ����ͤ
�� �
pop(x) = 103*exp(-x/10)
plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
�Ť���:
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'}
����ʸ���
� �� t ��� � ˰ ���פɬ�
��Υ�٥�� plot �����ȥ�˻Ȥ��ˤϡ�`set key autotitle columnhead`
�Ȥ��Ƥ��$�����
<entry> �˲�
���ʤ���
� �� С ��� Υ���ȥ�Υ ��Ȥν�˥ǥե���Ȥ����� �
�Ȥ������ޤ㤨�� `using ::4` �ϡ�`using 1:2:4` �Ȳᤵ � ��
���ޤ
ʽ������ϡ����ʣ���ʽ � ���ǥǡ�����ե�����
"MyData" ʽ ����ɤ ߹���
����ޤ
plot 'MyData' using "%*lf%lf%*20[^\n]%lf"
ν ���ν���
�ΰ ν �
� ϰʲ������Ǥ� :
%*lf �����
� �
� �
��� � �
%lf ��:����ư������ɤ߹��� (�ǥե���ȤǤ� x ����)
%*20[^\n] 20 �Ĥβ���� ʳ���ʸ���� ��
� � � �� � ��� �
%lf ��:����ư������ɤ߹��� (�ǥե���ȤǤ� y ����)
=filter
=NaN
3 ��黻�� `?:` ��Ȥäƥǡ�����ե��륿� ����
Ĥη����Ҳ ����ޤ
���å��ǻϤ ޤäƤ��ʤ��¤���������ֹ�Ȥ��ƻȤ����Ȥ��Ǥ�����ޤ
�㤨�� `using 0+(ʣ���ʼ�)` ���ʤ��Ȥ��Ǥ�� ��������ޤơ����ο�ϡ�
� � � �� � � � � �
���å��ǥ������Ȥ��Ƥ��ʤ���п���� �����ɾ�
d ��� 졢��
�å��ǥ�������
���Ƥ���иġ��Υǡ����$��ɤ߹�िि � ��
ˤ� � � ��� ���� ɾ� d� �� 롢� Ȥ���
�$����פǤ���
������ե����ޥåȥǡ�����ȤäƤ������ �� �֤ Υǡ�����ʣ������
�
�Ϥ 餻���
뤳 Ȥ��Ǥ��������ޤξ�硢 ¾�Υǡ����γ��ϰ��֤�� ������Ȥ���
���֤Υǡ����˶��
� � �ޤޤƤ����Ȥ���դ��Ƥ��$������㤨�С��ǡ���
�Ԥκǽ�����Ǥ����ڡ���������ޤ줿��� �֥ ǡ����Ǥ���ʤ�С�y ���� � �
Ȥ��ƻ�� �� ��
3 ������ܤ ٤��Ǥ���
�ǽ��ñ��
�Ȼ������Ȥǡ�����ξ��ɤ�ʤ˥��ߤΥǡ������ޤԤ��ĥե�����
��� 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 ���ι�ߤθ��Ф���
���ƻ��Ѥ�����ޤ
��:
��:
(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`
���Ƥ������������ ��Ȥϲ�ǽ�Ǥ������㤨�С�
��ư�ϰϻ�� �
�꤬ p��Ǥ���С������r��ϰϤϥ��顼�С��� ���ޤĴ0
�������ޤ
�ʲ���� �
^ <a href="http://www.gnuplot.info/demo/mgr.html">
���顼�С��Υǥ�
^ </a>
(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` �����ҤǤ��ν��֤ � ���
���� �
� ��Ƥ�������Ф�����
Ϳ�
������ ����Ȥ��Ǥ������ޤ㤨��
�
��ư��� (autoscaling) �� ON �ξ���r��ϰϤϸ��������� Ĵ0
�������ޤ
��:
approx(ang) = ang - ang**3 / (3*2)
plot sin(x) title "sin(x)", approx(x) title "approximation"
��:
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�ˤϻ���� �
Ƥ��ʤ�����ɽ���������ޤ
�ʲ���� �
^ <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>}}]
���֥ǡ������Ф��Ƥϡ��ϰϤϡ��ǡ����ե����뤫���ɤ߹���Τ˻��Ѥ����
��Ʊ��� �
ǡ�������ǰϤ�
� � ǻ � �� �
ɬ�����פ�����ޤʲ�����:
`set timefmt`��
��:
�ʲ��ϸ��ߤ��ϰϤ���Ѥ���ޤ:
plot cos(x)
�ʲ��Ͼ��Ʊ���Ǥ��������ѿ�Ȥ��� t ��Ȥ���ޤ:
plot [t = -10 :30] sin(pi*t)/(pi*t)
�ʲ��� x �� y ��ξ����ϰϤλ���Ǥ�:
plot [-pi:pi] [-3:3] tan(x), 1/x
�ʲ��� 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�������ˤ����)�¤��Ƴ����Ƥ ���
��Ǥ�����ޤ
��:
�ʲ��ϡ���Ȥۤ�� Ʊ��
Ǥ�����
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)
��:
plot for [<variable> = <start> : <end> {:<increment>}]
plot for [<variable> in "string of words"]
��:
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)
��:
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��Ʊ���Ǥ���
���뤬뤬뤳
��:
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}
���֤䥿���ȥ�ΰ���·���ʤɤ�����Υ 줿뤿줬 �
���� `set key` ��)��Ǥ�
Ȥϡ�
�٤ܺ����ޤϡ��ʲ�����: `set key`��
��:
�ʲ��ϡ��ե��������Ƭ�Ԥγ���˥����ȥ���ޤʣ � � � � Υ ǡ � � � � � � r 褷��
�����ƥ����ȥ�ϡ���Ω��������ǤϤʤ����б��������θ����֤��� �ޤ:
unset key
set offset 0, graph 0.1
plot for [i=1:4] 'data' using i with lines title columnhead at end
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> �ϰʲ��Τ����줫:
�ǽ�Υ��뤬롼뤤 פΥ� �
�������ϡ�����!�ʸ���°-���a��� 2 �Υ��뤬롼뤤�
�Υ�������ϡ�������ɤ��٤�°-���äƤ������ޤʲ�����: `fillstyle`��
����˥�� ֥ ��������� ĥ�������⤢������ޤġ��Υ�������ξܺ٤ˤ Ĥ�
�Ƥϡ��ʲ�����: `plotting styles`��
�������� `table` �ϡ�����դ������ɽ�|��ν��Ϥ�8.�������ޤʲ���
��: `set table`��
�ǥե���ȤǤϡ����줿뤬륢 δ�
���ؿǡ���� ե � � � � �ϡ��Ȥ����Ȥ�� Ǥ��뷿쥹뷿
��
������ã����ޤǰۤʤ � � � � < � � Ȥ � � ٤������ޤƤ�ü���ѥɥ饤�Ф�
���� 6 �Ĥΰۤ�� � < � ���ݡȤ��Ƥ��ơ�� ⤷ ��������� ᤵ�줿��硢
�������˺����Ѥ��Ƥ�������������ޤν��Ϸ|��Ǥ����<�ν���t
������
�С Τ�`test` Ȥ��Ƥ�� $�����
��Ĥ��r�������<��j�Ӥ����ʤ�С�<line_type> �� <point_type> ��
������Ƥ��$������������ϡ�
�
r ������Ȥ ǻ�������� <���� �
��
5��0��� (���ޤϿ�) �Ǥ������Ѥ���ü��ǻȤ������<��ɽ������
�ˤ� `test` ����ޥɤ�Ȥ ä Ƥ � � $ � � � � �
�饤� �����ΰ���ʬ�����뤬뤬뤤
������� ϳ��plot �ˤ����� `pointsize variable`
�Ȥ���������ǽ�Ǥ������ξ�硢�� Ϥˤ��ɲä� 1 ���ᤵ�������ޤ
���� 2D �r�Ǥ� 3 ��3D �r�Ǥ� 4 ��Υǡ�����ɬ�פˤʤ�����ޤġ�
���$Υ������ϡ�t�Τ�����Ƥ� pointsize �ˡ��ǡ����ե����뤬뤬줿������
��ˤ���
��������
ȤΤ ��Ʒ�� �� �
���ޤ
`set style line` ��Ȥä����/����<�/������Ȥ���d���С����Υ�
��������ֹ�� <line_style> �˥��åȤ��뤳 ȤǤ�����Ȥ����Ȥ��Ǥ���
�
����
gnuplot ���`pm3d` � �
��ݡȤ���褦�˥� � �ȡ�
��
�� 뤬뤬뤵�Ƥ��
� �ʤ��
С
������ɤϰż�����褦�ʷdǾ � ά � � ǽ � Ǥ � � �
�ǥ
`linewidth`, `pointsize`, `palette` ��������ץt�Ƥ�ü�����֤ ��
�ݡ
�Ȥ���Ƥ���櫓�ǤϤʤ����Ȥ���դ��Ƥ��$�����
��:
�ʲ��ϡ�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 <��> {, <��>, ...}
�����ȥǥ��줿쥹뤿 �
ȥ��ʸ�����ѿ���� ¸������ ʸ� � � � � ǻ Ȥ � � � � � � � �
�ϡ��ѿ� 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}
������ޥ�ä˥����।��ȥ��� िॢ � ���
ȤǤϡ�Ŭ�ڤʾ��� `replot` ��
����ˤ ष�� `refresh` ����Ѥ�������ޤ:
2 replot
?commands replot
?replot
`replot` ����ޥɤ � � � ʤ � � Ǽ ¹ Ԥ � � � ȡ � � Ǹ � ˼ ¹ Ԥ � � � `plot` � ���ޤ
`splot` ����ޥɤ �Ƽ ¹ Ԥ � � �������ޤϡ������ץåȤ� �ۤʤ� `set` ��
�����ץǤ ߤ��� Ʊ��� �ץåȤ� �ۤʤ���� �˽
֤ ��Ϥ������ Ȥ ��������
�Ǥ��礦��
���:
plot '-' ; ... ; replot
��:
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`
=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>'
�ե������ϰ�����˰Ϥ��Ƥ��ʤ���Фʤ����ޤ
��:
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� � � ɽ � � � � � ���ޤ
=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
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>}
����¾��°-�⡢���餫������ d�����Υ�������ǡ�����ϥ����ޥ
`set arrow` �Ǥ��줿뤬륢�
� ��
�� �Ȥ���ǽ�Ǥ�������¾��°-�ξܺ٤ˤ Ĥ�
뤬뤬뤳
�Ƥϰʲ�����: `arrowstyle`��
��:
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
^ <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
��ư��ܵ�ǽ��Ȥ��Ȥ��ϡ��r��ϰϤϼ�ưŪ�˳��Ф��줿뼰륦 ��
°�ѿ�
(`plot` �ΤȤ��� y ����`splot` �ΤȤ��� z ��) �ϡ����ؿǡ������Ͱ 褬
�� ����
����褦����� �
��:
Ϳ�
�ʲ��� y ���μ�ư��ܵ�ǽ�������� (¾�μ��ˤϱƶd��� ����):
set autoscale y
�ʲ��� x, y ξ���μ�ư��ܵ�ǽ��������:
set autoscale xy
�ʲ��⻲��
^ <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
�
p�p �� � p 뤳�Ȥǡ����Ⱥ��ʳ��ζ�������9����d�
`plot` �Ǥϡ��� 2 ������ˤ��
���Ȥ��Ǥ��ܺ �٤ ���ޤϡ��ʲ�����: `xtics`��
��:
�ʲ��ϡ��ǥե���Ȥ�������d����:
set border
�ʲ��ϡ�`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
� Ȥ� � 롢������
뤤 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}
�ǥե���Ȥ ξ ��� :
unset clip points
set clip one
unset clip two
��� :
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 cntrparam { { linear
| cubicspline
| bspline
| points <n>
| order <n>
| levels { auto {<n>} | <n>
| discrete <z1> {,<z2>{,<z3>...}}
| incremental <start>, <incr> {,<end>}
}
}
}
show contour
`levels discrete` �Ǥϡ���� � �ϻ�� ��줿 z = <z1>, <z2> ... ��� Ф ���
8.���� ��������ޤ ���
� �Ŀ������ Υ � ٥�θĿ�Ȥʤ� `���ޤdiscrete`
�⡼ �ɤǤϡ� `set cntrparams levels <n>` �Ȥ����� � �Ͼ ��� � 뤬뤬뤵
� �
���ޤ
�� :
set cntrparam bspline
set cntrparam points 7
set cntrparam order 10
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
�ʲ�� ⻲�� : `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 contour {base | surface | both}
unset contour
show contour
������ � r � ˱ ƶ d � Ϳ���ѥ
� � �� ��
ˤ Ĥ��Ƥϡ��ʲ�����:
`set cntrparam`������ � Υ � ��(��˴ؤ٥��Ƥϡ��ʲ�����:
`set cntrlabel`��
unset surface
set contour
set cntrparam ...
set table $datablock
splot ...
unset table
# ����� ξ �� �Ϻ� $datablock ����ˤ�� �
set term <whatever>
plot $datablock
�� :
set datafile separator {whitespace | tab | comma | "<chars>"}
�� :
# �� �� ���ڤΥե���������
set datafile separator "\t"
# ��������ڤΥե���������
set datafile separator comma
�� :
set datafile commentschars {"<string>"}
show datafile commentschars
unset commentschars
�� :
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"
��:
set decimalsign {<value> | locale {"<locale>"}}
unset decimalsign
show decimalsign
ƻȤ�ʸ����Ǥ���ŵ��Ū��
�֤������
��� <value> �ϡ����ξ����5����
��Τϥԥ ꥪ��'.' �䥳���',' �Ǥ���¾�ˤ���Ѥʤ�Τ�����Ǥ�� 礦��
��� <value> ���ά����ȡ������$ζ���ڤϥǥե���� (�ԥ ꥪ�� ) ����
�ѹ��������ޤunset decimalsign �� <value> ���ά����Τ�Ʊ������
��d���ޤ
��:
�� ��硢��
���Τ��Ȥ���դ��Ƥ��$���: �<�Ū��ʸ�������� � �� ϼ�����
�9��ʤɤ� gnuplot ���gprintf() ��ؿǽ��Ϥ�������Τߤ˱ƶd���
�
ν ��ϥǡ���
ν�
ν�� �νν��
��sprintf()
�� �� �ؿǽ��Ϥ�������ˤϱƶd���
�������
�η| ����Ϥ���Ϥ��ε �ư���ѹ����������ϡ�����˰ʲ���
���Ѥ��Ƥ��$���:
ν ����ϡ�gnuplot �ˡ���ϤȽ��Ϥν Ķ
ν��ѿ� LC_ALL, LC_NUMERIC,
LANG �θ��ߤ�����˽��ä���Τ�Ȥ碌��褦� ˤ�����ޤ
ν ����ϡ�gnuplot �ˡ���ϤȽ��Ϥν� ν
��"foo"
��� ˽�� ä���Τ�
� � ������ޤΥ�
����
��뤬����ȡ��뤬뤬뤵 �
�
Ƥ���ɬ�����פ�����ޤ ⤷ ��
���� "foo" �����Ĥ���ʤ��ä���硢���顼�� ��졢������
������������
��:
set dgrid3d {<rows>} {,{<cols>}}
{ splines |
qnorm {<norm>} |
(gauss | cauchy | exp | box | hann)
{kdensity} {<dx>} {,<dy>} }
unset dgrid3d
show dgrid3d
`splines` ���르����
ꥺ ϡ�"��Ĥ���" � � ˤ�����ַ ���� Ԥ�����ޤ
������ɲå���� �����
���ޤ
�Ǹ�ˡ��Ť��դ�ʿ��η��� �ˡ ���������ʿ�겼켫뤵
Ĥ �
Ť��դ��ؿ� (kernel)
���Ѱդ���Ƥ�� �ޤ: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), ������ z_i
�� i ���ܤΥǡ � � � � � �� ǡ � d _i � ϸ � � ߤγʻ��$� i ���ܤΥǡ � � � � $ ΰ � �֤�
�ε�Υ��������
������٤ƤνŤ��դ��ߤ����������� �ؿγʻ��$˶ᤤ�� Υǡ � � � � $ ˤ �
�礭�ʽŤ ߡ����� Υǡ � � � � $ ˤ Ͼ � � � � � � Ť ߤ�� դ�����ޤ
����� 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 � � Ȥ��Ƥ��
$���)��
�ʲ��⻲��
^ <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
���ѿ�ϡ�ʪ��Ū� �
��
�
Τ˰���p�������Ϥ � � � � �p��Ȥ��ƻȤ���
��
��礦���㤨� С����֤ δ ���ؿr 褹����:
�������
set dummy t
plot sin(t), cos(t)
��:
set dummy u,v
set dummy ,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
����
˥�� ��ɤ�����ϡ���� 줬 Ŭ�ڤʥ��
��������������� ���Ȥ�
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
��� �����ޤȢ�����Τ��ѹ����뤳�Ȥ����
������ޤ
��:
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
˽�ǥե���ȤǤϡ����Υ��ե������������ϡ����
�÷ ��� Ϥˤ���Ϥ�
�` ���ޤset fit quiet` �� ������
�÷ ����
� դˤ���
� `results` Ϻǽ ����
�Τ ߤ��� �� � ` ���ޤbrief` �ϡ��ɲä� fit �Τ��٤Ƥη����֤�� ˴1
� ��ؤ
��
�Ԥ������� ��
�
� ��� ` ���ޤverbose` �ϡ��С������ 5 ��p�ǥǥե���Ȥ$�
�����ܺ٤ʷ����֤������� Ԥ�����ޤ
`default` �Ȥ���ȡ�����ϸ³����ʤ����Ȥ���
������ޤ
���르����
ꥺ ˴������ ��)�� ���ؤ
� 硢������Marquardt-Levenberg
�
���르������
ꥺ ɤ��ΤäƤ����硢��� ��˱ ƶ dͿ�
��
��ʲ �� Υ� ����ץ
�������
�� �ޤ: `lambda` �ν���ϡ���K ư Ū�� ML-���
����
��
� � �� �������
���
������ɬ�פʤ�Х�� ` ����ץstart_lambda` ��ȤäƤ�������� 뤳�Ȥ���
���` � � ������ޤdefault` �Ȥ���ȡ��ƤӼ�ư��� �꤬ ���ˤʤ�� � �����ޤ
����� `lambda_factor` �ϡ��о ݤȤ��� �ؿΦּ������� ������ ����
����/��������Ȥ��Ͼ�� `lambda` ����ä�����/�����������Ҥ������ �
�С������ 5 ������� νѹ
ϡ���� ��ޥfit �ν��
ν ����
�������
ν ν 졢�������� `error`
��:
set fontpath {"pathlist1" {"pathlist2"...}}
show fontpath
����Хǥ��줿쥹뤿ȥ��
Υe��å��� OFF �ˤʤ� ����ޤǥե���ȤΥե���ȥ�
����ϡ�`show fontpath` �Ǹ��뤳�Ȥ�����
���������� �����ޤ
��:
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"
��ʸ�����ϡ�����ʸ��
� (\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
���Ѳ�ǽ�ʽ� (����/���ե⡼�ɤǤʤ����) �ϰʲ�����
�Ǥ�:
�ۤ��˻Ȥ����ȤΤǤ��뺹롼뽤 ����
Ƚ ֤ ˽ ��
("%" �� ����Ҥ δ˽ ) �ˤ ϡ�
���Τ����Ĥ��������ޤ: "-" �Ͽ�� ��
��� � "+"
�ˤ��� �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 ����ʿ��
�������
ʽ
�����
���꤬ ����� 뤳�Ȥ��������ޤ
���
����ɽ��� ˤ�� 0
���Ƭ�� ��� 뤿���"0" (����) ��p�ˤĤ��뤳
�Ȥ��Ǥ������ޤǾ��ν����������뤿���
5��0���p�ˤĤ��뤳�Ȥ��
��� �����ޤ%S �� %t ��:������ٻĤ���Τǡ�����λ�/ʬ/�ä��
���Ȥ�Ǥ�����ޤ
^</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�
��
λ�����б������ÿ�Ǥ����
�����������ޤΰ��֤μ��ι�٥ � ߥ�ʸ����ϡ��ʲ��Τ 褦�ˤʤ��ޤ:
�����:
���� ���
���
���ս ����Ǥ
��ÿ �λ� �֤��
���� λ�� פλ���˥��
� ���������� � �
�ɤ�������ޤäơ����� 0 ���� 23 �ޤǡ�ʬ�� 0 ���� 59 �ޤǤΤ ߤ�ư����
�����������������ϡ����ݥå� (1970 ǯ 1 �� 1 ��) ���p�����դ���
���������ޤÿ�Ǥλ��֤��
���� 0 ���Ф�������Ū�ʻ�/ʬ/�äο����
� ���
��:
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���ư
���ʻ�����Ф������
� ����
��� ��ʤ���С���ʻ����Ʊ����郎�Ȥ���
�����ǥե���Ȥζ˺�ɸ�γ��٤� 30 �٤Ǥ���
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
`hidden3d` �����ʤȤ��ϡ��ʻ���$��Ǥʤ�������ʬ������ξ������
(�ʲ�����: `set contour`) �Ᵽ�������ޤʣ�������r 褷�Ƥ�����ϡ�
�ƶ���ϼ�ʬ���Ȥ�¾�ζ���DZ��������ʬ���d ��ؤ
� ������������ޤ
ɽ�� (`set contour surface`) �ϵ�ǽ������ޤ
���ؿ � ϳʻҸ�Ω��θ��$�ɾ�d���������ޤ뤳�Ȥν�����ʬ������
����ġ��δ ��ؿ ֤
$δϤ��
� �������ǡ ���� Υ��르����
ꥺ ˤ�ä������
�֤���`���������ޤhidden3d` ���r 褹����� `nohidden3d` ���r 褹
����Ǵ �ؿθ��������ۤʤ 뤳�Ȥ����������ޤʤ��ʤ�С���Ԥξ���
����ϳ�ɸ���$�ɾ�d����� � Ǥ������ΰ 㤤�˴�����ؤ$ˤĤ��Ƥϡ�
�ʲ�����: `set samples`, `set isosamples`��
����α��������ʬ��õ��Τ˻Ȥ��륢 ������
르 ꥺ �� ������ޥɤ�
Υ
)�椵������
뤤 Ĥ����ɲå��������ץäƤ��`���ޤdefaults` �����
��Ф����Ϥ��٤ơ��ʲ��ǽҤ ٤�褦�ʥǥե���Ȥ��������� � ���ޤ
`defaults` ������� � ʤ��ä����ˤϡ��<�Ū�˻����줿��������ץ
�ߤ��ƶd�������ʳ��Τ�Τϰ �����ޤäơ�����
�p���� ������� Ѥ
��Υ���������ץ 뤳�Ȥʤ���ñ�� `set {no}hidden3d`
��d�} � 5������
�Τ ߤDZ� �����
� ��/
���դ ����� Ǥ 뤳�Ȥˤʤ����ޤ
�Ȥ�ʤ��٤��Ǥ���<level> = 2 �Ǥ����d��$ϼΤƤ��������ޤϰϤ�Ķ
����줬�ǥե���ȤǤ������ϰ�
�����$ϼΤƤ��<���ޤlevel> = 1 �Ǥ�����
��Ķ�����$�ΤƤ�����ޤ
C----B
���� 4 �ѷ�: A--B ɽ������� 4 �ѷ�: |\ |
("set view 0,0") | /| ("set view 75,75" perhaps) | \ |
|/ | | \ |
C--D | \|
A D
����ߤΥ���ޥɤ��Ф���p��Ʊ����Τ���뤳��
���` ����ץtrim` ������
�ǡ������������ޥν ��ʣ����Ԥ�ο� �餷����ޤgnuplot �ΥС������ 5
����줬�ǥե���Ȥε�ư�Ǥ�����
��p�Ǥ�����
��:
set isosamples <iso_1> {,<iso_2>}
show isosamples
��Ω��Ȥϡ�����ΰ�Ĥ�����ѿ������ơ��⤦��Ĥ�����ѿ�ˤ�ä�
� Ϳ ���ޤ
�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` �ˤΤƶ
ʸ ��ñ���κ���ΰ�Ǥ
ư��Υ�ϡ�������� ¤ ¤
� `wrap` �) �¤ ¤¤
¤
¤�����
���� ���ޤ
ϡȽ
� � �ˤ � 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
�ǥե���ȤǤ��
������� ΰ
����� �� ¦�α���γѤ��֤������������
�� `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`��
�ǥ ե���ȤǤϡ��ǽ���r�Υ�٥뤬����ΰ����� ˸�־졢�����³����
�٥뤬���β����¤�ǹ Ԥ� ` ����ޤ�������ץinvert` �ϡ��ǽ�Υ� ٥����
��ΰ��ֲ���� ֤ ��������³����٥� � ξ����¤٤ƹԤ��
�������Υ���ץ
���ϡ�����Υ� ٥�νĤ��¤Ӥν��֤��Ѥ�夲�|��Υҥ��ȥ ����
(`histograms`) ��Ȣ�ν��֤˹ �碌��Ȥ�������Ǥ��礦��
`splot` �������� �
� �� 硢�ǥե���ȤǤϰۤʤ����θġ����������
����Ф��ơ����������ι������ޤ.8���� ���������ܤѹ�����ˤϡ��ʲ�����:
`set cntrlabel`��
�ʲ��������ɽ�����ʤ������:
unset key
��ʲ������� �
� ��Ѥ�ɽ�������ƥ����ȤϺ��˹�
· ���ǡ������ȥ�� Ĥ���
���� 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
���֤λ��Ȥ ߤ���
� ��
� κǤ���פʳ�ǰ�ϡ�������ΰ 衢���
ʤ���⤫����
�Ȥ������Ȥȡ�������ΰ�ζ����Ȥδ֤�;�� (margin) ��
� ��뤬뤬뤳�
ȤǤ���
c/l c c/r
c/lm c/rm
b/lm b/rm
����Υ ١����饤��֤ϡ����ߤΥ
ֳ ե���ȥ��������Ф����1 �Զ��
(single space) �ˤʤäƤ����������� `set key spacing <line-spacing>`
���ѹ��Ǥ������
��:
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
�
���� (<tag>) �ϸ��Ф�������뤬뤿뤿��
0���� Ǥ�������������ʤ��ä�
�������ѤΤ�ΤǺǤ⾮����
�����ưŪ�˳����Ƥ��ߤ������ޤθ��Ф�
���ѹ�����Ȥ��Ϥ��Υ������ѹ���������������ܤ ��
� `set label` ����ޥ
�ɤ�Ȥ������
�����֤���褦�ˤʤ������r��ϰϤγ��ˤϤ�Ф�褦�ʻ�������
��������ɸ���θ��Ф���¾��ʸ����ȽŤʤ��礬���� ����
Ȣ���դ��Υ�٥� � ��ݡ
� Ȥ�����Ϸ|��⤢�������ʲ�����:
`set style textbox`����ž������ʸ�����Ȣ�դ��ϡ����٤Ƥν � �Ϸ | � � � � �
ǽ�ʤ 櫓�ǤϤ�������
��ե���ȤȤ��Υ������ϡ����Ϸ|����ե���Ȥ����� ���ݡȤ��Ƥ����
�
`font "<name>{,<size>}"` ���<�Ū��j��Ǥ�����������Ǥʤ����Ϸ|���
�ϡ��ǥե���ȤΥե���Ȥ��Ȥ������
���ϡ����ߤν��Ϸ|��������ݡȤ��Ƥ���С���٥�ʸ�����t�Ƥ�ʸ����
�˳�ĥʸ�������⡼�� (enhanced text mode) �����Ѥ�������
�
Ȥǡ�����
`noenhanced` ����Ѥ��뤬뤬뤳 Υ�٥���ĥʸ�������鳰����
�Ȥ��Ǥ����������ϡ���٥뤬� 㤨� Х���!������� (_) ����Ǥ����
��ʤɤ���ѤǤ����ʲ�����: `enhanced text`��
Ϳ�
`front` �������ȡ���� Ф��ϥǡ����Υ���դξ�˽ ˽
��� ����`back`
Ϳ�
�������� (�ǥե����)�����Ф��ϥ���դβ��˽ ˽��� ����`front`
��Ȥ����Ȥǡ���ʥǡ����ˤ�äƸ��Ф���������Ƥ�������Ȥ�� � � � 뤬뤬뤳��
����������
4 examples
?label examples
?set label examples
��:
���θ��Ф������·���ˤ�����:
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
��ƤϤ����ѥ��� �� ΤĤ�������|����ؿɽ�����������:
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'
Ʊ��Υ�����ץȥե�� � � � ǡ � � ơ � � ١ ����ޥο�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 x2
��:
set loadpath {"pathlist1" {"pathlist2"...}}
show loadpath
�����뤬뤬뤷 �
����
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 �����������������褦�Ȥ������
ʸ����ɤ
ɤ�
� ɤ ��
ɤ ߤΥ�����Τ�Τ��ѹ����������ϡ��ʲ�����:
`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
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 = r * cos(theta) * cos(phi)
y = r * sin(theta) * cos(phi)
z = r * sin(phi)
����ϡ�"�˺�ɸ��" �Ȥ�����ꡢ�ष�� "�ϳ �ؾκ�ɸ��" (���١�����) ��
����뤳�Ȥ���դ��Ƥ��$��� (���ʤ�a�phi �� z ���Ȥʤ��ѡ��Ȥ���
�����ƻ����פä��ijѡ��ˤʤ� ��)�ޤ
x = r * cos(theta)
y = r * sin(theta)
z = z
��:
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
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`��
���Υ���ޥɤϻ�ʳ��Τ�Τǡ�)�¤�������������ޤ
� κ ٤�����ʬ����
�������ǽ-���������ޤ
�� (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 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
=labels
�2 ��� �� ܥgnuplot �α�³Ū�ʥ�٥����d���ˤϡ��������ץ
`labels` ����Ѥ������ޤǥե���Ȥ� `nolabels` �ǡ��2 ����� ܥñ�˰�
Ū�ʥ�� � ٥���������� r �� ٥������ޤϸ��ߤ� `mouseformat` ����
��˽��ä��ƽ �`���ޤlabeloptions` ʸ����ϡ������� `set label` ��
���ɤ��Ϥ���������ޤΥǥե���Ȥ� "point pointstyle 1" �ǡ�����ϥ�
�� ˾������ץ ֤ � ٥饹 (`+`) ���r �� �����ޤŪ�ʥ�٥�ϡ����μ���
`replot`�����ޤϥ �������������Ǥϸ�����ޤ � ��
�³Ū�ʥ�٥�ϡ����
����$ξ�� Ctrl ����� � �2 ����� � ܥå���� ��ȤǾä����Ȥ�
��ƥ
� ��
�Ǥ������ޤº ݤΥ�٥�ΰ�� �ˤɤ�����ǥ���
å ���ʤ��� Ф����ʤ���
������� `pointsize` �Ƿ���� � ���ޤ
ν �ʲ��ν����Ѳ�
�ǽ ν Ǥ� :
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) �ϡ����Ϻ����������ܥ
� �����
���� ȤǹԤ�졢 � � �
��ϰϤ����
���ϥ �����Υɥ�å��ǹԤ�����������ޤȤϰۤʤ� ��᤹������ ��� ᤹��
᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹᤹ޥ
�����᤹᤹᤹
�¹ԴĶ��⤢ � 뤫�⤷����ޤ� ���
�� Υ���դϡ�����ե�����ɥ���ǥ ۥå�
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` �ǤϤ���Ǥ��$�����
��:
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
��:
set size 1,1
set origin 0,0
set multiplot layout 3,2 columnsfirst scale 1.1,0.9
[ �����ˤ� 6 �Ĥ �Ǥ��r �� ��� ]
unset multiplot
��Ĥ����ñ����ʤ���С�ľ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`,
�
�ǥե���ȤǤϾ���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>
��:
��:
=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)
�Υ���դ�ľ��ˤʤ�����
=broken axis
��:
�˺�ɸ�����������ɸ
� (`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>
��:
# ��ɸ���ǰϤ �줿�ΰ�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
# ĺ�$ϰ�ư���ʤ����ޤޡɤ��٤��ȿ���ǥե���Ȥ��ѹ�
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>}
`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>}
���ν���ܤФ��Ʒ �פ졢��ʿ���ȿ�ľ���ν�ܤˤ������äƤ⡢ � � �
�����5�����ߤˤʤ��� � ľ����ߤ�������դκ �ɸ � � � d � � � � � (�Ĥ �
���ʿ���ȿ�ľ���Υ������뤬 �����
㤦 ˤϤ����ʱߤȤ���ɽ��������
�ˤ�����) ���ϡ������ `set object ellipse` ��ȤäƤ��$�����
�ʲ���� �
: `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�β�
��:
set auto fix
set offsets graph 0.05, 0, 2, 2
plot sin(x)
��:
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
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
� �դ � � � d Ǥ � � � Ʊ � ˡ�
� 3 �� � � � � Ǥ � u,v,f(u,v) � � � r � ϡ � f(x,y) � � � � �
�� � � �
� � � � � Ĥ � � � � r �ˤ � � � � Ƥ ϡ � � � � � � ϥ � � �ޥɥ �� � �Ϳ����줿����r 褵
� � ��Ȥ� � � դ � � Ƥ � � $ � � � � � � � � � � � ä ˡ � � � p � � � r � � � � �
��Ƥ
�Ǥ� � � � �
� ΰ � ��
� �� � Ƥ� � � ���ޤǽ-� � � � � � ��ʶ�����ɤ�Ĥ֤��κ ����ݤ˴ؿ
� � � � � � �� �
� ����ޤϿ� / � � ��� � ɤ Τ �� ��
d � � � � Τ � �ˤ Ĥ � � Ƶ � � Ҥ � � �����ޤϥǡ���
�ϡ � � ��ؿɾ�d����$��뤫� ` ���ޤsplot data file` � � � � � $ � � ���ޤ
� � ��ϡ � � � ( � � Ω � ) � η � � � �֤��ǹ�.���� ���ޤpm3d � � � 르���� ꥺ �ϡ �
� ǽ � � � � Ǹ � � Ф � � 줿�٤�礦 2 � $ ȡ � � � � � � � Ǹ � � Ф � � 줿 ¾ � � 2 � $ �
� ֤��ΰ 褬������� 4 � $ � z � � � � ( � ����ޤɲä � � 줿 'color' � � � � � � ���
�ʲ� � � � � : `using`) � ˽ � � ä Ƴ � � � � � ( � ��� ���ޤ顼��) �ɤ � � ����ޤǥե�
� � Ȥ Ǥ � 4 � Ĥγ Ѥ �ʿ
������
� �� �� � � �����������ޤϥ������ץ
� �Ȥ
`corners2color` � � � ѹ � � Ǥ � � �������ޤʤ � ζ � ��� � d � � � � � ˤ ϡ � � ٤�礦
2 � $ � � � � � �� �� ƤϤ � � � � ʤ� � �ơ
�� � � � � � � � � � � � � $ο� �� ���
�ƤϤ �
� � � ��ޤ �d�ǤǤ
� �� � � � �ɤ Τ� ��� � � � $ ο � Ʊ � � � � � Ȥ� �
¾ ��
� ˤϲ � � �
ɬ�פǤϤ � � �� �( ����ޤХǡ����ϳʻҾ�Ǥ���ɬ��פʤ � ) � � ¾ � ˤ ⤳ � �
pm3d � � � 르���� ꥺ ϡ � � � Ϥ � � 줿 ( � � ¬ � � � 줿������� 뤤 Ϸ�����줿) � ΰ �
� γ � �ˤϲ� � � � d � � ʤ � � � � Ȥ � � � Ĺ �꤬����� ���ޤ
� � ��ο � � Ť � � ϡ � �ʲ � � Τ �� ���
ϥǡ����˴��ؤƹԤ�� �ޤ:
¾� � � � � :
2 � � � Ϣ ³ � � � � � � � � $ ο � Ʊ � � � Ǥ ʤ � � ä � � � 硢�ͳѷ d � � $ μ � � Ϥ � �
ξ � � � � � κ ǽ � � �(`flush begin`) �ˤ� � 뤫���Ǹ夫�� (`flush end`)
�ˤ� � 뤫� � � � � � � �� � (`flush center`) �ˤ� � 뤫������ʤ � � � Ф � � � � ����
`flush (center|end)` � � `scansautomatic` �Ȥ � ξΩ � � � � � � � � ä �
`flush center` � ���� `flush end` � � � � �� �`scansautomatic` � � � � � �
� 줿�������硢 ��� $ � `scansforward` � � � ѹ � � � � � ����
2 � � � Ϣ ³ � � � � � � � � $ ο � Ʊ � � � Ǥ ʤ � � ä � � � 硢�ġ � � � � � � � $ � � � �
�� � � � �ˡ � � � κ Ǹ � ˿ � � � � ѷ �
d��d�� � �ɤ� � �� � ` ����ץftriangles`
�ϻ �������ؼ����ޤϳ��� ʿ� � Ͽ �ζ � � � � � � 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) � ξ � � `:
Ϳ����줿���$ � � Ф � � ơ � � � � μ � � � � 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� ����������ϱ� � Ҥʡ � � � � 뤤�ϵ��ʥ ԡ �
Ǿ � ��� � � � � �
� ��ʥ ԥ � � � � 륤 �
� � � �� � Ĥ �� ��
� � Ͽ ����Ȥ� �ˤ�ɬ� ���פ���ޤ
� 侩��������:�
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� �� � ����������� �ʳʻҴ�ؿȸ��ʤ����Ȥ ��Ǥ ���
��� �
� �:
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
Ĵ � ο � � Ͽ ޤǤ �γ �� �
� ��
�� �ľ ܻ � � � Ȥ � � � � � ��������ޤ顼�ο� � Ͽ �ޤ
���Ȥ�
Ȥ�
�ϡ � � � � γ � � � � � � �� �(R,G,B)
� � � ��ؤѴ � � � � � � ʤ � �
�� [0:1] � � � �
� � � � Ū �ˡ � 2 � � � � ΰ ۤʤ � � � � � � � � � Ѳ � ǽ � Ǥ � : 1 � Ĥϳ � � � � � � 饫�顼��
� β � � � Ū �ʸ � � ⤦ � � Ĥ � Υ � � Ū � � � б �ɽ � � � �֤ ˤ���
Ǥ���Τ
`palette rgbformulae` � � `palette functions` � � � � � � Ū �ʸ � � Ѥ ǡ �
`palette defined` � � `palette file` � � � � � ɽ � � � � � � ` palette rgbformulae`
� � postscript � � � Ϥ Υ � � � � � � � � � � � � � � 뤳�Ȥ� � � � � ���ޤ
�� � � Ϸ | � � � ¿ � � � ϡ � �� �
¸ Ĥο � � � � � � ��ݡȤ� � Ƥ � � � �� �( ���ޤgif � �
� � 256 � � ) � � � ǥ ե � � � Ȥ � gnuplot � � � � �� ����� Ƥ� � � λ Ĥ � � �� � � �
� � � ΰ � ϡ � � ǥ ե � � � Ȥ Ǥ � pm3d � Ѥ � � � ¸ � � � � �����ޤäơ�ʣ��Υѥ�å�
� � � � � � � � �� �multiplot �ϡ � � ǽ � Υ ѥ � å Ȥ � � � � ٤Ƥ� � �ʿ�
��� � � � � � � ��
�Ȥ � � ƻ � � Ѥ � � � Ƥ � Τ ǡ � � � � � � Ƥ ���� ��� � ���ޤ
��� Ԥ Τ �� )�� ¤ ϡ� � � ʬ
� � � � � � � � N � � `set palette maxcolors <N>` � � Ȥ � � � � Ȥ Ǵ � � ¤ � � � �����ޤ
� Υ � � ����ץϡ � N � Ĥ � Υ � � Ū � ʿ � � � Ϣ ³ Ū � ʥ ѥ � å Ȥ � � � � �֤ ʥֳ � � � �
���
�� �� j� � ֳ�֤�������ޤ N �Ĥ �Υ � � � � � � Ȥ � � � � � � � � ϡ � � � Ĥ � Ϣ
³Ū �ʥ ѥ � å Ȥ � � � � � � `set palette defined` � � � � Ѥ � � Ƥ � � $ � � � � �
t �Ƥ ο � � �֤ �
ǡ�t�Ƥ����[0,1] �) �¤���Ƥ�����ޤ
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 � � � � � ( �ٿ- � � - � � - � � )
¾ � ο � � η Ϥ � � Ф � � � Ǥ � � ɤ � 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>}... ) }
<r> �Ƚ
��Ƥ�Ƚ HSV
⡢ �� �֤ ǤϤ � � � �<H> .ʬ� � CIE- XYZ � �֤ � � <X>
�� 줿���顼��ǥ�˰�¸���ư������� ��
� � Ȥ �ä�� � �� j�� Ȥ� � � �
���Ƥ� �$ � � � � �
�<gray> � � � �
ϼ�¿ � ξ � � � � ¤ ٤�ɬ�������������פ�����ޤ
ϼ �ư Ū� �
[0,1] � � � Ѵ � � � � � ���ޤ
� �:
� � � � � Υ ѥ � å � ( � � � Ω � � � ʤ � � � � � � � Ū � � ) � � 8. � � � �ˤ � :
set palette model RGB
set palette defined ( 0 "black", 1 "white" )
� � Τ ��ʥ ѥ � å Ȥ � 8 . � � � � ˤ � :
set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" )
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" )
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` � Τ ߤιԤǤ � � 줬��λ� � � 뤳�Ȥ� ��� � � ���ޤ
� �:
� � � Υ � � � � (� � - � � - � � - � � ) �ѥ � å � :
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 �ǡ� � � � � � ¿ � � � ν � � Ϸ | � � � Ŭ � ���ڤ
�� � � �
� �:
set palette model RGB
set palette functions gray**0.64, gray**0.67, gray**0.70
� � � � � � � � 㤨�аʲ�� � � � ��Ƥ� � $ � � � :
4 postscript
?commands set palette postscript
?set palette postscript
�postscript �ե � � � � � Υ � � � � � � �� �
Ū � � � � � � � �ǡ � � � � � � ε � � � ��� � � � � � � t
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 � ܤǤ � � � � � � � ǡ � � � � � Ϥ ���ݥȥ�� � � � � � � �
� � � � � �� ��� � ��� �
� ���ݥȥ �� � � � � � � � � � ϡ � ɬ � � � � � � 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
� � � ` ��ޥunset polar` � � � r � � �ˡ � � ǥ ե � � � Ȥ � xy ľ � � � ɸ � Ϥ � ᤷ � ��
��� �
�˺ �ɸ � ⡼ � ɤ Ǥ � 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)
� �:
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>
� ؤΥѥ�����פ�������ޤ
��:
set samples <samples_1> {,<samples_2>}
show samples
�������פ:
gnuplot �ΰ�Ǥp���Ǥ es�
` ϡ
size`
t ��� ���
� �
����
r ���ΰ���� Ϥ
(�����Х�) �Υ�������)�椹��Τ ˤ�Ȥ Ƥ��
��
��ä����Ϸ |�� �
�����������٤Ƥν��Ϸ|��������$ä��櫓�ǤϤ� �����ޤ
�� ����
���ߤϡ��ۤȤ�ɤν��Ϸ|����ʲ��Υ 뤬롼뤤 �� �ޤ:
˽����
������)��
ΰ � ˤ���Ȥ���ͤ�ϰ� ä���<���ޤr>=-1 �ΤȤ���x ����y ��
�<r> ����
�������ñ�� (�Ĥ 1 ����� )ޤ9���Ĺ����Ʊ��ˤʤ�褦��� �� �
�����ޤ
��� `set view equal xy` ��Ʊ��������ʲ�����
�: `set view equal` �
<r>=-2 �ΤȤ���y ����ñ����9���Ĺ���� x ����ñ����9���Ĺ���� 2 ��
������� �
<���ޤr>
� �������
˴ ��ؤưʲ�Ʊ�Ǥ
� �����
�
����
������ޤ
��:
����դ����ߤΥ����Х�������褦���礭������� ���ޤ:
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}
��:
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
`default` ������ �
ȡ �t � Ƥ � arrow � � � � � � � � ѥ � �� ��
Ϥ��Υǥե���
�Ȥ��ʤ
�ˤ� �ͤ
���ޤ
`nohead` ������뤬뤬뤳�
Ȥǡ����� �
Τʤ���� ʤ���ʬ�� ��Ȥ� �
��������
����������ޤr�ξ���ʬ���d��� Ϳ� ����ޤǥե���ȤǤ� 1
���ˡ����
�Ĥ����褬�Ĥ��Ƥ��`���ޤheads` �λ�����ʬ��ξü�����褬�d������ޤ
�ǥե���ȤǤϡ��ȤƤ�û���������Ͼ�������� ���������ޤϡ�`size` ��
��ˤǤ�� ���ޤ
��ޥɤθ��� `fixed` ��Ȥ����Ȥ��
`<backangle>` �ϡ�����θ�����ʬ��� Ȥ��
� � �� <`( ��ڤangle>` ��Ʊ����
���) �ˤʤ�������������ޤ뤬 `nofilled` �ξ��Ϥ�����
����ñ�� �뤷
����ޤ
`filled` ������ �
ȡ� � � � � β � � � � (� � � � � ) � � � d � � � � � � � � � ɤ � Ĥ �
���`���ޤnoborder` ������ � ȡ � � � � � � � ɤ � Ĥ ֤���������������ޤd�
���ޤ ��
� �� � �� ���� ��
ü���٥�� ȥ� ν � � % ԥ å � � � ξ�֤
�� ��줿뼰륦
� ��
�������t�ΤȤ��ƾ����������ʤ�������������ޤd����ϡ�����ζ���
��ϱ�Τǡ���� `noborder` ��Ȥ��٤���� ��������ɤ�֤ Ĥ��ϡ�����
�Ƥν��Ϸ|��������ݡȤ��Ƥ���Ȥϸ¤����ޤ
���������桼������ 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 style boxplot {range <r> | fraction <f>}
{{no}outliers} {pointtype <p>}
{candlesticks | financebars}
{separation <x>}
{labels off | auto | x | x2}
{sorted | unsorted}
�⤦��Ĥ���ˡ�Ȥ��ơ� �Ҥ����������
�$ Ȣ ��� γ�� (fraction) �����
�뤬뤬뤳 � ���
Ȥ�� ��������ޤξ��� ��ϰ� �������
Ϥϥ �顢�ǡ�������λ���
�
��
��
����ʬ��Ϥ�����ޤǡ��оΤ˱�Ĺ����������ޤΤȤ��⡢�ġ���Ȣ�Ҥ��ϥ�
������������$�ü��)��ޤ¤�������ޤǡ�������� 95% ���$�Ϥ�ˤ�
�ʲ��Τ 褦�ˤ�����ޤ
set style boxplot fraction 0.95
Ȣ�Ҥ����ϰϤγ��ˤ���Ǥ�դ��$ϡ�outliers �ȸ��ʤ�������ޤǥե����
�ǤϤ����ϤҤȤĤҤȤı� (pointtype 7) ���d�������ޤ��������ץ
`nooutliers` �Ϥ�����
��ˤ�����ޤ
� �Ϥ �
�ǥե���ȤǤϡ�����ѿ�ΰۤʤ��٥���б����� boxplot ��0� �
�����ǡ����ե�����ˤ��Υ�٥뤬�������֤��r 褷�������ޤε�ư�ϥ���
������ `unsorted` ���б����` ����ޤ��������ץsorted` ����������
���ȡ�
�٥���� �ޤ �
� ���
˥����Ȥ������ �
ν � �
boxplot 褷����ޤ 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}
?fillcolor
?fc
�ɤ��٤��� (`fillcolor <colorspec>`) �ϡ��ɤ��٤��������� (fill style)
����ʬΥ����Ƥ��������ޤʤ�a�fillstyle ���r����� 䥪�֥������Ȥ���
뤬뤬뤳
���ο����ä��� �����ޤ � ���
Ȥ�� �����ޤfillstyle ���Ĥ��������
���� fillcolor ��������
�����ޤfillcolor �� `fc` �ξ�ά�d�Ȥ�����ޤ
�����ʤ����ϡ��ɤ��٤����ϸ��ߤ���� (linetype) ���������ޤ
��:
��:
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
��:
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
饤
���Τ 褦�ˤ Ĥ������� � ����� ϡ��ǥե���Ȥη�(���, �<�) ��
��ʤ�Τ��֤�������
뤬뤬뤳�ȤϤ��ʤ��Τǡ�� 饤� �� ���� 롢� ǥե���Ȥη���
�ɤd��Ȥ������ޤ 饤��� ����� ϰ�Ū�ʤ�Τǡ����` ��ޥreset` ��
�Ͼ ⤽ä��� �����ޤ
�¹Ԥ���Ф��ĤǤ ��� K�Τ����d��������ϡ�
�ʲ�����: `set linetype`��
�����<�ϡ����� index ���ǥե���ȤȤ���������ޤindex ����Ф���
�º ݤε���ηdϡ����Ϸ|��ˤ�äưۤʤ��$���ޤ
�����$��礭���ϡ���� ߤν��Ϸ|��Υǥե���Ȥ����礭�����Ф�����
�Ǥ� (�������������Ǥ� <point_size> �ϡ����` ��ޥset pointsize` ��Ϳ
��������ˤϱƶd��ʤ����Ȥ���դ��Ƥ��$���)��
��:
�ʲ��Ǥϡ��ֹ� � � � 줿뤬륢���֡���С��ĤȤ���
1, 2, 3 ���Ф���ǥե���Ȥ����
d
d �ǥե���Ȥ��d$ηd줿뤬륢��5��a������ѷdǤ���Ȥ��������ޤ ΤȤ�
�ʲ��Υ����ޥ
��:
set style circle {radius {graph|screen} <R>}
{{no}wedge}
{clip|noclip}
��:
set style rectangle {front|back} {lw|linewidth <lw>}
{fillcolor <colorspec>} {fs <fillstyle>}
��:
set style rectangle back fc rgb "white" fs solid 1.0 border lt -1
set style rectangle fc linsestyle 3 fs pattern 2 noborder
�ǥե���Ȥ�����ϡ��طʿ��Ǥ��ɤ��٤��
ǡ � � � � � � Ϲ � ˤ ʤ ä Ƥ � � ���ޤ
��:
set style ellipse {units xx|xy|yy}
{size {graph|screen} <a>, {{graph|screen} <b>}}
{angle <angle>}
{clip|noclip}
�Ǹ�ˤʤ�������ޤǥե���Ȥ
�
� ���� � �
�� �
��`angle` �����Ǥ���
���������ϡ��ʱ ߤμ 缴�ȥ ���դ � x �������Ȥ ʤ��Ѥǡ �ñ �� �� ٤��� �
��ɬ����פ�����ޤ
r 趭���ǥ���å��ԥ ��
`clip` ���ʱ ߤ�� `noclip` �Ϥ�����
�����ޤ ���
�������ޤǥե���Ȥ� `clip` �Ǥ���
��:
set surface {implicit|explicit}
unset surface
show surface
�ϡ���֤�
��줿�ǡ � � � � � � � ¸ � � � � Τ ˤ � Ȥ � � � � Ȥ � � Ǥ � � �( �ޤʲ�����:
`set samples`, `set dgrid3d`)��
��:
set table {"outfile" | $datablock} {append}
plot <whatever>
unset table
<terminal-type> � � � � ά � � � � � � `gnuplot` � � � � � Ѳ � ǽ �ʽ � � Ϸ | � � ΰ � � � �
ɽ�����<���ޤterminal-type> � λ � � �ˤ � û ��d � � Ȥ � � ���ޤ
� � � � � Ĥ � � ν � � Ϸ | � � Ϥ � � � � � � � � � ɲ å � � ������ץd ���ޤ
� � `<term>` � � � Ф � � � ľ p � � `set term <term> <options>` � ǻ � � Ѥ � � 줿��
� ����ץϵ������ 줿뼰륦���θ � � `set term <term>` � � � � � � � ꥻ�åȤ�� 뤳
�ȤϤ � � � ��ޤ � �������
���� 㤨�а � � � � � �� p
ѤǤ��
Ĥ � � � ���
�ΰ ۤʤ���Ϸ|���
� � � �����ؤp � Υ � � ����ץ �
��
� � �֤ �������
��� ������ ɬ�פϤ���
���ޤ
� ܺ٤ϡ��ʲ����� `complete
: ��
list of terminals`
C 3 � � � Ϸ | � � ؤΥ� � ( ����ץtermoption)
3 termoption
?commands set termoption
?set termoption
?termoption
� � � ` ��ޥset termoption` �ϡ � � � � �� � Ѥ � � Ƥ � � � � � Ϸ |
� � `set terminal` � � � �ޥɤ�ȯ � Ԥ ʤ � � � � ѹ � � � �뤳�Ȥ��ǽ�ˤ�� �������ޤ
� � � �ޥɰ�Ĥ��Ф��ư�ĤΥ������ץΤ ߤ��ѹ��Ǥ����������ޤƤ� � � � � ˡ
� � � ѹ � � Ǥ � � 뤬쥹륪�����ץϤ���¿���Ϥ���ޤ ��� ���
� � ���Ѳ�ǽ�ʥ��
����ץ
�ϰʲ�� Τ � ΤΤ ߤǤ���
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 � � ι � ߤȥ�٤���� ٥�)� 椷��
��� �
� �:
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
� ֤ ˡ����Ф��Τʤ���9���
`mirror` � � `gnuplot` � � ȿ � � ¦ � ζ � � � � � Ʊ � � � � �
� � � Ϥ � � � 褦�`���ؼ����ޤnomirror` �ϡ � � � � ʤ � � � � � � � Ƥ � � � ��� Τ � � �
� � Ԥ ʤ � � ���ޤ
� ǥե� � � Ȥ Ǥ ϸ � � Ф � � � ٥�ϡ��������̤
�� � 8褦�ˡ����Ȳ�ž�Ѥ˰�¸
��� � � � � ˼ ֤ �ưŪ��·����� ��������ޤˤ���ʤ���С��<�Ū�� `left`,
`right`, `center` � Υ � � � � � ɤˤ� � � � � · � � � � � �
Ǥ� � � � ѹ
���ޤ
`autojustify` � ǥǥե� � � Ȥ ε � ư � � � � ���ޤ
� �:
set timestamp {"<format>"} {top|bottom} {{no}rotate}
{offset <xoff>{,<yoff>}} {font "<fontspec>"}
{textcolor <colorspec>}
unset timestamp
show timestamp
� �:
set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica"
� �:
set timefmt "<format string>"
show timefmt
� � � � ( � � � � )���ڡΰ � � � � Ϥ � � 㤤������ޤʸ�� � � � � � 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` � � �꤬����� ʤ�ΤǤ���Ȳ�������ޤ
� �:
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
`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` � �
� �:
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}
� �:
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
� �:
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 xdata time
show xdata
� � � ����ץʤ � � ξ � � ϡ � � ǡ � � � � β � � � � ˡ � � ��� η | � � � ᤷ � �
����
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` � �
� �:
� � � ϡ � � � � ʤ � | � � ˱ �ä � � � 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 xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"}
{textcolor <colorspec>} {{no}enhanced}
{rotate by <degrees> | rotate parallel | norotate}
show xlabel
<font> � ϸ � � Ф � � � � �� �
�ե��� �Ȥ
���� � �� �
Τ�Ȥ ��
<size> ( � 礭��) � � ñ ��ϡ � � ɤ � ʽ � � Ϸ | � � � Ȥ � � � � ˰ �¸ � � � ����
`noenhanced` � ϡ � � � ĥ ʸ � � � � � � � �
��ͭ �
(enhanced text) � ɤ
Ƥ ä��ˤ �ʤ ⡼
� � � � Ǥ ⡢ � � ٥�ʸ� � � � � � ĥ ʸ � � � � � � � ʤ � � 褦�ˤ������
�֤ ʲϰ
� � � θ � � Ф � � Υ ǥե � � � Ȥ ΰ � � ������ � � : Ǥ
xlabel: x � � � θ � � Ф � � ϥ � � � դ β � � ο � � �
� 뤫��ľ� �
ylabel: y � � � θ � � Ф � � ϥ � � � դ κ � � ο � � � ǡ � � � ʿ � � � �� ˽
�ˤ ʤ 뤫�Ͻ��Ϸ|���¸
zlabel: z � � � θ � � Ф � � ϼ � � � ɽ � � � ϰ Ϥ � � � ǡ � � � � Ф � � ο � � 椬 z �� �ο� � �
y2label: y2 � � � θ � � Ф � � � �֤ ϡ����Ϸ
y2 � � � α � � � � � � ΰ � � ���
�� | �
�¸�y �
�
�Ʊ���
ε §�Ƿ��ꡣ
x2label: x2 � � � θ � � Ф � � ϥ � � � դ ξ � ǡ � � � � � � ȥ � � � ϲ � � � � � � � ϡ � ��� �
ʸ� � � Ȥ � � С � � � � � ˤ � � ʣ � � ι Ԥ � � � ʤ � � r 西���ȥ�� x2 ���θ��Ф���
8. � � � 뤬뤬뤳 � ǽ����:
Ȥ��
� Хå � � � � � å � � � ʸ � � � � κ � � ѡ � � �ڤʸ� � � � � Ϥ � ñ � � � � � � � � � � Ű � � � � � �
� 㤤�˴�������ؤ�����ܤˤĤ��Ƥϡ��ʲ�����: `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
� �:
set xrange [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} {{no}extend}
| restore
show xrange
x � � x2 � � � � � � � 뤬뤬뤤�� y �� y2 � � � � � ϰ Ϥ � � � �
�� 륪
�ʲ � � � � � : `set link` � �
˵ � � �
� � � � � � � Ǥ � � � ` w r iteback` � κ � � Ѥ ϡ � ` plot` � μ¹ � � � �
ǽ Τǡ� � � � �
� � � �ޥɤ � p � � � � �� � ɬ�� � ����פ ����Ǹ����¸������ʿ�����ϰϤ�
`set xrange restore` � � � � Ǥ � � �������夲�����
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 � �
� ʤ � � � С � � ѥ � �� �� ѿ�μ�ư��ܵ�ǽ�ϰ ��� � � ʤ � � Ǥ � � 礦��
� �:
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<*]
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` ˤ� Ŭ�Ѥ���
� ����
�֤ ˡ����Ф��Τʤ���9���
`mirror` � � `gnuplot` � � ȿ � � ¦ � ζ � � � � � Ʊ � � � � �
� � � Ϥ � � � 褦���� � ޤ
`���ؼnomirror` � ϡ � � � � ʤ � � � � � � � Ƥ � � � ��� Τ � � �
� � Ԥ ʤ � � ����
� �:
xtics � � � � � r � ˶ � Ť � � � :
set xtics offset 0,graph 0.05
� ǥ ե � � � Ȥ Ǥ ϸ � � Ф � � � ٥�ϡ��������̤
�� � 褦�
8 ˡ����Ȳ�ž�Ѥ˰�¸
��� � � � � ˼ ֤ �ưŪ��·��������������ˤ���ʤ���С��<�Ū�� `left`,
`right`, `center` � Υ � � � � � ɤˤ � � � � � · � � � � � �
Ǥ� � � � ѹ
����
`autojustify` � ǥǥ ե � � � Ȥ ε � ư � � � � ����
� � � ����ץʤ � � � `set xtics` � � ¹ Ԥ � � � ȡ � � � 9 � �꤬ ɽ��������� �֤ Ǥ�
� � С � � � � � ϥ ǥ ե � � � Ȥ ζ � � � � � � ���ϼ� � � � � � � � � � � Ǥ ʤ � � � в � � � � ⤷
� ����� �p� �� ˻ �� ��� 9 � � δ ֳ֡����� ( � ȸ � � Ф � ) � � � ���ݻ � ޤ
�
� �:
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 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)
� �:
set xtics 0,.5,10
set xtics add ("Pi" 3.14159)
� � � � ϼ � ư Ū � � � � 9 � � ι � ߤ� x � � � � �ֳ֤ ǤĤ���������ФΤȤ����
0.5 �ֳ
� < � Ū �ʸ � � Ф � � � � ɲ ä � � ����
(� � � Ф � � դ � � � � � ʤ � ) � � � � 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` ��� ѹ����� ����
� �:
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 xyplane at <zvalue>
set xyplane relative <frac>
set ticslevel <frac> # set xyplane relative � � Ʊ � �
show xyplane
� �:
set zero <expression>
show zero
� �:
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` � �
� �:
y=0 � μ � � ��
��� 褦�˴ � ñ ˽
� �� � � :
set xzeroaxis
�$ � � � ˤ � � ơ � � � ä � � � � � � ��������ѥ�����ˤ��������:
� �:
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 � Τ 褦�ʤ � Τ Ϥ � � � ����
� �:
splot {<ranges>}
{<iteration>}
<function> | {{<file name> | <datablock name>}
{datafile-modifiers}}
{<title-spec>} {with <style>}
{, {definitions{,}} <function> ...}
� � � ` ��ޥsplot` � ϡ � � 8��ؿ.� � � 줿�ǡ�� � � � � ���ϥǡ����ե����뤫
� � � ɤ ߹���%ǡ�� � � � � ���ϻ�p����¸��� 줿�p�դ��ǡ��� �֥�� å � � Υ ǡ �
� � � � � � � �����ǡ�� � � ե � � � � ��� ϡ � ��� � � � � � ǰ Ϥ � �ʸ � � � � Ȥ � � � �� Ϳ
� �ܤ1 ����� � ؿ ޤο� Ǥ � � � � � � ���ѿ�⡼�� (parametric) �Ǥ� 3 �Ĥ�
� � � � Ȥ Ȥ � � � � � � � ����
`datafile` � � � ����ץˤϤ���˰㤤����������
� �:
splot '<file_name>' {binary <binary list>}
{{nonuniform} matrix}
{index <index list>}
{every <every list>}
{using <using list>}
�ǡ � � � � ե � � � � � η | � � ϡ � � � � $ � (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`� �
��� � 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
�� � � � �� �matrix ǡ � � � � � � r 褹�륳��ޥɤ � � � :
splot 'file' nonuniform matrix using 1:2:3 # � ƥ � � � � ȥ ǡ � � �
splot 'file' binary matrix using 1:2:3 # �Х � � ʥ � ǡ � � �
� � ä ơ � � � � � �� ��matrix ǡ � � � � ι � ¤ � ϰʲ � � Τ 褦�ˤʤ���:
� � � � � ϰʲ � � Τ 褦�� 3 � Ĥο � � � � Ȥ � � Ѵ � � � � � ��:
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 � � � � ����) � �
splot 'datafile.dat'
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
� � � � � � � � ` 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
@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
=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>
2 system
?commands system
?system
� �:
system "command string"
! command string
output = system("command string")
show variable GPVAL_SYSTEM
� �:
test {terminal | palette}
� �:
2 unset
?commands unset
?unset
=iteration
� � � ` ��ޥset` � � � � � �� ���� ����ץϡ�������б����� `unset` �����ޥ
�ˤ � ä Ƥ � � Υ ǥ ե � � � Ȥ � � � �� ᤹ � ���
Ȥ� � � ǽ � � � �
` u�n set` �� �ޥɤˤϷ�
� � � ֤�������Ѥ Ǥ � � ����ޤʲ� � � � � : `plot for` � �
� �:
set xtics mirror rotate by -45 0,10,100
...
unset xtics
� �:
update <filename> {<filename>}
� � � Υ � � �ޥɤϡ � Ϳ �� � � 줿��
ե� � � � � � � � ¸ � � � � Ƥ � � � � ѿ �
��ߤ�� �˹
�� �
� � � �����������ޤ Ͻ��� ��
Υե������Ʊ���
� Ǥ �
� ʤ���
Ф ���� ��ޤ� � ʲ�
� � � � : `fit` � �
� � � � � Ǥ ʤ � � � С � � � � �� �� ե � � � � 뤬¸ � ߤ���� `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` � �
`legacy` � Ȱ � Τ Ĥ � � � � � � Ϸ | � � ϡ � � Ƕ � Υ С � � � � � � � gnuplot � Ǥ ϥǥ ե �
� � Ȥ Ǥ ϥ ӥ � ɤ � � 줿뤬롢�
º�
�ݤˤϻ� � Ѥ Ǥ � � ʤ � � � � ⤷ � � ���ޤ
<3 -- t �Ƥ ν � � ϥ ɥ 饤�Фι � � ܤϡ�.trm �ե����뤫���� ĥ � ä � � � � � ���ޤ
C 1 � Х � (Bugs)
1 Bugs
?bugs
� Х � � � ��ݡȤ � e-mail � � gnuplot-bugs � ����ꥹ�Ȥ � � � 뤫��� ���ޤ
SourceForge � � gnuplot
� � � � �ݡʤ������Ѥ��Ƥ ��� gnuplot
�ʤ�Ф ��Υ Х ���¾ � � �ڤƥ� � ȥ� � ���
ץȤ � � � ä Ƥ � � $ � � � � � � ʲ � � � � � :
`seeking-assistance` ��
=gamma
=bessel
=timefmt
=nohidden3d