#CONTENTS
// Âè 12 ²ó -- gnuplot
* gnuplot [#dac99c37]
gnuplot ¤È¤Ï¡¤ÂÐÏÃŪ¤Ë¤âÈóÂÐÏÃŪ¤Ë¤âÍѤ¤¤ë¤³¤È¤Î½ÐÍè¤ë¡¤CUI ¤òÄ̤¸¤¿Í³½ïÀµ¤·¤¤¥°¥é¥ÕºîÀ®¥Ä¡¼¥ë¤Ç¤¢¤ë((1986º¢¤Ë¤Ï´û¤Ë¸ºß¤·¤¿¤Ï¤º))¡¥
¤É¤Á¤é¤«¤È¤¤¤¦¤È¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤À¤¬¡¤¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é»Ø¼¨¤ò½Ð¤»¤ë¤¿¤áµ¡³£Åª¤ËÂçÎ̤˥°¥é¥Õ¤òºîÀ®¤¹¤ëºÝ¤Ê¤É¤Ï¥Ñ¥¤¥×¤Î´Ö¤Ë¶´¤à¥³¥Þ¥ó¥ÉÉ÷¤ËÍѤ¤¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¡¥
ÆÃħ¤È¤·¤Æ¤Ï¡¤
&br;&br;
- ÉáÄ̤˻Ȥ¦¤Ë¤Ï CUI ½èÍý¡¥Á´¤Æ¤ò¥³¥Þ¥ó¥É¤Ç»Ø¼¨¤¹¤ë¤Î¤ÇÌÀ²÷¡¥
- ¥³¥Þ¥ó¥É¤È¤·¤Æ¤â»È¤¨¤ë¡¥
- ¤Ç¤¤ë¤³¤È¤Ï¡¤¼ç¤Ë¡¤È¡¿ô¤ò¥°¥é¥Õ¤Ë¤¹¤ë¤³¤È¤È¡¤¥Ç¡¼¥¿¤ò¥°¥é¥Õ¤Ë¤¹¤ë¤³¤È¡¥
- Postscript ·Á¼°¤ä SVG ·Á¼°¤Ç½ÐÎϤǤ¤ë¡¥¤³¤ì¤Ï¥°¥é¥Õ¤ò¥Ù¥¯¥¿¡¼·Á¼°¤Ç½ÐÎϤǤ¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡¥
- TeX ¤ÈÁêÀ¤¬Îɤ¤¡¥TeX ÍѤÎÆüì¤ÊÀßÄê¤ò¤¹¤ë¤³¤È¤â²Äǽ((ÉáÄÌ¤Ï Postscript ¤ò»È¤Ã¤¿¤Û¤¦¤¬ÁÇľ¤Ç°·¤¤¤ä¤¹¤¤¤¬¡¤TeX ¤Î¥³¡¼¥É¤Ç¿Þ¤ò½ñ¤¤¿¤¤»þ¤Ê¤É¤Ë¤Ï¤È¤Æ¤âÊØÍø¡¥))¡¥
&br;&br;
¤È¤¤¤¦¤È¤³¤í¤¬µó¤²¤é¤ì¤ë¡¥
&br;&br;
** Reference: »²¹Í»ñÎÁ [#g814bc37]
&br;
- [[&ref(/materials/JNorth_arrow-right-sm.png); gnuplot:http://www.gnuplot.info]]
¡Ä gnuplot ËÜ²È web. ºÇ¿·ÈǤâ¥É¥¥å¥á¥ó¥È¤â¤³¤³¤Ë¤¢¤ë¡¥ºÇ¿·¥Ð¡¼¥¸¥ç¥ó¤Ï¸½»þÅÀ¤Ç¤Ï 5.0 cvsÈÇ.
¥ê¥ó¥¯¤òé¤Ã¤Æ¹Ô¤¯¤È¡¢Windows ÍѤâÃÖ¤¤¤Æ¤¢¤ë¡¥2014ǯ7·î7ÆüÈǤ¬ºÇ¿·¤Î¤è¤¦¤À¡¥
¥ê¥ó¥¯¤òé¤Ã¤Æ¹Ô¤¯¤È¡¢Windows ÍѤâÃÖ¤¤¤Æ¤¢¤ë¡¥2014ǯ7·î15ÆüÈǤ¬ºÇ¿·¤Î¤è¤¦¤À¡¥
¤Ê¤ª¡¤¤¤¤í¤¤¤í¤ÈÊØÍø¤Ê¤è¤¦¤Ë²þÁ±¤¬¤Ê¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¤¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Ê¤é¤ÐºÇ¿·ÈǤˤ·¤¿¤Û¤¦¤¬¤¤Ã¤È¹¬¤»¤Ç¤¢¤ë¡¥
&br;
- [[&ref(/materials/JNorth_arrow-right-sm.png); gnuplot ¤Î¥Ú¡¼¥¸(Takeno Lab):http://takeno.iee.niit.ac.jp/~foo/gp-jman/gp-jman.html]]
¡Ä gnuplot ¤Î¥Þ¥Ë¥å¥¢¥ë¤ÎÆüËܸìÌõ¡¥¤Û¤ÜºÇ¿·ÈǤޤÇ·¤Ã¤Æ¤¤¤ë¡¥¤¢¤ê¤¬¤¿¤¯Æɤޤ»¤Æ¤â¤é¤ª¤¦¡¥
&br;
- [[&ref(/materials/JNorth_arrow-right-sm.png); GNUPLOT - not so Frequently Asked Questions - :http://t16web.lanl.gov/Kawano/gnuplot/index.html]]
¡Ä ¤â¤·¤«¤¹¤ë¤È¥µ¥¤¥È¼«ÂΤϾ䨤Ƥ¤¤ë¤¬¡¢¤½¤³¤Ï¤½¤ì¡¢²áµî¤ØÈô¤ó¤Ç¸«¤Æ¤ß¤è¤¦¡¥
gnuplot ¤ÎÆþÌç¤À¤±¤Ç¤Ê¤¯¡¤¡Ö¤³¤¦¤·¤¿¤¤»þ¤Ë¤Ï¡×¤È¤¤¤¦ howto ¤¬Âô»³½ñ¤¤¤Æ¤¢¤ë¡¥¤Ò¤ÈÄ̤êÌܤòÄ̤·¤¿¤¤¡¥
&br;&br;
¾¤Ë¤â¡¤web ¾å¤Ë¤Ï gnuplot ¤Ë¤Ä¤¤¤Æ½ñ¤¤¤¿¤â¤Î¤ä¡¤½ñÀÒ¤¬Âô»³¤¢¤ë¡¥
¼«Ê¬¤Ë¤¢¤Ã¤¿¤â¤Î¤òõ¤·¤Æ¤ß¤è¤¦¡¥
¤Á¤Ê¤ß¤Ë¡¤&color(red){gnuplot ¤Ë´Ø¤¹¤ëÆüËܸì½ñÀҤϴõ¾¯};¤Ê¤Î¤Ç¡¤¸«¤«¤±¤¿¤éÇã¤Ã¤Æ¤ª¤¯¤°¤é¤¤¤ÎÀª¤¤¤¬É¬ÍפÀ((¤½¤¦¤·¤Ê¤¤¤ÈɬÍפʤȤ¤Ë¤ÏÆþ¼ê¤Ç¤¤º¡¤¸å²ù¤¹¤ë¤³¤Èɬ»ê¤Ç¤¢¤ë)).
&br;&br;
** 101 of gnuplot: ´ðÁà [#fd8fafdd]
*** Ability: ¤Ê¤Ë¤¬½ÐÍè¤ë¤Î¤« [#r47f4b56]
¾å¤ÎËÜ²È web ¤Î ''demo gallery'' ¤Ø¥¢¥¯¥»¥¹¤·¡¤¤É¤Î¤è¤¦¤Ê¤³¤È¤¬½ÐÍè¤ë¤Î¤«¤¶¤Ã¤È¸«¤Æ¤ª¤³¤¦¡¥
ʸ»ú¤òÆɤޤº¤Ë¤¶¤Ã¤È¿Þ¤ò¸«¤ë¤À¤±¤Ç¤â¡¤²¿¤¬½ÐÍè¤ë¤«¤ª¤ª¤è¤½ÇÄ°®¤Ç¤¤ë¤È»×¤¦¡¥
*** begin, end and help: µ¯Æ°¡¤½ªÎ»¡¤¥Ø¥ë¥× [#d5d2be35]
- gnuplot ¤òµ¯Æ°¤¹¤ë¤Ë¤Ï¡¤¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç
> ''gnuplot''
<
¤ÈÆþÎϤ¹¤ì¤ÐÎɤ¤¡¥
gnuplot ¤¬µ¯Æ°¤·¤Æ¡¤¥³¥Þ¥ó¥É¼õÉե⡼¥É¤Ë¤Ê¤ë(¥×¥í¥ó¥×¥È¤¬ÊѤï¤ë¤Î¤Ç¤ï¤«¤ë¤À¤í¤¦)¡¥
//
- gnuplot ¤ò½ªÎ»¤¹¤ë¤Ë¤Ï¡¤gnuplot ¤Î¥³¥Þ¥ó¥É¤È¤·¤Æ
> ''exit''
<
¤â¤·¤¯¤Ï
> ''quit''
<
¤Ç¤è¤¤¡¥
//
- gnuplot ¤Î¥Ø¥ë¥×¤Ï¡¤gnuplot ¤òµ¯Æ°¤·¤Æ¤«¤é¡¤CUI ¤Ê¤é¤½¤Î¥³¥Þ¥ó¥É¤È¤·¤Æ
> ''help''
<
¤â¤·¤¯¤Ï
> ''?''
<
¤È¤¹¤ë¡¥
GUI ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤È¤·¤Æ¼ÂÂΤò»ý¤Ã¤Æ¤¤¤ë¤Ê¤é¤Ð¥Ø¥ë¥×¥Ü¥¿¥ó¤¬¤¢¤ë¤À¤í¤¦¤«¤é¤½¤ì¤ò²¡¤·¤Æ¤âÎɤ¤¤À¤í¤¦¡¥
&br;
¤¤¤º¤ì¤Ë¤·¤Æ¤â¥Ø¥ë¥×¤Ï¿Áع½Â¤¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¤Á¤ç¤Ã¤ÈÆɤߤˤ¯¤¤¤Î¤Ç¡¤¾å¤ÎËÜ²È web ¤«¤é¥Þ¥Ë¥å¥¢¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤ÆÆɤàÊý¤¬Îɤ¤(¥Þ¥Ë¥å¥¢¥ë¤ÏÉáÄ̤κî¤ê¤ÇÆɤߤ䤹¤¤)¡¥
* The easiest example: ¤´¤¯´Êñ¤ÊÎã [#k101c9cb]
°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¡¤¤Þ¤º¤Ï»î¤·¤Æ¤ß¤è¤¦¡¥
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
°Ê²¼¤Î¼ê½ç¤Ë½¾¤¤ gnuplot ¤òÆ°¤«¤·¤Æ¤ß¤ë¡¥&br;
+ ¤Þ¤º¡¤gnuplot ¤òµ¯Æ°¤¹¤ë¡¥
&br;&br;
+ ¼¡¤Ë¡¤gnuplot ¤ÎÃæ¤Ç¼¡¤Î¥³¥Þ¥ó¥É¤ò°ì¹Ô¤º¤ÄÂǤÁ¹þ¤â¤¦¡¥
>''set␣samples␣300''
>''plot␣[-30:30]␣sin(x)/x''
>''set␣term␣png''
>''set␣output␣"sample-01.png"''
>''replot''
>''exit''
<
&br;&br;
+ ÌäÂ꤬¤Ê¤±¤ì¤Ð¡¤sample-01.png ¤È¤¤¤¦,&br;
&ref(./gnuplot-sample.png);&br;
²èÁü¥Õ¥¡¥¤¥ë¤¬¤Ç¤¤Æ¤¤¤ë¤Î¤Ç¡¤¸«¤Æ¤ß¤è¤¦.
(ºåÂ綵°éÍÑ¥·¥¹¥Æ¥à¤¬²èÁü±ÜÍ÷¥Ä¡¼¥ë¤ò¤É¤¦ÀßÄꤷ¤Æ¤¤¤ë¤«ÉÔÌÀ¤Ê¤Î¤Ç) GUI¤Ç¤½¤Î¥Õ¥¡¥¤¥ë¤ò¥Þ¥¦¥¹¤Ç¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¤Î¤¬°ÂÁ´¤À¤í¤¦¡¥
* Plot of functions: È¡¿ô¤òÉÁ¤¯ [#e795d577]
¾å¤ÎÎ㤫¤é¤ï¤«¤ë¤è¤¦¤Ë¡¤gnuplot ¤Ï ''plot'' ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤¿È¡¿ô¤ò¤½¤Î¤Þ¤Þ¥°¥é¥Õ¤ËÉÁ¤¯¤³¤È¤¬¤Ç¤¤ë¡¥
È¡¿ô¤Ï´û¤ËÍ¿¤¨¤é¤ì¤Æ¤¤¤ë¤â¤Î(''help␣functions'' ¤Ç¸«¤ë¤³¤È¤¬½ÐÍè¤ë)¤Î¾¤Ë¡¤¼«Ê¬¤Ç¤âºî¤ë¤³¤È¤¬¤Ç¤¤ë¡¥
&br;
Î㤨¤Ð¡¤
>''f(x)=x*x+2*x+1''
<
¤È¤¹¤ë¤ÈÈ¡¿ô f(x) ¤È¤·¤Æ x^2+2x+1 ¤òÄêµÁ¤·¤¿¤³¤È¤Ë¤Ê¤ê¡¤
>''plot␣f(x)''
<
¤È¤¹¤ì¤Ð¤³¤ÎÆó¼¡Â¿¹à¼°¤Î¥°¥é¥Õ¤òÉÁ¤¯¤³¤È¤¬½ÐÍè¤ë¡¥
** Options for function plot: È¡¿ô¤òÉÁ¤¯»þ¤Î¥ª¥×¥·¥ç¥ó [#o9d54045]
plot ¤ËÂФ·¤Æ¡¤ºÙ¤«¤¯¤¤¤í¤¤¤íÊѤ¨¤¿¤¤¤È¤¤¤¦¾ì¹ç¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤.
&br;&br;
- ¤â¤¦°ìÅÙ(Ʊ¤¸´Ø¿ôÅù¤ò)ÉÁ¤¤¿¤¤.&br;
>''replot''
<
¤È¤¹¤ì¤Ð, ºÇ¤âºÇ¶á¤Î plot ¤« splot(¸å½Ò) ¤òºÆ¼Â¹Ô¤¹¤ë.
&br;&br;
- ¥°¥é¥Õ¤ÎÉÁ¤Êý¤òÊѤ¨¤¿¤¤. &br;
gnuplot ¤Ë´Ø¿ô¤òÉÁ¤«¤»¤ë¤ÈÄ̾ï¤ÏÀþʬ¤Ç·Ò¤¬¤ì¤ë¤¬¡¤¤³¤ì¤òÅÀ¤Çɽ¤·¤¿¤¤»þ¤Ê¤É¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤((with points ¤È¿¿ÌÌÌܤ˽ñ¤«¤º¤Ë¡¤ w p ¤È¤¹¤ë¤À¤±¤Ç¤âÎɤ¤¡¥)).
> ''plot␣sin(x)␣with␣points''
<
with ¤Ë³¤±¤Æ»È¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ë¤Ï points ¤Î¾¤Ë lines, linespoints, impulses, steps, dots, boxes ¤Ê¤É¤¬¤¢¤ë.
&br;&br;
- ÉÁ²è¤¹¤ëÈϰϤòÊѤ¨¤¿¤¤.&br;
> ''plot␣[-3:3]␣[-1.2:2.0]␣sin(x)''
<
Åù¤È¤¹¤ì¤Ð¤è¤¤. °ì¤ÄÌܤΠ[a:b] ¤¬ x¼´¤ÎÈϰϤòɽ¤·¡¤Æó¤ÄÌܤ¬ y¼´¤ÎÈϰϤòɽ¤¹.
&br;&br;
- ɽ¼¨¤Ë»È¤¦¡ÖÅÀ¡×¤Î¿ô¤òÁý¤ä¤·¤¿¤¤.&br;
¡ÖÅÀ¡×¤Î¿ô¤¬¾¯¤Ê¤¹¤®¤Æ¥°¥é¥Õ¤¬ÁƤ¯¤Ê¤Ã¤Æ¡¤Àµ¤·¤¯É½¼¨¤µ¤ì¤Ê¤¤¤È¤¤¤¦¤è¤¦¤Ê¾ì¹ç¤Ï¡¤ plot ¤ÎÁ°¤Ë
>''set␣samples␣»È¤¦ÅÀ¿ô''
<
¤òÆþÎϤ·¤Æ¤ª¤±¤ÐÎɤ¤.
&br;&br;
- Æó¤Ä°Ê¾å¤Î´Ø¿ô¤òƱ»þ¤Ëɽ¼¨¤·¤¿¤¤.&br;
> ''plot␣sin(x),␣cos(x)''
<
¤Ê¤É¤È ,(¥«¥ó¥Þ) ¤Ç¶èÀڤäƽñ¤¯¤À¤±¤ÇÎɤ¤.
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
¾å¤ÎÍÍ¡¹¤Ê¥ª¥×¥·¥ç¥ó¤ò»î¤·¤Æ¤ß¤è¤¦¡¥
* Plot of 3D functions: 3¼¡¸µ¥°¥é¥Õ¤òÈ¡¿ô¤ÇÉÁ¤¯ [#n1285135]
¤µ¤é¤Ë¡¤''splot'' ¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò»È¤¦¤È3¼¡¸µ¥°¥é¥Õ¤òÉÁ¤¯¤³¤È¤¬½ÐÍè¤ë¡¥
Î㤨¤Ð gnuplot Ãæ¤Ç
> ''splot␣x**2+y**2''
<
¤È¤·¤Æ¤ß¤è¤¦¡¥
¤µ¤é¤Ë¡¤½Ð¤Æ¤¤¿¥°¥é¥Õ¤ò¥Þ¥¦¥¹¤ÇÄϤó¤ÇÆ°¤«¤·¤Æ¤ß¤è¤¦¡¥
ÍÍ¡¹¤Ê»ëÅÀ¤«¤é3¼¡¸µ¥°¥é¥Õ¤ò¼«Í³¤Ë¸«¤ë¤³¤È¤¬½ÐÍè¤ë¤Ï¤º¤À¡¥
** Options for 3D function plot: 3D ¤ÇÈ¡¿ô¤òÉÁ¤¯»þ¤Î¥ª¥×¥·¥ç¥ó [#r63c636c]
splot ¤ËÂФ·¤Æ¡¤ºÙ¤«¤¯¤¤¤í¤¤¤íÊѤ¨¤¿¤¤¤È¤¤¤¦¾ì¹ç¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤.
&br;&br;
- ÉÁ²è¤¹¤ëÈϰϤòÊѤ¨¤¿¤¤. &br;
> ''plot␣[-3:3]␣[-1.2:2.0]␣[-2:3]␣x**2+y**2''
<
Åù¤È¤¹¤ì¤Ð¤è¤¤. °ì¤ÄÌܤΠ[a:b] ¤¬ x¼´¤ÎÈϰϤòɽ¤·¡¤Æó¤ÄÌܤ¬ y¼´¤ÎÈϰϤò, »°¤ÄÌܤ¬ z¼´(¹â¤µ)¤ÎÈϰϤòɽ¤¹.
&br;&br;
- ɽ¼¨¤Ë»È¤¦¡ÖÅÀ¡×¤Î¿ô¤òÁý¤ä¤·¤¿¤¤. &br;
¡ÖÅÀ¡×¤Î¿ô¤¬¾¯¤Ê¤¹¤®¤Æ¥°¥é¥Õ¤¬ÁƤ¯¤Ê¤Ã¤Æ¡¤Àµ¤·¤¯É½¼¨¤µ¤ì¤Ê¤¤¤È¤¤¤¦¤è¤¦¤Ê¾ì¹ç¤Ï¡¤ splot ¤ÎÁ°¤Ë
> ''set␣isosamples␣»È¤¦ÅÀ¿ô''
<
¤È¤¹¤ì¤ÐÎɤ¤.
½èÍý¤¬½Å¤¯¤Ê¤ë¤Î¤Ç¡¤¤¢¤Þ¤êÂ礤ʿô»ú¤òÍ¿¤¨¤Ê¤¤¤è¤¦¤Ë¡¥
&br;&br;
- Åù¹âÀþ¤òɽ¼¨¤·¤¿¤¤.&br;
splot ¤ÎÁ°¤Ë
> ''set␣contour''
<
¤â¤·¤¯¤Ï
> ''set␣contour␣both''
<
¤ÈÆþÎϤ·¤Æ¤ª¤±¤Ð¤è¤¤. both ¤ò¤Ä¤±¤Ê¤¤¤ÈÄìÌ̤ˤΤßÅù¹âÀþ¿Þ¤¬ÉÁ¤«¤ì¡¤ both ¤ò¤Ä¤±¤ë¤ÈÌÌɽ¼¨¤Ë¤âÅù¹âÀþ¤¬ÉÁ¤«¤ì¤ë.
&br;
> ''unset␣contour''
<
¤È¤¹¤ì¤Ð¡¤¤³¤ì°Ê¹ß¤ÏÅù¹âÀþ¤ÏÉÁ¤«¤ì¤Ê¤¤.
&br;&br;
- ±£Ì̽èÍý¤ò¤·¤¿¤¤. &br;
> ''set␣hidden3d''
<
¤È¤·¤Æ¤«¤é splot ¤¹¤ë¤È±£Ì̽èÍý¤¬¹Ô¤Ê¤ï¤ì¤ë.&br;
> ''unset␣hidden3d''
<
¤È¤¹¤ì¤Ð±£Ì̽èÍý¤Ï̵¸ú¤Ë¤Ê¤ë.
&br;&br;
- »ëÅÀ¤òÊѤ¨¤¿¤¤.&br;
> ''set␣view␣45,␣80,␣0.8''
<
¤Ê¤É¤È¤·¤Æ¤«¤é splot ¤¹¤ë¤È¡¤»ØÄꤷ¤¿»ëÅÀ¤È½Ì¼Ü¤Ç3¼¡¸µ¥°¥é¥Õ¤¬ÉÁ¤«¤ì¤ë. ºÇ½é¤Î 45 ¤Ï z¼´(¹â¤µ¼´)¤È»ëÀþ¤Î³ÑÅÙ¤ò¡¤ ¼¡¤Î 80 ¤Ï¾å¤«¤é¸«¤¿¤È¤¤Î x¼´¤È»ëÀþ¤Î³ÑÅÙ¤ò¡¤ ºÇ¸å¤Î 0.8 ¤Ï¥°¥é¥Õ¤Î¹â¤µ¤Î¥¹¥±¡¼¥ëÈæ¤òɽ¤¹.
&br;&br;
- ¹â¤µ¤Ë¿§¤òÉÕ¤±¤Æ¸«¤¿¤¤. &br;
> ''set␣pm3d''
<
¤È¤·¤Æ¤«¤é splot ¤¹¤ë¤È¹â¤µ¤Ë±þ¤¸¤¿¿§¤ÇÌ̤òÅɤäƤ¯¤ì¤ë¡¥
¾¯¤·½èÍý¤Ï½Å¤¯¤Ê¤ë¡¥
> ''unset␣pm3d''
<
¤È¤¹¤ì¤Ð¸µ¤ËÌá¤ë¡¥
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
¾å¤ÎÍÍ¡¹¤Ê¥ª¥×¥·¥ç¥ó¤â»î¤·¤Æ¤ß¤è¤¦¡¥
* Plot of data: ¥Ç¡¼¥¿¤ò¥°¥é¥Õ¤Ë [#hc10893d]
¤â¤Á¤í¤ó¡¤È¡¿ô¤À¤±¤Ç¤Ê¤¯¡¤¥Ç¡¼¥¿¤ò¥°¥é¥Õ¤Ë¤¹¤ë¤³¤È¤â½ÐÍè¤ë¡¥
¼¡¤Î¤è¤¦¤Ë¤·¤Æ³Î¤«¤á¤Æ¤ß¤è¤¦¡¥
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
¼¡¤Î»Ø¼¨¤Ë½¾¤Ã¤Æ»î¤·¤Æ¤ß¤è¤¦¡¥
+ ¥Æ¥¥¹¥È¥¨¥Ç¥£¥¿Åù¤Ç¡¤¼¡¤ÎÆâÍƤò»ý¤Ä¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¡¥
¥Õ¥¡¥¤¥ë̾¤Ï dummy.dat ¤È¤·¤Æ¤ª¤³¤¦¡¥
1 1.0
2 4.0
3 9.2
5 8.3
&br;&br;
+ gnuplot ¤òµ¯Æ°¡¥
&br;&br;
+ gnuplot Ãæ¤Ç¡¤
> ''plot␣"dummy.dat"''
<
¤È¤·¤Æ¤ß¤ë¡¥
4¤Ä¤ÎÅÀ¤¬ÂǤ¿¤ì¤¿¥°¥é¥Õ¤¬ÉÁ¤«¤ì¤ë¤Ï¤º¤À¡¥
&br;
¤³¤ì¤À¤È¸«¤Ë¤¯¤¤¤Ê¤¢¡¤¤È¤¤¤¦¾ì¹ç¤Ï
> ''plot␣"dummy.dat"␣w␣l''
<
¤È¤¹¤ì¤Ð¡¤¥Ç¡¼¥¿ÅÀ¤ò·Ò¤¤¤ÀÀþ¥°¥é¥Õ¤Ë¤Ê¤ë¤·¡¤¤µ¤é¤Ë
> ''plot␣"dummy.dat"␣w␣lp''
<
¤È¤¹¤ì¤Ð¥Ç¡¼¥¿¤ËÅÀ¤âÂǤ¿¤ì¤ë¡¥
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
¼«Ê¬¤ÇŬÅö¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¤¤½¤Î¥Ç¡¼¥¿¤ò¿ôÃÍ¥°¥é¥Õ²½¤·¤Æ¤ß¤è.
* Save graph files: ¥°¥é¥Õ¤ò¥Õ¥¡¥¤¥ë¤ËÊݸ [#s8516929]
ÆÀ¤é¤ì¤¿²èÁü¤ò¥Õ¥¡¥¤¥ë¤Ë½ÐÎϤ·¤¿¤¤¡¤¤È¤¤¤¦¤È¤¤Ï¡¤
&br;&br;
+ Êݸ¤¹¤ë²èÁü·Á¼°¤ò»ØÄꤹ¤ë.
+ Êݸ¤¹¤ë¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤹ¤ë.
+ ¤â¤¦°ìÅÙ²èÁü¤òÉÁ¤¯
+ ²èÁü·Á¼°¤È¥Õ¥¡¥¤¥ë̾¤ò¡Ö¥ê¥»¥Ã¥È¡×¤¹¤ë. ¥ê¥»¥Ã¥È¤·¤Ê¤¤¤È¡¤¼¡¤Ë²èÁü¤òÉÁ¤¤¤¿¤È¤¤ËÆ°ºî¤¬¤ï¤«¤é¤Ê¤¯¤Ê¤ë.
&br;
¤È¤¤¤¦¼ê½ç¤¬É¬ÍפǤ¢¤ë.
&br;&br;
»ÄÇ°¤Ê¤³¤È¤Ë¡¤´ðËÜŪ¤Ë¤Ï&color(red){º£¸«¤¨¤Æ¤¤¤ë²èÁü¤ò¤¿¤À¤Á¤Ë¥Õ¥¡¥¤¥ë¤ØÊݸ¤¹¤ëµ¡Ç½¤Ï¸ºß¤·¤Ê¤¤};¤Î¤Ç¡¤¤³¤Î¼ê½ç¤òÍý²ò¤·¤è¤¦¡¥
&br;&br;
&ref(/materials/warning.png); ¤¿¤À¤·¡¢(¾¯¤Ê¤¯¤È¤â windows ÍѤÎ) gnuplot ver. 5.0 ¤«¤é¤Ï²èÁüɽ¼¨ terminal ¤Ï qt ¤È¤Ê¤ê(¤³¤ì¤Þ¤Ç¤Ï wxt), ¸«¤¨¤Æ¤¤¤ë¥°¥é¥Õ¤ò¤½¤Î¤Þ¤Þ pdf, svg, ²èÁü(png ¤â¤·¤¯¤Ï bmp) ·Á¼°¤Ç¥¨¥¯¥¹¥Ý¡¼¥È¤¹¤ëµ¡Ç½¤¬¤Ä¤¯¤è¤¦¤À¡¥
¶ñÂÎŪ¤Ë¤Ï¡¢¥°¥é¥Õɽ¼¨²èÌ̤κ¸¾å¤Ë°õºþ/¥¨¥¯¥¹¥Ý¡¼¥È¥Ü¥¿¥ó¤¬¤Ä¤¯¡¥
´û¤Ë¸ø³«¤µ¤ì¤Æ¤¤¤ë ver. 5.0rc1 ¤Ç¤â¤½¤Îµ¡Ç½¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢(windows ÍøÍѼԤÏ?) gnuplot ¤òºÇ¿·ÈǤˤ¹¤ë¤È¾¯¤·¹¬¤»¤Ë¤Ê¤ì¤ë¤À¤í¤¦¡¥
&br;
&ref(./gnuplot-5.0rc1-window-export-sample.png);&br;
gnuplot 5.0rc1 ¤Ç²èÁü¥¨¥¯¥¹¥Ý¡¼¥Èµ¡Ç½¤ò»È¤ª¤¦¤È¤¹¤ëÍÍ»Ò
&br;&br;
** How to set "file format": ²èÁü·Á¼°¤Î»ØÄê¤È¥ê¥»¥Ã¥È¤ÎÊýË¡ [#v2f73c00]
¤Þ¤º¡¤Êݸ¤¹¤ë²èÁü¤Î·Á¼°¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ë.
¤½¤Î°Ù¤Ë¤Ï¡¤gnuplot ¾å¤Ç
> ''set␣terminal␣²èÁü·Á¼°␣¥ª¥×¥·¥ç¥ó''
<
¤È¤·¤Æ»ØÄꤹ¤ë((»È¤¨¤ë²èÁü·Á¼°¤È¥ª¥×¥·¥ç¥ó¤ÏÈó¾ï¤Ë¿¤¤¤Î¤Ç¡¤¥Ø¥ë¥×¤È¥Þ¥Ë¥å¥¢¥ë¤ò³Îǧ¤·¤Æ¤ª¤³¤¦¡¥)).
&br;
png ¤È EPS ·Á¼°¤Ë¤Ä¤¤¤Æ´Êñ¤Ë¥ê¥¹¥È¥¢¥Ã¥×¤·¤Æ¤ª¤³¤¦¡¥
&br;&br;
¢£ ²èÁü·Á¼°¤Î»ØÄê¤È¥ê¥»¥Ã¥È¤ÎÎã ¢£
| ²èÁü·Á¼° | ¥³¥Þ¥ó¥ÉÁȤ߹ç¤ï¤» |h
| png | ''set␣terminal␣png'' |
| Postscript | ''set␣terminal␣postscript␣eps␣22'' |
| ¥ê¥»¥Ã¥È (unix ¤Î¾ì¹ç) | ''set␣terminal␣x11'' |
| ¥ê¥»¥Ã¥È (windows ¤Î¾ì¹ç) | ''set␣terminal␣wxt''&br; ''set␣terminal␣qt'' (ver 5.0°Ê¹ß)&br; ¤â¤·¤¯¤Ï&br; ''set␣terminal␣windows'' |
&br;&br;
¤Á¤Ê¤ß¤Ë¡¢Â¾¤ËÃΤäƤª¤¯¤ÈÊØÍø¤½¤¦¤Ê¥Õ¥¡¥¤¥ë·Á¼°¤Ë¤Ï
- canvas (html5 ÍÑ)
- dumb (ʸ»úüËö²èÌÌ)
- epslatex (eps ¤À¤¬¡¢Ê¸»ú¤Ï tex ¤Ç)
- latex
- pdf
- svg (¥Ù¥¯¥È¥ë·Á¼°)
&br;
¤Ê¤É¤¬¤¢¤ë¡¥
** How to set "file name": ²èÁü¥Õ¥¡¥¤¥ë̾¤Î»ØÄê¤È¥ê¥»¥Ã¥È¤ÎÊýË¡ [#x09ef624]
Êݸ¤¹¤ë²èÁü¤Î¥Õ¥¡¥¤¥ë̾¤â»ØÄꤹ¤ëɬÍפ¬¤¢¤ë.
¤½¤Î°Ù¤Ë¤Ï¡¤gnuplot ¾å¤Ç
> ''set␣output␣¥Õ¥¡¥¤¥ë̾''
<
¤È¤·¤Æ»ØÄꤹ¤ë¡¥
&br;&br;
¥Õ¥¡¥¤¥ë̾¤Î¥ê¥»¥Ã¥È¤Ë¤Ï¡¤
> ''unset␣output''
<
¤È¤¹¤ì¤Ð¤è¤¤¡¥
** ... What?: ·ë¶É¤É¤¦¤¹¤ì¤ÐÎɤ¤¤Î¤« [#o81177dd]
¤è¤¯Ê¬¤«¤é¤ó¡Ä ¤È¤¤¤¦¼Ô¤â¿¤¤¤À¤í¤¦¤«¤é¡¤unix ¤Ç¤ÎÎã¤ò¤¢¤²¤Æ¤ª¤³¤¦(Windows ¤Î¾ì¹ç¤Ï²¼µ¤Î x11 ¤È¤¤¤¦Éôʬ¤ò wxt (ver.5.0°Ê¹ß¤Ç¤Ï qt)¤È¤·¤Æ¤ª¤±¤Ð¤è¤¤).
º£ÉÁ¤«¤ì¤Æ¤¤¤ë¿Þ¤ò¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¤¿¤¤¡¤¤È¤¤¤¦»þ¤Ï¤È¤Ë¤«¤¯¼¡¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¡¥
&br;&br;
¢£ ¥°¥é¥Õ¤ò¥Õ¥¡¥¤¥ë²½¤¹¤ë¥³¥Þ¥ó¥ÉÁȤ߹ç¤ï¤»Îã ¢£
| ²èÁü·Á¼° | ¥³¥Þ¥ó¥É(½çÈ֤˼¹Ԥ¹¤ë) |h
| png | &br;''set␣terminal␣png␣color''&br; ''set␣output␣'hoge.png'''&br; ''replot''&br; ''set␣terminal␣x11''&br; ''unset␣output''&br; |
| Postscript | &br;''set␣terminal␣postscript␣eps␣22''&br; ''set␣output␣'hoge.eps'''&br; ''replot''&br; ''set␣terminal␣x11''&br; ''unset␣output''&br; |
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
ŬÅö¤Ê¥°¥é¥Õ¤òºî¤ê¡¤png ·Á¼°¤ä postscript ·Á¼°¤ÇÊݸ¤·¤è¤¦¡¥
* How to use the gnuplot as a command: ÈóÂÐÏÃŪ¤Ë gnuplot ¤ò»È¤¦ [#p33f55c1]
gnuplot ¤òÈóÂÐÏÃŪ¤Ë»È¤¦(¥³¥Þ¥ó¥É¤È¤·¤Æ»È¤¦)¤Î¤Ï´Êñ¤À¡¥
ÂÐÏÃŪ¤ËÆþÎϤ¹¤ë¤Î¤ÈƱ¤¸ÆâÍƤò¥Õ¥¡¥¤¥ë¤Ë½ñ¤¤¤Æ¤ª¤¤¤Æ¤½¤Î¥Õ¥¡¥¤¥ë̾¤ò¥³¥Þ¥ó¥É¤Î¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÍ¿¤¨¤ì¤Ð¤è¤¤¡¥
¤â¤·Í¿¤¨¤ë¥³¥Þ¥ó¥É¤Ê¤É¤¬Ã»¤¤¤Ê¤é¤Ð¥ª¥×¥·¥ç¥ó¤ÇľÀÜÍ¿¤¨¤Æ¤âÎɤ¤¡¥
¤ï¤«¤ê¤ä¤¹¤¯¼Â½¬¤òÄ̤¸¤Æ»î¤·¤Æ¤ß¤è¤¦¡¥
&br;&br;
&ref(/materials/notes.png); ¼Â½¬:
+ ¤Þ¤º¡¢¥Õ¥¡¥¤¥ë¤ËÌ¿Îá¤ò½ñ¤¤¤Æ¤ª¤¤¤Æ¤½¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ëÊýË¡¤ò»î¤·¤Æ¤ß¤è¤¦¡¥
sin2png.gpl ¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤òºî¤ê¡¤°Ê²¼¤ÎÆâÍƤò½ñ¤¹þ¤à¡¥
set term png
set output "f_sin.png"
plot sin(x)**2
&br;&br;
+ ¤³¤Î¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Æ¡¤
> ''gnuplot␣"sin2png.gpl"''
<
¤È¤·¤Æ gnuplot ¤ò¥³¥Þ¥ó¥É¤È¤·¤Æ»È¤ª¤¦¡¥
¤³¤Î¤è¤¦¤Ë»Ø¼¨½ñ¤òÍ¿¤¨¤ë¤È¡¤gnuplot ¤Ï¥³¥Þ¥ó¥ÉŪ¤Ë°·¤¨¤ë¡¥
&br;&br;
+ ÌäÂ꤬¤Ê¤±¤ì¤Ð¡¤f_sin.png ¤È¤¤¤¦²èÁü¥Õ¥¡¥¤¥ë¤¬¤Ç¤¤Æ¤¤¤ë¤Î¤Ç¡¤¸«¤Æ¤ß¤è¤¦.
&br;&br;
¤³¤Îµ¡Ç½¤¬¤¢¤ë¤Î¤Ç¡¤¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ê¤É¤«¤é gnuplot ¤ò¸Æ¤Ó½Ð¤·¤Æµ¡³£Åª¤Ë¥°¥é¥Õ²èÁü¥Õ¥¡¥¤¥ë¤òºî¤ë¤³¤È¤¬´Êñ¤Ë¤Ç¤¤ë¡¥
&br;&br;
+ ¼¡¤Ë¡¢Ì¿Îá¤òľÀÜ¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÍ¿¤¨¤ëÊýË¡¤â»î¤·¤Æ¤ß¤è¤¦¡¥
¤É¤Î¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤Ç¤âÎɤ¤¤Î¤Ç¡¢
> ''gnuplot␣-e␣"set␣term␣dumb;␣plot␣sin(x)"''
<
¤È¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÌ¿Îᤷ¤Æ¤ß¤è¤¦¡¥
¤â¤· "-e" ¥ª¥×¥·¥ç¥ó¤ò¼õ¤±ÉÕ¤±¤Ê¤¤¤°¤é¤¤¸Å¤¤ gnuplot ¤ò»È¤¦¤Î¤Ç¤¢¤ì¤Ð¡¢
> ''echo "set␣term␣dumb;␣plot␣sin(x)"␣|␣gnuplot␣-''
<
¤È¤¹¤ì¤ÐƱÍͤÊÆ°ºî¤¬ÆÀ¤é¤ì¤ë¤À¤í¤¦(ºÇ¸å¤Î¥Ï¥¤¥Õ¥ó¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë¤·¤è¤¦)¡¥
&br;&br;
¤µ¤Æ¡¢¤³¤Î¤è¤¦¤Ë¡¢Ã»¤¤Ì¿Îá¤Ç¤¢¤ì¤ÐľÀÜÍ¿¤¨¤Æ¤·¤Þ¤¨¤Ð¤Ê¤Ë¤«¤È¤ï¤«¤ê¤ä¤¹¤¯¡¢¼«Æ°²½¤Ë¤ÏÂçÊÑÎɤ¤¤À¤í¤¦¡¥
&br;&br;
* Report: ¥ì¥Ý¡¼¥È [#dc040578]
°Ê²¼¤Î²ÝÂê¤Ë¤Ä¤¤¤Æǽ¤¦¸Â¤ê¸ÌÀ¤ÊÄ´ºº¤È¹Í»¡¤ò¹Ô¤¤¡¤
&br;
''AppliedMath7-Report-12''
&br;
¤È¤¤¤¦Âê̾¤ò¤Ä¤±¤Æ e-mail ¤Ë¤Æ¶µ´±°¸¤Ë¥ì¥Ý¡¼¥È¤È¤·¤ÆÄó½Ð¤»¤è. ¤Ê¤ª¡¤¥ì¥Ý¡¼¥È¤ò e-mail ¤ÎÂå¤ï¤ê¤Ë TeX ¤ÇºîÀ®¤·¤¿½ñÌ̤ˤÆÄó½Ð¤·¤Æ¤â¤è¤¤.
** Exercises: ²ÝÂê [#y70619b6]
+ sin(x), sin(x+0.1), ... sin(x+1.0) ¤Î 11¸Ä¤ÎÈ¡¿ô¥°¥é¥Õ¤òƱ»þ¤ËÉÁ¤¤¤¿¥°¥é¥Õ¤ò¤Ò¤È¤Äºî¤ë¡¥
¼¡¤Ë¡¤»ÏÅÀ¤ò¾¯¤·¤º¤é¤·¤¿
sin(x+0.1), ... sin(x+1.0), sin(x+1.1) ¤Î11¸Ä¤Î´Ø¿ô¥°¥é¥Õ¤òƱÍͤËƱ»þ¤ËÉÁ¤¤¤¿¥°¥é¥Õ¤ò¤Ò¤È¤Äºî¤ë¡¥
¤³¤ì¤ò·«¤êÊÖ¤·¡¤
sin(x+1.0), ... sin(x+1.9), sin(x+2.0)
¤Î11¸Ä¤Î´Ø¿ô¥°¥é¥Õ¤òƱÍͤËƱ»þ¤ËÉÁ¤¤¤¿¥°¥é¥Õ¤ò¤Ò¤È¤Äºî¤ë¤È¤³¤í¤Þ¤Ç¤ä¤ë¡¥
¤³¤Î°ìÏ¢¤Îºî¶È¤ò¤Ê¤ë¤Ù¤¯³Ú¤Ë¤ä¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤«¹Í¤¨¤è¡¥
&br;
&br;
+ Á°²ó¤ÎÆâÍÆ¤Ç gnuplot ¤òÍѤ¤¤Æ¤¤¤ë¡¥
¤½¤ÎÍѤ¤Êý¤Ë¤Ä¤¤¤Æ²òÀ⤻¤è¡¥
&br;
&br;
+ ËèÆü°ìÅÙ¤º¤Ä¡¤¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤òÄ̤¸¤Æ gnuplot ¤ò¸Æ¤Ó½Ð¤·¤Æ¥°¥é¥Õ²èÁü¥Õ¥¡¥¤¥ë¤òºî¤é¤»¤Æ¤ª¤¯¤È¤è¤µ¤½¤¦¤ÊÎã¤ò¹Í¤¨¤è¡¥
&br;&br;
* about Icons, ClipArts [#me0c85b4]
For details, see [[&ref(/materials/JNorth_arrow-right-sm.png); this>materials]].
// ¨¬¨¨®¨¯¨°¨±¨²¨³¨´¨µ¨¶
// ¥³¥Þ¥ó¥É¥é¥¤¥óÆþÎϤϡֹÔƬ¤ò > ¤Ç»Ï¤á¤ë¡×.
// ¥³¥Þ¥ó¥É¥é¥¤¥ó½ÐÎϤϡֹÔƬ¤ò¥Ö¥é¥ó¥¯¤Ç»Ï¤á¤ë¡×.
// ¼Â½¬¥¢¥¤¥³¥ó
// &ref(/materials/notes.png);
// Ãí°Õ¥¢¥¤¥³¥ó
// &ref(/materials/warning.png);
// Link ¥¢¥¤¥³¥ó
// &ref(/materials/JNorth_arrow-right-sm.png);
// OK ¥¢¥¤¥³¥ó
// &ref(/materials/OK.png);
// NG ¥¢¥¤¥³¥ó
// &ref(/materials/NG.png);
// ¥µ¥ó¥×¥ë¥¢¥¤¥³¥ó
// &ref(/materials/Gnome-Preferences.png);
// Âçʸ»ú¤Ç¤Î¶¯Ä´
// CENTER:&size(24){''¤Û¤²¤Û¤²''};
// programu source ɽµ
// #highlighter(language=ruby,number=on,cache=on){{}}
// ¥Ñ¥¤¥×
// ¦
// ¶õÇòµ¹æ
// ␣
// ¥¿¥Öµ¹æ
// ␉