gnuplot-info@lists.sourceforge.net
http://sourceforge.net/projects/gnuplot
Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley Copyright (C) 2004-2023 various authors
Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version. Permission to distribute binaries produced by compiling modified sources is granted, provided you
1. distribute the corresponding source modifications from the released version in the form of a patch file along with the binaries, 2. add special version identification to distinguish your version in addition to the base release version number, 3. provide your name and address as the primary contact for the support of your modified version, and 4. retain our contact information in regard to use of the base software.
Permission to distribute the released version of the source code along with corresponding source modifications in the form of a patch file is granted with same provisions 2 through 4 for binary distributions.
This software is provided "as is" without express or implied warranty to the extent permitted by applicable law.
AUTHORS Original Software: Thomas Williams, Colin Kelley. Gnuplot 2.0 additions: Russell Lang, Dave Kotz, John Campbell. Gnuplot 3.0 additions: Gershon Elber and many others. Gnuplot 4.0 and subsequent releases: See list of contributors at head of this document.
(°Ê²¼¤ª¤ª¤Þ¤«¤ÊÌõ; Ìõ¤ÏÀµ¤·¤¯¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¤Î¤Ç¾Ü¤·¤¯¤Ï¾åµ¤Î¸¶Ê¸ ¤òÅö¤¿¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ìõ¼Ô¤ÏÀÕǤ¤ò»ý¤Á¤Þ¤»¤ó¡£)
Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley Copyright (C) 2004-2023 ¿¤¯¤ÎÃø¼Ô
¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤È¤½¤ÎÉÕ°ʸ½ñ¤Î»ÈÍÑ¡¢Ê£À½¡¢ÇÛÉۤεö²Ä¤Ï¡¢¾åµ¤ÎÃøºî¸¢ (copyright) ɽ¼¨¤¬¡¢Á´¤Æ¤ÎÊ£À½Êª¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¡¢¤ª¤è¤ÓÃøºî¸¢É½¼¨¤È ¤³¤ÎµöÂúʸ¤ÎξÊý¤¬¤½¤Î»Ù±çʸ½ñ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¤ò¾ò·ï¤È¤·¤¿¾å¤Ç¡¢¤³¤Î ʸ½ñ¤Ë¤è¤êÊݾڤµ¤ì¤Þ¤¹¡£
¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤Î½¤Àµ¤âǧ¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢½¤Àµ¤ò´Þ¤àÁ´¥½¡¼¥¹¥³ ¡¼¥É¤ÎÇÛÉۤθ¢Íø¤Ïǧ¤á¤é¤ì¤Þ¤»¤ó¡£½¤Àµ¤Ï¥ê¥ê¡¼¥¹ÈǤËÂФ¹¤ë¥Ñ¥Ã¥Á¤Î·Á¤Ç ÇÛÉÛ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£½¤Àµ¤µ¤ì¤¿¥½¡¼¥¹¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æºî¤é¤ì¤¿¥Ð¥¤ ¥Ê¥ê¤ÎÇÛÉۤϡ¢°Ê²¼¤Î¾ò·ï¤Î¸µ¤Çǧ¤á¤é¤ì¤Þ¤¹:
1. ¥ê¥ê¡¼¥¹ÈǤ«¤é¤Î¥½¡¼¥¹¤Î½¤ÀµÉôʬ¤ò¡¢¥Ñ¥Ã¥Á¤Î·Á¤Ç¥Ð¥¤¥Ê¥ê¤È¶¦¤ËÇÛ ÉÛ¤¹¤ë¤³¤È 2. ¥Ù¡¼¥¹¤È¤Ê¤ë¥ê¥ê¡¼¥¹ÈǤȶèÊ̤¹¤ë¤¿¤á¤Ë¡¢¤½¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ËÆÃÊÌ ¤Ê¥Ð¡¼¥¸¥ç¥ó»ØÄê»Ò¤òÉղ乤뤳¤È 3. ¤½¤Î½¤ÀµÈǤΥµ¥Ý¡¼¥ÈÍѤˡ¢¤¢¤Ê¤¿¤Î̾Á°¤È¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¤È ¤òÄ󶡤¹¤ë¤³¤È 4. ¥Ù¡¼¥¹¤È¤Ê¤ë¥½¥Õ¥È¥¦¥§¥¢¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢²æ¡¹¤ÎÏ¢Íí¾ðÊó¤òÊÝ»ý¤· ³¤±¤ë¤³¤È
¥ê¥ê¡¼¥¹ÈǤΥ½¡¼¥¹¥³¡¼¥É¤ò¡¢¥Ñ¥Ã¥Á¤Î·Á¤Ç¤Î¥½¡¼¥¹¤Î½¤Àµ¤È°ì½ï¤ËÇÛÉÛ¤¹¤ë ¤³¤È¤Ï¡¢¥Ð¥¤¥Ê¥êÇÛÉۤ˴ؤ¹¤ë¾ò¹à 2 ¤«¤é 4 ¤Þ¤Ç¤Î¾ò·ï¤Î¸µ¤Çµö¤µ¤ì¤Þ¤¹¡£
¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤Ï "¤¢¤ë¤¬¤Þ¤Þ" Ä󶡤µ¤ì¡¢Å¬ÍѲÄǽ¤ÊˡΧ¤Çµö¤á¤é¤ì¤ëÈÏ °Ï¤ÎÊݾڤòɽÌÀ¤¢¤ë¤¤¤Ï°Å¼¨¤·¤Æ¤¤¤Ï¤¤¤Þ¤»¤ó¡£
Ãø¼Ô ¥ª¥ê¥¸¥Ê¥ë¥½¥Õ¥È¥¦¥§¥¢: Thomas Williams, Colin Kelley. Gnuplot 2.0 ÄɲÃ: Russell Lang, Dave Kotz, John Campbell. Gnuplot 3.0 ÄɲÃ: Gershon Elber ¤È¤½¤Î¾¤Î¿Í¡¹¡£ Gnuplot 4.0 ¤ª¤è¤Ó¤½¤ì°Ê¹ß¤Î¥ê¥ê¡¼¥¹: ¤³¤Îʸ½ñ¤ÎÀèƬ¤Î´óÍ¿¼Ô (contributors) ¤Î°ìÍ÷»²¾È¡£
gnuplot ¤Ï¡¢2 ¼¡¸µ¡¢¤Þ¤¿¤Ï 3 ¼¡¸µ¤Î¿¤¯¤Î¼ïÎà¤Î¥°¥é¥Õ¤òÀ¸À®¤Ç¤¤Þ¤¹¡£ ¤¤¤Þ¤¹: ÀÞÀþ¥°¥é¥Õ¡¢ÅÀ¥°¥é¥Õ¡¢ËÀ¥°¥é¥Õ¡¢Åù¹âÀþ¡¢¥Ù¥¯¥È¥ë¾ìÉÁ²è¡¢²èÁü¤Î ¼è¤ê¹þ¤ß¡¢¶ÊÌÌ¡¢¤½¤·¤Æ¤½¤ì¤é¤Ë´ØÏ¢¤¹¤ë¤µ¤Þ¤¶¤Þ¤Êʸ»úÎóÅù¡£¤½¤·¤Æ¤µ¤é¤Ë ¤¤¤¯¤Ä¤«¤ÎÆÃÊ̤ʥ°¥é¥Õ¡¢Î㤨¤Ð²¹ÅÙʬÉÛ¿Þ (heatmap)¡¢ÃØéá¤ÎÁ㥰¥é¥Õ (¥ì ¡¼¥À¡¼¥Á¥ã¡¼¥È, spiderplot)¡¢¶Ë¼Í±Æ (polar projection)¡¢¥Ò¥¹¥È¥°¥é¥à (histograms)¡¢È¢¤Ò¤²¿Þ (boxplot)¡¢¥Ó¡¼¥¹¥¦¥©¡¼¥à¥°¥é¥Õ (bee swarm)¡¢ ÈóÀþ·Á¼´¤Ê¤É¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
gnuplot ¤Ï¿¤¯¤Î°Û¤Ê¤ë½ÐÎϤò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹: ÂÐÏ÷¿¥¹¥¯¥ê¡¼¥ó½ÐÎÏ·Á ¼° (¥Þ¥¦¥¹¤ä¥Û¥Ã¥È¥¡¼ÆþÎϤâ²Äǽ)¡¢¥Ú¥ó¥×¥í¥Ã¥¿¤ä¸½ºß¤Î¥×¥ê¥ó¥¿¤Ø¤Îľ ÀܽÐÎÏ¡¢¤Þ¤¿¤Ï¿¤¯¤Î¥Õ¥¡¥¤¥ë·Á¼°¤Ø¤Î½ÐÎÏ (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, ...)¡£gnuplot ¤Ï¡¢Íưפ˿·¤·¤¤½ÐÎÏ·Á¼°¤òÄɲä¹¤ë ¤è¤¦³ÈÄ¥¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ºÇ¶á¤Ç¤ÏÎ㤨¤Ð webp ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬¥µ¥Ý¡¼ ¥È¤µ¤ì¤Þ¤·¤¿¡£svg ¤ä HTML5 canvas ½ÐÎÏ·Á¼°¤òÍøÍѤ¹¤ì¤Ð¡¢¥°¥é¥Õ¤ò Web ¥Ú¡¼¥¸Æâ¤Ë¥Þ¥¦¥¹ÍøÍѲÄǽ¤Ê·Á¤ÇËä¤á¹þ¤ó¤À½ÐÎϤòÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
gnuplot ¤Î¥³¥Þ¥ó¥É¸À¸ì¤ÏÂçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¾®Ê¸»ú¤Ç ½ñ¤«¤ì¤¿¥³¥Þ¥ó¥É¤ä´Ø¿ô̾¤Ï¡¢¤½¤ì¤é¤òÂçʸ»ú¤Ç½ñ¤¤¤¿¤â¤Î¤È¤ÏƱ¤¸¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó¡£¤¤¤º¤ì¤Î¥³¥Þ¥ó¥É¤â¡¢¤¢¤¤¤Þ¤¤¤µ¤Î̵¤¤¸Â¤ê¤Ë¤ª¤¤¤Æ¾Êά¤¹¤ë¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£1 ¹ÔÃæ¤Ë¤Ï¥»¥ß¥³¥í¥ó (;) ¤Ç¶èÀڤäÆÊ£¿ô¤Î¥³¥Þ¥ó¥É¤ò½ñ¤¯¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£Ê¸»úÎó¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉä¤Î¤É¤Á¤é¤«¤Ç½ñ¤»Ï¤á ¤Þ¤¹¤¬¡¢Î¾¼Ô¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ê¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: syntax (30))¡£Îã:
set title "My First Plot"; plot 'data'; print "all done!"
¥³¥Þ¥ó¥É¤Ï¡¢Ê£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Ï¡¢ºÇ½ª¹Ô°Ê³°¤Î Á´¤Æ¤Î¹Ô¤Î¹ÔËö¤Ë¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤ò½ñ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¥Ð¥Ã¥¯¥¹¥é ¥Ã¥·¥å¤Ïɬ¤º³Æ¹Ô *ºÇ¸å* ¤Îʸ»ú¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤½¤Î·ë²Ì¤È¤·¤Æ¥Ð¥Ã ¥¯¥¹¥é¥Ã¥·¥å¤È¡¢¤½¤ì¤Ë³¤¯²þ¹Ôʸ»ú¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤«¤Î¤è¤¦¤Ë°·¤ï¤ì¤Þ¤¹¡£ ¤Ä¤Þ¤ê¡¢²þ¹Ôʸ»ú¤¬¥¹¥Ú¡¼¥¹¤ÎÌò¤ò¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¤·¡¢²þ¹Ô¤Ë¤è¤Ã¤Æ¥³ ¥á¥ó¥È¤¬½ªÎ»¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¡£¤Ç¤¹¤«¤éÊ£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¹Ô¤ÎÀèƬ¤ò¥³ ¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤È¡¢¤½¤Î¥³¥Þ¥ó¥ÉÁ´ÂΤ¬¥³¥á¥ó¥È¥¢¥¦¥È¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ ¤¹ (°Ê²¼»²¾È: comments (10))¡£¤Ê¤ªÃí°Õ¤·¤Þ¤¹¤¬¡¢¤â¤·¡¢Ê£¿ô¹Ô¤Î¥³¥Þ¥ó¥É¤Î ¤É¤³¤«¤Ç¥¨¥é¡¼¤¬µ¯¤¤¿¤È¤¡¢¥Ñ¡¼¥µ¤Ï¤½¤Î¾ì½ê¤òÀµ³Î¤Ë¤Ï»Ø¼¨¤¹¤ë¤³¤È¤¬¤Ç ¤¤Þ¤»¤ó¤·¡¢¤Þ¤¿¡¢Àµ¤·¤¤¹Ô¤Ë»Ø¼¨¤¹¤ëɬÍפâ¤Ê¤¤¤Ç¤·¤ç¤¦¡£
¤³¤Î¥É¥¥å¥á¥ó¥È¤Ë¤ª¤¤¤Æ¡¢Ãæ³ç¸Ì ({}) ¤Ï¾Êά²Äǽ¤Ê°ú¿ô¤òɽ¤¹¤â¤Î¤È¤·¡¢ ½ÄËÀ (|) ¤Ï¡¢¸ß¤¤¤ËÇÓ¾Ū¤Ê°ú¿ô¤ò¶èÀÚ¤ë¤â¤Î¤È¤·¤Þ¤¹¡£gnuplot ¤Î¥¡¼ ¥ï¡¼¥É¤ä help ¤Ë¤ª¤±¤ë¹àÌÜ̾¤Ï¡¢µÕ°úÍÑÉä (¡®)¡¢¤Þ¤¿¤Ï²Äǽ¤Ê¾ì¹ç¤Ë¤Ï boldface (ÂÀ»ú) ¤Çɽ¤·¤Þ¤¹¡£³Ñ³ç¸Ì (<>) ¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¤â¤Î¤ËÃÖ¤ ´¹¤¨¤é¤ì¤ë¤Ù¤¤â¤Î¤òɽ¤·¤Þ¤¹¡£Â¿¤¯¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó¤Î°ú¿ô¤Ë¤Ï¡¢¤½¤ì¤¬ ¾Êά¤µ¤ì¤ë¤È¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤é¤Î¾ì¹ç¡¢É¬¤º¤· ¤â³Ñ³ç¸Ì¤¬Ãæ³ç¸Ì¤Ç°Ï¤Þ¤ì¤Æ½ñ¤«¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¤¢¤ë¹àÌܤˤĤ¤¤Æ¤Î¥Ø¥ë¥×¤¬É¬ÍפʤȤ¤Ë¤Ï¡¢help ¤Ë³¤±¤Æ¤½¤Î¹àÌÜ̾¤ò ÆþÎϤ·¤Æ²¼¤µ¤¤¡£¤Þ¤¿¤Ïñ¤Ë help ? ¤Ç¤â¥Ø¥ë¥×¤Î¹àÌܤΥá¥Ë¥å¡¼¤¬¸½¤ï¤ì ¤Þ¤¹¡£
ÂçÎ̤Υ°¥é¥Õ¥µ¥ó¥×¥ë¤¬¡¢°Ê²¼¤Î Web ¥Ú¡¼¥¸¤Ë¤¢¤ê¤Þ¤¹¡£ http://www.gnuplot.info/demo/
¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éµ¯Æ°¤¹¤ë¤È¤¤Ï¡¢°Ê²¼¤Î½ñ¼°¤¬»È¤¨¤Þ¤¹¡£
gnuplot {OPTIONS} file1 file2 ...
¤³¤³¤Ç file1, file2 Åù¤Ï¡¢local ¥³¥Þ¥ó¥É¤Ç¼è¤ê¹þ¤à¤Î¤ÈƱÅù¤ÎÆþÎÏ¥Õ¥¡ ¥¤¥ë (¥¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë) ¤Ç¤¹¡£ gnuplot ¤ËÍ¿¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¥³¥Þ¥ó¥É¹Ô¤Î¤É¤³¤ËÃÖ¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£¥Õ ¥¡¥¤¥ë¤Ï»ØÄꤷ¤¿½ç¤Ë¼Â¹Ô¤µ¤ì¡¢Æ±ÍÍ¤Ë -e ¥ª¥×¥·¥ç¥ó¤ÇǤ°Õ¤Î¥³¥Þ¥ó¥É¤òÍ¿ ¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Îã:
gnuplot file1.in -e "reset" file2.in
ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ï¡¢É¸½àÆþÎϤ«¤éÆɤޤ»¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£gnuplot ¤ÏºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò½èÍý¤·½ª¤ï¤ë¤È½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡¥¤¥ë¤ò°ì¤Ä ¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎϤ«¤é¤ÎÂÐÏÃÆþÎϤò¼è¤ê¤Þ¤¹¡£¾ÜºÙ ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Î¾ÜºÙ¤Ï°Ê²¼»²¾È: command-line-options (7.1)¡£¤Þ¤¿ ¤Ï°Ê²¼¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£
gnuplot --help
ÂÐÏ÷¿ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ç¤Îºî¶ÈÃæ¤Ï¡¢'h' ¤òÂǤĤȥۥåȥ¡¼ (hotkeys) ¤È¥Þ¥¦¥¹µ¡Ç½ (mousing) ¤Ë´Ø¤¹¤ë¥Ø¥ë¥×¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
½õ¤±¤òµá¤á¤ëÁ°¤Ë¡¢¥Õ¥¡¥¤¥ë FAQ.pdf ¤«¡¢¤Þ¤¿¤Ï¾å¤Î Web ¥µ¥¤¥È¤Î FAQ (ÅÙ¡¹Ê¹¤«¤ì¤ë¼ÁÌä; Frequently Asked Questions) ¤Î°ìÍ÷
¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£
¾¤Ë¡¢(¥Ð¥°°Ê³°¤Î) ÆÃÄê¤Î¥°¥é¥ÕÉÁ²è¤ÎÌäÂê¤Ë´Ø¤¹¤ë½õ¸À¤Ï°Ê²¼¤Ç¤âÆÀ¤é¤ì ¤Þ¤¹¡£
https://stackoverflow.com/questions/tagged/gnuplot
¥Ð¥°¤ÎÊó¹ð¤È¡¢µ¡Ç½¤Î¥ê¥¯¥¨¥¹¥È¤Ï¡¢°Ê²¼¤Î¥È¥é¥Ã¥¥ó¥°¥·¥¹¥Æ¥à¤Ë¤¢¤²¤Æ¤¯ ¤À¤µ¤¤¡£
https://sourceforge.net/p/gnuplot/_list/tickets
¤¿¤À¤·¡¢¤¢¤Ê¤¿¤¬Êó¹ð¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥Ð¥°¤¬¡¢¤è¤ê¿·¤·¤¤ÈǤǴû¤Ë½¤Àµ¤µ¤ì ¤Æ¤¤¤Ê¤¤¤«¡¢°ÊÁ°¤ÎÊó¹ð¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ð¥°¤ÎÊó¹ð¤ä¼ÁÌä¤òÅê¹Æ¤¹¤ë¤È¤¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ·¤Æ¤¤¤ë gnuplot ¤Î¥Ð¡¼ ¥¸¥ç¥ó¡¢½ÐÎÏ·Á¼° (terminal)¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¡¢¤È¤¤¤Ã¤¿¾ðÊó¤ò ¤¹¤Ù¤ÆÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£ÌäÂê¤òºÆ¸½¤¹¤ë¼«¸Ê´°·ë·¿¤Îû¤¤¥¹¥¯¥ê¥×¥È¤òÄ󼨤¹ ¤ë¤È¤Ê¤ªÎɤ¤¤Ç¤·¤ç¤¦¡£
gnuplot ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ø¤ÎÅê¹Æ¤ÎÊýË¡¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Î³«È¯ Web ¥µ¥¤¥È http://sourceforge.net/projects/gnuplot
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
gnuplot ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ë¥á¡¼¥ë¤ò½ñ¤¯Á°¤Ë¡¢ºÇ½é¤Ë¤½¤Î¥á¡¼¥ê¥ó¥°¥ê¥¹¥È ¤Ë»²²Ã¤¹¤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢¥¹¥Ñ¥à¤ÎÎ̤ò¸º¤é¤¹ ¤¿¤á¤ËɬÍפǤ¹¡£
¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¥á¥ó¥Ð¡¼¤Ø¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹:
gnuplot-info@lists.sourceforge.net
³«È¯ÈǤ˴ؤ¹¤ë¥á¡¼¥ê¥ó¥°¥ê¥¹¥È:
gnuplot-beta@lists.sourceforge.net
¤³¤Î¥É¥¥å¥á¥ó¥È¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ëµ¡Ç½¤ÎÃæ¤Ë¤Ï¡¢gnuplot ¤ò¥½¡¼¥¹¤«¤é¥³¥ó ¥Ñ¥¤¥ë¤¹¤ëºÝ¤Ë¤½¤ì¤òÁªÂò¤·¤ÆÀßÄꤷ¤Æ¤¤¤ë¾ì¹ç¤À¤±»È¤¨¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£ ¤¢¤Ê¤¿¤¬¼Â¹Ô¤·¤Æ¤¤¤ëÆÃÄê¤Î gnuplot ¤¬¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¤É¤Î¤è¤¦¤Ê¥ª¥×¥· ¥ç¥ó¤òÀßÄꤷ¤Æºî¤é¤ì¤¿¤«¤òÃΤë¤Ë¤Ï¡¢show version long ¤È¥¿¥¤¥×¤·¤Æ¤¯ ¤À¤µ¤¤¡£
¤³¤Î»ÅÁȤߤò»È¤Ã¤Æ¡¢Ã±½ã¤Ê°ì¹Ô¤Î´Ø¿ôÄêµÁ f(x) = ... ¤è¤ê¤â¤Ã¤ÈÊ£»¨¤Ç ¼«ÌÀ¤Ç¤Ï¤Ê¤¤´Ø¿ô¤òÄêµÁ¤·¡¢ÉÁ²è¤¹¤ëÎã¤È¤·¤Æ¡¢function_block.dem ¤ò»² ¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ó¥ë¥É»þ¤ËŬÀڤʳ°Éô¥é¥¤¥Ö¥é¥ê¤¬¤¢¤ì¤Ð¡¢¤µ¤é¤Ë¤¤¤¯¤Ä¤«¤ÎÆüì´Ø¿ô¤ò¥µ¥Ý ¡¼¥È¤·¤Þ¤¹¡£°Ê²¼»²¾È: special_functions (15.3.15)¡£
°Ê²¼¤Î¥³¥Þ¥ó¥ÉÎó¤Ï¡¢¸µ¤Î¥°¥é¥Õ¤Î¾õÂÖ¤È multiplot ¥³¥Þ¥ó¥É¤ÎξÊý¤ò¥¹¥¯ ¥ê¥×¥È¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¡¢¸å¤ÇºÆÆɤ߹þ¤ß¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
save "my_multiplot.gp" set multiplot ... (¥°¥é¥ÕÍ×ÁǤòÀ¸À®¤¹¤ë¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤¬Ê¤Ö) ... unset multiplot set print "my_multiplot.gp" append print $GPVAL_LAST_MULTIPLOT unset print
¥Ð¡¼¥¸¥ç¥ó 5 ¤ÇƳÆþ¤·¤¿¤¤¤¯¤Ä¤«¤ÎÊѹ¹¤Ï¡¢gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥óÍÑ ¤Î¥¹¥¯¥ê¥×¥È¤ò¼ºÇÔ¤µ¤»¤ë¡¢¤Þ¤¿¤Ï°Û¤Ê¤ë¿¶Éñ¤¤¤ò¤µ¤»¤ë¤³¤È¤¬¤¢¤ê¤Þ¤·¤¿¡£ ¥Ð¡¼¥¸¥ç¥ó 6 ¤ÇƳÆþ¤·¤¿Êѹ¹¤Ç¤Ï¡¢¤½¤¦¤¤¤¦¤³¤È¤Ï¤È¤Æ¤â¾¯¤Ê¤¤¤Ç¤¹¡£
# ·«¤êÊÖ¤·¤ò¹Ô¤¦¤¿¤á¤Ë `reread` ¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤ò»ÈÍÑ N = 0; load "file-containing-reread"; file content: N = N+1 plot func(N,x) pause -1 if (N<5) reread
¸½ºß¤ÎƱÅù¤Îµ¡Ç½:
do for [N=1:5] { plot func(N, x) pause -1 }
¥Ð¡¼¥¸¥ç¥ó 5.4 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü
set dgrid3d ,,foo # foo ¤¬°ÕÌ£¤¹¤ë»Ø¼¨¤Î¥¡¼¥ï¡¼¥É¤¬¤Ê¤¤
¸½ºß¤Ï°Ê²¼¤ÈƱÅù
set dgrid3d qnorm foo # (Îã¤Î¤ß¡¢qnorm ¤ÏñÆȤΥª¥×¥·¥ç¥ó¤Ç¤Ê¤¤)
¥Ð¡¼¥¸¥ç¥ó 5.0 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü
set style increment user
¸½ºß¤Ï°Ê²¼¤ÈƱÅù
ɬÍפÊÈϰϤÎÀþ¼ï¤ò "set linetype" ¤ò»ÈÍѤ·¤ÆºÆÄêµÁ
¥Ð¡¼¥¸¥ç¥ó 5.0 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü
show palette fit2rgbformulae
¤½¤³¤Ç¤Ï¡¢³Æ¥Ç¥â¤òºîÀ®¤¹¤ë¥³¥Þ¥ó¥É¤¬¥°¥é¥Õ¤ÎÎÙ¤ê¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¤·¡¢¤½¤Î gnuplot ¥¹¥¯¥ê¥×¥È¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤òÊݸ¤·Æ± ÍͤΥ°¥é¥Õ¤òºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¤Ï¡¢¥×¥í¥°¥é¥à¤Ø¤Î¥ª¥×¥·¥ç¥ó¤«¡¢gnuplot ¥³¥Þ¥ó¥É¤ò ´Þ¤à¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ç¤¢¤ë¤È²ò¼á¤·¤Þ¤¹¡£ ³Æ¥Õ¥¡¥¤¥ë¤È¥³¥Þ¥ó¥Éʸ»úÎó¤Ï¡¢»ØÄꤷ¤¿½ç¤Ë¼Â¹Ô¤·¤Þ¤¹¡£ ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ï¡¢¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤éÆɹþ¤à¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ ºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¸å¤Ë gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡ ¥¤¥ë¡¢¤ª¤è¤Ó¥³¥Þ¥ó¥Éʸ»úÎó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎÏ ¤«¤é¤ÎÂÐÏ÷¿¤ÎÆþÎϤò¼õ¤±ÉÕ¤±¤Þ¤¹¡£
-V, --version -h, --help -p, --persist -d, --default-settings -s, --slow -e "command1; command2; ..." -c scriptfile ARG1 ARG2 ...
-p ¤Ï¡¢¥×¥í¥°¥é¥à¤Î½ªÎ»»þ¤Ë¡¢»Ä¤Ã¤Æ¤¤¤ëÂÐÏ÷¿¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤ò°ìÀÚÊÄ ¤¸¤Ê¤¤¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£
-d ¤Ï¡¢³Æ¥æ¡¼¥¶ÍÑ¡¢¤ª¤è¤Ó¥·¥¹¥Æ¥àÍѤνé´ü²½ (°Ê²¼»²¾È: initialization (27)) ¤ò°ìÀÚ¹Ô¤ï¤Ê¤¤¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£
-s ¤Ï¡¢µ¯Æ°»þ¤Î¥Õ¥©¥ó¥È¤Î½é´ü²½¤ò¤æ¤Ã¤¯¤êÂԤĤ褦¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤½¤¦¤Ç ¤Ê¤¤¤È¡¢¥¨¥é¡¼¤òɽ¼¨¤·¡¢ÉÔÀµ¤Ê¥Õ¥©¥ó¥È¥µ¥¤¥º¾ðÊó¤ÇÆ°ºî¤ò·Ñ³¤·¤Þ¤¹¡£
-e "command" ¤Ï¡¢¼¡¤Ë¿Ê¤àÁ°¤Ë»ØÄꤷ¤¿Ã±°ì¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£
-c ¤Ï¡¢-e "call scriptfile ARG1 ARG2 ..." ¤ÈƱÅù¤Ç¤¹¡£°Ê²¼»²¾È: call (82)¡£
gnuplot
¥Ð¥Ã¥Á¥â¡¼¥É¤Ç 2 ¤Ä¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë "input1", "input2" ¤ò¼Â¹Ô:
gnuplot input1 input2
½é´ü²½¥Õ¥¡¥¤¥ë "header" ¤Î¸å¡¢ÂÐÏ÷¿¥â¡¼¥É¤òµ¯Æ°¤·¡¢¤½¤Î¸åÊ̤Υ³¥Þ¥ó¥É ¥Õ¥¡¥¤¥ë "tailer" ¤ò¼Â¹Ô¤¹¤ë:
gnuplot header - trailer
¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é gnuplot ¥³¥Þ¥ó¥É¤òľÀÜÍ¿¤¨¡¢½ªÎ»¸å¤Ë¥¹¥¯¥ê¡¼¥ó¾å ¤Ë¥°¥é¥Õ¤¬»Ä¤ë¤è¤¦¤Ë¥ª¥×¥·¥ç¥ó "-persist" ¤ò»È¤¦:
gnuplot -persist -e "set title 'Sine curve'; plot sin(x)"
¥Õ¥¡¥¤¥ë¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢¥æ¡¼¥¶ÄêµÁÊÑ¿ô a ¤È s ¤ò¥»¥Ã¥È¤¹¤ë:
gnuplot -e "a=2; s='file.png'" input.gpl
¤³¤³¤Îʸ½ñ¤Ç»ÈÍѤ¹¤ë "canvas" ¤È¤¤¤¦ÍѸì¤Ï¡¢¥°¥é¥Õ¤ä¤½¤ì¤Ë´ØÏ¢¤¹¤ë¥é¥Ù ¥ë¤ä¥¿¥¤¥È¥ë¡¢ËÞÎã¤Ê¤É¤òÇÛÃÖ¤¹¤ë¤Î¤ËÍøÍѲÄǽ¤ÊÉÁ²èÎΰèÁ´ÂΤò°ÕÌ£¤·¤Þ¤¹¡£ Ãí°Õ: HTML5 canvas ½ÐÎÏ·Á¼°¤Ë´Ø¤¹¤ë¾ðÊó¤òÃΤꤿ¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set term canvas (127.4)¡£
set term <terminal_type> size <XX>, <YY> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¡¢ ¤Þ¤¿¤Ï "¥¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥°¥é¥Õ¤Ï¤½¤Î ¥¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£
set size <XX>, <YY> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤ÆÁêÂÐŪ¤Ë ¿½Ì¤µ¤»¤Þ¤¹¡£1 ¤è¤ê¾®¤µ¤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥¥ã¥ó¥Ð¥¹Á´ÂΤò Ëä¤á¤º¡¢1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß¤¬¥¥ã¥ó¥Ð¥¹ Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢ÌäÂ꤬µ¯ ¤³¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set size 0.5, 0.5 set term png size 600, 400 set output "figure.png" plot "data" with lines
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢Éý 600 ¥Ô¥¯¥»¥ë¡¢¹â¤µ 400 ¥Ô¥¯¥»¥ë¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë "figure.png" ¤òÀ¸À®¤·¤Þ¤¹¡£¥°¥é¥Õ¤Ï¥¥ã¥ó¥Ð¥¹¤ÎÃæ¤Îº¸²¼¤ËÃÖ¤«¤ì¤Þ¤¹¡£
Ãí°Õ: gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢set size ¤ò½ÐÎÏ¥¥ã¥ó¥Ð¥¹¤Î¥µ ¥¤¥º¼«ÂΤòÀ©¸æ¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë½ÐÎÏ·Á¼°¤¬¤¢¤ê¤Þ¤·¤¿¤¬¡¢¤½¤ì¤Ï¥Ð¡¼¥¸¥ç¥ó 4 ¤ÇÈó¿ä¾©¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ÁȤ߹þ¤ß¤Î readline ÈǤξì¹ç¤ÎÊÔ½¸¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¤¬¡¢DEL ¥¡¼ ¤Ë´Ø¤¹¤ëÆ°ºî¤Ï¥·¥¹¥Æ¥à¤Ë°Í¸¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£GNU readline ¥é¥¤¥Ö¥é¥ê¤È BSD libedit ¥é¥¤¥Ö¥é¥ê¤Ë´Ø¤·¤Æ¤Ï¡¢¤½¤ì¼«¿È¤Î¥É¥¥å¥á¥ó¥È ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥³¥Þ¥ó¥É¹ÔÊÔ½¸¥³¥Þ¥ó¥É | |
ʸ»ú | µ¡Ç½ |
¹ÔÊÔ½¸ | |
^B |
1 ʸ»úÁ°¤ØÌ᤹ |
^F |
1 ʸ»úÀè¤Ø¿Ê¤á¤ë |
^A |
¹Ô¤ÎÀèƬ¤Ø°ÜÆ° |
^E |
¹Ô¤ÎºÇ¸å¤Ø°ÜÆ° |
^H |
ľÁ°¤Îʸ»ú¤òºï½ü |
DEL |
¸½ºß¤Îʸ»ú¤òºï½ü |
^D |
¸½ºß°ÌÃÖ¤Îʸ»ú¤òºï½ü¡¢¶õ¹Ô¤Ê¤é EOF |
^K |
¸½ºß°ÌÃÖ¤«¤é¹ÔËö¤Þ¤Çºï½ü |
^L |
²õ¤ì¤¿É½¼¨¤Î¹Ô¤òºÆɽ¼¨ |
^U |
¹ÔÁ´ÂΤκï½ü |
^W |
ľÁ°¤Îñ¸ì¤òºï½ü |
^V |
¤³¤Î¼¡¤Î¥¡¼¤òÊÔ½¸¥³¥Þ¥ó¥É¤È¸«¤Ê¤µ¤Ê¤¤ |
TAB |
¥Õ¥¡¥¤¥ë̾Êä´°Æ°ºî |
ÍúÎò | |
^P |
Á°¤ÎÍúÎò¤Ø°ÜÆ° |
^N |
¼¡¤ÎÍúÎò¤Ø°ÜÆ° |
^R |
¸åÊý¸¡º÷¤ò³«»Ï |
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë¥³¥á¥ó¥Èʸ»ú¤Î»ØÄê¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set datafile commentschars (112.23.6)¡£
{<system>} <x>, {<system>} <y> {,{<system>} <z>}
³ÆºÂɸ·Ï»ØÄê <system> ¤Ë¤Ï¡¢first, second, polar, graph, screen, character ¤Î¤¤¤º¤ì¤«¤¬Æþ¤ê¤Þ¤¹¡£
first ¤Ïº¸¤È²¼¤Î¼´¤ÇÄêµÁ¤µ¤ì¤ë x,y (3D ¤Î¾ì¹ç¤Ï z ¤â) ¤ÎºÂɸ·Ï¤ò»ÈÍÑ ¤·¤Þ¤¹¡£second ¤Ï x2, y2 ¼´ (¾å¤È±¦¤Î¼´) ¤ò»ÈÍѤ·¤Þ¤¹¡£graph ¤Ï¥° ¥é¥ÕÉÁ²èÎΰèÆâ¤ÎÁêÂÐŪ°ÌÃÖ¤ò»ØÄꤷ¡¢º¸²¼¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 (splot ¤Î ¾ì¹ç¤Ï¥°¥é¥ÕÉÁ²èÎΰèÆâ¤Îº¸²¼¤¬ 0,0,0 ¤Ç¡¢ÅÚÂæ¤Î°ÌÃÖ¤ÏÉé¤Î z ¤ÎÃͤò»ÈÍÑ ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set xyplane (112.124)) ¤È¤Ê¤ê¤Þ¤¹¡£screen ¤Ïɽ¼¨ÈÏ°ÏÆâ (ÈÏ °ÏÁ´ÂΤǤ¢¤ê¡¢set size ¤ÇÁªÂò¤µ¤ì¤ë°ìÉôʬ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤ò»ØÄꤷ¡¢ º¸²¼¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 ¤È¤Ê¤ê¤Þ¤¹¡£character ºÂɸ¤Ï¼ç¤Ë¤º¤ì¤ò»ØÄê ¤¹¤ë¤Î¤Ë»ÈÍѤ·¡¢ÀäÂÐŪ¤Ê°ÌÃÖ¤ò¼¨¤¹¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£character ¤Î¿å Ê¿¡¢¿âľ¥µ¥¤¥º¤Ï¡¢¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤Ë°Í¸¤·¤Þ¤¹¡£
polar ¤Ï¡¢ºÇ½é¤Î 2 ¤Ä¤ÎÃͤò¡¢x, y ¤Ç¤Ï¤Ê¤¯¡¢³Ñ theta ¤ÈȾ·Â r ¤Ç¤¢¤ë ¤È²ò¼á¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Î㤨¤Ð 2 ¼¡¸µ¤Î¶ËºÂɸ¡¢¤¢¤ë¤¤¤Ï 3 ¼¡¸µ±ßÃìºÂɸ¤Ç ¤Î¥°¥é¥Õ¤Ë¥é¥Ù¥ë¤òÇÛÃÖ¤¹¤ë¤Î¤ËÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£
x ¤ÎºÂɸ·Ï¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï first ¤¬»È¤ï¤ì¤Þ¤¹¡£y ¤ÎºÂɸ·Ï¤¬ »ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï x ¤ËÂФ¹¤ëºÂɸ·Ï¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£
Í¿¤¨¤ëºÂɸ¤¬ÀäÂÐŪ¤Ê°ÌÃ֤ǤϤʤ¯¤ÆÁêÂÐŪ¤ÊÃͤǤ¢¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹ (Î㤨 ¤Ð set arrow ... rto ¤Î 2 ÈÖÌܤοôÃÍ)¡£¤½¤Î¤Û¤È¤ó¤É¤¬¡¢Í¿¤¨¤é¤ì¤¿ ¿ôÃͤòºÇ½é¤Î°ÌÃÖ¤ËÂФ¹¤ëº¹¤È¤·¤Æ»È¤¤¤Þ¤¹¡£Í¿¤¨¤é¤ì¤¿ºÂɸ¤¬Âпô¼´Æâ¤Ë¤¢ ¤ë¾ì¹ç¤Ï¡¢¤½¤ÎÁêÂÐŪ¤ÊÃͤÏÇÜΨ¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð
set logscale x set arrow 100,5 rto 10,2
¤Ï¡¢x ¼´¤¬Âпô¼´¤Ç y ¼´¤¬Àþ·Á¤Î¼´¤Ê¤Î¤Ç¡¢100,5 ¤Î°ÌÃÖ¤«¤é 1000,7 ¤Î°Ì Ã֤ؤÎÌð°õ¤ò½ñ¤¯¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
°ì¤Ä (¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å) ¤Î¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¾ì¹ç¡¢timefmt ¤Î½ñ¼°Ê¸»úÎó ¤Ë½¾¤Ã¤Æ¡¢°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿»þ´Öʸ»úÎó¤ÇŬÀڤʺÂɸ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: set xdata (112.118), set timefmt (112.96)¡£¤Þ¤¿¡¢gnuplot ¤ÏÀ°¿ôɽµ¤â ǧ¤á¤Æ¤¤¤Æ¡¢¤½¤Î¾ì¹ç¤½¤ÎÀ°¿ô¤Ï 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤È²ò¼á¤µ¤ì¤Þ ¤¹¡£
1.000 2.000 "Third column is all of this text" 4.00
¥Æ¥¥¹¥ÈÉôʬ¤Ï 2 ¼¡¸µ¤ä 3 ¼¡¸µÉÁ²èÆâ¤ÇÎ㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë»ÈÍѤµ¤ì¤Þ¤¹:
plot 'datafile' using 1:2:4 with labels splot 'datafile' using 1:2:3:4 with labels
¥Æ¥¥¹¥ÈÉôʬ¤ÎÎó¥Ç¡¼¥¿¤Ï 1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤ÎÉÁ²è¼´¤ÎÌÜÀ¹¤ê¤Î¥é¥Ù¥ë¤È¤· ¤Æ»ÈÍѤǤ¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢ÆþÎϥǡ¼¥¿¤Î 3 ÎóÌÜ¤È 4 ÎóÌܤò (X,Y) ºÂɸ¤È ¤·¤Æ¼è¤ê½Ð¤·¡¢¤½¤ì¤é¤ÎÅÀ¤ÎÎó¤ò·ë¤ÖÀþʬ¤òÉÁ²è¤·¤Þ¤¹¡£¤·¤«¤·¤³¤Î¾ì¹ç gnuplot ¤Ï¡¢x ¼´¤Ë±è¤Ã¤Æɸ½àŪ¤Ë´Ö¤Î¶õ¤¤¤¿¿ô»ú¥é¥Ù¥ë¤Î¤Ä¤¤¤¿ÌÜÀ¹¤ê¹ï¤ß ¤ò¤Ä¤±¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Î 1 ¹ÔÌܤΠX ºÂɸ¤Î°ÌÃ֤ˡ¢ÌÜÀ¹ ¤ê¹ï¤ß¤Èʸ»úÎó¤ò x ¼´¤Ë±è¤Ã¤Æ¤Ä¤±¤Æ¹Ô¤¤Þ¤¹¡£
set xtics plot 'datafile' using 3:4:xticlabels(1) with linespoints
ÆþÎϥǡ¼¥¿¤ÎÎó¤ÎºÇ½é¤Î¥¨¥ó¥È¥ê (¤¹¤Ê¤ï¤ÁÎó¤Î¸«½Ð¤·) ¤ò¥Æ¥¥¹¥ÈÉôʬ¤È²ò ¼á¤¹¤ë¤â¤¦°ì¤Ä¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¡¢¤½¤ì¤Ï¥Æ¥¥¹¥ÈÉôʬ¤ò¡¢¤½¤ÎÉÁ²è¤·¤¿Îó ¤Î¥Ç¡¼¥¿¤ÎËÞÎã (key) ¤Î¥¿¥¤¥È¥ëÉôʬ¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢ÀèƬ¤Î ¹Ô¤Î 2 ÎóÌܤÎÉôʬ¤òËÞÎã¥Ü¥Ã¥¯¥¹Æâ¤Î¥¿¥¤¥È¥ë¤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤ·¡¢¤½¤Î ¸å¤ÎÎó¤Î 2,4 ÎóÌܤÏÍ׵ᤵ¤ì¤¿¶ÊÀþ¤òÉÁ²è¤¹¤ë¤Î¤Ë½èÍý¤µ¤ì¤Þ¤¹:
plot 'datafile' using 1:(f($2)/$4) with lines title columnhead(2)
Ê̤ÎÎã:
plot for [i=2:6] 'datafile' using i title "Results for ".columnhead(i)
¤³¤ÎÎó¤ÎÀèƬ¤ò»ÈÍѤ¹¤ëÊýË¡¤Ï¡¢set datafile columnheaders ¤« set key autotitle columnhead ¤Ç¼«Æ°²½¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: labels (54), using xticlabels (99.3.11.6), plot title (99.9), using (99.3.11), key autotitle (112.39.4)¡£
^
2"
¤Ï x ¤Î¼«¾è¤ò¡¢Ä̾ï²æ¡¹¤¬¸«¤ë¾åÉÕ¤¤Î 2 ¤¬¤Ä¤¤¤¿·Á¤Ç½ñ¤½Ð¤·¤Þ¤¹¡£¤³¤Î
¥â¡¼¥É¤Ï¡¢½ÐÎÏ·Á¼°¤ÎÀßÄê»þ¤Ë¥Ç¥Õ¥©¥ë¥È¤È¤·¤ÆÁªÂò¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤Î¸å¤Ç
set termoption [no]enhanced ¤ò»È¤Ã¤Æ¤½¤Îµ¡Ç½¤ò͸ú/̵¸ú¤Ë¤â¤Ç¤¤Þ¤¹
¤·¡¢set label "x_2" noenhanced ¤Î¤è¤¦¤Ë¸ÄÊ̤Îʸ»úÎó¤ËÂФ·¤Æ̵¸ú¤Ë¤¹
¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
Ãí°Õ: TeX ¥Ù¡¼¥¹¤Î½ÐÎÏ·Á¼° (Î㤨¤Ð cairolatex, pict2e, pslatex, tikz) ¤Î½ÐÎϤǤϡ¢¤¹¤Ù¤Æ¤Î¥Æ¥¥¹¥Èʸ»úÎó¤Ë¤Ï¡¢¤³¤ì¤ÎÂå¤ï¤ê¤Ë TeX/LaTeX ¤Î½ñ ¼°¤ò»ÈÍѤ¹¤Ù¤¤Ç¤¹¡£°Ê²¼»²¾È: latex ()¡£
³Èĥʸ»úÎóÀ©¸æµ¹æ | |||
À©¸æµ¹æ | Îã | ·ë²Ì | ÀâÌÀ |
^ |
a^x |
ax | ¾åÉդʸ»ú |
_ |
a_x |
ax | ²¼Éդʸ»ú |
@ |
a@^b_{cd} |
abcd | ¶õ¥Ü¥Ã¥¯¥¹ (Éý¤¬¤Ê¤¤) |
& |
d&{space}b |
d b |
»ØÄꤷ¤¿Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òÁÞÆþ |
~ |
~a{.8-} |
'a' ¤Î¾å¤Ë '-' ¤ò¡¢¸½ºß¤Î¥Õ¥©¥ó¥È¥µ | |
|
|
¥¤¥º¤Î .8 ÇÜ»ý¤Á¾å¤²¤¿°ÌÃ֤˽Ťͽñ¤ | |
|
{/Times abc} |
abc | Times ¥Õ¥©¥ó¥È¡¢º£¤Î¥µ¥¤¥º¤Ç abc ¤ò½ÐÎÏ |
|
{/Times*2 abc} |
abc | Times ¥Õ¥©¥ó¥È¡¢º£¤ÎÇܤΥµ¥¤¥º¤Ç abc |
|
{/Times:Italic abc} |
abc | Times ¥Õ¥©¥ó¥È¡¢¥¤¥¿¥ê¥Ã¥¯ÂÎ¤Ç abc |
|
{/Arial:Bold=20 abc} |
abc | Arial ¥Õ¥©¥ó¥È¡¢ÂÀ»ú¡¢¥µ¥¤¥º 20 ¤Ç abc |
\U+ |
\U+221E |
Unicode ¥³¡¼¥É¥Ý¥¤¥ó¥È U+221E ̵¸ÂÂç |
½ñ¼°À©¸æʸ»ú¤Ï¡¢¤½¤ì¤Ë³¤¯ 1 ʸ»ú¡¢¤Þ¤¿¤ÏÃ楫¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿¤â¤Î¤ËŬÍÑ
¤µ¤ì¤Þ¤¹¡£Ã楫¥Ã¥³Æâ¤Ë¤Ï¡¢Î㤨¤Ð 2^
{10} ¤Î¤è¤¦¤ÊÄɲäνñ¼°Ê¸»úÎó¤Î¤Ê¤¤
ʸ»úÎ󤫡¢¤Þ¤¿¤Ï¥Õ¥©¥ó¥È¤Î°À¤òÊѹ¹¤¹¤ëÄɲÃÀ©¸æʸ»úÎó¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç
¤¤Þ¤¹¡£¥Õ¥©¥ó¥È»ØÄê¤Ï¡¢³«¤Ã楫¥Ã¥³ '{' ¤Îľ¸å¤Ë³¤¯ '/' ¤Î¤¹¤°¼¡¤Ë½ñ
¤«¤Ê¤±¤ì¤Ð¡Ö¤¤¤±¤Þ¤»¤ó¡×¡£¥Õ¥©¥ó¥È̾¤Ë¥¹¥Ú¡¼¥¹¤¬´Þ¤Þ¤ì¤ë¾ì¹ç¡¢¤½¤ì¤òñ
°ì¡¢¤Þ¤¿¤ÏÆó½Å°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
Îã: ºÇ½é¤ÎÎã¤Ï¤½¤ÎÃ楫¥Ã¥³¤ÎÆþ¤ì»Ò¤ò¼¨¤·¤Æ¤¤¤Æ¡¢¥Ü¡¼¥ë¥ÉÂΤΠA ¤Ë¥¤¥¿ ¥ê¥Ã¥¯ÂΤβ¼ÉÕ¤¤Îź»ú i ¤¬¤Ä¤¤¤¿¤â¤Î¤¬¡¢¤¤¤º¤ì¤â¸½ºß¤Î¥Õ¥©¥ó¥È¤ÇÉÁ¤« ¤ì¤Þ¤¹¡£¤³¤ÎÎã¤Î :Normal ¤ò¼è¤ë¤È¡¢²¼ÉÕ¤¤Îź»ú¤Ï¥Ü¡¼¥ë¥ÉÂΤǤ«¤Ä¥¤¥¿ ¥ê¥Ã¥¯ÂΤˤʤê¤Þ¤¹¡£2 ¤ÄÌܤÎÎã¤ÏƱ¤¸½ñ¼°À©¸æ¤ò 20 ¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Î "Times New Roman" ¥Õ¥©¥ó¥È¤ËŬÍѤ·¤¿¤â¤Î¤Ç¤¹¡£
{/:Bold A_{/:Normal{/:Italic i}}} {/"Times New Roman":Bold=20 A_{/:Normal{/:Italic i}}}
¶õ¥Ü¥Ã¥¯¥¹ (phantom box) ¤Ï a@^
b_c ¤Î¾åÉդʸ»ú¤È²¼Éդʸ»ú¤ò·¤¨¤ë¤È
¤¤ËÍÍѤǤ¹¤¬¡¢Ê¸»ú¤Ë¥À¥¤¥¢¥¯¥ê¥Æ¥£¥«¥ë¥Þ¡¼¥¯¤ò½Å¤Í¤ë¾ì¹ç¤Ë¤Ï¤¦¤Þ¤¯Æ¯
¤¤Þ¤»¤ó¡£¤½¤ÎÌÜŪ¤Î¤¿¤á¤Ë¤Ï¡¢¥¢¥¯¥»¥ó¥È¤ä¤½¤Î¾¤Î¥À¥¤¥¢¥¯¥ê¥Æ¥£¥«¥ë¥Þ
¡¼¥¯¤Î¤¢¤ëʸ»ú¤ò»ý¤Ä¥¨¥ó¥³¡¼¥É (Î㤨¤Ð utf8) ¤ò»ÈÍѤ¹¤ëÊý¤¬¤¤¤¤¤Ç¤·¤ç
¤¦¡£°Ê²¼»²¾È: set encoding (112.27)¡£¤½¤Î¥Ü¥Ã¥¯¥¹¤Ï¥¹¥Ú¡¼¥·¥ó¥°¤¬¹Ô¤Ê¤ï¤ì¤Ê¤¤
¤Î¤Ç¡¢¥Ü¥Ã¥¯¥¹Æâ (¤Ä¤Þ¤ê @ ¤Î¸å¤í) ¤Î¾åÉդʸ»ú¤ä²¼Éդʸ»ú¤òû¤¯½ÐÎÏ
¤¹¤ë¤Î¤ËŬ¤·¤Æ¤¤¤Þ¤¹¡£
¤¢¤ëʸ»úÎó¤ÈƱ¤¸Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òʸ»ú '&' ¤ò»È¤¦¤³¤È¤ÇÆþ¤ì¤ë¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢
'abc&{def}ghi'
¤Ï°Ê²¼¤òÀ¸À®¤·¤Þ¤¹ (abc ¤È ghi ¤Î´Ö¤Ï 3 ʸ»úʬ¤Î¶õÇò):
'abc ghi'
ʸ»ú '~ ' ¤Ï¡¢¼¡¤Îʸ»ú¡¢¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ë¡¢¤½¤ì¤Ë³¤¯Ê¸»ú
¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ò½Å¤Í½ñ¤¤·¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤ÏºÇ½é¤Îʸ»ú
¤Ë¤¢¤ï¤»¤Æ¿åÊ¿Êý¸þ¤Ë¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ '~ a/' ¤Ï 'a' ¤ò´Ó¤¯¤è
¤¦¤Ê¥¹¥é¥Ã¥·¥å¤¬ÆÀ¤é¤ì¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤Ï¡¢¤½¤ÎÁ°¤Ë¿ô»ú¤òÃÖ¤¯¤³¤È¤Ç¿â
ľÊý¸þ¤Ë°ÜÆ°¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¿ô»ú¤Ï¸½ºß¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ËÂФ¹
¤ë³ä¹ç¤ò°ÕÌ£¤·¡¢¤½¤ì¤Ë½¾¤Ã¤Æʸ»ú¤¬¾å¤¬¤Ã¤¿¤ê²¼¤¬¤Ã¤¿¤ê¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç
¿ô»ú¤Èʸ»úÎó¤Ï 1 ʸ»ú¤è¤êŤ¯¤Ê¤ë¤Î¤Ç¥«¥Ã¥³¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£½Å¤Í
½ñ¤¤µ¤ì¤ëʸ»úÎ󤬿ô»ú¤«¤é»Ï¤Þ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¿âľ¤Ë¤º¤é¤¹ÃͤÈʸ»úÎó¤È
¤Î´Ö¤Ë¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤ ('~ {abc}{.5 000}')¡£¤½¤ì°Ê³°¤Ï¥¹¥Ú¡¼¥¹
¤ÏÉÔÍפǤ¹ ('~ {abc}{.5 — }')¡£°ìÊý¡¢¤¢¤ë¤¤¤ÏξÊý¤Î¥Õ¥©¥ó¥È¤òÊѹ¹¤¹¤ë¤³
¤È¤â¤Ç¤¤Þ¤¹ ('~ a{.5 /*.2 o}'; 'a' ¤½¤Î 1/5 ¤ÎÂ礤µ¤Î 'o'¡¢¤³¤Î¾ì¹ç¿ô
»ú¤È¥¹¥é¥Ã¥·¥å¤Î´Ö¤Î¥¹¥Ú¡¼¥¹¤ÏɬÍפǤ¹) ¤¬¡¢¤½¤Îʸ»úÎ󤬻Ϥޤ俸å¤ÇÊÑ
¹¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤ì¤¾¤ì¤Îʸ»úÎóÆâ¤Ç¡¢Â¾¤ÎÆüì¤Ê½ñ¼°¤ò»È¤¦¤³¤È
¤â¤Ç¤¤Þ¤»¤ó¡£À©¸æʸ»ú¤Ï¥¨¥¹¥±¡¼¥×¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Îã: ¥µ¡¼¥«¥à¥Õ¥ì
¥Ã¥¯¥¹ÉÕ¤¤Î a (
\U+00E2) ¤ò°õ»ú¤¹¤ë¤Ë¤Ï '~ a{.8
\^
}' ¤È¤·¤Þ¤¹¡£
Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ïñ°ì°úÍÑÉäÆâ¤Îʸ»úÎó¤È¤Ï°Û¤Ê¤Ã¤Æ²ò¼á¤µ¤ì¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¼ç¤Ê°ã¤¤¤Ï¡¢Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ç¤Ï¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ¤Ï 2 ¤Ä½Å¤Í¤ëɬÍפ¬¤¢¤ë¤³¤È¤Ç¤¹¡£
gnuplot ¥½¡¼¥¹ÇÛÉÛʪÆâ¤Î /docs/psdoc ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë "ps_guide.ps" ¤Ë¡¢³ÈÄ¥¤µ¤ì¤¿½ñ¼°¤Ë´Ø¤¹¤ëÎ㤬ºÜ¤Ã¤Æ¤¤¤Þ¤¹¡£Æ±ÍͤΤâ¤Î¤¬ ¥Ç¥â enhanced_utf8.dem
¤Ë¤â¤¢¤ê¤Þ¤¹¡£
\ooo ¤Î·Á¼° (ooo ¤Ï 8 ¿ÊÃͤΠ3 ʸ»ú) ¤Ï¡¢ÆÃÄê¤Î¥Õ¥©¥ó¥È¥¨¥ó¥³¡¼¥ÉÆâ¤Î ʸ»ú¥³¡¼¥ÉÈÖ¹æ¤ò»Ø¤·¼¨¤¹¤Î¤Ë»È¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢Adobe Symbol ¥Õ¥©¥ó¥È¤Ï¡¢ ̵¸ÂÂç¤Îµ¹æ¤ò 8 ¿Ê 245 È֤Ǽ¨¤¹¤è¤¦¤Ê¥«¥¹¥¿¥à¥¨¥ó¥³¡¼¥É¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢³Èĥʸ»úÎó¤È¤·¤Æ¥Õ¥©¥ó¥È̾¤Èʸ»ú¥³¡¼¥É¤ò "{/Symbol \245}" ¤Î¤è ¤¦¤Ë»ØÄꤹ¤ë¤³¤È¤ÇËä¤á¹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë PostScript ½ÐÎÏ·Á ¼°¤ÇÍÍѤǤ¹¤¬¡¢¤³¤ì¤Ï UTF-8 ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Î½èÍý¤ÏÍưפˤϹԤ¨¤Þ¤» ¤ó¡£
\U+hhhh ¤Î·Á¼°¤Î Unicode ¤Î¥³¡¼¥É¥Ý¥¤¥ó¥È¤Çʸ»ú¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£¤³¤³¤Ç hhhh ¤Ï 16 ¿ÊÃͤΠ4 ¤Þ¤¿¤Ï 5 ʸ»ú¤Ç¤¹¡£Î㤨¤Ð¡¢Ìµ¸ÂÂç¤Îµ¹æ ¡ç¤Î¥³¡¼¥É¥Ý¥¤¥ó¥È¤Ï \U+221E ¤Ç¤¹¡£¤³¤ì¤Ï¡¢É¬Íפʤé¤Ð½ÐÎÏ»þ¤Ë UTF-8 ¤Î ¥Ð¥¤¥ÈÎó¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£UTF-8 ´Ä¶¤Ç¤Ï¡¢°õ»ú²Äǽ¤ÊÆüìʸ»ú¤Ï¾¤Îʸ»ú¤È ƱÍͤËʸ»úÎóÆâ¤Ç½èÍý¤Ç¤¤ë¤Î¤Ç¡¢¤³¤Î»ÅÁȤߤÏɬÍפ¢¤ê¤Þ¤»¤ó¡£¤·¤«¤·¤³¤ì ¤Ï·ë¹çʸ»ú¤äȯ²»¶èÊÌÉä¹æ (Î㤨¤Ð¥Ù¥¯¥È¥ë¤ò°ÕÌ£¤¹¤ë¤¿¤á¤Îʸ»ú¤Î¾å¤ÎÌð°õ ¤Ê¤É) ¤Ë¤ÏÍÍѤǤ¹¡£°Ê²¼»²¾È: set encoding (112.27), utf8 (112.27)¡£¤Þ¤¿¤Ï ¥ª¥ó¥é¥¤¥ó¥æ¥Ë¥³¡¼¥É¥Ç¥â
¤ò»²¾È¡£
GNUTERM ¤Ï¡¢¤½¤ì¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢µ¯Æ°»þ¤Ë "set term" ¤ËÅϤµ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥·¥¹¥Æ¥à¡¢¤Þ¤¿¤Ï¸Ä¿ÍŪ¤Ê½é´ü²½¥Õ¥¡¥¤¥ë¤Ë¤è¤ë»ØÄê (°Ê²¼»²¾È: startup (27))¡£¤ä¡¢¤â¤Á¤í¤ó¤½¤Î¸å¤ÎÌÀ¼¨Åª¤Ê set term ¥³¥Þ¥ó¥É¤Ë¤è¤ë»ØÄê ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ terminal ¥ª¥×¥·¥ç¥ó¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Îã:
bash$ export GNUTERM="postscript eps color size 5in, 3in"
GNUHELP ¤Ï¡¢¤½¤ì¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¥Ø¥ë¥×¥Õ¥¡¥¤¥ë (gnuplot.gih) ¤Î¥Ñ ¥¹Ì¾¤ËÀßÄꤷ¤Þ¤¹¡£
µ¯Æ°»þ¤Î½é´ü²½¤Ë¤Ï¡¢ÀßÄê¥Õ¥¡¥¤¥ë $HOME/.gnuplot ¤È $XDG_CONFIG_HOME/gnuplot/gnuplotrc ¤òõ¤·¤Þ¤¹¡£MS-DOS, Windows, OS/2 ¤Ç¤Ï GNUPLOT ¤« USERPROFILE ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï°Ê²¼»²¾È: startup (27)¡£
Unix ¤Ë¤ª¤¤¤Æ¤Ï¡¢PAGER ¤¬¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤Î½ÐÎÏÍѤΥե£¥ë¥¿¤È¤·¤Æ»È¤ï ¤ì¤Þ¤¹¡£
Unix ¤Ç¤Ï¡¢SHELL ¤¬ shell ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë»È¤ï¤ì¤Þ¤¹¡£MS-DOS, OS/2 ¤Ç ¤Ï COMSPEC ¤¬»È¤ï¤ì¤Þ¤¹¡£
FIT_SCRIPT ¤Ï¡¢Åö¤Æ¤Ï¤á (fit) ¤¬ÃæÃǤµ¤ì¤¿¤È¤¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³ ¥Þ¥ó¥É¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: fit (88)¡£FIT_LOG ¤ÏÅö¤Æ¤Ï¤á¤Ë¤è¤ë¥í ¥°¥Õ¥¡¥¤¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë̾¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£
GNUPLOT_LIB ¤Ï¡¢¥Ç¡¼¥¿¤ä¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤òÄɲÃÄêµÁ¤¹ ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ÎÊÑ¿ô¤Ï¡¢°ì¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤«¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ç¥£¥ì ¥¯¥È¥ê̾¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¶èÀÚ¤ê¤Ï¥×¥é¥Ã¥È¥Û¡¼¥àËè ¤Ë°ã¤¤¤Þ¤¹¡£Î㤨¤Ð Unix ¤Ç¤Ï ':' ¤Ç¡¢MS-DOS, Windows, OS/2 ¤Ç¤Ï ';' ¤Ç ¤¹¡£GNUPLOT_LIB ¤ÎÃͤÏÊÑ¿ô loadpath ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï save ¤ä save set ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£
½ÐÎϥɥ饤¥Ð¤ÎÃæ¤Ë¤Ï gd ¥é¥¤¥Ö¥é¥ê·Ðͳ¤Ç TrueType ¥Õ¥©¥ó¥È¤ò°·¤¨¤ë¤â¤Î ¤â¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹ (°Ê²¼»²¾È: fonts (16))¡£¤³¤ì¤é¤Î½ÐÎÏ·Á¼°¤Ç¤Ï¡¢ GDFONTPATH ¤ä GNUPLOT_DEFAULT_GDFONT ¤¬¥Õ¥©¥ó¥È¤ÎÁªÂò¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
postscript ½ÐÎϥɥ饤¥Ð¤Ï¼«Ê¬¤Ç»ý¤Ã¤Æ¤¤¤ë¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¤ò»È¤¤¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï¡¢´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
PostScript ¥É¥é¥¤¥Ð¤Ï¡¢³°Éô (ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤) ÄêµÁ¥Õ¥¡¥¤¥ë¤òõ¤¹¤¿ ¤á¤Ë´Ä¶ÊÑ¿ô GNUPLOT_PS_DIR ¤òÍøÍѤ·¤Þ¤¹¡£¥¤¥ó¥¹¥È¡¼¥ë»þ¤Îºî¶È¤Ë¤è¤ê¡¢ gnuplot ¤Ë¤Ï¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥© ¥ë¥È¤Î¥Ñ¥¹¤¬Ëä¤á¹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤Ç¥Ç¥Õ ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë¤ÎÂå¤ï¤ê¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿ prologue ¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ¹¤ë ¤Î¤ËÍøÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È: postscript prologue (127.27.3)¡£
gnuplot ¤Ï "¼Â¿ô" ¤È "À°¿ô" ±é»»¤ò FORTRAN ¤ä C ¤Î¤è¤¦¤Ë°·¤¦¤È¤¤¤¦¤³¤È ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£"1", "-10" ¤Ê¤É¤ÏÀ°¿ô¤È¸«¤Ê¤µ¤ì¡¢"1.0", "-10.0", "1e1", 3.5e-1 ¤Ê¤É¤Ï¼Â¿ô¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤é 2 ¤Ä¤Î¤â¤Ã¤È¤â½ÅÍפʰ㠤¤¤Ï³ä»»¤Ç¤¹¡£À°¿ô¤Î³ä»»¤ÏÀÚ¤ê¼Î¤Æ¤é¤ì¤Þ¤¹: 5/2 = 2¡£¼Â¿ô¤Ï¤½¤¦¤Ç¤Ï¤¢ ¤ê¤Þ¤»¤ó: 5.0/2.0 = 2.5¡£¤½¤ì¤é¤¬º®ºß¤·¤¿¼°¤Î¾ì¹ç¡¢·×»»¤ÎÁ°¤ËÀ°¿ô¤Ï¼Â ¿ô¤Ë "³ÈÄ¥" ¤µ¤ì¤Þ¤¹: 5/2e0 = 2.5¡£Éé¤ÎÀ°¿ô¤òÀµ¤ÎÀ°¿ô¤Ç³ä¤ë¾ì¹ç¡¢¤½¤Î Ãͤϥ³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£"print -5/2" ¤È¤·¤Æ¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ ¥à¤¬¾ï¤ËÀÚ¤ê¼Î¤Æ¤ë (-5/2 ¤Ç -3 ¤Ë¤Ê¤ë) ¤Î¤«¡¢¤Þ¤¿¤Ï 0 ¤Î¶á¤¯¤Ë´Ý¤á¤ë (-5/2 ¤Ç -2 ¤Ë¤Ê¤ë) ¤Î¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¿ô¼° "1/0" ¤Ï "̤ÄêµÁÃÍ (undefined)" ¥Õ¥é¥°¤òÀ¸À®¤·¡¢¤½¤ì¤Ë¤è¤ê¤½¤ÎÅÀ ¤ò̵»ë¤·¤Þ¤¹¡£¤¢¤ë¤¤¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ NaN ¤ò»È¤Ã¤Æ¤âƱ¤¸ ¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Îã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using (99.3.11)¡£
gnuplot ¤Ïʸ»úÎó¤ËÂФ¹¤ëñ½ã¤Ê±é»»¡¢¤ª¤è¤Óʸ»úÎóÊÑ¿ô¤âÍøÍѤǤ¤Þ¤¹¡£Îã ¤¨¤Ð¼° ("A" . "B" eq "AB") ¤Ï¿¿¤Èɾ²Á¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ïʸ»úÎó¤Î·ë¹ç±é »»»Ò¤Èʸ»úÎó¤ÎÅù¹æ±é»»»Ò¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£
¿ô¤È¤·¤Æ¤ÎÃͤò´Þ¤àʸ»úÎó¤Ï¡¢¤½¤ì¤¬¿ô¼°¤ÇÍøÍѤµ¤ì¤¿¾ì¹ç¤Ï¡¢Âбþ¤¹¤ëÀ°¿ô ¤ä¼Â¿ô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢("3" + "4" == 7) ¤ä (6.78 == "6.78") ¤Ï ¤É¤Á¤é¤â¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£À°¿ô¤Ï¡¢¤½¤ì¤¬Ê¸»úÎó·ë¹ç±é»»»Ò¤Ç»È¤ï¤ì¤¿¾ì¹ç¤Ïʸ »úÎó¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¤¬¡¢¼Â¿ô¤äÊ£ÁÇ¿ô¤Ï¥À¥á¤Ç¤¹¡£Åµ·¿Åª¤ÊÎã¤Ï¡¢¥Õ¥¡¥¤¥ë̾ ¤ä¾¤Îʸ»úÎóÆâ¤ËÀ°¿ô¤ò»È¤¦¾ì¹ç¤Ç¤·¤ç¤¦: Î㤨¤Ð ("file" . 4 eq "file4") ¤Ï¿¿¤Ç¤¹¡£
¸åÃÖ»ØÄꤹ¤ëÈϰϵ½Ò»Ò [beg:end] ¤Ë¤è¤Ã¤Æ¡¢Éôʬʸ»úÎó¤ò»ØÄꤹ¤ë¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢"ABCDEF"[3:4] == "CD" ¤Ç¡¢"ABCDEF"[4:*] == "DEF" ¤Ç ¤¹¡£½ñ¼° "string"[beg:end] ¤Ï¡¢Ê¸»úÎóÃͤÎÁȤ߹þ¤ß´Ø¿ô substr("strings",beg,end) ¤ò¸Æ¤Ö¤³¤È¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢´Ø¿ô¸Æ¤Ó½Ð¤·¤Ç¤Ï beg, end ¤Ï¾Êά¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
set palette model HSV start 0.3 defined (0 0 1 1, 1 1 1 1) set cbrange [-pi:pi] set cbtics ("-¦Ð" -pi, "¦Ð" pi) set pm3d corners2color c1 E0(z) = exp(-z)/z I = {0,1} splot '++' using 1:2:(abs(E0(x+I*y))):(arg(E0(x+I*y))) with pm3d
¼Â¿ô (ÉâÆ°¾®¿ô) Äê¿ô¤Ï¡¢C ¤Î atof() ¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤ò»È¤Ã¤Æ²ò¼á¤·¤Þ ¤¹¡£
Ê£ÁÇ¿ô¤ÎÄê¿ô¤Ï {<real>,<imag>} ¤Èɽ¸½¤·¤Þ¤¹¡£¤³¤³¤Ç <real> ¤È <imag> (¼ÂÉô¡¢µõÉô) ¤Ï¿ôÃÍÄê¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢{0,1} ¤Ï 'i' ¼«¿È ¤òɽ¤·¡¢{3,2} ¤Ï 3 + 2i ¤òɽ¤·¤Þ¤¹¡£¤³¤ì¤é¤Ë¤ÏÌÀ¼¨Åª¤ËÃ楫¥Ã¥³¤ò»È¤¦É¬ Íפ¬¤¢¤ê¤Þ¤¹¡£¤³¤Î gnuplot ¤Ç¤Ï¡¢¤¢¤é¤«¤¸¤á I = {0,1} ¤òÊÑ¿ô¤È¤·¤ÆÄêµÁ ¤·¤Æ¡¢ÌÀ¼¨Åª¤Ê·Á¼°¤ÎÆþÎϤòÈò¤±¤ë¹©Éפò¤·¤Æ¤¤¤Þ¤¹¡£Î㤨¤Ð¡¢3 + 2*I ¤Ï {3,2} ¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Ïµõ¿ôÀ®Ê¬¤ËÊÑ¿ô·¸¿ô¤ò»È¤¨¤ë¤È¤³¤í¤¬Í¥°Ì¤Ç ¤¹¡£¤¹¤Ê¤ï¤Á¡¢x + y*I ¤ÏÀµ¤·¤¤¿ô¼°¤Ç¤¹¤¬¡¢{x,y} ¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤» ¤ó¡£
ʸ»úÎóÄê¿ô¤Ïñ°ì°úÍÑÉ䤫Æó½Å°úÍÑÉä¤Î¤¤¤º¤ì¤«¤Ç°Ï¤Þ¤ì¤¿Ç¤°Õ¤Îʸ»ú¤ÎÊÂ¤Ó ¤«¤é¤Ê¤ë¤â¤Î¤Ç¤¹¡£Ã±°ì°úÍÑÉä¤ÈÆó½Å°úÍÑÉä¤Î°ã¤¤¤Ï½ÅÍפǤ¹¡£°Ê²¼»²¾È: quotes (30.1)¡£
Îã:
1 -10 0xffaabb # À°¿ôÄê¿ô 1.0 -10. 1e1 3.5e-1 # ¼Â¿ôÄê¿ô {1.2, -3.4} # Ê£ÁÇ¿ôÄê¿ô "Line 1\nLine 2" # ʸ»úÎóÄê¿ô (\n ¤Ï²þ¹Ô¤ËŸ³«¤µ¤ì¤ë) '123\na456' # ʸ»úÎóÄê¿ô (\ ¤È n ¤Ï¤½¤Î¤Þ¤Þ¤Îʸ»ú)
Amos ¥é¥¤¥Ö¥é¥ê (ÍøÍѲÄǽ¤Ê¾ì¹ç¤Î¤ß) ¤Ë¤è¤ëÊ£ÁÇÆüì´Ø¿ô | |||
´Ø¿ô | °ú¿ô | Ìá¤êÃÍ (c ¤ÏÊ£ÁÇ¿ô) | |
Ai(z) | Ê£ÁÇ¿ô | c | Ê£ÁÇ¥¨¥¢¥ê¡¼´Ø¿ô Ai(z) |
Bi(z) | Ê£ÁÇ¿ô | c | Ê£ÁÇ¥¨¥¢¥ê¡¼´Ø¿ô Bi(z) |
BesselH1(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | H(1)(z) Âè 1 ¼ï¥Ï¥ó¥±¥ë´Ø¿ô |
BesselH2(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | H(2)(z) Âè 2 ¼ï¥Ï¥ó¥±¥ë´Ø¿ô |
BesselJ(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | J(z) Âè 1 ¼ï¥Ù¥Ã¥»¥ë´Ø¿ô |
BesselY(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | Y(z) Âè 2 ¼ï¥Ù¥Ã¥»¥ë´Ø¿ô |
BesselI(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | I(z) Âè 1 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô |
BesselK(nu,z) | ¼Â¿ô, Ê£ÁÇ¿ô | c | K(z) Âè 2 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô |
expint(n,z) | À°¿ô n 0, Ê£ÁÇ¿ô z | c | En(z) = t-ne-zt dt, »Ø¿ôÀÑʬ |
gnuplot ¤ÎÊ£ÁÇ¿ôÊÑ¿ôÃÍ¡¢¼Â¿ôÊÑ¿ôÃͤϡ¢¤Û¤È¤ó¤É¤Î»ÈÍѴĶ¤Ç IEEE754 ¤Î binary64 (double) ÉâÆ°¾®¿ô·Á¼°¤ÇÊݸ¤·¤Þ¤¹¡£¤½¤ÎÀºÅ٤ϡ¢53 ¥Ó¥Ã¥È¤ËÀ© ¸Â¤µ¤ì¡¢Í¸ú¿ô»ú¤Ï¤ª¤è¤½ 16 ·å¤Ç¤¹¡£
¤è¤Ã¤Æ¡¢ÀäÂÐÃͤ¬ 2^
53 ¤è¤ê¤âÂ礤¤À°¿ô¤Ï¡¢ÉâÆ°¾®¿ôÊÑ¿ô¤Ç°ì°Õ¤Ëɽ¸½¤¹¤ë
¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¤Ä¤Þ¤ê¡¢Âç¤¤Ê N ¤ËÂФ¹¤ë int(real(N)) ¤È¤¤¤¦Áàºî¤Ï
N ¤Ë¶á¤¤¤±¤ì¤É¤â N ¤È¤Ï°Û¤Ê¤ëÀ°¿ô¤òÊÖ¤¹²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
¤µ¤é¤Ë¡¢ÉâÆ°¾®¿ôÃͤòÀÚ¤ê¼Î¤Æ¤Ë¤è¤êÀ°¿ôÃͤËÊÑ´¹¤¹¤ë´Ø¿ô¤Ï¡¢¤½¤ÎÃͼ«¿È¤¬ ¾®¤µ¤¯¤Æ¤â¡¢16 ·å°Ê¾å¤ÎÀºÅ٤˰͸¤¹¤ëÁàºî¤Ç¤Ï´üÂÔ¤¹¤ëÃͤòÆÀ¤é¤ì¤Ê¤¤²Ä ǽÀ¤¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢int(log10(0.1)) ¤Ï¡¢-1 ¤Ç¤Ê¤¯ 0 ¤òÊÖ¤·¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï¤½¤ÎÉâÆ°¾®¿ôɽ¸½¤¬ -0.999999999999999... ¤ËÅù¤·¤¤¤«¤é¤Ç¤¹¡£ °Ê²¼¤â»²¾È: overflow (112.66)¡£
int(x) ¤Ï¡¢°ú¿ô¤Î 0 ¤ÎÊý¸þ¤ËÀÚ¤ê¼Î¤Æ¤¿À°¿ôÉôʬ¤òÊÖ¤·¤Þ¤¹¡£
|x| > 2^
63¡¢¤¹¤Ê¤ï¤ÁÀ°¿ôÃͤȤ·¤ÆÂ礤¹¤®¤ë¾ì¹ç¤Ï NaN ¤òÊÖ¤·¤Þ¤¹¡£
|x| > 2^
52 ¤Î¾ì¹ç¤Ï¡¢ÊÖ¤êÃͤϤ¢¤ëÀ°¿ô¤Î¶á˵¤Ë¤ª¤µ¤Þ¤ê¤Þ¤¹¤¬¡¢ÉâÆ°¾®¿ô
ÀºÅÙ¤ÎÀ©¸Â¤Î¤¿¤á¤Ë¤½¤ì¤é¤ò¶èÊ̤Ǥ¤Þ¤»¤ó¡£
°Ê²¼»²¾È: integer conversion (15.3.1)¡£
floor(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ°Ê²¼¤ÎºÇÂç¤ÎÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£
|x| > 2^
52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò
ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£
ceil(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ°Ê¾å¤ÎºÇ¾®¤ÎÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£
|x| > 2^
52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò
ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£
round(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ¤Ë°ìÈֶᤤÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£
|x| > 2^
52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò
ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£
^
2*sin^
2(¦È))^
(-0.5) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤιµÁÀÑʬ¤ÎÃͤò
ÊÖ¤·¤Þ¤¹¡£k ¤ÎÄêµÁ°è¤Ï -1 ¤«¤é 1 ¤Ç¤¹ (ξü¤Ï´Þ¤Þ¤Ê¤¤)¡£
EllipticK (k) = -1 d
´Ø¿ô EllipticE(k) ¤Ï¡¢Âè 2 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á¡¢´Ø¿ô
(1 - k^
2*sin^
2(¦È))^
(-0.5) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤιµÁÀÑʬ¤ÎÃͤò
ÊÖ¤·¤Þ¤¹¡£k ¤ÎÄêµÁ°è¤Ï -1 ¤«¤é 1 ¤Ç¤¹ (ξü¤â´Þ¤à)¡£
EllipticE (k) = d
´Ø¿ô EllipticPi(n,k) ¤Ï¡¢Âè 3 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á´Ø¿ô
(1 - k^
2*sin^
2(¦È))^
(-0.5) / (1 - n*sin^
2(¦È)) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤Î
ÈϰϤιµÁÀÑʬ¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ n ¤Ï 1 ¤è¤ê¾®¤µ¤¯¡¢k ¤Ï
-1 ¤È 1 ¤Î´Ö (ξü¤Ï´Þ¤Þ¤Ê¤¤) ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ÄêµÁ¤è¤ê¡¢¤¹¤Ù¤Æ¤Î
Àµ¤Î k ¤ËÂФ· EllipticPi(0,k) == EllipticK(k) ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯
¤À¤µ¤¤¡£
EllipticPi (n, k) = (1-n sin2) d
ÂʱßÀÑʬ¤Î¥¢¥ë¥´¥ê¥º¥à: B.C.Carlson 1995, Numerical Algorithms 10:13-26.
Ai (z) = K1/3() = z3/2
Bi (z) = I-1/3()+I1/3()]
BesselY(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 2 ¼ï¥Ù¥Ã¥»¥ë ´Ø¿ô Y ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
BesselI(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 1 ¼ïÊÑ·Á¥Ù¥Ã ¥»¥ë´Ø¿ô I ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
BesselK(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 2 ¼ïÊÑ·Á¥Ù¥Ã ¥»¥ë´Ø¿ô K ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
BesselH1(nu,z) ¤È BesselH2(nu,z) ¤Ï¡¢¤½¤ì¤¾¤ì¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú ¿ô¤Î z ¤ËÂФ¹¤ëÂè 1 ¼ï¡¢Âè 2 ¼ï¤Î¥Ï¥ó¥±¥ë´Ø¿ô¤Ç¤¹¡£
H1(nu,z) = J(nu,z) + iY(nu,z) H2(nu,z) = J(nu,z) - iY(nu,z)
Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
^
(-n) e^
(-tz) dt ¤Î 1 ¤«¤é¡ç¤Þ¤Ç¤ÎÀÑʬÃͤǤ¹¡£
En(x) = t-ne-xt dt
¤¢¤Ê¤¿¤¬»È¤Ã¤Æ¤¤¤ë gnuplot ¤¬¡¢Amos ¥é¥¤¥Ö¥é¥ê¤Ë¤è¤ëÊ£ÁÇ´Ø¿ô¤Î¥µ¥Ý¡¼¥È ÉÕ¤¤Ç¥Ó¥ë¥É¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ì¤Ð¡¢n>0 ¤ËÂФ·¤Æ¡¢¤½¤Îɾ²Á¤Ë¤Ï Amos ¥ë¡¼¥Á ¥ó¤Î cexint ¤ò»ÈÍѤ·¤Þ¤¹ [Amos 1990 Algorithm 683, ACM Trans Math Software 16:178]¡£¤½¤Î¾ì¹ç¡¢z ¤Ï -pi < arg(z) <= pi ¤ÎǤ°Õ¤ÎÊ£ÁÇ¿ô¤È¤Ç ¤¤Þ¤¹¡£expint(0,z) ¤Ï¡¢exp(-z)/z ¤È·×»»¤·¤Þ¤¹¡£
Amos ¥é¥¤¥Ö¥é¥ê¤Î¥µ¥Ý¡¼¥È¤¬¤Ê¤±¤ì¤Ð¡¢z ¤Ï 0 °Ê¾å¤Î¼Â¿ôÃͤËÀ©¸Â¤µ¤ì¤Þ¤¹¡£
C(x) = cos(t2)dt S(x) = sin(t2)dt
C(x) + iS(x) = erf (z)¡¢ z = (1 - i)x
[Abramowitz and Stegun (6.5.1); NIST DLMF 8.2.4]¡£Ê£ÁÇ´Ø¿ô¥µ¥Ý¡¼¥È¤¬
¤¢¤ì¤Ð¡¢a ¤È z ¤Ï real(a) > 0 ¤ÎÊ£ÁÇ¿ôÃͤâµö¤µ¤ì¤Þ¤¹¡£ µÕ¤Ë¡¢¾åÊýÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: uigamma (15.3.18)¡£
igamma (a, z) = P(a, z) = za(a, z) = ta-1e-tdt
a, z ¤ÎÃͤ˰͸¤·¤Æ¡¢°Ê²¼¤Î 4 ¤Ä¤Î¥¢¥ë¥´¥ê¥º¥à¤ò»ÈÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (1) a ¤¬Â礤¯ (>100) (z-a)/a ¤¬¾®¤µ¤¤ (<0.2) ¾ì¹ç¡¢
Numerical Recipes Âè 3 ÈÇ 6.2 Àá (2007) ¤Ë¤¢¤ë·¸¿ô¤Ç¤Î Gauss-Legendre
¿ôÃÍÀÑʬ¸ø¼°¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (2) z > 1 ¤Ç z > (a+2) ¤Î¾ì¹ç¡¢Shea (1988) J. Royal Stat. Soc.
Series C (Applied Statistics) 37:466-473 ¤ÎϢʬ¿ô¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (3) z < 0 ¤Ç a < 75 ¤Ç imag(a) == 0 ¤Î¾ì¹ç¤Ï¡¢Abramowitz &
Stegun (6.5.29) ¤Î¿ôÎó¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (4) ¤½¤Î¾¤Î¾ì¹ç¤Ï¡¢Peason ¤Îµé¿ôŸ³«¤òÍøÍѤ·¤Þ¤¹¡£
Á´Ê¿Ì̤Ǥϡ¢¤¢¤ëÎΰè¤Ç¤½¤Î¼ý«¤ÏÎɤ¯¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ÁªÂò¤· ¤¿¥¢¥ë¥´¥ê¥º¥à¤Ç 1.E-14 ¤ÎÈϰϤǼý«¤·¤Ê¤±¤ì¤Ð¡¢´Ø¿ô¤Ï NaN ¤òÊÖ¤·¡¢·Ù ¹ð¤òɽ¼¨¤·¤Þ¤¹¡£
Ê£ÁÇ´Ø¿ô¥µ¥Ý¡¼¥È¤¬¤Ê¤¤¾ì¹ç¤Ï¡¢ÄêµÁ°è¤Ï¼Â¿ô¤Î°ú¿ô¤Î a > 0, z >= 0 ¤ËÀ© ¸Â¤µ¤ì¤Þ¤¹¡£
ibeta (a, b, x) = ta-1(1 - t)b-1dt
°ú¿ô¤¬Ê£ÁÇ¿ô¤Î¾ì¹ç¡¢µõ¿ôÉôʬ¤Ï̵»ë¤·¤Þ¤¹¡£gnuplot ¤Ç¤Î¼ÂÁõ¤Ï¡¢Cephes ¥é¥¤¥Ö¥é¥ê [Moshier 1989, "Methods and Programs for Mathematical Functions", Prentice-Hall] ¤«¤é¤Î¥³¡¼¥É¤òÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£
rand(0) ÆâÉô¤Ë»ý¤Ä 2 ¤Ä¤Î 32bit ¤Î¼ï (seed) ¤Î¸½ºß¤ÎÃͤ«¤éÀ¸ À®¤µ¤ì¤ë³«¶è´Ö (0:1) Æâ¤Îµ¿»÷Íð¿ôÃͤòÊÖ¤¹ rand(-1) 2 ¤Ä¤Î¼ï¤ÎÃͤòɸ½àÃͤËÌ᤹ rand(x) 0 < x < 2^31-1 ¤ÎÀ°¿ô¤Ê¤é¼ï¤ÎξÊý¤ò x ¤ËÀßÄꤹ¤ë rand({x,y}) 0 < x,y < 2^31-1 ¤ÎÀ°¿ô¤Ê¤é seed1 ¤ò x ¤Ë seed2 ¤ò y ¤ËÀßÄꤹ¤ë
Ê£ÁÇÄêµÁ°è¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤ÎÆüì´Ø¿ô¤ò¡¢³°Éô¥é¥¤¥Ö¥é¥ê¤òÄ̤·¤ÆÄ󶡤·¤Þ¤¹¡£ ¤¢¤Ê¤¿¤¬»È¤Ã¤Æ¤¤¤ë gnuplot ¤¬¤³¤ì¤é¤Î¥é¥¤¥Ö¥é¥ê¤Ø¤Î¥ê¥ó¥¯¤Ê¤·¤Ç¥Ó¥ë¥É ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ÄêµÁ°è¤¬¼Â¿ô¤Î¾ì¹ç¤Î¤ß¥µ¥Ý¡¼¥È¤¹¤ë¤«¡¢¤Þ¤¿¤Ï´Ø¿ô¼«ÂÎ ¤òÁ´¤¯Ä󶡤·¤Ê¤¤¤«¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£
libcerf (http://apps.jcns.fz-juelich.de/libcerf) ¤òɬÍפȤ¹¤ë´Ø¿ô¤Ï¡¢ ¥Ó¥ë¥É»þ¤ÎÀßÄꥪ¥×¥·¥ç¥ó –with-libcerf ¤Ë°Í¸¤·¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç ¤¹¡£°Ê²¼»²¾È: cerf (15.3), cdawson (15.3), faddeeva (15.3), erfi (15.3), VP (15.3), VP_fwhm (15.3)¡£
¼Â¿ô¼¡ nu ¤ÈÊ£ÁÇ°ú¿ô¤ÎÊ£ÁÇ¥¨¥¢¥ê¡¼¡¢¥Ù¥Ã¥»¥ë¡¢¥Ï¥ó¥±¥ë´Ø¿ô¤Ï¡¢Douglas E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è¤Ã¤Æ¼ÂÁõ ¤µ¤ì¤¿¥ë¡¼¥Á¥ó¤ò´Þ¤à¥é¥¤¥Ö¥é¥ê¤òɬÍפȤ·¤Þ¤¹¡£¤³¤ì¤é¤Î¥ë¡¼¥Á¥ó¤Ï¡¢ netlib (http://netlib.sandia.gov) ¤ä¡¢libopenspecfun (https://github.com/JuliaLang/openspecfun) ¤Ë¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ËÂбþ¤¹ ¤ë¥Ó¥ë¥É»þ¤ÎÀßÄꥪ¥×¥·¥ç¥ó¤Ï –with-amos=<library directory> ¤Ç¤¹¡£ °Ê²¼»²¾È: Ai (15.3.3), Bi (15.3.3), BesselJ (15.3.4), BesselY (15.3.4), BesselI (15.3.4), BesselK (15.3.4), Hankel (15.3.4)¡£ Ê£ÁǻؿôÀÑʬ¤Ï¡¢netlib, libamos ¤Ç¤ÏÄ󶡤·¤Æ¤¤¤Þ¤¹¤¬¡¢libopenspecfun ¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼»²¾È: expint (15.3.5)¡£
F(x) = xK5/3() d ¤³¤³¤Ç¡¢K5/3 ¤ÏÂè 2 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô¡£
1.E-15 ¤Þ¤ÇÀµ³Î¤Ê¶á»÷¤Î Chebyshev ·¸¿ô¤Ï¡¢MacLead (2000) NuclInstMethPhysRes A443:540-545 ¤«¤éºÎÍѤ·¤Æ¤¤¤Þ¤¹¡£
standard = 0 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï ISO 8601 ½µÍËÆüµ¬Â§¤Ç¤Î½µÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤Î»þ¹ï½ñ¼° %W ¤ËÂбþ¤·¤Þ¤¹¡£ standard = 1 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï CDC (¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼) ±Ö³ØŪ ½µÍËÆüµ¬Â§ (¡Ö±Ö³ØŪ½µ¡×) ¤Ç¤Î½µÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤Î»þ¹ï½ñ¼° %U ¤ËÂбþ¤·¤Þ¤¹¡£ ¤³¤ì¤é¤ËÂбþ¤¹¤ë¡¢½µÍËÆü¤«¤é¥«¥ì¥ó¥À¡¼»þ¹ï¤ËÊÑ´¹¤¹¤ëµÕ´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: weekdate_iso (15.3.17.5), weekdate_cdc (15.3.17.6)¡£
²òÀâ: ISO ¤Î YYYY ǯ¤Î 1 È֤νµ¤Ï¡¢YYYY ǯ 1 ·î 1 ¤Ë°ìÈֶᤤ·îÍËÆü¤«¤é »Ï¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢Á°¤Îǯ¤Ë¤Ê¤ë²ÄǽÀ¤â¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢2008 ǯ 12 ·î 30 Æü²ÐÍËÆü¤Ï¡¢ISO ¤Î½µÍËÆü¤Ç¤Ï 2009-W01-2 (2009 ǯ¤Î½µÈÖ¹æ 1 ¤ÎÂè 2 Æü) ¤È¤Ê¤ê¤Þ¤¹¡£µÕ¤Ë¡¢1 ·î¤Î 1 Æü¤«¤é 3 Æü¤Þ¤Ç¤Ï¡¢ISO ¤Î½µÈÖ¹æ 1 ¤Î ·îÍˤè¤êÁ°¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤¨¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤³¤ì¤é¤ÎÆü¤Ï¡¢Á°¤Îǯ¤ÎºÇ¸å ¤Î½µÈÖ¹æ¤Î½µ¤Ë´Þ¤Þ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢2021 ǯ 1 ·î 1 Æü¶âÍËÆü ¤Ï¡¢ISO ¤Î½µÍËÆü¤Ç¤Ï 2020-W53-5 ¤Ç¤¹¡£
¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼ (CDC) ¤ÎÄê¤á¤ë±Ö³ØŪ½µ¤Ï¡¢Æ±ÍͤνµÍËÆüµ¬ §¤Ç¤¹¤¬¡¢ISO µ¬Â§¤È¤Ï¡¢·îÍ˳«»Ï¤Ç¤Ï¤Ê¤¯¡¢ÆüÍ˳«»Ï¤Ç¤¢¤ë¤È¤³¤í¤¬°ã¤¤¤Þ ¤¹¡£
time = weekdate_iso( year, week [, day] )
¤³¤Î´Ø¿ô¤Ï¡¢ISO 8601 ½µÍËÆü¤Ç¤Î year(À¾Îñ), week(½µÈÖ¹æ), day(ÆüÈÖ¹æ) ¤ÎÍ×ÁǤò¡¢Unix ¥¨¥Ý¥Ã¥¯¤Î 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤Ç¤Î¥«¥ì¥ó¥À¡¼»þ ¹ï¤ËÊÑ´¹¤·¤Þ¤¹¡£½µÍËÆü·Ï¤Ç¤Î̾Ìܾå¤Îǯ (year) ¤Ï¡¢¥«¥ì¥ó¥À¡¼¤Ç¤Îǯ¤Èɬ ¤º¤·¤â°ìÃפ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£½µÈÖ¹æ week ¤Ï 1 ¤«¤é 53 ¤Î´Ö ¤ÎÀ°¿ô¤Ç¤¹¡£ÆüÈÖ¹æ day ¤Ï¥ª¥×¥·¥ç¥ó¤Ç¡¢¤½¤ì¤¬ 0 ¤«¤Þ¤¿¤Ï¾Êά¤·¤¿¾ì¹ç¤Ï ¤½¤Î½µ¤Î³«»Ï»þ¹ï¤òÊÖ¤·¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð day ¤Ï 1 (·îÍË) ¤«¤é 7 (ÆüÍË) ¤Þ¤Ç¤ÎÀ°¿ô¤Ç¤¹¡£ ¥«¥ì¥ó¥À¡¼Æü¤ò¡¢ISO µ¬Â§¤Ç¤Î½µÈÖ¹æ¤ËÊÑ´¹¤¹¤ëµÕ´Ø¿ô¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: tm_week (15.3.17.4)¡£
Îã:
# 1 ÎóÌÜ¤Ë ISO ½µÈÖ¹æ¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤ÎÉÁ²è # ½µ ´¶À÷¼Ô »àË´¼Ô # 2020-05 432 1 calendar_date(w) = weekdate_iso( int(w[1:4]), int(w[6:7]) ) set xtics time format "%b\n%Y" plot FILE using (calendar_date(strcol(1))) : 2 title columnhead
time = weekdate_cdc( year, week [, day] )
¤³¤Î´Ø¿ô¤Ï¡¢CDC/MMWR (¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼/±Ö³Ø½µÊó) ¤Î±Ö³ØŪ ½µÍËÆü¤Ç¤Î year(À¾Îñ), week(½µÈÖ¹æ), day(ÆüÈÖ¹æ) ¤ÎÍ×ÁǤò¡¢Unix ¥¨¥Ý¥Ã ¥¯¤Î 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤Ç¤Î¥«¥ì¥ó¥À¡¼»þ¹ï¤ËÊÑ´¹¤·¤Þ¤¹¡£CDC ½µ ÍËÆüµ¬Â§¤Ï¡¢ISO µ¬Â§¤È¤Ï¡¢½µ¤¬ 1 = ÆüÍˤ«¤é 7 = ÅÚÍˤޤǡ¢¤ÈÄêµÁ¤µ¤ì¤Æ ¤¤¤ëÅÀ¤Ë°ã¤¤¤¬¤¢¤ê¤Þ¤¹¡£3 ÈÖÌܤΥѥé¥á¡¼¥¿¤¬ 0 ¤Þ¤¿¤Ï¾Êά¤·¤¿¾ì¹ç¤Ï¡¢ ¤½¤Î½µ¤Î³«»Ï»þ¹ï¤¬ÊÖ¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: tm_week (15.3.17.4), weekdate_iso (15.3.17.5)¡£
uigamma (a, z) = Q(a, x) = 1 - P(a, x) = ta-1e-tdt
¸½ºß¤Î¼ÂÁõ¤Ï¡¢Cephes library (Moshier 2000) ¤Ë¤è¤ë¤â¤Î¤Ç¤¹¡£ÄêµÁ°è¤Ï¡¢ ¼Â¿ô¤Î a>0, ¼Â¿ô¤Î x>=0 ¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ »î¸³Ãʳ¬: ¤½¤Î¤¦¤Á¤ËÊ£ÁÇ°ú¿ô¤ò½èÍý¤¹¤ë¼ÂÁõ¤ËÃÖ¤´¹¤¨¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£
set datafile columnheader plot for [i=2:4] DATA using 1:i title columnhead(i)
Îã:
# È¢¤Î¤¢¤ëǧ¼±¤Ç¤¤Ê¤¤Ãͤò¡¢Ìµ»ë¤¹¤ëÂå¤ï¤ê¤Ë¡¢´üÂÔÃͤǤ¢¤ëÄê¿ô # prior ¤È¤·¤Æ¡¢È¢Á´ÂΤ˴óÍ¿¤¹¤ë¤è¤¦¤Ë°·¤¦¡£ plot DATA using 1 : (valid(2) ? $2 : prior) smooth unique
words("string") ¤Ï¡¢Ê¸»úÎó (string) ¤Îñ¸ì¿ô¤òÊÖ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ words(" a b c d") ¤Ï 4 ¤òÊÖ¤·¤Þ¤¹¡£
´Ø¿ô word ¤È words ¤Ï¡¢Ã±°ì°úÍÑÉä¡¢Æó½Å°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤â¡¢ ¸ÂÄêŪ¤Ç¤¹¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:
print words("\"double quotes\" or 'single quotes'") # 3
³«»Ï°úÍÑÉä¤ÎÁ°¤Ï¡¢¥¹¥Ú¡¼¥¹¤«¡¢¤Þ¤¿¤Ïʸ»úÎó¤ÎÀèƬ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢Ã±¸ìÆâ¡¢¤¢¤ë¤¤¤Ïñ¸ì½ª¤ï¤ê¤Ë¤Ä¤¯¥¢¥Ý¥¹¥È¥í¥Õ¥£¡¼ (') ¤Ï¡¢¤½¤ì ¤¾¤ì¤Îñ¸ì¤ÎÍ×ÁǤǤ¢¤ë¤È¸«¤Ê¤µ¤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹:
print words("Alexis' phone doesn't work") # 4
°úÍÑÉäʸ»ú¤Î¥¨¥¹¥±¡¼¥×¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤Î¤Ç¡¢¤¢¤ë°úÍÑÉä¤ò°Ý»ý¤·¤¿ ¤¤¾ì¹ç¤Ï¡¢¤½¤ì¤¾¤ì¤òÊ̤μïÎà¤Î°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó:
s = "Keep \"'single quotes'\" or '\"double quotes\"'" print word(s, 2) # 'single quotes' print word(s, 4) # "double quotes"
ºÇ¸å¤ÎÎã¤Ç¤Ï¡¢°úÍÑÉä¤Î¥¨¥¹¥±¡¼¥×¤¬Ê¸»úÎó¤ÎÄêµÁ»þ¤Î¤ß¤ËɬÍפǤ¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
split("string", "sep") ¤Ï¡¢ split("string", "sep") ¤Ï¡¢"sep" Æâ¤Îʸ»ú¤ò¥Õ¥£¡¼¥ë¥É¤Î¶èÀÚ¤ê¤È¤·¤Æ »ÈÍѤ·¡¢Ê¸»úÎó "string" ¤ÎÃæ¿È¤ò¸Ä¡¹¤Î¥Õ¥£¡¼¥ë¥É¤ËÀÚ¤êʬ¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢ ¤½¤ÎÍ×ÁǤ¬¸µ¤Îʸ»úÎó¤Î¥Õ¥£¡¼¥ë¥É¤Ë¤½¤ì¤¾¤ìÂбþ¤¹¤ëʸ»úÎó¤ÎÇÛÎó¤òÊÖ¤·¤Þ ¤¹¡£2 ¤ÄÌܤΥѥé¥á¡¼¥¿ "sep" ¤Ï¥ª¥×¥·¥ç¥ó¤Ç¡¢"sep" ¤ò¾Êά¤·¤¿¾ì¹ç¡¢¤Þ ¤¿¤Ï¶õÇòʸ»ú°ì¤Ä¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥Õ¥£¡¼¥ë¥Éʸ»úÎó¤òǤ°Õ¸Ä¤Î¥Û¥ï¥¤¥È¥¹¥Ú¡¼ ¥¹ (¥¹¥Ú¡¼¥¹¡¢¥¿¥Ö¡¢²þ¥Ú¡¼¥¸¡¢²þ¹Ô¡¢Éüµ¢) ¤ÇÀÚ¤êʬ¤±¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì ¹ç¤Ï¡¢¶èÀÚ¤ê¤Ï "sep" Æâ¤Î´°Á´¤Êʸ»úÎó¤Ë¥Þ¥Ã¥Á¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
°Ê²¼¤Î 3 ¤Ä¤ÎÎã¤Ï¡¢¤¤¤º¤ì¤âÇÛÎó [ "A", "B", "C", "D" ] ¤òÀ¸À®¤·¤Þ¤¹¡£
t1 = split( "A B C D" ) t2 = split( "A B C D", " ") t3 = split( "A;B;C;D", ";")
¤·¤«¤·¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É
t4 = split( "A;B; C;D", "; " )
¤Ï¡¢2 ¤Ä¤Îʸ»úÎó¤Î¤ß¤ò»ý¤ÄÇÛÎó [ "A;B", "C;D" ] ¤òÀ¸À®¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢ 2 ʸ»ú¤Î¥Õ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»úÎó "; " ¤¬ 1 ¤Ä¤·¤«¸«¤Ä¤«¤é¤Ê¤¤¤«¤é¤Ç¤¹¡£
Ãí°Õ: ʸ»úÎó¤ò¡¢1 ʸ»ú¤º¤Ä¤ÎÇÛÎó¤ËÊݸ¤¹¤ë¤¿¤á¤Ë¡¢¶èÀÚ¤ê¤È¤·¤Æ¶õʸ»ú¤ò ÀßÄꤹ¤ë¤³¤È¤Ï¡¢¸½ºß¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢Âå¤ï¤ê¤Ë 1 ʸ»ú¤ÎÉô ʬʸ»úÎó¤ò»È¤¦¤³¤È¤Ç¼Â¸½¤Ç¤¤Þ¤¹: Array[i] = "string"[i:i]
join(array, "sep") ¤Ï¡¢ÇÛÎó¤Îʸ»úÎóÍ×ÁǤò¡¢"sep" ¤Îʸ»úÎó¤Ç¶èÀÚ¤é¤ì ¤¿¥Õ¥£¡¼¥ë¥É¤ÎÎó¤È¤·¤Æ°ì¤Ä¤Îʸ»úÎó¤ËÏ¢·ë¤·¤Þ¤¹¡£Ê¸»úÎó¤Ç¤Ê¤¤ÇÛÎóÍ×ÁǤϡ¢ ¶õ¤Î¥Õ¥£¡¼¥ë¥É¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ÎµÕ¤Ë split ´Ø¿ô¤Ï°ì¤Ä¤Îʸ»úÎó¤òÊ£¿ô ¤Î¥Õ¥£¡¼¥ë¥É¤ËÀÚ¤êʬ¤±¤Æ°ì¤Ä¤ÎÇÛÎó¤òÀ¸À®¤·¤Þ¤¹¡£ Îã:
array A = ["A", "B", , 7, "E"] print join(A,";") A;B;;;E
trim(" padded string ") ¤Ï¡¢¸µ¤Îʸ»úÎó¤ÎÁ°¸å¤Ë¤¢¤ë¶õÇòÉôʬ¤ò¼è¤ê½ü ¤¤¤¿Ê¸»úÎó¤òÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Í¾·×¤Ê¶õÇò¤ò»ý¤Á¤¦¤ëÆþÎϥǡ¼¥¿Îó¤Îʸ»úÎó Ʊ»Î¤òÈæ³Ó¤¹¤ëºÝ¤ËÍÍѤǤ¹¡£Îã:
plot FOO using 1:( trim(strcol(3)) eq "A" ? $2 : NaN )
¤³¤Î¼ÂÁõ¤Ï¡¢P. Borwein [2000] Canadian Mathematical Society Conference Proceedings ¤Ç¥¢¥ë¥´¥ê¥º¥à 3 ¤È¤·¤Æµ½Ò¤µ¤ì¤Æ¤¤¤ë¿¹à¼°µé¿ô¤ò»ÈÍѤ·¤Æ ¤¤¤Þ¤¹¡£Ì¾Ìܾå¤ÎÀºÅ٤ϡ¢Ê£ÁÇÊ¿Ì̾å¤Ç 1.e-16 ¤Ç¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¡¢¥¼¡¼ ¥¿´Ø¿ô¤Î¼«ÌÀ¤Ç¤Ê¤¤ÎíÅÀ¤¬´°Á´¤Ë 0 ¤Èɾ²Á¤µ¤ì¤ë¤³¤È¤òÊݾڤϤ·¤Þ¤»¤ó¡£
±é»»»Ò¤ÎÍ¥Àè½ç°Ì¤Ï Fortran ¤ä C ¤ÈƱ¤¸¤Ç¤¹¡£¤½¤ì¤é¤Î¸À¸ìƱÍÍ¡¢±é»»¤Îɾ ²Á¤µ¤ì¤ë½ç½ø¤òÊѤ¨¤ë¤¿¤á¤Ë¤«¤Ã¤³¤¬»È¤ï¤ì¤Þ¤¹¡£¤è¤Ã¤Æ -2**2 = -4 ¤Ç¡¢ (-2)**2 = 4 ¤Ç¤¹¡£
ñ¹à±é»»»Ò | ||
µ¹æ | Îã | ÀâÌÀ |
- |
-a |
¥Þ¥¤¥Ê¥¹Éä¹æ |
+ |
+a |
¥×¥é¥¹Éä¹æ (²¿¤â¤·¤Ê¤¤) |
~ |
~a |
* 1 ¤ÎÊä¿ô (¥Ó¥Ã¥Èȿž) |
! |
!a |
* ÏÀÍýŪÈÝÄê |
! |
a! |
* ³¬¾è |
$ |
$3 |
* `using` »ØÄê¾å¤Î¥Ç¡¼¥¿Îó |
| |
|A| |
ÇÛÎó A ¤ÎÍ×ÁÇ¿ô |
ÀâÌÀ¤ËÀ±°õ (*) ¤Î¤Ä¤¤¤¿±é»»»Ò¤Î°ú¿ô¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
³¬¾è±é»»»Ò¤Ï¡¢N! ¤¬½½Ê¬¾®¤µ¤±¤ì¤Ð (64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤Ï N <= 20) À°¿ô¤òÊÖ ¤·¡¢Âç¤¤Ê N ¤ÎÃͤËÂФ·¤Æ¤Ï¼Â¿ô¤Ç¤Î¶á»÷ÃͤòÊÖ¤·¤Þ¤¹¡£
´ð¿ô¥ª¥Ú¥ì¡¼¥¿ |...| ¤Ï¡¢ÇÛÎó A ¤ÎÍ×ÁÇ¿ô |A| ¤òÊÖ¤·¤Þ¤¹¡£¥Ç¡¼¥¿¥Ö¥í¥Ã ¥¯ $DATA ¤ËŬÍѤ·¤¿¾ì¹ç¤Ï¡¢|$DATA| ¤Ï¥Ç¡¼¥¿¹Ô¿ô¤òÊÖ¤·¤Þ¤¹¡£
Æó¹à±é»»»Ò | ||
µ¹æ | Îã | ÀâÌÀ |
** |
a**b |
Îß¾è |
* |
a*b |
ÀÑ |
/ |
a/b |
¾¦ |
% |
a%b |
* ;¤ê |
+ |
a+b |
ÏÂ |
- |
a-b |
º¹ |
== |
a==b |
Åù¤·¤¤ |
!= |
a!=b |
Åù¤·¤¯¤Ê¤¤ |
< |
a<b |
¤è¤ê¾®¤µ¤¤ |
<= |
a<=b |
°Ê²¼ |
> |
a>b |
¤è¤êÂ礤¤ |
>= |
a>=b |
°Ê¾å |
<< |
0xff<<1 |
Éä¹æ¤Ê¤·º¸¥·¥Õ¥È |
>> |
0xff>>1 |
Éä¹æ¤Ê¤·±¦¥·¥Õ¥È |
& |
a&b |
* ¥Ó¥Ã¥ÈÀÑ (AND) |
^ |
a^b |
* ¥Ó¥Ã¥ÈÇÓ¾ŪÏÀÍýÏ (XOR) |
| |
a|b |
* ¥Ó¥Ã¥ÈÏ (OR) |
&& |
a&&b |
* ÏÀÍýŪ AND |
|| |
a||b |
* ÏÀÍýŪ OR |
= |
a = b |
ÂåÆþ |
, |
(a,b) |
Îß¼¡É¾²Á |
. |
A.B |
ʸ»úÎó¤ÎÏ¢·ë |
eq |
A eq B |
ʸ»úÎó¤¬Åù¤·¤¤ |
ne |
A ne B |
ʸ»úÎó¤¬Åù¤·¤¯¤Ê¤¤ |
ÀâÌÀ¤ËÀ±°õ (*) ¤Î¤Ä¤¤¤¿±é»»»Ò¤Î°ú¿ô¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ Âçʸ»ú¤Î A,B ¤Ï±é»»»Ò¤¬Ê¸»úÎó°ú¿ô¤òÍ׵᤹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
ÏÀÍý±é»»»Ò¤Î AND (&&) ¤È OR (||) ¤Ï C ¸À¸ìƱÍͤËɬÍ׺Ǿ®¸Â¤Îɾ²Á¤·¤«¤· ¤Þ¤»¤ó¡£¤¹¤Ê¤ï¤Á¡¢&& ¤ÎÂè 2 °ú¿ô¤Ï¡¢Âè 1 °ú¿ô¤¬µ¶¤Ê¤é¤Ðɾ²Á¤µ¤ì¤Þ¤» ¤ó¤·¡¢|| ¤ÎÂè 2 °ú¿ô¤Ï¡¢Âè 1 °ú¿ô¤¬¿¿¤Ê¤é¤Ðɾ²Á¤µ¤ì¤Þ¤»¤ó¡£
Îß¼¡É¾²Á (,) ¤Ï¡¢¥«¥Ã¥³¤ÎÃæ¤Ç¤Î¤ßɾ²Á¤µ¤ì¡¢º¸¤«¤é±¦¤Ø½ç¤Ë¼Â¹Ô¤¹¤ë¤³¤È ¤¬Êݾڤµ¤ì¡¢ºÇ¤â±¦¤Î¼°¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡£
»°¹à±é»»»Ò | ||
µ¹æ | Îã | ÀâÌÀ |
?: |
a?b:c |
»°¹à±é»»»Ò |
»°¹à±é»»»Ò¤Ï C ¤Î¤â¤Î¤ÈƱ¤¸Æ¯¤¤ò¤·¤Þ¤¹¡£ºÇ½é¤Î°ú¿ô (a) ¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó¡£¤³¤ÎÃͤ¬É¾²Á¤µ¤ì¡¢¤½¤ì¤¬¿¿ (¥¼¥í¤Ç¤Ê¤¤) ¤Ê¤é¤Ð 2 ÈÖÌܤΠ°ú¿ô (b) ¤¬É¾²Á¤µ¤ì¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 3 ÈÖÌܤΰú¿ô (c) ¤¬ ɾ²Á¤µ¤ì¡¢¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡£
»°¹à±é»»»Ò¤Ï¡¢¶èʬŪ¤ËÄêµÁ¤µ¤ì¤¿´Ø¿ô¤ä¡¢¤¢¤ë¾ò·ï¤¬Ëþ¤¿¤µ¤ì¤¿¾ì¹ç¤Ë¤Î¤ß ÅÀ¤òÉÁ²è¤¹¤ë¡¢¤È¤¤¤Ã¤¿¤³¤È¤ò¹Ô¤Ê¤¦¾ì¹ç¤ËÍÍѤǤ¹¡£
Îã:
0 <= x < 1 ¤Ç¤Ï sin(x) ¤Ë¡¢1 <= x < 2 ¤Ç¤Ï 1/x ¤ËÅù¤·¤¯¤Æ¡¢¤½¤ì°Ê³°¤Î x ¤Ç¤ÏÄêµÁ¤µ¤ì¤Ê¤¤´Ø¿ô¤òÉÁ²è:
f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0 plot f(x)
gnuplot ¤ÏÉÁ²è»þ¤Ï̤ÄêµÁÃͤËÂФ·¤Æ¤Ï²¿¤âɽ¼¨¤»¤º¤Ë¤¿¤À̵»ë¤¹¤ë¤Î¤Ç¡¢ ºÇ¸å¤Î¾ì¹ç¤Î´Ø¿ô (1/0) ¤ÏÅÀ¤òÁ´¤¯½ÐÎϤ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤Þ ¤¿¡¢¤³¤Î´Ø¿ôÉÁ²è¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤¬ lines (ÀþÉÁ²è) ¤Î¾ì¹ç¡¢ÉÔϢ³ÅÀ (x=1) ¤Î½ê¤âϢ³´Ø¿ô¤È¤·¤ÆÀþ¤¬·ë¤Ð¤ì¤ë¤³¤È¤Ë¤âÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ÎÅÀ¤òÉÔÏ¢ ³¤Ë¤Ê¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢´Ø¿ô¤ò 2 ¤Ä¤ÎÉôʬ¤½¤ì¤¾¤ì¤Ëʬ¤±¤Æ¤¯¤À¤µ¤¤¡£
¥Õ¥¡¥¤¥ë 'file' ¤Î¥Ç¡¼¥¿¤Ç¡¢4 ÎóÌܤΥǡ¼¥¿¤¬Éé¤Ç¤Ê¤¤¤È¤¤À¤±¡¢1 ÎóÌܤΠ¥Ç¡¼¥¿¤Ë´Ø¤¹¤ë 2 ÎóÌÜ¤È 3 ÎóÌܤΥǡ¼¥¿¤ÎÊ¿¶ÑÃͤòÉÁ²è:
plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )
using ¤Î½ñ¼°¤ÎÀâÌÀ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: plot datafile using (99.3.11)¡£
sum [<var> = <start> : <end>] <expression>
¤³¤³¤Ç <var> ¤Ï¡¢<start> ¤«¤é <end> ¤Þ¤Ç¤ÎÀ°¿ôÃͤò½ç¤Ë¼è¤ëÀ°¿ôÊÑ¿ô¤È¤· ¤Æ°·¤ï¤ì¤Þ¤¹¡£¤½¤Î³ÆÃͤËÂФ·¤Æ¡¢¼° <expression> ¤ÎÃͤ¬¹ç·×ÃͤËÄɲ䵤졢 ºÇ½ªÅª¤Ê¹ç·×Ãͤ¬¤³¤ÎÏ¤μ°¤ÎÃͤȤʤê¤Þ¤¹¡£ Îã:
print sum [i=1:10] i 55. # °Ê²¼¤Ï plot 'data' using 1:($2+$3+$4+$5+$6+...) ¤ÈƱÅù plot 'data' using 1 : (sum [col=2:MAXCOL] column(col))
<expression> ¤Ï¡¢É¬¤º¤·¤âÊÑ¿ô <var> ¤ò´Þ¤àɬÍפϤ¢¤ê¤Þ¤»¤ó¡£<start> ¤È <end> ¤ÏÊÑ¿ôÃͤä¿ô¼°¤Ç»ØÄê¤â¤Ç¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤ÎÃͤÏưŪ¤ËÊѹ¹¤¹¤ë¤³¤È ¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤¦¤Ç¤Ê¤¤¤ÈÉûºîÍѤ¬µ¯¤³¤êÆÀ¤Þ¤¹¡£<end> ¤¬ <start> ¤è¤ê ¾®¤µ¤¤¾ì¹ç¤Ï¡¢Ï¤ÎÃÍ¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£
Îã: ÅÀ [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
Æɤ߽Ф·ÀìÍÑÊÑ¿ô GPVAL_ERRNO ¤Ï¡¢Ç¤°Õ¤Î gnuplot ¥³¥Þ¥ó¥É¤¬¤¢¤ë¥¨¥é¡¼¤Î ¤¿¤á¤ËÁ᤯½ª¤ï¤Ã¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Ë 0 ¤Ç¤Ê¤¤Ãͤ˥»¥Ã¥È¤µ¤ì¡¢Ä¾Á°¤Î¥¨¥é¡¼ ¥á¥Ã¥»¡¼¥¸¤Ïʸ»úÎóÊÑ¿ô GPVAL_ERRMSG ¤ËÊݸ¤µ¤ì¤Þ¤¹¡£GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Ï¡¢¥³¥Þ¥ó¥É reset errors ¤ò»È¤Ã¤Æ¥¯¥ê¥¢¤Ç¤¤Þ¤¹¡£
mouse µ¡Ç½¤¬»È¤¨¤ëÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ï¡¢"MOUSE_" ¤Ç»Ï¤Þ¤ëÆɤ߽Ф·ÀìÍÑ ÊÑ¿ô¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: mouse variables (22.2)¡£
fit µ¡Ç½¤Ï¡¢"FIT_" ¤Ç»Ï¤Þ¤ë¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤ò»ÈÍѤ·¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤è¤¦ ¤Ê̾Á°¤ò»È¤¦¤Î¤ÏÈò¤±¤ë¤Ù¤¤Ç¤·¤ç¤¦¡£set fit errorvariables ¤ò»ÈÍѤ¹ ¤ë¤È¡¢³ÆÅö¤Æ¤Ï¤áÊÑ¿ô¤Î¥¨¥é¡¼¤Ï¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿Ì¾¤Ë "_err" ¤òÄɲä·¤¿ÊÑ ¿ô¤ËÊݸ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: fit (88)¡£
°Ê²¼¤â»²¾È: user-defined variables (15.7), reset errors (109), mouse variables (22.2), fit (88)¡£
¥æ¡¼¥¶ÄêµÁ´Ø¿ô½ñ¼°:
<func-name>( <dummy1> {,<dummy2>} ... {,<dummy12>} ) = <expression>
¤³¤³¤Ç <expression> ¤Ï¡¢²¾ÊÑ¿ô <dummy1> ¤«¤é <dummy12> ¤Çɽ¤µ¤ì¤ë¿ô¼° ¤Ç¤¹¡£¤³¤Î·Á¼°¤Î´Ø¿ôÄêµÁ¤Ï¡¢1 ¹Ô¤Ç¤Î»ÈÍѤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤è¤êÊ£»¨¤Ç Ê£¿ô¹Ô¤«¤é¤Ê¤ë´Ø¿ô¤Ï¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤Î»ÅÁȤߤò»È¤¨¤ÐÄêµÁ¤Ç¤¤Þ¤¹ (¸½¥Ð¡¼ ¥¸¥ç¥ó¤Ç¤Î¿·µ¡Ç½)¡£°Ê²¼»²¾È: function blocks (89)¡£
¥æ¡¼¥¶ÄêµÁÊÑ¿ô½ñ¼°:
<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 ¹Ô¤ÎÎã¤Ï¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎóÊÑ¿ô¤È¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎó´Ø¿ô¤ò°ÕÌ£ ¤·¤Æ¤¤¤Þ¤¹¡£
ÊÑ¿ô pi (3.14159...) ¤È NaN (IEEE Èó¿ô ("Not a Number")) ¤Ï¤¢¤é¤« ¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤¬É¬Íפʤ±¤ì¤Ð¡¢Â¾¤Î¤â¤Î¤ËºÆÄêµÁ¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¤·¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¸µ¤ÎÃͤËÉüµ¢¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹:
NaN = GPVAL_NaN pi = GPVAL_pi
¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤¬¡¢Î㤨¤ÐÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ç¤Î¥Þ¥¦¥¹Áàºî¤äÅö¤Æ¤Ï¤á (fit) ¤Ê¤É¤Î gnuplot ¤ÎÆ°ºî¾õÂ֤˱þ¤¸¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï °Ê²¼»²¾È: gnuplot-defined variables (15.6)¡£
¤¢¤ëÊÑ¿ô V ¤¬´û¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ï¡¢¼° exists("V") ¤Ç¥Á¥§¥Ã¥¯¤Ç ¤¤Þ¤¹¡£Îã:
a = 10 if (exists("a")) print "a is defined" if (!exists("b")) print "b is not defined"
ÊÑ¿ô̾¤ä´Ø¿ô̾¤Î̿̾µ¬Â§¤Ï¡¢ÂçÄñ¤Î¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤ÈƱ¤¸¤Ç¡¢ÀèƬ¤Ï¥¢ ¥ë¥Õ¥¡¥Ù¥Ã¥È¤Ç¡¢¤½¤Î¸å¤Îʸ»ú¤Ï¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¡¢¿ô»ú¡¢"_" ¤¬»È¤¨¤Þ¤¹¡£
³Æ´Ø¿ô¤ÎÄêµÁ¼°¤Ï¡¢'GPFUN_' ¤È¤¤¤¦ÀÜƬ¼¤ò»ý¤ÄÆÃÊ̤Êʸ»úÎóÃÍÊÑ¿ô¤È¤·¤Æ ÍøÍѤǤ¤Þ¤¹¡£
Îã:
set label GPFUN_sinc at graph .05,.95
°Ê²¼»²¾È: show functions (114.2), functions (99.4), gnuplot-defined variables (15.6), macros (29.2), value (15.3.20)¡£
ÇÛÎó A ¤ÎÍ×ÁÇ¿ô¤Ï¡¢¿ô¼° |A| ¤Ç¼èÆÀ¤Ç¤¤Þ¤¹¡£
Îã:
array A[6] A[1] = 1 A[2] = 2.0 A[3] = {3.0, 3.0} A[4] = "four" A[6] = A[2]**3 array B[6] = [ 1, 2.0, A[3], "four", , B[2]**3 ] array C = split("A B C D E F")
do for [i=1:6] { print A[i], B[i] } 1 1 2.0 2.0 {3.0, 3.0} {3.0, 3.0} four four <undefined> <undefined> 8.0 8.0
Ãí°Õ: ÇÛÎó¤ÈÊÑ¿ô¤Ï¡¢Æ±¤¸Ì¾Á°¶õ´Ö¤ò¶¦Í¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¤¢¤é¤«¤¸¤á FOO ¤È¤¤¤¦Ì¾Á°¤ÎÇÛÎ󤬤¢¤ë¾ì¹ç¡¢FOO ¤È¤¤¤¦Ì¾Á°¤ÎÊÑ¿ô¤Ëʸ»úÎó¤ò³ä¤êÅö¤Æ¤ë¤È ÇÛÎó¤òÇ˲õ¤·¤Þ¤¹¡£
ÇÛÎó¤Î̾Á°¤ò plot, splot, fit, stats ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤ë¤³¤È¤â¤Ç ¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢ÇÛÎó¤Îź»ú¤¬¥Õ¥¡¥¤¥ë¤Î 1 ÎóÌܤÎÃÍ¤Ç (1 ¤«¤é size ¤Þ ¤Ç)¡¢¤½¤ÎÃÍ A[i] ¤Î¼Â¿ôÉôʬ real(A[i]) ¤¬¥Õ¥¡¥¤¥ë¤Î 2 ÎóÌÜ¡¢µõ¿ôÉôʬ imag(A[i]) ¤¬¥Õ¥¡¥¤¥ë¤Î 3 ÎóÌܤǤ¢¤ë¤è¤¦¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òÍ¿¤¨¤¿¤³¤È¤È ƱÅù¤Ë¤Ê¤ê¤Þ¤¹¡£
Îã:
array A[200] do for [i=1:200] { A[i] = sin(i * pi/100.) } plot A title "sin(x) in centiradians"
¤¿¤À¤·¡¢plot »þ¤ËÊ£ÁÇ¿ôÃÍÇÛÎó¤Îµõ¿ôÉôʬ¤òÉÁ²è¤·¤¿¤¤¾ì¹ç¡¢¤½¤ÎÃÍ¤Ï imag(A[$1]) ¤«¤Þ¤¿¤Ï $3 ¤È¤·¤Æ»²¾È¤Ç¤¤Þ¤¹¡£¤è¤Ã¤Æ°Ê²¼¤Î 2 ¤Ä¤Î¥³¥Þ¥ó ¥É¤ÏƱÅù¤Ç¤¹¡£
plot A using (real(A[$1])) : (imag(A[$1])) plot A using 2:3
dot(A,B) = (|A| != |B|) ? NaN : sum [i=1:|A|] A[i] * B[i]
ÇÛÎó¤ò¤ä¤ê¤È¤ê¤¹¤ëÁȤ߹þ¤ß´Ø¿ô¤Ë¤Ï¡¢ÇÛÎó¤Îʬ³äÁàºî array[min:max] ¤äź »ú¼èÆÀ´Ø¿ô index(Array,value) ¤¬¤¢¤ê¤Þ¤¹¡£
T = split("A B C D E F") U = T[3:4] print T [ "A", "B", "C", "D", "E", "F" ] print U [ "C", "D" ] print index( T, "D" ) 4
¤³¤ÎÎã¤Î T ¤È U ¤Ï¡¢¤½¤ì¤¬°ÊÁ°¤Ë¤É¤Î¤è¤¦¤ËÀë¸À¤µ¤ì¤Æ¤¤¤¿¤«¤É¤¦¤«¤Ë´Ø¤ï ¤é¤º¡¢¤³¤ÎÎã¤Î»þÅÀ¤Ç¤ÏÇÛÎó¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
array A = [ 4.0, 4, "4" ] print index( A, 4 ) 2 print index( A, 2.+2. ) 1 print index( A, "D4"[2:2] ) 3
°ì»þŪ¤Ë¡¢Î㤨¤Ð Adobe Symbol ¥Õ¥©¥ó¥È¤Î¤è¤¦¤ÊÆÃÊ̤ʥե©¥ó¥È¤ËÀÚ¤êÂؤ¨ ¤ë¤³¤È¤Ç¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤Ç¤Ï¤Ê¤¤µ¹æ¤òÆþ¤ì¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢¸½ºß¤Ï¡¢ UTF-8 ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò»ÈÍѤ·¤Æ¡¢Â¾¤Îʸ»ú¤ÈƱÍͤˤ½¤Îµ¹æ¤ò°·¤¦¤Î¤¬¤è ¤êÎɤ¤ÊýË¡¤Ç¤·¤ç¤¦¡£¤½¤Î¾¤Ë¡¢É¬Íפʵ¹æ¤Î Unicode ¥³¡¼¥É¥Ý¥¤¥ó¥È¤ò¡¢ ³Èĥʸ»úÎó¥â¡¼¥ÉÆâ¤Ç¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤È¤·¤Æ»ØÄꤹ¤ë¼ê¤â¤¢¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: encoding (112.27), unicode (13.1), locale (112.45), escape sequences (13.1)¡£
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢gnuplot ¤Ç°ìÈÌŪ¤Ê̾Á°¤ä¥µ¥¤¥º¤Ç¥Õ¥©¥ó¥È¤ò Í׵᤹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¡¢É¬Íפʤé¤Ð fontconfig ¤ËƱÅù¤Î¥Õ¥©¥ó¥È¤òÂåÍѤµ ¤»¤ë¤³¤È¤â¤Ç¤¤ë¤Î¤Ç¡¢Ä̾ï¤Ï¤³¤ì¤Ç½½Ê¬¤Ç¤·¤ç¤¦¡£°Ê²¼¤Ï¡¢Â¿Ê¬¤¤¤º¤ì¤âµ¡ ǽ¤·¤Þ¤¹:
set term pdfcairo font "sans,12" set term pdfcairo font "Times,12" set term pdfcairo font "Times-New-Roman,12"
set term png tiny
¿¤¯¤Î¥·¥¹¥Æ¥à¤Ç¡¢libgd ¤Ï¡¢fontconfig ¥Ä¡¼¥ë¤¬Ä󶡤¹¤ë°ìÈÌŪ¤Ê¥Õ¥©¥ó ¥È½èÍý¤â»ÈÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È: fontconfig (16.1)¡£ fontconfig ¤Î¤Ê¤¤¥·¥¹¥Æ¥à¾å¤Ç¤Ï¡¢ÂçÄñ Adobe ¥Õ¥©¥ó¥È (*.pfa) ¤È TrueType ¥Õ¥©¥ó¥È (*.ttf) ¤Ø¤Î¥¢¥¯¥»¥¹¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¥Õ¥©¥ó ¥È¼«¿È¤Î̾Á°¤Ç¤Ï¤Ê¤¯¡¢¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò¡¢"<face> {,<size>}" ¤Î ·Á¼°¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤³¤Ç¡¢<face> ¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î¥Õ¥ë¥Ñ¥¹Ì¾¤«¡¢¤Þ¤¿¤Ï´Ä¶ÊÑ¿ô GDFONTPATH ¤Ç»Ø¼¨¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î°ì¤Ä¤ÎÃæ¤Î¥Õ¥¡¥¤¥ë̾¤ÎÀèƬÉôʬ¡¢ ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¤è¤Ã¤Æ¡¢'set term png font "Face"' ¤Ï¡¢ <¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê>/Face.ttf ¤« <¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê>/Face.pfa ¤È¤¤¤¦¥Õ¥¡ ¥¤¥ë̾¤Î¥Õ¥©¥ó¥È¤òõ¤½¤¦¤È¤·¤Þ¤¹¡£Î㤨¤Ð¡¢GDFONTPATH ¤Ë /usr/local/fonts/ttf:/usr/local/fonts/pfa ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢°Ê²¼ ¤Î¥³¥Þ¥ó¥É¤Î 2 ¤Ä¤º¤Ä¤Ï¤¤¤º¤ì¤âƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹:
set term png font "arial" set term png font "/usr/local/fonts/ttf/arial.ttf" set term png font "Helvetica" set term png font "/usr/local/fonts/pfa/Helvetica.pfa"
¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤âƱ»þ¤Ë»ØÄꤹ¤ë¤Ë¤Ï:
set term png font "arial,11"
"set term" ¥³¥Þ¥ó¥É¤Ç¥Õ¥©¥ó¥È¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï´Ä¶ÊÑ¿ô GNUPLOT_DEFAULT_GDFONT ¤ò»²¾È¤·¤Þ¤¹¡£
PostScript ¥×¥ê¥ó¥¿¤äɽ¼¨¥½¥Õ¥È¤Ï¤¹¤Ù¤Æ¡¢É¸½àŪ¤Ê Adobe ¥Õ¥©¥ó¥È¥»¥Ã¥È Times-Roman, Helvetica, Courier, Symbol ¤ÏÃΤäƤ¤¤ë¤Ï¤º¤Ç¤¹¡£ ¿ʬ¤½¤Î¾¤Ë¤â¿¤¯¤Î¥Õ¥©¥ó¥È¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢¤½¤ì ¤éÆÃÄê¤Î¥Õ¥©¥ó¥È¥»¥Ã¥È¤Ï¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤ä¥×¥ê¥ó¥¿¤ÎÀßÄê¤Ë°Í¸¤·¤Þ¤¹¡£ gnuplot ¤Ï¡¢¤½¤ì¤ÏÃΤê¤Þ¤»¤ó¤·µ¤¤Ë¤â¤·¤Þ¤»¤ó¡£gnuplot ¤¬ºîÀ®¤·¤¿ *.ps ¤ä *.eps ½ÐÎϤϡ¢¤¢¤Ê¤¿¤ÎÍ׵ᤷ¤¿¥Õ¥©¥ó¥È̾¤òñ¤Ë»ý¤Ã¤Æ¤¤¤ë¤À¤±¤Ç¤¹¡£
¤è¤Ã¤Æ¡¢
set term postscript eps font "Times-Roman,12"
¤Ï¡¢¤¹¤Ù¤Æ¤Î¥×¥ê¥ó¥¿¤äɽ¼¨¥½¥Õ¥È¤ËŬÀڤʽÐÎϤòºîÀ®¤·¤Þ¤¹¡£
°ìÊý¡¢
set term postscript eps font "Garamond-Premier-Pro-Italic"
¤Ï¡¢Àµ¤·¤¤ PostScript ½ÐÎÏ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÆÃÊ̤ÊÀìÍÑ¥Õ¥© ¥ó¥È¤ò»²¾È¤·¤Æ¤¤¤ë¤Î¤Ç¡¢Í׵ᤵ¤ì¤¿¤½¤ÎÆÃÄê¤Î¥Õ¥©¥ó¥È¤Ï°ìÉô¤Î¥×¥ê¥ó¥¿¤ä ɽ¼¨¥½¥Õ¥È¤Ç¤·¤«É½¼¨¤Ç¤¤Ê¤¤¤Ç¤·¤ç¤¦¡£ÂçÄñ¤Î¾ì¹ç¤ÏÊ̤ʥե©¥ó¥È¤ÇÂåÍѤµ ¤ì¤Þ¤¹¡£
¤·¤«¤·¡¢»ØÄꤷ¤¿¥Õ¥©¥ó¥È¤ò½ÐÎÏ¥Õ¥¡¥¤¥ëÃæ¤ËËä¤á¹þ¤ó¤Ç¡¢¤É¤ó¤Ê¥×¥ê¥ó¥¿¤Ç ¤â¤½¤ì¤ò»È¤¦¤è¤¦¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤³¤ì¤Ë¤Ï¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤ËŬÀÚ ¤Ê¥Õ¥©¥ó¥Èµ½Ò¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¤³¤È¤¬É¬ÍפȤʤê¤Þ¤¹¡£¤³¤ÎÊýË¡¤Ç¥Õ¥©¥ó¥È¤ò Ëä¤á¹þ¤à¾ì¹ç¡¢ÆÃÄê¤Î¥é¥¤¥»¥ó¥¹¤¬É¬ÍפȤʤë¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤â¤¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è¤ê¾ÜºÙ¤ÊÀâÌÀ¤äÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: postscript fontfile (127.27.2)¡£
ÍѸì "½ÐÎÏ·Á¼° (terminal)" ¤Ï¡¢½ÐÎϥ⡼¥É¤Î¤³¤È¤ò°ÕÌ£¤·¡¢¤¢¤Ê¤¿¤¬¥¡¼ ¥Ü¡¼¥ÉÆþÎϤ¹¤ë¤â¤Î (¥¿¡¼¥ß¥Ê¥ë) ¤ò»Ø¤·¤Æ¤¤¤ë¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Î㤨¤Ð¡¢ ¥³¥Þ¥ó¥É set terminal pdf ¤Ï¡¢¤½¤Î¸å¤ÎÉÁ²è¥³¥Þ¥ó¥É¤¬ PDF ½ÐÎϤòÀ¸À® ¤¹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£Ä̾ï¤Ï¡¢¤½¤Î PDF ½ÐÎϤò½ñ¤½Ð¤¹¾ì½ê¤ò»ØÄꤹ¤ë¥³ ¥Þ¥ó¥É set output "filename" ¤ò°ì½ï¤Ë»È¤¦É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£
"¥Ú¡¼¥¸ (page)"¡¢"ɽ¼¨²èÌÌ (screen)"¡¢"¥¥ã¥ó¥Ð¥¹ (canvas)" ¤Ï¡¢ gnuplot ¤¬¥¢¥¯¥»¥¹²Äǽ¤ÊÎΰèÁ´ÂΤò»Ø¤·¤Þ¤¹¡£¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¤Ï¤½¤ì¤Ï¥¦ ¥£¥ó¥É¥¦Á´ÂΤò»Ø¤·¡¢¥×¥í¥Ã¥¿¤Ç¤Ï¡¢°ìËç¤Î»æÁ´ÂΤò»Ø¤·¤Þ¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ëµÄÏÀ¤Ç¤Ï¡¢ÍѸì "¹Ô (record)" ¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î°ì¹Ô ¤Îʸ»úÎ󡢤¹¤Ê¤ï¤Á¡¢²þ¹Ôʸ»ú¤ä¹ÔËöʸ»úƱ»Î¤Ë¶´¤Þ¤ì¤¿Ê¸»úÎó¤ò»Ø¤·¤Þ¤¹¡£ "ÅÀ (point)" ¤Ï¡¢°ì¹Ô¤«¤é¼è¤ê½Ð¤·¤¿°ì¤Ä¤Î¥Ç¡¼¥¿¤Ç¤¹¡£¥Ç¡¼¥¿¤Î "¥Ö¥í¥Ã¥¯ (block)" ¤Ï¡¢¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤¿Ï¢Â³¤·¤¿Ê£¿ô¤Î¹Ô¤«¤é¤Ê¤ë½¸¹ç¤Ç ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎµÄÏÀ¤ÎÃæ¤Ç "line" ¤¬»²¾È¤µ¤ì¤ë¾ì¹ç¤Ï¡¢¤³¤ì¤Ï¥Ö¥í¥Ã ¥¯¤ÎÉôʬ½¸¹ç¤ò»Ø¤·¤Þ¤¹¡£"¥Ç¡¼¥¿¤Î¥Ö¥í¥Ã¥¯ (data block)" ¤È¤¤¤¦¸ÀÍդϡ¢ ¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤Î̾Á°ÉÕ¤¥Ö¥í¥Ã¥¯¤ò»Ø¤¹¤Î¤Ë¤â»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: datablocks (18)¡£
¤â¤¦°ì¤Ä¤Ï¡¢¥Ò¥¢¥É¥¥å¥á¥ó¥È¤È¤·¤Æ̾Á°ÉÕ¤¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òÄêµÁ¤¹¤ëÊý Ë¡¤Ç¤¹¡£¤½¤Î̾Á°ÉÕ¤¤Î¥Ç¡¼¥¿¤Ï»Ä¤ë¤Î¤Ç¡¢Ê£¿ô¤Î plot ¥³¥Þ¥ó¥É¤Ç»²¾È¤Ç¤ ¤Þ¤¹¡£Îã:
$Mydata << EOD 11 22 33 first line of data 44 55 66 second line of data # ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ëƱÍÍ¥³¥á¥ó¥È¤âµ¡Ç½¤¹¤ë 77 88 99 EOD stats $Mydata using 1:3 plot $Mydata using 1:3 with points, $Mydata using 1:2 with impulses
¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Ì¾¤Ï¡¢Â¾¤ÎÊÑ¿ô¤È¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢ºÇ½é¤Îʸ»ú¤ò $ ¤Ë¤¹¤ëɬ Íפ¬¤¢¤ê¤Þ¤¹¡£¥Ç¡¼¥¿¤Î½ª¤ï¤ê¤Î¶èÀÚ¤ê (¾å¤ÎÎã¤Ç¤Ï EOD) ¤Ï¡¢Ç¤°Õ¤Î¥¢¥ë¥Õ ¥¡¥Ù¥Ã¥È¡¢¿ô»ú¤«¤é¤Ê¤ëʸ»úÎó¤Ç¹½¤¤¤Þ¤»¤ó¡£
¥Ç¡¼¥¿¤ò̾Á°ÉÕ¤¥Ö¥í¥Ã¥¯¤ËÊݸ¤¹¤ë¤«¤ï¤ê¤Ë¡¢¼Â¹Ô²Äǽ¥³¥Þ¥ó¥É¤òÊݸ¤¹¤ë ƱÍͤλÅÁȤߤˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: function blocks (89)¡£
¥³¥Þ¥ó¥É undefine ¤ò»È¤¨¤Ð¡¢Êݸ¤·¤¿Ì¾Á°ÉÕ¤¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òºï½ü¤Ç¤ ¤Þ¤¹¡£undefine $* ¤Ï¡¢¤¹¤Ù¤Æ¤Î̾Á°ÉÕ¤¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ò °ìÅ٤˺ï½ü¤·¤Þ¤¹¡£
set multiplot layout 2,2 fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x) do for [power = 0:3] { TERMS = 10**power set title sprintf("%g term Fourier series",TERMS) plot 0.5 + sum [k=1:TERMS] fourier(k,x) notitle } unset multiplot
·«¤êÊÖ¤·¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê½ñ¼°¤Ë¤è¤ë·«¤êÊÖ¤·»ØÄê¤ÇÀ©¸æ¤·¤Þ¤¹¡£
for [<var> in "string of N elements"]
¤Þ¤¿¤Ï
for [<var> = <start> : <end> { : <increment> }]
ºÇ½é¤Î½ñ¼°¤Ç¤Ï <var> ¤Ïʸ»úÎóÊÑ¿ô¤Ç¡¢¤½¤Î¸å¤í¤Ë»ØÄꤷ¤¿Ê¸»úÎó¤Ë´Þ¤Þ¤ì ¤ë 1 ÈÖÌܤ«¤é N ÈÖÌܤޤǤÎñ¸ìʸ»úÎó¤ò½ç¤ËÃͤȤ·¤Æ¼è¤ê¤Þ¤¹¡£ 2 ÈÖÌܤνñ¼°¤Ç¤Ï¡¢<start>, <end>, <increment> ¤ÏÀ°¿ô¡¢¤Þ¤¿¤ÏÀ°¿ôÃͤò¼è ¤ë¿ô¼°¤Ç¤¹¡£
·«¤êÊÖ¤·ÊÑ¿ô¤Î͸úÈÏ°Ï (scope) ¤Ï¡¢¤½¤Î·«¤êÊÖ¤·¤ÎÃæ¤À¤±¤Ç¤¹¡£°Ê²¼»²¾È: scope (26)¡£·«¤êÊÖ¤·ÊÑ¿ô¤ÎÃͤò¡¢¤½¤Î¼Â¹Ô¥Ö¥í¥Ã¥¯Æâ¤Ç±Ê³Ū¤ËÊѹ¹¤¹¤ë¤³¤È ¤Ï¤Ç¤¤Þ¤»¤ó¡£·«¤êÊÖ¤·ÊÑ¿ô¤¬·«¤êÊÖ¤·¤ÎÁ°¤ËÃͤò»ý¤Ã¤Æ¤¤¤¿¤È¤·¤¿¤é¡¢¤½¤Î ÃͤϷ«¤êÊÖ¤·¤Î½ªÎ»»þ¤ËÊÝ»ý¡¢¤Þ¤¿¤ÏÉüµ¢¤µ¤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢1 2 3 4 5 6 7 8 9 10 A ¤ò½ÐÎϤ·¤Þ¤¹¡£
i = "A" do for [i=1:10] { print i; i=10; } print i
Àþ¼ï (linetype) ¤Î°À¤ÎʤӤϡ¢ÂÐÏÃŪ¤«½é´ü²½¥Õ¥¡¥¤¥ë¤Î¤¤¤º¤ì¤«¤Ë¤è¤Ã ¤Æ¤µ¤é¤Ë¥«¥¹¥¿¥Þ¥¤¥º²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set linetype (112.41)¡£ÇÛÉۥѥ屡¼¥¸ ¤Ë½é´ü²½¥Õ¥¡¥¤¥ë¤Î¥µ¥ó¥×¥ë¤¬¤¤¤¯¤Ä¤«ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
ÆÃÄê¤Î½ÐÎÏ·Á¼°¤ËÂФ¹¤ëÀþ¼ï¤Î°À¤Î¸½ºß¤Î¾õÂ֤ϡ¢¤½¤Î½ÐÎÏ·Á¼°¤òÀßÄꤷ¤¿ ¤¢¤È¤Ç test ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç³Îǧ¤Ç¤¤Þ¤¹¡£
°ì¤Ä¤ÎÉÁ²è¥³¥Þ¥ó¥ÉÆâ¤Ç¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎϢ³¤¹¤ëʤӤˤϡ¢¸½ºß¤Î ¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ïÎ󤫤éÀþ¼ï¤¬½çÈ֤˳ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¸Ä¡¹¤Î´Ø¿ô¡¢¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤËÂФ¹¤ëÀþ¼ï¤Ï¡¢¤½¤ÎÉÁ²è¥³¥Þ¥ó¥É¾å¤ÇÌÀ ¼¨Åª¤ËÀþ¤Î°À¤ò»ØÄꤹ¤ë¤³¤È¤Ç¾å½ñ¤¤Ç¤¤Þ¤¹¡£
Îã:
plot "foo", "bar" # Àþ¼ï 1, 2 ¤Ç 2 ¥Õ¥¡¥¤¥ë¤òÉÁ²è plot sin(x) linetype 4 # Àþ¼ï¿§ 4 ¤ò»ÈÍÑ
°ìÈ̤ˡ¢¿§¤Î»ØÄê¤Ï¡¢¿§¤Î̾Á°¤«¡¢RGB (ÀÖ¡¢ÎС¢ÀÄ) À®Ê¬¤«¡¢HSV (¿§Áê¡¢ºÌ ÅÙ¡¢ÌÀÅÙ) À®Ê¬¤«¡¢¸½ºß¤Î pm3d ¥Ñ¥ì¥Ã¥È¤Ë±è¤Ã¤¿ºÂɸ¤Ç¹Ô¤¤¤Þ¤¹¡£¥¡¼¥ï¡¼ ¥É linecolor ¤Ï¡¢lc ¤È¾Êά¤Ç¤¤Þ¤¹¡£
Îã:
plot sin(x) lc rgb "violet" # gnuplot Æâ¤Î¿§Ì¾¤Î°ì¤Ä¤ò»ÈÍÑ plot sin(x) lc rgb "#FF00FF" # ÌÀ¼¨Åª¤Ê 16 ¿Ê RGB 3 ¤ÄÁÈ plot sin(x) lc palette cb -45 # ¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î cbrange ¤Î # -45 ¤ËÂбþ¤¹¤ë¿§ plot sin(x) lc palette frac 0.3 # ¥Ñ¥ì¥Ã¥È¤ËÂбþ¤¹¤ë¾®¿ôÃÍ
°Ê²¼»²¾È: colorspec (20.1), show colornames (114.1), hsv (15.3), set palette (112.67), cbrange (112.153)¡£°Ê²¼¤â»²¾È: monochrome (112.52)¡£
Àþ¼ï (linetype) ¤Ë¤Ï¡¢ÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¤â·ë¤Ó¤Ä¤±¤é¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤¹ ¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¤½¤ì¤¬»È¤¨¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Àþ¿§¤È¤ÏÆÈΩ¤ËÅÀÀþ/ÇË Àþ¥Ñ¥¿¡¼¥ó¤ò»ØÄê¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: dashtype (20.2)¡£
½ñ¼°:
... {linecolor | lc} {"colorname" | <colorspec> | <n>} ... {textcolor | tc} {<colorspec> | {linetype | lt} <n>} ... {fillcolor | fc} {<colorspec> | linetype <n> | linestyle <n>}
<colorspec> ¤Ï°Ê²¼¤Î·Á¼°¤Î¤¤¤º¤ì¤«¤Ç¤¹:
rgbcolor "colorname" # Îã: "blue" rgbcolor "0xRRGGBB" # 16 ¿Ê¿ôÃͤÎÄê¿ôʸ»úÎó rgbcolor "0xAARRGGBB" # 16 ¿Ê¿ôÃͤÎÄê¿ôʸ»úÎó rgbcolor "#RRGGBB" # x11 ·Á¼°¤Î 16 ¿Ê¿ôʸ»úÎó rgbcolor "#AARRGGBB" # x11 ·Á¼°¤Î 16 ¿Ê¿ôʸ»úÎó rgbcolor <integer val> # AARRGGBB ¤òɽ¤¹À°¿ôÃÍ rgbcolor variable # ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤éÀ°¿ôÃͤòÆɤ߹þ¤à palette frac <val> # <val> ¤Ï 0 ¤«¤é 1 ¤ÎÃÍ palette cb <value> # <val> ¤Ï cbrange ¤ÎÈϰϤÎÃÍ palette z palette <colormap> # ̾Á°ÉÕ¤¥«¥é¡¼¥Þ¥Ã¥×¤ò»ÈÍÑ variable # ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¿§ÈÖ¹æ¤òÆɤ߹þ¤à bgnd # ÇØ·Ê¿§ black
<n> ¤Ï¡¢¤½¤ÎÀþ¼ï (linetype) Èֹ椬»È¤¦¿§¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼»²¾È: test (118)¡£
"colorname" ¤Ï gnuplot ¤¬ÆâÉô¤Ë»ý¤Ã¤Æ¤¤¤ë¿§¤Î̾Á°¤Î¤¦¤Á¤Î°ì¤Ä¤ò»ØÄꤷ ¤Þ¤¹¡£Í¸ú¤Ê̾Á°¤Î°ìÍ÷¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: show colornames (114.1)¡£
16 ¿ÊÄê¿ô¤Ï¡¢°úÍÑÉäÉÕ¤¤Ç "#RRGGBB" ¤ä "0xRRGGBB" ¤Î·Á¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£RRGGBB ¤Ï¡¢¿§¤ÎÀÖ¡¢ÎС¢ÀĤÎÀ®Ê¬¤ò°ÕÌ£¤·¡¢¤½¤ì¤¾¤ì 00 ¤«¤é FF ¤Þ¤Ç¤ÎÈÏ°ÏÆâ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¡¢¥Þ¥¼¥ó¥¿ (»ç) ¤Ï¡¢ºÇ¤âÌÀ¤ë¤¤ ÀÖ + ºÇ¤âÌÀ¤ë¤¤ÀÄ¡¢¤Ê¤Î¤Ç "0xFF00FF" ¤Èɽ¤µ¤ì¡¢¤³¤ì¤Ï 16 ¿Ê¿ô¤Ç (255 << 16) + (0 << 8) + (255) ¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£
"#AARRGGBB" ¤Ï¡¢RGB ¿§¤Î¾å°Ì¥Ó¥Ã¥È¤Ë¥¢¥ë¥Õ¥¡ÃÍ (Æ©²áÀ) ¤¬¤Ä¤¤¤Æ¤¤¤ë¤³ ¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥¢¥ë¥Õ¥¡ÃÍ 0 ¤Ï´°Á´¤ËÉÔÆ©ÌÀ¿§¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¡¢¤è¤Ã ¤Æ "#00RRGGBB" ¤Ï "#RRGGBB" ¤ÈƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹¡£¥¢¥ë¥Õ¥¡ÃͤΠ255 (FF) ¤Ï ´°Á´¤ËÆ©ÌÀ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
¤³¤ì¤é¤ÎǤ°Õ¤Î·Á¼°¤«¤é¡¢¿§¤Î 32 ¥Ó¥Ã¥ÈÀ°¿ôɽ¸½¤Ø¤ÎÊÑ´¹¤ò¹Ô¤¦¤Î¤ËÍøÍÑ¤Ç ¤¤ë´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: expressions functions rgbcolor (15.3)¡£
¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤È¤Ï¡¢¿§¤ÎÀþ·¿¤Ê¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ç¡¢Ã±°ì¤Î¿ôÃͤòÆÃÄê¤Î¿§¤Ë ³ê¤é¤«¤ËÂбþ¤Å¤±¤Þ¤¹¡£¾ï¤Ë¤½¤Î¤è¤¦¤Ê 2 ¤Ä¤ÎÂбþÉÕ¤±¤¬¸úÎϤò»ý¤Á¤Þ¤¹¡£ palette frac ¤Ï 0 ¤«¤é 1 ¤Þ¤Ç¤Î¾®¿ôÃͤò¡¢¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ÎÁ´ÈϰϤËÂÐ ±þÉÕ¤±¤ë¤â¤Î¤Ç¡¢palette cb ¤Ï¡¢¿§¼´¤ÎÈϰϤòƱ¤¸¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø³ä¤ê Åö¤Æ¤ë¤â¤Î¤Ç¤¹¡£°Ê²¼»²¾È: set cbrange (112.153), set colorbox (112.17)¡£¤³¤ì¤é¤ÎÂбþ ÉÕ¤±¤Î¤É¤Á¤é¤«¤ò»È¤Ã¤Æ¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤«¤éÄê¿ô¿§¤òÁª¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£
"palette z" ¤Ï¡¢³ÆÉÁ²èÀþʬ¤äÉÁ²èÍ×ÁǤΠz ¤ÎÃͤò¡¢¥Ñ¥ì¥Ã¥È¤ØÂбþ¤Å¤±¤é ¤ì¤Æ¤¤¤ë cbrange ¤ÎÈϰϤËÂбþ¤Å¤±¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢3 ¼¡¸µ¤Î¶ÊÀþ¤ä¶ÊÌÌ ¤Ë±è¤Ã¤Æ¿§¤ò³ê¤é¤«¤ËÊѲ½¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¡¢¥Ñ ¥ì¥Ã¥ÈÃͤòÄɲäÎÎó¥Ç¡¼¥¿¤«¤éÆɤ߹þ¤Þ¤»¤Æ¿§ÉÕ¤±¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹ (¤¹¤Ù ¤Æ¤Î 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤¬¤³¤ÎÄɲÃÎó¤òǧ¼±¤¹¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó)¡£ Æüì¤Ê¿§»ØÄ꤬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£ÇØ·Ê¿§¤Î bgnd ¤È¡¢black ¤Ç¤¹¡£
# °Ê²¼¤Ï¥¥ã¥ó¥Ð¥¹¤Î°ìÉôʬ¤òÇØ·Ê¿§¤Ç¾å½ñ¤¤¹¤ë¤³¤È¤Ç¾Ãµî¤·¤Þ¤¹¡£ set term wxt background rgb "gray75" set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd # y=0 ¤Ë¡Ö¸«¤¨¤Ê¤¤¡×Àþ¤òÉÁ¤¡¢¤½¤Î²¼¤Î¤â¤Î¤ò¤¹¤Ù¤Æ¾Ã¤·¤Þ¤¹¡£ plot 0 lt bgnd
Îã:
# ¥Ç¡¼¥¿¤Î 3 ÎóÌܤò¡¢¸Ä¡¹¤ÎÅÀ¤Ë¿§¤ò³ä¤êÅö¤Æ¤ë¤Î¤Ë»ÈÍÑ plot 'data' using 1:2:3 with points lc variable
# °ì¤Ä¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤ÏÊ£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤òÆþ¤ì¤ë¤³¤È¤¬²Äǽ¤Ç¡¢ # ¤½¤ì¤é¤Ï 2 ¹Ô¤Î¶õ¹Ô¤ÇʬΥ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¸Ä¡¹¤Î¥Ç¡¼¥¿½¸¹ç¤Ë¤Ï # index Ãͤ¬³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤Æ (°Ê²¼»²¾È: `index`)¡¢using »ØÄê¤Î # column(-2) ¤Ç¼èÆÀ¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: `pseudocolumns`¡£°Ê²¼¤ÎÎã # ¤Ï -2 ¤Î column Ãͤò»È¤Ã¤Æ¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿½¸¹ç¤ò°Û¤Ê¤ëÀþ¿§¤ÇÉÁ²è # ¤·¤Þ¤¹¡£ plot 'data' using 1:2:(column(-2)) with lines lc variable
... {lc|fc|tc} palette {z} ... {lc|fc|tc} palette frac <fraction> ... {lc|fc|tc} palette cb <fixed z-value> ... fc palette <colormap>
¥Ñ¥ì¥Ã¥È¤Ï¡¢0 ¤«¤é 1 ¤Þ¤Ç¤Î³¥¿§Ãͤǡ¢¿§¤ÎÈϰϤòÄêµÁ¤·¤¿¤â¤Î¤Ç¤¹¤¬¡¢ palette frac <fraction> ¤Ï¡¢³¥¿§ÃÍ <fraction> ¤Ç¤½¤Î¿§¤òÁªÂò¤·¤Þ¤¹¡£
palette cb <z> ¤Ï¡¢³¥¿§Ãͤ¬ (z - cbmin) / (cbmax - cbmin) ¤Ç¤¢¤ë¿§¤ò ÁªÂò¤·¤Þ¤¹¡£
palette ¤È palette z ¤Ï¤É¤Á¤é¤âÉÁ²èÍ×ÁǤΠz ºÂɸ¤ò¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î ¿§¤Ë¼ÌÁü¤·¤Þ¤¹¡£z ¤¬ cbrange ¤ÎÈϰϳ°¤Ê¤é¤Ð¡¢¤½¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï palette fraction 0 ¤« palette fraction 1 ¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó set pm3d noclipcb ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢z ºÂɸ¤¬Èϰϳ°¤Ë¤¢¤ë pm3d ¥°¥é¥Õ¤Î »ÍÊÕ·Á¤Ï²¿¤âÉÁ¤«¤ì¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
fillcolor palette <colormap> ¤Ï¡¢ÉÁ²èÍ×ÁǤΠz ºÂɸ¤ò¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È ¤ò»ÈÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢»öÁ°¤ËÊݸ¤·¤¿Ì¾Á°ÉÕ¤¥«¥é¡¼¥Þ¥Ã¥×¤Ë¼ÌÁü¤·¤Þ¤¹¡£ °Ê²¼»²¾È: set colormap (112.11)¡£
¥«¥é¡¼¥Þ¥Ã¥×¤¬¤½¤ìÍѤθÄÊ̤ÎÈϰϤò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢cbrange ¤òɸ½à¥Ñ¥ì¥Ã ¥È¤Ë¼ÌÁü¤¹¤ë¤Î¤Ë»È¤¦¤Î¤ÈƱÍͤˡ¢z ¤ÎÃͤò¼ÌÁü¤¹¤ë¤Î¤Ë¤½¤ÎÈϰϤò»ÈÍѤ·¤Þ ¤¹¡£
Îã:
# 3 ¼¡¸µÉÁ²è¤Ç¡¢³Æ 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
¤¹¤Ù¤Æ¤ÎÀþ¤Ï¡¢¤Û¤«¤Ë»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢dashtype solid ¤È¤¤¤¦Â°À¤ò»ý¤Á ¤Þ¤¹¤¬¡¢¤³¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¥³¥Þ¥ó¥É set linetype ¤ÇÆÃÄê¤ÎÀþ¼ï¤ËÊѹ¹¤· ¤½¤Î¸å¤Î¥³¥Þ¥ó¥É¤Ç»È¤¨¤ë¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£¤Þ¤¿¤Ï¡¢plot ¤ä¾¤Î¥³¥Þ¥ó¥É ¤Î°ìÉôʬ¤È¤·¤Æ»ÈÍѤ·¤¿¤¤ÅÀÀþ/ÇËÀþ¤Î·¿¤ò»ØÄê¤Ç¤¤Þ¤¹¡£
½ñ¼°:
dashtype N # ÄêµÁºÑ¤ßÅÀÀþ/ÇËÀþ·¿¤òÈÖ¹æ¤Ç¸Æ¤Ó½Ð¤· 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
¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼°¤Ï¡¢¤½¤ì¤¬Ä󶡤¹¤ëÄêµÁºÑ¤ßÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤Ë¡¢¥æ¡¼ ¥¶ÄêµÁ¥Ñ¥¿¡¼¥ó¤òÄɲ乤뤳¤È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
Îã:
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 # ¿·¥Ñ¥¿¡¼¥ó¤ò»È¤Ã¤ÆÉÁ²è
ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤òʸ»úÎó¤Ç»ØÄꤷ¤¿¾ì¹ç¡¢gnuplot ¤Ï¤½¤ì¤ò <¼ÂÀþĹ>, <¶õÇòĹ> ¤ÎÁȤÎÎó¤ËÊÑ´¹¤·¤Þ¤¹¡£¥É¥Ã¥È "." ¤Ï (2,5) ¤Ë¡¢¥À¥Ã¥·¥å "-" ¤Ï (10,10) ¤Ë¡¢²¼Àþ "_" ¤Ï (20,10) ¤Ë¡¢¤Þ¤¿¶õÇò " " ¤ÏľÁ°¤Î <¶õÇòĹ> ¤Î ÃÍ¤Ë 10 ¤òÄɲä·¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¥³¥Þ¥ó¥É show dashtype ¤Ï¡¢¸µ¤Îʸ»ú Îó¤ÈÊÑ´¹¸å¤Î¿ôÃͤÎÎó¤ÎξÊý¤òɽ¼¨¤·¤Þ¤¹¡£
Îã:
# ¿·¤·¤¤¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤¿§ cyan¡¢ÀþÉý¤¬ 3¡¢ # ÅÀ¼ï 6 (´Ý¤ÎÃæ¤ËÅÀ) ¤ÈÄêµÁ set style line 5 lt rgb "cyan" lw 3 pt 6 plot sin(x) with linespoints ls 5 # ÄêµÁ¥¹¥¿¥¤¥ë 5 ¤Ç
lt black ¤Ï¡¢¹õ¤¤¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£
lt bgnd ¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤ÎÇØ·Ê¿§¤Î¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼»²¾È: background (20.1.1)¡£
lt nodraw ¤Ï¡¢¤½¤Î¶ÊÀþÁ´ÂΤÎÉÁ²è¤ò¥¹¥¥Ã¥×¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÉÁ²è¥¹¥¿¥¤ ¥ë linespoints ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤ÈÊØÍø¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ÎÉÁ²è¥¹¥¿ ¥¤¥ë¤Î¤ß¤Ë͸ú¤ÊÅÀÉôʬ¤Î°À¤ò»Ä¤·¤Ä¤Ä¡¢ÀþÉôʬ¤òÍÞÀ©¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê ¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢
plot f(x) with linespoints lt nodraw pointinterval -3
¤Ï¡¢3 ÅÀÃÖ¤¤ËÉÁ²è¤·¡¢¤½¤Î²¼¤ËÇØ·Ê¿§¤Î¾®¤µ¤Ê±ß¤òÃÖ¤¯¤³¤È¤Ç¸ÉΩ¤µ¤»¤Þ¤¹¡£ °Ê²¼»²¾È: linespoints (56)¡£lt nodraw ¤Ï¡¢¼«Æ°Åª¤ËÉÁ¤«¤ì¤ëÀþʬ¤ÎÆÃÊÌ¤Ê ½¸¹ç¤òÍÞÀ©¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢Åù¹âÀþÉÁ²è¤ÎÃæ¤Î¤¢¤ë¥ì¥Ù¥ë¤ÎÅù¹â Àþ¤ò¡¢¤½¤ÎÀþ¼ï¤Ë nodraw ¤òÀßÄꤹ¤ë¤³¤È¤Ç¡¢¤½¤ÎÉÁ²è¤òÍÞÀ©¤Ç¤¤Þ¤¹¡£
set object 1 rectangle from graph 0,0 to graph 1,1 fc rgb "gray" behind
ÉÁ²è¤Î½çÈ֤ϰʲ¼¤ÎÄ̤ê¤Ç¤¹:
behind back ¥°¥é¥Õ¼«ÂÎ ¥°¥é¥Õ¤ÎɽÂê (`key`) front
³Æ³¬ÁØÆâ¤Ç¤Ï¡¢Í×ÁǤÎÉÁ²è¤Ï°Ê²¼¤Î½çÈ֤Ǥ¹:
³Ê»ÒÀþ¡¢¼´¡¢¶³¦Í×ÁÇ (grid, axis, border elements) ÈÖ¹æ½ç¤Î¥Ô¥¯¥¹¥Þ¥Ã¥×²èÁü (pixmaps) ÈÖ¹æ½ç¤Î¥ª¥Ö¥¸¥§¥¯¥È (rectangle, circle, ellipse, polygon) ÈÖ¹æ½ç¤Î¥é¥Ù¥ë (label) ÈÖ¹æ½ç¤ÎÌð°õ (arrow)
1 ¥Ú¡¼¥¸¤ËÊ£¿ô¤Î¥°¥é¥Õ¤¬¤¢¤ë¾ì¹ç (multiplot ¥â¡¼¥É)¡¢¤³¤Î½ç½ø¤Ï¡¢Ê£¿ô ¥°¥é¥Õ¤òÁ´ÂΤȤ·¤ÆŬÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢³ÆÉÁ²èÍ×ÁǤËÊÌ¡¹¤ËŬÍѤ·¤Þ¤¹¡£
¤³¤ì¤ËÂФ¹¤ëÎã³°¤Ï¡¢TeX ·Ï¤Î½ÐÎÏ·Á¼° (Î㤨¤Ð pslatex ¤ä cairolatex Åù) ¤Ç¡¢¤³¤ì¤é¤Ï°ì¤Ä¤Î½ÐÎϤˤ¹¤Ù¤Æ¤Îʸ»úÎóÍ×ÁǤòÀѤ߽Ť͡¢¥°¥é¥ÕÍ×ÁǤÏÊÌ¤Ê ½ÐÎϤËÀѤ߽Ťͤޤ¹¡£°ìÈ̤ˤ³¤Î¾ì¹ç¡¢³Æʸ»úÎóÍ×ÁǤÏÁ´Éô¤¬¥°¥é¥Õ¤ÎÁ°¤Ë½Ð ¤Æ¤·¤Þ¤¦¤«¡¢µÕ¤ËÁ´Éô¤¬¥°¥é¥Õ¤Î΢¤ËÃÖ¤«¤ì¤Æ¤·¤Þ¤¦¤«¤Î¤É¤Á¤é¤«¤Ë¤Ê¤ê¤Þ¤¹¡£
bind {allwindows} [<key-sequence>] ["<gnuplot commands>"] bind <key-sequence> "" reset bind
bind ¤Ï¡¢¥Û¥Ã¥È¥¡¼¤ÎÄêµÁ¡¢ºÆÄêµÁ¤Ë»ÈÍѤ·¤Þ¤¹¡£¥Û¥Ã¥È¥¡¼¤È¤Ï¡¢ÆþÎÏ ¥«¡¼¥½¥ë¤¬¥É¥é¥¤¥Ð¤Î¥¦¥£¥ó¥É¥¦Æâ¤Ë¤¢¤ë¤È¤¤Ë¡¢¤¢¤ë¥¡¼¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥ ¡¼¤ò²¡¤¹¤³¤È¤Ç¡¢gnuplot ¤Î¥³¥Þ¥ó¥ÉÎó¤ò¼Â¹Ô¤µ¤»¤ëµ¡Ç½¤Î¤³¤È¤ò¸À¤¤¤Þ¤¹¡£ bind ¤Ï¡¢gnuplot ¤¬ mouse ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤Æ ¤«¤Ä¥Þ¥¦¥¹¤¬Í¸ú¤Ê½ÐÎÏ·Á¼°¾å¤Ç»È¤ï¤ì¤Æ¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£¥æ¡¼¥¶»ØÄê¤Î¥¡¼³äÅö (binding) ¤Ï¡¢ÁȤ߹þ¤ß (builtin) ¥ ¡¼³äÅö¤òÃÖ¤´¹¤¨¤Þ¤¹¤¬¡¢<space> ¤È 'q' ¤ÏÄ̾ï¤ÏºÆÄêµÁ¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½ ¤ÎÍ£°ì¤ÎÎã³°¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: bind space (22.1.1)¡£
¥Þ¥¦¥¹¥Ü¥¿¥ó³ä¤êÅö¤Æ¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤Î¤ß͸ú¤Ç¤¹¡£
¥Û¥Ã¥È¥¡¼¤Î°ìÍ÷¤òÆÀ¤ë¤Ë¤Ï show bind, ¤Þ¤¿¤Ï bind ¤È¥¿¥¤¥×¤¹¤ë¤«¡¢ ¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¾å¤Ç¥Û¥Ã¥È¥¡¼ 'h' ¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£
¥¡¼ÄêµÁ¤Ï¡¢reset bind ¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÉüµ¢¤Ç¤¤Þ¤¹¡£
½¤¾þ¥¡¼¤ò´Þ¤àÊ£¿ô¤Î¥¡¼¤ÎÄêµÁ¤Ï°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£
ɸ½à¤Ç¤Ï¥Û¥Ã¥È¥¡¼¤Ï¸½ºß¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¾å¤ËÆþÎÏ¥«¡¼¥½¥ë¤¬¤¢¤ë¾ì¹ç¤Î¤ß ǧ¼±¤µ¤ì¤Þ¤¹¡£bind allwindows <key> ... (bind all <key> ... ¤È¾Êά ²Ä) ¤Ï¡¢<key> ¤Î³äÅö¤ò¡¢¤½¤ì¤¬¸½ºß¤Î͸ú¤Ê¤â¤Î¤«Èݤ«¤Ë´Ø¤ï¤é¤º¡¢¤¹¤Ù¤Æ ¤Î gnuplot ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¾å¤Ç²Äǽ¤Ë¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢gnuplot ÊÑ¿ô MOUSE_KEY_WINDOW ¤Ë¤½¤ì¤¬¹Ô¤Ê¤ï¤ì¤¿¥¦¥£¥ó¥É¥¦¤Î ID ¤¬Êݸ¤µ¤ì¤ë¤Î¤Ç¤½ ¤ì¤ò¥¡¼¤Ë³ä¤êÅö¤Æ¤¿¥³¥Þ¥ó¥É¤Ç»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
- ¥¡¼³äÅö¤ÎÀßÄê:
bind a "replot" bind "ctrl-a" "plot x*x" bind "ctrl-alt-a" 'print "great"' bind Home "set view 60,30; replot" bind all Home 'print "This is window ",MOUSE_KEY_WINDOW'
- ¥¡¼³äÅö¤òɽ¼¨:
bind "ctrl-a" # ctrl-a ¤ËÂФ¹¤ë¥¡¼³äÅö¤òɽ¼¨ bind # Á´¤Æ¤Î¥¡¼ÄêµÁ¤òɽ¼¨ show bind # Á´¤Æ¤Î¥¡¼ÄêµÁ¤òɽ¼¨
- ¥¡¼³äÅö¤òºï½ü:
bind "ctrl-alt-a" "" # ctrl-alt-a ¤Î¥¡¼³äÅö¤òºï½ü (ÁȤ߹þ¤ß¥¡¼ÄêµÁ¤Ïºï½ü¤µ¤ì¤Þ¤»¤ó) reset bind # ¥Ç¥Õ¥©¥ë¥È (ÁȤ߹þ¤ß) ¤Î¥¡¼ÄêµÁ¤òƳÆþ
- ¥È¥°¥ë¥¹¥¤¥Ã¥Á·Á¼°¤Ë¥¡¼³äÅö:
v=0 bind "ctrl-r" "v=v+1;if(v%2)set term x11 noraise; else set term x11 raise"
½¤¾þ¥¡¼ (ctrl / alt) ¤ÏÂçʸ»ú¾®Ê¸»ú¤Î¶èÊ̤Ϥ¢¤ê¤Þ¤»¤ó¤¬¡¢¥¡¼¤Ï¤½¤¦¤Ç ¤Ï¤¢¤ê¤Þ¤»¤ó:
ctrl-alt-a == CtRl-alT-a ctrl-alt-a != ctrl-alt-A
½¤¾þ¥¡¼ (alt == meta) ¤Î°ìÍ÷:
ctrl, alt, shift (¥Ü¥¿¥ó 1, ¥Ü¥¿¥ó 2, ¥Ü¥¿¥ó 3 ¤Ç¤Î¤ß͸ú)
¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÆü쥡¼¤Î°ìÍ÷:
"BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock", "Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down", "PageUp", "PageDown", "End", "Begin",
"KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4", "KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp", "KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal", "KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal", "KP_Divide",
"KP_1" - "KP_9", "F1" - "F12"
°Ê²¼¤Ï¡¢¼ÂºÝ¤Î¥¡¼¤Ç¤Ï¤Ê¤¯¡¢¥¦¥£¥ó¥É¥¦¤Ë´Ø¤¹¤ë¥¤¥Ù¥ó¥È¤Ç¤¹:
"Button1" "Button2" "Button3" "Close"
°Ê²¼¤â»²¾È: mouse (112.53)¡£
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
pause mouse keypress ¤¬¡¢¥¡¼ÆþÎϤǽªÎ»¤·¤¿¾ì¹ç¤Ï MOUSE_KEY ¤Ë¤Ï²¡¤µ ¤ì¤¿¥¡¼¤Î ASCII ¥³¡¼¥É¤¬Êݸ¤µ¤ì¤Þ¤¹¡£MOUSE_CHAR ¤Ë¤Ï¤½¤Îʸ»ú¼«¿È¤¬Ê¸ »úÎóÃͤȤ·¤ÆÊݸ¤µ¤ì¤Þ¤¹¡£pause ¥³¥Þ¥ó¥É¤¬ (Î㤨¤Ð ctrl-C ¤äÉÁ²è¥¦¥£¥ó ¥É¥¦¤¬³°Éô¤«¤éÊĤ¸¤é¤ì¤ë¤Ê¤É¤·¤Æ) °Û¾ï½ªÎ»¤·¤¿¾ì¹ç¤Ï MOUSE_KEY ¤Ï -1 ¤Ë¤Ê¤ê¤Þ¤¹¡£
¥Þ¥¦¥¹¤Ë¤è¤ë³ÈÂç¤Î¸å¤Î¿·¤·¤¤ÉÁ²èÈϰϤϡ¢GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN, GPVAL_Y_MAX ¤Ç»²¾È¤Ç¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: gnuplot-defined variables (15.6)¡£
gnuplot -persist -e 'plot sinh(x)'
gnuplot ¤Ï¡¢É½¼¨¥¦¥£¥ó¥É¥¦¤ò³«¤¡¢¤½¤ÎÃæ¤Ë¥°¥é¥Õ¤òÉÁ¤¡¢¤½¤·¤Æ½ªÎ»¤·¡¢ ɽ¼¨¥¦¥£¥ó¥É¥¦¤Ï¥°¥é¥Õ¤ò¤½¤ÎÃæ¤Ë»ý¤Ã¤¿¤Þ¤Þ¥¹¥¯¥ê¡¼¥ó¤Ë»Ä¤ê¤Þ¤¹¡£ ¿·¤·¤¤½ÐÎÏ·Á¼°¤òÀßÄꤹ¤ë¤È¤¤Ë persist ¤ä nopersist ¤ò»ØÄꤹ¤ë¤³¤È ¤â¤Ç¤¤Þ¤¹¡£
set term qt persist size 700,500
½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢¤½¤Î»Ä¤Ã¤¿¥¦¥£¥ó¥É¥¦¾å¤Ç¤â¿¾¯¤Î¥Þ¥¦¥¹Áàºî¤¬²Äǽ¤Ê ¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¥°¥é¥Õ¤ÎºÆÉÁ²è¤òÍ׵᤹¤ë¥º¡¼¥à (¤È¤½¤ÎµÕ) ¤Î¤è ¤¦¤ÊÁàºî¤Ï¡¢´û¤Ë¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤Æ¤¤¤ë¤Î¤Ç̵Íý¤Ç¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò ³«¤¤¤¿¤Þ¤Þ»Ä¤·¡¢¤½¤Î¸å¤Î¥Þ¥¦¥¹µ¡Ç½¤â´°Á´¤Ë²Äǽ¤Ë¤¹¤ë¤Ë¤Ï¡¢Î㤨¤Ð gnuplot ¤òÂÐÏ÷¿¤Ç¤Ï¤Ê¤¯¡¢¥¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤«¤é¼Â¹Ô¤µ¤»¤ëÊýË¡¤¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: pause mouse close (98.1)¡£
¤³¤ì¤é 4 ¤Ä¤Î¥³¥Þ¥ó¥É¤Î¤¦¤Á¤Î°ì¤Ä¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ï¡¢¸½ºßÄêµÁ¤µ¤ì¤Æ¤¤¤ë ¼´¡¢¥é¥Ù¥ë¡¢¥¿¥¤¥È¥ë¡¢¤ª¤è¤Ó¸µ¤Î plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤵ¤ì¤¿¤µ¤Þ¤¶¤Þ¤Ê´Ø ¿ô¤ä¥Ç¡¼¥¿¤Î¤¹¤Ù¤Æ¤ò´Þ¤à½ÐÎϤΥ¹¥¯¥ê¡¼¥ó¤òºÆÉÁ²è¤¹¤ë¤«¡¢¿·¤·¤¤½ÐÎÏ¥Ú¡¼ ¥¸¤òÀ¸À®¤·¤Þ¤¹¡£¤â¤·¡¢°ì¤Ä¤Î¥Ú¡¼¥¸¤ËÊ£¿ô¤Î¥°¥é¥Õ¤òÎÙ¤ê¹ç¤¦¤è¤¦¤ËÊÂ¤Ù¤Æ ½ÐÎϤ·¤¿¤¤¾ì¹ç¡¢Î㤨¤ÐÊ£¿ô¤Î¿Þ¤Î¥Ñ¥Í¥ë¤òºîÀ®¤·¤¿¤ê¡¢Â礤ʥ°¥é¥Õ¤ÎÃæ¤Ë ¾®¤µ¤Ê¥°¥é¥Õ¤òÁÞÆþ¤·¤¿¤ê¤·¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É set multiplot ¤ò»ÈÍÑ ¤·¡¢³ÆÉÁ²è¥³¥Þ¥ó¥É¤Ç¿·¤·¤¤¥Ú¡¼¥¸¤¬ºî¤é¤ì¤ë¤Î¤òÍÞÀ©¤·¤Æ¤¯¤À¤µ¤¤¡£
ÉÁ²è¤Ë´Ø¤¹¤ë°ìÈÌŪ¤Ê¾ðÊó¤ÎÂçȾ¤Ï¡¢plot ¤Ë´Ø¤¹¤ë¹à¤Ç¸«¤Ä¤«¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ë¸ÇͤξðÊó¤Ï splot ¤Î¹à¤Ë¤¢¤ê¤Þ¤¹¡£
plot ¤Ï xy ľ¸òºÂɸ·Ï¤È¶ËºÂɸ·Ï¤¬»È¤¨¤Þ¤¹¡£°Ê²¼»²¾È: set polar (112.74)¡£ splot ¤Ï xyz ľ¸òºÂɸ¤¬»È¤¨¤Þ¤¹¤¬¡¢3 ¼¡¸µ¶ËºÂɸ¡¢±ßÃìºÂɸ¥Ç¡¼¥¿¤âÆþ ÎϤǤ¤Þ¤¹¡£°Ê²¼»²¾È: set mapping (112.48)¡£ plot ¤Ç¤Ï¡¢4 ¤Ä¤Î¶³¦ x (²¼), x2 (¾å), y (º¸), y2 (±¦) ¤ò¤½¤ì¤¾¤ìÆÈ Î©¤Ê¼´¤È¤·¤Æ°·¤¦¤³¤È¤â¤Ç¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó axes ¤Ç¡¢Í¿¤¨¤é¤ì¤¿´Ø¿ô¤ä ¥Ç¡¼¥¿½¸¹ç¤ò¤É¤Î¼´¤Î¥Ú¥¢¤Çɽ¼¨¤µ¤»¤ë¤«¤òÁª¤Ù¤Þ¤¹¡£¤Þ¤¿¡¢³Æ¼´¤Î½Ì¼Ü¤ä¸« ½Ð¤·¤Å¤±¤ò´°Á´¤ËÀ©¸æ¤¹¤ë¤¿¤á¤Ë½½Ê¬¤ÊÊ亴¤È¤Ê¤ë set ¥³¥Þ¥ó¥É·²¤¬Â¸ºß ¤·¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Ï¡¢set xlabel ¤Î¤è¤¦¤Ë¼´¤Î̾Á°¤ò¤½¤ÎÃæ¤Ë »ý¤Ã¤Æ¤¤¤Þ¤¹¤·¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤Ï set logscale xy ¤Î¤è¤¦¤Ë¡¢1 ¤Ä¡¢¤Þ ¤¿¤ÏÊ£¿ô¤Î¼´¤Î̾Á°¤ò¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤È¤ê¤Þ¤¹¡£z ¼´¤òÀ©¸æ¤¹¤ë¥ª¥×¥·¥ç¥ó ¤ä¥³¥Þ¥ó¥É¤Ï 2 ¼¡¸µ¥°¥é¥Õ¤Ë¤Ï¸úÎϤò»ý¤Á¤Þ¤»¤ó¡£
splot ¤Ï¡¢ÅÀ¤äÀþ¤Ë²Ã¤¨¤Æ¶ÊÌ̤äÅù¹âÀþ¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£3 ¼¡¸µ¤Î´Ø ¿ô¤Î³Ê»ÒÄêµÁ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set isosamples (112.35)¡£3 ¼¡¸µ ¥Ç¡¼¥¿¤Î¥Õ¥¡¥¤¥ë¤ËɬÍפʷÁÂ֤ˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: splot datafile (115.1)¡£Åù ¹âÀþ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set contour (112.19), set cntrlabel (112.15), set cntrparam (112.16)¡£
splot ¤Ç¤Î½Ì¼Ü¤ä¸«½Ð¤·ÉÕ¤±¤ÎÀ©¸æ¤Ï¡¢z ¼´¤Ë¤â͸ú¤Ç¤¢¤ë¤³¤È¡¢¤ª¤è¤Ó x2 ¼´¡¢y2 ¼´¤Î¥é¥Ù¥ëÉÕ¤±¤¬ set view map ¤ò»È¤Ã¤Æºî¤é¤ì¤ëµ¿»÷Ū¤Ê 2 ¼¡¸µÉÁ²è¤Ë¤Î¤ß²Äǽ¤Ç¤¢¤ë¤³¤È¤ò½ü¤±¤Ð plot ¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£
Q(a,x) = 1. - igamma(a,x)
¤·¤«¤·¡¢¤³¤ì¤Ï¡¢1 ¤Î¶á¤¯¤Î igamma(a,x) ¤ÎÃͤÎÀºÅ٤˼¼ÁŪ¤Ê¸Â³¦¤¬¤¢¤ê ¤Þ¤¹¡£¤è¤êÀµ³Î¤ÊÃͤòÊÖ¤¹¼ÂÁõ¤¬Íߤ·¤¤¾ì¹ç¡¢¥×¥é¥°¥¤¥ó¤òÄ̤·¤ÆÍÑ°Õ¤¹¤ë¤Î ¤¬¤¤¤¤¤Ç¤·¤ç¤¦ (²¼¤ò»²¾È)¡£°ìÅÙ¼è¤ê¹þ¤á¤Ð¡¢´Ø¿ô¤Ï¡¢gnuplot Æâ¤Î¾¤ÎÁÈ ¤ß¹þ¤ß´Ø¿ô¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤ÈÁ´¤¯Æ±ÍͤËÍøÍѤǤ¤Þ¤¹¡£ °Ê²¼»²¾È: import (94)¡£
gnuplot ¤ÎÇÛÉÛʪ¤Î¥Ç¥£¥ì¥¯¥È¥ê demo/plugin ¤Ë¤Ï¡¢¥×¥é¥°¥¤¥ó¥é¥¤¥Ö¥é¥ê ¤òÀ¸À®¤¹¤ë¤¿¤á¤ÎÀâÌÀ¤È¥½¡¼¥¹¥³¡¼¥É¤¬¤¢¤ê¤Þ¤¹¡£´Êñ¤Ê¥µ¥ó¥×¥ë¥Õ¥¡¥¤¥ë demo_plugin.c ¤Î´Ø¿ô¤ò¡¢¤¢¤Ê¤¿¤Î¶½Ì£¤¢¤ë´Ø¿ô¤Î¼ÂÁõ¤ËÃÖ¤´¹¤¨¤Æ½¤Àµ¤· ¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ë¤Ï¡¢³°Éô¤Î¿ô³Ø¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤â´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Ç¥£¥ì¥¯¥È¥ê demo/plugin ¤Ë¤Ï¡¢Q(a,x) ¤ò¼ÂÁõ¤¹¤ë¥×¥é¥°¥¤¥ó¤Î¥½¡¼¥¹¤â ¤¢¤ê¤Þ¤¹¡£¾å¤ÇÃí°Õ¤·¤¿¤è¤¦¤Ë¡¢¤³¤Î¥×¥é¥°¥¤¥ó¤Ï¡¢gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ë´Þ¤Þ¤ì¤ë uigamma ¤ÈƱ¤¸´Ø¿ô¤ò¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¼ÂÁõ¤¹¤ë¤³¤È¤ò²Ä ǽ¤Ë¤·¤Þ¤¹¡£
import Q(a,x) from "uigamma_plugin" uigamma(a,x) = ((x<1 || x<a) ? 1.0-igamma(a,x) : Q(a,x))
Îã³° 1: ·«¤êÊÖ¤·»ØÄê¤ÎÃæ¤Ç»ÈÍѤµ¤ì¤ëÊÑ¿ô¤Î͸úÈÏ°Ï (¥¹¥³¡¼¥×) ¤Ï¡¢¤½¤Î ·«¤êÊÖ¤·¤ÎÃæ¤À¤±¤Ç¤¹¡£·«¤êÊÖ¤·ÊÑ¿ô¤ÎÃͤò¡¢¤½¤Î¼Â¹Ô¥Ö¥í¥Ã¥¯Æâ¤Ç±Ê³Ū¤Ë Êѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£·«¤êÊÖ¤·ÊÑ¿ô¤¬·«¤êÊÖ¤·¤ÎÁ°¤ËÃͤò»ý¤Ã¤Æ¤¤¤¿¤È ¤·¤¿¤é¡¢¤½¤ÎÃͤϷ«¤êÊÖ¤·¤Î½ªÎ»»þ¤ËÊÝ»ý¡¢¤Þ¤¿¤ÏÉüµ¢¤µ¤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢1 2 3 4 5 6 7 8 9 10 A ¤ò½ÐÎϤ·¤Þ¤¹¡£
i = "A" do for [i=1:10] { print i; i=10; } print i
Îã³° 2: ´Ø¿ôÄêµÁ¤Ç»ÈÍѤµ¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤Î̾Á°¤Ï¡¢¤½¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤È¤ ¤ËÍ¿¤¨¤ë¼ÂºÝ¤ÎÃͤÎÃÖ¤¾ì½ê¤Ë²á¤®¤Þ¤»¤ó¡£Î㤨¤Ð¡¢°Ê²¼¤ÎÎã¤Ç¤Ï¡¢x ¤È y ¤Î¸½ºß¡¢¤¢¤ë¤¤¤Ï̤Íè¤ÎÃͤϤ³¤³¤Ç¼¨¤µ¤ì¤ëÄêµÁ¤Ë¤Ï´Ø·¸¤·¤Ê¤¤¤¬¡¢A ¤Ï¤³¤Î ´Ø¿ô¤¬¸å¤Çɾ²Á¤µ¤ì¤ë¤È¤¤Ë¤ÏÂç°èÊÑ¿ô¤È¤·¤Æ¸ºß¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó:
func(x,y) = A + (x+y)/2.
Îã³° 3: ¥³¥Þ¥ó¥É local ¤ÇÀë¸À¤µ¤ì¤¿ÊÑ¿ô¡£ local »ØÄê (¥Ð¡¼¥¸¥ç¥ó 6 ¤Ç¤Î¿·µ¡Ç½) ¤Ï¡¢ÊÑ¿ô¡¢¤Þ¤¿¤ÏÇÛÎó¤Î¥ª¥×¥·¥ç ¥óŪ¤ÊÀë¸À¤ò²Äǽ¤Ë¤·¡¢¤½¤ì¤Ë¤è¤ê¤½¤ì¤¬¸«¤Ä¤«¤ë¥³¡¼¥É¥Ö¥í¥Ã¥¯ÆâÉô¤Ë¤½¤Î ͸úÈϰϤòÀ©¸Â¤¹¤ë¤â¤Î¤Ç¤¹¡£¤³¤Î¥³¡¼¥É¥Ö¥í¥Ã¥¯¤È¤Ï¡¢load ¤ä call ¤ÎÂоݡ¢´Ø¿ô¥Ö¥í¥Ã¥¯¤Îɾ²Á¡¢¤½¤·¤Æ¾ò·ï if, else, do for, while ¤Î¸å¤Ë³¤¯Ãæ³ç¸ÌÆâ¤Î¥³¡¼¥É¤Ç¤¹¡£ ¶É½ê (local) ÊÑ¿ô¤Î̾Á°¤¬Âç°è (global) ÊÑ¿ô¤È½Å¤Ê¤Ã¤¿¾ì¹ç¡¢¤½¤Î¶É½êÊÑ ¿ô¤Î͸úÈϰϤ«¤éÈ´¤±¤ë¤Þ¤Ç¤Ï¡¢Âç°èÊÑ¿ô¤Ï±£¤µ¤ì¤Þ¤¹¡£
four = "4" graph4 = "Title for plot #4" graph(n) = sprintf("Title for plot #%d",n)
plot 'data.4' title "Title for plot #4" plot 'data.4' title graph4 plot 'data.4' title "Title for plot #".four plot 'data.4' title graph(4)
À°¿ô¤Ï¡¢¤½¤ì¤¬Ê¸»úÎó·ë¹ç±é»»»Ò (ʸ»ú '.') ¤Ë¤è¤Ã¤ÆºîÍѤµ¤ì¤¿¾ì¹ç¤Ï¡¢Ê¸ »úÎó¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢°Ê²¼¤ÎÎã¤â¾å¤ÈƱÍͤËÆ°ºî¤·¤Þ¤¹:
N = 4 plot 'data.'.N title "Title for plot #".N
°ìÈ̤ˡ¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î³ÆÍ×ÁǤϡ¢¤½¤ì¤é¤¬É¸½àŪ¤Ê gnuplot ¤Ø¤ÎÌ¿Îáʸ Ë¡¤Î°ìÉôʬ¤Èǧ¼±¤µ¤ì¤ë¤â¤Î°Ê³°¤Ï¡¢Í¸ú¤Êʸ»úÎóÊÑ¿ô¤È¤·¤Æ¤Îɾ²Á¤Î¤ß¤¬¹Ô ¤Ê¤ï¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°Ê²¼¤Î¥³¥Þ¥ó¥ÉÎó¤Ï¡¢¶²¤é¤¯¤Ïº®Íð¤ò°ú¤µ¯¤³¤µ¤Ê¤¤¤è ¤¦¤ËÈò¤±¤é¤ì¤ë¤Ù¤¤Ç¤¹¤¬¡¢Ê¸Ë¡Åª¤Ë¤Ï´Ö°ã¤Ã¤Æ¤Ï¤¤¤Þ¤»¤ó:
plot = "my_datafile.dat" title = "My Title" plot plot title title
eos = strlen(file) if (file[eos-3:*] eq ".dat") { set output file[1:eos-4] . ".png" plot file }
ƱÅù¤Î´Ø¿ô substr( string, begin, end ) ¤â¤¢¤ê¤Þ¤¹¡£
if ("A"."B" eq "AB") print "TRUE"
set encoding utf8 utf8string = "¦Á¦Â¦Ã" strlen(utf8string) ¤Ï 3 ¤òÊÖ¤¹ (ʸ»ú¿ô¤Ç¤¢¤Ã¤Æ¡¢¥Ð¥¤¥È¿ô¤Ç¤Ï¤Ê¤¤) utf8string[2:2] ¤Ï "¦Â" ¤È¤Ê¤ë strstrt(utf8string,"¦Â") ¤Ï 2 ¤È¤Ê¤ë
(ÌõÃí: ¤¤¤º¤ì¤â UTF-8 ¥¨¥ó¥É¡¼¥É¤ÇÍ¿¤¨¤¿¾ì¹ç)
Ãí°Õ: ÆâÉô¤ÎÉüµ¢ (' \r') ¤È²þ¹Ô (' \n') ʸ»ú¤Ï¡¢ÃÖ´¹¸å¤Îʸ»úÆþÎϤ«¤é¼è ¤ê½ü¤¤Þ¤»¤ó¡£
¥³¥Þ¥ó¥ÉÃÖ´¹¤Ï¡¢Ã±°ì°úÍÑÉäÆâ¤Îʸ»úÎó°Ê³°¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤ ¥óÃæ¡¢¤É¤³¤Ç¤Ç¤â»ÈÍѲÄǽ¤Ç¤¹¡£
Î㤨¤Ð¡¢°Ê²¼¤Ï¸½ºß¤ÎÆüÉդȥ桼¥¶¡¼Ì¾¤Î¥é¥Ù¥ë¤òÀ¸À®¤·¤Þ¤¹:
set label "generated on `date +%Y-%m-%d` by `whoami`" at 1,1 set timestamp "generated on %Y-%m-%d by `whoami`"
°Ê²¼¤Ï¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥Õ¥¡¥¤¥ë̾¤«¤é¤Ê¤ëÇÛÎó¤òÀ¸À®¤·¤Þ¤¹:
FILES = split( "`ls -1`" )
style1 = "lines lt 4 lw 2" style2 = "points lt 3 pt 5 ps 2" range1 = "using 1:3" range2 = "using 1:5" plot "foo" @range1 with @style1, "bar" @range2 with @style2
¤³¤Î @ µ¹æ¤ò´Þ¤à¹Ô¤Ï¡¢¤½¤ÎÆþÎÏ»þ¤ËŸ³«¤µ¤ì¡¢¤½¤ì¤¬¼ÂºÝ¤Ë¼Â¹Ô¤µ¤ì¤ë¤È ¤¤Ë¤Ï¼¡¤Î¤è¤¦¤ËÁ´ÉôÂǤÁ¹þ¤ó¤À¾ì¹ç¤ÈƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
plot "foo" using 1:3 with lines lt 4 lw 2, \ "bar" using 1:5 with points lt 3 pt 5 ps 2
´Ø¿ô exists() ¤Ï¥Þ¥¯¥í¤Îɾ²Á¤Ë´Ø¤·¤ÆÍÍѤǤ·¤ç¤¦¡£°Ê²¼¤ÎÎã¤Ï¡¢C ¤¬°ÂÁ´ ¤Ë¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤Î̾Á°¤ËŸ³«¤Ç¤¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£
C = "pi" if (exists(C)) print C," = ", @C
¥Þ¥¯¥í¤ÎŸ³«¤Ï¡¢Ã±°ì°úÍÑÉäÆâ¡¢¤Þ¤¿¤ÏÆó½Å°úÍÑÉäÆâ¤Ç¤Ï¹Ô¤Ê¤ï¤ì¤Þ¤»¤ó¤¬¡¢ µÕ°úÍÑÉä (¡®) Æâ¤Ç¤Ï¥Þ¥¯¥íŸ³«¤µ¤ì¤Þ¤¹¡£
¥Þ¥¯¥í¤ÎŸ³«¤Ï¡¢gnuplot ¤¬¿·¤·¤¤¥³¥Þ¥ó¥É¹Ô¤ò¸«¤¿¤È¤¤ËÈó¾ï¤ËÁᤤÃʳ¬¤Ç gnuplot ¤¬½èÍý¤·¡¢¤½¤·¤Æ¤¿¤À°ìÅÙ¤À¤±¤½¤ì¤ò¹Ô¤¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢
A = "c=1" @A
¤Î¤è¤¦¤Ê¥³¡¼¥É¤ÏÀµ¤·¤¯¼Â¹Ô¤·¤Þ¤¹¤¬¡¢°Ê²¼¤Î¤è¤¦¤Ê¹Ô¤Ï¤À¤á¤Ç¤¹¡£¤½¤ì¤Ï¡¢ ¥Þ¥¯¥í¤ÎÄêµÁ¤¬Æ±¤¸¹Ô¤Ë¤¢¤ë¤¿¤áŸ³«¤Ë´Ö¤Ë¹ç¤ï¤Ê¤¤¤«¤é¤Ç¤¹¡£
A = "c=1"; @A # will not expand to c=1
·«¤êÊÖ¤·ÍѤÎÃæ³ç¸ÌÆâ¤Ç¤Î¥Þ¥¯¥í¤ÎŸ³«¤Ï¡¢¤½¤Î¥ë¡¼¥×¤¬¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¹Ô¤¤ ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥ë¡¼¥×Æâ¤Ç¤Ï A ¼«ÂΤòºÆÄêµÁ¤·¤Æ¤â¡¢@A ¤Ï¾ï¤Ë A ¤Î¸µ¤Î ÃͤËŸ³«¤µ¤ì¤Þ¤¹¡£
¥³¥Þ¥ó¥É¤ò´°À®¤µ¤»¤Æ¼Â¹Ô¤¹¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É evaluate ¤âÍÍѤǤ·¤ç¤¦¡£
filename = "mydata.inp" lines = ` wc --lines @filename | sed "s/ .*//" `
¤Ï¡¢mydata.ipn ¤Î¹Ô¿ô¤òÀ°¿ôÊÑ¿ô lines ¤ËÊݸ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Þ¤¿¡¢ Æó½Å°úÍÑÉä¤ÏµÕ°úÍÑÉä¤ÎÃÖ´¹¤ò˸¤²¤Ê¤¤¤Î¤Ç¡¢
mycomputer = "`uname -n`"
¤Ï¡¢¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É uname -n ¤ÎÊÖ¤¹Ê¸»úÎó¤òʸ»úÎóÊÑ¿ô mycomputer ¤Ë Êݸ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¤·¤«¤·¡¢¥Þ¥¯¥íÃÖ´¹¤ÏÆó½Å°úÍÑÉäÆâ¤Ç¤Ïµ¡Ç½¤·¤Ê¤¤¤Î¤Ç¡¢¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤ò ¥Þ¥¯¥í¤È¤·¤ÆÄêµÁ¤·¤Æ¤½¤ì¤ò¥Þ¥¯¥í¤È¤·¤ÆÍøÍѤ·¤«¤ÄµÕ°úÍÑÉäÃÖ´¹¤ò¹Ô¤Ê¤¦¤³ ¤È¤Ï¤Ç¤Ç¤¤Þ¤»¤ó¡£
machine_id = "uname -n" mycomputer = "`@machine_id`" # ¤¦¤Þ¤¯¤¤¤«¤Ê¤¤ !
¤³¤Î¼ºÇԤϡ¢Æó½Å°úÍÑÉ䤬 @machine_id ¤ò¥Þ¥¯¥í¤È¤·¤Æ²ò¼á¤¹¤ë¤³¤È¤ò˸¤² ¤Æ¤¤¤ë¤«¤é¤Ç¤¹¡£¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤ò¥Þ¥¯¥í¤È¤·¤ÆÊݸ¤·¡¢¤½¤Î¸å¤½¤ì¤ò¼Â¹Ô ¤¹¤ë¤Ë¤Ï¡¢µÕ°úÍÑÉ伫ÂΤâ¥Þ¥¯¥íÆâ¤Ë´Þ¤á¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï°Ê²¼¤Î¤è ¤¦¤Ë¥Þ¥¯¥í¤òÄêµÁ¤¹¤ë¤³¤È¤Ç¼Â¸½¤Ç¤¤Þ¤¹¡£sprintf ¤Î½ñ¼°¤Ë¤Ï 3 ¼ïÎà¤Î°ú ÍÑÉäÁ´¤Æ¤¬Æþ¤ì»Ò¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
machine_id = sprintf('"`uname -n`"') mycomputer = @machine_id
¥³¥ó¥Þ¤Ï°Ê²¼¤Î¶èÀÚ¤ê¤Ç»ÈÍѤµ¤ì¤Þ¤¹¡£set ¥³¥Þ¥ó¥É¤Î arrow, key, label ¤ÎºÂɸ; Åö¤Æ¤Ï¤á (fit) ¤é¤ì¤ëÊÑ¿ô¤Î¥ê¥¹¥È (¥³¥Þ¥ó¥É fit ¤Î¥ ¡¼¥ï¡¼¥É via ¤Ë³¤¯¥ê¥¹¥È); ¥³¥Þ¥ó¥É set cntrparam ¤Ç»ØÄꤵ¤ì¤ë¤È ¤Ó¤È¤Ó¤ÎÅù¹âÀþ¤ÎÃͤ䤽¤Î¥ë¡¼¥×¥Ñ¥é¥á¡¼¥¿¤Î¥ê¥¹¥È; set ¥³¥Þ¥ó¥É¤Î dgrid3d dummy, isosamples, offsets, origin, samples, size, time, view ¤Î°ú¿ô; ÌÜÀ¹¤ê¤Î°ÌÃ֤䤽¤Î¥ë¡¼¥×¥Ñ¥é¥á¡¼¥¿¤Î¥ê ¥¹¥È; ¥¿¥¤¥È¥ë¤ä¼´¤Î¸«½Ð¤·¤Î°ÌÃÖ; plot, replot, splot ¥³¥Þ¥ó¥É¤Î x,y,z ºÂɸ¤Î·×»»¤Ë»È¤ï¤ì¤ëÇÞ²ðÊÑ¿ô´Ø¿ô¤Î¥ê¥¹¥È; plot, replot, splot ¥³¥Þ¥ó¥É¤ÎÊ£¿ô¤ÎÉÁ²è (¥Ç¡¼¥¿¡¢¤Þ¤¿¤Ï´Ø¿ô) ¤Î¤½¤ì¤¾¤ì¤Î°ìÏ¢¤Î¥ ¡¼¥ï¡¼¥É¤Î¥ê¥¹¥È¡£
(´Ý) ¥«¥Ã¥³¤Ï¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¤ò (¥ë¡¼¥×¥Ñ¥é¥á¡¼¥¿¤Ç¤Ï¤Ê¤¯) ÌÀ¼¨Åª¤Ë½¸ ¹çÍ¿¤¨¤ë¾ì¹ç¤Î¶èÀÚ¤ê¤È¤·¤Æ¡¢¤Þ¤¿¤Ï fit, plot, replot, splot ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤Ç¤Î·×»»¤ò»Ø¼¨¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£
(¥«¥Ã¥³¤ä¥³¥ó¥Þ¤ÏÄ̾ï¤Î´Ø¿ô¤Îɽµ¤Ç¤â»È¤ï¤ì¤Þ¤¹¡£)
¤«¤®¤«¤Ã¤³¤Ï¡¢set, plot, splot ¥³¥Þ¥ó¥É¤Ç¤ÏÈϰϤò¶èÀÚ¤ë¤Î¤Ë»È¤ï ¤ì¤Þ¤¹¡£
¥³¥í¥ó¤Ï range (ÈÏ°Ï) »ØÄê (set, plot, splot ¥³¥Þ¥ó¥É¤Ç»È¤ï¤ì ¤ë) ¤Îξü¤ÎÃͤò¶èÀÚ¤ë¤Î¤Ë¡¢¤Þ¤¿¤Ï plot, replot, splot, fit ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤Î³Æ¥¨¥ó¥È¥ê¤ò¶èÀÚ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
¥»¥ß¥³¥í¥ó (;) ¤Ï¡¢°ì¹Ô¤Î¥³¥Þ¥ó¥É¹ÔÆâ¤ÇÍ¿¤¨¤é¤ì¤ëÊ£¿ô¤Î¥³¥Þ¥ó¥É¤ò¶èÀÚ ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
Ã楫¥Ã¥³ ({}) ¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤Îµ½Ò¤ä¡¢ if/then/else ʸ¤Î¥Ö¥í¥Ã¥¯¤Î¶èÀÚ¤ê¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¤·¡¢¤Þ¤¿¤ÏÊ£ÁÇ¿ô¤òµ ½Ò¤¹¤ë¤Î¤Ë¤â»È¤ï¤ì¤Þ¤¹: {3,2} = 3 + 2i ¤È¤Ê¤ê¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤Ç°Ï¤ß¤Þ¤¹¡£¤³¤Î¥Þ¥Ë¥å¥¢¥ë ¤Ç¤Ï°ìÈ̤˥³¥Þ¥ó¥É¤ÎÎ㼨¤Ç¤Ï¡¢¤ï¤«¤ê¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ë¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°ú ÍÑÉä¤Ç¤¯¤¯¤ê¡¢Â¾¤Îʸ»úÎó¤ÏÆó½Å°úÍÑÉä¤Ç¤¯¤¯¤ê¤Þ¤¹¡£
¸«½Ð¤· (label)¡¢¥¿¥¤¥È¥ë (title)¡¢¤Þ¤¿¤Ï¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤǻÈÍѤµ¤ì¤ëʸ »úÎóÄê¿ô¤äÊ£¿ô¹Ôʸ»úÎó¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤Ç°Ï¤ß¤Þ¤¹¡£°ú ÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Î¤µ¤é¤Ê¤ë½èÍý¤Î·ë²Ì¤Ï¡¢¤É¤Î°úÍÑÉäµ¹æ¤òÁª¤Ö¤«¤Ë¤è ¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£
\n (²þ¹Ô) ¤ä \345 (8 ¿Êɽµ¤Îʸ»ú¥³¡¼¥É) ¤Î¤è¤¦¤Ê¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤Ë¤è¤ëÆüìʸ»úɽ¸½¤Ï¡¢2 ½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£Ã±°ì°ú ÍÑÉäÆâ¤Ç¤Ï¡¢¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¼«ÂΤ¬Ä̾ï¤Îʸ»ú¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£Ã±°ì°úÍÑÉä Æâ¤Îʸ»úÎó¤Çñ°ì°úÍÑÉ伫ÂÎ (ASCII ¥³¡¼¥É 39 ÈÖ) ¤ò»È¤¦¤Ë¤Ï¡¢¤½¤ì¤ò½Å¤Í ¤Æ½ñ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢Ê¸»úÎó "d \" s' b \ \" ¤È¡¢'d" s' ' b \' ¤Ï´° Á´¤ËƱ¤¸¤â¤Î¤È¤Ê¤ê¤Þ¤¹¡£
1 ¤Ä¤ÎÊ£¿ô¹Ôʸ»úÎó¤Ë´Ø¤¹¤ë¹Ô·¤¨¤Ï³Æ¹Ô¤ËƱÅù¤ËƯ¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ãæ±û¤Ë ¹Ô·¤¨¤µ¤ì¤¿Ê¸»úÎó
"This is the first line of text.\nThis is the second line."
¤Ï¼¡¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹:
This is the first line of text. This is the second line.
¤·¤«¤·
'This is the first line of text.\nThis is the second line.'
¤À¤È¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
This is the first line of text.\nThis is the second line.
³Èĥʸ»úÎó½èÍý (enhanced text processing) ¤ÏÆó½Å°úÍÑÉä¤ËÂФ·¤Æ¤âñ°ì°ú ÍÑÉä¤ËÂФ·¤Æ¤âµ¡Ç½¤·¤Þ¤¹¡£°Ê²¼»²¾È: enhanced text (13)¡£
µÕ°úÍÑÉä¤Ï,¥³¥Þ¥ó¥É¥é¥¤¥óÃæ¤ÎÃÖ´¹¤Î¤¿¤á¤Ë¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤ò°Ï¤à¤Î¤Ë»È ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: substitution (29)¡£
ÆâÉô¤Ç¤ÏÁ´¤Æ¤Î»þ´Ö/ÆüÉÕ¤Ï 1970 ǯ¤«¤é¤ÎÉÿô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É set timefmt ¤ÏÁ´¤Æ¤ÎÆþÎϤËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î½ñ¼°¤òÄêµÁ¤·¤Þ¤¹¡£¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¡¢ÈÏ°Ï¡¢¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¥é¥Ù¥ë¤Î°ÌÃ֤ȡ¢Æü»þ¥Ç¡¼¥¿Ãͤò¼õ¤± Æþ¤ì¤ë¤¹¤Ù¤Æ¤Î¤â¤Î¤Ø¤ÎÆþÎϤνñ¼°¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤³¤ì¤Ë¤Ê¤ê¤Þ¤¹¡£°ì»þ¤Ë ¤Ï°ì¤Ä¤Î¥Ç¥Õ¥©¥ë¥ÈÆþÎϽñ¼°¤Î¤ß¤¬Í¸ú¤Ç¤¹¡£¤è¤Ã¤Æ¡¢¥Õ¥¡¥¤¥ëÆâ¤Î x ¤È y ¤ÎξÊý¤¬»þ´Ö/ÆüÉեǡ¼¥¿¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤ÏƱ¤¸½ñ¼°¤È²ò ¼á¤µ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢using »ØÄê¤Ç´Ø¿ô timecolumn ¤òÍѤ¤¤Æ¡¢¤½¤ì¤ËÂбþ¤¹¤ëÆÃÄê¤Î¥Õ¥¡¥¤¥ë¤äÎ󤫤é¥Ç¡¼¥¿¤òÆɤߤ³¤à¤³¤È¤Ë¤è ¤ê¡¢ÊѤ¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
Éÿô¤Ø (Éÿô¤«¤é) ¤ÎÊÑ´¹¤Ï¹ñºÝɸ½à»þ (UT; ¥°¥ê¥Ë¥Ã¥¸É¸½à»þ (GMT) ¤ÈƱ ¤¸) ¤¬»È¤ï¤ì¤Þ¤¹¡£³Æ¹ñɸ½à»þ¤ä²Æ»þ´Ö¤Ø¤ÎÊÑ´¹¤Îµ¡Ç½¤Ï²¿¤â»ý¤Á¹ç¤ï¤»¤Æ¤¤ ¤Þ¤»¤ó¡£¤â¤·¥Ç¡¼¥¿¤¬¤¹¤Ù¤ÆƱ¤¸É¸½à»þ´ÖÂӤ˽¾¤Ã¤Æ¤¤¤ë¤Ê¤é (¤½¤·¤ÆÁ´¤Æ¤¬ ²Æ»þ´Ö¤«¡¢¤½¤¦¤Ç¤Ê¤¤¤«¤Î¤É¤Á¤é¤«°ìÊý¤Ë¤Î¤ß½¾¤¦¤Ê¤é) ¤³¤ì¤Ë´Ø¤·¤Æ²¿¤â¿´ ÇÛ¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤·¤«¤·¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÇÀäÂРŪ¤Ê»þ¹ï¤ò¸·Ì©¤Ë¹Í»¡¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¾ì¹ç¤Ï¡¢¤¢¤Ê¤¿¼«¿È¤¬ UT ¤ËÊÑ´¹¤¹ ¤Ù¤¤Ç¤·¤ç¤¦¡£
show xrange ¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤Ï¡¢¤½¤ÎÀ°¿ôÃͤò timefmt ¤Ë½¾¤Ã¤Æ²ò¼á ¤·Ä¾¤·¤Þ¤¹¡£timefmt ¤òÊѹ¹¤·¤Æ¤â¤¦°ìÅÙ show ¤Ç¤½¤ÎÃͤòɽ¼¨¤µ¤»¤ë¤È¡¢ ¤½¤ì¤Ï¿·¤·¤¤ timefmt ¤Ë½¾¤Ã¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢(set xdata ¤Ê ¤É¤Ë¤è¤ê) ¤½¤Î¼´¤ËÂФ¹¤ë¥Ç¡¼¥¿·¿¤ò¥ê¥»¥Ã¥È¤¹¤ë¤È¡¢¤½¤ÎÃͤÏÀ°¿ôÃͤȤ·¤Æ ɽ¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¥³¥Þ¥ó¥É set format ¤Þ¤¿¤Ï set tics format ¤Ï¡¢»ØÄꤵ¤ì¤¿¼´¤ËÂФ¹ ¤ëÆþÎϤ¬»þ´Ö/ÆüÉդǤ¢¤ë¤Ê¤·¤Ë´Ø¤ï¤é¤ºÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ë»È¤ï¤ì¤ë½ñ¼°¤òÄê µÁ¤·¤Þ¤¹¡£
»þ´Ö/ÆüÉÕ¾ðÊ󤬥ե¡¥¤¥ë¤«¤éÉÁ²è¤µ¤ì¤ë¾ì¹ç¡¢plot, splot ¥³¥Þ¥ó¥É¤Ç ¤Ï using ¥ª¥×¥·¥ç¥ó¤ò¡Öɬ¤º¡×»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£plot, splot ¤Ç ¤Ï³Æ¹Ô¤Î¥Ç¡¼¥¿Îó¤ÎʬΥ¤Ë¥¹¥Ú¡¼¥¹¤ò»È¤¤¤Þ¤¹¤¬¡¢»þ´Ö/ÆüÉեǡ¼¥¿¤Ï¤½¤ÎÃæ ¤Ë¥¹¥Ú¡¼¥¹¤ò´Þ¤ßÆÀ¤ë¤«¤é¤Ç¤¹¡£¤â¤·¥¿¥Ö¶èÀÚ¤ê¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Î¤Ê¤é¡¢¤¢¤Ê ¤¿¤Î¥·¥¹¥Æ¥à¤¬¤½¤ì¤ò¤É¤¦°·¤¦¤«³Î¤«¤á¤ë¤¿¤á¤Ë²¿ÅÙ¤â¥Æ¥¹¥È¤¹¤ëɬÍפ¬¤¢¤ë ¤Ç¤·¤ç¤¦¡£
´Ø¿ô time ¤Ï¡¢¸½ºß¤Î¥·¥¹¥Æ¥à»þ¹ï¤òÆÀ¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¤³¤ÎÃͤϡ¢ strftime ´Ø¿ô¤ÇÆü»þʸ»úÎó¤ËÊÑ´¹¤Ç¤¤Þ¤¹¤·¡¢timecolumn ¤ÈÁȤ߹ç¤ï¤» ¤ÆÁêÂÐŪ¤ÊÆü»þ¥°¥é¥Õ¤òºîÀ®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£°ú¿ô¤Î·¿¤Ï¤½¤ì¤¬ÊÖ¤¹¤â¤Î ¤ò·èÄꤷ¤Þ¤¹¡£°ú¿ô¤¬À°¿ô¤Î¾ì¹ç¤Ï time() ¤Ï¸½ºß¤Î»þ¹ï¤ò 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÀ°¿ô¤È¤·¤ÆÊÖ¤·¡¢°ú¿ô¤¬¼Â¿ô (¤Þ¤¿¤ÏÊ£ÁÇ¿ô) ¤Ê¤é¤ÐƱÍͤÎÃͤò¼Â¿ô ¤È¤·¤ÆÊÖ¤·¤Þ¤¹¤¬¡¢¾®¿ô (Éðʲ¼) Éôʬ¤ÎÀºÅ٤ϡ¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à ¤Ë°Í¸¤·¤Þ¤¹¡£°ú¿ô¤¬Ê¸»úÎó¤Ê¤é¤Ð¡¢¤½¤ì¤ò½ñ¼°Ê¸»úÎó¤Ç¤¢¤ë¤È¤ß¤Ê¤·¡¢½ñ¼° ²½¤µ¤ì¤¿Æü»þʸ»úÎó¤òÄ󶡤¹¤ë¤è¤¦¤½¤ì¤ò strftime ¤ËÅϤ·¤Þ¤¹¡£
¼¡¤ÎÎã¤Ï»þ´Ö/ÆüÉեǡ¼¥¿¤ÎÉÁ²è¤ÎÎã¤Ç¤¹¡£
¥Õ¥¡¥¤¥ë "data" ¤Ï°Ê²¼¤Î¤è¤¦¤Ê¹Ô¤«¤é¤Ê¤ë¤È¤·¤Þ¤¹:
03/21/95 10:00 6.02e23
¤³¤Î¥Õ¥¡¥¤¥ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹:
set xdata time set timefmt "%m/%d/%y" set xrange ["03/21/95":"03/22/95"] set format x "%m/%d" set timefmt "%m/%d/%y %H:%M" plot "data" using 1:3
¤³¤³¤Ç¡¢x ¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ï "03/21" ¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
¸½ºß¤Î gnuplot ¤Ï¡¢»þ¹ï¤ò¥ß¥êÉÃÀºÅÙ¤ÇÄÉÀפ·¡¢»þ¹ï¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤â¤½¤ì ¤Ëȼ¤Ã¤ÆÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ Îã: ¸½ºß¤Î»þ¹ï¤ò¥ß¥êÉÃÀºÅÙ¤Çɽ¼¨
print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0)) 18:15:04.253 16-Apr-2011
°Ê²¼»²¾È: time_specifiers (112.31.3), set xtics time (112.123.3), set mxtics time (112.57.1)¡£
½ñ¼°:
plot FOO watch {x|y|z|F(x,y)} = <value> plot FOO watch mouse
set style watchpoints nolabels set style watchpoints label <label-properties>
unset style watchpoints # ¥Ç¥Õ¥©¥ë¥È¥¹¥¿¥¤¥ë¤ËÌ᤹
show watchpoints # ľÁ°¤Î plot ¥³¥Þ¥ó¥É¤«¤é¤Î¤¹¤Ù¤Æ¤Î¥¦¥©¥Ã¥Á # ¥Ý¥¤¥ó¥È¤òÍ×Ìóɽ¼¨
°ì¤Ä¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢x, y, z ºÂɸ¡¢¤Þ¤¿¤Ï´Ø¿ô f(x,y) ¤ËÂФ¹¤ë°ì¤Ä ¤ÎÂоÝÃͤǤ¹¡£³Æ¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢¥³¥Þ¥ó¥É plot Æâ¤Î°ì¤Ä¤Î¥°¥é¥Õ¤Ë Éտ路¤Þ¤¹¡£¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢with lines ¤È with linespoints ¤Î ÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Î¤ßµ¡Ç½¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¤½¤Î¥°¥é¥Õ¤Î¤¹¤Ù¤Æ¤Î¹½À®Àþʬ¤Ë ÂФ·¡¢¤½¤Î¥°¥é¥Õ¤ËÉտ魯¤ë¤¹¤Ù¤Æ¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤¬¥Á¥§¥Ã¥¯¤µ¤ì¡¢°ì¤Ä °Ê¾å¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤ÎÂоݤ¬¤½¤ÎÀþʬ¾å¤ÎÅÀ¤ÇËþ¤¿¤µ¤ì¤ë¤«¤É¤¦¤«¤òÄ´¤Ù ¤Þ¤¹¡£Âоݾò·ï¤òËþ¤¿¤¹ (¡Ö¥Ò¥Ã¥È¡×("hits") ¤È¸Æ¤Ó¤Þ¤¹) ÅÀ¤Î°ìÍ÷¤Ï¡¢¥° ¥é¥Õ¤ÎÉÁ²èËè¤ËÎßÀѤµ¤ì¤Þ¤¹¡£
Î㤨¤Ð¡¢ÂоÝÃÍ y=100 ¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤¬¤¢¤ë¾ì¹ç¡¢³ÆÀþʬ¤ËÂФ·¤Æ¡¢¤½ ¤ÎξüÅÀ¤Î y ºÂɸ¤¬¤½¤ÎÂоÝÃͤò¶´¤ó¤Ç¤¤¤ë¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£¤â¤·¤½¤¦ ¤Ê¤é¡¢¤½¤ÎÀþʬ¾å¤Î¤¢¤ëÅÀ [x,y] ¤¬¡¢Âоݾò·ï y=100 ¤ò´°Á´¤ËËþ¤¿¤¹¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹¡£¤½¤·¤ÆÀþ·ÁÊä´Ö¡¢¤Þ¤¿¤Ï 2 ʬȿÉüË¡¤Ë¤è¤ê¤½¤ÎÂоÝÅÀ¤¬¸«¤Ä¤«¤ê ¤Þ¤¹¡£
°ì¤Ä¤Î plot ¥³¥Þ¥ó¥É¾å¤ÎÊ£¿ô¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢½çÈÖ¤ËÈÖ¹æ¤Å¤±¤·¤Þ¤¹¡£ ³ÆÉÁ²èÍ×ÁÇËè¤Ë¡¢1 ¤Ä°Ê¾å¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤ò»ØÄê¤Ç¤¤Þ¤¹¡£ Îã:
plot DATA using 1:2 smooth cnormal watch y=0.25 watch y=0.5 \ watch y=0.75
gnuplot> show watchpoints Plot title: "DATA using 1:2 smooth cnormal" Watch 1 target y = 0.25 (1 hits) hit 1 x 49.7 y 0.25 Watch 2 target y = 0.5 (1 hits) hit 1 x 63.1 y 0.5 Watch 3 target y = 0.75 (1 hits) hit 1 x 67.8 y 0.75
Ê¿³ê²½: Àþʬ¤Ï¡¢¤½¤ì¤é¤òÉÁ²è¤¹¤ëºÝ¤Ë¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£Ê¿³ê²½¤·¤Ê¤¤¥Ç¡¼¥¿ ÉÁ²è¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤Ï¡¢Êä´Ö¤Ë¤è¤Ã¤Æ¸«¤Ä¤«¤ëÂоÝÅÀ¤Ï¡¢2 ¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤ò ·ë¤ÖÀþʬ¤Î¾å¤Ë´°Á´¤Ë¾è¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ç¡¼¥¿¥°¥é¥Õ¤òÊ¿³ê²½¤¹¤ë¾ì¹ç ¤Ï¡¢¥Ò¥Ã¥È¤¹¤ëÅÀ¤ÏÊ¿³ê²½¤µ¤ì¤¿¶ÊÀþ¤ËÂФ¹¤ëÀþʬ¤Î¾å¤Ë¤¢¤ê¤Þ¤¹¡£¤½¤ì¤¬Ê¿ ³ê²½¤·¤Ê¤¤¥Ç¡¼¥¿¤ËÂФ¹¤ëÂоÝÅÀ¤è¤ê¤âÀºÅÙ¤¬Îɤ¤¤«°¤¤¤«¤Ï¡¢Ê¿³ê²½¤ÎÅö¤Æ ¤Ï¤á¤Î¼Á¤Ë°Í¸¤·¤Þ¤¹¡£
ÀºÅÙ: Àþʬ¤¬´Ø¿ôÉÁ²è¤ÇÀ¸À®¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ì¤Ð¡¢f(x) = y ¤È¤Ê¤ë x ¤ÎÃÍ¤Ï 2 ʬȿÉüË¡¤Ç¸«¤Ä¤±¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢¤½¤ÎÀþʬ¤Ë±è¤¦Àþ·ÁÊä´Ö¤ÇºÂɸ [x,y] ¤ò¶á»÷¤·¤Þ¤¹¡£
¸½ºß¤Î¥Þ¥¦¥¹ x ºÂɸ¤ò¥¦¥©¥Ã¥ÁÂоݤȤ·¤Æ»ÈÍѤ¹¤ë¤È¡¢¥Þ¥¦¥¹¤Î¿åÊ¿°ÌÃÖ¤ò ÄÉÀפ·¤Ê¤¬¤é¡¢¥°¥é¥Õ¤ÎÀþ¤Ë±è¤Ã¤Æ°ÜÆ°¤¹¤ë¥é¥Ù¥ë¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê Ʊ¤¸¥°¥é¥Õ¾å¤ÎÊ£¿ô¤Î¶ÊÀþ¤Î y ¤ÎÃͤòƱ»þ¤Ëɽ¼¨¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¸½ºß ¤Î°ÌÃÖ¤ò¼¨¤¹ÅÀ¤È¥é¥Ù¥ë¤Î¸«¤¿Ìܤϡ¢set style watchpoint ¤ÇÊѹ¹¤Ç¤¤Þ ¤¹¡£
Îã:
set style watchpoint labels point pt 6 ps 2 boxstyle 1 set style textbox 1 lw 0.5 opaque plot for [i=1:N] "file.dat" using 1:(column(i)) watch mouse
Îã:
set y2tics format "%.2f<C2><B0>" set style watchpoint labels point pt 6 plot FOO axes x1y2 watch mouse
gnuplot ¤Ç¤Ï¡¢¤¿¤¯¤µ¤ó¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤¬ÍøÍѤǤ¤Þ¤¹¡£ ¤½¤ì¤é¤Ï¡¢¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë°Ê²¼¤Ë¾Ò²ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥³¥Þ¥ó¥É set style data ¤È set style function ¤Ï¡¢¤½¤ì°Ê¹ß¤Î plot ¤ä splot ¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤òÊѹ¹ ¤·¤Þ¤¹¡£
ÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢¥³¥Þ¥ó¥É plot ¤ä splot ¤Î°ìÉôʬ¤È¤·¤Æ¡¢ÌÀ¼¨Åª¤Ë¥ª ¥×¥·¥ç¥ó»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£°ì¤Ä¤ÎÉÁ²è¤ÎÃæ¤Ç¡¢Ê£¿ô¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò ÁȤ߹ç¤ï¤»¤¿¤¤¾ì¹ç¤Ï¡¢³ÆÍ×ÁǤËÂФ·¤ÆÉÁ²è¥¹¥¿¥¤¥ë¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£
Îã:
plot 'data' with boxes, sin(x) with lines
³ÆÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢¤½¤ì¼«ÂΤ¬¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¤¤¤¯¤Ä¤«¤Î¥Ç¡¼¥¿¤ÎÁÈ ¤ò´üÂÔ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï lines ¥¹¥¿¥¤¥ë¤Ï¡¢y ¤ÎÃͤÀ¤±¤Î 1 Îó¤Î¥Ç¡¼¥¿ (x ¤ÎÃͤϰÅÌۤ˽çÈ֤˼è¤é¤ì¤ë)¡¢¤Þ¤¿¤ÏºÇ½é¤¬ x, ¼¡¤¬ y ¤Î 2 ¤Ä¤ÎÎó¤ò´üÂÔ¤·¤Æ¤¤¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤Î²¿Îó¤Î¥Ç¡¼¥¿¤òÉÁ²è¥Ç¡¼¥¿¤È²ò¼á¤µ¤» ¤ë¤¦¤Þ¤¤ÊýË¡¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using (99.3.11)¡£
4 Îó: x y length angle
¥¡¼¥ï¡¼¥É with arrows ¤Î¸å¤í¤Ë¤Ï¡¢¥¤¥ó¥é¥¤¥ó¤Î arrow style °À¤ä¡¢ ÄêµÁºÑ¤ß¤Î arrow style ¤Î»²¾È¡¢¤Þ¤¿ arrowstyle variable ¤Ë¤è¤ë³ÆÌð°õ Ëè¤ËŬÍѤ·¤¿¤¤ arrow style ÈÖ¹æ¤ò¾¤ÎÎ󤫤éÆɤ߹þ¤Þ¤»¤ë¤³¤È¡¢¤Ê¤É¤ò ÄɲûØÄê¤Ç¤¤Þ¤¹¡£
Àµ¤Î length Ãͤϡ¢x ¼´¤ÎºÂɸ¤Ç²ò¼á¤·¤Þ¤¹¡£ -1 < length < 0 ¤ÎÃͤϡ¢¿åÊ¿¥°¥é¥ÕºÂɸ¡¢¤¹¤Ê¤ï¤Á |length| ¤òÁ´ÂΤΥ° ¥é¥ÕÉý¤ËÂФ¹¤ë³ä¹ç¤È¤·¤Æ²ò¼á¤·¤Þ¤¹¡£ gnuplot ¤Ï x ¤È y ¤Î³ÈÂçΨ¤Îº¹¡¢¤Þ¤¿¤ÏÉÁ²è¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ë´Ø¤·¤ÆÄ´À°¤·¤Æ¡¢ ¸«¤¿ÌܤÎŤµ¤¬Êý¸þ³Ñ¤È¤ÏÆÈΩ¤Ç¤¢¤ë¤è¤¦¤Ë¤·¤è¤¦¤È¤·¤Þ¤¹¡£
angle ¤Ï¾ï¤ËÅÙñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£
Îã:
set style arrow 1 head nofilled linecolor "blue" linewidth 0.5 set style arrow 2 head filled linecolor "red" linewidth 1.0 # Âè 5 Îó¤ÎÃÍ¤Ï 1 ¤« 2 ¤Î¤¤¤º¤ì¤«¤Ç¡¢¤½¤ì¤¬»öÁ°¤ËÄêµÁ¤·¤¿¥¹¥¿¥¤¥ë # ¤Î¤¦¤Á»ÈÍѤ¹¤ëÊý¤ò·èÄꤹ¤ë plot DATA using 1:2:3:4:5 with arrows arrowstyle variable
set jitter plot $data using 1:2:1 with points lc variable
3 Îó: x y ydelta 4 Îó: x y ylow yhigh (xdelta <= 0 ¤Ï boxwidth ¤ò»ÈÍÑ) 5 Îó: x y ylow yhigh xdelta (xdelta <= 0 ¤Ï boxwidth ¤ò»ÈÍÑ)
¸íº¹Àþ¤Î¿âľÊý¸þ¤Ï¡¢yerrorbars ¥¹¥¿¥¤¥ëƱÍÍ¤Ë y ¤Î¸íº¹¤ÎÃͤòɽ¸½¤¹¤ë ¤è¤¦¤ËÉÁ¤¤Þ¤¹¡£y-ydelta ¤«¤é y+ydelta ¤Þ¤Ç¡¢¤¢¤ë¤¤¤Ï ylow ¤«¤é yhigh ¤Þ¤Ç¡¢¤³¤ì¤é¤Ï²¿Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£¸íº¹Àþ ¤ÎÉÁ²è¤Ç»ÈÍѤ¹¤ëÀþ¥¹¥¿¥¤¥ë¤Ï¡¢set bars ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤¤Þ¤¹¤¬¡¢»È¤ï ¤Ê¤±¤ì¤Ð¡¢È¢¤Î¶³¦¤ÈƱ¤¸¤â¤Î¤Ç¸íº¹Àþ¤òÉÁ¤¤Þ¤¹¡£
Èó¿ä¾©: ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¡¢"ylow yhigh" ¤Î¸íº¹·Á¼°¤Î 4 Îó ¤Î¥Ç¡¼¥¿¤ËÂФ·¤Æ boxwidth = -2.0 ¤òÆÃÊ̤˰·¤Ã¤Æ¤¤¤Þ¤·¤¿¡£¤½¤Î¾ì¹ç¡¢ ÎÙÀܤ¹¤ëÈ¢¤Î´Ö¤Ë·ä´Ö¤¬¤Ç¤¤Ê¤¤¤è¤¦¤ËÈ¢¤ÎÉý¤òÄ´Àᤷ¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î½èÍý ¤Ï¡¢¸åÊý¸ß´¹À¤Î¤¿¤á¤Ë»Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¾Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ïºï½ü¤¹¤ë¤Ç ¤·¤ç¤¦¡£
3 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢¥¹¥¿¥¤¥ë boxes ¤ÏÍ¿¤¨¤é¤ì¤¿ x, y ºÂɸ¤òÃæ¿´¤È¤·¡¢ xy Ê¿ÌÌ (z=0) ¤«¤éÍ¿¤¨¤é¤ì¤¿ z ºÂɸ¤Þ¤Ç¿¤Ð¤·¤¿Ä¾ÊýÂΤÎÈ¢¤ò½ñ¤¤Þ¤¹¡£ x Êý¸þ¤ÎÈ¢¤ÎÉý¤Ï¡¢Ê̤ÎÆþÎÏÎó¤« set boxwidth ¤Ç»ØÄê¤Ç¤¡¢y Êý¸þ¤ÎÈ¢¤Î ±ü¹Ô¤¤Ï¡¢set boxdepth ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£È¢¤Ï¡¢2 ¼¡¸µ¥°¥é¥Õ¤Î¤è¤¦¤Ë¡¢ ¼«Æ°Åª¤Ë¤Ï¤¯¤Ã¤Ä¤¯¤è¤¦¤Ë°ú¤¿¤Ð¤µ¤ì¤Þ¤»¤ó¡£
plot with boxes ¤Ï¡¢´ðËÜŪ¤Ë 2 Î󡢤ޤ¿¤Ï 3 Îó¤Î¥Ç¡¼¥¿¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤µ¤é¤ËÆþÎÏÎó¤òÄɲ乤ë¤È¡¢¤½¤ì¤Ï¡¢²ÄÊÑÀþ¿§ (variable line color) ¤äÅÉ ¤êÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: rgbcolor variable (20.1.4)¡£
2 Îó: x y 3 Îó: x y x_width
È¢¤ÎÆâÉô¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤ÇÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£¤½¤ì °Ê³°¤Ë¡¢Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò plot ¥³¥Þ¥ó¥É¾å¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: set style fill (112.86.4)¡£ ÅɤêÄÙ¤·¿§¤ò plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¸½ºß¤ÎÀþ¿§¤ò»ÈÍѤ·¤Þ¤¹¡£
Îã:
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òñ¿§Åɤꤷ¤¿È¢¤ÇÉÁ²è¤·¡¢È¢Æ±»Î¤ò¾¯¤·¿âľÊý¸þ¤Ë¥¹¥Ú¡¼¥¹ ¤ò¶õ¤±¤ë (ËÀ¥°¥é¥Õ):
set boxwidth 0.9 relative set style fill solid 1.0 plot 'file.dat' with boxes
Åɤ꿧¤òÌÀ¼¨¤·¤Æ¥Ñ¥¿¡¼¥óÅɤꥹ¥¿¥¤¥ë¤ÎÈ¢¤Ç sin ¤È cos ¤Î¥°¥é¥Õ¤òÉÁ²è:
set style fill pattern plot sin(x) with boxes fc 'blue', cos(x) with boxes fc 'gold'
sin ¤Ï¥Ñ¥¿¡¼¥ó 0 ¤Ç¡¢cos ¤Ï¥Ñ¥¿¡¼¥ó 1 ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£Äɲ䵤ì¤ëÉÁ²è¤Ï ½ÐÎϥɥ饤¥Ð¤¬¥µ¥Ý¡¼¥È¤¹¤ë¥Ñ¥¿¡¼¥ó¤ò½Û´ÄŪ¤Ë»ÈÍѤ·¤Þ¤¹¡£
splot with boxes ¤Ë¤Ï¡¢¾¯¤Ê¤¯¤È¤â 3 Îó¤ÎÆþÎÏÎó¤¬É¬ÍפǤ¹¡£¤µ¤é¤ËÆþÎÏ Îó¤òÄɲ乤ë¤È¡¢¤½¤ì¤ÏÈ¢¤ÎÉý¤äÅɤêÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£
3 Îó: x y z 4 Îó: x y z [x_width ¤Þ¤¿¤Ï color] 5 Îó: x y z x_width color
ºÇ¸å¤ÎÎó¤Ï¡¢splot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë variable ¥«¥é¡¼¥â¡¼¥É¤ò»ØÄꤷ¤Æ¤¤ ¤ë¾ì¹ç¤Î¤ß¿§¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£Îã:
splot 'blue_boxes.dat' using 1:2:3 fc "blue" splot 'rgb_boxes.dat' using 1:2:3:4 fc rgb variable splot 'category_boxes.dat' using 1:2:3:4:5 lc variable
ºÇ½é¤ÎÎã¤Ï¡¢¤¹¤Ù¤Æ¤ÎÈ¢¤òÀĤËÅɤꡢÉý¤Ï¤¢¤é¤«¤¸¤á set boxwidth ¤ÇÀßÄê ¤·¤¿Éý¤ò»ÈÍѤ·¤Þ¤¹¡£2 ¤ÄÌܤÎÎã¤Ï¡¢4 ÎóÌܤò 24-bit RGB ¿§¤È¤·¤Æǧ¼±¤¹¤ë ¤¿¤á¡¢È¢¤ÎÉý¤ÏÁêÊѤï¤é¤º set boxwidth ¤ÎÉý¤ò»È¤¤¤Þ¤¹¡£3 ¤ÄÌܤÎÎã¤Ï¡¢ 4 ÎóÌܤÎÃͤòÈ¢¤ÎÉý¤È¤·¤ÆÆɤߡ¢5 ÎóÌܤÎÀ°¿ôÃͤò¿§¤òÄ󶡤¹¤ëÀþ¼ï¤È²ò¼á¤· ¤Þ¤¹¡£
3 ¼¡¸µ¤ÎÈ¢¤Ï¡¢¶ÊÌ̤ǤϤʤ¯ pm3d ĹÊý·Á¤È¤·¤Æ½èÍý¤·¤Æ¤¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢É½ ΢¤ÎÉÁ²è½ç¤Ï¡¢set hidden3d ¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: set pm3d (112.71)¡£ gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ï¡¢È¢¤Îü¤Ï¥°¥é¥Õ¤Î fill style ¤Î¶³¦¿§¤Ç¿§ÉÕ¤± ¤·¤Þ¤¹¡£¤³¤ì¤Ï¥Ð¡¼¥¸¥ç¥ó 5 ¤È¤Ï°Û¤Ê¤ëÊѹ¹¤Ç¤¹¡£ ºÇÎɤηë²Ì¤òÆÀ¤ë¤Ë¤Ï¡¢set pm3d depthorder base ¤È set pm3d lighting ¤òÁȤ߹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤¡£
Îã:
# x ºÂɸ¤Ï 1.0¡¢y ¤Ï 5 ÎóÌܤÎÃͤΤȤ³¤í¤Ë boxplot ¤òÇÛÃÖ plot 'data' using (1.0):5
# ¾å¤ÈƱ¤¸¤À¤¬¡¢Èϰϳ°¤ÎÅÀ¤Ï±£¤·¡¢boxplot ¤ÎÉý¤ò 0.3 ¤Ë¤¹¤ë set style boxplot nooutliers plot 'data' using (1.0):5:(0.3)
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢using »ØÄê¤Ë¤è¤ë 2 ÎóÌܤΠy ¤Î¤¹¤Ù¤Æ¤ÎÃͤËÂФ¹¤ë boxplot ¤ò 1 ¤Ä¤À¤±À¸À®¤·¤Þ¤¹¡£¤·¤«¤·¡¢ÄɲäΠ(4 ¤ÄÌܤÎ) Îó¤ò»ØÄꤹ¤ë ¤È¡¢¤½¤ÎÎó¤ÎÃͤò¤¢¤ë°ø»ÒÊÑ¿ô¤ÎÎ¥»¶Åª¤Ê¥ì¥Ù¥ëÃͤǤ¢¤ë¤È¸«¤Ê¤·¡¢¤½¤ÎÎ¥»¶ ÃͤΥì¥Ù¥ë¤ÎÃͤοô¤À¤±¤Î boxplot ¤òÉÁ²è¤·¤Þ¤¹¡£¤½¤ì¤é¤Î boxplot ¤Î´Ö³Ö ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1.0 ¤Ç¤¹¤¬¡¢¤³¤ì¤Ï set style boxplot separation ¤Ç Êѹ¹¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢°ø»ÒÊÑ¿ô¤ÎÃͤϡ¢³Æ boxplot ¤Î²¼ (¤Þ¤¿¤Ï ¾å) ¤ÎÌÜÀ¹¤ê¤Î¥é¥Ù¥ë¤Ëɽ¼¨¤·¤Þ¤¹¡£
Îã
# 'data' ¤Î 2 ÎóÌÜ¤Ï "control" ¤« "treatment" ¤Î¤¤¤º¤ì¤«¤Îʸ»úÎó¤Ç # °Ê²¼¤ÎÎã¤Ï¡¢¤½¤Î°ø»ÒËè¤Î 2 ¤Ä¤Î boxplot ¤òÀ¸À®¤¹¤ë plot 'data' using (1.0):5:(0):2
¤½¤ÎÈ¢¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤Ï set boxwidth <width> ¤ÇÀßÄê¤Ç¤¤Þ¤¹¤¬¡¢plot ¥³¥Þ¥ó¥É¤Î using ¤Ë¤è¤ë 3 ÈÖÌܤΥª¥×¥·¥ç¥óÎó¤Ç¤â»ØÄê¤Ç¤¤Þ¤¹¡£1 ÈÖÌÜ ¤È 3 ÈÖÌܤÎÎó (x ºÂɸ¤ÈÉý) ¤ÏÄ̾ï¥Ç¡¼¥¿Îó¤Ç¤Ï¤Ê¤¯Äê¿ô¤È¤·¤ÆÍ¿¤¨¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢È¢¤Ò¤²¤ÏÈ¢¤Îü¤«¤é¡¢y ¤ÎÃͤ¬»Íʬ°ÌÈϰϤΠ1.5 ÇܤÎÃæ¤Ë ¼ý¤Þ¤Ã¤Æ¤¤¤ÆºÇ¤âÎ¥¤ì¤Æ¤¤¤ë¤è¤¦¤ÊÅÀ¤Þ¤Ç±äŤµ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÈÏ °Ï³°¤ÎÅÀ (outlier) ¤Ï±ß (pointtype 7) ¤ÇÉÁ¤«¤ì¤Þ¤¹¡£È¢¤Ò¤²¤Îü¤ÎËÀ¤ÎÉý ¤Ï set bars ¤Þ¤¿¤Ï set errorbars ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤¤Þ¤¹¡£
¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀ¼Á¤Ï set style boxplot ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: set style boxplot (112.86.2), bars (112.28), boxwidth (112.7), fillstyle (112.86.4), candlesticks (39)¡£
4 Îó: x y xdelta ydelta 6 Îó: x y xlow xhigh ylow yhigh
È¢¤ÎÉý¤È¹â¤µ¤Ï xyerrorbars ¥¹¥¿¥¤¥ëƱÍÍ x, y ¤Î¸íº¹¤«¤é·èÄꤵ¤ì¤Þ¤¹ ¤Ä¤Þ¤ê¡¢xlow ¤«¤é xhigh ¤Þ¤Ç¤È ylow ¤«¤é yhigh ¤Þ¤Ç¡¢¤Þ¤¿¤Ï x-xdelta ¤«¤é x+xdelta ¤Þ¤Ç¤È y-ydelta ¤«¤é y+ydelta ¤Þ¤Ç¡£¤³¤ì¤é¤Ï²¿Îó¤Î¥Ç¡¼¥¿ ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£
6 Îó¤Î·Á¼°¤Î¥³¥Þ¥ó¥É¤Ï¡¢Ç¤°Õ¤Î x, y ¤ÎÉý¤ÎĹÊý·Á¤ò½ñ¤¯´Êñ¤ÊÊýË¡¤òÄó¶¡ ¤·¤Þ¤¹¡£
È¢¤ÎÆâÉô¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ë½¾¤Ã¤ÆÅɤé¤ì¤Þ¤¹¡£¾Ü ºÙ¤Ï¡¢°Ê²¼»²¾È: set style fill (112.86.4), boxes (36)¡£plot ¥³¥Þ¥ó¥É¾å¤Ç¿·¤·¤¤ÅÉ¤ê ¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
´ðËÜŪ¤Ë 5 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹:
¶âÍ»¥Ç¡¼¥¿: date open low high close È¢¤Ò¤²ÉÁ²è: x box_min whisker_min whisker_high box_high
ĹÊý·Á¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¤¬¡¢°ÊÁ°¤Î gnuplot ¤Ø¤Î¸åÊý¸ß´¹À¤È¤·¤Æ¡¢boxwidth ¥Ñ¥é¥á¡¼¥¿¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï set errorbars <width> ¤òĹÊý·Á¤ÎÉý¤È¤·¤Æ¼è¤ê¤Þ¤¹¡£
¤³¤ì¤ÎÂå¤ï¤ê¤Ë¡¢È¢¤Ò¤² (box-and-whisker) ¤Î¥°¥ë¡¼¥×²½¤Ë´Ø¤¹¤ëÌÀ¼¨Åª¤Ê Éý¤Î»ØÄê¤ò¡¢ÄɲäΠ6 ÈÖÌܤΥǡ¼¥¿¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ÎÉý¤Ï¡¢x ºÂɸ¤ÈƱ ¤¸Ã±°Ì¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ¡¢¤Þ¤¿¤Ï 6 ÎóÌܤ¬¥Ç¡¼¥¿¤ÎÉý¤È¤·¤Æ»È¤ì¤ë¾ì¹ç¤Ï 7 Îó ÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢±ôľÀþʬ¤Î¤Æ¤Ã¤Ú¤ó¤ÈÄì¤Ë¤Ï¿âľ¤Ë¸ò¤ï¤ë¿åÊ¿Àþ¤Ï°ú¤«¤ì¤Þ ¤»¤ó¡£¤½¤ì¤ò°ú¤¤¿¤¤¾ì¹ç¡¢Î㤨¤Ðŵ·¿Åª¤ÊÎã¤ÏÈ¢¤Ò¤²¿Þ (box-and-whisker plot) ¤Ç¤Î»ÈÍѤǤ¹¤¬¡¢ÉÁ²è¥³¥Þ¥ó¥É¤Ë¥¡¼¥ï¡¼¥É whiskerbars ¤òÄɲä· ¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿åÊ¿Àþ¤ÏÈ¢ (candlestick) ¤Î¿åÊ¿Éý°ìÇդ˰ú ¤«¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÁ´ÂΤÎÉý¤ËÂФ¹¤ë³ä¹ç¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
¶âÍ»¥Ç¡¼¥¿¤ÎÄ̾ï¤Î´·½¬¤Ç¤Ï¡¢(³«»ÏÃÍ) < (½ªÃÍ) ¤Î¾ì¹ç¤ÏĹÊý·Á¤Ï¶õ¤Ç¡¢ (½ªÃÍ) < (³«»ÏÃÍ) ¤Î¾ì¹ç¤Ïñ¿§Åɤꤷ¤Þ¤¹¡£¸½ºß¤Î fillstyle ¤Ë "empty" ¤ò¥»¥Ã¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼ÂºÝ¤Ë¤³¤¦¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (112.86.4)¡£ fillstyle ¤Ë solid (ñ¿§Åɤê)¡¢¤Þ¤¿¤Ï pattern (¥Ñ¥¿¡¼¥ó) ¤ò¥»¥Ã¥È¤·¤Æ ¤¤¤ë¾ì¹ç¤Ï¡¢³«»ÏÃÍ¡¢½ªÃͤ˴ط¸¤Ê¤¯¡¢¤¹¤Ù¤Æ¤ÎÈ¢¤Ë¤½¤ì¤¬»È¤ï¤ì¤Þ¤¹¡£°Ê²¼ »²¾È: set errorbars (112.28), financebars (45)¡£¤Þ¤¿¡¢°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ candlestick
¤È finance
¤Î¥Ç¥â¡£
Ãí°Õ: È¢¤Ò¤²¥°¥é¥Õ¾å¤Ëµ¹æ¤äÀþ¤òÄɲä·¤ÆÃÖ¤¯¤Ë¤Ï¡¢ÄɲäÎÉÁ²èÍ×ÁǤ¬É¬Í× ¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼¤ÎºÇ½é¤ÎÎã¤Ï¡¢2 ÈÖÌܤÎÍ×ÁǤǡ¢È¢¤òÄÙ¤·¤ÆÃæ±ûÃͤξì½ê¤Ë ÃÖ¤¯Àþʬ¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
# ¥Ç¡¼¥¿Îó: X 'ºÇ¾®ÃÍ' '1/4 °Ì¤ÎÃÍ' 'Ãæ±ûÃÍ' '3/4 °Ì¤ÎÃÍ' 'ºÇÂçÃÍ' set errorbars 4.0 set style fill empty plot 'stat.dat' using 1:3:2:6:5 with candlesticks title 'Quartiles', \ ” using 1:4:4:4:4 with candlesticks lt -1 notitle
# ¤Ò¤²¤Î¾å¤Ë¿åÊ¿Àþ¤òȼ¤¦ÉÁ²è¤Ç¡¢¿åÊ¿Àþ¤ÎÉý¤òÁ´ÂÎÉý¤Î 50% ¤Ë¤¹¤ë plot 'stat.dat' using 1:3:2:6:5 with candlesticks whiskerbars 0.5
°Ê²¼»²¾È: set boxwidth (112.7), set errorbars (112.28), set style fill (112.86.4), boxplot (37)¡£
³ÆÅÀËè¤Ë¡¢¤½¤·¤Æ»öÁ°¤Ë¡¢ÀßÄꤹ¤ë°À¤Î¿¤¯¤ÎÁȤ߹ç¤ï¤»»ØÄ꤬²Äǽ¤Ç¤¹¡£ 2 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢°Ê²¼¤¬»ØÄê¤Ç¤¤Þ¤¹¡£
using x:y using x:y:radius using x:y:color using x:y:radius:color using x:y:radius:arc_begin:arc_end using x:y:radius:arc_begin:arc_end:color
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï´°Á´¤Ê±ß¤òÉÁ²è¤·¤Þ¤¹¡£ ¤³¤Î·ë²Ì¤Ï points ¤È pointtype 7 ¤òÍѤ¤¤Æ¡¢²ÄÊÑÅÀ¥µ¥¤¥º¤Î¥°¥é¥Õ¤ò½ñ ¤¯¤³¤È¤ÈƱÍͤǤ¹¤¬¡¢¤½¤Î±ß¤ò x ¼´¤ÎÈϰϤǿ½Ì¤¹¤³¤È¤¬°ã¤¤¤Þ¤¹¡£ 4 ÎóÌÜ¡¢5 ÎóÌܤ˳«»Ï³Ñ¤È½ªÎ»³Ñ (ñ°Ì¤ÏÅÙ)¤ò»ØÄꤹ¤ë¤³¤È¤Ç±ß¸Ì¤Î°ìÉô¤ò ÉÁ²è¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
using »ØÄê¤ÎºÇ¸å¤ÎÎó¤Ç¡¢±ßËè¤Î¿§¤â»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢plot ¥³¥Þ¥ó ¥É¤Ë¤Ï lc variable ¤« fillcolor rgb variable ¤Î¤è¤¦¤ÊÊÑÆ°¿§»ØÄê¤ò Æþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
°Ê²¼»²¾È: set style circle (112.86.9), set object circle (112.62.3), set style fill (112.86.4)¡£
3 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢using »ØÄê¤Ë¤Ï°Ê²¼¤Î¤â¤Î¤¬É¬ÍפǤ¹¡£
splot DATA using x:y:z:radius:color
ÊÑÆ°¿§¤ÎÎó¤Ï¥ª¥×¥·¥ç¥ó (¾Êά²Ä) ¤Ç¤¹¡£
Îã:
# ÌÌÀѤ¬ 3 ÎóÌܤÎÃͤËÈæÎ㤹¤ë¤è¤¦¤Ê±ß¤òÉÁ²è set style fill transparent solid 0.2 noborder plot 'data' using 1:2:(sqrt($3)) with circles, \ 'data' using 1:2 with linespoints
# ±ß¤ÎÂå¤ï¤ê¤Ë¥Ñ¥Ã¥¯¥Þ¥ó¤òÉÁ²è plot 'data' using 1:2:(10):(40):(320) with circles
# ¥¤¥ó¥é¥ó¥Ç¡¼¥¿¤Ç±ß¥°¥é¥Õ¤òÉÁ²è set xrange [-15:15] set style fill transparent solid 0.9 noborder plot '-' using 1:2:3:4:5:6 with circles lc var 0 0 5 0 30 1 0 0 5 30 70 2 0 0 5 70 120 3 0 0 5 120 230 4 0 0 5 230 360 5 e
¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢set contours ¤ÈÁȤ߹ç¤ï¤»¤Æ¡¢¤½¤ÎÃÇÊÒ¤òÀÚ¤êʬ¤± ¤ëÅù¹âÀþ¤ò½Å¤ÍÉÁ¤¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£set contourfill ¤ÎÃÇÊҤ泦¤ò set cntrparam ¤ÎÅù¹âÀþ¶³¦¤È¤ò¹ç¤ï¤»¤ë¤è¤¦¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
# ztics ¤ÇÄêµÁ¤µ¤ì¤ëÃÇÊÒ¶³¦ # ÃÇÊҤΠz ¤ÎÃæ±ûÃͤ˳ä¤êÅö¤Æ¤é¤ì¤ë¥Ñ¥ì¥Ã¥È¤Ç¿§ÉÕ¤± set pm3d border retrace set contourfill ztics set ztics -20, 5, 20 set contour set cntrparam cubic levels increment -20, 5, 20 set cntrlabel onecolor set view map splot g(x,y) with contourfill, g(x,y) with lines nosurface
½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï (post, pdf ¤Ê¤É)¡¢¥É¥Ã¥È¤ÎÂ礤µ¤Ï linewidth ¤òÊѹ¹ ¤¹¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£
1 Îó: y # x ¤Ï¹ÔÈÖ¹æ 2 Îó: x y 3 Îó: x y z # 3D ¤Î¤ß (splot)
2 Îó: x y 3 Îó: x y diam (¼ç¼´¡¢Éû¼´¤ÎξÊý¤Ë»ÈÍÑ) 4 Îó: x y major_diam minor_diam 5 Îó: x y major_diam minor_diam angle
2 Îó¤Î¥Ç¡¼¥¿¤Î¤ß¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¤È¤ß¤Ê¤µ¤ì¡¢Â汧 ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÂ礤µ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£ÂÊ ±ß¤Î¸þ¤¤Ï¡¢¼ç¼´¤È x ¼´¤Î¤Ê¤¹³Ñ¤ÇÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î ellipse ¤Î¥¹¥¿¥¤¥ë¤«¤é¼è¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£
3 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢3 ÎóÌܤϼ硢Éûξ¼´¤Îľ·Â (Éý) ¤È¤·¤Æ»È ¤ï¤ì¤Þ¤¹¡£¸þ¤¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç 0 ¤Ë¤Ê¤ê¤Þ¤¹¡£
4 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¡¢¼ç¼´Ä¾·Â (Éý)¡¢Éû ¼´Ä¾·Â¤È¤·¤Æ»È¤ï¤ï¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ïľ·Â¤Ç¤¢¤ê¡¢È¾·Â¤Ç¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ ¤¯¤À¤µ¤¤¡£ °ìÊý¤Îľ·Â¤¬Éé¤Ê¤é¤Ð¡¢Ä¾·Â¤ÏξÊý¤È¤â set style ellipse ¤ÇÀßÄꤷ¤¿¥Ç ¥Õ¥©¥ë¥ÈÃͤò»È¤¤¤Þ¤¹¡£
5 Îó¤Î¥Ç¡¼¥¿¤È¤·¤Æ¡¢¸þ¤¤Î³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ Âʱߤϡ¢3,4,5 Îó¤ÎÃͤÏÉé¤ÎÃͤȤ·¤Æ»ØÄꤹ¤ë¤³¤È¤Ç¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î ÃͤòÍøÍѤ·¤ÆÂʱߤò½ñ¤«¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¾å¤Î¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢variable color ¥Ç¡¼¥¿¤òºÇ¸å¤ÎÎó (3,4,5,6 ÎóÌÜ) ¤È ¤·¤ÆÄɲäǤ¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£
¥¡¼¥ï¡¼¥É units: units xy ¤¬ÉÁ²è»ØÄê¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¼ç¼´Ä¾·Â ¤Ï¿åÊ¿¼´ (x ¤Þ¤¿¤Ï x2) ¤Îñ°Ì¡¢Éû¼´Ä¾·Â¤Ï¿âľ¼´ (y ¤Þ¤¿¤Ï y2) ¤Îñ°Ì¤Ç ¤¢¤ë¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬°Û¤Ê¤ë¾ì¹ç¡¢¼ç¼´¤ÈÉû¼´¤ÎÈæ¤Ï²ó ž¸å¤Ë¤ÏÀµ¤·¤¯¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ units xx ¤Ï¡¢Ä¾·Â¤Ïξ¼´¤È¤â x ¼´¤Îñ°Ì¤Ç·×»»¤·¤Þ¤¹¡£ units yy ¤Ï¡¢Ä¾·Â¤Ïξ¼´¤È¤â y ¼´¤Îñ°Ì¤Ç·×»»¤·¤Þ¤¹¡£ ¸å¤Î 2 ¤Ä¤Ï¡¢ÉÁ²è¤Î¥µ¥¤¥º¤òÊѹ¹¤·¤Æ¤â¡¢ÂʱߤÏÀµ¤·¤¤¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò»ý¤Á ¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç units ¤ò¾Êά¤·¤¿¾ì¹ç¤Ï¡¢set style ellipse ¤Î ÀßÄê¤ò»È¤¤¤Þ¤¹¡£
Îã (Âʱߤò͸ú¤ÊÀþ¼ï¤ò¼þ´üŪ¤Ë»ÈÍѤ·¤ÆÉÁ²è):
plot 'data' using 1:2:3:4:(0):0 with ellipses
°Ê²¼¤â»²¾È: set object ellipse (112.62.2), set style ellipse (112.86.11), fillstyle (112.86.4)¡£
½ñ¼°:
plot ... with filledcurves [option]
¤³¤³¤Ç¡¢¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¹:
closed {above|below} x1 x2 y r=<a> xy=<x>,<y> between
ºÇ½é¤Î¤â¤Î¤Ï closed ¤Ç¡¢¤³¤ì¤Ï¶ÊÀþ¤½¤ì¼«¿È¤òÊÄ¿³Ñ·Á¤È¸«¤Ê¤·¤Þ¤¹¡£Æþ Îϥǡ¼¥¿¤¬ 2 Îó¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
filledcurves closed ... ÃúÅÙÊĶÊÀþ¤Ç°Ï¤Þ¤ì¤ëÎΰè
2 ¼ïÎàÌܤϻØÄꤵ¤ì¤¿¼´¡¢¤¢¤ë¤¤¤Ï¿åÊ¿Àþ¡¢¿âľÀþ¡¢Í¿¤¨¤é¤ì¤¿ÅÀ¤Ê¤É¤È¡¢¶Ê Àþ¤È¤Î´Ö¤Ëºî¤é¤ì¤ëÎΰè¤òÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤µ¤é¤ËÅɤêÄÙ¤·Îΰè¤ò »ØÄꤷ¤¿Ä¾Àþ¤Î¾å¤Þ¤¿¤Ï²¼¤ËÀ©¸Â¤Ç¤¤Þ¤¹¡£
filledcurves x1 ... x1 ¼´ filledcurves x2 ... x2 ¼´ (y1, y2 ¼´¤âƱÍÍ) filledcurves y=42 ... ľÀþ y=42, ¤¹¤Ê¤ï¤Á x ¼´¤ÈÊ¿¹Ô filledcurves xy=10,20 ... x1,y1 ¼´¤Ç¤ÎÅÀ 10,20 (À𷿤Τ褦¤Ê·Á¾õ) filledcurves above r=1.5 ¶ËºÂɸ¤Ç¤ÎÆ°·Â¼´¤Î 1.5 ¤Î³°Â¦¤ÎÎΰè
3 Îó: x y yerror
plot $DAT using 1:($2-$3):($2+$3) with filledcurves, \ $DAT using 1:2 smooth mcs with lines
above ¤È below ¥ª¥×¥·¥ç¥ó¤Ï
... filledcurves above {x1|x2|y|r}=<val>
¤ª¤è¤Ó
... using 1:2:3 with filledcurves below
¤Î·Á¤Î¥³¥Þ¥ó¥É¤ËŬÍѲÄǽ¤Ç¤¹¡£¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï Åɤê¤Ä¤Ö¤·Îΰè¤ò¡¢¶³¦Àþ¡¢¤Þ¤¿¤Ï¶³¦¶ÊÀþ¤ÎÊÒ¦¤ËÀ©¸Â¤·¤Þ¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÉÁ¤«¤ì¤¿¶ÊÀþ¤ÎÅɤê¤Ä¤Ö¤·¤ò³ÈÂ礹¤ë¤È¡¢²¿¤â¤Ê¤¯¤Ê¤Ã¤¿ ¤êÀµ¤·¤¯¤Ê¤¤Îΰè¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï gnuplot ¤¬¡¢Îΰè¤Ç¤Ï¤Ê ¤¯ÅÀ¤äÀþ¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹¡£
<x>, <y>, <a> ¤¬ÉÁ²èÎΰè¤Î³°¤Ë¤¢¤ë¾ì¹ç¡¢¤½¤ì¤é¤Ï¥°¥é¥Õ¤Î¶³¦¤Ø°ÜÆ°¤µ¤ì ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥ª¥×¥·¥ç¥ó xy=<x>,<y> ¤ò»ØÄꤷ¤¿¾ì¹ç¤Î¼ÂºÝ¤ÎÅɤê¤Ä¤Ö¤·ÎÎ °è¤Ï¡¢xrange ¤ä yrange ¤Ë°Í¸¤·¤Þ¤¹¡£
fillstyle ¤Î°À¤Î {{no}border} ¤Ï¡¢filledcurves ¤Î¥â¡¼¥É¤¬¥Ç¥Õ¥©¥ë¥È ¤Î closed ¤Ç¤¢¤ë¾ì¹ç¤Ë¼õ¤±ÉÕ¤±¤Þ¤¹¡£ Îã:
plot 'data' with filledcurves fc "cyan" fs solid 0.5 border lc "blue"
5 Îó: date open low high close
ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¹ÔËè¤Î variable color ¾ðÊó (°Ê ²¼»²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
plot <data> with fillsteps {above|below} {y=<baseline>}
°Ê²¼¤â»²¾È steps ¥Ç¥â¡£
autoscale ¤¬Í¸ú¤Ç¤¢¤ë¾ì¹ç¡¢x ¤ÎÈϰϤϡ¢¤½¤Î±äŤµ¤ì¤¿¿åÊ¿Àþ¤ÎÈÏ°Ï¤Ç ¤Ï¤Ê¤¯¡¢¥Ç¡¼¥¿ÅÀ¤ÎÈϰϤ¬ÁªÂò¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ã¼¤ÎÅÀ¤Ë´Ø¤·¤Æ¤Ï¤½¤Î¿åÊ¿ Àþ¤ÏȾʬ¤·¤«ÉÁ¤«¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ °Ê²¼¤â»²¾È steps ¥Ç¥â¡£
set style histogram clustered {gap <gapsize>} set style histogram errorbars {gap <gapsize>} {<linewidth>} set style histogram rowstacked set style histogram columnstacked set style histogram {title font "name,size" tc <colorspec>}
¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï set style histogram clustered gap 2 ¤ËÂбþ¤· ¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢ÊÂÎó¤Ë»ØÄꤵ¤ì¤¿¥Ç¡¼¥¿¤ÎÃͤν¸¹ç¤Ï¡¢ÁªÂò¤µ ¤ì¤¿¥Ç¡¼¥¿Îó¤Î¤½¤Î¤½¤ì¤¾¤ì¤Î½øÎó (¹ÔÈÖ¹æ) ¤ËÂбþ¤¹¤ë x ºÂɸ¤Î¾ì½ê¤Ë¡¢ ³Æ¡¹È¢¤Î¥°¥ë¡¼¥×¤È¤·¤Æ¸Ç¤á¤é¤ì¤ÆÃÖ¤«¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢<n> ¸Ä¤Î¥Ç¡¼¥¿Îó¤ò ÊÂÎó¤Ë»ØÄꤷ¤¿¾ì¹ç¡¢ºÇ½é¤Î¸Ç¤Þ¤ê¤Ï x=1 ¤òÃæ¿´¤È¤¹¤ë <n> ¸Ä¤ÎÈ¢¤Î¸Ç¤Þ¤ê ¤«¤é¤Ê¤ê¡¢¤½¤Î³Æ¡¹¤Î¹â¤µ¤Ï¡¢¤½¤Î <n> ¥Ç¡¼¥¿Îó³Æ¡¹¤ÎºÇ½é (1 ¹ÔÌÜ) ¤ÎÃÍ ¤¬¼è¤é¤ì¤Þ¤¹¡£¤½¤Î¸å¤Ë¾¯¤·¶õÇò (gap) ¤¬¶õ¤±¤é¤ì¡¢¼¡¤Ë³Æ¥Ç¡¼¥¿Îó¤Î¼¡ (2 ¹ÔÌÜ) ¤ÎÃͤËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤¬ x=2 ¤òÃæ¿´¤È¤·¤ÆÃÖ¤«¤ì¤Þ¤¹¡£°Ê²¼Æ±ÍÍ ¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶õÇò (gap) Éý¤Î 2 ¤Ï¡¢È¢¤Î¸Ç¤Þ¤êƱ»Î¤Î´Ö¤Î¶õÇò¤¬¡¢È¢ 2 ¤Ä¤ÎÉý¤ËÅù¤·¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£Æ±¤¸Îó¤ËÂФ¹¤ëÈ¢¤ÏÁ´¤ÆƱ¤¸¿§¤Þ¤¿¤ÏƱ ¤¸¥Ñ¥¿¡¼¥ó¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹; ¤·¤«¤·¡¢°Ê²¼¤â»²¾È: histograms colors (50.3)¡£
È¢¤Î¸Ç¤Þ¤ê¤½¤ì¤¾¤ì¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 1 ¤Ä¤Î¹Ô¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£¤½¤Î¤è ¤¦¤ÊÆþÎÏ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤ÎºÇ½é¤Î¹àÌܤ¬¸«½Ð¤· (¥é¥Ù¥ë) ¤Ç¤ë¤³¤È¤ÏÎɤ¯¤¢¤ë ¤³¤È¤Ç¤¹¡£¤½¤ÎÎó¤Ë¤¢¤ë¸«½Ð¤· (¥é¥Ù¥ë) ¤Ï¡¢using ¤Ë xticlabels ¥ª¥× ¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢¤½¤ì¤ËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤Î¿¿²¼¤Î x ¼´¤Ë±è¤Ã¤¿¤È ¤³¤í¤ËÃÖ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
errorbars ¥¹¥¿¥¤¥ë ¤Ï¡¢³Æ¥¨¥ó¥È¥ê¤ËÂФ·¤ÆÄɲäÎÆþÎÏÎó¤òɬÍפȤ¹¤ë°Ê ³°¤Ï clustered ¥¹¥¿¥¤¥ë¤Ë¤È¤Æ¤âÎɤ¯»÷¤Æ¤¤¤Þ¤¹¡£ºÇ½é¤ÎÎó¤Ï¡¢ clustered ¥¹¥¿¥¤¥ë¤Î¾ì¹ç¤ÈÁ´¤¯Æ±ÍͤËÈ¢¤Î¹â¤µ (y ¤ÎÃÍ) ¤È¤·¤ÆÊÝ»ý¤µ¤ì ¤Þ¤¹¡£
2 Îó: y yerr # Àþ¤Ï y-yerr ¤«¤é y+err ¤Ø¿¤Ó¤ë 3 Îó: y ymin ymax # Àþ¤Ï ymin ¤«¤é ymax ¤Ø¿¤Ó¤ë
¸íº¹Àþ¤Î¸«¤¿Ìܤϡ¢¸½ºß¤Î set errorbars ¤ÎÃÍ¤È <linewidth> ¥ª¥×¥·¥ç¥ó »ØÄê¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
ÀѤ߾夲·¿¤Î¥Ò¥¹¥È¥°¥é¥à¤â 2 ¤Ä¤Î·Á¼°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤é¤Ï ¥³¥Þ¥ó¥É set style histogram {rowstacked|columnstacked} ¤ÇÁªÂò¤Ç¤¤Þ ¤¹¡£¤³¤ì¤é¤Î¥¹¥¿¥¤¥ë¤Ë¤ª¤¤¤Æ¡¢ÁªÂò¤µ¤ì¤¿Îó¤Î¥Ç¡¼¥¿¤ÎÃͤÏÀѤ߾夲¤é¤ì¤¿ È¢¤È¤·¤Æ½¸¤á¤é¤ì¤Þ¤¹¡£Àµ¤ÎÃͤϡ¢y=0 ¤«¤é¾å¤ÎÊý¤ØÀѤ߾夲¤é¤ì¡¢Éé¤ÎÃÍ¤Ï ²¼¤Ø¸þ¤«¤Ã¤ÆÀѤ߾夲¤é¤ì¤Þ¤¹¡£Àµ¤ÎÃͤÈÉé¤ÎÃͤ¬º®¤¸¤Ã¤Æ¤¤¾ì¹ç¤Ï¡¢¾å¸þ¤ ¤È²¼¸þ¤¤ÎξÊý¤ÎÀѤ߾夲¤¬À¸À®¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÀѤ߾夲¥â¡¼¥É¤Ï rowstacked ¤Ç¤¹¡£
¥¹¥¿¥¤¥ë rowstacked ¤Ï¡¢¤Þ¤ººÇ½é¤ËÁªÂò¤µ¤ì¤¿Îó¤Î³Æ¹Ô¤ÎÃͤò x ¼´¤Î¤½ ¤ì¤¾¤ì¤Î°ÌÃÖ¤ËÇÛÃÖ¤·¤Þ¤¹: 1 ¹ÔÌܤÎÃÍ¤Ï x=1 ¤ÎÈ¢¡¢2 ¹ÔÌÜ¤Î¤Ï x=2¡¢°Ê²¼ ƱÍͤȤʤê¤Þ¤¹¡£2 ÈÖÌܰʹߤËÁªÂò¤µ¤ì¤¿Îó¤ËÂбþ¤¹¤ëÈ¢¤Ï¡¢¤½¤ì¤é¤Î¾å¤ËÀÑ ¤ß½Å¤Í¤é¤ì¤Æ¹Ô¤¤Þ¤¹¡£¤½¤·¤Æ·ë²Ì¤È¤·¤Æ¡¢x=1 ¤Ë¤Ç¤¤ëÈ¢¤ÎÀѤ߽Ťͤϡ¢³Æ Îó¤ÎºÇ½é¤ÎÃÍ (1 ¹ÔÌܤÎÃÍ) ¤«¤é¤Ê¤ê¡¢x=2 ¤ÎÈ¢¤ÎÀѤ߽ŤͤϳÆÎó¤Î 2 ¹ÔÌÜ ¤ÎÃÍ¡¢¤Ê¤É¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±¤¸Îó¤ËÂФ¹¤ëÈ¢¤ÏÁ´¤ÆƱ¤¸¿§¤Þ¤¿¤ÏƱ¤¸¥Ñ¥¿ ¡¼¥ó¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style fill (112.86.4))¡£
¥¹¥¿¥¤¥ë columnstacked ¤âƱÍͤǤ¹¤¬¡¢¤³¤Á¤é¤Ï³ÆÈ¢¤ÎÀѤ߾夲¤Ï (³Æ¹Ô ¤Î¥Ç¡¼¥¿¤«¤é¤Ç¤Ï¤Ê¤¯) ³ÆÎó¤Î¥Ç¡¼¥¿¤«¤é¤Ê¤ê¤Þ¤¹¡£ºÇ½é¤Ë»ØÄꤷ¤¿¥Ç¡¼¥¿Îó ¤Î³Æ¹Ô¤Î¥Ç¡¼¥¿¤¬ x=1 ¤ÎÈ¢¤ÎÀѤ߾夲¤òÀ¸À®¤·¡¢2 ÈÖÌܤ˻ØÄꤷ¤¿¥Ç¡¼¥¿Îó ¤Î³Æ¹Ô¤Î¥Ç¡¼¥¿¤¬ x=2 ¤ÎÈ¢¤ÎÀѤ߾夲¡¢¤Ê¤É¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤ ¥ë¤Ç¤Ï¡¢³ÆÈ¢¤Î¿§¤Ï¡¢³Æ¥Ç¡¼¥¿¹àÌܤΠ(ÎóÈÖ¹æ¤Ç¤Ï¤Ê¤¯) ¹ÔÈֹ椫¤é·èÄꤵ¤ì ¤Þ¤¹¡£
È¢¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ È¢¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤Ï¥³¥Þ¥ó¥É set style fill ¤ÇÀßÄê¤Ç¤¤Þ¤¹¡£
histograms ¤Ï x ¼´¤Ï¾ï¤Ë x1 ¼´¤ò»È¤¤¤Þ¤¹¤¬¡¢y ¼´¤Ë´Ø¤·¤Æ¤Ï y1 ¼´¤« y2 ¼´¤«¤òÁªÂò¤Ç¤¤Þ¤¹¡£plot Ì¿Î᤬¡¢histograms ¤È¾¤Î¥¹¥¿¥¤¥ë¤ÎÉÁ²è¤ÎξÊý ¤ò´Þ¤à¾ì¹ç¡¢histogram ¤Ç¤Ê¤¤Êý¤Ï¡¢x1 ¼´¤ò»È¤¦¤« x2 ¼´¤ò»È¤¦¤«¤òÁªÂò¤Ç ¤¤Þ¤¹¡£
°ì¤ÄÄɲäΥ¹¥¿¥¤¥ë¥ª¥×¥·¥ç¥ó set style histogram nokeyseparators ¤Ï¡¢ Ê£¿ô¤Î¥Ò¥¹¥È¥°¥é¥à¤ò´Þ¤à¥°¥é¥Õ¤Ë¤Î¤ßŬÀڤʤâ¤Î¤Ç¤¹¡£¤½¤Î¾ì¹ç¤ÎÄɲÃÀâÌÀ ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: newhistogram (50.1)¡£
Îã:
set boxwidth 0.9 relative set style data histograms set style histogram cluster set style fill solid 1.0 border lt -1 plot for [COL=2:4:2] 'file.dat' using COL
¤³¤ì¤Ï¡¢x ¼´¾å¤Î³ÆÀ°¿ôÃͤòÃæ¿´¤È¤¹¤ë¤½¤ì¤¾¤ì 2 ¤Ä¤ÎÈ¢ (±ôľ¤ÊËÀ) Ëè¤Î ¸Ç¤Þ¤ê¤Ë¤è¤ëÉÁ²è¤òÀ¸À®¤·¤Þ¤¹¡£ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤ÎÎó¤Ë¥é¥Ù¥ë¤¬´Þ¤Þ¤ì¤Æ ¤¤¤ë¤Ê¤é¤½¤ì¤ò¡¢°Ê²¼¤Î¾¯¤·Êѹ¹¤·¤¿¥³¥Þ¥ó¥É¤Ç x ¼´¤Ë±è¤Ã¤ÆÇÛÃ֤Ǥ¤Þ¤¹¡£
plot for [COL=2:4:2] 'file.dat' using COL:xticlabels(1)
set errorbars fullwidth set style fill solid 1 border lt -1 set style histogram errorbars gap 2 lw 2 plot for [COL=2:4:2] 'file.dat' using COL:COL+1
°Ê²¼¤Ï¡¢Æ±¤¸¥Ç¡¼¥¿¤ò¹ÔËè¤ÎÀѤ߾夲·¿ (rowstacked) ¤Î¥Ò¥¹¥È¥°¥é¥à¤ÇÉÁ²è ¤¹¤ëÊýË¡¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Þ¤Ç¤È¤Ï°ã¤¤¡¢°Ê²¼¤ÎÎã¤ÎÉÁ²è¥³¥Þ¥ó¥É¤Ç¤Ï¡¢ ·«¤êÊÖ¤·¤Î»ÈÍѤǤϤʤ¯¡¢¸ÄÊ̤ËÊÌ¡¹¤ÎÎó¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£
set style histogram rowstacked plot 'file.dat' using 2, ” using 4:xtic(1)
set style histogram columnstacked plot 'file.dat' using 2, ” using 4
¤³¤ì¤Ï¡¢gnuplot ¤ÎÄ̾ï¤ÎÆþÎϤνġ¢²£¤Î²ò¼á¤òÆþ¤ì´¹¤¨¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤Î ¤Ç¡¢ËÞÎã¤Î¥¿¥¤¥È¥ë¤ä x ¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Î»ØÄê¤âÊѹ¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼¤Î¥³¥á¥ó¥ÈÉôʬ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
set style histogram columnstacked plot ” u 5:key(1) # 1 ÎóÌܤòËÞÎ㥿¥¤¥È¥ë¤Ë»ÈÍÑ plot ” u 5 title columnhead #
¤³¤Î 2 ¤Ä¤ÎÎã¤Ï¡¢Á´¤¯Æ±¤¸¥Ç¡¼¥¿ÃͤòÍ¿¤¨¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢°Û¤Ê¤ë½ñ¼°¤Ç¤¢ ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
newhistogram {"<title>" {font "name,size"} {tc <colorspec>}} {lt <linetype>} {fs <fillstyle>} {at <x-coord>}
°ì²ó¤ÎÉÁ²è¤Ë 2 ¤Ä°Ê¾å¤Î¥Ò¥¹¥È¥°¥é¥à¤ÎÁȤòºî¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤³¤Î¾ì¹ç ¥³¥Þ¥ó¥É newhistogram ¤ò»È¤¦¤³¤È¤Ç¡¢¤½¤ì¤é¤ò¶¯À©Åª¤ËʬΥ¤·¡¢¤Þ¤¿¤½¤ì ¤¾¤ì¤Î¥é¥Ù¥ë¤òʬΥ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ Îã:
set style histogram cluster plot newhistogram "Set A", 'a' using 1, ” using 2, ” using 3, \ newhistogram "Set B", 'b' using 1, ” using 2, ” using 3
¥é¥Ù¥ë "Set A" ¤È "Set B" ¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥Ò¥¹¥È¥°¥é¥à¤ÎÁȤβ¼¡¢x ¼´¤ÎÁ´ ¤Æ¤Î¥é¥Ù¥ë¤Î²¼¤Î°ÌÃ֤˸½¤ï¤ì¤Þ¤¹¡£
¥³¥Þ¥ó¥É newhistogram ¤Ï¡¢¥Ò¥¹¥È¥°¥é¥à¤Î¿§ÉÕ¤±¤ò¶¯À©Åª¤Ë»ØÄꤷ¤¿¿§ (linetype) ¤Ç»Ï¤á¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿§¤ÎÈÖ¹æ¤Ï¥Ò¥¹¥È¥° ¥é¥à¤Î¶³¦¤ò¤Þ¤¿¤¤¤Ç¤µ¤¨¤âϢ³Ū¤ËÁý²Ã¤·Â³¤±¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢Ê£¿ô¤Î¥Ò¥¹ ¥È¥°¥é¥à¤ËƱ¤¸¿§ÉÕ¤±¤ò»Ü¤·¤Þ¤¹¡£
plot newhistogram "Set A" lt 4, 'a' using 1, ” using 2, ” using 3, \ newhistogram "Set B" lt 4, 'b' using 1, ” using 2, ” using 3
ƱÍͤˡ¢¼¡¤Î¥Ò¥¹¥È¥°¥é¥à¤ò»ØÄꤷ¤¿ fillstyle ¤Ç»Ï¤á¤µ¤»¤ë¤³¤È¤¬²Äǽ¤Ç ¤¹¡£¤½¤Î fillstyle ¤ò pattern ¤Ë¥»¥Ã¥È¤·¤¿¾ì¹ç¡¢ÅɤêÄÙ¤·¤Ë»ÈÍѤµ¤ì¤ë ¥Ñ¥¿¡¼¥óÈÖ¹æ¤Ï¼«Æ°Åª¤ËÁý²Ã¤µ¤ì¤Æ¤¤¤¤Þ¤¹¡£
¿·¤·¤¤¥Ò¥¹¥È¥é¥à¤Î³«»Ï¤Ï¡¢Ä̾ï¤ÏËÞÎã (key) ¤Ë¶õ¤Î¥¨¥ó¥È¥ê¤òÄɲä·¡¢¤½ ¤ì¤Ë¤è¤ê¤½¤Î¥Ò¥¹¥È¥°¥é¥àÍ×ÁǤν¸¹ç¤Î¥¿¥¤¥È¥ë¤Ï¡¢¤½¤ì°ÊÁ°¤Î¥Ò¥¹¥È¥°¥é¥à ¤Î¤â¤Î¤ÈʬΥ¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¤³¤Î¶õ¹Ô¤Ï¡¢¤½¤ÎÍ×ÁǤ¬¸Ä¡¹¤Î¥¿ ¥¤¥È¥ë¤ò»ý¤¿¤Ê¤¤¾ì¹ç¤Ï˾¤Þ¤·¤¤¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¤½¤Î¥¹¥¿¥¤¥ë ¤ò set style histogram nokeyseparators ¤ÈÊѹ¹¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î¶õ¹Ô¤Î ½ÐÎϤòÍÞÀ©¤Ç¤¤Þ¤¹¡£
set style histogram cluster set style data histogram set style fill solid 1.0 border -1 set xtic 1 offset character 0,0.3 plot newhistogram "Set A", \ 'file.dat' u 1 t 1, ” u 2 t 2, \ newhistogram "Set B" at 8, \ 'file.dat' u 2 t 2, ” u 2 t 2
¤³¤Î¾ì¹ç¡¢2 ¤ÄÌܤΥҥ¹¥È¥°¥é¥à¤Î°ÌÃÖ¤Ï x=8 ¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£
set style histogram columnstacked plot for [i=3:8] "datafile" using i title columnhead
¤³¤Î»ÅÁȤߤϡ¢¥Ç¡¼¥¿¥½¡¼¥¹¤¬¿¿¤ËÊÂÎó¤Ç¤Ï¤Ê¤¤ (¤¹¤Ê¤ï¤Á¡¢¤¤¤¯¤Ä¤«¤Î¥Õ¥¡ ¥¤¥ë¤Î¥Ç¡¼¥¿¤¬ÉÔ´°Á´) ¤¿¤á¤Ë¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤Þ¤¿¤Ï¡¢´ðËÜ¿§¤Î¸÷ ÅÙ¤äºÌÅÙ¤òÊѤ¨¤ë¤³¤È¤Ë¤è¤ê»ë³Ð²½¤¹¤ë¤¿¤á¤Î¥Ç¡¼¥¿¤ÎÄɲðÀ¤òÍ¿¤¨¤¿¤¤¤« ¤â¤·¤ì¤Þ¤»¤ó¡£¼«Æ°Åª¤Ê¿§¤Î³ä¤êÅö¤Æ¤ÎÂå¤ï¤ê¤Ë¡¢³Æ¥Ç¡¼¥¿ÍѤÎÌÀ¼¨Åª¤Ê¿§¤Î Ãͤò¡¢2 ÈÖÌܤΠusing Îó¤Ç¡¢linecolor variable ¤« rgb variable ¤Î »ÅÁȤߤˤè¤Ã¤ÆÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£¤¢¤Ê¤¿¤Î¥Ç ¡¼¥¿¤Î¥ì¥¤¥¢¥¦¥È¤Ë¤è¤Ã¤Æ¡¢¿§¤Î¥«¥Æ¥´¥ê¤Ï¡¢¹Ô¤Î¥Ø¥Ã¥À¤«¡¢Îó¤Î¥Ø¥Ã¥À¤«°ì ¤Ä¤Î¥Ç¡¼¥¿Îó¤Ç¤¢¤ê¤¨¤Þ¤¹¡£Â¿Ê¬¡¢ËÞÎã (key) ¤Î¥µ¥ó¥×¥ë¤Î¿§¤Ï¡¢¤½¤ì¤Ë¹ç ¤¦¤è¤¦¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (°Ê²¼»²¾È: keyentry (112.39.3))¡£
Îã: file_001.dat ¤«¤é file_008.dat ¤Ï¡¢1 ÎóÌܤϥ«¥Æ¥´¥ê¼±Ê̻ҤΠA, B, C, ... ¤Ç¡¢2 ÎóÌܤ¬¥Ç¡¼¥¿ÃͤˤʤäƤ¤¤Þ¤¹¡£¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ù¤Æ¤Î ¥«¥Æ¥´¥ê¤ËÂФ¹¤ë¹Ô¤ò»ý¤Ã¤Æ¤¤¤ë¤È¤Ï¸Â¤é¤º¡¢¤è¤Ã¤Æ´°Á´¤ÊÊÂÎó¥Ç¡¼¥¿·²¤Ç¤Ï ¤¢¤ê¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¡¢gnuplot ¤Ï¡¢´Ö°ã¤Ã¤Æ³Æ¥Õ¥¡¥¤¥ë¤Î N ¹ÔÌܤÎÃͤËƱ ¤¸¿§¤ò³ä¤êÅö¤Æ¤è¤¦¤È¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤½¤ÎÂå¤ï¤ê¤Ë¡¢1 ÎóÌܤΥ«¥Æ¥´¥ê¤Ë´ð ¤Å¤¤¤¿¿§¤ò³ä¤êÅö¤Æ¤ëÎã¤Ç¤¹¡£
file(i) = sprintf("file_%03d.dat",i) array Category = ["A", "B", "C", "D", "E", "F"] color(c) = index(Category, strcol(c)) set style data histogram plot for [i=1:8] file(i) using 2:(color(1)) linecolor variable
¤µ¤é¤Ë key ¤Î¥«¥¹¥¿¥Þ¥¤¥º¤ÎÀ¸À®¤â´Þ¤à´°Á´¤ÊÎ㤬¡¢¥Ç¥â¤ÎÃæ¤Î histogram_colors.dem
¤Ë¤¢¤ê¤Þ¤¹¡£
½ñ¼°:
plot <data> with hsteps {forward|backward} {baseline|pillars|link|nolink} {{above|below} y=<baseline>} {offset <y-offset>}
2 Îó: x y 3 Îó: x y width
¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï 2 Îó¤« 3 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹¡£¤µ¤é¤ËÆþÎÏÎó¤òÄɲà ¤¹¤ë¤È¡¢¤½¤ì¤Ï²ÄÊÑÀþ¿§¤äÅɤêÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹ (°Ê²¼»²¾È: rgbcolor variable (20.1.4))¡£ÆþÎϥǡ¼¥¿¤Î x ¤ÎÃͤϡ¢Ã±Ä´¤Ç¤¢¤ë¤È²¾Äꤷ¤Þ¤¹¡£
³ÆÃʤÎÉý¤ò 3 ÎóÌܤÎÆþÎÏÎó¤È¤·¤ÆÌÀ¼¨Åª¤Ë¤ÏÍ¿¤¨¤Ê¤«¤Ã¤¿¾ì¹ç¡¢³ÆÀþʬ¤ÎÉý ¤Ï¡¢ÎÙÀܤ¹¤ë¿åÊ¿Àþʬ¤ÈÀÜ¿¨¤¹¤ë¤è¤¦¤Ë·×»»¤·¤Þ¤¹¡£3 ÎóÌܤ¬Éé¤ÎÃͤξì¹ç¤Ï Á´Éý¤ÎÃʤÎÍ×µá¤È¤·¤Æ½èÍý¤·¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É forward, backward ¤Ï¡¢»ØÄꤷ¤¿ x ºÂɸ¤«¤é¿åÊ¿Àþʬ¤ò±äĹ ¤¹¤ëÊý¸þ¤ò»ØÄꤹ¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£¤É¤Á¤é¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¿åÊ¿Àþʬ¤ÏÍ¿ ¤¨¤é¤ì¤¿ x ¤ÎÃͤ«¤éξ¦¤Ø¡¢ÎÙÀܤ¹¤ë¼¡¤ÎÅÀ¤Î x ¤ÎÃͤȤÎÃæÅÀ¤Þ¤Ç±äŤ·¤Þ ¤¹¡£¤·¤«¤·¡¢»ÏÅÀ¤È½ªÅÀ¤Ç¤Ï¡¢Âбþ¤¹¤ë³°Â¦¤ÎÎÙÀÜÅÀ¤¬¤Ê¤¤¤Î¤Ç¡¢¿åÊ¿Àþʬ¤Ï Æ⦤ÎÎÙÀÜÅÀ¤È¤Îµ÷Î¥¤òÍøÍѤ·¤Æ³°Â¦¤Ø¤Î±äĹÉý¤ò³°ÁÞ¤·¤Þ¤¹ (°Ê²¼»²¾È: histeps (48), boxes (36))¡£
¥Ç¥Õ¥©¥ë¥È (baseline) ¤È¡¢¤½¤ÎÊѼï¤Î pillar ¤Ï¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤È¤Ê¤ë y ¤ÎÃͤò»ÈÍѤ·¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤Ï y=0 ¤È¤Ê¤ê¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤¬ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢¥Ù¡¼¥¹ ¥é¥¤¥ó¤ÏÅɤêÄÙ¤·Îΰè¤Î°ì¤Ä¤Î¶³¦¤òÄê¤á¤ë¤³¤È¤Ë¤â¤Ê¤ê¤Þ¤¹¡£ 4 ¤Ä¤ÎÊѼ郎ÍøÍѲÄǽ¤Ç¤¹¡£
set xzeroaxis plot $data using 1:2 with hsteps plot $data using 1:2:(0.5) with hsteps
plot $data using 1:2 with hsteps pillar plot $data using 1:2:(0.5) with hsteps pillar plot $data using 1:2:(0.5) \ with hsteps pillar above fc "blue", \ $data using 1:2:(0.5) \ with hsteps pillar below fc "red"
plot $data using 1:2 with hsteps nolink, \ $data using 1:2 with hsteps nolink forward, \ $data using 1:2 with hsteps nolink backward, \ $data using 1:2 with points pt "|"
Îã: ÊѼï link ¤òÊѼï pillar ¤Ë½Å¤Í¤ë¤³¤È¤Ç¡¢¥«¥Æ¥´¥ê¤Î¶³¦Æ±»Î¤òÀþ ¤ÇÀܳ¤¹¤ë¤è¤¦¤ÊÀѤ߾夲·¿¥Ò¥¹¥È¥°¥é¥à¥°¥é¥Õ¤òÀ¸À®¤Ç¤¤Þ¤¹¡£
set style line 11 lw 2 lc "gray" dt "." set style line 12 lw 2 lc variable plot $data using 1:3:(0.5) ls 11 with hsteps link, \ $data using 1:3:(0.5):1 ls 12 with hsteps pillar \ fs solid 0.7 border, \ $data using 1:4:(0.5) ls 11 with hsteps link, \ $data using 1:4:(0.5):1 ls 12 with hsteps pillar \ fs transparent pattern 1 border
# bit(k,char) ¤Ï¡¢¥¢¥¹¥¡¼Ê¸»ú¤Î k bit ¤Î¾õÂ֤˱þ¤¸¤Æ # 0 ¤« 1 ¤òÊÖ¤¹´Ø¿ô set style fill solid 0.2 border plot for [k=1:8] STR using 1:(bit(k,STR[$1])):(0.5) \ with hsteps fillcolor "black" offset k
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
¥¹¥¿¥¤¥ë image ¤Ï¡¢¥°¥ì¥¤¥¹¥±¡¼¥ë (³¥¿§³¬Ä´)¡¢¤Þ¤¿¤Ï¥«¥é¡¼¥Ñ¥ì¥Ã¥ÈÃÍ ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ô¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ 2 ¼¡¸µÉÁ²è (plot ¥³¥Þ ¥ó¥É) ¤Ç¤Ï 3 Îó¤Î¥Ç¡¼¥¿ (x,y,value) ¤ò¡¢3 ¼¡¸µÉÁ²è (splot ¥³¥Þ¥ó¥É) ¤Ç¤Ï 4 Îó¤Î¥Ç¡¼¥¿ (x,y,z,value) ¤¬É¬Íפˤʤê¤Þ¤¹¡£
¥¹¥¿¥¤¥ë rgbimage ¤Ï¡¢ÀÖ¡¢ÎС¢ÀĤΠ3 ¤Ä¤Î¿§À®Ê¬ (RGB) ¤Çµ½Ò¤µ¤ì¤¿¥Ô ¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ plot ¤Ç¤Ï 5 ¼¡¸µ¥Ç¡¼¥¿ (x,y,r,g,b) ¤¬¡¢splot ¤Ç¤Ï 6 ¼¡¸µ¥Ç¡¼¥¿ (x,y,z,r,g,b) ¤¬É¬Íפˤʤê¤Þ¤¹¡£ÀÖ¡¢ÎС¢ ÀĤγÆÀ®Ê¬¤Ï [0:255] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢PNG ¤ä JPEG ¥Õ¥¡¥¤¥ë¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë»ÅÁȤߤ˹ç¤Ã¤Æ¤¤¤Þ¤¹ (°Ê²¼ »²¾È: binary filetype (99.2.7))¡£¤·¤«¤·¡¢RGB À®Ê¬¤È¤·¤Æ [0:1] ¤ÎÈϰϤμ¿ôÃÍ ¤ò¼è¤ë»ÅÁȤߤò»ÈÍѤ¹¤ë¤è¤¦¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤âÃæ¤Ë¤Ï¤¢¤ê¤Þ¤¹¡£¤½¤Î¤è¤¦¤Ê ¥Ç¡¼¥¿¤Ç rgbimage ¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¤Ë¤Ï¡¢¤Þ¤º set rgbmax 1.0 ¤È¤· ¤Æ¤¯¤À¤µ¤¤¡£
¥¹¥¿¥¤¥ë rgbalpha ¤Ï¡¢ÀÖ¡¢ÎС¢ÀĤΠRGB À®Ê¬¤Ë²Ã¤¨¤Æ¡¢¥¢¥ë¥Õ¥¡ÃÍ (Æ© ²á¥Ñ¥é¥á¡¼¥¿) ¤Î¾ðÊó¤â´Þ¤ó¤À¥Ô¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢plot ¤Ç¤Ï 6 ¼¡¸µ¥Ç¡¼¥¿ (x,y,r,g,b,a) ¤¬¡¢splot ¤Ç¤Ï 7 ¼¡¸µ¥Ç¡¼¥¿ (x,y,z,r,g,b,a) ¤¬É¬Íפˤʤê¤Þ¤¹¡£ÀÖ¡¢ÎС¢ÀÄ¡¢¤ª¤è¤Ó¥¢¥ë¥Õ¥¡¤Î³ÆÀ®Ê¬¤Ï [0:255] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£RGBA À®Ê¬¤¬ [0:1] ¤ÎÈϰϤμ¿ôÃÍ ¤Ç¤¢¤ë¥Ç¡¼¥¿¤òÉÁ²è¤¹¤ë¤Ë¤Ï¡¢¤Þ¤º set rgbmax 1.0 ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
rgbimage ¤« rgbalpha ¤Î¤¤¤º¤ì¤«¤Ç¤ÎÉÁ²è¤Ç¿§Í×ÁÇÍѤ˥ǡ¼¥¿ 1 Îó¤·¤«»ØÄê ¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï¡¢alpha=0 ¤ÏÉÔÆ©ÌÀ¡¢alpha=255 ¤¬´°Á´¤ÊÆ©ÌÀ¤ò°Õ Ì£¤¹¤ë¡¢32 bit ¥Ñ¥Ã¥¯¤Î ARGB ¥Ç¡¼¥¿¤Ç¤¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£¤³¤Î¥¢¥ë¥Õ¥¡ÃÍ ¤Î¸«Êý¤Ï¡¢¥¢¥ë¥Õ¥¡Ãͤ¬Ê̤ÎÎó¤ÇÍ¿¤¨¤é¤ì¤ë¾ì¹ç¤Ï¸Å½¤¤´·½¬¤Ç¤¹¤¬¡¢¤·¤«¤·¡¢ ¿§¤òÀßÄꤹ¤ëɬÍפΤ¢¤ë¸Ä¡¹¤Î¥³¥Þ¥ó¥ÉÍѤΠARGB ¥Ñ¥Ã¥¯¤Î»ÅÁȤߤˤϹç¤Ã¤Æ ¤¤¤Þ¤¹¡£
plot 'data' with image pixels
1 Îó: y 2 Îó: x y # [x,0] ¤«¤é [x,y] ¤Ø¤ÎÀþ (2D) 3 Îó: x y z # [x,y,0] ¤«¤é [x,y,z] ¤Ø¤ÎÀþ (3D)
3 Îó: x y string # 2 ¼¡¸µÈÇ 4 Îó: x y z string # 3 ¼¡¸µÈÇ
¥Õ¥©¥ó¥È¡¢¿§¡¢²óž³Ñ¤ä¤½¤Î¾¤ÎÉÁ²è¥Æ¥¥¹¥È¤Î°À¤ÏÄɲ媥ץ·¥ç¥ó¤È¤·¤Æ »ØÄê²Äǽ¤Ç¤¹ (°Ê²¼»²¾È: set label (112.40))¡£¼¡¤ÎÎã¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 1 ÎóÌÜ ¤«¤é¼è¤Ã¤¿»Ô¤Î̾Á°¤«¤éºî¤é¤ì¤ëʸ»úÎó¤ò¡¢4, 5 ÎóÌܤ«¤é¼è¤Ã¤¿ÃÏ¿ÞºÂɸ¤Ë ÉÁ²è¤·¤Þ¤¹¡£¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï¡¢3 ÎóÌܤÎÃͤ«¤é·×»»¤·¤Æ¤¤¤Æ¡¢¤³¤Î¾ì¹ç¤Ï¤½ ¤ì¤Ï¿Í¸ý¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£
CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), String) plot 'cities.dat' using 5:4:(CityName(stringcolumn(1),$3)) with labels
¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò¡¢¸Ä¡¹¤Î»Ô¤Î̾Á°¤ËÂФ·¤Æ°Û¤Ê¤ë¥µ¥¤¥º¤Ë¹ç¤ï¤»¤Ê¤¯¤Æ¤¤¤¤ ¤Ê¤é¤Ð¡¢¥³¥Þ¥ó¥É¤Ï¤â¤Ã¤È´Êñ¤Ç¤¹:
plot 'cities.dat' using 5:4:1 with labels font "Times,8"
labels ¤Ë hypertext ¤¬¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Îʸ»úÎó¤Ï¥Þ¥¦¥¹¤¬¤½¤ì¤ËÂбþ ¤¹¤ëÅÀ¤Î¾å¤ËÍ褿¤È¤¤Ë¤À¤±¸½¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: hypertext (112.40.2)¡£¤³¤Î¾ì¹ç ¥Ï¥¤¥Ñ¡¼¥Æ¥¥¹¥È¤ÎÃÖ¤¾ì½ê¤È¤·¤Æµ¡Ç½¤¹¤ëÅÀ¤òºî¤ë¤¿¤á¤Ë¤½¤Î¥é¥Ù¥ë¤Î point °À¤ò͸ú¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:
plot 'cities.dat' using 5:4:1 with labels hypertext point pt 7
set encoding utf8 symbol(z) = "<UTF-8 ʸ»úÎó>"[int(z):int(z)] splot 'file' using 1:2:(symbol($3)) with labels
°Ê²¼¤Ï¡¢4 ÎóÌܤÎÃͤò²ÄÊÑÃͤβóž³Ñ¤È¤·¡¢5 ÎóÌܤÎÃͤòʸ»ú¿§ ("tc") ¤È¤¹ ¤ë¥é¥Ù¥ë¤Î»ÈÍÑÎã¤Ç¤¹¡£²ÄÊÑÃͤ炙ØÄê¤Ï¡¢¾ï¤Ë using »ØÄê¤ÎºÇ¸å¤ÎÎó¤« ¤é¼è¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
plot $Data using 1:2:3:4:5 with labels tc variable rotate variable
2 ¼¡¸µ ("using" »ØÄê¤Ê¤·) ¤Î¾ì¹ç
1 Îó: y # ¹ÔÈÖ¹æ¤Ë¤è¤ë°ÅÌۤΠx 2 Îó: x y
3 ¼¡¸µ ("using" »ØÄê¤Ê¤·) ¤Î¾ì¹ç
1 Îó: z # x ¤Ï°ÅÌۤιÔÈֹ桢y ¤Ï index ¤«¤é 3 Îó: x y z
°Ê²¼¤â»²¾È: linetypes (20), linewidth (112.86.8), linestyle (112.86.8)¡£
¥°¥é¥Õ¤Î¤¹¤Ù¤Æ¤ÎÅÀ¤Ëµ¹æ¤Î°õ¤ò¤Ä¤±¤ë¤«Èݤ«¤òÀ©¸æ¤¹¤ë 2 ¤Ä¤Î¥¡¼¥ï¡¼¥É pointinterval (¾Êά·Á pi), pointnumber (¾Êά·Á pn) ¤¬¤¢¤ê¤Þ¤¹¡£
pi N ¤¢¤ë¤¤¤Ï pi -N ¤Ï¡¢N ¸ÄËè¤Ë 1 ¤Ä¤À¤±µ¹æ¤òÃÖ¤¯¤è¤¦ gnuplot ¤Ë »Ø¼¨¤·¤Þ¤¹¡£Éé¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢µ¹æ¤Î²¼¤ÎÀþʬ¤ÎÉôʬ¤ò¾Ã¤·¤Þ¤¹¡£¤½¤Î¾Ã ¤¹Éôʬ¤Î¥µ¥¤¥º¤Ï set pointintervalbox ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
pn N ¤¢¤ë¤¤¤Ï pn -N ¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤Î¤¦¤Á N ¸Ä¤À¤±¥é¥Ù¥ëÉÕ¤±¤¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ÅÀ¤Ï¤½¤Î¥Ç¡¼¥¿Á´ÂΤËÅϤäƶÑÅù¤Ê´Ö³Ö¤Ë¼è¤ê¤Þ¤¹¡£ pi ƱÍÍ¡¢Éé¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢µ¹æ¤Î²¼¤ÎÀþʬ¤ÎÉôʬ¤ò¾Ã¤·¤Þ¤¹¡£
plot ¥³¥Þ¥ó¥É¾å¤Ë¥Þ¥¹¥¯ÄêµÁ¤¬¤¢¤ë¾ì¹ç¡¢¤½¤Î¸å¤ÎƱ¤¸¥³¥Þ¥ó¥É¾å¤Î image ÉÁ²è¡¢pm3d ¶ÊÌ̤¬¡¢¥¡¼¥ï¡¼¥É mask ¤òÄɲ乤뤳¤È¤Ç¥Þ¥¹¥¯¤µ¤ì¤Þ¤¹¡£ ¥Þ¥¹¥¯¤òÄêµÁ¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥¡¼¥ï¡¼¥É¤Ï̵»ë¤·¤Þ¤¹¡£
°Ê²¼¤ÎÎã¤Ï¡¢ÅÀ¤Î½¸¹ç¤ò°Ï¤àÆÌÊñ¤ò»È¤¤¡¢¤¢¤ë pm3d ¶ÊÌ̤ËÂбþ¤¹¤ëÎΰè¤ò¥Þ ¥¹¥¯¤¹¤ëÊýË¡¤ò¼¨¤·¤Þ¤¹¡£
set table $HULL plot $POINTS using 1:2 convexhull unset table
set view map set multiplot layout 1,2 splot $POINTS using 1:2:3 with pm3d, \ $POINTS using 1:2:(0) nogrid with points splot $HULL using 1:2:(0) with mask, \ $POINTS using 1:2:3 mask with pm3d unset multiplot
ºÇ½é¤Î¥Ñ¥Í¥ë¤ËÂФ¹¤ë¥³¥Þ¥ó¥É splot ¤Ï¡¢¸µ¤ÎÅÀ¤«¤é dgrid3d ¤ÇÀ¸À®¤·¤¿ ¥Þ¥¹¥¯¤µ¤ì¤Æ¤¤¤Ê¤¤¶ÊÌ̤òÉÁ²è¤·¡¢¤½¤Î¸å¤ÇÅÀ¼«¿È¤ò½ç¤ËÉÁ²è¤·¤Þ¤¹¡£2 ¤ÄÌÜ ¤Î¥Ñ¥Í¥ë¤ËÂФ¹¤ë¥³¥Þ¥ó¥É splot ¤Ï¥Þ¥¹¥¯¤·¤¿¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£¥Þ¥¹¥¯ ¤ÎÄêµÁ (with mask ¤Ç¤Î plot) ¤ÏºÇ½é¤Ë¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¤½¤ì¤òŬÍÑ ¤¹¤ë pm3d ¶ÊÌ̤Ϥ½¤Î¸å¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (ÉÁ²è¥¹¥¿¥¤¥ë with pm3d ¤Ë¥¡¼¥ï¡¼¥É mask ¤ò¤Ä¤±¤ÆÊѹ¹)¡£ ¤³¤ÎÎã¤Î¤è¤ê´°Á´¤ÊÈǤϡ¢¥Ç¥â½¸¹ç mask_pm3d.dem
Æâ¤Ë¤¢¤ê¤Þ¤¹¡£
¤³¤³¤Ë¤Ï¼¨¤·¤Þ¤»¤ó¤¬¡¢°ì¤Ä¤Î¥Þ¥¹¥¯¤¬Ê£¿ô¤Î¿³Ñ·ÁÎΰè¤ò´Þ¤ßÆÀ¤Þ¤¹¡£
¥Þ¥¹¥¥ó¥°¥³¥Þ¥ó¥É¤Ï»î¸³Ãʳ¬¤Ç¤¹¡£¾ÜºÙ¤Ï¡¢¾Íè¤Î¥ê¥ê¡¼¥¹¤ÇÊѹ¹¤µ¤ì¤ë¤« ¤â¤·¤ì¤Þ¤»¤ó¡£
½ñ¼°:
set style data parallelaxes plot $DATA using col1{:varcol1} {at <xpos>} {<line properties}, \ $DATA using col2, ...
¥¡¼¥ï¡¼¥É at ¤Ç¡¢°Ê²¼¤ÎÎã¤Ë¸«¤é¤ì¤ë¤è¤¦¤Ë¡¢Ê¿¹ÔºÂɸ¼´¤Î x ¼´°ÌÃÖ¤Ç ¤ÎÌÀ¼¨Åª¤ÊÇÛÃÖ¤â²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ÌÀ¼¨Åª¤Ê x ºÂɸ»ØÄ꤬¤Ê¤±¤ì¤Ð¡¢N ÈÖÌܤμ´¤Ï x=N ¤Î¾ì½ê¤ËÃÖ¤«¤ì¤Þ¤¹¡£
array xpos[5] = [1, 5, 6, 7, 11, 12] plot for [col=1:5] $DATA using col with parallelaxes at xpos[col]
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤Ï¼«Æ°Åª¤Ë¸Ä¡¹¤Î¼´¤ÎÈÏ°Ï¡¢¥¹¥±¡¼¥ë¤òÆþÎϥǡ¼¥¿ ¤«¤é·èÄꤷ¤Þ¤¹¤¬¡¢Ä̾ï¤Î set axis range ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¤½¤ì¤ò¥«¥¹¥¿ ¥Þ¥¤¥º¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set paxis (112.69)¡£
¶ËºÂɸ¤Ç¤Î²¹ÅÙʬÉÛ_¿Þ¤Ï¡¢¥¹¥¿¥¤¥ë with surface ¤È set polar grid ¤ò¹ç¤ï¤»¤Æ»ÈÍѤ¹¤ë¤³¤È¤ÇÀ¸À®¤Ç¤¤Þ¤¹¡£
set size square set angle degrees set rtics set grid polar set palette cubehelix negative gamma 0.8 set polar grid gauss kdensity scale 35 set polar grid theta [0:190] plot DATA with surface, DATA with points pt 7
ºÇ½é¤Î 8 ¤Ä¤ÎÅÀ¼ï¤Ï¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¶¦Ä̤Ǥ¹¤¬¡¢¤è¤ê¿¤¯¤ÎÅÀ¼ï¤ò¸Ä Ê̤˥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£¸½ºß¤Î½ÐÎÏ·Á¼°¤ÎÀßÄê¤Ç¤É¤Î¤è¤¦¤ÊÅÀ ¼ï¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤«¤ò¸«¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É test ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿¡¢²¼¤ÎÎã¤Î¤è¤¦¤Ë¤·¤Æ¡¢Ç¤°Õ¤Î°õ»ú²Äǽʸ»ú¤òÅÀ¼ïÈÖ¹æ¤ÎÂå¤ï¤ê¤Ë»ÈÍѤ¹ ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ÅÀ¼ï¤È¤·¤Æ¡¢Ç¤°Õ¤Î UTF-8 ʸ»ú¤ò»ÈÍѤǤ¤Þ¤¹ (utf8 ¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ëɬÍפ¢¤ê)¡£°Ê²¼»²¾È: escape sequences (13.1)¡£¤è¤êŤ¤Ê¸»ú Îó¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë points ¤Ç¤Ï¤Ê¤¯ labels ¤ò»È¤¨¤Ð½ÐÎϤǤ¤Þ¤¹¡£
plot f(x) with points pt "#" plot d(x) with points pt "\U+2299"
# ÆþÎϥǡ¼¥¿¤Ï¡¢Îó 1:2 ¤Ç [x,y] ¤òÍ¿¤¨ # ÅÀ¤Î¥µ¥¤¥º¤Ï 5 ÎóÌܤÇÍ¿¤¨ # RGB ¿§¤Ï 4 ÎóÌÜ¤Ç 16 ¿Ê¿ôÃͤȤ·¤ÆÍ¿¤¨ # ¤¹¤Ù¤Æ¤ÎÅÀ¤Ï pointtype 7 ¤ò»ÈÍÑ plot DATA using 1:2:5:4 with points lc rgb variable ps variable pt 7
2 ¤Ä°Ê¾å¤Î²ÄÊÑ (variable) °À¤ò»ØÄꤹ¤ë¤È¡¢plot ¥³¥Þ¥ó¥ÉÆâ¤Î¥¡¼¥ï¡¼ ¥É¤Î½ç¤È¤Ï̵´Ø·¸¤Ë¡¢°Ê²¼¤Î½ç¤ÇÎó¤ò²ò¼á¤·¤Þ¤¹¡£
textrotation : pointsize : pointtype : color (ʸ»úÎó¤Î²óž³Ñ) : (ÅÀ¤Î¥µ¥¤¥º) : (ÅÀ¤Î¼ïÎà) : (¿§)
¤è¤Ã¤Æ¡¢¾å¤ÎÎã¤Ç¤Ï¡¢"lc rgb variable" ¤Ï plot ¥³¥Þ¥ó¥É¤ÎºÇ½é¤Ë¸½¤ì¤Æ¤¤ ¤Þ¤¹¤¬¡¢¿§¤Ï using »ØÄê¤ÎºÇ¸å¤ÎÎó (4) ¤«¤é¼è¤ê¤Þ¤¹¡£²ÄÊÑ¿§ (variable color) »ØÄê¤Ï¡¢¾ï¤ËºÇ¸å¤ÎÄɲÃÎ󤫤é¼è¤ê¤Þ¤¹¡£²ÄÊÑ¿§¤ò»ØÄꤹ¤ë¤Ë¤Ï¡¢¤¤ ¤¯¤Ä¤«¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£
Ãí°Õ: ¡Ö¥æ¡¼¥¶ÄêµÁÊÑ¿ô¡×¤ÎÊý¤Î variable ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼ »²¾È: variables (15.7)¡£
plot DATA {using 1:2} with polygons
plot with polygons ¤Ï¡¢plot with filledcurves closed ¤È¤·¤Æ½èÍý¤· ¤Þ¤¹¤¬¡¢³Æ¿³Ñ·Á¤Î¶³¦¤òÊĶÊÀþ¤È¤·¤ÆÉÁ²è¤¹¤ë¾ì¹ç¤ò½ü¤¤Þ¤¹¡£¤½¤ì¤Ï¡¢¤½ ¤Î¤½¤ÎºÇ½é¤ÈºÇ¸å¤ÎÅÀ¤¬Æ±¤¸¤Ç¤Ê¤¯¤Æ¤â¤Ç¤¹¡£¶³¦Àþ¤ÎÀþ¼ï¤Ï¡¢ÅɤêÄÙ¤·¥¹¥¿ ¥¤¥ë (fill style) ¤«¤é¼è¤ê¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢Ã±°ì¤Î¶õ¹Ô¤Ç¶è ÀڤäÆÊ£¿ô¤Î¿³Ñ·Á¤òÆþ¤ì¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£³Æ¿³Ñ·Á¤Ë¤Ï¡¢3 ÎóÌܤÎÃͤòÍ¿ ¤¨¡¢¥¡¼¥ï¡¼¥É lc variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò linetype ¤È²ò¼á) ¤«¡¢ lc rgb variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò 24 ¥Ó¥Ã¥È RGB ¿§¤È²ò¼á) ¤³¤È¤Ç¡¢ ¸ÄÊ̤理ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Â¿³Ñ·Á¤ÎºÇ½é¤ÎĺÅÀ¤Î¿§¤ÎÃͤΤߤò»È ÍѤ·¤Þ¤¹¡£
3 ¼¡¸µ¥°¥é¥Õ:
splot DATA {using x:y:z} with polygons {fillstyle <fillstyle spec>} {fillcolor <colorspec>}
splot with polygons ¤Ï¡¢3 ¼¡¸µ¶õ´Ö¤Î¸Ä¡¹¤Î»°³Ñ·Á¡¢»Í³Ñ·Á¡¢¤ª¤è¤Ó¤½¤ì °Ê¾å¤Î¿³Ñ·Á¤òÉÁ²è¤¹¤ë¤Î¤Ë pm3d ¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤é¤Ï 3 ¼¡¸µ¶ÊÌ̤ΰì Ì̤äñÆȤηÁ¾õ¤È¤Ê¤êÆÀ¤Þ¤¹¡£¤³¤Î¥ë¡¼¥Á¥ó¤Ï¡¢ÄºÅÀ¤¬°ì¤Ä¤ÎÊ¿Ì̤˾è¤Ã¤Æ¤¤ ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¸Ä¡¹¤Î¿³Ñ·Á¤òÄêµÁ¤¹¤ëĺÅÀ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎϢ³¤¹¤ë¹Ô¤«¤éÆɤ߹þ¤ß¤Þ¤¹¡£ ¶õ¹Ô¤Ï¿³Ñ·ÁƱ»Î¤òʬΥ¤·¤Þ¤¹¡£
ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤È¿§¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Ç»ØÄê¤Ç¤¤Þ¤¹¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì ¤ÐÂç°èŪ¤ÊÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Î set style fill ¤ÎÀßÄê¤ò»ÈÍѤ·¤Þ¤¹¡£pm3d ¥ë¡¼¥Á¥ó¤ÎÀ©¸Â¤Î¤¿¤á¡¢set pm3d border ¤Ë¤è¤ë°ì¤Ä¤Î¶³¦Àþ¥¹¥¿¥¤¥ë¤¬¡¢ ¤¹¤Ù¤Æ¤Î 3 ¼¡¸µÂ¿³Ñ·Á¤ËŬÍѤµ¤ì¤Þ¤¹¤¬¡¢¤³¤ÎÀ©¸Â¤Ï¾Íè¤ÎÈǤΠgnuplot ¤Ç ¤Ï¼è¤ê½ü¤«¤ì¤ë¤Ç¤·¤ç¤¦¡£
³Æ¿³Ñ·Á¤Ë¤Ï¡¢4 ÎóÌܤÎÃͤòÍ¿¤¨¡¢¥¡¼¥ï¡¼¥É lc variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò linetype ¤È²ò¼á) ¤«¡¢lc rgb variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò 24 ¥Ó¥Ã¥È RGB ¿§¤È²ò¼á) ¤³¤È¤Ç¡¢¸ÄÊ̤理ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Â¿ ³Ñ·Á¤ÎºÇ½é¤ÎĺÅÀ¤Î¿§¤ÎÃͤΤߤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£
Ì̤ˤϡ¢pm3d ¤Î¥½¡¼¥È½ç¤È¸÷¸»¥â¥Ç¥ë¤òŬÍѤ·¤Þ¤¹¤Î¤Ç¡¢¾ï¤Ë¡¢ set pm3d depthorder ¤ò»È¤¦Êý¤¬¤¤¤¤¤«¤â¤·¤ì¤»¤ó¡£
set xyplane at 0 set view equal xyz unset border unset tics set pm3d depth set pm3d border lc "black" lw 1.5 splot 'icosahedron.dat' with polygons \ fs transparent solid 0.8 fc bgnd
¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢Ä¾¸òºÂɸ¤Ç¡¢¤Þ¤¿¤Ï¶ËºÂɸ¥â¡¼¥É (set polar) ¤Î¸µ ¤Ç»ÈÍѤǤ¤Þ¤¹¡£Êý°Ì³Ñ¤ÈÀð¤ÎÃæ¿´³Ñ¤Îñ°Ì¡¢²ò¼á¤Ï¡¢set angles ¤È set theta ¤ÇÀ©¸æ¤·¤Þ¤¹¡£
¥Ç¡¼¥¿¤Î 1,2 ÎóÌܤϡ¢¤½¤ÎÀðÊҤΰì¤Ä¤Î³Ñ¤ÎÊý°Ì (theta) ¤ÈȾ·Â (r) ¤Ç¤¹¡£
¥Ç¡¼¥¿¤Î 3,4 ÎóÌܤϡ¢¤½¤ÎÀðÊÒ¤ÎÊý°Ì¤ÎÊÑ°Ì (Ãæ¿´³Ñ; sector_angle) ¤ÈȾ
·Â¤ÎÊÑ°Ì (Æ°·ÂÊý¸þ¤ÎÉý; annular_width) ¤Ç¤¹¡£
¥Ç¡¼¥¿¤Î 5,6 ÎóÌܤò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤ÏÀð·Á¤ÎÃæ¿´¤ÎºÂɸ¤ò°ÕÌ£¤· (¥Ç
¥Õ¥©¥ë¥È¤Ï [0,0])¡¢Ä¾¸òºÂɸ¤Ç¤Ï [x,y]¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï [theta,r] ¤È²ò
¼á¤·¤Þ¤¹¡£
½ñ¼°:
plot DATA {using specifier} {units xy | units xx | units yy}
using »ØÄê
4 Îó: azimuth radius sector_angle annular_width 5 Îó: azimuth radius sector_angle annular_width color 6 Îó: azimuth radius sector_angle annular_width center_x center_y 7 Îó: azimuth radius sector_angle annular_width center_x center_y color
x ¼´¤È y ¼´¥¹¥±¡¼¥ë¤¬Åù¤·¤¯¤Ê¤¤¾ì¹ç¡¢x,y ºÂɸ¤Î´Ä¾õ¤ÎÁ´ÂΤγµ·Á¤Ï±ß¤Ç ¤Ï¤Ê¤¯ÂʱߤȤʤäƸ½¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Åù¤·¤¯¤Ê¤¤¼´¤Î¥¹¥±¡¼¥ë ¤Ë´Ø¤·¤ÆÂ汧 (ellipse) ¤ÈƱ¤¸»ÅÁȤߤò»ÈÍѤ·¤Æ¡¢´Ä¾õ¤Î³µ·Á¡¢¤ª¤è¤ÓÀðÊÒ ¤ÎÉý¤Î³°¸«¤òÀµ¤·¤¯¹ç¤ï¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë units xx ¤òÄɲ乤ë¤È¡¢¸½ºß¤Î x ¼´¤Î¥¹¥±¡¼¥ë¤ò x, y ξÊý¤ËÅù¤·¤¯Å¬ÍѤ·¤¿¤«¤Î¤è ¤¦¤ËÀðÊÒ¤òÉÁ¤¤Þ¤¹¡£Æ±Íͤˡ¢units yy ¤Ï¡¢¸½ºß¤Î y ¼´¤Î¥¹¥±¡¼¥ë¤ò x,y ξÊý¤ËÅù¤·¤¯Å¬ÍѤ·¤¿¤«¤Î¤è¤¦¤ËÀðÊÒ¤òÉÁ¤¤Þ¤¹¡£ °Ê²¼»²¾È: set isotropic (112.37), set style ellipse (112.86.11)¡£
¤³¤³¤Ë¼¨¤·¤Æ¤¤¤ë¤Î¤Ï¡¢sectors ¤ò»È¤Ã¤ÆÉ÷ÇÛ¿Þ (wind rose) ¤òÀ¸À®¤¹¤ëÎ㠤Ǥ¹¡£¶ËºÂɸ²¹ÅÙʬÉÛ¿Þ¤ò´Þ¤à¾¤Î±þÍÑÎã¤È¤·¤Æ¤Ï¡¢¥À¥¤¥ä¥ë¥Á¥ã¡¼¥È¡¢±ß¥° ¥é¥Õ/±ß´Ä¥°¥é¥Õ¡¢¤½¤·¤Æ ¶ËºÂɸ¤Ç¤Î¥Ç¡¼¥¿ÅÀ¤ËÂФ¹¤ë´Ä¾õ¤Î¥¨¥é¡¼¥Ü¥Ã¥¯¥¹ ¤Ç¤¹¡£¤³¤ì¤é¤¹¤Ù¤Æ¤Î²Ã¹©¤µ¤ì¤¿Îã¤Ï¡¢ sector ¤Î¥Ç¥â
¤ËÃÖ¤«¤ì¤Æ¤¤¤Þ¤¹¡£
³Æ¥¯¥â¤ÎÁ㥰¥é¥Õ¤Ï¡¢Îó¥Ç¡¼¥¿¤Ç¤Ï¤Ê¤¯¹Ô¥Ç¡¼¥¿¤ËÂбþ¤¹¤ë¤¿¤á¡¢Ä̾ï¤ÎÊýË¡ ¤Ç¤ÎËÞÎã (key) ¥¿¥¤¥È¥ë¤ÎÀ¸À®¤Ï°ÕÌ£¤¬¤¢¤ê¤Þ¤»¤ó¡£Âå¤ï¤ê¤Ë¡¢ÉÁ²èÍ×ÁǤ¬ ¥¿¥¤¥È¥ëʸ»úÎó¤ò»ý¤Ã¤Æ¤¤¤ì¤Ð¡¢¤½¤Îʸ»úÎó¤òÂбþ¤¹¤ë¼´¤Î¥é¥Ù¥ë¤Ë»ÈÍѤ·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢»öÁ°¤Î set paxis n label "Foo" ¤ò¤¹¤Ù¤Æ¾å½ñ¤¤·¤Þ¤¹¡£ËÞ Îã¤Ë¥¿¥¤¥È¥ë¤òÇÛÃÖ¤¹¤ë¤Ë¤Ï¡¢¸ÄÊ̤Πkeyentry ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤«¡¢¤Þ ¤¿¤Ï using »ØÄê¤Ç key(column) ¤ò»È¤Ã¤ÆÆþÎÏ¥Õ¥¡¥¤¥ëÎ󤫤éʸ»úÎó¤òŸ³« ¤¹¤ëÊýË¡¤¬»È¤¨¤Þ¤¹¡£
°Ê²¼¤Î¿Þ¤Ï¡¢¼´¤¬ 5 ¤Ä¤Î¥¯¥â¤ÎÁ㥰¥é¥Õ¤Ç¡¢¤½¤ì¤¾¤ì 5 ¤Ä¤ÎÅÀ¿ô¤ÇÆÃħÉÕ¤± ¤é¤ì¤ëÊ£¿ô¤Î¤â¤Î¤òÈæ³Ó¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£$DATA ¤Î³Æ¹Ô¤Ï¡¢¥°¥é¥Õ¾å¤Ë¿·¤· ¤¤Â¿³Ñ·Á¤òÀ¸À®¤·¤Þ¤¹¡£
$DATA << EOD A B C D E F George 15 75 20 43 90 50 Harriet 40 40 40 60 30 50 EOD set spiderplot set style spiderplot fs transparent solid 0.2 border set for [p=1:5] paxis p range [0:100] set for [p=2:5] paxis p tics format "" set paxis 1 tics font ",9" set for [p=1:5] paxis p label sprintf("Score %d",p) set grid spiderplot plot for [i=1:5] $DATA using i:key(1)
# °Ê²¼¤Ï 10 ¸Ä¤ÎĺÅÀ¤ò»ý¤Ä 1 ¤Ä¤Î¿³Ñ·Á plot for [i=1:5] 'A' using i, for [j=1:5] 'B' using j # °Ê²¼¤Ï 5 ¸Ä¤ÎĺÅÀ¤ò»ý¤Ä 2 ¤Ä¤Î¿³Ñ·Á plot for [i=1:5] 'A' using i, newspiderplot, for [j=1:5] 'B' using j
3 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢with surface ¤Ï¾ï¤Ë¶ÊÌ̤òÀ¸À®¤·¤Þ¤¹¡£ 3 ¼¡¸µ¥Ç¡¼¥¿½¸¹ç¤¬³Ê»Ò½¸¹ç (grid) ¤Èǧ¼±¤Ç¤¤ì¤Ð¡¢gnuplot ¤Ï¥Ç¥Õ¥©¥ë¥È ¤Ç¤Ï¡¢with lines ¤ò with surface ¤ËÂФ¹¤ëƱµÁ¸ì¤È¤·¤Æ¡¢³Ê»Ò¶ÊÌ̤ò Í׵ᤷ¤¿¤«¤Î¤è¤¦¤Ë°ÅÌÛ¤ËÉÁ²è¥¹¥¿¥¤¥ë with lines ¤Ç½èÍý¤·¤Þ¤¹¡£¤·¤«¤· ¥³¥Þ¥ó¥É set surface explicit ¤Ï¤³¤Î½èÍý¤òÍÞÀ©¤·¡¢¤½¤Î¾ì¹ç with surface ¤È with lines ¤Ï°Û¤Ê¤ë¥¹¥¿¥¤¥ë¤È¤Ê¤ê¡¢Æ±¤¸¥°¥é¥ÕÆâ¤Ç ÍøÍѤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
³Ê»ÒÅÀ¤È¤Ïǧ¼±¤µ¤ì¤Ê¤¤ 3 ¼¡¸µ¤ÎÅÀ¤¬¤¢¤ë¾ì¹ç¡¢ºÇ½é¤ËŬÀڤʳʻҤ˹ç¤ï¤» ¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set dgrid3d (112.25)¡£
2 ¼¡¸µ¶ËºÂɸ¥°¥é¥Õ¤Ç¤Ï¡¢with surface ¤Ï¡¢¥Ç¡¼¥¿¤Î¿§Åɤê³Ê»Òɽ¸½¤òÀ¸ À®¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤½¤Î¶ÊÌ̤ÎÀ¸À®¤Ï¡¢¥³¥Þ¥ó¥É set polar grid ¤ÇÀ©¸æ ¤·¤Þ¤¹¡£
4 Îó: x y xdelta ydelta 6 Îó: x y z xdelta ydelta zdelta
¥¡¼¥ï¡¼¥É "with vectors" ¤Ï¡¢¤½¤Î¸å¤í¤Ë¡¢arrow ¥¹¥¿¥¤¥ë°À¤òľÀܽñ¤¤ ¤¿¤ê¡¢»öÁ°¤ËÄêµÁ¤·¤¿ arrow ¥¹¥¿¥¤¥ë¤ò»²¾È¤·¤¿¤ê¡¢¤¢¤ë¤¤¤ÏÊ̤ÎÆþÎÏÎó¤« ¤é³Æ¥Ù¥¯¥È¥ë¤ËÂФ¹¤ëŬÍѤ·¤¿¤¤ arrow ¥¹¥¿¥¤¥ë¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÆɤà¤è¤¦ »ØÄꤷ¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£²¼¤ÎºÇ½é¤Î 3 ¤Ä¤ÎÎã¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
Îã:
plot ... using 1:2:3:4 with vectors filled heads plot ... using 1:2:3:4 with vectors arrowstyle 3 plot ... using 1:2:3:4:5 with vectors arrowstyle variable splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2
Ãí°Õ: plot ¥³¥Þ¥ó¥ÉÆâ¤Ë¥¡¼¥ï¡¼¥É arrowstyle ¤È¾¤ÎÀþ°À¤òº®ºß¤µ¤» ¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£arrow ¥¹¥¿¥¤¥ë¤Ë lc variable ¤« lc rgb variable ¤¬¤¢¤ë¾ì¹ç¡¢¿§¤ÎÃÍÍѤÎÄɲÃÎó¤¬É¬ÍפǤ¹¡£
vectors ¥¹¥¿¥¤¥ë¤ò»È¤Ã¤Æ¤Î splot ¤Ï set mapping cartesian ¤Î¤ß¤Ç¥µ¥Ý ¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ set clip one ¤È set clip two ¤Ï 2 ¼¡¸µ¤Î¥Ù¥¯¥È¥ë¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨ ¤Þ¤¹¡£°Ê²¼»²¾È: set clip (112.14), arrowstyle (112.86.1)¡£
2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤Î°Ê²¼¤â»²¾È: with arrows (33)¡£¤³¤ì¤Ï¡¢³ÆÌð°õ¤ò x:y:length:angle ¤Î·Á¼°¤Ç»ØÄꤹ¤ë°Ê³°¤Ï with vectors ¤ÈƱ¤¸¤Ç¤¹¡£
3 Îó: x y xdelta 4 Îó: x y xlow xhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À¤Ï»È¤¨¤Þ¤»¤ó¡£
4 Îó: x y xdelta ydelta 6 Îó: x y xlow xhigh ylow yhigh
¥Ç¡¼¥¿¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤º®¹ç·¿¤Î·Á¼°¤ÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¡¢plot ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤ò»È¤Ã¤ÆŬÀڤʷÁ¤Ëľ¤µ¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¥Ç ¡¼¥¿¤¬ (x,y,xdelta,ylow,yhigh) ¤È¤¤¤¦·Á¼°¤Ç¤¢¤ë¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ ¤¹:
plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
ÆþÎÏÎó¤òÄɲà (5,7 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À¤Ï»È¤¨¤Þ¤»¤ó¡£
3 Îó: x y xdelta 4 Îó: x y xlow xhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À¤Ï»È¤¨¤Þ¤»¤ó¡£
4 Îó: x y xdelta ydelta 6 Îó: x y xlow xhigh ylow yhigh
¥Ç¡¼¥¿¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤º®¹ç·¿¤Î·Á¼°¤ÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¡¢plot ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤ò»È¤Ã¤ÆŬÀڤʷÁ¤Ëľ¤µ¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¥Ç ¡¼¥¿¤¬ (x,y,xdelta,ylow,yhigh) ¤È¤¤¤¦·Á¼°¤Ç¤¢¤ë¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ ¤¹:
plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines
ÆþÎÏÎó¤òÄɲà (5,7 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À¤Ï»È¤¨¤Þ¤»¤ó¡£
2 Îó: [°ÅÌۤΠx] y ydelta 3 Îó: x y ydelta 4 Îó: x y ylow yhigh
ÆþÎÏÎó¤òÄɲ乤ë¤È¡¢¤½¤ì¤é¤Ï²ÄÊÑ (variable) pointsize, ²ÄÊÑ pointtype, ²ÄÊÑ¿§ (variable color) ¤Î¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È errorbar ¥Ç¥â¡£
3 Îó: x y ydelta 4 Îó: x y ylow yhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£ ¤µ¤é¤Ê¤ëÆþÎÏÎó¤Ï¡¢variable point size, variable point type, variable color ¤Î¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È ¥¨¥é¡¼¥Ð¡¼¤Î¥Ç¥â
i y z_base z_base Fi(y)
set style fill solid 0.3 set pm3d depthorder border lc "blue" lw 0.2 splot $helix with isosurface level 10 fc "cyan"
splot DATA using 1:2:3:4[:5] with zerrorfill {fc|fillcolor <colorspec>} {lt|linetype <n>} {<line properties>}
ÉÁ²è¥¹¥¿¥¤¥ë zerrorfill ¤Ï¡¢2 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Î°ì¤Ä¤ÎÊѼï¤Î¤è¤¦¤Ê ¤â¤Î¤Ç¤¹¡£¤³¤ì¤Ï¡¢2 ¤Ä¤Î´Ø¿ô¤Î´Ö¡¢¤Þ¤¿¤ÏƱ¤¸ x, y ¤ËÂФ·¤Æ 2 ¤Ä¤Î z ¤Î ÃͤòÅÀ¤òÍ¿¤¨¤ÆÆÀ¤é¤ì¤ë¥Ç¡¼¥¿¤ÎÀÞ¤ìÀþ¤Î´Ö¤ÎÎΰè¤òÅɤêÄÙ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ 4 Îó¤« 5 Îó¤ÎÆþÎϤ¬É¬ÍפǤ¹¡£
4 Îó: x y z zdelta 5 Îó: x y z zlow zhigh
splot ¥³¥Þ¥ó¥É¤ËÊ£¿ô¤Î¶ÊÀþ¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¸å¤ËÉÁ¤¤¤¿¶ÊÀþ¤¬¡¢Á°¤Î¤¹¤Ù ¤Æ¤Î¶ÊÀþ¤ò±£¤·¤Æ¤·¤Þ¤¦²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£¸«¤ë¿Í¦¤Î¼êÁ°¤Î¶ÊÀþ¤Î¤ß¤¬±£¤¹ ¤è¤¦¤ËŬÀڤʿ¼¤µ½ç¤Îʤ٤«¤¨¤ò¹Ô¤¦¤Ë¤Ï¡¢set pm3d depthorder base ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£»ÄÇ°¤Ê¤¬¤é¡¢¤³¤ì¤Ï z ¤ÎÃͤËÂбþ¤¹¤ë¤¹¤Ù¤Æ¤ÎÀÞ¤ìÀþ¤ò ÉÁ¤¤¤¿¸å¤Ë¡¢¤¹¤Ù¤Æ¤ÎÎΰè¤ÎÅɤêÄÙ¤·¤ò¹Ô¤¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ÀÞ¤ìÀþ¤ò¸«¤¨¤ë¤è ¤¦¤Ë¤·¤Æ¡¢¤«¤ÄÎΰè¤ÎÅɤêÄÙ¤·¤Î¿¼¤µ½ç¤Îʤ٤«¤¨¤ò¹Ô¤¦¤Ë¤Ï¡¢Îΰè¤ÎÅɤêÄÙ ¤·¤ÏÉôʬŪ¤ËÆ©²á (transparent) ¤µ¤»¤ë¤«¡¢Ã±¿§Åɤê (solid fill) ¤ÎÂå¤ï ¤ê¤Ë¥Ñ¥¿¡¼¥óÅɤê (pattern fill) ¤ò»ÈÍѤ¹¤ë¤È¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
°Ê²¼¤ÎºÇ½é¤Î 2 ¤Ä¤ÎÎã¤ÎÅɤêÄÙ¤·Îΰè¤Ï¡¢Æ±¤¸¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£
splot 'data' using 1:2:3:4 with zerrorfill fillcolor "grey" lt black splot 'data' using 1:2:3:($3-$4):($3+$4) with zerrorfill splot '+' using 1:(const):(func1($1)):(func2($1)) with zerrorfill splot for [k=1:5] datafile[k] with zerrorfill lt black fc lt (k+1)
¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢ºô¥°¥é¥Õ (fence plot) ¤òºîÀ®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ °Ê²¼»²¾È: fenceplots (76)¡£
¥Þ¥¦¥¹¤¬»È¤¨¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤â¡¢¤¢¤ë¼ï¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤â¤Î ¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: term sixelgd (127.32), term kittycairo (127.17)¡£
¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¥Õ¥¡¥¤¥ë¤È¤·¤ÆÊݸ¤·¤Æ¡¢¸å¤Ç¼ê¸µ¤ÇºÆÀ¸¤·¤¿¤ê Web ¥Ú¡¼ ¥¸¤ËËä¤á¹þ¤ó¤À¤ê¤Ç¤¤ë½ÐÎÏ·Á¼°¤¬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: term gif animate (127.14.1), term webp (127.38)¡£
Îã:
unset border; unset tics; unset key; set view equal xyz set pm3d border linecolor "black"
set term webp animate delay 50 set output 'spinning_d20.webp' do for [ang=1:360:2] { set view 60, ang splot 'icosahedron.dat' with polygons fc "gold" } unset output
¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥³¥Þ¥ó¥É̾¤È¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¶¤é¤ï¤·¤¯¤Ê¤¤ÈϰϤǾÊά ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢"plot f(x) with lines" ¤ÎÂå¤ï¤ê¤Ë "p f(x) w li" ¤È¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
½ñ¼°¤Îµ½Ò¤Ë¤ª¤¤¤Æ¡¢Ã楫¥Ã¥³ ({}) ¤ÏÄɲûØÄê¤Ç¤¤ë°ú¿ô¤ò°ÕÌ£¤·¡¢ ½ÄËÀ (|) ¤Ï¸ß¤¤¤ËÇÓ¾Ū¤Ê°ú¿ô¤ò¶èÀÚ¤ë¤â¤Î¤È¤·¤Þ¤¹¡£
½ñ¼°:
cd '<¥Ç¥£¥ì¥¯¥È¥ê̾>'
¥Ç¥£¥ì¥¯¥È¥ê̾¤Ï°úÍÑÉä¤Ë°Ï¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
Îã:
cd 'subdir' cd '..'
¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤ÏÆó½Å°úÍÑÉäÆâ (") ¤Ç¤ÏÆÃÊ̤ʰÕÌ£¤ò»ý¤Ã¤Æ¤·¤Þ¤¦¤¿ ¤á¤Ë¥¨¥¹¥±¡¼¥×¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢Windows ¥æ¡¼¥¶¤Ë¤Ïñ°ì°úÍÑÉä¤ò»È ¤¦¤³¤È¤ò´«¤á¤Þ¤¹¡£Î㤨¤Ð¡¢
cd "c:\newdata"
¤Ç¤Ï¼ºÇÔ¤·¤Þ¤¹¤¬¡¢
cd 'c:\newdata' cd "c:\\newdata"
¤Ê¤é´üÂÔÄ̤ê¤ËÆ°¤¯¤Ç¤·¤ç¤¦¡£
call "inputfile" <param-1> <param-2> <param-3> ... <param-9>
¸½ºß¤Î gnuplot ¤Ï¡¢Ê¸»úÎóÊÑ¿ô ARG0, ARG1, ..., ARG9 ¤È¡¢À°¿ôÊÑ¿ô ARGC ¤òÄ󶡤·¤Þ¤¹¡£call ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢ARG0 ¤Ë¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë̾¤¬¡¢ ARGC ¤Ë¤Ï¥Ñ¥é¥á¡¼¥¿¿ô¤¬ÀßÄꤵ¤ì¡¢ARG1 ¤«¤é ARG9 ¤Ë¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÊ ¤Ù¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤ÎÃͤ¬Æɤ߹þ¤Þ¤ì¤Þ¤¹¡£
Ä̾ï¥Ñ¥é¥á¡¼¥¿ ARG1 ... ARG9 ¤Ïʸ»úÎóÃͤȤ·¤ÆÊݸ¤µ¤ì¤ë¤Î¤Ç¡¢¤½¤ì¤ò¥Þ ¥¯¥íŸ³«¤·¤Æ»²¾È¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤·¤«¤·¡¢Â¿¤¯¤Î¾ì¹ç¡¢¤½¤ì¤é¤Ï¾¤ÎÊÑ ¿ô¤ÈƱÍͤËÍøÍѤ¹¤ëÊý¤¬¤è¤ê¼«Á³¤Ç¤·¤ç¤¦¡£
¥Ñ¥é¥á¡¼¥¿ ARG1 ... ARG9 ¤Îʸ»úÎóɽ¸½¤ÈÊ¿¹Ô¤·¤Æ¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿¼«¿È¤ò ÇÛÎó ARGV[9] ¤Ë¤âÊݸ¤·¤Þ¤¹¡£°Ê²¼»²¾È: ARGV (82.1)¡£
Èó¿ä¾©: 5.0 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢<param-1> ... Åù¤ÎÆâÍƤò¡¢ÆÃÊ̤ʵ¹æ $0, $1, ..., $9 ¤ò¥Þ¥¯¥í¤Î¤è¤¦¤ËÃÖ´¹¤¹¤ë¤³¤È¤Çɽ¸½¤·¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î¸Å ¤¤»ÅÁȤߤϡ¢¤â¤Ï¤ä¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£
»î¸³Ãʳ¬: ´Ø¿ô¥Ö¥í¥Ã¥¯ (¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤«¤é¤Î¿·µ¡Ç½) ¤Ï¡¢call ¤ËÂå¤ï ¤ë¤è¤ê½ÀÆð¤Êµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£
call 'routine_1.gp' 1 pi "title"
°Ê²¼¤Î 3 ¤Ä¤Î°ú¿ô¤ò routine_1.gp Æâ¤Ç°Ê²¼¤ÎÃͤȤ·¤ÆÍøÍѤǤ¤Þ¤¹:
ARGC = 3 ARG1 = "1" ARGV[1] = 1.0 ARG2 = "3.14159" ARGV[2] = 3.14159265358979... ARG3 = "title" ARGV[3] = "title"
¤³¤ÎÎã¤Ç¤Ï¡¢ARGV[1] ¤È ARGV[2] ¤Ï²Äǽ¤Ê¸Â¤ê¤ÎÀºÅÙ¤ò»ý¤ÄÉâÆ°¾®¿ôÃÍ¤È¤Ê ¤ê¤Þ¤¹¤¬¡¢ARG2 ¤Ï½ñ¼° "%g" ¤Ë¤è¤ëʸ»úÎó¤È¤·¤ÆÊݸ¤µ¤ì¤ë¤¿¤áÀºÅÙ¤¬Íî¤Á ¤Æ¤¤¤Þ¤¹¡£
ARGC ¤È¤½¤ì¤ËÂбþ¤¹¤ëÇÛÎó ARGV[ARGC] ¤Ï´Ø¿ô¥Ö¥í¥Ã¥¯¸Æ¤Ó½Ð¤·¤ÎÆâÉô¤Ç¤â ÍøÍѲÄǽ¤Ç¤¹¡£¤·¤«¤·¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¸Æ¤Ó½Ð¤·¤Ç¤Ï¡¢Ê¸»úÎóÊÑ¿ô ARG1,... ¤Ï ºî¤é¤ì¤Þ¤»¤ó¡£
°Ê²¼¤ò call ¤¹¤ë¤È: MYFILE = "script1.gp" FUNC = "sin(x)" call MYFILE FUNC 1.23 "This is a plot title" ¸Æ¤Ó½Ð¤µ¤ì¤¿¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê: ARG0 ¤Ï "script1.gp" ARG1 ¤Ïʸ»úÎóÃÍ "sin(x)" ARG2 ¤Ïʸ»úÎóÃÍ "1.23" ARG3 ¤Ïʸ»úÎóÃÍ "This is a plot title" ARGC ¤Ï 3 ¤½¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤ò¼Â¹Ô¤Ç¤¤ë: plot @ARG1 with lines title ARG3 print ARG2 * 4.56, @ARG2 * 4.56 print "This plot produced by script ", ARG0
¤³¤ÎÎã¤Î ARG1 ¤Ïʸ»úÎó¤Ê¤Î¤Ç¡¢¤½¤ì¤Ï¥Þ¥¯¥í¤È¤·¤Æ»²¾È¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤» ¤ó¤¬¡¢ARG2 ¤Ï¥Þ¥¯¥í»²¾È¤Ç¤â (¿ôÃÍÄê¿ô¤Ë¤Ê¤ë)¡¢ÊÑ¿ô¤Î¤Þ¤Þ¤Ç¤â (ʸ»úÎó "1.23" ¤¬¼Â¿ôÃͤ˼«Æ°Åª¤ËÊÑ´¹¤µ¤ì¤¿¸å¤ÎƱ¤¸¿ôÃͤˤʤë) ¹½¤ï¤Ê¤¤¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç gnuplot ¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó -c ¤Ä¤¤Ç¼Â¹Ô ¤¹¤ë¤³¤È¤Ç¡¢¤³¤ì¤ÈƱ¤¸¤³¤È¤òľÀܹԤ¦¤³¤È¤â¤Ç¤¤Þ¤¹:
gnuplot -persist -c "script1.gp" "sin(x)" 1.23 "This is a plot title"
¤¤¤¯¤Ä¤«¤Î½ÐÎÏÁõÃÖ¤Ï clear ¥³¥Þ¥ó¥É¤Ç¤Ï set size ¤ÇÄêµÁ¤µ¤ì¤¿ÉÁ²è Îΰè¤Î¤ß¤ò¾Ãµî¤·¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢set multiplot ¤È¤È¤â¤Ë»ÈÍѤ¹¤ë¤³¤È¤Ç ÁÞÆþ¿Þ¤ò°ì¤Äºî¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
set multiplot plot sin(x) set origin 0.5,0.5 set size 0.4,0.4 clear plot cos(x) unset multiplot
¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set multiplot (112.55), set size (112.84), set origin (112.64)¡£
do for <iteration-spec> { <commands> <commands> }
¤³¤ì¤Ï¡¢¥³¥Þ¥ó¥ÉÎó¤òÊ£¿ô²ó¼Â¹Ô¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É¤ÏÃ楫¥Ã¥³ {} ¤Ç°Ï¤ß¡¢¤« ¤Ä³«»Ï¥«¥Ã¥³ "{" ¤Ï¡¢¥¡¼¥ï¡¼¥É do ¤ÈƱ¤¸¹Ô¤ËÃÖ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤³ ¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸Å¤¤·Á¼° (¤«¤Ã¤³¤Ê¤·) ¤Î if/else ¹½Ê¸¤È°ì½ï¤Ë»È¤¦¤³¤È¤Ï ¤Ç¤¤Þ¤»¤ó¡£·«¤êÊÖ¤·»ØÄê <iteration-spec> ¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: iteration (19)¡£Îã:
set multiplot layout 2,2 do for [name in "A B C D"] { filename = name . ".dat" set title sprintf("Condition %s",name) plot filename title name } unset multiplot
°Ê²¼¤â»²¾È: while (126), continue (84), break (80)¡£
evaluate "commands in a string constant" evaluate string_valued_function( ... arguments ... ) evaluate $functionblock( ... arguments ... )
¤³¤ì¤Ï¡¢ÆäËƱÍͤΥ³¥Þ¥ó¥É¤Î·«¤êÊÖ¤·¤ËÍÍѤǤ¹¡£
Îã:
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')
gnuplot ¥³¥Þ¥ó¥É¤ò»ý¤Äʸ»úÎó¤ò¹½À®¤·¤¿¤ê¼Â¹Ô¤¹¤ë¾¤Î»ÅÁȤߤˤĤ¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: function blocks (89), substitution macros (29.2)¡£
exit exit message "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Ê¸»úÎó" exit status <À°¿ô¤Î¥¨¥é¡¼¥³¡¼¥É>
exit ¤È quit ¤Îξ¥³¥Þ¥ó¥É¤Ï END-OF-FILE ʸ»ú (Ä̾ï Ctrl-D) ƱÍÍ¡¢ ¸½ºß¤ÎÆþÎÏ¥¹¥È¥ê¡¼¥à¡¢¤¹¤Ê¤ï¤ÁüËö¤ÎÂÐÏää¥Ñ¥¤¥×ÆþÎÏ¡¢¥Õ¥¡¥¤¥ëÆþÎÏ (¥Ñ ¥¤¥×) ¤«¤é¤ÎÆþÎϤò½ªÎ»¤µ¤»¤Þ¤¹¡£ÆþÎÏ¥¹¥È¥ê¡¼¥à¤¬Æþ¤ì»Ò (³¬ÁØŪ¤Ê load ¤Î¥¹¥¯¥ê¥×¥È¤Ç) ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢Æɤ߹þ¤ß¤Ï¿Æ¤Î¥¹¥È¥ê¡¼¥à¤Ç·Ñ ³¤µ¤ì¤Þ¤¹¡£¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥¹¥È¥ê¡¼¥à¤¬ÊĤ¸¤é¤ì¤ë¤È¡¢¥×¥í¥°¥é¥à¤Ï¤½¤ì¼« ¿È½ªÎ»¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É exit gnuplot ¤Ï¡¢Ä¾¤Á¤Ë¡¢Ìµ¾ò·ï¤Ë¡¢¤½¤·¤ÆÎ㤨ÆþÎÏ¥¹¥È¥ê¡¼¥à ¤¬Â¿Ãʳ¬¤Ë¥Í¥¹¥È¤µ¤ì¤Æ¤¤¤Æ¤â¡¢gnuplot ¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢³«¤«¤ì ¤Æ¤¤¤¿Á´¤Æ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ï¤¤ì¤¤¤Ë´°Á´¤Ê·Á¤Ç¤ÏÊĤ¸¤é¤ì¤Ê¤¤²ÄǽÀ¤¬¤¢¤ê ¤Þ¤¹¡£»ÈÍÑÎã:
bind "ctrl-x" "unset output; exit gnuplot"
¥³¥Þ¥ó¥É exit error "error message" ¤Ï¡¢µ¿»÷¥×¥í¥°¥é¥à¥¨¥é¡¼¤ò¹Ô¤¤¤Þ ¤¹¡£ÂÐÏ÷¿¥â¡¼¥É¤Ç¤Ï¡¢¤½¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¡¢¤¹¤Ù¤Î¥Í¥¹¥È¤µ¤ì¤¿ ¥ë¡¼¥×¤ä call ¤òÃæÃǤ·¤Æ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ëµ¢¤ê¤Þ¤¹¡£ÈóÂÐÏ÷¿¥â¡¼¥É¤Ç¤Ï¡¢ ¥×¥í¥°¥é¥à¤ò½ªÎ»¤·¤Þ¤¹¡£
gnuplot ¤¬½ªÎ»¤·¥·¥§¥ë¤ÎÀ©¸æ¤ËÌá¤ë¾ì¹ç¡¢¤½¤ÎÊÖ¤êÃͤϰÕÌ£¤Î¤Ê¤¤¤â¤Î¤Ë¤Ê ¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤Î¥³¥Þ¥ó¥É¤ò°Ê²¼¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤ì¤Ð¡¢¥·¥§¥ë¤ËÆÃÄê ¤ÎÃͤòÊÖ¤¹¤³¤È¤¬²Äǽ¤Ç¤¹¡£
exit status <value>
¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£
fit ¤ÎºÇ¤â´ðËÜŪ¤Ê»ÈÍÑË¡¤Ï¡¢°Ê²¼¤Îñ½ã¤ÊÎ㤬¼¨¤·¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ç¡¢¥Õ ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à x ¤È y ¤Î·×¬ÃÍ (measured) ¤Î½¸¹ç¤Ï¡¢´Ø¿ô y = f(x) ¤Î¥â¥Ç¥ë²½¤Ë»È¤¤¤Þ¤¹¡£
f(x) = a + b*x + c*x**2 fit f(x) 'measured.dat' using 1:2 via a,b,c plot 'measured.dat' u 1:2, f(x)
½ñ¼°:
fit {<ranges>} <expression> '<datafile>' {datafile-modifiers} {{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}} via '<parameter file>' | <var1>{,<var2>,...}
ÈÏ°Ï (xrange, yrange Åù) ¤Ï¡¢Åö¤Æ¤Ï¤á¤Ë»ÈÍѤ¹¤ë¥Ç¡¼¥¿¤òÀ©¸Â¤¹¤ëÌÜŪ¤Ç »È¤¦¤³¤È¤¬¤Ç¤¡¢¤½¤ÎÈϰϤòĶ¤¨¤¿¥Ç¡¼¥¿¤Ï̵»ë¤·¤Þ¤¹¡£¤½¤Î½ñ¼°¤Ï plot ¥³¥Þ¥ó¥ÉƱÍÍ
[{dummy_variable=}{<min>}{:<max>}],
¤Ç¤¹¡£°Ê²¼»²¾È: plot ranges (99.6)¡£
<expression> ¤Ï¡¢Ä̾ï¤Ï¤¢¤é¤«¤¸¤á¥æ¡¼¥¶ÄêµÁ¤µ¤ì¤¿ f(x) ¤Þ¤¿¤Ï f(x,y) ¤Î·Á¤Î´Ø¿ô¤Ç¤¹¤¬¡¢gnuplot ¤Ç͸ú¤Ê¤É¤ó¤Ê¿ô¼°¤Ç¤â»ØÄê¤Ç¤¤Þ¤¹¡£¤¿¤À¤· ¼Â¿ôÃÍ´Ø¿ô¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ÆÈΩÊÑ¿ô¤Î̾Á°¤Ï¡¢¥³¥Þ¥ó¥É set dummy ¤ÇÀßÄꤹ¤ë¤«¡¢fit ¤ÎÈÏ°Ï»ØÄêÉô ʬ (<rangse>) ¤ÇÀßÄꤷ¤Þ¤¹ (°Ê²¼¤ò»²¾È)¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ºÇ½é¤Î 2 ¤Ä¤Ï x, y ¤È¤Ê¤ê¤Þ¤¹¡£ ¤µ¤é¤Ë¡¢¤½¤Î¿ô¼°¤Ï¡¢Åö¤Æ¤Ï¤á¤Îºî¶È¤Ë¤è¤ê·èÄꤹ¤ëÃͤò»ý¤Ä 1 ¤Ä°Ê¾å¤ÎÊÑ ¿ô (¥Ñ¥é¥á¡¼¥¿) ¤Ë°Í¸¤¹¤Ù¤¤Ç¤¹¡£
<datafile> ¤Ï plot ¥³¥Þ¥ó¥É¤ÈƱÍͤ˰·¤ï¤ì¤Þ¤¹¡£plot datafile ¤Î½¤ ¾þ»Ò (using, every,...) ¤Ï¡¢smooth ¤ò½ü¤¤¤Æ¡¢Á´¤Æ fit ¤Ë»È¤¦¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: plot datafile (99.3)¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤϡ¢plot ¥³¥Þ¥ó¥É¤Ë»ÈÍѤ¹¤ë¤Î¤ÈƱ¤¸ using »ØÄê¤ò »È¤¦¤³¤È¤Ç½ÀÆð¤Ë²ò¼á¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢ÆÈΩÊÑ¿ô x ¤ò2 ÎóÌÜ ¤È 3 ÎóÌܤÎϤȤ·¤ÆÀ¸À®¤·¡¢z ¤ÎÃͤò 6 ÎóÌܤ«¤é¼è¤ê¡¢½Å¤ß¤ò 1 ¤È¤·¤¿¤¤ ¾ì¹ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:
fit ... using ($2+$3):6
using »ØÄ꤬¤Ê¤¤¾ì¹ç¡¢fit ¤Ï°ÅÌÛ¤ËÆÈΩÊÑ¿ô¤Ï 1 ¤Ä¤À¤±¤È²¾Äꤷ¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¼«¿È¡¢¤Þ¤¿¤Ï using »ØÄ꤬ 1 Îó¤À¤±¤Î¥Ç¡¼¥¿¤ò»ý¤Ä¾ì¹ç¡¢¤½¤Î¹ÔÈÖ ¹æ¤òÆÈΩÊÑ¿ôÃͤȤ·¤Æ»ÈÍѤ·¤Þ¤¹¡£ using »ØÄê¤òÍ¿¤¨¤¿¾ì¹ç¡¢ºÇÂç 12 ¸Ä (»ØÄꤷ¤Æ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤ì¤Ð¤µ¤é ¤Ë¤½¤ì°Ê¾å) ¤ÎÆÈΩÊÑ¿ô¤òÍøÍѤǤ¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó unitweights (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿ÅÀ¤¬Åù¤· ¤¤½Å¤ß¤ò»ý¤Ä¤È¤ß¤Ê¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¡¼¥ï¡¼¥É error ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç Êѹ¹¤Ç¤¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é 1 ¤Ä°Ê¾å¤ÎÊÑ¿ô¤Î¸íº¹É¾²Á¤òÆɤ߹þ¤ß¡¢ ¤½¤Î¸íº¹É¾²Á¤òÂбþ¤¹¤ëÊÑ¿ôÃͤÎɸ½àÊк¹ s ¤È¤ß¤Ê¤·¡¢³Æ¥Ç¡¼¥¿¤Ë 1/s**2 ¤Î½Å¤ß¤ò·×»»¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£
ÆÈΩÊÑ¿ô¤Î¸íº¹É¾²Á¤Ë¤ª¤¤¤Æ¡¢¤½¤Î½Å¤ß¤Ë¤Ï¡¢"͸úʬ»¶Ë¡" (effective variance method; Jay Orear, Am. J. Phys., Vol. 50, 1982) ¤Ë½¾¤Ã¤Æ¡¢¤µ ¤é¤ËÅö¤Æ¤Ï¤á´Ø¿ô¤ÎÈùʬ·¸¿ô¤ò¤«¤±¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É errors ¤Ë¤Ï¡¢¤½¤Î¸å¤í¤Ë¡¢ÆþÎϤ¬¤É¤ÎÊÑ¿ô¤Î¸íº¹¤Ç¤¢¤ë¤Î¤«¤ò ¼¨¤¹¥³¥ó¥Þ¶èÀÚ¤ê¤Î 1 ¤Ä°Ê¾å¤ÎÊÑ¿ô̾¤Î¥ê¥¹¥È¤¬ÉÕ¤¤Þ¤¹¡£½¾Â°ÊÑ¿ô z ¤Ï¾ï ¤Ë¤½¤ÎÃæ¤Ë¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¤¬¡¢ÆÈΩÊÑ¿ô¤Ïɬ¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¤½¤Î¥ê¥¹¥È¤Î³ÆÊÑ¿ô¤ËÂФ·¡¢¥Õ¥¡¥¤¥ë¤«¤é¤½¤Îʬ¤Î¡¢³ÆÊÑ¿ô¤Î¸íº¹É¾²Á¤ò»ý¤Ä ÄɲäÎÎó¤òÆɤ߹þ¤ß¤Þ¤¹¡£·«¤êÊÖ¤·¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢using »ØÄê¤Ë¤è¤ê½ÀÆð¤Ê ²ò¼á¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤è¤Ã¤Æ¡¢ÆÈΩÊÑ¿ô¤Î¿ô¤Ï°ÅÌۤˡ¢using »ØÄêÆâ¤ÎÎó¤Î¿ô¤«¤é 1 ¤ò°ú¤¤¤Æ (½¾Â°ÊÑ¿ôʬ)¡¢¤µ¤é¤Ë errors »ØÄêÆâ¤ÎÊÑ¿ô¤Î¸Ä¿ô¤ò°ú¤¤¤¿¿ô¤Ë¤Ê¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã¤È¤·¤Æ¡¢2 ¤Ä¤ÎÆÈΩÊÑ¿ô¤¬¤¢¤ê¡¢¤½¤·¤Æ 1 ¤ÄÌܤÎÆÈΩÊÑ¿ô¤È½¾Â°ÊÑ¿ô¤Î¸í º¹¥Ç¡¼¥¿¤¬¤¢¤ë¾ì¹ç¤Ï¡¢errors x,z »ØÄê¤È 5 Îó¤Î using »ØÄê¤ò»È¤¦¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï x:y:z:sx:sz ¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹ (x, y ¤ÏÆÈΩÊÑ ¿ô¡¢z ¤¬½¾Â°ÊÑ¿ô¡¢sx, sz ¤Ï x, z ¤Îɸ½àÊк¹)¡£
errors »ØÄê¤Î¤Á¤ç¤Ã¤È¤·¤¿Î¬µË¡¤â 2,3 ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: yerrors (ÆÈΩÊÑ¿ô¤¬ 1 Î󤢤ëÅö¤Æ¤Ï¤áÍÑ)¡¢ zerrors (¤è¤ê°ìÈ̤ξì¹ç) ¤Ï¡¢¤¤¤º¤ì¤â errors z ¤ÈƱÃͤǡ¢1 Îó¤À¤± Äɲäν¾Â°ÊÑ¿ôÍÑ¤Î¸íº¹Î󤬤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£
xyerrors ¤Ï¡¢ÆÈΩÊÑ¿ô¤Ï 1 Îó¤Ç¡¢¤½¤ÎÆÈΩÊÑ¿ô¤È½¾Â°ÊÑ¿ô¤ÎξÊý¤Î 2 Îó ¤Î¸íº¹Îó¤¬Äɲ䵤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢x ¤È y ¤Î¸íº¹¤Ï Orear ¤Î͸úʬ»¶Ë¡ (effective variance method) ¤Ç½èÍý¤µ¤ì¤Þ¤¹¡£
yerror ¤È xyerror ¤Î·Á¼°¤ª¤è¤Ó²ò¼á¤Ï¡¢¤½¤ì¤¾¤ì 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë ¤Î yerrorlines ¤È xyerrorlines ¤ËƱÅù¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥³¥Þ¥ó¥É set fit v4 ¤ò»ÈÍѤ¹¤ë¤È¡¢fit ¤Î¥³¥Þ¥ó¥É½ñ¼°¤Ï gnuplot ¥Ð ¡¼¥¸¥ç¥ó 4 ¤È¸ß´¹¤Î½ñ¼°¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢using ¤Ë¤Ï¡¢ÆÈΩÊÑ¿ô¤¬ 2 ¤Ä°Ê¾å¤Ê¤é¤Ð¡¢ÆÈΩÊÑ¿ô¤Î¿ô¤è¤ê 2 ¤Ä (z ¤È s) ¿¤¤»ØÄ꤬ɬÍפǡ¢ gnuplot ¤Ï¡¢using »ØÄê¤ÇÍ¿¤¨¤é¤ì¤¿Îó¤Î¿ô¤Ë±þ¤¸¤Æ¡¢°Ê²¼¤Î½ñ¼°¤Ë½¾¤¤ ¤Þ¤¹:
z # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (¹ÔÈÖ¹æ) x:z # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (Âè 1 Îó) x:z:s # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (Á´Éô¤Ç 3 Îó) x:y:z:s # ÆÈΩÊÑ¿ô¤Ï 2 ¤Ä (Á´Éô¤Ç 4 Îó) x1:x2:x3:z:s # ÆÈΩÊÑ¿ô¤Ï 3 ¤Ä (Á´Éô¤Ç 5 Îó) x1:x2:x3:...:xN:z:s # ÆÈΩÊÑ¿ô¤Ï N ¸Ä (Á´Éô¤Ç N+2 Îó)
¤³¤ì¤Ï¡¢2 ¤Ä°Ê¾å¤ÎÆÈΩÊÑ¿ô¤Ç fit ¤ò¤¹¤ë¾ì¹ç¡¢z-¸íº¹ s ¤òÍ¿¤¨¤ëɬÍפ¬¤¢ ¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£½Å¤ß¤ò 1 ¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢¤½¤ì ¤ò¡¢Î㤨¤Ð x:y:z:(1) ¤Î¤è¤¦¤Ê½ñ¼°¤ò using ¤Ë»ØÄꤹ¤ë¤³¤È¤ÇÌÀ¼¨Åª¤ËÍ¿¤¨ ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
²¾ÊÑ¿ô̾¤Ï¡¢²¼¤Ç¾Ò²ð¤¹¤ë¤è¤¦¤ËÈÏ°Ï»ØÄê¤Ç»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ºÇ ½é¤ÎÈÏ°Ï¤Ï using »ØÄê¤ÎºÇ½é¤Î¤â¤Î¤ËÂбþ¤·¡¢°Ê²¼Æ±ÍͤǤ¹¡£½¾Â°ÊÑ¿ô¤Ç ¤¢¤ë z ¤ÎÈÏ°Ï»ØÄê¤â¤Ç¤¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢f(x,...) ¤ÎÃͤò¤½¤ÎÈϰϳ°¤Ë¤·¤Æ ¤·¤Þ¤¦¤è¤¦¤Ê¥Ç¡¼¥¿ÅÀ¤¬¡¢»Äº¹¤òºÇ¾®²½¤¹¤ë¤³¤È¤Ë¤Ï´óÍ¿¤·¤Ê¤¤¾ì¹ç¤Ë͸ú¤Ç ¤¹¡£
Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤âÊ£¿ô¤Î 1 ÊÑ¿ô´Ø¿ô¤ËƱ»þ¤ËÅö¤Æ¤Ï¤á¤ë¤³¤È¤â¡¢y ¤ò '²¾ ÊÑ¿ô' ¤È¤¹¤ì¤Ð²Äǽ¤Ç¤¹¡£Î㤨¤Ð¥Ç¡¼¥¿¹ÔÈÖ¹æ¤ò»È¤¤¡¢2 ÊÑ¿ô´Ø¿ô¤Ø¤ÎÅö¤Æ¤Ï ¤á¡¢¤È¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: fit multi-branch (88.6)¡£
via »ØÄê»Ò¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤ÎºÇŬ²½¤ò¡¢Ä¾ÀܹԤ¦¤«¡¢¤Þ¤¿¤Ï¥Ñ¥é¥á¡¼¥¿¥Õ¥¡ ¥¤¥ë¤ò»²¾È¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¦¤«¤ò»ØÄꤷ¤Þ¤¹¡£
Îã:
f(x) = a*x**2 + b*x + c g(x,y) = a*x**2 + b*y**2 + c*x*y set fit limit 1e-6 fit f(x) 'measured.dat' via 'start.par' fit f(x) 'measured.dat' using 3:($7-5) via 'start.par' fit f(x) './data/trash.dat' using 1:2:3 yerror via a, b, c fit g(x,y) 'surface.dat' using 1:2:3 via a, b, c fit a0 + a1*x/(1 + a2*x/(1 + a3*x)) 'measured.dat' via a0,a1,a2,a3 fit a*x + b*y 'surface.dat' using 1:2:3 via a,b fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3 via a,b
fit [][][t=*:*] a*x + b*y + c*t 'foo.dat' using 1:2:3:4 via a,b,c
set dummy x1, x2, x3, x4, x5 h(x1,x2,x3,x4,s5) = a*x1 + b*x2 + c*x3 + d*x4 + e*x5 fit h(x1,x2,x3,x4,x5) 'foo.dat' using 1:2:3:4:5:6 via a,b,c,d,e
È¿Éü¤Î¸Ä¡¹¤Î¥¹¥Æ¥Ã¥×¤Î¸å¤Ç¡¢Åö¤Æ¤Ï¤á¤Î¸½ºß¤Î¾õÂ֤ˤĤ¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤¬ ²èÌ̤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¤½¤·ºÇ½é¤ÈºÇ¸å¤Î¾õÂ֤˴ؤ¹¤ëƱ¤¸¾ðÊó¤¬ "fit.log" ¤È¤¤¤¦¥í¥°¥Õ¥¡¥¤¥ë¤Ë¤â½ñ¤½Ð¤µ¤ì¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤ÏÁ°¤ÎÅö¤Æ¤Ï¤á¤ÎÍúÎò ¤ò¾Ã¤µ¤Ê¤¤¤è¤¦¤Ë¾ï¤ËÄɲ䵤ì¤Æ¤¤¤¤Þ¤¹¡£¤³¤ì¤Ï˾¤à¤Ê¤éºï½ü¡¢¤¢¤ë¤¤¤ÏÊÌ ¤Ê̾Á°¤Ë¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É set fit logfile ¤ò»È¤Ã¤Æ¥í¥°¥Õ¥¡¥¤¥ë¤Î̾ Á°¤òÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
set fit errorvariables ¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢³ÆÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤Ï ¤½¤Î¥Ñ¥é¥á¡¼¥¿¤È»÷¤¿Ì¾Á° ("_err" ¤¬Äɲ䵤줿̾Á°) ¤ÎÊÑ¿ô¤ËÊݸ¤µ¤ì¤Þ ¤¹¤Î¤Ç¡¢¤½¤Î¸íº¹¤ò¤½¤Î¸å¤Î·×»»¤ÎÆþÎϤȤ·¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
set fit prescale ¤È¤·¤¿¾ì¹ç¡¢Åö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤ò¡¢¤½¤ì¤é¤Î½é´üÃͤ« ¤é¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÂ礤µ¤Ë¤«¤Ê¤ê°ã¤¤ ¤¬¤¢¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤¬¤è¤êÁ᤯¡¢¤è¤ê¿®Íê À¤Î¤¢¤ëÃͤ˼ý«¤µ¤»¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Åö¤Æ¤Ï¤á¤ÎÈ¿Éü¤Ï Ctrl-C (wgnuplot ¤Ç¤Ï Ctrl-Break) ¤ò²¡¤¹¤³¤È¤ÇÃæÃÇ¤Ç ¤¤Þ¤¹¡£¸½ºß¤ÎÈ¿Éü¤¬Àµ¾ï¤Ë½ªÎ»¤·¤¿¸å¡¢°Ê²¼¤Î¤¤¤º¤ì¤«¤òÁª¤Ö¤³¤È¤¬¤Ç¤¤Þ ¤¹: (1) Åö¤Æ¤Ï¤á¤ò»ß¤á¤Æ¸½ºß¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòºÎÍѤ¹¤ë (2) Åö¤Æ¤Ï¤á¤ò³¹Ô¤¹¤ë (3) set fit script ¤«¡¢´Ä¶ÊÑ¿ô FIT_SCRIPT ¤Ç»ØÄꤷ¤¿ gnuplot ¥³ ¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï replot ¤Ç¡¢¤â¤·¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á´Ø ¿ô¤ò°ì¤Ä¤Î¥°¥é¥Õ¤Ë¤¢¤é¤«¤¸¤áÉÁ²è¤·¤Æ¤¢¤ì¤Ð¡¢¸½ºß¤ÎÅö¤Æ¤Ï¤á¤Î¾õÂÖ¤òɽ¼¨ ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
fit ¤¬½ªÎ»¤·¤¿¸å¤Ï¡¢ºÇ¸å¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÊݸ¤¹¤ë¤Î¤Ë save fit ¥³ ¥Þ¥ó¥É¤ò»È¤¤¤Þ¤¹¡£¤½¤ÎÃͤϺƤӥѥé¥á¡¼¥¿¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: save fit (111)¡£
Ä´À°¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ï¡¢via ¥¡¼¥ï¡¼¥É¤Î¸å¤í¤Ë¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿ÊÑ¿ô̾ ¤Î¥ê¥¹¥È¤ò½ñ¤¯¤³¤È¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤ÊÑ¿ô¤Ï½é´üÃÍ 1.0 ¤È ¤·¤Æºî¤é¤ì¤Þ¤¹¡£¤·¤«¤·Åö¤Æ¤Ï¤á¤Ï¡¢ÊÑ¿ô¤Î½é´üÃͤ¬¤¢¤é¤«¤¸¤áŬÀÚ¤ÊÃͤËÀß Äꤵ¤ì¤Æ¤¤¤ëÊý¤¬Â¿Ê¬Â®¤¯¼ý«¤¹¤ë¤Ç¤·¤ç¤¦¡£
¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤ò¡¢¸ÄÊÌ¤Ë 1 ¹Ô¤Ë°ì¤Ä¤º¤Ä¡¢½é´üÃͤò ¼¡¤Î¤è¤¦¤Ê·Á¤Ç»ØÄꤷ¤Æ½ñ¤¤Þ¤¹¡£
ÊÑ¿ô̾ = ½é´üÃÍ
'#' ¤Ç»Ï¤Þ¤ë¥³¥á¥ó¥È¹Ô¤ä¶õ¹Ô¤âµö¤µ¤ì¤Þ¤¹¡£ÆÃÊ̤ʷÁ¼°¤È¤·¤Æ
ÊÑ¿ô̾ = ½é´üÃÍ # FIXED
¤Ï¡¢¤³¤ÎÊÑ¿ô¤¬¸ÇÄꤵ¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¡¢¤½¤ì¤Ï¤³¤Î¥Õ¥¡¥¤ ¥ë¤Ç½é´ü²½¤µ¤ì¤Þ¤¹¤¬¡¢Ä´Àá¤Ï¤µ¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢fit ¤Ç¥ì¥Ý¡¼¥È¤µ¤ì¤ë ÊÑ¿ô¤ÎÃæ¤Ç¡¢¤É¤ì¤¬¸ÇÄꤵ¤ì¤¿ÊÑ¿ô¤Ç¤¢¤ë¤«¤òÌÀ¼¨¤¹¤ë¤Î¤ËÍÍѤǤ·¤ç¤¦¡£¤Ê ¤ª¡¢# FIXED ¤È¸À¤¦¥¡¼¥ï¡¼¥É¤Ï¸·Ì©¤Ë¤³¤Î·Á¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
¤³¤ì¤¬¡¢(ÈóÀþ·Á) ºÇ¾®¼«¾èÅö¤Æ¤Ï¤áË¡¤È¸Æ¤Ð¤ì¤ë¤æ¤¨¤ó¤Ç¤¹¡£ÈóÀþ·Á ¤¬ ²¿¤ò°ÕÌ£¤·¤Æ¤¤¤ë¤Î¤«¤ò¸«¤ë¤¿¤á¤ÎÎã¤ò¾Ò²ð¤·¤Þ¤¹¤¬¡¢¤½¤ÎÁ°¤Ë¤¤¤¯¤Ä¤«¤Î ²¾Äê¤Ë¤Ä¤¤¤Æ½Ò¤Ù¤Æ¤ª¤¤Þ¤¹¡£¤³¤³¤Ç¤Ï´Êñ¤Î¤¿¤á¡¢1 ÊÑ¿ô¤Î¥æ¡¼¥¶¡¼ÄêµÁ ´Ø¿ô¤Ï z=f(x), 2 ÊÑ¿ô¤Î´Ø¿ô¤Ï z=f(x,y) ¤Î¤è¤¦¤Ë¤·¡¢¤¤¤º¤ì¤â½¾Â°ÊÑ¿ô¤È ¤·¤Æ z ¤òÍѤ¤¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿¤È¤Ï fit ¤¬Ä´À°¤·¤ÆŬÀÚ¤ÊÃͤò ·èÄꤹ¤ë¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤Ç¡¢´Ø¿ô¤ÎÄêµÁ¼°Ãæ¤Î̤Ãοô¤Ç¤¹¡£¤³¤³¤Ç¸À¤¦¡¢Àþ·Á À/ÈóÀþ·ÁÀ¤È¤Ï¡¢½¾Â°ÊÑ¿ô z ¤È fit ¤¬Ä´À°¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤È¤Î´Ø·¸¤ËÂÐ ¤¹¤ë¤â¤Î¤Ç¤¢¤ê¡¢z ¤ÈÆÈΩÊÑ¿ô x (¤Þ¤¿¤Ï x ¤È y) ¤È¤Î´Ø·¸¤Î¤³¤È¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó (¿ô³ØŪ¤Ë½Ò¤Ù¤ë¤È¡¢Àþ·ÁºÇ¾®¼«¾èÌäÂê¤Ç¤Ï¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤Î¥Ñ¥é¥á¡¼ ¥¿¤Ë¤è¤ë 2 ³¬ (¤½¤·¤Æ¹¹¤Ë¹â³¬¤Î) Ƴ´Ø¿ô¤Ï 0¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹)¡£
Àþ·ÁºÇ¾®¼«¾èË¡¤Ç¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ïñ½ã¤Ê´Ø¿ô¤ÎϤǤ¢¤ê¡¢¤½¤ì¤¾¤ì¤Ï°ì ¤Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÄê¿ôÇܤǾ¤Î¥Ñ¥é¥á¡¼¥¿¤ò´Þ¤Þ¤Ê¤¤¹à¤Ë¤Ê¤ê¤Þ¤¹¡£ÈóÀþ·ÁºÇ ¾®¼«¾èË¡¤Ç¤Ï¡¢¤è¤êÊ£»¨¤Ê´Ø¿ô¤ò°·¤¤¡¢¥Ñ¥é¥á¡¼¥¿¤ò¿§¡¹¤Ê»È¤¤Êý¤ò¤·¤Þ¤¹¡£ ¥Õ¡¼¥ê¥¨µé¿ô¤ÏÀþ·Á¤ÈÈóÀþ·Á¤ÎºÇ¾®¼«¾èË¡¤Î°ã¤¤¤òɽ¤¹°ì¤Ä¤ÎÎã¤Ç¤¹¡£¥Õ¡¼¥ê ¥¨µé¿ô¤Ç¤Ï°ì¤Ä¤Î¹à¤Ï
z=a*sin(c*x) + b*cos(c*x).
¤Î¤è¤¦¤Ëɽ¤µ¤ì¤Þ¤¹¡£¤â¤·¡¢a ¤È b ¤¬Ì¤ÃΤʥѥé¥á¡¼¥¿¤Ç c ¤ÏÄê¿ô¤À¤È¤¹¤ì¤Ð ¥Ñ¥é¥á¡¼¥¿¤Îɾ²Á¤ÏÀþ·ÁºÇ¾®¼«¾èÌäÂê¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢c ¤¬Ì¤ÃΤʥѥé¥á¡¼ ¥¿¤Ê¤é¤Ð¤½¤ì¤ÏÈóÀþ·ÁÌäÂê¤Ë¤Ê¤ê¤Þ¤¹¡£
Àþ·Á¤Î¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÃͤÏÈæ³ÓŪ´Êñ¤ÊÀþ·ÁÂå¿ô¤ÎľÀÜË¡¤Ë¤è¤Ã¤Æ·èÄê¤Ç ¤¤Þ¤¹¡£¤·¤«¤·¡¢'gnuplot' ¤¬»ÈÍѤ¹¤ëÈ¿ÉüË¡¤Ï¡¢¤½¤ÎÆÃÊ̤ÊÀþ·Á¤Î¾ì¤â´Þ¤á ¤Æ¡¢¤è¤ê°ìÈÌŪ¤ÊÈóÀþ·Á¤ÎÌäÂê¤ò²ò¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£fit ¤Ï¸¡º÷¤ò¹Ô¤¦¤³ ¤È¤ÇºÇ¾®Ãͤòõ¤½¤¦¤È¤·¤Þ¤¹¡£È¿Éü¤Î³Æ¥¹¥Æ¥Ã¥×¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¿·¤·¤¤ÃͤΠÁȤËÂФ·¤Æ WSSR ¤ò·×»»¤·¤Þ¤¹¡£Marquardt-Levenberg ¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¼¡¤Î ¥¹¥Æ¥Ã¥×¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÁªÂò¤·¤Þ¤¹¡£¤½¤·¤Æ¤½¤ì¤Ï¤¢¤é¤«¤¸¤áÍ¿¤¨¤¿´ð½à¡¢ ¤¹¤Ê¤ï¤Á¡¢(1) Åö¤Æ¤Ï¤á¤¬ "¼ý«¤·¤¿" (WSSR ¤ÎÁêÂÐ¸íº¹¤¬¤¢¤ë¸Â³¦Ãͤè¤ê¾® ¤µ¤¯¤Ê¤Ã¤¿¾ì¹ç¡£°Ê²¼»²¾È: set fit limit (112.29))¡¢¤Þ¤¿¤Ï (2) ¤¢¤é¤«¤¸¤áÀßÄê ¤µ¤ì¤¿È¿Éü¿ô¤Î¸Â³¦¤Ë㤷¤¿¾ì¹ç (°Ê²¼»²¾È: set fit maxiter (112.29))¡¢¤Î¤¤¤º¤ì ¤«¤òËþ¤¿¤¹¤Þ¤Ç³¤±¤é¤ì¤Þ¤¹¡£¥¡¼¥Ü¡¼¥É¤«¤é¤½¤ÎÅö¤Æ¤Ï¤á¤ÎÈ¿Éü¤ÏÃæÃǤǤ ¤Þ¤¹¤·¡¢¤½¤ì¤Ë³¤¤¤ÆÃæ»ß¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: fit (88))¡£¥æ¡¼¥¶ÊÑ ¿ô FIT_CONVERGED ¤Ï¡¢ ľÁ°¤Î fit ¥³¥Þ¥ó¥É¤¬¼ý«¤Ë¤è¤ê½ªÎ»¤·¤¿¾ì¹ç¤Ï 1 ¤ò»ý¤Á¡¢¤½¤ì°Ê³°¤ÎÍýͳ¤ÇÃæÃǤ·¤¿¾ì¹ç¤Ï 0 ¤ò»ý¤Á¤Þ¤¹¡£FIT_NITER ¤Ï¡¢Ä¾ Á°¤ÎÅö¤Æ¤Ï¤á¤Ç¹Ô¤ï¤ì¤¿·«¤êÊÖ¤·¤Î²ó¿ô¤ò»ý¤Á¤Þ¤¹¡£
Åö¤Æ¤Ï¤á¤Ë»È¤ï¤ì¤ë´Ø¿ô¤Ï¤·¤Ð¤·¤Ð¤¢¤ë¥â¥Ç¥ë (¤Þ¤¿¤Ï¤¢¤ëÍýÏÀ) ¤ò¸µ¤Ë¤·¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï¥Ç¡¼¥¿¤Î¿¶Éñ¤òµ½Ò¤·¤¿¤ê¡¢¤¢¤ë¤¤¤Ïͽ¬¤·¤è¤¦¤È¤·¤Þ¤¹¡£¤è¤Ã ¤Æ fit ¤Ï¡¢¥Ç¡¼¥¿¤¬¤½¤Î¥â¥Ç¥ë¤Ë¤É¤ì¤¯¤é¤¤¤¦¤Þ¤¯Åö¤Æ¤Ï¤Þ¤Ã¤Æ¤¤¤ë¤Î¤«¤ò ·èÄꤹ¤ë¤¿¤á¡¢¤½¤·¤Æ¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤ÎÈϰϤòɾ²Á¤¹¤ë¤¿¤á¤Ë¡¢¥â¥Ç ¥ë¤Î¼«Í³¤Ê¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòµá¤á¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: fit error_estimates (88.3)¡£
¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢¶ÊÀþ¤Ë¤è¤ëÅö¤Æ¤Ï¤á¤Ë¤ª¤±¤ë´Ø¿ô¤Ï¡¢¥â¥Ç¥ë¤È¤Ï̵´Ø·¸¤ËÁª ¤Ð¤ì¤Æ¤¤¤Þ¤¹ (¤½¤ì¤Ï½½Ê¬¤Êɽ¸½ÎϤȺǤ⾯¤Ê¤¤¿ô¤Î¥Ñ¥é¥á¡¼¥¿¤ò»ý¤Á¡¢¥Ç¡¼ ¥¿¤Î·¹¸þ¤òµ½Ò¤·¤½¤¦¤Ê´Ø¿ô¤È¤·¤Æ·Ð¸³¤Ë´ð¤Å¤¤¤ÆÁª¤Ð¤ì¤ë¤Ç¤·¤ç¤¦)¡£
¤·¤«¤·¡¢¤â¤·¤¢¤Ê¤¿¤¬Á´¤Æ¤Î¥Ç¡¼¥¿ÅÀ¤òÄ̤ë¤è¤¦¤Ê³ê¤é¤«¤Ê¶ÊÀþ¤òÍߤ·¤¤¤Ê¤é fit ¤Ç¤Ï¤Ê¤¯¡¢¤à¤·¤í plot ¤Î smooth ¥ª¥×¥·¥ç¥ó¤Ç¤½¤ì¤ò¹Ô¤¦¤Ù¤¤Ç ¤·¤ç¤¦¡£
¥Ç¡¼¥¿¸íº¹¤Ï¡¢Ê¿Êý»Äº¹¤Î½Å¤ßÉÕ¤¤ÎÏ WSSR¡¢¤¹¤Ê¤ï¤Á¦Ö¼«¾è¤ò·èÄꤹ¤ëºÝ ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÁêÂÐŪ¤Ê½Å¤ß¤ò·×»»¤¹¤ë¤Î¤ËÍѤ¤¤é¤ì¤Þ¤¹¡£¤½¤ì¤é¤Ï¥Ñ¥é¥á ¡¼¥¿¤Îɾ²Á¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤½¤ì¤Ï¡¢¤½¤ì¤é¤¬¡¢Åö¤Æ¤Ï¤á¤é¤ì¤¿´Ø¿ô¤«¤é¤Î ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÊк¹¤¬ºÇ½ªÅª¤ÊÃͤËÍ¿¤¨¤ë±Æ¶Á¤ÎÂ礤µ¤ò·èÄꤹ¤ë¤³¤È¤Ë¤è ¤ê¤Þ¤¹¡£Àµ³Î¤Ê¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹ ɾ²ÁÅù¤Î fit ¤¬½ÐÎϤ¹¤ë¾ðÊó¤Ï¤è¤êÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£
statistical overview ¤Ç¤Ï fit ¤Î½ÐÎϤΤ¤¤¯¤Ä¤«¤òÀâÌÀ¤·¡¢ 'practical guidelines' ¤ËÂФ¹¤ëÇطʤò½Ò¤Ù¤Æ¤¤¤Þ¤¹¡£
ʬ»¶ = Áí·×¤Ç¤¢¤ë¿ô¤¨¾å¤²Åý·×³ØƱÍÍ¡¢Ê콸ÃĤÎɸ½àÊк¹¤¬Äê¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ ³ÆÅÀ¤Ï´Ñ¬¤µ¤ì¤ëÊк¹¤ÎϤȴüÂÔ¤µ¤ì¤ëÊк¹¤ÎϤòÈæ³Ó¤¹¤ë¤È¤¤Ë¸ÄÊÌ¤Ë½Å¤ß ¤Å¤±¤µ¤ì¤ë¤Ù¤¤Ç¤¹¡£
ºÇ½ªÃʳ¬¤Ç fit ¤Ï 'stdfit'¡¢¤¹¤Ê¤ï¤Á»Äº¹¤Î RMS (¼«¾èÊ¿¶ÑÊ¿Êýº¬) ¤Çµá ¤á¤é¤ì¤ëÅö¤Æ¤Ï¤á¤Îɸ½àÊк¹¤È¡¢¥Ç¡¼¥¿ÅÀ¤¬½Å¤ß¤Å¤±¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë '¸º¤é ¤µ¤ì¤¿¦Ö¼«¾è' ¤È¤â¸Æ¤Ð¤ì¤ë»Äº¹¤Îʬ»¶¤ò¥ì¥Ý¡¼¥È¤·¤Þ¤¹¡£¼«Í³ÅÙ (¥Ç¡¼¥¿ÅÀ ¤Î¿ô¤«¤éÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¿ô¤ò°ú¤¤¤¿¤â¤Î) ¤Ï¤³¤ì¤é¤Îɾ²Á¤Ç»ÈÍѤµ¤ì¤Þ ¤¹¡£¤Ê¤¼¤Ê¤é¡¢¥Ç¡¼¥¿ÅÀ¤Î»Äº¹¤Î·×»»¤Ç»È¤ï¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤ÏƱ¤¸¥Ç¡¼¥¿¤«¤é ÆÀ¤é¤ì¤ë¤â¤Î¤À¤«¤é¤Ç¤¹¡£¥Ç¡¼¥¿ÅÀ¤¬½Å¤ß¤ò»ý¤Ä¾ì¹ç¡¢gnuplot ¤Ï¤¤¤ï¤æ¤ë p-Ãͤò·×»»¤·¤Þ¤¹¡£¤½¤ì¤Ï¤½¤Î¼«Í³Å٤ȷë²Ì¤Î¦Ö¼«¾èÃͤËÂФ¹¤ë¦Ö¼«¾èʬÉۤΠÎßÀÑʬÉÛ´Ø¿ôÃͤò 1 ¤«¤é°ú¤¤¤¿ÃͤǤ¹¡£°Ê²¼»²¾È: fit practical_guidelines (88.3.2)¡£ ¤³¤ì¤é¤ÎÃͤϰʲ¼¤ÎÊÑ¿ô¤ËÂåÆþ¤µ¤ì¤Þ¤¹:
FIT_NDF = ¼«Í³Å٤οô FIT_WSSR = ½Å¤ß¤Ä¤»Äº¹¤Î¼«¾èÏ FIT_STDFIT = sqrt(WSSR/NDF) FIT_P = p-ÃÍ
¥Ñ¥é¥á¡¼¥¿¤Ë´Ø¤¹¤ë¿®Íê¥ì¥Ù¥ë¤òɾ²Á¤¹¤ë¤³¤È¤Ç¡¢Åö¤Æ¤Ï¤á¤«¤éÆÀ¤é¤ì¤ëºÇ¾® ¤Î¦Ö¼«¾è¤È¡¢Í׵᤹¤ë¿®Íê¥ì¥Ù¥ë¤Î¦Ö¼«¾è¤ÎÃͤò·èÄꤹ¤ë¤¿¤á¤Î¦Ö¼«¾è¤ÎÅý·× ¤òÍѤ¤¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤·¤«¤·¡¢¤½¤Î¤è¤¦¤ÊÃͤòÀ¸À®¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÁȤò ·èÄꤹ¤ë¤Ë¤Ï¡¢ÁêÅö¤Î¤µ¤é¤Ê¤ë·×»»¤¬É¬ÍפȤʤë¤Ç¤·¤ç¤¦¡£
fit ¤Ï¿®Íê¶è´Ö¤Î·èÄê¤è¤ê¤à¤·¤í¡¢ºÇ¸å¤ÎÈ¿Éü¸å¤Îʬ»¶-¶¦Ê¬»¶¹ÔÎ󤫤éľ ¤Á¤ËÆÀ¤é¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹É¾²Á¤òÊó¹ð¤·¤Þ¤¹¡£¤³¤ì¤é¤Îɾ²Á¤Ï¡¢É¸½àÊк¹ ¤È¤·¤Æ·×»»¤µ¤ì¤ëÎ̤λØÄê¤Ë´Ø¤¹¤ëÅý·×¾å¤Î¾ò·ï¤¬¡¢°ìÈ̤ˤÏÈóÀþ·ÁºÇ¾®¼«¾è ÌäÂê¤Ç¤ÏÊݾڤµ¤ì¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢Àþ·ÁºÇ¾®¼«¾èÌäÂê¤Ç¤Îɸ½à¸íº¹ (³Æ¥Ñ¥é¥á¡¼ ¥¿¤Îɸ½àÊк¹) ¤ÈƱ¤¸ÊýË¡¤Ç·×»»¤µ¤ì¤Þ¤¹¡£¤½¤·¤Æ¤½¤Î¤¿¤á´·Îã¤Ë¤è¤ê¡¢¤³¤ì ¤é¤Ï "ɸ½à¸íº¹" ¤È¤« "Á²¶áɸ½à¸íº¹" ¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤¹¡£Á²¶áɸ½à¸íº¹¤Ï°ì È̤˳ڴѲ᤮¡¢¿®Íê¥ì¥Ù¥ë¤Î·èÄê¤Ë¤Ï»È¤¦¤Ù¤¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢ÄêÀŪ¤Ê»Ø ɸ¤È¤·¤Æ¤ÏÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£
ºÇ½ªÅª¤Ê²ò¤Ï¡¢²ò¤ÎÈϰϤˤª¤±¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÁê´Ø¤ò¼¨¤¹Áê´Ø¹ÔÎó¤âÀ¸À®¤·¤Þ ¤¹: ¤½¤Î¼çÂгÑÍ×ÁÇ¡¢¤¹¤Ê¤ï¤Á¼«¸ÊÁê´Ø¤Ï¾ï¤Ë 1 ¤Ç¡¢Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤¬ÆÈ Î©¤Ê¤é¤ÐÈóÂгÑÍ×ÁǤϤ¹¤Ù¤Æ 0 ¤Ë¶á¤¤Ãͤˤʤê¤Þ¤¹¡£´°Á´¤Ë¾¤òÊ䤤¤¢¤¦ 2 ¤Ä¤ÎÊÑ¿ô¤Ï¡¢Â礤µ¤¬ 1 ¤Ç¡¢´Ø·¸¤¬Àµ¤ÎÁê´Ø¤«Éé¤ÎÁê´Ø¤«¤Ë¤è¤Ã¤ÆÀµ¤«Éé¤Ë ¤Ê¤ëÉä¹æ¤ò»ý¤ÄÈóÂгÑÍ×ÁǤò»ý¤Á¤Þ¤¹¡£ÈóÂгÑÍ×ÁǤÎÂ礤µ¤¬¾®¤µ¤¤¤Û¤É¡¢³Æ ¥Ñ¥é¥á¡¼¥¿¤Îɸ½àÊк¹¤Îɾ²Á¤Ï¡¢Á²¶áɸ½à¸íº¹¤Ë¶á¤¯¤Ê¤ê¤Þ¤¹¡£
¥Ç¡¼¥¿¤Î½Å¤ßÉÕ¤±¤Ï¡¢ºÇ¸å¤ÎÈ¿Éü¸å¤Î fit ¤ÎÄɲýÐÎϤËÂФ¹¤ë²ò¼á¤Î´ðÁà ¤òÍ¿¤¨¤Þ¤¹¡£³ÆÅÀ¤ËƱÅù¤Ë½Å¤ßÉÕ¤±¤ò¹Ô¤Ê¤¦¤Ë¤·¤Æ¤â¡¢½Å¤ß 1 ¤ò»È¤¦¤³¤È¤è ¤ê¤â¤à¤·¤íÊ¿¶Ñɸ½àÊк¹¤òɾ²Á¤¹¤ë¤³¤È¤¬¡¢¦Ö¼«¾è¤¬ÄêµÁ¤Ë¤è¤ê¤½¤¦¤Ç¤¢¤ë¤è ¤¦¤Ë¡¢WSSR ¤ò ̵¼¡¸µÊÑ¿ô¤È¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
Åö¤Æ¤Ï¤áÈ¿Éü¤Î³ÆÃʳ¬¤Ç¡¢Åö¤Æ¤Ï¤á¤Î¿Ê¹Ô¤Îɾ²Á¤Ë»È¤¦¤³¤È¤¬½ÐÍè¤ë¾ðÊó¤¬É½ ¼¨¤µ¤ì¤Þ¤¹ ('*' ¤Ï¤è¤ê¾®¤µ¤¤ WSSR ¤ò¸«¤Ä¤±¤é¤ì¤Ê¤«¤Ã¤¿¤³¤È¡¢¤½¤·¤ÆºÆ»î ¹Ô¤·¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹)¡£'sum of squares of residuals' (»Äº¹¤Î¼«¾è ÏÂ) ¤Ï¡¢'chisquare' (¦Ö¼«¾è) ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á ´Ø¿ô¤È¤Î´Ö¤Î WSSR ¤ò°ÕÌ£¤·¤Æ¤¤¤Æ¡¢fit ¤Ï¤³¤ì¤òºÇ¾®²½¤·¤è¤¦¤È¤·¤Þ¤¹¡£ ¤³¤ÎÃʳ¬¤Ç¡¢½Å¤ßÉÕ¤±¤µ¤ì¤¿¥Ç¡¼¥¿¤Ë¤è¤Ã¤Æ¡¢¦Ö¼«¾è¤ÎÃͤϼ«Í³ÅÙ (= ¥Ç¡¼¥¿ ÅÀ¤Î¿ô - ¥Ñ¥é¥á¡¼¥¿¤Î¿ô) ¤Ë¶áÉÕ¤¯¤³¤È¤¬´üÂÔ¤µ¤ì¤Þ¤¹¡£WSSR ¤ÏÊäÀµ¤µ¤ì¤¿ ¦Ö¼«¾èÃÍ (WSSR/ndf; ndf = ¼«Í³ÅÙ)¡¢¤Þ¤¿¤ÏÅö¤Æ¤Ï¤áɸ½àÊк¹ (stdfit = sqrt(WSSR/ndf)) ¤ò·×»»¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ì¤é¤ÏºÇ½ªÅª¤Ê WSSR ¤ËÂФ· ¤Æ¥ì¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£
¥Ç¡¼¥¿¤¬½Å¤ßÉÕ¤±¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢stdfit ¤Ï¡¢¥æ¡¼¥¶¤Îñ°Ì¤Ç¤Î¡¢¥Ç¡¼¥¿ ¤ÈÅö¤Æ¤Ï¤á´Ø¿ô¤ÎÊк¹¤Î RMS (¼«¾èÊ¿¶ÑÊ¿Êýº¬) ¤Ë¤Ê¤ê¤Þ¤¹¡£
¤â¤·ÂÅÅö¤Ê¥Ç¡¼¥¿¸íº¹¤òÍ¿¤¨¡¢¥Ç¡¼¥¿ÅÀ¤¬½½Ê¬Â¿¤¯¡¢¥â¥Ç¥ë¤¬Àµ¤·¤±¤ì¤Ð¡¢ ÊäÀµ¦Ö¼«¾èÃÍ¤Ï¤Û¤Ü 1 ¤Ë¤Ê¤ê¤Þ¤¹ (¾ÜºÙ¤Ï¡¢Å¬Åö¤ÊÅý·×³Ø¤ÎËܤΠ'¦Ö¼«¾èʬ ÉÛ' ¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£¤³¤Î¾ì¹ç¡¢¤³¤Î³µÍפ˽ñ¤«¤ì¤Æ¤¤¤ë¤³¤È°Ê³° ¤Ë¡¢¥â¥Ç¥ë¤¬¥Ç¡¼¥¿¤Ë¤É¤ì¤¯¤é¤¤Îɤ¯Åö¤Æ¤Þ¤Ã¤Æ¤¤¤ë¤«¤ò·èÄꤹ¤ë¤¿¤á¤ÎÄɲà ¤Î»î¸³ÊýË¡¤¬¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡£
ÊäÀµ¦Ö¼«¾è¤¬ 1 ¤è¤ê¤Ï¤ë¤«¤ËÂ礤¯¤Ê¤Ã¤¿¤é¡¢¤½¤ì¤ÏÉÔÀµ¤Ê¥Ç¡¼¥¿¸íº¹É¾²Á¡¢ Àµµ¬Ê¬ÉÛ¤·¤Ê¤¤¥Ç¡¼¥¿¸íº¹¡¢¥·¥¹¥Æ¥à¾å¤Î¬Äê¸íº¹¡¢¸ÉΩ¤·¤¿É¸ËÜÃÍ (outliers)¡¢¤Þ¤¿¤ÏÎɤ¯¤Ê¤¤¥â¥Ç¥ë´Ø¿ô¤Ê¤É¤Î¤¿¤á¤Ç¤·¤ç¤¦¡£Î㤨¤Ð plot 'datafile' using 1:($2-f($1)) ¤Ê¤É¤È¤·¤Æ»Äº¹¤òÉÁ²è¤¹¤ë¤³¤È¤Ï¡¢ ¤½¤ì¤é¤Î¥·¥¹¥Æ¥àŪ¤Ê·¹¸þ¤òÃΤ뤿¤á¤Î¼ê¤¬¤«¤ê¤È¤Ê¤ê¤Þ¤¹¡£¥Ç¡¼¥¿ÅÀ¤È´Ø¿ô ¤Îξ¼Ô¤òÉÁ²è¤¹¤ë¤³¤È¤Ï¡¢Â¾¤Î¥â¥Ç¥ë¤ò¹Í¤¨¤¿¤á¤Î¼ê¤¬¤«¤ê¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£
ƱÍͤˡ¢1.0 ¤è¤ê¾®¤µ¤¤ÊäÀµ¦Ö¼«¾è¤Ï¡¢WSSR ¤¬¡¢Àµµ¬Ê¬ÉÛ¤¹¤ë¸íº¹¤ò»ý¤Ä¥é ¥ó¥À¥à¤Ê¥µ¥ó¥×¥ë¤È´Ø¿ô¤ËÂФ·¤Æ´üÂÔ¤µ¤ì¤ë¤â¤Î¤è¤ê¤â¾®¤µ¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ ¤¹¡£¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Â礤¹¤®¤ë¤Î¤«¡¢Åý·×Ū¤Ê²¾Ä꤬Àµ¤·¤¯¤Ê¤¤¤Î¤«¡¢¤Þ¤¿ ¤Ï¥â¥Ç¥ë´Ø¿ô¤¬°ìÈÌŪ¤¹¤®¤Æ¡¢ÆâºßŪ·¹¸þ¤Ë²Ã¤¨¤ÆÆüì¤Ê¥µ¥ó¥×¥ë¤Ë¤è¤ëÊÑÆ° ¤ÎÅö¤Æ¤Ï¤á¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¡£ºÇ¸å¤Î¾ì¹ç¤Ï¡¢¤è¤ê¥·¥ó¥×¥ë¤Ê´Ø¿ô¤Ë¤¹ ¤ì¤Ð¤¦¤Þ¤¯¹Ô¤¯¤Ç¤·¤ç¤¦¡£
Åö¤Æ¤Ï¤á¤Î p-Ãͤϡ¢¼«Í³Å٤ȷë²Ì¤Î¦Ö¼«¾èÃͤËÂФ¹¤ë¦Ö¼«¾èʬÉÛ¤ÎÎßÀÑʬÉÛ ´Ø¿ôÃͤò 1 ¤«¤é°ú¤¤¤¿ÃͤǤ¹¡£¤³¤ì¤Ï¡¢Åö¤Æ¤Ï¤á¤ÎÎɤµ¤Î¤â¤Î¤µ¤·¤òÄ󶡤· ¤Þ¤¹¡£p-ÃͤÎÈÏ°Ï¤Ï 0 ¤«¤é 1 ¤Þ¤Ç¤Ç¡¢p-Ãͤ¬¤È¤Æ¤â¾®¤µ¤¤¡¢¤¢¤ë¤¤¤Ï¤È¤Æ¤â Â礤¤¾ì¹ç¤Ï¡¢¥â¥Ç¥ë¤¬¥Ç¡¼¥¿¤È¤½¤Î¸íº¹¤ò¤Á¤ã¤ó¤Èµ½Ò¤·¤Æ¤¤¤Ê¤¤¤³¤È¤ò°Õ Ì£¤·¤Þ¤¹¡£¾å¤Ç½Ò¤Ù¤¿¤è¤¦¤Ë¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¤ËÌäÂ꤬¤¢¤ë¤«¡¢¸íº¹¤«¥â¥Ç¥ë¤Ë ÌäÂ꤬¤¢¤ë¡¢¤Þ¤¿¤Ï¤½¤ì¤é¤ÎÁȤ߹ç¤ï¤»¤Ê¤Î¤À¤í¤¦¤È»×¤¤¤Þ¤¹¡£p-Ãͤ¬¾®¤µ¤¤ ¤³¤È¤Ï¡¢¸íº¹¤¬²á¾®É¾²Á¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¤è¤Ã¤ÆºÇ½ªÅª¤Ê¥Ñ¥é¥á¡¼¥¿¸íº¹¤ò¥¹ ¥±¡¼¥ëÊÑ´¹¤¹¤Ù¤¤À¤í¤¦¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤¹¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼¤â»²¾È: set fit errorscaling (112.29)¡£
ɸ½àŪ¤Ê¥¨¥é¡¼¤ò¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÉÔ³ÎÄêÀ¤Ë´Ø¤¹¤ë¡¢¤¢¤ë¤è¤ê¸½¼ÂŪ¤Êɾ²Á¤Ë ´Ø·¸ÉÕ¤±¤ë¤³¤È¡¢¤ª¤è¤ÓÁê´Ø¹ÔÎó¤Î½ÅÍ×À¤òɾ²Á¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë Á°¤Ë¡¢¤¢¤Ê¤¿¤Ï fit ¤È¡¢¤½¤ì¤òŬÍѤ·¤è¤¦¤È¤¹¤ë¤¢¤ë¼ï¤ÎÌäÂê¤Ë´·¤ì¤Æ¤ª ¤¯É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£
fit ¤Ï¡¢ÂçÄñ¤ÎÈóÀþ·ÁºÇ¾®¼«¾èË¡¤Î¼ÂÁõ¤Ç¤Ï¶¦Ä̤·¤Æ¡¢µ÷Î¥¤Î¼«¾è (y-f(x))**2 ¤Î½Å¤ßÉÕ¤¤ÎϤòºÇ¾®²½¤·¤è¤¦¤È¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤ì¤Ï¡¢x ¤ÎÃͤΠ"¸íº¹" ¤ò·×»»¤Ë´Ø¤·¤Æ¤Ï¤É¤ó¤ÊÊýË¡¤âÍ¿¤¨¤Æ¤Ï¤ª¤é¤º¡¢Ã± ¤Ë y ¤Ë´Ø¤¹¤ëɾ²Á¤Î¤ß¤Ç¤¹¡£¤Þ¤¿¡¢"¸ÉΩÅÀ" (Àµµ¬Ê¬ÉۤΥâ¥Ç¥ë¤Î¤«¤é³°¤ì ¤Æ¤¤¤ë¥Ç¡¼¥¿ÅÀ) ¤Ï¾ï¤Ë²ò¤ò°²½¤µ¤»¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
FIT_LOG
¤Ï¡¢Åö¤Æ¤Ï¤á¤Î¥í¥°¤¬½ñ¤«¤ì¤ë¥Õ¥¡¥¤¥ë̾ (¤ª¤è¤Ó¥Ñ¥¹) ¤òÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ç¤Ï¡¢ºî¶È¥Ç¥£¥ì¥¯¥È¥ê¾å¤Î "fit.log" ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼Â ¹Ô»þ¤Ë¥³¥Þ¥ó¥É set fit logfile ¤ò»È¤Ã¤Æ¾å½ñ¤¤Ç¤¤Þ¤¹¡£
FIT_SCRIPT
¤Ï¡¢¥æ¡¼¥¶¤¬ÃæÃǤ·¤¿¸å¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï replot ¤Ç¤¹¤¬¡¢plot ¤ä load ¥³¥Þ¥ó¥É¤È¤¹¤ì¤Ð¡¢Åö¤Æ¤Ï¤á¤Î¿Ê¹Ô¾õ ¶·¤Îɽ¼¨¤ò¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ë¤Î¤ËÊØÍø¤Ç¤·¤ç¤¦¡£¤³¤ì¤Ï¡¢¼Â¹Ô»þ¤Ë¥³¥Þ¥ó¥É set fit script ¤ò»È¤Ã¤Æ¾å½ñ¤¤Ç¤¤Þ¤¹¡£
fit ¤ÎÆ°ºî¤Ë¤ª¤±¤ë¤½¤Î¾¿¤¯¤Î¼Â¹Ô»þ¤ÎÄ´À°¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set fit (112.29)¡£
do for [i=1:5] { DATA = sprintf("Data_%05d.dat", i) fit f(x) DATA via a,b,c if (FIT_ERROR || !FIT_CONVERGED) { print "Fit failed for ", DATA continue } set output sprintf("dataset_%05.png", i) plot DATA, f(x) unset output }
Îã: 2 ¤Ä¤Î»Ø¿ô¸º¿ê·Á z=f(x) ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Æ¡¢¤½¤ì¤¾¤ì°Û¤Ê¤ë¥Ç¡¼¥¿½¸¹ç ¤òµ½Ò¤·¤Æ¤¤¤ë¤¬¡¢¶¦Ä̤·¤¿¸º¿ê»þ´Ö¤ò»ý¤Á¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòɾ²Á¤¹¤ë¡£ ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬ x:z:s ¤Î·Á¼°¤Ç¤¢¤Ã¤¿¤È¤¹¤ë¤È¡¢¤³¤Î¾ì¹ç°Ê²¼¤Î¤è¤¦¤Ë¤¹ ¤ì¤Ð¤è¤¤¡£
f(x,y) = (y==0) ? a*exp(-x/tau) : b*exp(-x/tau) fit f(x,y) 'datafile' using 1:-2:2:3 via a, b, tau
¤è¤êÊ£»¨¤ÊÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥Ç¥â¥Õ¥¡¥¤¥ë "fit.dem" ¤Ç»È¤ï¤ì¤ë "hexa.fnc" ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¤â¤·½¾Â°ÊÑ¿ô¤Î¥¹¥±¡¼¥ë¤Ëº¹¤¬¤¢¤ë¾ì¹ç¡¢Ã±°Ì¤Î½Å¤ßÉÕ¤±¤Ç¤Ï 1 ¤Ä¤Î»Þ¤¬»Ù ÇÛ¤·¤Æ¤·¤Þ¤¦²ÄǽÀ¤¬¤¢¤ë¤Î¤Ç¡¢Å¬Åö¤Ê½Å¤ßÉÕ¤±¤¬É¬Íפˤʤê¤Þ¤¹¡£³Æ»Þ¤ò¥Ð ¥é¥Ð¥é¤ËÅö¤Æ¤Ï¤á¤ë¤Î¤ËÊ£¿ôÅö¤Æ¤Ï¤áË¡¤Î²ò¤ò½é´üÃͤȤ·¤ÆÍѤ¤¤ë¤Î¤Ï¡¢Á´ÂÎ ¤ò¹ç¤ï¤»¤¿²ò¤Î³Æ»Þ¤ËÂФ¹¤ëÁêÂÐŪ¤Ê±Æ¶Á¤Ë´Ø¤¹¤ëɽ¼¨¤òÍ¿¤¨¤ë¤³¤È¤Ë¤Ê¤ë¤Ç ¤·¤ç¤¦¡£
fit ¤Ï¡¢²ò¤«¤é±ó¤¯¤«¤é»Ï¤á¤ë¤È¼ºÇÔ¤¹¤ë¤«¤âÃΤì¤Þ¤»¤ó¤·¡¢¤·¤Ð¤·¤Ð¤½¤ì ¤Ïµ¯¤³¤êÆÀ¤Þ¤¹¡£±ó¤¯¤È¤¤¤¦¤Î¤Ï¡¢SSR ¤¬Â礤¯¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÊѲ½¤ËÂФ·¤Æ ¤½¤ÎÊѲ½¤¬¾®¤µ¤¤¡¢¤¢¤ë¤¤¤Ï¿ôÃÍŪ¤ËÉÔ°ÂÄê¤ÊÎΰè (Î㤨¤Ð¿ôÃͤ¬Â礤¹¤®¤Æ ÉâÆ°¾®¿ô¤Î·å¤¢¤Õ¤ì¤òµ¯¤³¤¹) ¤ËÅþ㤷¤Æ¤·¤Þ¤Ã¤Æ¡¢¤½¤Î·ë²Ì "̤ÄêµÁÃÍ (undefined value)" ¤Î¥á¥Ã¥»¡¼¥¸¤« gnuplot ¤ÎÄä»ß¤ò°ú¤µ¯¤³¤·¤Æ¤·¤Þ¤¦ ¤è¤¦¤Ê¾ì¹ç¤ò°ÕÌ£¤·¤Þ¤¹¡£
Âç°èŪ¤ÊºÇŬÃͤò¸«¤Ä¤±¤ë²ÄǽÀ¤ò²þÁ±¤¹¤ë¤Ë¤Ï¡¢ºÇ½é¤ÎÃͤò¤½¤Î²ò¤Ë¾¯¤Ê¤¯ ¤È¤â¤Û¤Ü¶á¤¯¤Ë¼è¤ë¤Ù¤¤Ç¤·¤ç¤¦¡£Î㤨¤Ð¡¢¤â¤·²Äǽ¤Ê¤é¤Ð°ì·åʬ¤ÎÂ礤µ¤Î ÈÏ°ÏÆâ¤Ç¡£ºÇ½é¤ÎÃͤ¬²ò¤Ë¶á¤¤¤Û¤ÉÉÔÀµ¤Ê²ò¤Ç½ªÎ»¤·¤Æ¤·¤Þ¤¦²ÄǽÀ¤ÏÄ㤯¤Ê ¤ê¤Þ¤¹¡£ºÇ½é¤ÎÃͤò¸«¤Ä¤±¤ë°ì¤Ä¤ÎÊýË¡¤Ï¡¢¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á´Ø¿ô¤òƱ¤¸¥°¥é ¥Õ¤Î¾å¤ËÉÁ²è¤·¤ÆŬÅö¤Ê¶á¤µ¤Ë㤹¤ë¤Þ¤Ç¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÊѹ¹¤·¤Æ replot ¤¹¤ë¤³¤È¤ò·«¤êÊÖ¤¹¤³¤È¤Ç¤¹¡£¤½¤ÎÉÁ²è¤Ï¡¢ÉÔÀµ¤Ê¶Ë¾®Ãͤò¸«¤Ä¤± ¤¿¤³¤È¤ÇÅö¤Æ¤Ï¤á¤¬½ªÎ»¤·¤¿¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤Î¤Ë¤âÍÍѤǤ¹¡£
¤â¤Á¤í¤ó¡¢¸«¤¿Ìܤ¬Îɤ¤Åö¤Æ¤Ï¤á¤¬¸«¤Ä¤«¤Ã¤Æ¤â¡¢¤½¤ì¤Ï "¤½¤ì¤è¤ê¤è¤¤" Åö ¤Æ¤Ï¤á (¤¢¤ë²þÎɤµ¤ì¤¿Åö¤Æ¤Ï¤á¤ÎÎɤµ¤Î´ð½à¤Ë¤è¤Ã¤ÆÆÃħÉÕ¤±¤é¤ì¤¿Åý·×³Ø Ū¤Ê°ÕÌ£¤Ç¡¢¤¢¤ë¤¤¤Ï¤½¤Î¥â¥Ç¥ë¤Î¤è¤êŬÀڤʲò¤Ç¤¢¤ë¡¢¤È¤¤¤¦ÊªÍýŪ¤Ê°ÕÌ£ ¤Ç) ¤¬Â¸ºß¤·¤Ê¤¤¤³¤È¤Î¾ÚÌÀ¤Ë¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ÌäÂê¤Ë¤è¤Ã¤Æ¤Ï¡¢³Æ¥Ñ¥é¥á¡¼¥¿ ¤Î°ÕÌ£¤Î¤¢¤ëÈϰϤò¥«¥Ð¡¼¤¹¤ë¤è¤¦¤ÊÍÍ¡¹¤Ê½é´üÃͤν¸¹ç¤ËÂФ·¤Æ fit ¤¹ ¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤¤«¤âÃΤì¤Þ¤»¤ó¡£
T(x) = a + b*x + c*x*x set xdata time fit T(x) 'hits.dat' using 1:3 via a,b,c
¤·¤«¤·¤½¤ì¤Ï¿ʬ¼ºÇÔ¤·¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤½¤Î¤¢¤ëÆü¤ËÂбþ¤¹¤ëÆâÉô¤Ç¤Î x ¤Î ¤ÎÃÍ¤Ï [1.67746e+09 : 1.67754e+09] ¤Î¤è¤¦¤ÊÈϰϤˤʤäƤ·¤Þ¤¦¤«¤é¤Ç¤¹¡£ ·×¬¥Ç¡¼¥¿¤Î x ¤Î¾®¤µ¤ÊÊѹ¹¤Ï¤ï¤º¤«¤Ë 1.e-05 ÄøÅ٤ʤΤǡ¢¼ý«¤òÊݾڤ¹ ¤ë¤¿¤á¤Ë¤Ï¡¢½é´ü¥Ñ¥é¥á¡¼¥¿É¾²Á¤Ç¿ʬ¤º¤Ã¤ÈÀè¤Î¾®¿ôÂ貿°Ì¤ÎÀºÅÙ¤¬É¬Í×¤Ë ¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£
°ì¤Ä¤Î²ò·èºö¤Ï¡¢»þ´Ö¤ò¬Äê¤Î³«»Ï»þ´Ö¤«¤é¤Î»þ´Ö¤ËÊѹ¹¤·¤ÆÌäÂê¤òºî¤êÊѤ¨ ¤Æ¤·¤Þ¤¦¤³¤È¤Ç¤¹¡£
set xdata time # ¥Ç¡¼¥¿½ñ¼°¤Ï "27-02-2023 12:00:00 ·×¬ÃÍ" timefmt = "%d-%m-%Y %H:%M:%S" set timefmt timefmt t0 = strptime( timefmt, "27-02-2023 00:00:00" ) fit T(x) 'temperature.dat' using ($1-t0):3 via a,b,c
¤³¤ì¤Ï¥Ç¡¼¥¿¤ÎÈϰϤò [0 : 86400] ¤ËÊѤ¨¡¢¤è¤ê°·¤¤¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Î¾¤ÎÊýË¡¤È¤·¤Æ¤Ï¡¢1 ÎóÌܤÎÆüÉÕ¤ò̵»ë¤·¡¢2 ÎóÌܤËÁêÂлþ¹ï·Á¼° (tH/tM/tS) ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¤¹¡£
set timefmt "%tH:%tM:%tS" fit T(x) 'temperature.dat' using 2:3 via a,b,c
fit ¤Î°ú¿ô¤Î via ¤Ë¤Ï¡¢2 ¤Ä¤ÎÂ礤¯°Û¤Ê¤ëÌÜŪ¤Î¤¿¤á¤Î 2 ¤Ä¤Î·Á¼°¤¬ ¤¢¤ê¤Þ¤¹¡£via "file" ¤Î·Á¼°¤Ï¡¢¥Ð¥Ã¥Á½èÍý (ÈóÂÐÏ÷¿¤Ç¤Î¼Â¹Ô¤¬²Äǽ) ¤ÇºÇ¤âÎɤ¯»È¤ï¤ì¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç½é´üÃͤòÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
via var1, var2, ... ¤Î·Á¼°¤ÏÂÐÏ÷¿¤Î¼Â¹Ô¤ÇÎɤ¯»È¤ï¤ì¡¢¥³¥Þ¥ó¥É¥Ò¥¹¥È ¥ê¤Îµ¡¹½¤¬»È¤Ã¤Æ¥Ñ¥é¥á¡¼¥¿¥ê¥¹¥È¤ÎÊÔ½¸¤ò¹Ô¤¤¡¢Åö¤Æ¤Ï¤á¤ò¼Â¹Ô¤·¤¿¤ê¡¢¤¢ ¤ë¤¤¤Ï¿·¤·¤¤½é´üÃͤòÍ¿¤¨¤Æ¼¡¤Î¼Â¹Ô¤ò¹Ô¤Ê¤Ã¤¿¤ê¤·¤Þ¤¹¡£¤³¤ì¤ÏÆñ¤·¤¤ÌäÂê ¤ËÂФ·¤Æ¤ÏÆäËÍÍѤǡ¢Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ËÂФ·¤Æ 1 ÅÙ¤À¤±Åö¤Æ¤Ï¤á¤òľÀÜ ¼Â¹Ô¤·¤Æ¤â¡¢Îɤ¤½é´üÃͤǤʤ±¤ì¤Ð¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¤³¤È¤¬µ¯¤³¤êÆÀ¤ë¤«¤é¤Ç¤¹¡£ ¤½¤ì¤ò¸«¤Ä¤±¤ë¤Ë¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤ËÂФ·¤Æ²¿²ó¤«È¿Éü¤ò¹Ô¤Ê¤¤¡¢ ºÇ½ªÅª¤Ë¤ÏÁ´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ËÂФ¹¤ë 1 ÅÙ¤ÎÅö¤Æ¤Ï¤á¤¬¤¦¤Þ¤¯¤¤¤¯¤È¤³¤í¤Ë ½½Ê¬¶á¤¯¤Ê¤ë¤Þ¤Ç¤½¤ì¤ò·«¤êÊÖ¤¹¤³¤È¤Ç¤¹¡£
Åö¤Æ¤Ï¤á¤ò¹Ô¤Ê¤¦´Ø¿ô¤Î¥Ñ¥é¥á¡¼¥¿´Ö¤Ë¶¦Ä̤ΰ͸´Ø·¸¤¬¤Ê¤¤¤³¤È¤Ï³Îǧ¤·¤Æ ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢a*exp(x+b) ¤òÅö¤Æ¤Ï¤á¤Ë»È¤Ã¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£¤½ ¤ì¤Ï a*exp(x+b)=a*exp(b)*exp(x) ¤À¤«¤é¤Ç¤¹¡£¤è¤Ã¤Æ¤³¤Î¾ì¹ç¤Ï a*exp(x) ¤Þ¤¿¤Ï exp(x+b) ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
µ»½ÑŪ¤Ê¤ªÏÃ: ÀäÂÐÃͤ¬ºÇ¤âÂ礤¤¥Ñ¥é¥á¡¼¥¿¤ÈºÇ¤â¾®¤µ¤¤¥Ñ¥é¥á¡¼¥¿¤ÎÈ椬 Â礤¤ÄøÅö¤Æ¤Ï¤á¤Î¼ý«¤ÏÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤½¤ÎÈ椬¡¢¥Þ¥·¥ó¤ÎÉâÆ°¾®¿ô¤ÎÀºÅÙ ¤ÎµÕ¿ô¤Ë¶á¤¤¤«¡¢¤Þ¤¿¤Ï¤½¤ì°Ê¾å¤Ê¤é¤Ð¡¢¤Û¤Ü¤º¤Ã¤È¼ý«¤·¤Ê¤¤¤«¼ý«¤¹¤ëÁ° ¤Ë¼Â¹Ô¤¬ÃæÃǤ¹¤ë¤Ç¤·¤ç¤¦¡£¤è¤Ã¤Æ¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¡¢¤½¤Î´Ø¿ô¤ÎÄêµÁ¤ÇÎ㤨 ¤Ð 'parameter' ¤ò '1e9*parameter' ¤Ë¤¹¤ë¤È¤«¡¢ºÇ½é¤ÎÃͤò 1e9 ¤Ç³ä¤ë¤È ¤«¤·¤Æ¤³¤ì¤òÈò¤±¤ë¤è¤¦¤Ë²þÎɤ¹¤ë¤«¡¢¤Þ¤¿¤Ï set fit prescale ¤Ç¥Ñ¥é¥á ¡¼¥¿¤Î½é´üÃͤ˽¾¤Ã¤Æ¤½¤Î¥¹¥±¡¼¥ëÊÑ´¹¤òÆâÉô¤Ç¤ä¤é¤»¤ëµ¡Ç½¤òÍѤ¤¤ë¤«¡¢¤Î ¤¤¤º¤ì¤«¤¬É¬ÍפǤ·¤ç¤¦¡£
¤â¤·¡¢´Ø¿ô¤ò¡¢Åö¤Æ¤Ï¤á¤ë¥Ñ¥é¥á¡¼¥¿¤ò·¸¿ô¤È¤¹¤ë¡¢Ã±½ã¤Ê´Ø¿ô¤ÎÀþ·Á·ë¹ç¤Ç ½ñ¤±¤ë¤Ê¤é¡¢¤½¤ì¤Ï¤È¤Æ¤â¤¤¤¤¤Î¤ÇÀ§È󤽤¦¤·¤Æ¤¯¤À¤µ¤¤¡£²¿¸Î¤Ê¤é¡¢ÌäÂ꤬ ¤â¤Ï¤äÈóÀþ·Á¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢È¿Éü¤Ï¾¯¤Ê¤¤²ó¿ô¤Ç¼ý«¤¹¤ë¤Ç¤·¤ç¤¦¡£¤â¤·¤«¤· ¤¿¤é¤¿¤Ã¤¿°ì²ó¤Ç¤¹¤à¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¼ÂºÝ¤Î¼Â¸³¤Î¹ÖµÁ¤Ç¤Ï¥Ç¡¼¥¿²òÀϤËÂФ¹¤ë¤¤¤¯¤Ä¤«¤Î»Ø¼¨¤¬Í¿¤¨¤é¤ì¡¢¤½¤ì¤Ç ¥Ç¡¼¥¿¤Ø¤ÎºÇ½é¤Î´Ø¿ô¤ÎÅö¤Æ¤Ï¤á¤¬¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£¤â¤·¤«¤¹¤ë¤È¡¢´ðÁÃÍýÏÀ¤Î Ê£¿ô¤Î¦Ì̤ˤҤȤĤº¤ÄÂбþ¤¹¤ëÊ£¿ô²ó¤Î¥×¥í¥»¥¹¤¬É¬Íפ«¤âÃΤì¤Þ¤»¤ó¤¬¡¢ ¤½¤·¤Æ¤½¤ì¤é¤Î´Ø¿ô¤ÎÅö¤Æ¤Ï¤á¤Î¥Ñ¥é¥á¡¼¥¿¤«¤éËÜÅö¤ËÍߤ·¤«¤Ã¤¿¾ðÊó¤ò¼è¤ê ½Ð¤¹¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢fit ¤ò»È¤¨¤Ð¡¢µá¤á¤ë¥Ñ¥é¥á¡¼¥¿¤Î»ëÅÀ¤«¤éľÀܥ⠥ǥë´Ø¿ô¤ò½ñ¤¯¤³¤È¤Ë¤è¤ê¡¢¤½¤ì¤Ï¤·¤Ð¤·¤Ð 1 ²ó¤ÇºÑ¤à¤Î¤Ç¤¹¡£»þ¡¹¤Ï¤è¤ê Æñ¤·¤¤Åö¤Æ¤Ï¤áÌäÂê¤Î·×»»¥³¥¹¥È¤¬¤«¤«¤ê¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿ÊÑ´¹¤â¤«¤Ê¤ê¤Î³ä¹ç ¤ÇÈò¤±¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤â¤·¤³¤ì¤¬¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤Îñ½ã²½¤Ë´Ø¤·¤Æ¡¢Á°¤Î ÃÊÍî¤ÈÌ·½â¤·¤Æ¤ë¤È»×¤¦¤Ê¤é¡¢¤½¤ì¤ÏÀµ²ò¤Ç¤¹¡£
"singular matrix" ¤Î¥á¥Ã¥»¡¼¥¸¤Ï¡¢¤³¤Î Marquardt-Levenberg ¥¢¥ë¥´¥ê¥º ¥à¤Î¥ë¡¼¥Á¥ó¤¬¡¢¼¡¤ÎÈ¿Éü¤ËÂФ¹¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÃͤη׻»¤¬½ÐÍè¤Ê¤¤¤³¤È¤ò°Õ Ì£¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢Ê̤ʽé´üÃͤ«¤é»Ï¤á¤ë¤«¡¢´Ø¿ô¤òÊ̤ʷÁ¤Ç½ñ¤Ä¾¤¹¤«¡¢ ¤è¤ê´Êñ¤Ê´Ø¿ô¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
ºÇ¸å¤Ë¡¢Â¾¤ÎÅö¤Æ¤Ï¤á¥Ñ¥Ã¥±¡¼¥¸ (fudgit) ¤Î¥Þ¥Ë¥å¥¢¥ë¤«¤é¡¢¤³¤ì¤é¤Îʸ½ñ ¤òÍ×Ì󤹤ë¤è¤¦¤Ê¤¤¤¤°úÍѤò¾å¤²¤Þ¤¹: "Nonlinear fitting is an art! (Èó Àþ·ÁÅö¤Æ¤Ï¤áË¡¤Ï·Ý½Ñ¤À !)"
°ìÅٴؿô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤¹¤ë¤È¡¢¤½¤ì¤òÄ̾ï¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤Î¤ÈƱ¤¸¤è¤¦¤Ë ¤É¤³¤Ç¤â¤½¤Î̾Á°¤Ç¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ÊÖ¤êÃͤ¬Å¬ÀڤǤʤ¤¾ì¹ç¡¢´Ø¿ô ¥Ö¥í¥Ã¥¯¤ò¡¢¿ô¼°¤Î°ìÉô¤È¤·¤Æ¤Ç¤Ê¤¯¡¢¥³¥Þ¥ó¥É "evaluate" ¤Ç¸Æ¤Ó½Ð¤¹¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£
Îã:
function $sinc(arg) << EOF if (arg == 0) { return 1.0 } return sin(arg) / arg EOF
gnuplot> plot $sinc(x) with lines title "sinc(x) as a function block"
̾Á°ÉÕ¤°ú¿ô¤Î°ìÍ÷¤Ï¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ÎÀë¸À»þ¤Ë»ØÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤷ¤¿´Ø¿ô¤Î°ú¿ô¤Î¸Ä¿ô¤È¤½¤ÎÃͤϡ¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ÎÆâÉô ¤«¤é¡¢À°¿ôÊÑ¿ô ARGC ¤È¤½¤ì¤ËÂбþ¤¹¤ëÇÛÎó ARGV[ARGC] ¤Ç¥¢¥¯¥»¥¹¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: ARGV (82.1)¡£¤³¤ì¤Ë¤è¤ê¡¢²ÄÊѤʸĿô¤Î°ú¿ô¤òÁàºî¤Ç¤¤ë´Ø¿ô¥Ö¥í¥Ã¥¯ ¤òÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£call ʸ¤Ë¤è¤ë¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß¤È¤Ï°ã¤¤¡¢ °ú¿ô¤Ïʸ»úÎóÊÑ¿ô²½ (Î㤨¤Ð ARG1) ¤Ï¤µ¤ì¤Þ¤»¤ó¡£
Îã:
function $max << EOF local max = real("-Inf") if (ARGC == 0) { return NaN } do for [i=1:ARGC] { if (max < ARGV[i]) { max = ARGV[i] } } return max EOF gnuplot> foo = $max( f(A), 2.0, C, Array[3] ) gnuplot> baz = $max( foo, 100. )
´Ø¿ô¥Ö¥í¥Ã¥¯¤ò¥µ¥Ý¡¼¥È¤¹¤ë°ìÈÖ¤ÎÌÜŪ¤Ï¡¢Ê£»¨¤Ê´Ø¿ô¤ò gnuplot ÆâÉô¤Çľ ÀÜÄêµÁ¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤Ç¤¹¡£¤â¤Á¤í¤ó¡¢Æ±¤¸´Ø¿ô¤ò C ¤ä Fortran ¤Ç¥³ ¡¼¥É¤·¤¿¾ì¹ç¤è¤ê¤â¼Â¹Ô®ÅÙ¤ÏÃÙ¤¯¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¿§¡¹¤ÊÌÜŪ¤ËÅú¤¨¤ë¤³ ¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£¼Â¹Ô®ÅÙ¤¬½ÅÍפʾì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë¤½¤Î´Ø¿ô¤òÊ̤˥ץ饰 ¥¤¥ó¤È¤·¤Æ¼ÂÁõ¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦ (°Ê²¼»²¾È: plugins (25))¡£
´Ø¿ô¥Ö¥í¥Ã¥¯¤ò»È¤¦ 2 ¤ÄÌܤÎÌÜŪ¤Ï¡¢gnuplot ¥³¥Þ¥ó¥É¤¬¡¢¤³¤ì¤ò»È¤¦°Ê³° ¤Ë¤Ï¸ºß¤Ç¤¤Ê¤¤¤è¤¦¤Ê¾õ¶·¤Ç¤½¤Î¼Â¹Ô¤ò²Äǽ¤Ë¤¹¤ë¤³¤È¤Ç¤¹¡£Î㤨¤Ð¤¢¤Ê¤¿ ¤¬ 2 ¤Ä¤Î CSV ¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¤¿¤¤¤¬¡¢°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ï¥Õ¥£ ¡¼¥ë¥É¤¬¥«¥ó¥Þ¶èÀÚ¤ê¤Ç¡¢¤â¤¦°ìÊý¤Ï¥»¥ß¥³¥í¥ó¶èÀÚ¤ê¤Ç¤¢¤ë¤È¤·¤Þ¤¹¡£ÄÌ¾ï ¤³¤Î°À¤ËÂФ·¤Æ¤Ï¡¢»öÁ°¤Ë¥³¥Þ¥ó¥É set datafile ¤ò¥»¥Ã¥È¤·¤Þ¤¹¤¬¡¢¤½ ¤ì¤Ï plot ¥³¥Þ¥ó¥É¤¬»ÈÍѤ¹¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤ËŬÍѤµ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤· ¤«¤·²æ¡¹¤Ï¡¢³Æ¥Õ¥¡¥¤¥ë¤¬ plot ¥³¥Þ¥ó¥É¤Ç»²¾È¤µ¤ì¤ëľÁ°¤Ë¤½¤ì¤òÀßÄꤹ¤ë ¤è¤¦¤Ë¸Æ¤Ó¤À¤¹¤è¤¦¤Ê´Ø¿ô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤Ç¤¤Þ¤¹¡£
function $set_csv(char) << EOF set datafile separator char EOF plot tmp=$set_csv(",") FILE1, tmp=$set_csv(";") FILE2
À©¸Â:
´Ø¿ô¥Ö¥í¥Ã¥¯¤ò»È¤¦¼«ÌÀ¤Ç¤Ê¤¤Îã¤È¤·¤Æ¡¢Ê£ÁÇÂпô¥¬¥ó¥Þ´Ø¿ô lngamma ¤ËÂÐ ¤¹¤ë 15 ¹à Lanczos ¶á»÷¤Î¼ÂÁõ¤È¥°¥é¥Õ¤¬¥Ç¥â¥³¥ì¥¯¥·¥ç¥óÆâ¤Ë¤¢¤ê¤Þ¤¹¡£ function_block.dem
¤³¤Î´Ø¿ô¥Ö¥í¥Ã¥¯¤Ë¤è¤ë¼ÂÁõ¤Ï¡¢Æ±¤¸¥¢¥ë¥´¥ê¥º¥à¤Ç C ¤ÇľÀÜ¥³¡¼¥É¤µ¤ì¤Æ
¤¤¤ëÁȤ߹þ¤ß´Ø¿ô¤Î lnGamma ¤ÈÈæ¤Ù¤Æ¡¢¤À¤¤¤¿¤¤ 25 ÇÜ°ÌÃÙ¤¤¤Ç¤¹¤¬¡¢¤½¤ì
¤Ç¤âÂÐÏ÷¿¤Ç¤Î 3 ¼¡¸µ¥°¥é¥Õ¤Î²óž¤Ë¤Ï½½Ê¬¤Ê°Ì¤Î®¤µ¤Ç¤¹¡£
¥Ç¥â¤Ë¤¢¤ë´Ø¿ôÄêµÁ¤Ï°Ê²¼¤ÎÄ̤ꡣ
15 ¹à Lanczos ¶á»÷¤òÍѤ¤¤¿
log(z) ¤Î´Ø¿ô¥Ö¥í¥Ã¥¯¤Ë¤è¤ë¼ÂÁõ
array coef[15] = [ ... ] function $Lanczos(z) << EOD local Sum = coef[1] + sum [k=2:15] coef[k] / (z + k - 1) local temp = z + 671./128. temp = (z + 0.5) * log(temp) - temp temp = temp + log( sqrt(2*pi) * Sum/z ) return temp EOD function $Reflect(z) << EOD local w = $Lanczos(1.0 - z) local temp = log( sin(pi * z) ) return log(pi) - (w + temp) EOD my_lngamma(z) = (z == 0) ? NaN : (real(z) < 0.5) ? $Reflect(z) : $Lanczos(z) |
´Ø¿ô¥Ö¥í¥Ã¥¯¤Î»ÈÍѤϻÃʳ¬¤Ç¤¹¡£ ¾ÜºÙ¤Ï¡¢¥ê¥ê¡¼¥¹ÈǤ˴ޤޤì¤ëÁ°¤ËÊѹ¹¤µ¤ì¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
help {<¹àÌÜ̾>}
¤â¤· <¹àÌÜ̾> ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ë¤Ä¤¤¤Æ¤Î´Êñ¤ÊÀâÌÀ ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¹àÌܤˤĤ¤¤Æ¤ÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¡¢¤½¤ì¤ËÂФ¹¤ë ºÙÌܤΥá¥Ë¥å¡¼¤¬É½¼¨¤µ¤ì¡¢¤½¤ÎºÙÌÜ̾¤òÆþÎϤ¹¤ë¤³¤È¤ÇºÙÌܤËÂФ¹¤ë¥Ø¥ë¥× ¤ò³¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎºÙÌܤÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¤Ë¡¢¤µ¤é¤Ê ¤ëºÙÌÜ̾¤ÎÆþÎϤòÍ׵ᤵ¤ì¤ë¤«¡¢¤Þ¤¿¤Ï 1 ¤ÄÁ°¤Î¹àÌܤΥì¥Ù¥ë¤ØÌá¤ê¤Þ¤¹¡£ ¤³¤ì¤ò·«¤êÊÖ¤¹¤È¤ä¤¬¤Æ¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ø¤ÈÌá¤ê¤Þ¤¹¡£
¤Þ¤¿¡¢µ¿ÌäÉä (?) ¤ò¹àÌܤȤ·¤Æ»ØÄꤹ¤ë¤È¡¢¸½ºß¤Î¥ì¥Ù¥ë¤Î¹àÌܤΥꥹ¥È¤¬ ɽ¼¨¤µ¤ì¤Þ¤¹¡£
history ¥³¥Þ¥ó¥É¤Ç»Ï¤Þ¤ëÆþÎϹԤϡ¢¥³¥Þ¥ó¥ÉÍúÎò¤Ë¤ÏÊݸ¤·¤Þ¤»¤ó¡£
Îã:
history # ÍúÎòÁ´ÂΤòɽ¼¨ history 5 # ÍúÎòÆâ¤ÎľÁ°¤Î 5 ¤Ä¤òɽ¼¨ history quiet 5 # ¥¨¥ó¥È¥êÈÖ¹æ¤Ê¤·¤ÇľÁ°¤Î 5 ¤Ä¤òɽ¼¨ history "hist.gp" # ÍúÎòÁ´ÂΤò¥Õ¥¡¥¤¥ë hist.gp ¤Ë½ñ¤½Ð¤¹ history "hist.gp" append # ÍúÎòÁ´ÂΤò¥Õ¥¡¥¤¥ë hist.gp ¤ËÄɲ乤ë history 10 "hist.gp" # ľÁ°¤Î 10 ¸Ä¤ò¥Õ¥¡¥¤¥ë hist.gp ¤Ë½ÐÎÏ history 10 "|head -5 >>diary.gp" # ¥Ñ¥¤¥×¤ÇÍúÎò¤ò 5 ¤Ä½ñ¤½Ð¤¹ history ?load # ÍúÎòÆâ¤Î "load" ¤Ç»Ï¤Þ¤ë¤â¤Î¤¹¤Ù¤Æ¤òɽ¼¨ history ?"set c" # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à) hist !"set xr" # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à) hist !55 # 55 ÈÖÌܤÎÍúÎò¹àÌܤΥ³¥Þ¥ó¥É¤òºÆ¼Â¹Ô
if (<condition>) { <commands>; <commands> <commands> } else if (<condition>) { <commands> } else { <commands> }
¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢if/else ¤Î¥Ö¥í¥Ã¥¯·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ ¤¹¡£¥¡¼¥ï¡¼¥É if, else ¤Î¸å¤í¤Ë³«»Ï¥«¥Ã¥³ "{" ¤¬Â³¤¯¾ì¹ç¡¢"}" ¤Ç ½ªÎ»¤¹¤ë¥Ö¥í¥Ã¥¯¤Þ¤Ç¤Î¤¹¤Ù¤Æ¤Îʸ (Ê£¿ô¤ÎÆþÎϹԤâ²Ä) ¤Ë¾ò·ïŪ¤Ê¼Â¹Ô¤¬Å¬ ÍѤµ¤ì¤Þ¤¹¡£if ¥³¥Þ¥ó¥É¤ÏÆþ¤ì»Ò¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¥Ð¡¼¥¸¥ç¥ó 5 ¤è¤êÁ°¤Î gnuplot ¤Ç¤Ï¡¢if/else ¥³¥Þ¥ó¥É¤ÎÄÌÍÑÈÏ°Ï¤Ï 1 ¹Ô Æâ¤Ëα¤Þ¤Ã¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¸½ºß¤ÏÊ£¿ô¹Ô¤òÃ楫¥Ã¥³ { } ¤Ç°Ï¤ó¤Ç½ñ¤¯¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£¸Å¤¤·Á¼°¤â°ì±þ»Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÃ楫¥Ã¥³¤Î¥Ö¥í¥Ã¥¯Æâ¤Ç »È¤¦¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
°ÊÁ°¤Î½ñ¼°:
if (<¾ò·ï>) <¥³¥Þ¥ó¥É¹Ô> [; else if (<¾ò·ï>) ...; else ...]
¥¡¼¥ï¡¼¥É if ¤¬ "{" ¤ò¤È¤â¤Ê¤ï¤Ê¤¤¾ì¹ç¤Ï¡¢<¾ò·ï> ¤¬¿¿ (¥¼¥í¤Ç¤Ê¤¤) ¤Ê¤é¤Ð <¥³¥Þ¥ó¥É¹Ô> ¤Î¥³¥Þ¥ó¥É (Ê£¿ô¤â²Ä) ¤¬¼Â¹Ô¤µ¤ì¡¢µ¶ (¥¼¥í) ¤Ê¤é¤Ð ¥¹¥¥Ã¥×¤µ¤ì¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç¤âÆþÎϹԤκǸå¤Ë¤Ê¤ë¤«¡¢else ¤¬¸½¤ì¤ë ¤È¤³¤í¤Þ¤Ç¤½¤ì¤¬¹Ô¤ï¤ì¤Þ¤¹¡£; ¤ò»È¤¦¤ÈƱ¤¸¹Ô¤ËÊ£¿ô¤Î¥³¥Þ¥ó¥ÉÃÖ¤¯¤³¤È ¤¬²Äǽ¤Ç¤¹¤¬¡¢¾ò·ïÉÕ¤¤Î¥³¥Þ¥ó¥É (if ¤Î¹½Ê¸¼«ÂÎ) ¤Ï¤½¤³¤Ç¤Ï½ª¤é¤Ê¤¤ ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
for [intvar = start:end{:increment}] for [stringvar in "A B C D"]
Îã:
plot for [filename in "A.dat B.dat C.dat"] filename using 1:2 with lines plot for [basename in "A B C"] basename.".dat" using 1:2 with lines set for [i = 1:10] style line i lc rgb "blue" unset for [tag = 100:200] label tag
·«¤êÊÖ¤·¤ÎÆþ¤ì»Ò¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:
set for [i=1:9] for [j=1:9] label i*10+j sprintf("%d",i*10+j) at i,j
¤µ¤é¤Ê¤ëÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: iteration (19), do (85)¡£
½ñ¼°:
import func(x[,y,z,...]) from "sharedobj[:symbol]"
Îã:
# ´Ø¿ô myfun ¤ò "mylib.so" ¤« "mylib.dll" ¤«¤é¼è¤ê¹þ¤ó¤ÇºîÀ®¤¹¤ë # gnuplot ¤Ç¤ÏÉÁ²è¡¢¤Þ¤¿¤Ï¿ôÃÍ·×»»¤ÇÍøÍѲÄǽ import myfun(x) from "mylib" import myfun(x) from "mylib:myfun" # ¾å¤ÈƱÍÍ
# "theirlib.so" ¤« "theirlib.dll" ¤ÇÄêµÁºÑ¤Î´Ø¿ô theirfun ¤òºîÀ® # °Û¤Ê¤ë̾Á°¤ÇÍøÍѲÄǽ import myfun(x,y,z) from "theirlib:theirfun"
¥×¥í¥°¥é¥à¤Ï¶¦Í¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿Ì¾Á°¤Ë¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥· ¥¹¥Æ¥à¤Ë½¾¤Ã¤Æ ".so" ¤« ".dll" ¤òÄɲä·¡¢¤Þ¤º¤½¤ì¤ò¥Õ¥ë¥Ñ¥¹Ì¾¤È¤·¤Æ¸¡ º÷¤·¡¢¼¡¤Ë¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ¸¡º÷¤·¤Þ¤¹¡£¥ª¥Ú¥ì ¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¼«ÂΤâ LD_LIBRARY_PATH ¤« DYLD_LIBRARY_PATH ¤ÎǤ°Õ¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¤Þ¤¹¡£°Ê²¼»²¾È: plugins (25)¡£
½ñ¼°:
load "<ÆþÎÏ¥Õ¥¡¥¤¥ë̾>" load $datablock
ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
load ¥³¥Þ¥ó¥É¤Ï¡¢É¸½àÆþÎϤ«¤é¤Î¥³¥Þ¥ó¥É¤ÎÆþÎϤΤ¿¤á¤Ë¡¢ÆÃÊ̤ʥե¡¥¤ ¥ë̾ "-" ¤òÍÑ°Õ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤¬¡¢¤¤ ¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤é¼õ¤±ÉÕ¤±¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£
popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à¤Ç¤Ï¡¢'<' ¤Ç»Ï¤Þ¤ë¥Õ¥¡¥¤¥ë̾¤Ë¤¹ ¤ë¤³¤È¤Ç¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ò¥Ñ¥¤¥×¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
load 'work.gnu' load "func.dat" load "< loadfile_generator.sh"
gnuplot ¤Ø¤Î°ú¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢°ÅÌۤΤ¦¤Á¤Ë load ¥³ ¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢»ØÄꤵ¤ì¤¿½ç¤Ë¥í¡¼¥É¤µ¤ì¡¢¤½¤Î¸å gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£
»î¸³Ãʳ¬: ÆâÉô¤ÇÊݸ¤·¤¿¥Æ¥¥¹¥È¤Î¹Ô¤«¤é¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£´Ø¿ô¥Ö¥í¥Ã¥¯¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¡¢¤¢ ¤ë¤¤¤Ï³°Éô¥Õ¥¡¥¤¥ë¤ÇÄêµÁ¤Ç¤¤Þ¤¹¡£°ìÅٴؿô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤µ¤ì¤Ð¡¢¤½¤Î¥³ ¥Þ¥ó¥É¤Ï¡¢¤¢¤é¤¿¤á¤Æ¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤Î¤Ç¤Ê¤¯ÆâÉô¤Î¥³¥Ô¡¼¤ËÂФ·¤Æ evaluate ¤ò»È¤¦¤³¤È¤Ç·«¤êÊÖ¤·¼Â¹Ô¤Ç¤¤Þ¤¹¡£
local foo = <expression> local array foo[size]
¥¡¼¥ï¡¼¥É local ¤Ï¡¢ÊÑ¿ô¤ÎÀë¸À¤òƳÆþ¤·¡¢¤½¤ÎÊÑ¿ô¤Î͸úÈÏ°Ï (scope) ¤ò¡¢¤½¤ÎÀë¸À¤¬´Þ¤Þ¤ì¤ë¥³¡¼¥É¥Ö¥í¥Ã¥¯Æâ¤Î¼Â¹Ô¤Î¤ß¤ËÀ©¸Â¤·¤Þ¤¹¡£ÊÑ¿ôÀë¸À ¤Ïɬ¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢¤½¤ì¤¬¤Ê¤±¤ì¤Ð¤¹¤Ù¤Æ¤ÎÊÑ¿ô¤ÏÂç°è (global) ÊÑ¿ô ¤È¤Ê¤ê¤Þ¤¹¡£¶É½ê (local) ÊÑ¿ô¤Î̾Á°¤¬Âç°èÊÑ¿ô¤È½Å¤Ê¤Ã¤¿¾ì¹ç¤Ï¡¢¶É½êÊÑ ¿ô¤Î͸úÈϰϤ«¤éÈ´¤±¤ë¤Þ¤Ç¤Ï¡¢Âç°èÊÑ¿ô¤Ï±£¤·¤Þ¤¹¡£°Ê²¼»²¾È: scope (26)¡£
local ¤ÎÀë¸À¤Ï¡¢call ¤ä load ʸ¤Ë¤è¤Ã¤ÆÂç°èÊÑ¿ô¤ÎÃͤ¬°Õ¼±¤»¤º¤Ë¾å ½ñ¤¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£¤³¤ì¤ÏÆä˴ؿô¥Ö¥í¥Ã¥¯Æâ¤Ç ÍÍѤǤ¹¡£¥³¥Þ¥ó¥É local ¤Ï¡¢if, else, do for, while ¤Ë³¤¯ Ãæ³ç¸Ì¤Î¥³¡¼¥É¥Ö¥í¥Ã¥¯Æâ¤Ç¤â͸ú¤Ç¤¹¡£
Îã: ¥Ç¡¼¥¿½¸¹ç¤Î°ì·²¤òÉÁ²è¤¹¤ë¥³¥Þ¥ó¥É¤«¤é¤Ê¤ë°Ê²¼¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È "plot_all_data.gp" ¤ò½ñ¤¯¤È¤·¤Þ¤¹¡£¤³¤ÎÊØÍø¤Ê¥¹¥¯¥ê¥×¥È¤Ï¡¢"file" ¤ä "files" ¤ä "dataset" ¤ä "outfile" ¤Î̾Á°¤ÎǤ°Õ¤ÎÊÑ¿ô¤¬Ç˲õ¤µ¤ì¤ë¿´ÇÛ¤ò ¤»¤º¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¡¢¤¢¤ë¤¤¤Ï¾¤Î¥¹¥¯¥ê¥×¥È¤«¤é¸Æ¤Ó½Ð¤»¤Þ¤¹¡£ ÊÑ¿ô "file" ¤ÏËܼÁŪ¤Ë¶É½êŪ¤Ç¡¢¤½¤ì¤Ï¤½¤ì¤¬·«¤êÊÖ¤·ÊÑ¿ô¤À¤«¤é¤Ç¤¹ (°Ê²¼»²¾È: scope (26)) ¤¬¡¢Â¾¤Î 3 ¤Ä¤Ï¡¢¤½¤ì¤é¤òÊݸ¤ë¤Ë¤Ï¥¡¼¥ï¡¼¥É local ¤¬É¬ÍפǤ¹¡£
plot_all_data.gp:
local files = system("ls -1 *.dat") do for [file in files] { local dataset = file[1:strstrt(file,".dat")-1] local outfile = dataset . ".png" set output outfile plot file with lines title dataset } unset output
½ñ¼°:
pause <time> {"<string>"} pause mouse {<endcondition>}{, <endcondition>} {"<string>"} pause mouse close
<time> ¤Ï¡¢Ç¤°Õ¤ÎÄê¿ô¤Þ¤¿¤Ï¼Â¿ôÃͤμ°¤Ç¤¹¡£pause -1 ¤Ï²þ¹Ô¥¡¼¤¬²¡¤µ ¤µ¤ì¤ë¤Þ¤ÇÂÔ¤Á¡¢0 ¤ò»ØÄꤹ¤ë¤È°ìÀÚÂÔ¤¿¤º¡¢Àµ¤Î¿ô¤ò»ØÄꤹ¤ë¤È¤½¤ÎÉÿô¤À ¤±ÂÔ¤Á¤Þ¤¹¡£
»ÈÍѤ·¤Æ¤¤¤ë½ÐÎÏ·Á¼°¤¬ mousing (¥Þ¥¦¥¹µ¡Ç½) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢ pause mouse ¤Ï¡¢¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¤¬¤¢¤ë¤« ctrl-C ¤¬²¡¤µ¤ì¤ë¤Þ¤ÇÂԤĤ褦 ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¡¢¤Þ¤¿¤Ï¥Þ¥¦¥¹µ¡Ç½¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤Ê¤¤¾ì¹ç pause mouse ¤Ï pause -1 ¤ÈƱ¤¸¤Ç¤¹¡£
°ì¤Ä¡¢¤¢¤ë¤¤¤ÏÊ£¿ô¤Î½ªÎ»¾ò·ï (endcondition) ¤¬ pause mouse ¤Î¸å¤ËÍ¿ ¤¨¤é¤ì¤¿¾ì¹ç¡¢¤½¤Î¤¦¤Á¤Î¤É¤Î°ì¤Ä¤Ç¤â pause ¤Ï½ªÎ»¤·¤Þ¤¹¡£»ØÄê¤Ç¤¤ë½ª λ¾ò·ï¤Ï¡¢keypress, button1, button2, button3, close, any ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£pause ¤¬¥¡¼ÆþÎϤˤè¤Ã¤Æ½ªÎ»¤·¤¿¾ì¹ç¡¢²¡¤µ¤ì¤¿¥¡¼¤Î ASCII ¥³¡¼¥É¤Ï MOUSE_KEY ¤ËÊݸ¤µ¤ì¡¢Ê¸»ú¤½¤ì¼«¿È¤Ï¡¢1 ʸ»ú¤Îʸ»úÎóÃÍ ¤È¤·¤Æ MOUSE_CHAR ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£keypress ¤¬½ªÎ»¾ò·ï¤Î°ì¤Ä¤Ç¤¢¤ì¤Ð¡¢ ¥Û¥Ã¥È¥¡¼ (¥¡¼³ä¤êÅö¤Æ¥³¥Þ¥ó¥É) ¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£buttons3 ¤¬½ªÎ» ¾ò·ï¤Î°ì¤Ä¤Ç¤¢¤ì¤Ð¡¢³ÈÂ絡ǽ¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
¤É¤Î¾ì¹ç¤Ç¤â¥Þ¥¦¥¹¤ÎºÂɸ¤ÏÊÑ¿ô MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ¤Ë Êݸ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: mouse variables (22.2)¡£
Ãí°Õ: pause ¥³¥Þ¥ó¥É¤Ï OS ¤Ø¤Î¥³¥Þ¥ó¥É¤Ç¤¢¤êÉÁ²è¤Î°ìÉô¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢ °Û¤Ê¤ë½ÐÎÏÁõÃ֤ǤϰۤʤëÆ°ºî¤ò¤¹¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£(¤³¤ì¤Ï¡¢¥Æ¥¥¹¥È ¤È¥°¥é¥Õ¥£¥Ã¥¯¥¹¤¬¡¢¤É¤Î¤è¤¦¤Ëº®ºß¤¹¤ë¤«¤Ë¤è¤ê¤Þ¤¹¡£)
Îã:
pause -1 # ²þ¹Ô¥¡¼¤¬²¡¤µ¤ì¤ë¤Þ¤ÇÂÔ¤Ä pause 3 # 3 ÉÃÂÔ¤Ä pause -1 "³¤±¤ë¤Ë¤Ï return ¤òÂǤäƤ¯¤À¤µ¤¤" pause 10 "¤³¤ì¤ÏÈþ¤·¤¯¤Ê¤¤¤Ç¤¹¤« ? 3 ¼¡¤Î spline ¤Ç¤¹" pause mouse "ÁªÂò¤·¤¿¥Ç¡¼¥¿ÅÀ¾å¤ÇǤ°Õ¤Î¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤" pause mouse keypress "͸ú¤Ê¥¦¥£¥ó¥É¥¦Æâ¤Ç A-F ¤Îʸ»ú¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤" pause mouse button1,keypress pause mouse any "Ǥ°Õ¤Î¥¡¼¡¢¥Ü¥¿¥ó¤Ç½ªÎ»¤·¤Þ¤¹"
°¡¼ï¤Ç¤¢¤ë "pause mouse key" ¤Ï¡¢Í¸ú¤ÊÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç¤ÎǤ°Õ¤Î¥¡¼ ÆþÎϤˤè¤Ã¤ÆºÆ³«¤µ¤ì¤Þ¤¹¡£ÆÃÊ̤ʥ¡¼ÆþÎϤޤÇÂԤĤ褦¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê ²¼¤Î¤è¤¦¤Ê¥ë¡¼¥×¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹:
print "ÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç Tab ¥¡¼¤òÂǤĤÈÉüµ¢¤·¤Þ¤¹¡£" plot <something> pause mouse key while (MOUSE_KEY != 9) { pause mouse key }
°Ê²¼¤Î¥³¥Þ¥ó¥ÉÎó¤Ï¡¢gnuplot ¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¤Ç¤Ê¤¯¥¹¥¯¥ê¥×¥È¤«¤é¼Â ¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¤ËÍÍѤǤ¹¡£
plot <...whatever...> bind all "alt-End" "exit gnuplot" pause mouse close
½ñ¼°:
plot {<axis-ranges>} <ÉÁ²èÍ×ÁÇ> {, <ÉÁ²èÍ×ÁÇ>, <ÉÁ²èÍ×ÁÇ>}
³ÆÉÁ²èÍ×ÁǤϡ¢ÄêµÁ (definition) ¤«´Ø¿ô (function) ¤«¥Ç¡¼¥¿ (data source) ¤Î¤¤¤º¤ì¤« 1 ¤Ä¤Ë¡¢¥ª¥×¥·¥ç¥ó¤Î°À¡¢½¤Àµ»Ò¤Ê¤É¤¬¤Ä¤¤¤¿¤â¤Î¤Ç ¤¹:
ÉÁ²èÍ×ÁÇ: {<iteration>} <definition> | {sampling-range} <function> | <data source> | keyentry {axes <axes>} {<title-spec>} {with <style>}
³ÆÉÁ²èÍ×ÁǤΥ°¥é¥Õɽ¸½·Á¼°¤Ï¡¢Î㤨¤Ð with lines ¤ä with boxplot ¤Ê ¤É¤Î¤è¤¦¤Ë¥¡¼¥ï¡¼¥É with ¤Ç·èÄꤷ¤Þ¤¹¡£°Ê²¼»²¾È: plotting styles (II)¡£
ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¤Ï¡¢1 ¤Ä¤Î´Ø¿ô¤«¤éÀ¸À®¤µ¤ì¤ë¤â¤Î (ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ï 2 ¤Ä¤Î´Ø¿ô¤«¤é)¡¢¤Þ¤¿¤Ï°ì¤Ä¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆÉ¤ß ¹þ¤Þ¤ì¤ë¤â¤Î¡¢¤Þ¤¿¤Ï»öÁ°¤ËÄêµÁ¤µ¤ì¤¿Ì¾Á°ÉÕ¤¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤«¤éÆɤ߹þ¤Þ ¤ì¤ë¤â¤Î¡¢¤Þ¤¿¤ÏÇÛÎ󤫤éÈ´¤½Ð¤·¤¿¤â¤Î¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¥³¥ó¥Þ¤Ç¶èÀÚ¤ë ¤³¤È¤Ç¡¢Ê£¿ô¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¡¢ÇÛÎó¡¢´Ø¿ô¤Ê¤É¤ò 1 ¤Ä¤Î plot ¥³¥Þ¥ó¥É¤ÇÉÁ²è¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: data (99.3), inline data (18), functions (99.4)¡£
´Ø¿ô¡¢ÊÑ¿ô¤ÎÄêµÁ¤ÎÉÁ²èÍ×ÁǤϡ¢²èÁü½ÐÎϤòÀ¸À®¤·¤Þ¤»¤ó¡£²¼¤Î 3 ¤ÄÌܤÎÎã ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
plot sin(x) plot sin(x), cos(x) plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x) plot "datafile.1" with lines, "datafile.2" with points plot [t=1:10] [-pi:pi*2] tan(t), \ "data.1" using (tan($2)):($3/$4) smooth csplines \ axes x1y2 notitle with lines 5 plot for [datafile in "spinach.dat broccoli.dat"] datafile
°Ê²¼»²¾È: show plot (114.4)¡£
¥Õ¥¡¥¤¥ë̾¤Î¸å¤í¤Ë binary ¤Î¥¡¼¥ï¡¼¥É¤òÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¥Õ¥¡ ¥¤¥ë·Á¼°¤Ë´Ø¤¹¤ë½½Ê¬¾ÜºÙ¤Ê¾ðÊó¤Ï¡¢¥æ¡¼¥¶¤¬¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÍ¿¤¨¤ë¤«¡¢ ¤Þ¤¿¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë filetype ¤Î¥Ð¥¤¥Ê¥ê·Á¼°¤Î¥Õ¥¡¥¤¥ë¤½¤ì¼«¿È¤«¤é È´¤½Ð¤µ¤ì¤ë¤«¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢Â礤¯ 2 ¤Ä¤Î ·Á¼°¡¢binary matrix ·Á¼°¤È binary general ·Á¼°¤¬¤¢¤ê¤Þ¤¹¡£
binary matrix ·Á¼°¤Ï¡¢32 ¥Ó¥Ã¥È IEEE µ¬³Ê¤ÎÉâÆ°¾®¿ôÃÍ (float) ¤¬ 2 ¼¡¸µÇÛÎó¤Î·Á¤Çʤӡ¢¤½¤ì¤é¤ÎºÂɸÃͤòɽ¤¹¹Ô¤ÈÎó¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Î using »ØÄê¤Ë¤ª¤¤¤Æ¡¢1 ÈÖÌÜ (column(1)) ¤Ï¹ÔÎó¤Î¹Ô¤ÎºÂɸ¤ò »²¾È¤·¡¢2 ÈÖÌÜ (column(2)) ¤ÏÎó¤ÎºÂɸ¤ò»²¾È¤·¡¢3 ÈÖÌÜ (column(3)) ¤Ï¡¢ ÇÛÎó¤Î¤½¤ì¤é¤ÎºÂɸ¤Î¾ì½ê¤ËÊݸ¤µ¤ì¤Æ¤¤¤ëÃͤò»²¾È¤·¤Þ¤¹¡£
binary general ·Á¼°¤Ï¡¢Ç¤°Õ¸Ä¤ÎÎó¤Î¥Ç¡¼¥¿¤ò´Þ¤ß¡¢¤½¤ì¤é¤Î¾ðÊó¤Ï¥³¥Þ ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð array, record, format, using ¤Ê¤É¤Ç¥µ¥¤¥º¤ä·Á¼°¡¢¥Ç¡¼¥¿¤Î¼¡¸µ¤ò»ØÄê¤Ç¤¤Þ¤¹¡£Â¾¤Ë¤â¡¢¥Õ¥¡¥¤ ¥ë¥Ø¥Ã¥ÀÆɤßÈô¤Ð¤·¤¿¤ê¡¢¥¨¥ó¥Ç¥£¥¢¥ó (endian) ¤òÊѹ¹¤¹¤ë¤¿¤á¤ÎÍÍѤʥ³ ¥Þ¥ó¥É¤¬¤¢¤ê¤Þ¤¹¤·¡¢ÇÛÃÖ¡¢¥Ç¡¼¥¿¤ÎÊÑ´¹¤ò¹Ô¤Ê¤¦¥³¥Þ¥ó¥É¤ÎÁȤ¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤Ï¡¢°ìÍͤËɸËܲ½¤µ¤ì¤¿¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¤½¤ÎºÂɸ¤¬¥Õ¥¡¥¤¥ë¤Ë¤Ï´Þ¤Þ¤ì¤Ê ¤¤¤³¤È¤¬Îɤ¯¤¢¤ë¤«¤é¤Ç¤¹¡£matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ä¥Æ¥¥¹¥È¥Ç¡¼¥¿¤«¤é ¤ÎÆþÎϤȰ㤦¤È¤³¤í¤Ç¤¹¤¬¡¢general ¥Ð¥¤¥Ê¥ê¤Ï 1,2,3 ¤È¤¤¤Ã¤¿ using ¥ê ¥¹¥È¤ÇÀ¸À®¤µ¤ì¤ëÎóÈÖ¹æ¤ò»È¤ï¤º¡¢Âå¤ï¤ê¤Ë 1 ÎóÌܤϥե¡¥¤¥ë¤Î 1 ÎóÌÜ¡¢¤¢ ¤ë¤¤¤Ï format ¥ê¥¹¥È¤Ç»ØÄꤵ¤ì¤¿¤â¤Î¡¢¤Ë¤Ê¤ê¤Þ¤¹¡£
¤µ¤Þ¤¶¤Þ¤Ê binary ¥ª¥×¥·¥ç¥ó¤ËÂФ¹¤ëÂç°èŪ¤Ê¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤â²Äǽ¤Ç¡¢ ¤½¤ì¤Ï (s)plot <filename> binary ... ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤ë¥ª¥×¥·¥ç¥ó¤ÈÁ´ ¤¯Æ±¤¸½ñ¼°¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤Î½ñ¼°¤Ï set datafile binary ... ¤Ç¤¹¡£ °ìÈÌŪ¤Êµ¬Â§¤È¤·¤Æ¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¥Õ¥¡¥¤¥ë¤«¤éÈ´¤½Ð¤µ¤ì¤¿¥Ñ ¥é¥á¡¼¥¿¤Ç¾å½ñ¤¤µ¤ì¡¢¤½¤ì¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¶¦Ä̤ʥѥé¥á¡¼¥¿ ¤Ç¾å½ñ¤¤µ¤ì¤Þ¤¹¡£
Î㤨¤Ð array, record, format, filetype ¤Î binary general ·Á ¼°¤òÆÃÄꤹ¤ë¤è¤¦¤Ê¥¡¼¥ï¡¼¥É¤¬²¿¤â¤Ä¤¤¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ð¥¤¥Ê ¥ê·Á¼°¤Ï binary matrix ¤Ç¤¹¡£
general ¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ï¡¢ÆÃÊ̤ʥե¡¥¤¥ë̾ '-' ¤ò»È¤Ã¤Æ¥³¥Þ¥ó¥É¥é¥¤¥ó ¤«¤éÆþÎϤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¥¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎϤò°Õ¿Þ¤· ¤¿¤â¤Î¤Ç¤Ï¤Ê¤¯¡¢¥Ñ¥¤¥×¤ò»È¤Ã¤Æ¥×¥í¥°¥é¥à¤Ë¥Ð¥¤¥Ê¥ê·Á¼°¤òÊÑ´¹¤µ¤»¤ë¤¿¤á ¤Î¤â¤Î¤Ç¤¹¡£¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ë¤ÏºÇ¸å¤òɽ¤¹µ¹æ¤¬¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢gnuplot ¤Ï¥Ñ¥¤¥×¤«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤à¾ì¹ç¡¢array »ØÄê»Ò¤Ç»ØÄꤷ¤¿¿ô¤ÎÅÀ¿ô¤Ë¤Ê ¤ë¤Þ¤Ç¥Ç¡¼¥¿¤òÆɤ߹þ¤ß³¤±¤Þ¤¹¡£¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: binary matrix (115.1.1), binary general (99.2.1)¡£
index ¥¡¼¥ï¡¼¥É¤Ï¡¢¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¬ 1 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ä¤ 1 ¤Ä ¤Î¶ÊÌ̤·¤«µö¤µ¤Ê¤¤¤¿¤á¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡£every ¤ä using »ØÄê¤Ï ¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£using ¤Ï¡¢¥Ç¡¼¥¿¤¬¤¢¤¿¤«¤â¾å¤Î 3 ¤ÄÁȤηÁ¤ÇÆÉ¤Þ¤ì ¤¿¤«¤Î¤è¤¦¤ËƯ¤¤Þ¤¹¡£ ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î splot ¤Î¥Ç¥â¡£
½ñ¼°:
plot '<file_name>' {binary <binary list>} ... splot '<file_name>' {binary <binary list>} ...
general ¥Ð¥¤¥Ê¥ê·Á¼°¤Ï¡¢¥Õ¥¡¥¤¥ë¹½Â¤¤Ë´Ø¤¹¤ë¾ðÊó¤Ë´ØÏ¢¤¹¤ë¥¡¼¥ï¡¼¥É¡¢ ¤¹¤Ê¤ï¤Á array, record, format, filetype ¤Ê¤É¤ò <binary list> Æâ¤ËÍ¿¤¨¤ë¤³¤È¤Ç͸ú¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢Èó°ìÍÍ¤Ê matrix ¥Ð¥¤ ¥Ê¥ê·Á¼°¤È¸«¤Ê¤·¤Þ¤¹¡£(¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: binary matrix (115.1.1))
gnuplot ¤Ï¡¢Î㤨¤Ð PNG ²èÁü¤Î¤è¤¦¤Ë´°Á´¤Ë¼«¸Êµ½Ò¤µ¤ì¤ëɸ½àŪ¤Ê¥Ð¥¤¥Ê ¥ê¥Õ¥¡¥¤¥ë·Á¼°¤ÎÆɤ߹þ¤ßÊýË¡¤ò¤¤¤¯¤Ä¤«ÃΤäƤ¤¤Þ¤¹¡£¤½¤Î°ìÍ÷¤Ï¡¢ÂÐÏòè ÌÌ¤Ç show datafile binary ¤ÈÆþÎϤ¹¤ë¤³¤È¤Ç»²¾È¤Ç¤¤Þ¤¹¡£¤½¤ì¤é°Ê³°¤Î ¤â¤Î¤Ë¤Ä¤¤¤Æ¤Ï¡¢³µÇ°¾å¤Ï¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ï¥Æ¥¥¹¥È¥Ç¡¼¥¿¤ÈƱÍͤ˹ͤ¨¤ë¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£³ÆÅÀ¤Ë¤Ï¡¢using »ØÄê¤ÇÁªÂò¤µ¤ì¤ë¾ðÊó¤ÎÎ󤬤¢¤ê¤Þ¤¹¡£ format ʸ»úÎó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï¥Ð¥¤¥Ê¥ê¿ôÃͤοô¤ò <using list> ¤ÇÍ¿¤¨¤é¤ì¤ëºÇÂç¤ÎÎóÈÖ¹æ¤ËÅù¤·¤¯¼è¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢ using 1:3 ¤È¤¹¤ë¤È 3 Î󤺤ĥǡ¼¥¿¤¬Æɤ߼è¤é¤ì¡¢2 ÈÖÌܤΤâ¤Î¤Ï̵»ë¤· ¤Þ¤¹¡£³ÆÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤Î using »ØÄ꤬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð with image ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç using 1 ¤ò¡¢with rgbimage ¤Ï¥Ç¥Õ¥©¥ë¥È ¤Ç using 1:2:3 ¤ò»È¤¤¤Þ¤¹¡£
plot '<file_name>' binary skip=1024 ...
¥Õ¥¡¥¤¥ë¤ËÊ£¿ô¤Î¥ì¥³¡¼¥É¤¬¤¢¤ë¾ì¹ç¡¢¤½¤Î¤½¤ì¤¾¤ì¤ËÂФ¹¤ëÀèƬ¤Î¤º¤é¤·°Ì ÃÖ¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢ºÇ½é¤Î¥ì¥³¡¼¥É¤ÎÁ°¤Î 512 ¥Ð¥¤¥È¤ò ¥¹¥¥Ã¥×¤·¡¢2 ÈÖÌÜ¡¢3 ÈÖÌܤΥ쥳¡¼¥É¤ÎÁ°¤Î 256 ¥Ð¥¤¥È¤ò¥¹¥¥Ã¥×¤¹¤ë¤Ë ¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:
plot '<file_name> binary record=356:356:356 skip=512:256:256 ...
¤µ¤é¤Ë using »ØÄêƱÍÍ¡¢* ʸ»ú¤¬¤Ä¤¤¤¿Æɤ߼ΤƤëÎó¤ò½ñ¼°¤Ë»ØÄꤹ¤ë ¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢·«¤êÊÖ¤·¥Õ¥£¡¼¥ë¥É¤Ø¤Î²ó¿ô»ØÄê¤Ë¤è¤Ã¤Æ°ÅÌۤ竤êÊÖ¤· ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢format="%*2int%3float" ¤Ï¡¢3 ¤Ä¤Î ¼Â¿ô¥Ç¡¼¥¿¤òÆɤàÁ°¤Ë¡¢2 ¤Ä¤ÎÀ°¿ô¥Ç¡¼¥¿¤òÆɤ߼ΤƤޤ¹¡£»ÈÍѤǤ¤ëÊÑ¿ô¥µ ¥¤¥º¤Î°ìÍ÷¤Ï¡¢show datafile binary datasizes ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¤½¤ì¤é¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥³¥ó¥Ñ¥¤¥ë¤Ë¤è¤Ã¤Æ¤½¤Î¥Ð¥¤¥È¥µ¥¤¥º¤È¤È¤â¤Ë¥Þ¥·¥ó¤Ë °Í¸¤¹¤ëÊÑ¿ô̾¤Î¥°¥ë¡¼¥×¤È¡¢¥Þ¥·¥ó¤Ë°Í¸¤·¤Ê¤¤ÊÑ¿ô̾¤Î¥°¥ë¡¼¥×¤Ëʬ¤«¤ì ¤Æ¤¤¤Þ¤¹¡£
little: ¾®¤µ¤¤·å¤«¤éÂ礤ʷå¤ØÊÂ¤Ö big: Â礤ʷ夫¤é¾®¤µ¤Ê·å¤ØÊÂ¤Ö default: compiler ¤ÈƱ¤¸¥¨¥ó¥Ç¥£¥¢¥ó¤È¸«¤Ê¤¹ swap (swab): ¥¨¥ó¥Ç¥£¥¢¥ó¤òÊѹ¹¤¹¤ë (¤ª¤«¤·¤¤¤è¤¦¤Ê¤é¤³¤ì¤ò »È¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤)
gnuplot ¤Ï¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢"middle" (¤ä "pdp") ¥¨¥ó¥Ç¥£¥¢¥ó¤â¥µ¥Ý¡¼¥È¤Ç¤¤Þ¤¹¡£
ÆÃÊ̤ʥե¡¥¤¥ë·Á¼°¤È¤·¤Æ auto ¤¬¤¢¤ê¡¢¤³¤Î¾ì¹ç gnuplot ¤Ï¥Ð¥¤¥Ê¥ê¥Õ ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë·Á¼°¤Îɸ½àŪ¤Ê³ÈÄ¥»Ò¤Ç¤¢¤ë¤«¤ò¥Á¥§ ¥Ã¥¯¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É¥é¥¤¥ó¥¡¼¥ï¡¼¥É¤Ï¥Õ¥¡¥¤¥ë¤«¤éÆɤ߼è¤ëÀßÄê¤ò¾å½ñ¤¤¹¤ë¤Î¤Ë»È¤ï ¤ì¡¢¥Õ¥¡¥¤¥ë¤«¤éÆɤ߼è¤ëÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¾å½ñ¤¤·¤Þ¤¹¡£°Ê²¼»²¾È: set datafile binary (112.23.7)¡£
http://www.edfplus.info/specs
plot 'file.png' binary filetype=png
¤ò»È¤¦¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢¤¢¤é¤«¤¸¤á°Ê²¼¤Î¤è¤¦¤ËÀßÄꤷ¤Æ¡¢³ÈÄ¥»Ò¤«¤é¼«Æ° Ū¤Ë²èÁü·Á¼°¤ò¼«Æ°Åª¤Ëǧ¼±¤µ¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
set datafile binary filetype=auto
ÉÁ²è¥â¡¼¥É¤¬ plot ¤Î¾ì¹ç¡¢»ØÄê¤Ë¤Ï x ¤È y ¤Î 2 ¤Ä¤Îʸ»ú¤ò»È¤¦¤³¤È¤¬ ¤Ç¤¡¢splot ¤ËÂФ·¤Æ¤Ï x, y, z ¤Î 3 ¤Ä¤Îʸ»ú¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
³ä¤êÅö¤Æ¤Ë´Ø¤·¤Æ¤Ï¡¢ÅÀ/Àþ/Ì̤«¤éľ¸òºÂɸÊý¸þ¤Ø¤Î¤ß¤ËÀ©¸Â¤¹¤ëÆâÉô»ö¾ð¤Ï Ê̤ˤ¢¤ê¤Þ¤»¤ó¡£¤³¤ÎÍýͳ¤Ç¡¢±ßÃìºÂɸ¤Ø¤Î³ä¤êÅö¤Æ¤Î¤¿¤á¤Î»ØÄê»Ò¤âÍÑ°Õ¤µ ¤ì¤Æ¤¤¤Æ¡¢¤½¤ì¤é¤Ïľ¸òºÂɸ¤Î x, y, z ¤ËÎà»÷¤·¤¿·Á¤Ç t (³ÑÅÙ), r, z ¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
plot 'imagefile' binary filetype=auto flipx rotate=90deg with rgbimage
°Ê²¼¤Î¥¡¼¥ï¡¼¥É¤âºÂɸ¤ÎÀ¸À®»þ¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢°Ê²¼¤Î¤â¤Î¤Ï matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤â»È¤ï¤ì¤Þ¤¹¡£
ÇÛÎó¤ò¥°¥é¥Õ¤Î¤½¤Î¾¤Î¾ì½ê¤ËÇÛÃÖ¤·¤¿¤¤¾ì¹ç¡¢origin ¥¡¼¥ï¡¼¥É¤Ç»ØÄê ¤·¤¿¾ì½ê¤Ë gnuplot ¤ÏÇÛÎó¤Îº¸²¼¤ÎÅÀ¤ò¹ç¤ï¤»¤Þ¤¹¡£¤½¤Î»ØÄê¤Ï¡¢plot ¤Ç ¤Ï 2 ¤Ä¤ÎºÂɸ¤ÎÁÈ¡¢splot ¤Ç¤Ï 3 ¤Ä¤ÎºÂɸ¤ÎÁȤò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Î㤨 ¤Ð origin=(100,100):(100,200) ¤Ï¡¢°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë 2 ¤Ä¤Î¥Ç ¡¼¥¿¤ËÂФ¹¤ë»ØÄê¤Ç¡¢2 ¼¡¸µ¤ÎÉÁ²è¤ËÂФ¹¤ë»ØÄê¤Ç¤¹¡£2 ¤ÄÌܤÎÎã¤È¤·¤Æ origin=(0,0,3.5) ¤ò¤¢¤²¤ë¤È¡¢¤³¤ì¤Ï 3 ¼¡¸µÉÁ²èÍѤλØÄê¤Ç¤¹¡£
¥¡¼¥ï¡¼¥É rotate ¤Ï, plot, splot ¤ÎξÊý¤Ç¡¢2 ¼¡¸µÌ̤ËÂФ·¤ÆŬÍÑ ¤µ¤ì¤Þ¤¹¡£²óž¤ÏºÂɸʿÌ̤ÎÀµ¤Î³ÑÅ٤˴ؤ·¤Æ¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£
³ÑÅ٤ϡ¢¥é¥¸¥¢¥óñ°Ì¤Ç¤¹¤¬¡¢pi ¤ä degrees ¤ÎÇÜ¿ô¤È¤·¤Æ¤Î¥é¥¸¥¢¥ó¤Ç¤âɽ ¸½¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢rotate=1.5708, rotate=0.5pi, rotate=90deg ¤Ï ¤¹¤Ù¤ÆƱ¤¸°ÕÌ£¤Ç¤¹¡£
origin ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢²óž¤ÏÊ¿¹Ô°ÜÆ°¤ÎÁ°¤Ëº¸²¼¤ÎÅÀ¤òÃæ¿´¤Ë¤·¤Æ¹Ô ¤Ê¤ï¤ì¤Þ¤¹¡£¤½¤ì°Ê³°¤Ç¤Ï²óž¤ÏÇÛÎó¤ÎÃæ¿´ (center) ¤Ë´Ø¤·¤Æ¹Ô¤Ê¤ï¤ì¤Þ ¤¹¡£
¤Þ¤ººÇ½é¤Ë 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 ¼¡¸µ¥Ç¡¼¥¿¤È¸«¤Ê¤µ¤ì¤Þ¤¹)¡£
½ñ¼°:
plot '<file_name>' {binary <binary list>} {{nonuniform|sparse} matrix} {index <index list> | index "<name>"} {every <every list>} {skip <number-of-lines>} {using <using list>} {convexhull} {concavehull} {smooth <option>} {bins <options>} {mask} {volatile} {zsort} {noautoscale}
½¤Àµ»Ò¤Î binary, index, every, skip, using, smooth, bins, mask, convexhull, concavehull zsort ¤ò¤½¤ì¤¾¤ì¤Ëʬ¤±¤ÆÀâÌÀ¤·¤Þ ¤¹¡£´Êñ¤Ë¸À¤¦¤È°Ê²¼¤ÎÄ̤ꡣ
splot ¤â¤è¤¯»÷¤¿½ñ¼°¤ò»È¤¤¤Þ¤¹¤¬¡¢bins ¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤·¡¢ Ê¿³ê²½¤Ë¤Ä¤¤¤Æ¤Ï¡¢2,3 ¤Î smooth ¥ª¥×¥·¥ç¥ó¤·¤«¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£
¥¡¼¥ï¡¼¥É noautoscale ¤Ï¡¢¼«Æ°Åª¤Ë¼´¤ÎÈϰϤ¬·èÄꤵ¤ì¤ëµ¡Ç½¤¬Í¸ú¤Ç ¤¢¤ë¾ì¹ç¤Ë¡¢¤³¤ÎÉÁ²è¤ò¹½À®¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤½¤ì¤ò̵»ë¤µ¤»¤ë (¼« Æ°½Ì¼Üµ¡Ç½¤Î·×»»Âоݤ«¤é³°¤¹) ¤è¤¦¤Ë¤·¤Þ¤¹¡£
¥Æ¥¥¹¥È¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë:
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¶õ¤Ç¤Ê¤¤³Æ¹Ô¤Ï¡¢°ì¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤òµ½Ò¤·¤Þ¤¹¤¬¡¢# ¤Ç»Ï ¤Þ¤ë¹Ô¤ÏÎã³°¤Ç¡¢¤³¤ì¤Ï¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì̵»ë¤µ¤ì¤Þ¤¹¡£
ÉÁ²è¥¹¥¿¥¤¥ë¤È»ØÄꤷ¤¿¥ª¥×¥·¥ç¥ó¤Ë°Í¸¤·¡¢³Æ¹Ô¤«¤é 1 ¤Ä°Ê¾å 8 ¸Ä°Ê²¼¤Î ÃͤòÆɤ߹þ¤ß¡¢Ã±°ì¤Î¥Ç¡¼¥¿ÅÀ¤Ë´ØÏ¢ÉÕ¤±¤Þ¤¹¡£°Ê²¼»²¾È: using (99.3.11)¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Îñ°ì¹ÔÃæ¤Î¸Ä¡¹¤ÎÃͤϡ¢¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (°ì¤Ä¤Þ¤¿¤ÏÊ£¿ô ¤Î¶õÇò¤«¥¿¥Ö) ¤«¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É set datafile ¤Ç»ØÄꤷ¤¿ÆÃÊ̤ʥե£¡¼ ¥ë¥É¶èÀÚ¤êʸ»ú¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Õ¥£¡¼¥ë¥ÉÁ´ÂΤ¬Æó½Å°úÍÑ Éä¤Ç°Ï¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤Þ¤¿¤Ï¥Õ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»ú¤ê¤¬¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹°Ê ³°¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤Î¥Õ¥£¡¼¥ë¥É¤¬¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¤ò´Þ¤à¤³¤È¤¬²Äǽ ¤Ç¤¹¡£Æó½Å°úÍÑÉäÆâ¤Î¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¤ÏÎó¿ô¤Î´ªÄê¤ÎºÝ¤Ë¤Ï̵»ë¤µ¤ì¤ë¤Î¤Ç¡¢ ¼¡¤Î¥Ç¡¼¥¿¹Ô¤Ï 3 Îó¤È¸«¤Ê¤µ¤ì¤Þ¤¹:
1.0 "second column" 3.0
¥Ç¡¼¥¿¤Ï¡¢»Ø¿ôÉô¤Ë e, E ¤Îʸ»ú¤ò¤Ä¤±¤¿»Ø¿ôɽµ¤Ç½ñ¤«¤ì¤Æ¤¤¤Æ¤â¹½¤¤¤Þ¤» ¤ó¡£¥³¥Þ¥ó¥É set datafile fortran ¤¬Í¸ú¤Ê¾ì¹ç¤Ï¡¢fortran ¤Î»Ø¿ô»ØÄê »Ò d, D, q, Q ¤â»È¤¨¤Þ¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¶õ¹Ô¤Ï½ÅÍפǤ¹¡£ 1 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢plot ¤ËÉÔϢ³¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ö¥é¥ó¥¯¹Ô¤Ë¤è¤Ã¤Æ¶è ÀÚ¤é¤ì¤¿ÅÀ¤ÏÀþ¤Ç·ë¤Ð¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó (line style ¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¾ì ¹ç¤Ë¤Ï)¡£ 2 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢ÊÌ¡¹¤Î¥Ç¡¼¥¿½¸¹ç´Ö¤Î¶èÀÚ¤ê¤ò¼¨¤·¤Þ¤¹¡£°Ê²¼»²¾È: index (99.3.6)¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð (°Ê²¼»²¾È: set autoscale (112.3))¡¢¼´¤ÏÁ´¤Æ¤Î ¥Ç¡¼¥¿¥Ý¥¤¥ó¥È¤ò´Þ¤à¤è¤¦¤Ë¼«Æ°Åª¤Ë°ú¤¿¤Ð¤µ¤ì¤Æ¡¢ÌÜÀ¹¤ê¤¬½ñ¤«¤ì¤ë¾õÂÖ ¤Ê¤é¤ÐÁ´¤Æ¤ÎÌÜÀ¹¤ê¤¬¥Þ¡¼¥¯¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¤Ä¤Î·ë²Ì¤ò°ú¤µ¯¤³¤·¤Þ¤¹: i) splot ¤Ç¤Ï¡¢¶ÊÌ̤γѤÏÄìÌ̤γѤ˰ìÃפ·¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³ ¤Î¾ì¹ç¡¢½Ä¤ÎÀþ¤Ï½ñ¤«¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£ii) 2 ¼ïÎà¤Î¼´¤Ç¤Î¡¢Æ±¤¸ x ¤ÎÈϰϤΥǡ¼¥¿¤Îɽ¼¨¤ÎºÝ¡¢¤â¤· x2 ¤Î¼´¤ËÂФ¹¤ëÌÜÀ¹¤ê¤¬½ñ¤«¤ì¤Æ¤¤¤Ê¤¤¾ì ¹ç¤Ï¡¢x ºÂɸ¤¬¤¢¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï x ¼´ (x1) ¤ÏÁ´¤Æ¤ÎÌÜ À¹¤ê¤Ë¤Þ¤Ç¼«Æ°Åª¤Ë°ú¤±ä¤Ð¤µ¤ì¤ë¤Î¤ËÂФ·¡¢x2 ¼´¤Ï¤½¤¦¤Ç¤Ï¤Ê¤¤¤«¤é¤Ç¤¹¡£ ¼¡¤ÎÎã¤Ç¤½¤ÎÌäÂê¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
reset; plot '-', '-' axes x2y1 1 1 19 19 e 1 1 19 19 e
¤³¤ì¤òÈò¤±¤ë¤Ë¤Ï¡¢set autoscale ¥³¥Þ¥ó¥É¤« set [axis]range ¥³¥Þ¥ó ¥É¤Î noextend ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê¤Î¹ï ¤ß¤òÆþ¤ì¤ë¤è¤¦¤Ê¼´¤ÎÈϰϤγÈÄ¥µ¡Ç½¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
¥é¥Ù¥ë¤ÎºÂɸ¤Èʸ»úÎó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹ (°Ê²¼ »²¾È: labels (54))¡£
set datafile separator {whitespace | tab | comma | "chars"}
"csv" ¤Ï¡¢ËÜÍè¤Ï¥«¥ó¥Þ¶èÀÚ¤ê ("comma-separated values") ¤Îά¸ì¤Ç¤¹¤¬¡¢ ¤³¤³¤Ç¤Î¡Öcsv ¥Õ¥¡¥¤¥ë¡× ("csv file") ¤È¤¤¤¦¸ÀÍդϡ¢¤½¤ÎÃæ¤Î¥Ç¡¼¥¿¥Õ¥£ ¡¼¥ë¥É¤¬¡¢É¬¤º¤·¤â¥«¥ó¥Þ¤Ç¤¢¤ëɬÍפϤʤ¤ÆÃÄê¤Îʸ»ú¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ë¤è¤¦ ¤Ê¥Õ¥¡¥¤¥ë¤È¤·¤Þ¤¹¡£csv ¥Õ¥¡¥¤¥ë¤«¤é¥Ç¡¼¥¿¤òÆɤि¤á¤Ë¤Ï¡¢gnuplot ¤Ë¥Õ ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»ú¤¬¤Ê¤ó¤Ç¤¢¤ë¤«¤ò¼¨¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢¥Õ¥£¡¼¥ë ¥É¶èÀÚ¤êʸ»ú¤È¤·¤Æ¥»¥ß¥³¥í¥ó¤ò»È¤¦¥Õ¥¡¥¤¥ë¤«¤éÆɤà¾ì¹ç¤Ï:
set datafile separator ";"
°Ê²¼»²¾È: set datafile separator (112.23.5)¡£¤³¤ì¤Ï¡¢ÆþÎÏÍѤΥե¡¥¤¥ë¤Ë¤Î¤ßŬÍÑ ¤µ¤ì¤Þ¤¹¡£½ÐÎϤȤ·¤Æ CSV ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¤Ë¤Ï¡¢set table ¤Ë¥ª¥×¥· ¥ç¥ó separator ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤Ï¡¢¡Ö¥Ý¥¤¥ó¥È¡×¤Ï 1 ¤Ä¤Î¹Ô¡¢¥Ç¡¼¥¿¤Î¡Ö¥Ö¥í¥Ã¥¯¡× ¤Ï¡¢Á°¸å¤Î¥Ö¥í¥Ã¥¯¤È¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤ëϢ³¤·¤¿¹Ô¤Î¤Þ¤È¤Þ¤ê¤ò°ÕÌ£¤¹¤ë¤³¤È ¤È¤·¤Þ¤¹¡£
matrix ¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢¡Ö¥Ö¥í¥Ã¥¯¡×¤È¡Ö¥Ý¥¤¥ó¥È¡×¤Ï¡¢¤½¤ì¤¾¤ì¡Ö¹Ô¡× ¤È¡ÖÎó¡×¤ËÂбþ¤·¤Þ¤¹¡£°Ê²¼»²¾È: matrix every (115.1.1.4)¡£
½ñ¼°:
plot 'file' every {<¥Ý¥¤¥ó¥ÈÁýʬ>} {:{<¥Ö¥í¥Ã¥¯Áýʬ>} {:{<³«»Ï¥Ý¥¤¥ó¥È>} {:{<³«»Ï¥Ö¥í¥Ã¥¯>} {:{<½ªÎ»¥Ý¥¤¥ó¥È>} {:<½ªÎ»¥Ö¥í¥Ã¥¯>}}}}}
ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¥Ý¥¤¥ó¥È¤Ï¡¢<³«»Ï¥Ý¥¤¥ó¥È> ¤«¤é <½ªÎ»¥Ý¥¤¥ó¥È> ¤Þ¤Ç <¥Ý ¥¤¥ó¥ÈÁýʬ> ¤ÎÁý²Ã¤ÇÁª¤Ó¡¢¥Ö¥í¥Ã¥¯¤Ï <³«»Ï¥Ö¥í¥Ã¥¯> ¤«¤é <½ªÎ»¥Ö¥í¥Ã¥¯> ¤Þ¤Ç <¥Ö¥í¥Ã¥¯Áýʬ> ¤ÎÁý²Ã¤ÇÁª¤Ó¤Þ¤¹¡£
³Æ¥Ö¥í¥Ã¥¯¤ÎºÇ½é¤Î¥Ç¡¼¥¿¤Ï¡¢¥Õ¥¡¥¤¥ëÃæ¤ÎºÇ½é¤Î¥Ö¥í¥Ã¥¯¤ÈƱ¤¸¤è¤¦¤Ë¡¢ ¡Ö0 È֡פȿô¤¨¤Þ¤¹¡£
¥×¥í¥Ã¥È¤Ç¤¤Ê¤¤¾ðÊó¤ò´Þ¤à¹Ô¤â¥«¥¦¥ó¥È¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£
¤¤¤¯¤Ä¤«¤Î¿ô»ú¤Ï¾Êά¤Ç¤¤Þ¤¹; Áýʬ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¡¢³«»Ï¤ÎÃͤϺǽé¤Î ¥Ý¥¤¥ó¥È¤«ºÇ½é¤Î¥Ö¥í¥Ã¥¯¡¢¤½¤·¤Æ½ªÎ»¤ÎÃͤϺǸå¤Î¥Ý¥¤¥ó¥È¤«ºÇ¸å¤Î¥Ö¥í¥Ã ¥¯¤ËÀßÄꤷ¤Þ¤¹¡£every ¤Î¥ª¥×¥·¥ç¥ó¤¬ ':' ¤Ç½ª¤ï¤ë¤Î¤Ïµö¤µ¤ì¤Æ¤¤¤Þ¤» ¤ó¡£every ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢Á´¤Æ¤Î¹Ô¤ÎÁ´¤Æ¤Î¥Ý¥¤¥ó¥È¤ò¥×¥í¥Ã¥È¤·¤Þ¤¹¡£
Îã:
every :::3::3 # 4 ÈÖÌܤΥ֥í¥Ã¥¯¤À¤±Áª¤Ó¤Þ¤¹ (0 ÈÖ¤¬ºÇ½é) every :::::9 # ºÇ½é¤Î 10 ¥Ö¥í¥Ã¥¯¤òÁª¤Ó¤Þ¤¹ every 2:2 # 1 ¤Ä¤ª¤¤Î¥Ö¥í¥Ã¥¯¤Ç 1 ¤Ä¤ª¤¤Î¥Ý¥¤¥ó¥È¤òÁª¤Ó # ¤Þ¤¹ every ::5::15 # ¤½¤ì¤¾¤ì¤Î¥Ö¥í¥Ã¥¯¤Ç¥Ý¥¤¥ó¥È 5 ¤«¤é 15 ¤Þ¤Ç¤ò # Áª¤Ó¤Þ¤¹
°Ê²¼¤â»²¾È ñ½ã¤Ê plot ¥Ç¥â (simple.dem)
, ÈóÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Î splot ¥Ç¥â
, ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Î splot ¥Ç¥â
¡£
pop(x) = 103*exp((1965-x)/10) set xrange [1960:1990] plot 'population.dat', pop(x)
¥Õ¥¡¥¤¥ë "population.dat" ¤Ï¼¡¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤Ç¤¹¡£
# Gnu population in Antarctica since 1965 1965 103 1970 55 1975 34 1980 24 1985 10
# 2 ¤Ä¤Î float ¤ÎÃͤòÁªÂò¤· (2 ¤ÄÌܤÎÃͤÏ̵°ÕÌ£)¡¢°ìÊý¤òÆɤ߼Τơ¢ # °ì¤Ä¤ª¤¤Î float Ãͤò̵¸Â¤ËŤ¯Â³¤¯ 1 ¼¡¸µ¥Ç¡¼¥¿¤È¤·¤Æ»ÈÍÑ plot '<file_name>' binary format="%float%*float" using 1:2 with lines
# ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éºÂɸ¤òÀ¸À®¤¹¤ë¤Î¤ËɬÍפʾðÊó¤ò¤¹¤Ù¤Æ¤½¤Î¥Ø¥Ã # ¥À¤Ë´Þ¤ó¤Ç¤¤¤ë EDF ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç plot '<file_name>' binary filetype=edf with image plot '<file_name>.edf' binary filetype=auto with image
# 3 ¤Ä¤ÎÉä¹æ¤Ê¤·Ê¸»ú·¿À°¿ôÃÍ (unsigned char) ¤òÀ¸¤Î RGB ²èÁü¤Î¿§ # À®Ê¬¤È¤·¤ÆÁªÂò¤·¡¢y Êý¸þ¤Ïȿž¤µ¤»²èÁü¤ÎÊý¸þ¤òºÂɸʿÌ̾å¤ÇÊѹ¹ # ¤¹¤ë (º¸¾å¤¬¸¶ÅÀ¤Ë¤Ê¤ë¤è¤¦¤Ë)¡£¥Ô¥¯¥»¥ë¤Î´Ö³Ö¤â»ØÄꤷ¡¢¥Õ¥¡¥¤ # ¥ë¤Ë¤Ï 2 ¤Ä¤Î²èÁü¤¬´Þ¤Þ¤ì¤Æ¤¤¤Æ¡¢¤½¤Î¤¦¤Á°ì¤Ä¤Ï origin ¤ÇÊ¿¹Ô # °ÜÆ°¤¹¤ë¡£ plot '<file_name>' binary array=(512,1024):(1024,512) format='%uchar' \ dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage
# 4 ¤Ä¤ÎÊ̤Υǡ¼¥¿¤«¤é¤Ê¤ê¡¢ºÂɸ¾ðÊó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤Æ¤¤ # ¤ë¡£¥Õ¥¡¥¤¥ë¤Ï gnuplot ¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤È¤Ï°Û¤Ê¤ë¥¨¥ó # ¥Ç¥£¥¢¥ó¤ÇÀ¸À®¤µ¤ì¤Æ¤¤¤ë¡£ splot '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3
# Ʊ¤¸ÆþÎÏ¥Õ¥¡¥¤¥ë¤Ç¡¢º£²ó¤Ï 1 ÈÖÌÜ¤È 3 ÈÖÌܤΥ쥳¡¼¥É¤ò¥¹¥¥Ã¥× splot '<file_name>' binary record=30:26 skip=360:348 endian=swap u 1:2:3
°Ê²¼»²¾È: binary matrix (115.1.1)¡£
plot 'DATA' using <XCOL> {:<YCOL>} bins{=<NBINS>} {binrange [<LOW>:<HIGH>]} {binwidth=<width>} {binvalue={sum|avg}}
plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë¥ª¥×¥·¥ç¥ó bins ¤Ï¡¢ºÇ½é¤Ë¸µ¤Î¥Ç¡¼¥¿¤ò¡¢x ¼´ ¾å¤ÇÅù¤·¤¤Éý¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤Î³¬µé (¥Ó¥ó) ¤Ë³ä¤êÅö¤Æ¡¢¤½¤·¤Æ³¬µéËè¤Ë°ì¤Ä ¤ÎÃͤΤߤòÉÁ²è¤·¤Þ¤¹¡£³¬µé¤Î¿ô¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤϡ¢set samples ¤Ç·èÄꤷ ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï plot ¥³¥Þ¥ó¥É¤Ç¥Ó¥ó¤Î¿ô¤òÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤ ¤Þ¤¹¡£
binrange ¤ò»ØÄꤷ¤Ê¤¤¤È¡¢ÈÏ°Ï¤Ï 'DATA' Æâ¤ÎÃͤÎξü¤ò¼è¤ê¤Þ¤¹¡£
³¬µéÉý¤Ï¡¢»ØÄꤷ¤¿ÈϰϤȳ¬µé¤Î¿ô¤«¤é¼«Æ°Åª¤Ë·×»»¤·¡¢³ÆÅÀ¤ò 0 ¤«¤é NBINS-1 ¤Þ¤Ç¤Î³¬µé¤Ë³ä¤êÅö¤Æ¤Þ¤¹:
BINWIDTH = (HIGH - LOW) / (NBINS-1) xmin = LOW - BINWIDTH/2 xmax = HIGH + BINWIDTH/2 first bin holds points with (xmin <= x < xmin + BINWIDTH) ºÇ½é¤Î³¬µé¤Ï (xmin <= x < xmin + BINWIDTH) ¤ÎÈϰϤÎÅÀ¤òÊÝ»ý ºÇ¸å¤Î³¬µé¤Ï (xmax-BINWIDTH <= x < xman) ¤ÎÈϰϤÎÅÀ¤òÊÝ»ý ³ÆÅÀ¤Ï i = floor(NBINS * (x-xmin)/(xmax-xmin)) È֤㬵é¤Ë³ä¤êÅö¤Æ
¤½¤ì¤È¤ÏÊ̤ˡ¢¸ÇÄêÉý¤Î³¬µé¤ò»ØÄꤹ¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤½¤Î¾ì¹ç¡¢³¬µé¤Î¿ô (nbins) ¤Ï¡¢ÅÀ¤ÎÈÏ°ÏÁ´ÂΤˤ錄¤ëºÇ¾®¤Î³¬µé¤Î¿ô¤È¤Ê¤ê¤Þ¤¹¡£
³¬µé¤Î½ÐÎϤϡ¢¤½¤ÎÃæÅÀ¤ÇÉÁ²è¡¢¤Þ¤¿¤Ïɽ¤Ë¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð gnuplot ¤¬¾å ¤Î¤è¤¦¤Ë³¬µé¤ÎÉý¤ò·×»»¤¹¤ë¾ì¹ç¡¢ºÇ½é¤Î³¬µé¤Î x ºÂɸ¤Î½ÐÎÏ¤Ï x=LOW ¤Ç¤¢ ¤ê¡¢x=xmin ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
using Ì¿Îá¤Ç°ì¤Ä¤ÎÎó¤Î¤ß¤ò»ØÄꤷ¤¿¾ì¹ç¡¢³Æ¥Ç¡¼¥¿ÅÀ¤Ï¡¢¤½¤Î x ºÂɸÃÍ¤Ë ÂФ¹¤ë³¬µé¤Î¹ç·×ÃÍ¤Ë 1 ¤À¤±´óÍ¿¤·¤Þ¤¹¡£2 ÎóÌܤò»ØÄꤹ¤ë¤È¡¢¤½¤Î³¬µé¤Î ¹ç·×ÃÍ¤Ë¤Ï 2 ÎóÌܤÎÃͤ¬Äɲ䵤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°Ê²¼¤Î 2 ¤Ä¤Î plot ¥³¥Þ¥ó ¥É¤ÏƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹:
plot 'DATA" using N bins=20 set samples 20 plot 'DATA' using (column(N)):(1)
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢³Æ³¬µé¤ËÂФ·¤ÆÉÁ²è¤µ¤ì¤ë y ¤ÎÃͤϡ¢¤½¤Î³¬µéÆâ¤Î¤¹¤Ù¤Æ ¤ÎÅÀ¤Ë´Ø¤¹¤ë y ¤ÎÃͤÎϤˤʤê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥ª¥×¥·¥ç¥ó binvalue=sum ¤ËÂбþ¤·¤Þ¤¹¡£¤³¤ì¤ËÂФ·¤Æ¡¢binvalue=avg ¤Ç¤Ï¤½¤Î³¬µéÆâ¤Î¤¹¤Ù¤Æ¤ÎÅÀ ¤ËÂФ¹¤ë y ¤ÎÃͤÎÊ¿¶Ñ¤òÉÁ²è¤·¤Þ¤¹¡£
´ØÏ¢¤¹¤ë½èÍý¥ª¥×¥·¥ç¥ó¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: smooth frequency (99.3.8.10), smooth kdensity (99.3.8.14)¡£
convexhull ¤ÏÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¥Õ¥£¥ë¥¿¡¼¥¡¼¥ï¡¼¥É ¤È¤·¤ÆñÆȤǡ¢¤Þ¤¿¤Ï smooth path ¤ä expand <increment> ¤È¤ÎÁÈ¤ß¹ç ¤ï¤»¤È¤·¤Æ»È¤¤¤Þ¤¹¡£
plot FOO using x:y convexhull plot FOO using x:y convexhull smooth path plot FOO using x:y convexhull expand <increment> {smooth path}
¥¡¼¥ï¡¼¥É smooth ¤ò¤Ä¤±¤ë¤È¡¢¤½¤ÎĺÅÀ¤Ï³ê¤é¤«¤Ê¶ÊÀþ¤òÀ¸À®¤¹¤ë¤¿¤á¤Î ¥¬¥¤¥ÉÅÀ¤È¤·¤Æ»È¤¤¤Þ¤¹ (°Ê²¼»²¾È: smooth path (99.3.8.6))¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î Ê¿³ê²½¶ÊÀþ¤Ï¥¬¥¤¥ÉÅÀ¤òÄ̤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤Î¥¡¼¥ï¡¼¥É expand ¤ÈÁýʬÃÍ (<increment>) ¤Ï¡¢ÆÌÊñ¤ÎÊդΠÀþʬ¤òÁýʬÃͤε÷Î¥¤À¤±ÆâÉô¤«¤é±ó¤¶¤±¤Þ¤¹¡£¤½¤·¤Æ°ÜÆ°¤·¤¿Àþʬ¤òα¤á·Ñ¤® (mitered) ¤Ç¤Ä¤Ê¤®¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸µ¡¹¤ÎÆÌÊñ¤Î³ÆĺÅÀ¤ò 2 ¤Ä¤ÎĺÅÀ¤ÇÃÖ¤ ÊѤ¨¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÎÙÀܤ¹¤ëÊդȤδ֤˷ä´Ö¤¬¤Ç¤¤Æ¤·¤Þ¤¦¤« ¤é¤Ç¤¹¡£
»î¸³Ãʳ¬ (¼ÂÁõ¤Î¾ÜºÙ¤Ï¾Íè¤Î¥ê¥ê¡¼¥¹¤ÇÊѹ¹¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó)¡£¤¢¤Ê¤¿ ¤Î gnuplot ¤¬ –enable-chi-shapes ÉÕ¤¤Ç¥Ó¥ë¥É¤µ¤ì¤¿¾ì¹ç¤Î¤ßÍøÍѲÄǽ¡£
±úÊñ (concavehull) ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢ÆþÎϥǡ¼¥¿ ÅÀ¤Î¶³¦Â¿³Ñ·Á¡ÖÊÄÊñ¡×(hull) ¤ò¸«¤Ä¤±¤ë¥Õ¥£¥ë¥¿¤Î°ì¤Ä¤Ç¡¢¤³¤ì¤Ï¡¢¸µ¤Î ÅÀ½¸¹ç¤ò¡¢¤³¤Î¿³Ñ·Á¤Î¼þ¾å¤Î½ç½ø¤Å¤±¤é¤ì¤¿Éôʬ½¸¹ç¤ÇÃÖ¤´¹¤¨¤Þ¤¹¡£ÆÌÊñ ¤ÏǤ°Õ¤ÎÅÀ½¸¹ç¤ËÂФ·¤Æ°ì°Õ¤Ë·èÄꤷ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¤½¤ì¤È¤Ï°ã¤¤¡¢Ê£¿ô¤Î±ú Êñ¤¬¤¢¤ê¤¨¤Þ¤¹¡£¤½¤³¤«¤é°ì¤Ä¤Î±úÊñ¤òÁªÂò¤¹¤ë»ÅÁȤߤϤµ¤Þ¤¶¤Þ¤¢¤ê¤Þ¤¹¤¬¡¢ gnuplot ¤Ï Duckham ¤é (2008; Patttern Recognition 41:3224-3236) ¤Ë¤è¤Ã ¤ÆÄêµÁ¤µ¤ì¤¿¦Ö-·Á¾õ¤ÎÊÄÊñ¤òÀ¸À®¤·¤Þ¤¹¡£
¸½ºß¤Î¥°¥é¥Õ¤Ç»È¤Ã¤¿¡¢¥æ¡¼¥¶ÄêµÁ¤« gnuplot ¤¬ÁªÂò¤·¤¿ chi_length ¤Î Ãͤϡ¢ÊÑ¿ô GPVAL_CHI_LENGTH ¤ËÊݸ¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¥¡¼¥ï¡¼¥É expand ¤ÈÁýʬÃÍ (<increment>) ¤Ï¡¢ÊÄÊñ¤Î³ÆÊÕ¤ò ¸ÇÄꤷ¤¿µ÷Î¥¤À¤±ÆâÉô¤«¤é±ó¤¶¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸µ¤Î¤¹¤Ù¤Æ¤ÎÅÀ¤Î³°Â¦¤Ë¤¢¤ë ÊĶÊÀþ¤ò¹½À®¤¹¤ë¡¢¿·¤¿¤ÊÅÀ½¸¹ç¤òÀ¸À®¤·¤Þ¤¹¡£¤½¤ì¤Ï¡¢smooth path ¤ÈÁÈ ¤ß¹ç¤ï¤»¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
plot FOO using 1:2:3 mask with {pm3d|image}
¥Þ¥¹¥¯¤ò°ìÅÙÄêµÁ¤¹¤ë¤È¡¢image ÉÁ²è¡¢¤Þ¤¿¤Ï pm3d ÉÁ²è¤«¤éÅÀ¤ÎÉôʬ½¸¹ç¤ò ÁªÂò¤¹¤ë¤Î¤Ë¤½¤ì¤òÍøÍѤǤ¤Þ¤¹¡£ °Ê²¼»²¾È: masking (57)¡£
¥Õ¥£¥ë¥¿ sharpen ¤Ï¡¢´Ø¿ôÉÁ²è¤Ë¤Î¤ßŬÍѤ·¤Þ¤¹¡£¤½¤ì¤ÏÉÁ²è¤¹¤ë´Ø¿ô¤Î ¶Ë¤òõ¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢¤½¤Î¥°¥é¥Õ¤ò¹½À®¤¹¤ëÀþʬÍ×ÁǤòºî¤ëɸËÜÅÀ¤Î¤¤¤º ¤ì¤«¤Î x Ãͤξå¤ËÀµ¤·¤¯¾è¤Ã¤Æ¤¤¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢ËÜÅö¤Î¶Ë¤òÆó ʬˡ¤Ë¤è¤Ã¤Æ¡¢¸«¤Ä¤±¤½¤·¤Æ¤½¤ì¤òɸËÜÅÀ¤Î½¸¹ç¤ËÄɲä·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ô¡¼ ¥¯¤Î±Ô¤¤Àèü¤ÎÀÚ¤ê¼Î¤Æ¤ò¸º¤é¤·¤Þ¤¹¤¬¡¢ÁƤ¤É¸Ëܲ½¤Ç¤Ï¤½¤ì¤ò´°Á´¤Ë¤Ï¼è¤ê ½ü¤±¤Þ¤»¤ó¡£
Îã:
set samples 150 set xrange [-8:8] plot abs(sqrt(sin(x))) sharpen
¥¡¼¥ï¡¼¥É "sharpen" ¤Ê¤·¤Ç¤Ï¡¢·ë²Ì¤Î¥°¥é¥Õ¤ÏϢ³¶ÊÀþ¤Ç¡¢¦ÐËè¤Ë¶Ë¾®¤È ¤Ê¤ê¡¢¤½¤Î¶Ë¾®ÃÍ¤Ï 0 ¤Ë㤹¤ë¤Ù¤¤â¤Î¤Ç¤¹¤¬¡¢¿Í°ÙŪ¤ËÀÚ¤ê¼Î¤Æ¤é¤ì¡¢¤½ ¤Î y ¤Î¶Ë¾®Ãͤϸ«¤¿ÌÜ¤Ë¤Ï 0.02 ¤«¤é 0.20 ¤Î´Ö¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥¡¼¥ï¡¼¥É "sharpen" ¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢¤½¤Î´Ø¿ô¤ÎÀµ¤·¤¤¸«¤¿ÌܤǤ¢¤ë¡¢¼þ ´üŪ¤Ç±Ô¤¯ y=0 ¤Ë㤹¤ë¶Ë¾®Ãͤò»ý¤Ä¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£
plot FOO using x:y:z:color zsort with points lc palette
ÆþÎϥǡ¼¥¿¤ò¡¢Â¾¤Î smooth ¥ª¥×¥·¥ç¥ó¤òŬÍѤ¹¤ëÁ°¤ËÆþÎϸåľ¤Á¤Ë¥½¡¼¥È¤· ¤Þ¤¹¡£Â¾¤Î smooth ¥ª¥×¥·¥ç¥ó¤¬¥Ç¡¼¥¿¤òºÆ¥½¡¼¥È¤·¤Æ¡¢zsort ¤Î¸ú²Ì¤¬¥° ¥é¥Õ¤Ë¤ÏÁ´¤¯¸½¤ì¤Ê¤¤¾ì¹ç¤â¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ z ¼´¤¬¼«Æ°½Ì¼Ü¤Ç¤Ê¤¤¾ì¹ç¡¢Èϰϳ°¤Î z ¤ÎÃͤÎÅÀ¤Ï¥Õ¥é¥°ÉÕ¤±¤µ¤ì¤Þ¤¹¤¬¡¢ ºï½ü¤Ï¤µ¤ì¤Þ¤»¤ó¡£
¤³¤Îµ¡Ç½¤Ï¡¢¤È¤Æ¤âËÄÂç¤ÊÅÀ¿ô¥Ç¡¼¥¿¤Î 2 ¼¡¸µ¤Î»¶ÉÛ¿Þ¤Îɽ¼¨¤ò¡¢¹âÆÀÅÀ¤Î ʬÉÛ¤¬¤ï¤«¤ë·Á¤Ç¤¢¤ê³¤±¤ë¤è¤¦¤Ë¥Õ¥£¥ë¥¿¤¹¤ë¤è¤¦¤Ê»È¤¤Êý¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ ¤¹¡£z ÊݾÚÃͤˤè¤ë¥½¡¼¥È¤Ë¤è¤ê¡¢¹â¤¤ z Ãͤò»ý¤Ä¤è¤¦¤ÊÅÀ¤¬¡¢Ä㤤 z ÃͤΠÅÀ¤Çʤ¤¤±£¤µ¤ì¤ë¤³¤È¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
½ñ¼°:
plot 'file' index { <m>{:<n>{:<p>}} | "<name>" }
¥Ç¡¼¥¿½¸¹ç¤Ï 2 ¹Ô¤Î¶õÇò¤ÇʬΥ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£index <m> ¤Ï <m> ÈÖÌܤν¸ ¹ç¤À¤±¤òÁªÂò¤·¤Þ¤¹; index <m>:<n> ¤Ï <m> ¤«¤é <n> ¤Þ¤Ç¤Î¥Ç¡¼¥¿½¸¹ç¤Î ÁªÂò; index <m>:<n>:<p> ¤Ï¡¢<m>, <m>+<p>, <m>+2<p>, ¤Ê¤É¡¢<p> ¤ª¤¤Î ½¸¹ç¤òÁªÂò¤·¡¢½¸¹ç <n> ¤Ç½ªÎ»¤·¤Þ¤¹¡£C ¸À¸ì¤Îź»ú (index) ¤ÎÉÕ¤±Êý¤Ë½¾ ¤¤¡¢index 0 ¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¥Ç¡¼¥¿½¸¹ç¤ò°ÕÌ£¤·¤Þ¤¹¡£Â礤¹¤®¤ë index ¤Î»ØÄê¤Ë¤Ï¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£<p> ¤ò»ØÄꤷ¡¢<n> ¤ò¶õÍó ¤Ë¤·¤¿¾ì¹ç¡¢<p> Ëè¤Î¥Ç¡¼¥¿¤ò¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Þ¤ÇÆɤ߹þ¤ß¤Þ¤¹¡£index ¤ò »ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿Á´ÂΤòñ°ì¤Î¥Ç¡¼¥¿½¸¹ç¤È¤·¤ÆÉÁ²è¤·¤Þ ¤¹¡£
Îã:
plot 'file' index 4:5
¥Õ¥¡¥¤¥ë¤Î³ÆÅÀ¤ËÂФ·¤Æ¡¢¤½¤ì¤¬´Þ¤Þ¤ì¤ë¥Ç¡¼¥¿½¸¹ç¤Î index Ãͤϡ¢µ¿»÷Îó column(-2) ¤ÇÍøÍѤǤ¤Þ¤¹¡£¤³¤ì¤Ï¡¢°Ê²¼¤Ë¸«¤ë¤è¤¦¤Ë¡¢¤½¤Î¥Õ¥¡¥¤¥ëÆ⠤θġ¹¤Î¥Ç¡¼¥¿½¸¹ç¤ò¶èÊ̤¹¤ëÊ̤ÎÊýË¡¤òÄ󶡤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÉÁ²èÍÑ¤Ë 1 ¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ÎÁªÂò¤·¤«¤·¤Ê¤¤¾ì¹ç¤Ï index ¥³¥Þ¥ó¥É¤è¤ê¤âÉԳ湥¤Ç¤¹ ¤¬¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿½¸¹ç¤Ë°Û¤Ê¤ë°À¤ò³ä¤êÅö¤Æ¤¿¤¤¾ì¹ç¤Ë¤Ï¤È¤Æ¤âÊØÍø¤Ç¤¹¡£ °Ê²¼»²¾È: pseudocolumns (99.3.11.3), lc variable (20.1.2)¡£
Îã:
plot 'file' using 1:(column(-2)==4 ? $2 : NaN) # ¤È¤Æ¤âÉԳ湥 plot 'file' using 1:2:(column(-2)) linecolor variable # ¤È¤Æ¤âÊØÍø !
index '<name>' ¤Ï¡¢¥Ç¡¼¥¿½¸¹ç¤ò̾Á° '<name>' ¤ÇÁªÂò¤·¤Þ¤¹¡£Ì¾Á°¤Ï¥³ ¥á¥ó¥È¹Ô¤Ë½ñ¤¤¤Æ¥Ç¡¼¥¿½¸¹ç¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¥³¥á¥ó¥Èʸ»ú¤È¤½¤ì¤Ë³¤¯¶õÇò ¤ò¤½¤Î¥³¥á¥ó¥È¹Ô¤«¤é¼è¤ê½ü¤¤¤Æ¡¢¤½¤Î·ë²Ì¤¬ <name> ¤«¤é»Ï¤Þ¤Ã¤Æ¤¤¤ì¤Ð¡¢ ¤½¤ì¤Ë³¤¯¥Ç¡¼¥¿½¸¹ç¤Ë <name> ¤È¤¤¤¦Ì¾Á°¤¬¤Ä¤±¤é¤ì¤Æ¡¢¤½¤ì¤ò»ØÄê¤Ç¤¤Þ ¤¹¡£
Îã:
plot 'file' index 'Population'
<name> ¤Ç»Ï¤Þ¤ë¤¹¤Ù¤Æ¤Î¥³¥á¥ó¥È¤¬¤½¤ì¤Ë³¤¯¥Ç¡¼¥¿½¸¹ç¤Î̾Á°¤Ë¤Ê¤ë¤³¤È ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ÌäÂê¤òÈò¤±¤ë¤¿¤á¤Ë¡¢Î㤨¤Ð '== Popolation ==' ¤ä '[Population]' ¤Ê¤É¤Î̿̾ˡ¤òÁªÂò¤¹¤ë¤ÈÊØÍø¤Ç¤·¤ç¤¦¡£
½ñ¼°:
smooth {unique | frequency | fnormal | cumulative | cnormal | csplines | acsplines | mcsplines bezier | sbezier | path | kdensity {bandwidth} {period} | unwrap}
¥ª¥×¥·¥ç¥ó unique, frequency, fnormal, cumulatie, cnormal ¤Ï¡¢ x ºÂɸ¤Ë´Ø¤·¤Æ¥Ç¡¼¥¿¤ò¥½¡¼¥È¤·¡¢¤½¤·¤Æ¤½¤Î x ¤ÎÃͤËÂФ¹¤ëʬÉۤΤ¢¤ë¼ï ¤ÎÍͻҤòÉÁ²è¤·¤Þ¤¹¡£
spline ·Ï¡¢Bezeir ·Ï¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥Ç¡¼¥¿¤Îü¤Èü¤ò·ë¤ÖϢ³¶ÊÀþ¤Î·¸¿ô ¤ò·èÄꤷ¤Þ¤¹¡£¤³¤Î¶ÊÀþ¤Ï´Ø¿ô¥°¥é¥Õ¤ÈƱ¤¸ÊýË¡¡¢¤¹¤Ê¤ï¤Á¤½¤ÎÃͤò x ºÂɸ ¤Ë±è¤¦Æ±¤¸Éý¤Î¶è´Ö¤´¤È¤ËÁª¤Ó (°Ê²¼»²¾È: set samples (112.83))¡¢¤½¤ì¤é¤ÎÅÀ¤ò Àþʬ¤Ç¤Ä¤Ê¤°¤³¤È¤ÇÉÁ²è¤·¤Þ¤¹¡£¥Ç¡¼¥¿½¸¹ç¤¬¶õ¹Ô¤ä̤ÄêµÁÃͤÇÀÚ¤é¤ì¤Æ¤¤ ¤ë¾ì¹ç¡¢ÀÚ¤é¤ì¤Æ¤¤¤Ê¤¤¤½¤ì¤¾¤ì¤ÎÉôʬ¤òÊÌ¡¹¤ÎϢ³¶ÊÀþ¤È¤·¤Æ¤Ä¤Ê¤®¤Þ¤¹¡£ ¤³¤ì¤é¤ÎÊÌ¡¹¤Ë¤Ä¤Ê¤¤¤ÀÉôʬƱ»Î¤Ï¡¢¶ÊÀþ¤È¤·¤ÆÀڤ줿¤ê¡¢ÉÔϢ³¤Ë¤Ê¤Ã¤¿ ¤ê¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
unwrap ¤Ï¡¢¥Ç¡¼¥¿¤¬¦Ð¤è¤êÂ礤ʥ¸¥ã¥ó¥×¤ò¤·¤Ê¤¤¤è¤¦¤Ë¡¢2¦Ð¤ÎÀ°¿ôÇܤò ²Ã¤¨¤ëÁàºî¤ò¤·¤Þ¤¹¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð¡¢¼´¤ÎÈϰϤϸµ¤Î¥Ç¡¼¥¿¤«¤é¤Ç¤Ï¤Ê¤¯¡¢¤½ ¤³¤«¤éºî¤é¤ì¤ëºÇ½ªÅª¤Ê¶ÊÀþ¤ËÂФ·¤Æ·×»»¤µ¤ì¤Þ¤¹¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥʤ¯¡¢¤«¤Ä¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÀ¸À®¤¹¤ë¾ì¹ç¡¢¤½¤Î ¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎɸËܲ½¤Ï¡¢ÆþÎϥǡ¼¥¿¤ò´Þ¤à¤è¤¦¤Ê x ¤ÎÈϰϤȡ¢ set xrange ¤ÇÄêµÁ¤µ¤ì¤ë¸ÇÄꤷ¤¿²£ºÂɸ¤ÎÈϰϤζ¦ÄÌÉôʬ¤Î¾å¤Ç¹Ô¤Ê¤ï¤ì ¤Þ¤¹¡£
Í׵᤹¤ëÊ¿³ê²½¥ª¥×¥·¥ç¥ó¤òŬÍѤ¹¤ë¤Ë¤Ï¥Ç¡¼¥¿¤ÎÅÀ¿ô¤¬¾¯¤Ê¤¹¤®¤ë¾ì¹ç¤Ï¡¢ ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
smooth ¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ø¿ô¤ÎÉÁ²è¤Î¤È¤¤Ë¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¶ËºÂɸ¥â¡¼¥É ¤Ç¤Ï¡¢smooth path ¤Î¤ß͸ú¤Ç¤¹¡£
3 ¼¡¸µ plot (splot) ¤Ç¤ÎÊ¿³ê²½¤Ï¡¢¸½ºß¤Ï 3 ¼¡¸µ¤ÎÅÀ¤Î½¸¹ç¤òÄ̤뼫Á³ 3 ¼¡¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎÀ¸À®¤Ë¸ÂÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£°ìÈÌŪ¤Ë¤Ï¡¢µ°Æ» (smooth path) ¤Ë¥¹¥×¥é¥¤¥ó¤ò±è¤Ã¤ÆÀ¸À®¤·¤Þ¤¹¡£3 ¼¡¸µ¥Ç¡¼¥¿¤Î 2 ¼¡¸µ ¼Í±Æ¤ËÂФ·¤Æ¤Ï¡¢smooth csplines ¤Ï¤½¤ì¤¬ 2 ¼¡¸µ¥Ç¡¼¥¿¤Ç¤¢¤ë¤«¤Î¤è¤¦ ¤ËºîÍѤ·¤Þ¤¹¡£°ì¤Ä¤Î splot ¥³¥Þ¥ó¥É¤Ç¤Ï¡¢¤¤¤º¤ì¤«°ì¤Ä¤Î¥¡¼¥ï¡¼¥É¤Î ¤ß¤¬µö¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
splot $DATA using 1:2:3 smooth path with lines
plot 'data-file' using 1:2:(1.0) smooth acsplines
À¼Á¾å¡¢½Å¤ß¤ÎÀäÂÐŪ¤ÊÂ礤µ¤Ï¡¢¶ÊÀþ¤ò¹½À®¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¶èʬ¤Î¿ô¤ò·è Äꤷ¤Þ¤¹¡£¤â¤·½Å¤ß¤¬Â礤±¤ì¤Ð¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿¤Î±Æ¶Á¤ÏÂ礤¯¤Ê¤ê¡¢¤½¤·¤Æ ¤½¤Î¶ÊÀþ¤Ï¡¢ÎÙ¤ê¹ç¤¦ÅÀƱ»Ö¤ò¼«Á³ 3 ¼¡¥¹¥×¥é¥¤¥ó¤Ç¤Ä¤Ê¤¤¤ÇÆÀ¤é¤ì¤ë¤â¤Î ¤Ë¶á¤Å¤¤Þ¤¹¡£¤â¤·½Å¤ß¤¬¾®¤µ¤±¤ì¤Ð¡¢¤½¤Î¶ÊÀþ¤Ï¤è¤ê¾¯¤Ê¤¤¶èʬ¤Ç¹½À®¤µ¤ì¡¢ ¤½¤ì¤Ë¤è¤Ã¤Æ¤è¤êÊ¿³êŪ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ÎºÇ¤â¶Ëü¤Ê¾ì¹ç¤Ï¤¿¤À 1 ¤Ä¤Î¶èʬ ¤«¤é¤Ê¤ë¾ì¹ç¤Ç¤¢¤ê¡¢¤½¤ì¤ÏÁ´¤Æ¤Î¥Ç¡¼¥¿¤Ë½Å¤ß¤ÎÉÕ¤Àþ·ÁºÇ¾® 2 ¾è¶á»÷¤Ë ¤è¤Ã¤Æºî¤é¤ì¤Þ¤¹¡£¸íº¹¤ÎΩ¾ì¤«¤é¸À¤¨¤Ð¡¢Ê¿³ê¤µ¤Î½Å¤ß¤Ï¡¢¤½¤Î¶ÊÀþ¤ËÂФ¹ ¤ë¡ÖÊ¿³ê²½°ø»Ò¡×¤Ë¤è¤Ã¤Æʬ³ä¤µ¤ì¤¿³ÆÅÀ¤Ø¤Î¡¢Åý·×Ū¤Ê½Å¤ß¤È¸«¤ë¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£¤½¤ì¤Ë¤è¤ê¡¢¤½¤Î¥Õ¥¡¥¤¥ëÃæ¤Î (ɸ½àŪ¤Ê) ¸íº¹¤ÏÊ¿³ê¤µ¤Î½Å¤ß¤È¤· ¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
sw(x,S)=1/(x*x*S) plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines splot 'data_file' using 1:2:3:(sw($4,100)) smooth acsplines
splot ... smooth acsplines with lines ¤Ï¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Î x, y, z ºÂɸ¤Ë¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÅö¤Æ¤Ï¤á¤Þ¤¹¡£2 ¼¡¸µ¤Î¾ì¹ç¤È¤Ï°ã¤¤¡¢ÅÀ¤òºÇ½é¤Ë¥½ ¡¼¥È¤·¤Þ¤»¤ó¤Î¤Ç¡¢Åö¤Æ¤Ï¤á¤ë¥¹¥×¥é¥¤¥ó¤Îµ°Æ»¤Ï¥ë¡¼¥×¤ò»ý¤Ä²ÄǽÀ¤¬¤¢¤ê ¤Þ¤¹¡£ ·Ù¹ð: °ìÈ̤Π3 ¼¡¸µ¤Î¾ì¹ç¡¢¤¿¤¯¤µ¤ó¤Î¥¹¥×¥é¥¤¥ó¶ÊÀþ¤¬Åö¤Æ¤Ï¤Þ¤ë¤Î¤Ç¡¢ »÷¤¿¤è¤¦¤Ê¸ú²Ì¤òÆÀ¤ë¤Ë¤Ï¡¢½Å¤ßÃͤò¤«¤Ê¤êÂ礤¯¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¼Â¿ô¤Î·ÐϩŤ¬°ÅÌÛ¤ÎÀ©¸æÃͤȤ·¤Æ»È¤ï¤ì¤ë¤Î¤Ç¡¢½Å¤ß¤Å¤±¤µ¤ì¤ë¤½¤Î ¶è´Ö¤Ï¡¢°ì¤Ä¤Î¼´¤Ø¤Î¼Í±Æ¤È¤Ï°ìÃפ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
splot ... smooth csplines with lines ¤Ï¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Î x, y, z ºÂɸ¤Ë¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÅö¤Æ¤Ï¤á¤Þ¤¹¡£2 ¼¡¸µ¤Î cspline ¤È¤Ï°ã¤¤¡¢ÅÀ¤òºÇ ½é¤Ë¥½¡¼¥È¤·¤Þ¤»¤ó¤Î¤Ç¡¢Åö¤Æ¤Ï¤á¤ë¥¹¥×¥é¥¤¥ó¤Îµ°Æ»¤Ï¥ë¡¼¥×¤ò»ý¤Ä²ÄǽÀ ¤¬¤¢¤ê¤Þ¤¹¡£°ìÈ̤ˡ¢¥¹¥×¥é¥¤¥ó·¸¿ô¤ÎÊÌ¡¹¤Ê 3 ¤Ä¤Î½¸¹ç¤òÀ¸À®¤·¡¢¤½¤ì¤¾ ¤ì¤¬°ì¤Ä¤ÎºÂɸ x, y, z ¤ò¡¢¶¦Ä̤ÎÌÀ¼¨Åª¤Ç¤Ê¤¤µ°Æ»¥Ñ¥é¥á¡¼¥¿¤Î´Ø¿ôÃÍ¤È ¤·¤Æ°·¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µ¤Î plot ... smooth path ¥ª¥×¥·¥ç¥ó¤ÈƱÅù ¤Ç¤¹¡£
¤½¤Î¶ÊÀþ¤¬ xy, yz, xy ¤Î¤¤¤º¤ì¤«¤ÎÊ¿Ì̾å¤Ë¤¢¤ë¤è¤¦¤ÊÆÃÊ̤ʾì¹ç¤Ï¡¢Ã±°ì ¤Î·¸¿ô½¸¹ç¤Î¤ß¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢3 ¼¡¸µ¶õ´ÖÆâ¤ÎÊ¿³ê²½¶ÊÀþ¤ò¡¢ºÂ ɸ¤ò¼Í±Æ¤·¤¿ 2 ¼¡¸µ¥°¥é¥Õ¤Î¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎÅö¤Æ¤Ï¤á¤Î¥³¥Ô¡¼¤ÎÀÑ¤ß½Å¤Í ¤ÇÀ¸À®¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
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 # Ʊ¾å
°Ê²¼¤â»²¾È smooth.dem
¥Ð¥ó¥ÉÉý: ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤ÏÀµµ¬Ê¬ÉۤΥǡ¼¥¿ÃͤËÂФ·¤ÆºÇŬ¤È¤Ê¤ë¤è¤¦¤Ê¥Ð ¥ó¥ÉÉý¤ò·×»»¤·»ÈÍѤ·¤Þ¤¹¡£
default_bandwidth = sigma * (4/3N) ** (0.2)
¤³¤ì¤ÏÄ̾ï¤Ï¤È¤Æ¤âÊݼéŪ¤Ç¡¢¤¹¤Ê¤ï¤ÁÉý¹¤¤¥Ð¥ó¥ÉÉý¤Ç¤¹¡£¥Ð¥ó¥ÉÉý¤Ï¡¢ÌÀ ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
plot $DATA smooth kdensity bandwidth <value> with boxes
Á°¤ÎÉÁ²è¤Ç»ÈÍѤ·¤¿¥Ð¥ó¥ÉÉý¤Ï¡¢GPVAL_KDENSITY_BANDWIDTH ¤ËÊݸ¤·¤Þ¤¹¡£
¼þ´ü: ¼þ´üŪ¤Ê¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢¸Ä¡¹¤Î¥¬¥¦¥¹³ËÀ®Ê¬¤Ï¡¢1 ¼þ´ü¤Î¶è´Ö¤ò·«¤êÊÖ¤¹ ¤è¤¦¤Ë°·¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤½¤Î°ìÎã¤Ï¡¢³Ñ¤Î´Ø¿ô¤È¤·¤Æ¬Äꤵ¤ì¤¿¥Ç¡¼¥¿¤Ç¡¢ ¤³¤ì¤Ï¼þ´ü¤¬ 2¦Ð¤Ç¤¹¡£Â¾¤ÎÎã¤Ï¡¢Ê£¿ôǯ¤ËÅϤäơ¢³Æǯ¤ÎÆüÉÕËè¤Ë¼è¤é¤ì¤¿ ¥Ç¡¼¥¿¤Ç¡¢¤³¤Î¼þ´ü¤Ï 365 ¤Ç¤¹¡£ ¤³¤Î¤è¤¦¤Ê¾ì¹ç¡¢¤½¤Î¼þ´ü¤òÉÁ²è¥³¥Þ¥ó¥É¤ÇÅϤ¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
plot $ANGULAR_DAT smooth kdensity period 2*pi with lines
¶õ¤Î¥Õ¥¡¥¤¥ë̾ ' ' ¤Ï¡¢Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢Ä¾Á°¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤òºÆ¤Ó »ÈÍѤ¹¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Æ±¤¸ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 2 ¤Ä¤Î ¥Ç¡¼¥¿Îó¤òÉÁ²è¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:
plot 'filename' using 1:2, ” using 1:3
¤³¤Î filename ¤Ï¡¢¤³¤Î¸å¤Î plot ¥³¥Þ¥ó¥É¤Ç¤â ' ' ¤ÇºÆÍøÍѤǤ¤Þ¤¹¤¬¡¢ ¤½¤Î¾ì¹ç¤Ë save ¤¹¤ë¤È¡¢¥³¥á¥ó¥È¤È¤·¤Æ¤½¤Î̾Á°¤òµÏ¿¤¹¤ë¤Î¤ß¤Ç¤¹¡£
'+' ¤È '++' ¤È¤¤¤¦ÆÃÊ̤ʥե¡¥¤¥ë̾¤Ï¡¢using »ØÄê¤ÎÁ´ÂΤÈÉÁ²è¥¹¥¿¥¤¥ë ¤Ë¥¤¥ó¥é¥¤¥ó´Ø¿ô¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î»ÅÁȤߤǤ¹¡£Ä̾´Ø¿ôÉÁ²è¤Ï¥µ ¥ó¥×¥ëÅÀËè¤Ëñ°ì¤Î y (¤Þ¤¿¤Ï z) ¤ÎÃͤ·¤«»ý¤Æ¤Þ¤»¤ó¡£¤·¤«¤·µ¿»÷¥Õ¥¡¥¤¥ë '+' ¤Ï¤½¤ì¤¬¤¢¤¿¤«¤â¼ÂºÝ¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤è¤¦¤Ë¡¢using »ØÄê¤Ë¤è¤ë 1 ÎóÌܤÎÃͤòɸËÜÅÀ¤È¤·¤Æ°·¤¤¡¢¤µ¤é¤ËÄɲäÎÎó¤ÎÃͤò»ØÄꤹ¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£É¸ËÜÅÀ¿ô¤Ï set samples ¤«¤Þ¤¿¤ÏÌÀ¼¨Åª¤ËɸËÜ´Ö³Ö¤òÈÏ°Ï»ØÄêÉôʬ¤Ë »ØÄꤹ¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£É¸ËÜÅÀ¤Ï¡¢set trange ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð ¤½¤ì¤ÇÀßÄꤷ¤¿ÈÏ°ÏÁ´ÂΤËÅϤê¤Þ¤¹¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð set xrange ¤ÎÈÏ°Ï Á´ÂΤËÅϤê¤Þ¤¹¡£
Ãí°Õ: trange ¤Î»ÈÍѤϡ¢°ÊÁ°¤Î¤¢¤ëÈǤΠgnuplot ¤Î»ÅÍͤȤϰۤʤê¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ë¤è¤ê x ¼´¤ÎÈϰϤȤϰۤʤëɸËÜÈϰϤ¬»ÈÍѤǤ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves
'+' ¤ÎľÁ°¤Ë¡¢ÆÈΩ¤ÊɸËÜÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Ä̾ï¤Î´Ø¿ôÉÁ²è¤Î ¤ÈƱÍÍ¡¢ÆÈΩÊÑ¿ô¤Ë̾Á°¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ °Ê²¼¤Ï¡¢É¸ËÜ´Ö³Ö (1.5) ¤òɸËÜÈÏ°ÏÆâ¤Ë»ØÄꤷ¤¿Îã¤Ç¤¹¡£É¸ËÜÅÀ¤Ï¡¢-3, 1.5, 0, 1.5, ... 24 ¤Î°ÌÃ֤Ǽè¤ê¤Þ¤¹¡£
plot $MYDATA, [t=-3:25:1.5] '+' using (t):(f(t))
¤µ¤é¤Ë¡¢+ ¤ÎÈÏ°Ï»ØÄê¤Ë¤Ï¡¢É¸ËÜÁýʬ¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ plot ¤« splot ¥³¥Þ¥ó¥É¤Î¤¹¤°¸å¤ËɸËÜÈϰϤò½ñ¤¯¤È, ´Ö°ã¤Ã¤Æ x ¼´¤Î ÈϰϤȤβò¼á¤µ¤ì¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤Î¤¢¤¤¤Þ¤¤¤µ¤òÈò¤±¤ë¤¿¤á¤Ë¡¢ ¥¡¼¥ï¡¼¥É sample ¤òÁ°ÃÖ¤¹¤ë¤«¡¢¤Þ¤¿¤ÏɸËÜÈϰϤΠ3 ÈÖÌܤΥե£¡¼¥ë¥É ¤È¤·¤ÆɸËÜ´Ö³Ö¤òÍ¿¤¨¤ë¤«¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£¤½¤ÎɸËֳܴ֤϶õ¤Ç¤â¤è¤¯¡¢ ¤½¤Î¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤ò»ÈÍѤ·¤Þ¤¹¡£¤½¤Î¤è¤¦¤Ê¤¢¤¤¤Þ¤¤¤µ¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: plot sampling (99.7)¡£
plot sample [beta=0:2*pi] '+' using (sin(beta)):(cos(beta)) with lines plot [beta=0:2*pi:] '+' using (sin(beta)):(cos(beta)) with lines
µ¿»÷¥Õ¥¡¥¤¥ë '++' ¤Ï¡¢u Êý¸þ¤Ï set samples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î¿ô¡¢v Êý ¸þ¤Ï set isosamples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î¿ô¤Î¡¢É¸½àŪ¤Ê [u,v] ºÂɸ¤Î³Ê»Ò ¤òÀ¸À®¤¹¤ë 2 Îó¤Î¥Ç¡¼¥¿¤òÊÖ¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢'++' ¤ÎÉÁ²è¤ÎÁ°¤Ë¡¢urange ¤È vrange ¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢x ¤È y ¤ÎÈϰϤϼ«Æ°Åª¤ËÀßÄꤵ¤ì ¤ë¤«¡¢¤Þ¤¿¤ÏÌÀ¼¨Åª¤Ë urange, vrange ¤È¤Ï°ã¤¦ÃͤËÀßÄê¤Ç¤¤Þ¤¹¡£ Îã:
splot '++' using 1:2:(sin($1)*sin($2)) with pm3d plot '++' using 1:2:(sin($1)*sin($2)) with image
'-' ¤È¤¤¤¦ÆÃÊ̤ʥե¡¥¤¥ë̾¤Ï¡¢¥Ç¡¼¥¿¤¬¥¤¥ó¥é¥¤¥ó¤Ç¤¢¤ë¤³¤È¤ò»Ø¼¨¤· ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥Ç¡¼¥¿¤ò¥³¥Þ¥ó¥É¤Î¸å¤Ë³¤±¤Æ»ØÄꤷ¤Þ¤¹¡£¤³¤Î¤È¤¤Ï¥Ç ¡¼¥¿¤Î¤ß¤¬¥³¥Þ¥ó¥É¤Ë³¤ÆÀ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë¥Õ¥£¥ë ¥¿¡¼¡¢¥¿¥¤¥È¥ë¡¢¥é¥¤¥ó¥¹¥¿¥¤¥ë¤È¤¤¤Ã¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢plot ¤Î¥³¥Þ¥ó¥É ¥é¥¤¥ó¤ÎÊý¤Ë½ñ¤«¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢unix ¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ë¤ª¤± ¤ë << (¥Ò¥¢¥É¥¥å¥á¥ó¥È) ¤ÈƱÍͤǤ¹¡£¤½¤Î¥Ç¡¼¥¿¤Ï¡¢¤½¤ì¤é¤¬¥Õ¥¡¥¤¥ë¤« ¤éÆɤ߹þ¤Þ¤ì¤¿¤«¤Î¤è¤¦¤Ë¡¢1 ¹Ô¤Ë¤Ä¤ 1 ¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤òÆþÎϤ·¤Þ¤¹¡£¤½¤· ¤Æ¥Ç¡¼¥¿¤Î½ª¤ê¤Ï¡¢1 ÎóÌܤλϤá¤Ëʸ»ú "e" ¤òÃÖ¤¯¤³¤È¤Ç»Ø¼¨¤·¤Þ¤¹¡£
'-' ¤Ï¡¢¥Ç¡¼¥¿¤È¥³¥Þ¥ó¥É¤ò°ì½ï¤Ë»ý¤Ä¤³¤È¤¬ÍÍѤǤ¢¤ë¾ì¹ç¤Î¤¿¤á¤Ë¤¢¤ê ¤Þ¤¹¡£Î㤨¤Ð¡¢ÊÌ¡¹¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤«¤é gnuplot ¤Ë¤½¤ÎξÊý¤¬¥Ñ¥¤¥× ÆþÎϤµ¤ì¤ë¾ì¹ç¤Ç¤¹¡£Î㤨¤Ð¡¢¥Ç¥â¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¤Ï¤³¤Îµ¡Ç½¤ò»È¤¦¤â¤Î¤¬¤¢ ¤ë¤Ç¤·¤ç¤¦¡£index ¤ä every ¤Î¤è¤¦¤Ê plot ¤Î¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì ¤Æ¤¤¤ë¤È¡¢¤½¤ì¤é¤Ï»È¤ï¤ì¤ë¤³¤È¤Î¤Ê¤¤¥Ç¡¼¥¿¤ÎÆþÎϤòÍ׵ᤷ¤Æ¤¤Þ¤¹¡£¤´¤¯ ñ½ã¤Ê¾ì¹ç¤ò½ü¤¯¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢'-' ¤«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤à¤è¤ê¤â¡¢ºÇ½é ¤Ë¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òÄêµÁ¤·¤Æ¤½¤ì¤òÆɤ߹þ¤àÊý¤¬Â¿Ê¬´Êñ¤Ç¤¹¡£°Ê²¼»²¾È: datablocks (18)¡£
¤â¤·¡¢replot ¥³¥Þ¥ó¥É¤Ç '-' ¤ò»È¤¦¤Ê¤é¡¢¤¢¤Ê¤¿¤Ï 1 Åٰʾå¥Ç¡¼¥¿¤ò ÆþÎϤ¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: replot (107), refresh (105)¡£·«¤êÊÖ¤·¤Þ ¤¹¤¬¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ò»È¤¦Êý¤¬¤¤¤¤¤Ç¤¹¡£
¶õ¤Î¥Õ¥¡¥¤¥ë̾ (' ') ¤Ï¡¢Ä¾Á°¤Î¥Õ¥¡¥¤¥ë̾¤¬ºÆ¤Ó»È¤ï¤ì¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢
plot '¤¢¤ë/¤È¤Æ¤â/Ť¤/¥Õ¥¡¥¤¥ë̾' using 1:2, ” using 1:3, ” using 1:4
¤Î¤è¤¦¤Ê¤È¤¤ËÊØÍø¤Ç¤¹¡£¤â¤·Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢'-' ¤È ' ' ¤Îξ Êý¤ò»ÈÍѤ¹¤ë¤È¡¢¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤Î 2 ¤Ä¤Î½¸¹ç¤òÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¡¢°ì¤Ä ÌܤΤâ¤Î¤òºÆÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
pop(x) = 103*exp(-x/10) plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
¤Ï¡¢ºÇ½é¤Î¿Í¸ý¤ÎÎã¤ÈƱ¤¸¾ðÊó¤òÉÁ²è¤·¤Þ¤¹¡£¤¿¤À¤·¡¢x ºÂɸ¤Ï 1965 ǯ¤« ¤é¤Î·Ð²áǯ¤òɽ¤¹¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÎã¤ò¼Â¹Ô¤¹¤ë¤È¤¤Ï¡¢¾å¤Î¥Ç¡¼¥¿¥Õ ¥¡¥¤¥ë¤Î¥³¥á¥ó¥È¹Ô¤ò¤¹¤Ù¤Æºï½ü¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¤¬¡¢¤Þ¤¿¤Ï¾å¤Î¥³¥Þ ¥ó¥É¤ÎºÇ½é¤ÎÉôʬ¤ò¼¡¤Î¤è¤¦¤ËÊѤ¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (¥³¥ó¥Þ¤Ë³¤¯Éôʬ):
plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"
¤³¤Î¥¢¥×¥í¡¼¥Á¤ÏºÇ¤â½ÀÆðÀ¤¬¤¢¤ê¤Þ¤¹¤¬¡¢using ¥¡¼¥ï¡¼¥É¤òÍѤ¤¤¿Ã±½ã ¤Ê¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Ç¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£
fdopen() ´Ø¿ô¤ò»ý¤Ä¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥Ç¡¼¥¿¤ò¡¢¥Õ¥¡¥¤¥ë¤«¥Ñ¥¤¥×¤Ë·ë¤Ó¤Ä¤± ¤é¤ì¤¿Ç¤°Õ¤Î¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£n ÈÖ¤Î¥Õ ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¤«¤éÆɤ߹þ¤à¤Ë¤Ï¡¢'<&n' ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ë¤è¤ê¡¢ 1 ²ó¤Î POSIX shell ¤«¤é¤Î¸Æ¤Ó½Ð¤·¤ÎÃæ¤Ç¡¢Ê£¿ô¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ñ ¥¤¥×ÆþÎϤ¬Íưפ˹Ԥ¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹:
$ gnuplot -p -e "plot '<&3', '<&4'" 3<data-3 4<data-4 $ ./gnuplot 5< <(myprogram -with -options) gnuplot> plot '<&5'
½ñ¼°:
plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}
³Æ <entry> ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î°ì¤Ä¤Î¥Õ¥£¡¼¥ë¥É¤òÁªÂò¤¹¤ë¤¿¤á¤Îñ¤Ê¤ëÎó ¤ÎÈֹ椫¡¢°ì¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ÎºÇ½é¤Î¹Ô¤ÎÎó¤Î¥é¥Ù¥ë¤Ë°ìÃפ¹¤ëʸ»úÎó¡¢¥«¥Ã ¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¡¢xticlabels(2) ¤Î¤è¤¦¤Ë¥«¥Ã¥³¤Ç°Ï¤Þ¤Ê¤¤ÆÃÊ̤ʴؿô¡¢¤Î ¤¤¤º¤ì¤«¤Ç¤¹¡£
¤½¤Î¥¨¥ó¥È¥ê¤¬¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¤Î¾ì¹ç¡¢N ÎóÌܤÎÃͤò»ØÄꤹ¤ë¤Î¤Ë´Ø¿ô column(N) ¤ò»ÈÍѤǤ¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢column(1) ¤ÏÆɤ߹þ¤Þ¤ì¤¿ºÇ½é¤Î¹àÌܤò »²¾È¤·¡¢column(2) ¤Ï¼¡¤Î¹àÌÜ¡¢¤È¤¤¤Ã¤¿¶ñ¹ç¤Ç¤¹¡£column(1), column(2), ... ¤Îάµ¤È¤·¤Æ¡¢ÆÃÊ̤ʵ¹æ $1, $2, ... ¤ò»ÈÍѤǤ¤Þ¤¹¡£
ÆÃÊ̤ʵ¹æ $# ¤Ï¡¢¸½ºß¤ÎÆþÎϹԤÎÁ´Îó¿ô¤Èɾ²Á¤·¤Þ¤¹¤Î¤Ç¡¢column($#) ¤ä stringcolumn($#) ¤Ï¡¢Îó¿ô¤¬ÉÔÌÀ¤Ê¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¹Ô¤Ë¤è¤Ã¤Æ°Û¤Ê¤ë¸Ä¿ô¤Î Îó¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎϤξì¹ç¤Ç¤â¡¢É¬¤ººÇ½ªÎó¤ÎÆâÍƤòÊÖ¤·¤Þ¤¹¡£
´Ø¿ô valid(N) ¤Ç¡¢N ÈÖÌܤÎÎó¤¬Í¸ú¤Ê¿ô»ú¤Ç¤¢¤ë¤«¤É¤¦¤«¥Æ¥¹¥È¤Ç¤¤Þ¤¹¡£ ¤½¤ÎÎó¤ÎÃͤ¬·ç¤±¤Æ¤¤¤¿¤ê¡¢²ò¼á¤Ç¤¤Ê¤«¤Ã¤¿¤ê¡¢NaN ¤Î¾ì¹ç¤Ï 0 ¤òÊÖ¤·¤Þ ¤¹¡£ ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Î³ÆÎó¤Ë¡¢¥Ç¡¼¥¿¤ÎÃͤǤϤʤ¯¥é¥Ù¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¾ì ¹ç¡¢¤³¤Î¥é¥Ù¥ë¤òÆþÎÏÎó¤ÎÆÃÄê¤ä plot ¥¿¥¤¥È¥ë¤Ë»ÈÍѤǤ¤Þ¤¹¡£´Ø¿ô column() ¤Ï¡¢ÎóÈÖ¹æ°Ê³°¤Ë¥é¥Ù¥ë¤ÇÆþÎÏÎó¤òÁªÂò¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¤¬°Ê²¼¤Î¤è¤¦¤Ê¾ì¹ç:
Height Weight Age val1 val1 val1 ... ... ...
°Ê²¼¤Î plot ¥³¥Þ¥ó¥É¤ÏƱ¤¸°ÕÌ£¤Ë¤Ê¤ê¤Þ¤¹:
plot 'datafile' using 3:1, ” using 3:2 plot 'datafile' using (column("Age")):(column(1)), \ ” using (column("Age")):(column(2)) plot 'datafile' using "Age":"Height", ” using "Age":"Weight"
»ØÄêʸ»úÎ󤬴°Á´¤Ë°ìÃפ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤·¡¢Âçʸ»ú¾®Ê¸»ú¤â¶èÊ̤·¤Þ¤¹¡£ Îó¤Î¥é¥Ù¥ë¤ò plot ¥¿¥¤¥È¥ë¤Ë»È¤¦¤Ë¤Ï¡¢set key autotitle columnhead ¤È¤¹¤ë¤«¡¢¤Þ¤¿¤Ï¸ÄÊ̤˥¿¥¤¥È¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï´Ø¿ô columnhead(N) ¤ò »È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Î 1...N ¤È¤¤¤¦¼ÂºÝ¤ÎÎó¤Ë²Ã¤¨¤Æ¡¢gnuplot ¤Ï´ÉÍý¾ðÊó ¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤Î "µ¿»÷Îó" ¤òÄ󶡤·¤Þ¤¹¡£Î㤨¤Ð¡¢$0 ¤Þ¤¿¤Ï column(0) ¤Ï¡¢ ¥Ç¡¼¥¿½¸¹çÆâ¤Î¤½¤Î¥Ç¡¼¥¿¹Ô¤Î¹ÔÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: pseudocolumns (99.3.11.3)¡£
<entry> ¤Ë²¿¤â½ñ¤«¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥¨¥ó¥È¥ê¤Î¥ê¥¹¥È¤Î½ç¤Ë¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬ »È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð using ::4 ¤Ï¡¢using 1:2:4 ¤È²ò¼á¤µ¤ì¤Þ¤¹¡£
using ¤Ë¤¿¤À°ì¤Ä¤Î¥¨¥ó¥È¥ê¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¤½¤Î <entry> ¤Ï y ¤ÎÃÍ¤È ¤·¤Æ»È¤ï¤ì¡¢¥Ç¡¼¥¿ÅÀ¤ÎÈÖ¹æ (µ¿»÷Îó $0) ¤¬ x ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð "plot 'file' using 1" ¤Ï "plot 'file' using 0:1" ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£ using ¤Ë 2 ¤Ä¤Î¥¨¥ó¥È¥ê¤òÍ¿¤¨¤¿¾ì¹ç¡¢¤½¤ì¤é¤Ï x, y ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£ ¤µ¤é¤Ë¥¨¥ó¥È¥ê¤òÄɲ䷤ơ¢ÆþÎϤ«¤é¤Î¥Ç¡¼¥¿¤òÍøÍѤ¹¤ë¤è¤¦¤ÊÉÁ²è¥¹¥¿¥¤¥ë ¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set style (112.86), fit (88)¡£
'scanf' ´Ø¿ô¤Ç¤Ï¿§¡¹¤Ê¥Ç¡¼¥¿·Á¼°¤Î¿ôÃÍÆþÎϤ¬»È¤¨¤Þ¤¹¤¬¡¢gnuplot ¤ÏÁ´ ¤Æ¤ÎÆþÎϥǡ¼¥¿¤òÇÜÀºÅÙÉâÆ°¾®¿ô¤È¤ß¤Ê¤·¤Þ¤¹¤«¤é¡¢gnuplot ¤Ç¤Ï %lf ¤¬ËܼÁŪ¤ËÍ£°ì¤Î¿ôÃÍÆþÎÏ»ØÄê¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î½ñ¼°Ê¸»úÎó¤Ë¤Ï ¾¯¤Ê¤¯¤È¤â°ì¤Ä¡¢¤½¤·¤Æ 7 ¤Ä°Ê²¼¤Î¡¢¤½¤Î¤è¤¦¤ÊÆþÎÏ»ØÄê»Ò¤òÆþ¤ì¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£ 'scanf' ¤Ï¿ô¤È¿ô¤Î´Ö¤Ë¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¡¢¤¹¤Ê¤ï¤Á¶õÇò¡¢¥¿¥Ö (" \t")¡¢²þ¹Ô (" \n")¡¢¤Þ¤¿¤Ï²þ¥Ú¡¼¥¸ (" \f") ¤¬¤¢¤ë¤È´üÂÔ¤·¤Þ¤¹¡£¤½¤ì°Ê³°¤ÎÆþÎϤÏÌÀ¤é ¤«¤Ë¥¹¥¥Ã¥×¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
" \t", " \n", " \f" ¤ò»È¤¦¤È¤¤Ïñ°ì°úÍÑÉä¤è¤ê¤à¤·¤íÆó½Å°úÍÑÉä¤ò»È¤¦¤Ù¤ ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
plot 'file' using 1:($2+$3) '%lf,%lf,%lf'
¼¡¤ÎÎã¤Ï¡¢¤è¤êÊ£»¨¤Ê½ñ¼°»ØÄê¤Ç¥Ç¡¼¥¿¤ò¥Õ¥¡¥¤¥ë "MyData" ¤«¤éÆɤ߹þ¤ß ¤Þ¤¹¡£
plot 'MyData' using "%*lf%lf%*20[^\n]%lf"
¤³¤Î½ñ¼°»ØÄê¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
%*lf ¿ôÃͤò̵»ë %lf ÇÜÀºÅÙÉâÆ°¾®¿ô¤òÆɤ߹þ¤à (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï x ¤ÎÃÍ) %*20[^\n] 20 ¸Ä¤Î²þ¹Ô°Ê³°¤Îʸ»ú¤ò̵»ë %lf ÇÜÀºÅÙÉâÆ°¾®¿ô¤òÆɤ߹þ¤à (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï y ¤ÎÃÍ)
3 ¹à±é»»»Ò ?: ¤ò»È¤Ã¤Æ¥Ç¡¼¥¿¤ò¥Õ¥£¥ë¥¿¤¹¤ë°ì¤Ä¤Î·ÝÅö¤ò¾Ò²ð¤·¤Þ¤¹¡£
plot 'file' using 1:($3>10 ? $2 : 1/0)
¤³¤ì¤Ï¡¢1 ÎóÌܤΥǡ¼¥¿¤ËÂФ·¤Æ¡¢3 ÎóÌܤΥǡ¼¥¿¤¬ 10 °Ê¾å¤Ç¤¢¤ë¤è¤¦¤Ê 2 ÎóÌܤΥǡ¼¥¿¤ò plot ¤·¤Þ¤¹¡£1/0 ¤Ï̤ÄêµÁÃͤǤ¢¤ê¡¢gnuplot ¤Ï̤Äê µÁ¤ÎÅÀ¤ò̵»ë¤¹¤ë¤Î¤Ç¡¢¤è¤Ã¤ÆŬÀڤǤʤ¤ÅÀ¤Ï±£¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤Þ¤¿¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ NaN ¤ò»È¤Ã¤Æ¤âƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¥«¥Ã¥³¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤Ê¤¤¸Â¤ê¤ÏÄê¿ô¼°¤òÎóÈÖ¹æ¤È¤·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ Î㤨¤Ð using 0+(Ê£»¨¤Ê¼°) ¤ÎÍͤʤ³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤Î¿ô¼°¤Ï¡¢ ¥«¥Ã¥³¤Ç¥¹¥¿¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¿ô¼°¤ÎÃͤ¬°ìÅÙɾ²Á¤µ¤ì¡¢¥«¥Ã¥³¤Ç¥¹¥¿¡¼¥È ¤·¤Æ¤¤¤ì¤Ð¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤òÆɤ߹þ¤à¤¿¤á¤Ë¤½¤ÎÃͤ¬°ìÅÙɾ²Á¤µ¤ì¤ë¡¢¤È¤¤¤¦ ÅÀ¤¬½ÅÍפǤ¹¡£
»þ·ÏÎó¥Õ¥©¡¼¥Þ¥Ã¥È¥Ç¡¼¥¿¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î»þ´Ö¤Î¥Ç¡¼¥¿¤ÏÊ£¿ô¤ÎÎó¤Ë ÅϤ餻¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢Â¾¤Î¥Ç¡¼¥¿¤Î³«»Ï°ÌÃÖ¤ò·×»»¤¹¤ë¤È¤¡¢ »þ´Ö¤Î¥Ç¡¼¥¿¤Ë¶õÇò¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿ ¹Ô¤ÎºÇ½é¤ÎÍ×ÁǤ¬¥¹¥Ú¡¼¥¹¤¬Ëä¤á¹þ¤Þ¤ì¤¿»þ´Ö¥Ç¡¼¥¿¤Ç¤¢¤ë¤Ê¤é¤Ð¡¢y ¤ÎÃÍ¤Ï 3 ÎóÌܤÎÃͤȤ·¤Æ»ØÄꤵ¤ì¤ë¤Ù¤¤Ç¤¹¡£
(a) plot 'file' ¤È¡¢(b) plot 'file' using 1:2¡¢¤½¤·¤Æ (c) plot 'file' using ($1):($2) ¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£°Ê²¼»²¾È: missing (112.23.4)¡£
ºÇ½é¤Ëñ¤Ë
plot 'file' using 1:2
¤È»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÂçÄñ¤Î¾ì¹ç¤É¤ó¤Ê¤Ë¥´¥ß¤Î¥Ç¡¼¥¿¤ò´Þ¤à¹Ô¤ò»ý¤Ä¥Õ¥¡¥¤¥ë ¤ò¤â plot ¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤É¤¦¤·¤Æ¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë ʸ»úÎó¤ò»Ä¤·¤Æ¤ª¤¤¿¤¤¤Ê¤é¤Ð¡¢¤½¤Î¥Æ¥¥¹¥È¹Ô¤ÎÂè°ìÎó¤Ë¥³¥á¥ó¥Èʸ»ú (#) ¤òÃÖ¤¯Êý¤¬¤è¤ê°ÂÁ´¤Ç¤·¤ç¤¦¡£
column(0) ¥Ç¡¼¥¿½¸¹çÆâ¤Ç¤Î³ÆÅÀ¤Î½çÈÖ¡£½çÈÖ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢¶õ ¹Ô¤ä¥³¥á¥ó¥È¹Ô¤Ç¤Ê¤¤¹Ô¤ÇÁý¤¨¡¢2 ¹Ô¤ÎϢ³¤¹¤ë¶õ¹Ô¤Ç¥ê ¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£Èó°ìÍÍ¤Ê matrix ¥Ç¡¼¥¿·Á¼°¤Ç¤Ï¡¢ column(0) ¤Ï³Æ matrix Í×ÁǤÎÀþ·Á½ç½ø¤Ë¤Ê¤ê¤Þ¤¹¡£ άµ $0 ¤â»ÈÍѲġ£ column(-1) ¤³¤ÎÈÖ¹æ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢1 ¹Ô¤Î¶õ¹Ô¤ÇÁý¤¨¡¢2 ¹Ô¤ÎÏ¢ ³¤¹¤ë¶õ¹Ô¤Ç¥ê¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¹ÔÎ󡢤ޤ¿¤Ï³Ê »Ò¾õ¥Ç¡¼¥¿Æâ¤Î¥Ç¡¼¥¿¹Ô¤ËÂбþ¤·¤Þ¤¹¡£¤Þ¤¿¡¢¥Ç¡¼¥¿½¸¹ç Æâ¤ÎÊÌ¡¹¤ÎÀþʬ¤ä¿³Ñ·Á¤ò¶èÊ̤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ column(-2) 0 ¤«¤é»Ï¤Þ¤ê¡¢2 ¹Ô¤ÎϢ³¤¹¤ë¶õ¹Ô¤ÇÁý¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢ Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ò»ý¤Ä¥Õ¥¡¥¤¥ëÆâ¤Î¡¢¸½ºß¤Î¥Ç¡¼¥¿½¸¹ç ¤Î index ÈÖ¹æ¤Ç¤¹¡£°Ê²¼»²¾È: `index`¡£ column($#) ÆÃÊ̤ʵ¹æ $# ¤Ï¡¢Â¸ºß¤¹¤ëÁ´Îó¿ô¤Èɾ²Á¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢ ¤è¤Ã¤Æ column($#) ¤Ï¡¢¸½ºß¤ÎÆþÎϹԤκǽªÎó (ºÇ±¦Îó) ¤ò»²¾È¤·¤Þ¤¹¡£Æ±ÍÍ¤Ë column($# - 1) ¤Ï¡¢ºÇ½ªÎó¤Î°ì¤Ä ¼êÁ°¤ÎÎ󡢤ʤɤȤʤê¤Þ¤¹¡£
1 ÎóÌÜ ÇÛÎó¤Îź»ú 2 ÎóÌÜ ÇÛÎó¤Î¿ôÃÍÍ×ÁǤμ¿ôÉôʬ¡¢¤Þ¤¿¤Ïʸ»úÎóÇÛÎó¤Îʸ»úÎóÃÍ 3 ÎóÌÜ ÇÛÎó¤Î¿ôÃÍÍ×ÁǤεõ¿ôÉôʬ
plot 'datafile' using <xcol>:<ycol>:xticlabels(3) with <plotstyle>
¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ï¡¢Ç¤°Õ¤ÎÉÁ²è¼´ x,x2,y,y2,z ÍѤËÀ¸À®¤Ç¤¤Þ¤¹¡£ ticlabels(<labelcol>) »ØÄê¤Ï¡¢using »ØÄê¤ÎÃæ¤Ç¡¢¤½¤Î¥Ç¡¼¥¿¤ÎºÂɸ»Ø Ä꤬Á´¤ÆºÑ¤ó¤À¸å¤Ë¹Ô¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£Í¸ú¤Ê X,Y[,Z] ºÂɸ¤ÎÁȤò»ý¤Ä³Æ ¥Ç¡¼¥¿ÅÀ¤ËÂФ·¤Æ¡¢xticlabels() ¤ËÍ¿¤¨¤ëʸ»úÎóÃͤϡ¢¤½¤ì¤ËÂбþ¤¹¤ëÅÀ¤Î x ºÂɸ¤ÈƱ¤¸¾ì½ê¤Î x ¼´¤Î¸«½Ð¤·¤Î¥ê¥¹¥È¤ËÄɲ䵤ì¤Þ¤¹¡£xticlabels() ¤Ï xtic() ¤È¾Êά¤¹¤ë¤³¤È¤â¤Ç¤¡¢Â¾¤Î¼´¤Ë´Ø¤·¤Æ¤âƱÍͤǤ¹¡£
Îã:
splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6)
¤³¤ÎÎã¤Ç¤Ï¡¢x ¼´¡¢y ¼´¤Î¸«½Ð¤·¤Ï x,y ºÂɸÃͤȤÏÊ̤ÎÎ󤫤é¼è¤ê½Ð¤µ¤ì¤Þ ¤¹¤¬¡¢z ¼´¤Î¸«½Ð¤·¤Ï¡¢Âбþ¤¹¤ëÅÀ¤Î z ºÂɸÃͤ«¤éÀ¸À®¤µ¤ì¤Þ¤¹¡£
Îã:
plot "data" using 1:2:xtic( $3 > 10. ? "A" : "B" )
¤³¤ÎÎã¤Ï¡¢x ¼´¤Î¸«½Ð¤·¤ÎÀ¸À®¤Ëʸ»úÎóÃÍ´Ø¿ô¤ò»ÈÍѤ·¤¿¤â¤Î¤Ç¡¢¥Ç¡¼¥¿¥Õ¥¡ ¥¤¥ë¤Î³ÆÅÀ¤Î x ¼´¤Î¹ï¤ß¤Î¸«½Ð¤·¤Ï¡¢3 ÎóÌܤÎÃͤˤè¤Ã¤Æ "A" ¤« "B" ¤«¤Î ¤¤¤º¤ì¤«¤È¤Ê¤ê¤Þ¤¹¡£
approx(ang) = ang - ang**3 / (3*2) plot sin(x) title "sin(x)", approx(x) title "approximation"
´Ø¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤òÀßÄꤹ¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set style function (112.86.5)¡£ÁȤ߹þ¤ß´Ø¿ô¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: expressions functions (15.3)¡£¼«Á°¤Ç´Ø¿ô¤òÄêµÁ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: user-defined (15.7)¡£
Îã:
plot sin(t),t**2 splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÏÁ°¤ÈƱ¤¸¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£¤¿¤À¤·¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬ ÉÁ²è¤Î¤¿¤á¤ËÍ¿¤¨¤é¤ì¤ëÁ°¤Ë¡¢Ç¤°Õ¤ÎÇÞ²ðÊÑ¿ô´Ø¿ô¤¬Àè¤Ë´°Á´¤Ë»ØÄꤵ¤ì¤¿ ¾ì¹ç¤ò½ü¤¤¤Æ¤Ç¤¹¡£¸À¤¤´¹¤¨¤ë¤È¡¢x ¤ÎÇÞ²ðÊÑ¿ô´Ø¿ô (¾å¤ÎÎã¤Ç¤Ï sin(t)) ¤È y ¤ÎÇÞ²ðÊÑ¿ô´Ø¿ô (¾å¤ÎÎã¤Ç¤Ï t**2) ¤È¤Î´Ö¤Ë¡¢Â¾¤Î½¤¾þ»Ò¤ä¥Ç¡¼¥¿ ´Ø¿ô¤ò¤Ï¤µ¤ß¤³¤ó¤Ç¤Ï¤¤¤±¤Þ¤»¤ó¡£¤½¤Î¤è¤¦¤Ê¤³¤È¤ò¤¹¤ë¤È¡¢¹½Ê¸¥¨¥é¡¼¤Ë¤Ê ¤ê¡¢ÇÞ²ðÊÑ¿ô´Ø¿ô¤¬´°Á´¤Ë¤Ï»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¡¢¤Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
with ¤ä title ¤Î¤è¤¦¤Ê¾¤Î½¤¾þ»Ò¤Ï¡¢ÇÞ²ðÊÑ¿ô´Ø¿ô¤Î»ØÄ꤬´°Î»¤·¤¿ ¸å¤Ë»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
plot sin(t),t**2 title 'Parametric example' with linespoints
°Ê²¼¤â»²¾È ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Î¥Ç¥â¡£
½ñ¼°:
[{<dummy-var>=}{{<min>}:{<max>}}] [{{<min>}:{<max>}}]
1 ¤ÄÌܤηÁ¼°¤ÎÈÏ°Ï»ØÄê¤ÏÆÈΩÊÑ¿ô¤ÎÈÏ°Ï (xrange¡¢¤Þ¤¿¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤Ç¤Î trange) ÍѤǡ¢2 ¤ÄÌܤηÁ¼°¤Ï½¾Â°ÊÑ¿ô¤ÎÈÏ°ÏÍѤǤ¹¡£¥ª¥×¥·¥ç¥ó¤Î <dummy-var> ¤ÇÆÈΩÊÑ¿ô¤Î¿·¤·¤¤Ì¾Á°¤òÍøÍѤǤ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ¿ô̾¤Ï set dummy ¤ÇÊѹ¹¤Ç¤¤Þ¤¹)¡£
ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ê¤±¤ì¤Ð¡¢ÈÏ°Ï»ØÄê¤Ï°Ê²¼¤Î½ç¤ËÍ¿¤¨¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó:
plot [<xrange>][<yrange>][<x2range>][<y2range>] ...
ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ï¡¢ÈÏ°Ï»ØÄê¤Ï°Ê²¼¤Î½ç¤ËÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤± ¤Þ¤»¤ó:
plot [<trange>][<xrange>][<yrange>][<x2range>][<y2range>] ...
°Ê²¼¤Î plot ¥³¥Þ¥ó¥É¤Ï¡¢trange ¤ò [-pi:pi], xrange ¤ò [-1.3:1.3], yrange ¤ò [-1:1] ¤ËÀßÄꤹ¤ëÎã¤Ç¤¹:
plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
* ¤Ï¡¢min (ºÇ¾®ÃÍ) ¤ä max (ºÇÂçÃÍ) ¤Ë¼«Æ°ÈÏ°Ï»ØÄê (autoscale) ¤Îµ¡Ç½ ¤ò»È¤¦¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£»ØÄê½çÈ֤Τ¿¤á¤À¤±¤ËɬÍפÊÈÏ°Ï»ØÄê¤Ë¤Ï¡¢¶õ¤Î ÈÏ°Ï [] ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
plot ¤ä splot ¤Î¥³¥Þ¥ó¥É¹Ô¤Ç»ØÄꤵ¤ì¤¿ÈϰϤϤ½¤Î¥°¥é¥Õ°ì¤Ä¤Ë¤Î¤ß±Æ ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤Î¸å¤Î¥°¥é¥Õ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈϰϤòÊѹ¹¤¹¤ë¤Ë¤Ï set xrange ¤ä set yrange ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
¥ê¥ó¥¯¤µ¤ì¤¿¼´¤ËÂФ·¤Æ¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç¤Î°ì»þŪ¤ÊÈÏ°Ï»ØÄê¤Î»ÈÍѤϡ¢ ´üÂÔ¤¹¤ë·ë²Ì¤òÀ¸¤Þ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó (°Ê²¼»²¾È: set link (112.42))¡£
»þ´Ö¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢ÈϰϤϡ¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤Î¤Ë»ÈÍѤ¹¤ë¤Î ¤ÈƱ¤¸½ñ¼°¤Ç¡¢°úÍÑÉä¤Ç°Ï¤ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set timefmt (112.96)¡£
Îã:
°Ê²¼¤Ï¸½ºß¤ÎÈϰϤò»ÈÍѤ·¤Þ¤¹:
plot cos(x)
°Ê²¼¤Ï x ¤ÎÈϰϤΤߤλØÄê¤Ç¤¹:
plot [-10:30] sin(pi*x)/(pi*x)
°Ê²¼¤Ï¾å¤ÈƱ¤¸¤Ç¤¹¤¬¡¢²¾ÊÑ¿ô¤È¤·¤Æ t ¤ò»È¤¤¤Þ¤¹:
plot [t = -10 :30] sin(pi*t)/(pi*t)
°Ê²¼¤Ï x ¤È y ¤ÎξÊý¤ÎÈϰϤλØÄê¤Ç¤¹:
plot [-pi:pi] [-3:3] tan(x), 1/x
°Ê²¼¤Ï¡¢y ¤ÎÈϰϤΤߤλØÄê¤Ç¤¹:
plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
°Ê²¼¤Ï x ¤ÎºÇÂçÃÍ¤È y ¤ÎºÇ¾®ÃͤΤߤλØÄê¤Ç¤¹¡£
plot [:200] [-pi:] $mydata using 1:2
°Ê²¼¤Ï x ¤ÎÈϰϤò»þ·ÏÎó¥Ç¡¼¥¿¤È¤·¤Æ»ØÄꤷ¤Æ¤¤¤Þ¤¹:
set timefmt "%d/%m/%y %H:%M" plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'
¸Ä¡¹¤ÎÉÁ²èÍ×ÁÇËè¤ËÂФ·¡¢É¸ËÜÈϰϤò¤µ¤é¤ËÀ©¸Â¤·¤Æ³ä¤êÅö¤Æ¤ë¤³¤È¤â¤Ç¤¤Þ ¤¹¡£
Îã:
°Ê²¼¤Ï¡¢x Á´ÂΤÎÈϰϤò 0 ¤«¤é 1000 ¤È¤·¤Æ¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¡¢2 ¤Ä¤Î´Ø¿ô¤òÁ´ÂΤÎÈϰϤΰìÉôʬ¤À¤±¤½¤ì¤¾¤ìÉÁ²è¤·¤Þ¤¹:
set xrange [0:1000] plot 'datafile', [0:200] func1(x), [200:500] func2(x)
°Ê²¼¤Ï¡¢¾å¤È¤Û¤ÜƱÍͤǤ¹¤¬¡¢Á´ÂΤÎÈϰϤϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤˤè¤Ã¤Æ·è Äꤷ¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢É¸Ëܲ½¤µ¤ì¤ë´Ø¿ô¤Ï¡¢Á´ÂΤ¬¥°¥é¥ÕÆâ¤Ë¼ý¤Þ¤ë¤«¤â¤·¤ì ¤Þ¤»¤ó¤·¡¢¼ý¤Þ¤é¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó:
set autoscale x plot 'datafile', [0:200] func1(x), [200:500] func2(x)
°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¤¢¤¤¤Þ¤¤¤Ç¤¹¡£ÀèƬ¤ÎÈÏ°Ï [0:10] ¤Ï¡¢Â¿Ê¬ºÇ½é¤Î´Ø¿ô¤Îɸ Ëܲ½¤Î¤ß¤Ë¸þ¤±¤¿¤Î¤À¤È»×¤¤¤Þ¤¹¤¬¡¢¼ÂºÝ¤Ë¤Ï¡¢¥°¥é¥ÕÁ´ÂΤËŬÍѤµ¤ì¡¢»öÁ° ¤Î xrange ¤ÎÄêµÁ¤â̵»ë¤µ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹:
set xrange [0:50] plot [0:10] f(x), [10:20] g(x), [20:30] h(x)
¾å¤ÎÎã¤Î¤¢¤¤¤Þ¤¤¤µ¤ò½ü¤¯¤¿¤á¤Ë¤Ï¡¢¥¡¼¥ï¡¼¥É sample ¤òÁÞÆþ¤¹¤ë¤³¤È¤Ç [0:10] ¤¬¼´¤ÎÈϰϤǤϤʤ¯É¸ËÜÈϰϤǤ¢¤ë¤³¤È¤ò»Ø¼¨¤¹¤ë¤«¡¢¤Þ¤¿¤ÏÈÏ°Ï»Ø ÄêÆâ¤Ë 2 ÈÖÌܤΥ³¥í¥ó¤Ë³¤¯É¸ËÜÁýʬ¥Õ¥£¡¼¥ë¥É¤òÄɲ乤뤳¤È¤Ç¤¹¡£¸å¼Ô ¤Ï¡¢¼´ÈϰϤȤ·¤Æ¤Ï´°Á´¤ÊÈÏ°Ï»ØÄê [min:max:increment] ¤Ï²ò¼á¤µ¤ì¤Ê¤¤¤¿ ¤á¤Ëµ¡Ç½¤·¤Þ¤¹¡£Áýʬ¥Õ¥£¡¼¥ë¥É¤¬¶õ¤Î¾ì¹ç¤Ï¡¢Áýʬ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î (max-min) ¤òɸËÜÅÀ¿ô¤Ç³ä¤Ã¤¿ÃͤȤʤꡢ¤è¤Ã¤Æ°Ê²¼¤Î 3 ¤Ä¤ÎÊѼï¤ÏƱ¤¸·ë ²Ì¤òÀ¸¤¸¤Þ¤¹¡£
set samples 100 plot sample [0:10] f(x), [10:20] g(x), [20:30] h(x) plot [0:10:0.1] f(x), [10:20] g(x), [20:30] h(x) plot [0:10:] f(x), [10:20] g(x), [20:30] h(x)
°Ê²¼¤ÎÎã¤Ï¡¢3 ¼¡¸µ¥°¥é¥Õ¤Ë¤é¤»¤ó¤Î¶ÊÀþ¤òÉÁ¤¯°ì¤Ä¤ÎÊýË¡¤òÄ󼨤·¤Þ¤¹:
set xrange [-2:2]; set yrange [-2:2] set angle degrees splot [phi=1:720:2] '+' using (cos(phi)):(sin(phi)):(phi)
°Ê²¼¤Ï¡¢2 ¼¡¸µ¤Î plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë 2 ¼¡¸µ¥µ¥ó¥×¥ê¥ó¥°¤ÎÎã¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë with vectors ¤Çɽ¼¨¤µ¤ì¤ë¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£ °Ê²¼»²¾È: vectors (68)¡£
set urange [ -2.0 : 2.0 ] set vrange [ -2.0 : 2.0 ] plot '++' using ($1):($2):($2*0.4):(-$1*0.4) with vectors
°Ê²¼¤Ï 3 ¼¡¸µ¤Î splot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë 2 ¼¡¸µ¥µ¥ó¥×¥ê¥ó¥°¤ÎÎã¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢sampling.dem ¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë¤â¤Î¤Ë»÷¤¿¥³¥Þ¥ó¥ÉÎó¤Ç¤¹¡£¤³¤Î 2 ¤Ä¤Î¶ÊÌ̤ϡ¢À¸À®¤µ¤ì¤ë¥°¥é¥Õ¤ÎÈÏ°ÏÁ´ÂΤè¤ê¤â¶¹¤¤ u, v ¤ÎÈϰϤÇɸËÜ ²½¤ò¹Ô¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
set title "3D sampling range distinct from plot x/y range" set xrange [1:100] set yrange [1:100] splot sample [u=30:70][v=0:50] '++' using 1:2:(u*v) lt 3, \ [u=40:80][v=30:60] '++' using (u):(v):(u*sqrt(v)) lt 4
u, v ¤Î¥µ¥ó¥×¥ê¥ó¥°¤ÎÈÏ°Ï»ØÄê¤Ë¤Ï¡¢¥µ¥ó¥×¥ê¥ó¥°¥Ç¡¼¥¿¤Î¿ô¤È¥¹¥Ú¡¼¥¹¤ò À©¸æ¤¹¤ë¡¢ÌÀ¼¨Åª¤Ê¥µ¥ó¥×¥ê¥ó¥°´Ö³Ö¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤¤Þ¤¹:
splot [u=30:70:1][v=0:50:5] '++' using 1:2:(func($1,$2))
½ñ¼°:
plot for [<variable> = <start> : <end> {:<increment>}] plot for [<variable> in "string of words"]
·«¤êÊÖ¤·¤ÎŬÍÑÈÏ°Ï (scope) ¤Ï¡¢¼¡¤Î¥³¥ó¥Þ (,) ¤«¥³¥Þ¥ó¥É¤Î½ª¤ï¤ê¡¢¤Î¤¤ ¤º¤ì¤«Àè¤Ë¸½¤ì¤¿¤È¤³¤í¤Þ¤Ç¤Ç¤¹¡£¤¿¤À¤·¡¢ÉÁ²è¤¹¤ë¹àÌܤÎÁ°¤ËÄêµÁ¼° (Ê£¿ô ¤â²Ä) ¤¬Ê¤ó¤Ç¤¤¤ë¾ì¹ç¤Ï¡¢¥³¥ó¥Þ¤¬´Ö¤ËÆþ¤Ã¤Æ¤¤¤Æ¤â¤½¤ÎÎã³°¤È¤Ê¤ê¤Þ¤¹¡£ ·«¤êÊÖ¤·¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ïµ¡Ç½¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À ¤µ¤¤¡£
Îã:
plot for [j=1:3] sin(j*x)
Îã:
plot for [dataset in "apples bananas"] dataset."dat" title dataset
¤³¤ÎÎã¤Ç¤Ï¡¢·«¤êÊÖ¤·¤Ï¥Õ¥¡¥¤¥ë̾¤ÈÂбþ¤¹¤ë¥¿¥¤¥È¥ë¤ÎÀ¸À®¤ÎξÊý¤Ç»È¤ï¤ì ¤Æ¤¤¤Þ¤¹¡£
Îã:
file(n) = sprintf("dataset_%d.dat",n) splot for [i=1:10] file(i) title sprintf("dataset %d",i)
¤³¤ÎÎã¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤ÇÀ¸À®¤µ¤ì¤ëʸ»úÎóÃÍ´Ø¿ô¤òÄêµÁ¤·¡¢¤½¤Î¤è¤¦¤Ê 10 ¸Ä ¤Î¥Õ¥¡¥¤¥ë¤òƱ»þ¤ËÉÁ²è¤·¤Þ¤¹¡£·«¤êÊÖ¤·¤ÎÊÑ¿ô (¤³¤ÎÎã¤Ç¤Ï 'i') ¤Ï°ì¤Ä¤Î À°¿ô¤È¤·¤Æ°·¤ï¤ì¡¢¤½¤ì¤ò 2 Åٰʾå»ÈÍѤǤ¤Þ¤¹¡£
Îã:
set key left plot for [n=1:4] x**n sprintf("%d",n)
¤³¤ÎÎã¤Ï¡¢´Ø¿ô¤ÎÁȤòÉÁ²è¤·¤Þ¤¹¡£
Îã:
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
¤³¤ÎÎã¤Ç¤Ï¡¢¥ê¥¹¥È¤Ë½¾¤Ã¤Æ³Æ¥¹¥Æ¥Ã¥×¤¬¿Ê¹Ô¤·¡¢¤½¤Î³Æ¹àÌܤËÂФ·¤Æ°ì¤Ä¤Î ÉÁ²è¤¬¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤Î³Æ¹àÌܤÏưŪ¤Ë¼èÆÀ¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¥ê¥¹¥È¤òÊѹ¹ ¤·¡¢¤½¤Î¤Þ¤Þ replot ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
list = "apple banana cabbage daikon eggplant" plot for [i in list] i.".dat" title i list = "new stuff" replot
¤³¤ÎÎã¤Ï¡¢À°¿ô¤Î·«¤êÊÖ¤·ÊÑ¿ô¤Ç¤Ï¤Ê¤¯¡¢Ê¸»úÎó¤Î·«¤êÊÖ¤·ÊÑ¿ô·Á¼°¤òÍѤ¤¤Æ ¤¤¤ë¤³¤È°Ê³°¤ÏÁ°¤ÎÎã¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£
<end> ¤ÎÀ°¿ô¤ÎÂå¤ï¤ê¤Ëµ¹æ * ¤ò»ÈÍѤ¹¤ì¤Ð¡¢·«¤êÊÖ¤·¤Ï¤¹¤Ù¤Æ¤Î͸ú¤Ê¥Ç ¡¼¥¿¤¬¤Ê¤¯¤Ê¤ë¤Þ¤Ç¤Î·«¤êÊÖ¤·¤È¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢³Æ¹Ô¤Ë´Þ¤Þ¤ì¤ë¤¹¤Ù¤Æ¤Î Îó¤Î½èÍý¡¢¤¢¤ë¤¤¤Ï¥Õ¥¡¥¤¥ëÆâ¤Î¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¥»¥Ã¥È (2 ¹Ô¤Î¶õ¹Ô¤Ç¶èÀÚ¤é ¤ì¤ë) ¤Î½èÍý¡¢»ØÄê¤ËÅö¤Æ¤Ï¤Þ¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤Ê¤É¤ò°ìÅ٤˽èÍý¤¹¤ë¤Î¤Ë ÊØÍø¤Ç¤¹¡£
Îã:
plot for [file in "A.dat B.dat"] for [column=2:*] file using 1:column 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
·Ù¹ð: ¤³¤ÎºÇ½é¤ÎÎã¤Î¤è¤¦¤Ë¡¢·«¤êÊÖ¤·¤Ï¤«¤Ã¤³¤Ê¤·¤Î·Á¤Ç¤âÆþ¤ì»Ò¤Ë¤Ç¤¤Þ¤¹¡£¤· ¤«¤·¤«¤Ã¤³¤Î¤Ê¤¤·«¤êÊÖ¤·¤ò¾¤Î¤«¤Ã¤³¤Î¤Ê¤¤·«¤êÊÖ¤·¤ÎÃæ¤ËÆþ¤ì»Ò¤Ë¤¹¤ë¤Î ¿ʬͱפǤϤ¢¤ê¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¥Ç¡¼¥¿¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ëξ¼Ô¤¬Æ± »þ¤Ë½ªÎ»¤·¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¹¡£gnuplot ¤Ï¤³¤ì¤¬µ¯¤¤ë¤È·Ù¹ð¤òȯ¤·¤Þ¤¹¡£
½ñ¼°:
title <text> | notitle [<ignored text>] title columnheader | title columnheader(N) {at {beginning|end}} {{no}enhanced}
¤³¤³¤Ç <text> ¤Ï¡¢°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎ󤫡¢Ê¸»úÎó¤Èɾ²Á¤µ¤ì¤ë¼°¤Î¤¤¤º ¤ì¤«¤Ç¤¹¡£°úÍÑÉä¤Ï¥¡¼¤Ë¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£
ÆþÎϥǡ¼¥¿¤ÎÎó¤ÎºÇ½é¤Î¹àÌÜ (¤¹¤Ê¤ï¤ÁÎó¤ÎÀèƬ) ¤òʸ»úÎó¥Õ¥£¡¼¥ë¥É¤È²ò¼á ¤·¡¢¤½¤ì¤ò¥¡¼¥¿¥¤¥È¥ë¤È¤·¤ÆÍøÍѤ¹¤ë¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: datastrings (12)¡£¤³¤ì¤Ï¡¢set key autotitle columnhead ¤ò»ØÄꤹ¤ì¤Ð¥Ç¥Õ ¥©¥ë¥È¤ÎµóÆ°¤È¤Ê¤ê¤Þ¤¹¡£
¶ÊÀþ¥¿¥¤¥È¥ë¤È¥µ¥ó¥×¥ë¤ÏͽÌó¸ì notitle ¤ò»È¤¦¤³¤È¤Ç¥¡¼¤«¤éºï½ü¤Ç¤ ¤Þ¤¹¡£²¿¤â¤Ê¤¤¥¿¥¤¥È¥ë (title ' ') ¤Ï notitle ¤ÈƱ¤¸°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£ ¥µ¥ó¥×¥ë¤À¤±¤¬Íߤ·¤¤¤È¤¤Ï¡¢°ì¤Ä°Ê¾å¤Î¶õÇò¤ò¥¿¥¤¥È¥ë¤Î¸å¤í¤ËÆþ¤ì¤Æ¤¯ ¤À¤µ¤¤ (tilte ' ')¡£notilte ¤Î¸å¤í¤Ëʸ»úÎó¤ò¤Ä¤±¤¿¾ì¹ç¡¢¤½¤Îʸ»úÎó ¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
key autotitles ¤¬ÀßÄꤵ¤ì¤Æ (¥Ç¥Õ¥©¥ë¥È)¡¢¤«¤Ä title ¤â notitle ¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤Ï plot ¥³¥Þ¥ó¥É¾å¤Ë¤¢¤ë´Ø¿ô̾ ¤«¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë̾¤Ë¤Ê¤ê¤Þ¤¹¡£¥Õ¥¡¥¤¥ë̾¤Î¾ì¹ç¤Ï¡¢»ØÄꤵ¤ì¤ëǤ°Õ¤Î¥Ç¡¼ ¥¿¥Õ¥¡¥¤¥ë½¤¾þ»Ò¤â¤½¤Î¥Ç¥Õ¥©¥ë¥È¥¿¥¤¥È¥ë¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£
°ÌÃ֤䥿¥¤¥È¥ë¤Î°ÌÃÖ·¤¨¤Ê¤É¤ÎËÞÎã¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢set key ¤ÇÀ©¸æ¤Ç¤ ¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É at ¤Ë¤è¤ê¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¡¢¼«Æ°Åª¤Ëºî¤é¤ì¤ë key ¤ÎÈ¢¤Î ³°¤Ë¤Ç¤âÃÖ¤¯¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£at {beginning|end} ¤ò»ÈÍѤ· ¤¿¾ì¹ç¤Ï¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¥°¥é¥Õ¤Î¶ÊÀþ¼«¿È¤ÎľÁ°¡¢¤¢¤ë¤¤¤Ïľ¸å¤ËÃÖ¤¤Þ ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢with lines ¤ÇÉÁ²è¤¹¤ë¾ì¹ç¤ÏÍÍѤǤ¹¤¬¡¢Â¾¤ÎÉÁ ²è¥¹¥¿¥¤¥ë¤Ç¤Ï̵°ÕÌ£¤Ç¤¹¡£
at <x-position>,<y-position> ¤Î·Á¼°¤ò»ÈÍѤ¹¤ì¤Ð¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¥Ú ¡¼¥¸Æâ¤ÎǤ°Õ¤Î°ÌÃÖ¤ËÃÖ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î°ÌÃÖ»ØÄê¤Ï ¥¹¥¯¥ê¡¼¥óºÂɸ¤È²ò¼á¤·¤Þ¤¹¡£Î㤨¤Ð at 0.5, 0.5 ¤Ï¡¢¥°¥é¥Õ¤Î¼´¤Ë½Ì¼Ü ¤ä¶³¦¤Ë¤Ï´Ø·¸¤Ê¤¯¡¢¾ï¤Ë¥¹¥¯¥ê¡¼¥ó¤Î¤É¿¿¤óÃæ¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤ÎÊýË¡¤ÇÇÛ ÃÖ¤¹¤ë¥¿¥¤¥È¥ë¤Î½ñ¼°¤Ï¡¢key ¤Î¥ª¥×¥·¥ç¥ó»ØÄê¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤¹¡£°Ê²¼»²¾È: set key (112.39)¡£
Îã:
°Ê²¼¤Ï y=x ¤ò¥¿¥¤¥È¥ë 'x' ¤Çɽ¼¨¤·¤Þ¤¹:
plot x
°Ê²¼¤Ï¡¢x ¤Î 2 ¾è¤ò¥¿¥¤¥È¥ë "x^
2" ¤Ç¡¢¥Õ¥¡¥¤¥ë "data.1" ¤ò¥¿¥¤¥È¥ë
"measured data" ¤Çɽ¼¨¤·¤Þ¤¹:
plot x**2 title "x^2", 'data.1' t "measured data"
°Ê²¼¤Ï¡¢¥Õ¥¡¥¤¥ë¤ÎÀèƬ¹Ô¤Î³ÆÎó¤Ë¥¿¥¤¥È¥ë¤ò´Þ¤àÊ£¿ôÎó¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¤Þ ¤¹¡£³Æ¥¿¥¤¥È¥ë¤Ï¡¢ÆÈΩ¤·¤¿ËÞÎã¤Ç¤Ï¤Ê¤¯¡¢Âбþ¤¹¤ë¶ÊÀþ¤Î¸å¤í¤ËÃÖ¤¤Þ¤¹:
unset key set offset 0, graph 0.1 plot for [i=1:4] 'data' using i with lines title columnhead at end
°Ê²¼¤Ï¡¢2 ¤Ä¤ÎÊÌ¡¹¤Î¥°¥é¥Õ¤Î key ¤Î¾ì½ê¤ò 1 ²Õ½ê¤Ë¤·¤Þ¤¹:
set key Left reverse set multiplot layout 2,2 plot sin(x) with points pt 6 title "Left plot is sin(x)" at 0.5, 0.30 plot cos(x) with points pt 7 title "Right plot is cos(x)" at 0.5, 0.27 unset multiplot
½ñ¼°:
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>} {arrowstyle | as <arrowstyle_index>} {fill | fs <fillstyle>} {fillcolor | fc <colorspec>} {nohidden3d} {nocontours} {nosurface} {palette}} }
¤³¤³¤Ç¡¢<style> ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«:
lines dots steps vectors yerrorlines points impulses fsteps xerrorbar xyerrorbars linespoints labels histeps xerrorlines xyerrorlines financebars surface arrows yerrorbar parallelaxes
¤Þ¤¿¤Ï¡¢
boxes boxplot ellipses histograms rgbalpha boxerrorbars candlesticks filledcurves image rgbimage boxxyerror circles fillsteps pm3d polygons isosurface zerrorfill
¤Þ¤¿¤Ï
table mask
ºÇ½é¤Î¥°¥ë¡¼¥×¤Î¥¹¥¿¥¤¥ë¤Ï¡¢Àþ¡¢ÅÀ¡¢Ê¸»ú¤Î°À¤ò»ý¤Á¡¢Âè 2 ¤Î¥°¥ë¡¼¥× ¤Î¥¹¥¿¥¤¥ë¤Ï¡¢¤µ¤é¤ËÅɤêÄÙ¤·Â°À¤â»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (112.86.4)¡£ ¤µ¤é¤Ë¥µ¥Ö¥¹¥¿¥¤¥ë¤ò»ý¤Ä¥¹¥¿¥¤¥ë¤â¤¢¤ê¤Þ¤¹¡£¸Ä¡¹¤Î¥¹¥¿¥¤¥ë¤Î¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï¡¢°Ê²¼»²¾È: plotting styles (II)¡£ ºÇ¸å¤ÎÆÃÊ̤ʥ¹¥¿¥¤¥ë 2 ¤Ä¤Ï¡¢¤¹¤°¤ËÉÁ²è¤¹¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼ »²¾È: set table (112.88), with mask (57)¡£¥¹¥¿¥¤¥ë table ¤Ï¡¢É½·Á¼°¤Î½ÐÎϤò¥Æ ¥¥¹¥È¥Õ¥¡¥¤¥ë¤«¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Î·Á¤ÇÀ¸À®¤·¤Þ¤¹¡£¥¹¥¿¥¤¥ë¤¬ with mask ¤Ç¤¢¤ë plot ¥³¥Þ¥ó¥É¤ÎÍ×ÁǤϡ¢Â¿³Ñ·ÁÎΰè¤Î½¸¹ç¤òÄêµÁ¤·¡¢¤½¤ì¤Ï¤½¤Î plot ¥³¥Þ¥ó¥É¤Î¤½¤Î¸å¤Ë³¤¯Í×ÁǤò¥Þ¥¹¥¯¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï¡¢set style function ¤È set style data ¤ÇÁª Âò¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤ì¤¾¤ì¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢»È¤¦¤³¤È¤¬¤Ç¤¤ë·¿¤Î ºÇÂç¿ô¤Ë㤹¤ë¤Þ¤Ç°Û¤Ê¤ëÀþ¼ï¡¢ÅÀ¼ï¤ò»È¤¤¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎüËöÍѥɥ饤¥Ð¤Ï ºÇÄã 6 ¤Ä¤Î°Û¤Ê¤ëÅÀ¼ï¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤â¤·¤¿¤¯¤µ¤óÍ׵ᤵ¤ì¤¿¾ì¹ç¡¢ ¤½¤ì¤é¤ò½ç¤ËºÆÍøÍѤ·¤Æ¤¤¤¤Þ¤¹¡£»ÈÍÑÃæ¤Î½ÐÎÏ·Á¼°¤Ç¤ÎÀþ¼ï¡¢ÅÀ¼ï¤Î½¸¹çÁ´ ÂΤò¸«¤¿¤±¤ì¤Ð¡¢test ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
°ì¤Ä¤ÎÉÁ²è¤ÇÀþ¼ï¤äÅÀ¼ï¤òÁª¤Ó¤¿¤¤¤Ê¤é¤Ð¡¢<line_type> ¤ä <point_type> ¤ò »ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é¤ÎÃͤϡ¢¤½¤ÎÉÁ²è¤Ç»È¤ï¤ì¤ëÀþ¼ï¤äÅÀ¼ï¤ò»ØÄꤹ¤ë Àµ¤ÎÀ°Äê¿ô (¤Þ¤¿¤Ï¿ô¼°) ¤Ç¤¹¡£»ÈÍѤ¹¤ëüËö¤Ç»È¤¨¤ëÀþ¼ï¡¢ÅÀ¼ï¤òɽ¼¨¤¹¤ë ¤Ë¤Ï test ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
ÉÁ²è¤ÎÀþ¤ÎÉý¤äÅÀ¤ÎÂ礤µ¤Ï <line_width> ¤ä <point_size> ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ ¤³¤ì¤é¤Ï¤½¤Î³Æ¡¹¤ÎüËö¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÂФ¹¤ëÁêÂÐŪ¤ÊÃͤȤ·¤Æ»ØÄꤷ¤Þ ¤¹¡£ÅÀ¤ÎÂ礤µ¤ÏÁ´ÂΤËÄÌÍѤ¹¤ë¤è¤¦¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set pointsize (112.73)¡£¤·¤«¤·¡¢¤³¤³¤Ç¥»¥Ã¥È¤µ¤ì¤ë <point_size> ¤È¡¢ set pointsize ¤Ç¥»¥Ã¥È¤µ¤ì¤ëÂ礤µ¤Ï¡¢¤¤¤º¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î¥Ý¥¤¥ó¥È¥µ ¥¤¥º¤Ë³Ý¤±¤é¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤¹¤Ê¤ï¤Á¡¢¤½¤ì¤é¤Î¸ú²Ì¤ÏÎßÀÑ¤Ï ¤·¤Þ¤»¤ó¡£Î㤨¤Ð¡¢set pointsize 2; plot x with points ps 3 ¤Ï¡¢¥Ç¥Õ ¥©¥ë¥È¤Î¥µ¥¤¥º¤Î 3 ÇܤǤ¢¤Ã¤Æ¡¢6 ÇܤǤϤ¢¤ê¤Þ¤»¤ó¡£
¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î°ìÉôʬ¡¢¤¢¤ë¤¤¤Ï³Æ plot ¤Ë¤ª¤¤¤Æ pointsize variable ¤È¤¤¤¦»ØÄê¤â²Äǽ¤Ç¤¹¡£¤³¤Î¾ì¹ç¡¢ÆþÎϤˤÏÄɲäΠ1 Îó¤¬Í׵ᤵ¤ì¤Þ¤¹¡£Îã ¤¨¤Ð 2D ÉÁ²è¤Ç¤Ï 3 Îó¡¢3D ÉÁ²è¤Ç¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬Íפˤʤê¤Þ¤¹¡£¸Ä¡¹ ¤ÎÅÀ¤Î¥µ¥¤¥º¤Ï¡¢Á´ÂΤòÄ̤·¤Æ¤Î pointsize ¤Ë¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎÏ ¤Ë¤è¤ëÃͤò¤«¤±¤¿¤â¤Î¤È¤·¤Æ·èÄꤵ¤ì¤Þ¤¹¡£
set style line ¤ò»È¤Ã¤ÆÀþ¼ï/ÀþÉý¡¢ÅÀ¼ï/ÅÀÉý¤ÎÁȤòÄêµÁ¤¹¤ì¤Ð¡¢¤½¤Î¥¹ ¥¿¥¤¥ë¤ÎÈÖ¹æ¤ò <line_style> ¤Ë¥»¥Ã¥È¤¹¤ë¤³¤È¤Ç¤½¤ì¤é¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£
2 ¼¡¸µ¡¢3 ¼¡¸µÎ¾Êý¤ÎÉÁ²è¤Ç (plot ¤È splot ¥³¥Þ¥ó¥É)¡¢»öÁ°¤Ë¥³¥Þ¥ó ¥É set palette ¤ÇÀßÄꤷ¤¿³ê¤é¤«¤Ê¥Ñ¥ì¥Ã¥È¤«¤é¤Î¿§¤ò»È¤¨¤Þ¤¹¡£¿§¤ÎÃÍ ¤Ï¡¢ÅÀ¤Î z ºÂɸ¤ÎÃͤ«¡¢¤Þ¤¿¤Ï using ¤Ë¤è¤ë¥ª¥×¥·¥ç¥ó¤ÎÄɲÃÎó¤ÇÍ¿¤¨¤ë ¸ÄÊ̤ο§ºÂɸ¤ËÂбþ¤·¤Þ¤¹¡£¿§¤ÎÃͤϡ¢¾®¿ôÃÍ (palette frac) ¤«¡¢¤Þ¤¿¤Ï ¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ÎÈϰϤØÂбþ¤Å¤±¤é¤ì¤¿ºÂɸÃÍ (palette ¤« palette z) ¤Î¤¤¤º¤ì¤«¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1), set palette (112.67), linetypes (20)¡£
¥¡¼¥ï¡¼¥É nohidden3d ¤Ï¡¢splot ¥³¥Þ¥ó¥É¤ÇÀ¸À®¤µ¤ì¤ëÉÁ²è¤Ë¤Î¤ßŬÍÑ ¤µ¤ì¤Þ¤¹¡£Ä̾¥°¥í¡¼¥Ð¥ë¤Ê¥ª¥×¥·¥ç¥ó set hidden3d ¤Ï¥°¥é¥Õ¾å¤ÎÁ´¤Æ ¤ÎÉÁ²è¤ËŬÍѤµ¤ì¤Þ¤¹¤¬¡¢³Æ¡¹¤ÎÉÁ²è¤Ë nohidden3d ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³ ¤È¤Ç¡¢¤½¤ì¤ò hidden3d ¤Î½èÍý¤«¤é½ü³°¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£nohidden3d ¤¬¥Þ¡¼¥¯¤µ¤ì¤¿¶ÊḬ̀ʳ°¤Î¸Ä¡¹¤ÎÉÁ²èÍ×ÁÇ (Àþʬ¡¢ÅÀ¡¢¥é¥Ù¥ëÅù) ¤Ï¡¢Ä̾ï¤Ï ¾¤Î²¿¤é¤«¤ÎÉÁ²èÍ×ÁǤDZ£¤µ¤ì¤Æ¤·¤Þ¤¦¾ì¹ç¤âÁ´¤ÆÉÁ²è¤µ¤ì¤Þ¤¹¡£
ƱÍͤˡ¢¥¡¼¥ï¡¼¥É nocontours ¤Ï¡¢¥°¥í¡¼¥Ð¥ë¤Ë set contour »ØÄ꤬ ͸ú¤Ê¾ì¹ç¤Ç¤â¡¢¸ÄÊ̤Πplot ¤ËÂФ¹¤ëÅù¹âÀþÉÁ²èµ¡Ç½¤ò¥ª¥Õ¤Ë¤·¤Þ¤¹¡£
ƱÍͤˡ¢¥¡¼¥ï¡¼¥É nosurface ¤Ï¡¢¥°¥í¡¼¥Ð¥ë¤Ë set surface »ØÄê¤¬Í ¸ú¤Ê¾ì¹ç¤Ç¤â¡¢¸ÄÊ̤Πplot ¤ËÂФ¹¤ë 3 ¼¡¸µ¶ÊÌÌÉÁ²è¤ò¥ª¥Õ¤Ë¤·¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É¤Ï°Å¼¨¤¹¤ë¤è¤¦¤Ê·Á¤Ç¾Êά²Äǽ¤Ç¤¹¡£
linewidth, pointsize, palette ¥ª¥×¥·¥ç¥ó¤ÏÁ´¤Æ¤ÎüËöÁõÃ֤ǥµ¥Ý¡¼ ¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
°Ê²¼¤Ï¡¢sin(x) ¤ò±ôľÀþ¤ÇÉÁ²è¤·¤Þ¤¹:
plot sin(x) with impulses
°Ê²¼¤Ï¡¢x ¤òÅÀ¤ÇÉÁ²è¤·¡¢x**2 ¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÊý¼°¤ÇÉÁ²è¤·¤Þ¤¹:
plot x w points, x**2
°Ê²¼¤Ï¡¢tan(x) ¤ò´Ø¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÊý¼°¤Ç¡¢"data.1" ¤òÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹:
plot tan(x), 'data.1' with l
°Ê²¼¤Ï¡¢"leastsq.dat" ¤ò±ôľÀþ¤ÇÉÁ²è¤·¤Þ¤¹:
plot 'leastsq.dat' w i
°Ê²¼¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë "population" ¤ò¶ë·Á¤ÇÉÁ²è¤·¤Þ¤¹:
plot 'population' with boxes
°Ê²¼¤Ï¡¢"exper.dat" ¤ò¥¨¥é¡¼¥Ð¡¼ÉÕ¤¤ÎÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹ (¥¨¥é¡¼¥Ð¡¼¤Ï 3 Î󡢤¢¤ë¤¤¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤òɬÍפȤ·¤Þ¤¹):
plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars
¤â¤¦°ì¤Ä¤Î "exper.dat" ¤Î¥¨¥é¡¼¥Ð¡¼ÉÕ¤¤ÎÀÞ¤ìÀþ (errorlines) ¤Ç¤ÎÉÁ²è ÊýË¡ (¥¨¥é¡¼¥Ð¡¼¤Ï 3 Î󡢤¢¤ë¤¤¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬Í×):
plot 'exper.dat' w errorlines
°Ê²¼¤Ï¡¢sin(x) ¤È cos(x) ¤ò¥Þ¡¼¥«¡¼ÉÕ¤¤ÎÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹¡£ÀÞ¤ìÀþ¤Ï Ʊ¤¸Àþ¼ï¤Ç¤¹¤¬¡¢¥Þ¡¼¥«¡¼¤Ï°Û¤Ê¤Ã¤¿¤â¤Î¤ò»È¤¤¤Þ¤¹:
plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4
°Ê²¼¤Ï¡¢"data" ¤òÅÀ¼ï 3 ¤Ç¡¢ÅÀ¤ÎÂ礤µ¤òÄ̾ï¤Î 2 ÇܤÇÉÁ²è¤·¤Þ¤¹:
plot 'data' with points pointtype 3 pointsize 2
°Ê²¼¤Ï¡¢"data" ¤òÉÁ²è¤·¤Þ¤¹¤¬¡¢4 ÎóÌܤ«¤éÆɤó¤À¥Ç¡¼¥¿¤ò pointsize ¤ÎÃÍ ¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹:
plot 'data' using 1:2:4 with points pt 5 pointsize variable
°Ê²¼¤Ï¡¢2 ¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ËÂФ·¤Æ¡¢Éý¤Î¤ß°Û¤Ê¤ëÀþ¤òÍѤ¤¤ÆÉÁ²è¤·¤Þ¤¹:
plot 'd1' t "good" w l lt 2 lw 3, 'd2' t "bad" w l lt 2 lw 1
°Ê²¼¤Ï¡¢x*x ¤Î¶ÊÀþ¤ÎÆâÉô¤ÎÅɤê¤Ä¤Ö¤·¤È¿§¤ÎÂÓ¤òÉÁ²è¤·¤Þ¤¹:
plot x*x with filledcurve closed, 40 with filledcurve y=10
°Ê²¼¤Ï¡¢x*x ¤Î¶ÊÀþ¤È¿§¤ÎÈ¢¤òÉÁ²è¤·¤Þ¤¹:
plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y=10 lt 8
°Ê²¼¤Ï¡¢³ê¤é¤«¤ËÊѲ½¤¹¤ë¿§¤ÎÀþ¤Ç¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹:
splot x*x-y*y with line palette
°Ê²¼¤Ï¡¢2 ¤Ä¤Î¿§¤Î¤Ä¤¤¤¿¶ÊÌ̤ò¡¢°Û¤Ê¤ë¹â¤µ¤Çɽ¼¨¤·¤Þ¤¹:
splot x*x-y*y with pm3d, x*x+y*y with pm3d at t
½ñ¼°: print <¼°> {, <¼°>, ...}
print ¥³¥Þ¥ó¥É¤Ï¡¢1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¼°¤ÎÃͤò½ÐÎϤ·¤Þ¤¹¡£½ÐÎϤϡ¢¥³¥Þ ¥ó¥É set print ¤Ç¥ê¥À¥¤¥ì¥¯¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢²èÌ̤عԤï¤ì¤Þ¤¹¡£°Ê ²¼»²¾È: expressions (15)¡£°Ê²¼¤â»²¾È: printerr (101)¡£
<¼°> ¤Ï¡¢gnuplot ¤Ç͸ú¤ÊǤ°Õ¤Î¼°¤Ç¡¢¿ôÃͤǤ⡢ʸ»úÎóÄê¿ô¤Ç¤â¡¢¿ô»ú¤ä ʸ»úÎó¤òÊÖ¤¹´Ø¿ô¤Ç¤â¡¢ÇÛÎó¤Ç¤â¡¢¤Þ¤¿¤ÏÊÑ¿ô̾¤Ç¤âÆþ¤ì¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ò½ÐÎϤ¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£print ¤Ë sprintf ¤ä gprintf ´Ø¿ô¤òÁȤ߹ç¤ï¤»¤Æ¡¢¤µ¤é¤Ë½ÀÆð¤Ê½ñ¼°¤Î½ÐÎϤò¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£
print ¥³¥Þ¥ó¥ÉÆâ¤Ç·«¤êÊÖ¤·¤ò»È¤¦¤³¤È¤Ç¡¢Ã±°ì¹Ô¤ËÊ£¿ô¤ÎÃͤòÆþ¤ì¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¡£
Îã:
print 123 + 456 print sinh(pi/2) print "rms of residuals (FIT_STDFIT) is ", FIT_STDFIT print sprintf("rms of residuals is %.3f after fit", FIT_STDFIT) print "Array A: ", A print "Individual elements of array A: ", for [i=1:|A|] A[i] print $DATA
¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òʸ»úÎóÊÑ¿ô¤ËÊݸ¤·¤¿¤ê¡¢Ê¸»ú¼°¤ÎÃæ¤Ç»È¤¤¤¿¤¤¾ì¹ç ¤Ï¡¢ÊÑ¿ô GPVAL_PWD ¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: show variables all (114.5)¡£
raise {plot_window_id} lower {plot_window_id}
¥³¥Þ¥ó¥É raise ¤È lower ¤Ï¡¢½ÐÎÏ·Á¼°¤Î¤¤¤¯¤Ä¤«¤Ë¤·¤«µ¡Ç½¤»¤º¡¢¤½¤· ¤Æ¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤äɽ¼¨Í¥À赡ǽ¤ÎÀßÄê¤Ë¤â°Í¸¤¹¤ë ²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
set term wxt 123 # ºÇ½é¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤òÀ¸À® plot $FOO lower # ¸ºß¤¹¤ëÉÁ²è¥¦¥£¥ó¥É¥¦¤Î¤ß¤ò²¼¤Ë set term wxt 456 # 2 ¤ÄÌܤòÀ¸À® (1 ¤ÄÌܤξå¤Ë¤«¤Ö¤ë) plot $BAZ raise 123 # 1 ¤ÄÌܤÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¾å¤Ë
¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤¢¤Þ¤êÅö¤Æ¤Ë¤Ê¤é¤Ê¤¤¤È»×¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¥Þ¥¦¥¹Áàºî¡¢Æä˥º¡¼¥à¥¤¥ó¤È¥º¡¼¥à¥¢¥¦¥È¤Ç¤Ï¡¢Å¬Àڤʾì¹ç¤Ï replot ¤Î Âå¤ï¤ê¤Ë¤à¤·¤í refresh ¤ò»ÈÍѤ·¤Þ¤¹¡£Îã:
plot 'datafile' volatile with lines, '-' with labels 100 200 "Special point" e # ¿§¤ó¤Ê¥Þ¥¦¥¹Áàºî¤ò¤³¤³¤Ç¼Â¹Ô set title "Zoomed in view" set term post set output 'zoom.ps' refresh
»î¸³Ãʳ¬: ľÁ°¤Î plot ¥³¥Þ¥ó¥É¤¬´°Î»ºÑ¤ß¤Î multiplot ¤Î°ìÉô¤Ç¤¢¤ì¤Ð¡¢ replot ¤Ï°ÅÌÛ¤Ë remultiplot ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ set mouse multiplot ¤¬Í¸ú¤Ç¤¢¤ì¤Ð¡¢»ëÀþ°ÜÆ°/³ÈÂç¤Ê¤É¤Î¥Þ¥¦¥¹Áàºî¤Ç ¤â remultiplot ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£
replot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë°ú¿ô¤ÏºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot ¤Þ¤¿¤Ï splot ¥³¥Þ¥ó¥É¤Î°ú¿ô¤Ë (°ÅÌۤΠ',' ¤È¶¦¤Ë) Äɲ䵤졢¤½¤ì¤«¤éºÆ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ replot ¤Ï¡¢ÈÏ°Ï (range) ¤ò½ü¤¤¤Æ¤Ï¡¢plot ¤ä splot ¤ÈƱ¤¸°ú¿ô¤ò ¤È¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ä¾Á°¤Î¥³¥Þ¥ó¥É¤¬ splot ¤Ç¤Ï¤Ê¤¯ plot ¤Î¾ì¹ç¤Ï¡¢´Ø¿ô¤ò¤â¤¦°ì¤Ä¤Î¼´¹ï¤ß¤Ç¥×¥í¥Ã¥È¤¹¤ë¤Î¤Ë replot ¤ò»È¤¦¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£
Ãí°Õ:
plot '-' ; ... ; replot
¤Ï¿ä¾©¤µ¤ì¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¤³¤ì¤¬¤¢¤Ê¤¿¤ËºÆ¤ÓƱ¤¸¥Ç¡¼¥¿¤¹¤Ù¤Æ¤ÎÆþÎϤòÍ× µá¤¹¤ë¤³¤È¤Ë¤Ê¤ë¤«¤é¤Ç¤¹¡£¤¿¤¤¤Æ¤¤¤Î¾ì¹ç¡¢Âå¤ï¤ê¤Ë¥³¥Þ¥ó¥É refresh ¤ò»È¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ°¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤ò»È¤Ã¤Æ¥°¥é¥Õ¤òºÆÉÁ²è¤·¤Þ¤¹¡£
ºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot (splot) ¥³¥Þ¥ó¥É¤ÎÆâÍƤò½¤Àµ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï °Ê²¼¤â»²¾È: command-line-editing (9)¡£
ľÁ°¤ÎÉÁ²è¥³¥Þ¥ó¥É¤ÎÁ´ÂΤòɽ¼¨¤µ¤»¤ë¤³¤È¤ä¡¢¤½¤ì¤ò history ¤ÎÃæ¤Ë ¥³¥Ô¡¼¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: show plot (114.4)¡£
°ÊÁ°¤Î gnuplot ¤ÎÈǤǤϡ¢multiplot Á´ÂΤϺÆÉÁ²è¤Ç¤¤º¡¢replot ¥³¥Þ¥ó ¥É¤Ï¤½¤Î¤¦¤ÁºÇ¸å¤Î plot Í×ÁǤ·¤«ºÆÀ¸À®¤·¤Þ¤»¤ó¤Ç¤·¤¿¡£gnuplot ¥Ð¡¼¥¸¥ç ¥ó 6 ¤Ç¤Ï¡¢multiplot ¤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤ·¤¿¥³¥Þ¥ó¥É¤ò¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯ $GPVAL_LAST_MULTIPLOT ¤ËÊݸ¤·¡¢¤½¤ì¤Ï¿·¤·¤¤¥³¥Þ¥ó¥É remultiplot ¤ò »È¤Ã¤Æ multiplot Á´ÂΤòºÆÀ¸À®¤¹¤ë¤Î¤ËºÆ¼Â¹Ô¤Ç¤¤Þ¤¹¡£
»î¸³Ãʳ¬ (¾ÜºÙ¤Ïº£¸å¤Î gnuplot ¤ÎÈǤÇÊѹ¹¤Î²ÄǽÀ¤¢¤ê): ľÁ°¤Ë½ñ¤¤¤¿¥°¥é¥Õ¤¬ multiplot ¤Î°ìÉô¤À¤Ã¤¿¾ì¹ç¡¢replot ¥³¥Þ¥ó¥É¤Ï¸½ ºß¤Ï¼«Æ°Åª¤Ë remultiplot ¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤ÎÃí°Õ»ö¹à¤¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: new multiplots (4.9), remultiplot (106)¡£
ÌÀ¼¨Åª¤Ê·«¤êÊÖ¤· (iteration) ¤ò»Ù»ý¤·¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÏÈó¿ä¾©¤È¤·¤Þ¤¹¡£ °Ê²¼»²¾È: iterate (19)¡£ reread ¥³¥Þ¥ó¥É¤Ï¡¢load ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿ gnuplot ¤ÎÆþÎÏ¥Õ¥¡¥¤ ¥ë¤«¤é¤Î¼Â¹Ô¤ò¡¢Ä¾¤Á¤Ë¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤«¤éºÆ³«¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Õ¥¡¥¤ ¥ë¤ÎºÇ½é¤«¤é reread ¥³¥Þ¥ó¥É¤Þ¤Ç¤Î¥³¥Þ¥ó¥É¤Î̵¸Â¥ë¡¼¥×¤òËܼÁŪ¤Ë¼ÂÁõ ¤·¤Æ¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£É¸½àÆþÎϤ«¤é¤ÎÆþÎϤκݤϡ¢reread ¥³¥Þ¥ó¥É¤Ï ²¿¤Î¸úÎϤâ»ý¤Á¤Þ¤»¤ó¡£
reset {bind | errors | session}
¥³¥Þ¥ó¥É reset ¤Ï¡¢set ¥³¥Þ¥ó¥É¤ÇÄêµÁ¤Ç¤¤ë¡¢¥°¥é¥Õ¤Ë´Ø¤¹¤ëÁ´¤Æ¤Î ¥ª¥×¥·¥ç¥ó¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌᤷ¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢load ¤·¤¿¥³¥Þ¥ó ¥É¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¸å¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤òÉüµ¢¤·¤¿¤ê¡¢ÀßÄê¤ò¤¿¤¯¤µ¤óÊÑ ¹¹¤·¤¿¸å¤Ç¸µ¤Î¾õÂÖ¤ËÌᤷ¤¿¤¤¤È¤¤Ê¤É¤ËÊØÍø¤Ç¤¹¡£
°Ê²¼¤Î¤â¤Î¤Ï¡¢reset ¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó:
`set term` `set output` `set loadpath` `set linetype` `set fit` `set encoding` `set decimalsign` `set locale` `set psdir` `set overflow` `set multiplot`
reset ¤Ï¡¢É¬¤º¤·¤â¥×¥í¥°¥é¥àΩ¤Á¾å¤¬¤Ã¤¿½é´ü¾õÂ֤ˤÏÌᤵ¤Ê¤¤¤³¤È¤ËÃí °Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤Ï¡¢½é´üÀßÄê¥Õ¥¡¥¤¥ë gnuplotrc ¤ä $HOME/.gnuplot¡¢ $XDG_CONFIG_HOME/gnuplot/gnuplotrc Æâ¤Î¥³¥Þ¥ó¥É¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÊѹ¹ ¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤â¥ê¥»¥Ã¥È¤µ¤ì¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¹¡£¤·¤«¤· reset session ¤È¤¹¤ì¤Ð¡¢¤½¤ì¤é¤Î¥³¥Þ¥ó¥É¤âºÆ¼Â¹Ô¤·¤Þ¤¹¡£
reset session ¤Ï¡¢¥æ¡¼¥¶ÄêµÁÊÑ¿ô¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤¹¤Ù¤Æ¤òºï½ü¤·¡¢¥Ç¥Õ ¥©¥ë¥È¤ÎÀßÄê¤òÉüµ¢¤·¡¢¥·¥¹¥Æ¥àÁ´ÂΤνé´üÀßÄê¥Õ¥¡¥¤¥ë gnuplotrc ¤È¸Ä¿Í ÍѤνé´üÀߥե¡¥¤¥ë $HOME/.gnuplot¡¢$XDG_CONFIG_HOME/gnuplot/gnuplotrc ¤òºÆ¼Â¹Ô¤·¤Þ¤¹¡£°Ê²¼»²¾È: initialization (27)¡£
reset errors ¤Ï¡¢¥¨¥é¡¼¾õÂÖÊÑ¿ô GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Î¤ß¤ò¥¯ ¥ê¥¢¤·¤Þ¤¹¡£
reset bind ¤Ï¡¢¥¡¼ÄêµÁ¤ò¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÉüµ¢¤·¤Þ¤¹¡£
return <expression>
¥³¥Þ¥ó¥É return ¤Ï¡¢ ¥³¥Þ¥ó¥É exit ¤ä quit ¤¬¡¢¸½ºß¤Î¥³¡¼¥É¥Ö¥í ¥Ã¥¯¤Î¼Â¹Ô¤äÆþÎÏ¥¹¥È¥ê¡¼¥à¤ò½ªÎ»¤¹¤ë¤Î¤ÈƱ¤¸ÊýË¡¤ÇºîÍѤ·¤Þ¤¹¡£ÊÖ¤êÃÍ¤Ï ´Ø¿ô¥Ö¥í¥Ã¥¯Æâ¤Î¼Â¹Ô¥³¡¼¥É¤Î¾õ¶·¤Ç¤Î¤ß°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£
Îã:
function $myfun << EOF local result = 0 if (error-condition) { return -1 } ... body of function ... return result EOF
save {functions | variables | terminal | set | fit | datablocks} '<filename>' {append}
¤É¤ì¤â»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¡¢¥æ¡¼¥¶ÊÑ¿ô¡¢ set ¤ÇÀßÄꤹ¤ë¥ª¥×¥·¥ç¥ó¡¢°ìÈֺǸå¤Ë¼Â¹Ô¤·¤¿ plot ¤« splot ¥³¥Þ¥ó ¥É¤ÎÁ´¤Æ¤òÊݸ¤·¤Þ¤¹¡£set term ¤È set output ¤Î¸½ºß¤Î¾õÂ֤ϡ¢¥³¥á ¥ó¥È¤È¤·¤Æ½ñ¤½Ð¤·¤Þ¤¹¡£
Êݸ¥Õ¥¡¥¤¥ë¤Ë¤Ï¥Æ¥¥¹¥È·Á¼°¤Ç½ÐÎϤ·¡¢¤½¤ì¤Ï load ¥³¥Þ¥ó¥É¤ÇÆɤ߹þ¤à ¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
save terminal ¤Ï¡¢terminal ¤Î¾õÂÖ¤ò¡¢¥³¥á¥ó¥Èµ¹æ¤ò¤Ä¤±¤º¤Ë½ñ¤½Ð ¤·¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢¤Á¤ç¤Ã¤È¤Î´Ö¤À¤± terminal ¤ÎÀßÄê¤òÆþ¤ìÂؤ¨¡¢¤½¤Î ¸åÊݸ¤·¤Æ¤ª¤¤¤¿ terminal ¤Î¾õÂÖ¤òÆɤ߹þ¤à¤³¤È¤Ç°ÊÁ°¤Î terminal ¤ÎÀß Äê¤ËÌ᤹¾ì¹ç¤Ê¤É¤ËÌòΩ¤Á¤Þ¤¹¡£¤¿¤À¡¢Ã±°ì¤Î gnuplot ¥»¥Ã¥·¥ç¥ó¤Ç¤Ï¡¢¸½ ºß¤Î terminal ¤òÊݸ/Éü¸µ¤¹¤ë¾¤ÎÊýË¡¤Ç¤¢¤ë¥³¥Þ¥ó¥É set term push ¤È set term pop ¤ò»È¤¦Êý¤¬¤à¤·¤í¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£°Ê²¼»²¾È: set term (112.89)¡£
save variables ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥æ¡¼¥¶ÊÑ¿ô¤ò½ñ¤½Ð¤·¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã ¥¯¤ÈÆâÉôÊÑ¿ô GPVAL_* GPFUN_* MOUSE_* ARG* ¤Ï½ñ¤½Ð¤·¤Þ¤»¤ó¡£
save fit ¤Ï¡¢Ä¾¶á¤Î fit ¥³¥Þ¥ó¥É¤Ç»ÈÍѤ·¤¿ÊÑ¿ô¤Î¤ß¤òÊݸ¤·¤Þ¤¹¡£¤½ ¤ÎÊݸ¥Õ¥¡¥¤¥ë¤Ï¡¢¸å¤Ç via ¥¡¼¥ï¡¼¥É¤ò»È¤¦¤³¤È¤Ç fit ¥³¥Þ¥ó¥É¤Î½é´ü ²½ÍѤΥѥé¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤È¤·¤ÆÍøÍѤǤ¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ë°Ï¤ï¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ë¤è¤ê save ¥³¥Þ¥ó¥É¤Ëɸ½à½ÐÎϤ˽ÐÎϤµ¤»¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à (Unix ¤Ê¤É) ¤Ç¤Ï¡¢ save ¤Î½ÐÎϤò¥Ñ¥¤¥×·Ðͳ¤Ç¾¤Î³°Éô¥×¥í¥°¥é¥à¤ËÅϤ¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î ¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¥³¥Þ¥ó¥É̾¤ÎÀèƬ¤Ë '|' ¤ò¤Ä¤±¤¿¤â¤Î¤ò»È¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤È¥Ñ¥¤¥×¤òÄ̤·¤ÆÄÌ¿®¤¹¤ë¥×¥í¥°¥é¥à¤Ë¡¢gnuplot ¤ÎÆâ ÉôÀßÄê¤Ë´Ø¤¹¤ë¼óÈø°ì´Ó¤·¤¿¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼ »²¾È: batch/interactive (7)¡£
Îã:
save 'work.gnu' save functions 'func.dat' save var 'state.dat'; save datablocks 'state.dat' append save set 'options.dat' save term 'myterm.gnu' save '-' save '|grep title >t.gp'
¤½¤Î¤Û¤È¤ó¤É¤Î¥ª¥×¥·¥ç¥ó¤ËÂФ·¤Æ¡¢¥³¥Þ¥ó¥É show ¤¬¤½¤ì¤ËÂбþ¤¹¤ë¸½ºß ¤ÎÀßÄê¤òɽ¼¨¤·¤Þ¤¹¡£show palette ¤ä show colornames ¤Ê¤É¤Î¤´¤¯¾¯¿ô ¤Î¥³¥Þ¥ó¥É¤Î¤ß¡¢¸ÄÊ̤ËÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£
set ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤µ¤ì¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë unset ¥³¥Þ¥ó ¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÌ᤹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼¤â»²¾È: reset (109)¡£¤³¤ì¤ÏÁ´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌᤷ¤Þ¤¹¡£
set ¤È unset ¥³¥Þ¥ó¥É¤Ë¤Ï·«¤êÊÖ¤·Àá¤âÍøÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È: plot for (99.8)¡£
½ñ¼°:
set angles {degrees | radians} show angles
set grid polar ¤Ç»ØÄꤵ¤ì¤ë³ÑÅ٤⡢set angles ¤Ç»ØÄꤷ¤¿Ã±°Ì¤ÇÆɤޤì ɽ¼¨¤µ¤ì¤Þ¤¹¡£
set angles ¤ÏÁȤ߹þ¤ß´Ø¿ô sin(x), cos(x), tan(x) ¤Î°ú¿ô¤ä asin(x), acos(x), atan8x), atan2(x), arg(x) ¤Î½ÐÎϤˤâ±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ÁжÊÀþ´Ø ¿ô¤ä¡¢¥Ù¥Ã¥»¥ë´Ø¿ô¤Î°ú¿ô¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£¤·¤«¤·¡¢Ê£ÁÇ¿ô¤ò°ú¿ô¤È¤¹ ¤ëµÕÁжÊÀþ´Ø¿ô¤Î½ÐÎϤˤϱƶÁ¤¬½Ð¤Þ¤¹¡£¤½¤ì¤é¤Î´Ø¿ô¤¬»È¤ï¤ì¤ë¤È¤¤Ï¡¢ set angles radians ¤ÏÆþ½ÐÎϤΰú¿ô¤Î´Ö¤Ë°ì´ÓÀ¤ò»ý¤Ã¤¿´ÉÍý¤ò¼Â¸½¤·¤Æ ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
x={1.0,0.1} set angles radians y=sinh(x) print y #{1.16933, 0.154051} ¤Èɽ¼¨ print asinh(y) #{1.0, 0.1} ¤Èɽ¼¨
¤·¤«¤·¡¢
set angles degrees y=sinh(x) print y #{1.16933, 0.154051} ¤Èɽ¼¨ print asinh(y) #{57.29578, 5.729578} ¤Èɽ¼¨
°Ê²¼¤â»²¾È poldat.dem: set angles ¤òÍѤ¤¤¿¶ËºÂɸÉÁ²è¤Î¥Ç¥â
½ñ¼°:
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>}} {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 arrow {<tag>} show arrow {<tag>}
¥¿¥° <tag> ¤Ï³ÆÌð°õ¤ò¼±Ê̤¹¤ëÀ°¿ô¤Ç¤¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤Î»þ ÅÀ¤Ç̤»ÈÍѤκǤ⾮¤µ¤¤¿ô¤¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¥¿¥°¤ò»È¤¦¤³¤È¤Ç¡¢ ÆÃÄê¤ÎÌð°õ¤òÊѹ¹¤·¤¿¤ê¡¢ºï½ü¤·¤¿¤ê¤Ç¤¤Þ¤¹¡£´û¤Ë¸ºß¤¹¤ëÌð°õ¤Î°À¤òÊÑ ¹¹¤¹¤ë¾ì¹ç¤Ï¡¢¥¿¥°¤òÌÀ¼¨¤·¤¿ set arrow ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤·¤¿¤¤Â°À¤ò»Ø Äꤷ¤Æ¤¯¤À¤µ¤¤¡£
Ìð°õ¤ÎºÇ½é¤ÎüÅÀ¤Î°ÌÃ֤ϡ¢¾ï¤Ë "from" ¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¤â¤¦°ì¤Ä¤ÎüÅÀ¤Ï °Ê²¼¤ÇÀâÌÀ¤¹¤ë 3 ¤Ä¤Î°Û¤Ê¤ë»ÅÁȤߤΤ¤¤º¤ì¤«¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£<position> ¤Ï x,y ¤¢¤ë¤¤¤Ï x,y,z ¤Ç»ØÄꤷ¤Þ¤¹¡£¤½¤·¤Æ¤½¤ÎÁ°¤ËºÂɸ·Ï¤òÁªÂò¤¹¤ë¤¿ ¤á¤Ë first, second, graph, screen, character ¤òÃÖ¤¯¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£ºÂɸ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 0 ¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï°Ê ²¼»²¾È: coordinates (11)¡£ºÇ½é¤ÎüÅÀ¤ËÂФ¹¤ëºÂɸ»ØÄê»Ò¤Ï¡¢2 ÈÖÌܤÎüÅÀ¤Ë ¤Ï±Æ¶Á¤·¤Þ¤»¤ó¡£
1) "to <position>" ¤Ï¡¢¤â¤¦°ì¤Ä¤ÎüÅÀ¤ÎÀäÂкÂɸ¤ò»ØÄꤷ¤Þ¤¹¡£
2) "rto <position>" ¤Ï¡¢"from" ¤Î°ÌÃÖ¤«¤é¤Î¤º¤ì¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢ Àþ·Á¼´ (ÈóÂпô¼´)¡¢¤ª¤è¤Ó graph, screen ºÂɸ¤ËÂФ·¤Æ¤Ï¡¢»ÏÅÀ¤È½ªÅÀ ¤Îµ÷Î¥¤¬Í¿¤¨¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤËÂбþ¤·¤Þ¤¹¡£°ìÊý¡¢Âпô¼´¤ËÂФ·¤Æ¤Ï¡¢Í¿¤¨ ¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤϡ¢»ÏÅÀ¤«¤é½ªÅÀ¤Ø¤ÎÇÜ¿ô¤ËÂбþ¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Âпô¼´¤Î ¾ì¹ç¡¢ÁêÂÐŪ¤ÊÃͤȤ·¤Æ 0 ¤äÉé¤ÎÃͤòÍ¿¤¨¤ë¤³¤È¤Ïµö¤µ¤ì¤Þ¤»¤ó¡£
3) "length <coordinate> angle <angle>" ¤Ï¡¢¥°¥é¥ÕÊ¿ÌÌÆâ¤Ç¤ÎÌð°õ¤ÎÊý¸þ ¤ò»ØÄꤷ¤Þ¤¹¡£length ¤Ë¤ÏǤ°Õ¤ÎºÂɸ·Ï¤òŬÍѤǤ¤Þ¤¹¡£angle ¤Îñ°Ì¤Ï¾ï ¤ËÅ٤ˤʤäƤ¤¤Þ¤¹¡£
Ìð°õ¤Î¾¤Î°À¤â¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿Ìð¤Î¥¹¥¿¥¤¥ë¤Ç¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É set arrow ¤Ç¤½¤ì¤¾¤ìÍ¿¤¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£Ìð°õ¤Î¾¤Î°À¤Î¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï°Ê²¼»²¾È: arrowstyle (112.86.1)¡£
Îã:
¸¶ÅÀ¤«¤é (1,2) ¤Ø¤ÎÌð°õ¤ò¥æ¡¼¥¶ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë 5 ¤ÇÉÁ¤¯¤Ë¤Ï:
set arrow to 1,2 ls 5
ÉÁ²èÎΰè¤Îº¸²¼³Ñ¤«¤é (-5,5,3) ¤Ø¥¿¥°ÈÖ¹æ 3 ¤ÎÌð°õ¤òÉÁ¤¯¤Ë¤Ï:
set arrow 3 from graph 0,0 to -5,5,3
Ìð°õ¤Îü¤ò 1,1,1 ¤ËÊѹ¹¤·¡¢ÌðÀè¤ò³°¤·¤ÆÉý¤ò 2 ¤Ë¤¹¤ë¤Ë¤Ï:
set arrow 3 to 1,1,1 nohead lw 2
x=3 ¤Î½ê¤Ø¥°¥é¥Õ¤Î²¼¤«¤é¾å¤Þ¤Ç±ôľÀþ¤òÉÁ¤¯¤Ë¤Ï:
set arrow from 3, graph 0 to 3, graph 1 nohead
T »ú·¿¤ÎÌðÀè¤òξü¤Ë»ý¤Ä±ôľÊý¸þ¤ÎÌð¤òÉÁ¤¯¤Ë¤Ï:
set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90
»ÏÅÀ¤«¤é¤ÎÁêÂÐŪ¤Êµ÷Î¥¤ò¥°¥é¥ÕºÂɸ¤ÇÍ¿¤¨¤ÆÌð¤òÉÁ¤¯¤Ë¤Ï:
set arrow from 0,-5 rto graph 0.1,0.1
x ¤ÎÂпô¼´¤ËÁêÂÐŪ¤Ê½ªÅÀ¤ò»ØÄꤷ¤ÆÌð¤òÉÁ¤¯¾ì¹ç:
set logscale x set arrow from 100,-5 rto 10,10
¤³¤ì¤Ï 100,-5 ¤«¤é 1000,5 ¤Þ¤Ç¤ÎÌð¤òÉÁ¤¤Þ¤¹¡£Àþ·Á¼´ (y) ¤ËÂФ·¤Æ¤ÏÁê ÂÐŪ¤ÊºÂɸ 10 ¤¬ "º¹ 10" ¤ò°ÕÌ£¤¹¤ë¤Î¤ËÂФ·¡¢Âпô¼´ (x) ¤ËÂФ·¤Æ¤ÏÁêÂРŪ¤ÊºÂɸ 10 ¤Ï "ÇÜ¿ô 10" ¤È¤·¤ÆƯ¤¤Þ¤¹¡£
2 ÈÖ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:
unset arrow 2
Á´¤Æ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:
unset arrow
Á´¤Æ¤ÎÌð°õ¤Î¾ðÊó¤ò (¥¿¥°¤Î½ç¤Ë) ¸«¤ë¤Ë¤Ï:
show arrow
½ñ¼°:
set autoscale {<axis>{|min|max|fixmin|fixmax|fix} | fix | keepfix} set autoscale noextend unset autoscale {<axis>} show autoscale
¤³¤³¤Ç¡¢<axis> (¼´) ¤Ï x, y, z, cb, x2, y2, xy, paxis <p> ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¼´Ì¾¤Î¸å¤í¤Ë min ¤Þ¤¿¤Ï max ¤òÄɲä¹¤ë ¤È¡¢¤½¤ì¤Ï gnuplot ¤Ë¤½¤Î¼´¤ÎºÇ¾®ÃÍ¡¢¤Þ¤¿¤ÏºÇÂçÃͤΤߤò¼«Æ°½Ì¼Ü¤µ¤» ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¼´Ì¾¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢Á´¤Æ¤Î¼´¤¬¼«Æ°½Ì¼Ü¤ÎÂоݤȤʤê¤Þ¤¹¡£
ÆÈΩÊÑ¿ô¼´ (plot ¤Î¤È¤¤Ï x ¼´¡¢splot ¤Î¤È¤¤Ï x,y ¼´) ¤Î¼«Æ°½Ì¼Ü µ¡Ç½¤Ï¡¢ÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤Ë¹ç¤¦¤è¤¦¤Ë¤½¤ì¤é¤Î¼´¤ÎÈϰϤòÄ´À°¤·¤Þ¤¹¡£ÉÁ²è ¤¬´Ø¿ô¤Î¤ß (ÆþÎϥǡ¼¥¿¤Ê¤·) ¤Î¾ì¹ç¡¢¤³¤ì¤é¤Î¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤Ï¡¢¤Ê¤ó¤Î ¸ú²Ì¤â»ý¤Á¤Þ¤»¤ó¡£
½¾Â°ÊÑ¿ô¼´ (plot ¤Î¤È¤¤Ï y ¼´¡¢splot ¤Î¤È¤¤Ï z ¼´) ¤Î¼«Æ°½Ì¼Üµ¡ ǽ¤Ï¡¢ÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤ä´Ø¿ô¤Ë¹ç¤¦¤è¤¦¤Ë¤½¤ì¤é¤Î¼´¤ÎÈϰϤòÄ´À°¤·¤Þ¤¹¡£
¼´¤ÎÈϰϤÎÄ´À°¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê¹ï¤ß¤Ø¤Î±äŤò¹Ô¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢ ü¤Î¥Ç¡¼¥¿¤ÎºÂɸ¤¬ÌÜÀ¹¤ê¹ï¤ß¤ËÃúÅÙ°ìÃפ¹¤ë¾ì¹ç¡¢¥Ç¡¼¥¿¤ÈÉÁ²è¶³¦¤È¤Î´Ö ¤Ë¤Ï²¿¤â¤Ê¤¤¥¹¥Ú¡¼¥¹¤¬¤Ç¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£noextend ¤ò»È¤¦¤³¤È¤Ç¡¢ ¤³¤Î;·×¤Ê¥¹¥Ú¡¼¥¹¤ÎºîÀ®¤òÍÞÀ©¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É set offset ¤ò»È¤¦¤³ ¤È¤Ç¡¢¤½¤ì¤ò¤è¤êÁý¤ä¤¹¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤µ¤é¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set xrange (112.122), set offsets (112.63)¡£
ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤â¼«Æ°½Ì¼Üµ¡Ç½¤Ï͸ú¤Ç¤¹ (°Ê²¼»²¾È: set parametric (112.68))¡£¤³¤Î¾ì¹ç¡¢¤è¤ê¿¤¯¤Î½¾Â°ÊÑ¿ô¤¬¤¢¤ë¤Î¤Ç¡¢x, y, z ³Æ ¼´¤Ë´Ø¤·¤Æ¡¢¤è¤ê¿¤¯¤ÎÀ©¸æ¤¬¹Ô¤ï¤ì¤Þ¤¹¡£ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤ÎÆÈΩÊÑ¿ô (²¾ ÊÑ¿ô) ¤Ï plot ¤Ç¤Ï t ¤Ç splot ¤Ç¤Ï u, v ¤Ç¤¹¡£¤½¤·¤ÆÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤Ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï (t, u, v, x, y, z) ¤ÎÁ´¤Æ¤ÎÉÁ²èÈϰϤòÀ©¸æ¤·¡¢x, y, z ¤ÎÈϰϤμ«Æ°ÀßÄê¤ò´°Á´¤Ë¹Ô¤¤¤Þ¤¹¡£
ÌÜÀ¹¤ê¤¬Âè 2 ¤Î¼´¤Ëɽ¼¨¤µ¤ì¡¢¤·¤«¤â¤³¤ì¤é¤Î¼´¤ËÂФ¹¤ëÉÁ²è¤¬¹Ô¤ï¤ì¤Ê¤« ¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢x2range ¤È y2range ¤Ï xrange ¤È yrange ¤ÎÃͤò¼õ¤±·Ñ¤®¤Þ ¤¹¡£¤³¤ì¤Ï¡¢ÈϰϤΤº¤é¤·¤Î¼Â¹Ô¤ä¡¢ÈϰϤòÀ°¿ô¸Ä¤ÎÌÜÀ¹¤êÉý¤Ë¼«Æ°¿½Ì¤¹¤ë ¡ÖÁ°¡×¤Ë¹Ô¤¤¤Þ¤¹¤Î¤Ç¡¢¾ì¹ç¤Ë¤è¤Ã¤Æͽ´ü¤·¤Ê¤¤·ë²Ì¤ò¤â¤¿¤é¤¹²ÄǽÀ¤¬¤¢¤ê ¤Þ¤¹¡£¤³¤ì¤òÈò¤±¤ë¤Î¤Ë¡¢Âè 2 ¼´¤ÎÈϰϤòÂè 1 ¼´¤ÎÈϰϤËÌÀ¼¨Åª¤Ë¥ê¥ó¥¯ (link) ¤¹¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set link (112.42)¡£
set autoscale noextend
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï¼´¤ÎÈϰϤ賦¤ò¡¢ÉÁ²è¥Ç¡¼¥¿Á´ÂΤò´Þ¤à¡¢ ºÇ¤â¶á¤¤ÌÜÀ¹¤ê¥é¥Ù¥ë°ÌÃÖ¤ËÀßÄꤷ¤Þ¤¹¡£¥¡¼¥ï¡¼¥É fixmin, fixmax, fix, noextend ¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê°ÌÃ֤ޤǤÎÈϰϤμ«Æ°³ÈÂç¤ò gnuplot ¤Ë ¹Ô¤ï¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¼´¤ÎÈϰϤ賦¤Ï¡¢°ìÈÖü¤Ë¤¢¤ë¥Ç¡¼¥¿ÅÀ ¤ÎºÂɸÃͤ˴°Á´¤Ë°ìÃפ·¤Þ¤¹¡£set autoscale noextend ¤Ï¡¢ set autscale fix ¤ÈƱ¤¸¤Ç¤¹¡£¼´¤ÎÈÏ°Ï»ØÄꥳ¥Þ¥ó¥É¤Î¸å¤í¤Ë¥¡¼¥ï¡¼¥É noextend ¤òÄɲ乤ì¤Ð¡¢°ì¤Ä¤Î¼´¤ÎÈϰϤαäŵ¡Ç½¤À¤±Ìµ¸ú¤Ë¤¹¤ë¤³¤È¤â ¤Ç¤¤Þ¤¹¡£Îã:
set yrange [0:*] noextend
set autoscale keepfix ¤Ï¡¢fix ¤ÎÀßÄê¤òÊѹ¹¤»¤º¤Ë»Ä¤·¤¿¤Þ¤Þ¡¢¤¹¤Ù¤Æ¤Î ¼´¤ò¼«Æ°½Ì¼Ü¤Ë¤·¤Þ¤¹¡£
°Ê²¼¤Ï y ¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤ò»ØÄꤷ¤Þ¤¹ (¾¤Î¼´¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó):
set autoscale y
°Ê²¼¤Ï y ¼´¤ÎºÇ¾®ÃͤËÂФ·¤Æ¤Î¤ß¼«Æ°½Ì¼Üµ¡Ç½¤ò»ØÄꤷ¤Þ¤¹ (y ¼´¤ÎºÇÂçÃÍ¡¢ ¤ª¤è¤Ó¾¤Î¼´¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó):
set autoscale ymin
°Ê²¼¤Ï x2 ¼´¤ÎÎÙ¤ÎÌÜÀ¹¤ê¤Ø¤Î¼«Æ°ÈϰϳÈÂ絡ǽ¤ò̵¸ú¤Ë¤·¡¢¤è¤Ã¤ÆÉÁ²è¥Ç¡¼ ¥¿Æâ¡¢¤Þ¤¿¤Ï´Ø¿ô¤ËÂФ¹¤ëÃúÅÙ¤ÎÉÁ²èÈϰϤò°Ý»ý¤·¤Þ¤¹:
set autoscale x2fixmin set autoscale x2fixmax
°Ê²¼¤Ï x, y ξ¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤ò»ØÄꤷ¤Þ¤¹:
set autoscale xy
°Ê²¼¤Ï x, y, z, x2, y2 Á´¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤ò»ØÄꤷ¤Þ¤¹:
set autoscale
°Ê²¼¤Ï x, y, z, x2, y2 Á´¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤ò¶Ø»ß¤·¤Þ¤¹:
unset autoscale
°Ê²¼¤Ï z ¼´¤Î¤ß¤Ë¤Ä¤¤¤Æ¼«Æ°½Ì¼Üµ¡Ç½¤ò¶Ø»ß¤·¤Þ¤¹:
unset autoscale z
°Ê²¼¤â»²¾È ¶ËºÂɸ¤Î¥Ç¥â¡£
½ñ¼°:
set border {<integer>} {front | back | behind} {linestyle | ls <line_style>} {linetype | lt <line_type>} {linewidth | lw <line_width>} {linecolor | lc <colorspec>} {dashtype | dt <dashtype>} {polar} unset border show border
set view 56,103 ¤Î¤è¤¦¤ËǤ°Õ¤ÎÊý¸þ¤Çɽ¼¨¤µ¤ì¤¦¤ë splot ¤Ç¤Ï¡¢ x-y Ê¿Ì̾å¤Î 4 ¤Ä¤Î³Ñ¤Ï ¼êÁ° (front), ¸å¤í (back) , º¸ (left), ±¦ (right) ¤Î¤è¤¦¤Ë¸Æ¤Ð¤ì¤Þ¤¹¡£¤â¤Á¤í¤ó¤³¤ÎƱ¤¸ 4 ¤Ä¤Î³Ñ¤ÏÅ·°æ¤ÎÌ̤ˤ⠤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Î㤨¤Ð x-y Ê¿Ì̾å¤Î¸å¤í¤È±¦¤Î³Ñ¤ò¤Ä¤Ê¤°¶³¦¤ò "Äì¤Î±¦¸å¤í (bottom right back)" ¤È¸À¤¤¡¢Äì¤ÈÅ·°æ¤Î¼êÁ°¤Î³Ñ¤ò¤Ä¤Ê¤°¶ ³¦¤ò "±ôľ¼êÁ° (front vertical)" ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹ (¤³¤Î̿̾ˡ¤Ï¡¢ÆÉ ¼Ô¤¬²¼¤Îɽ¤òÍý²ò¤¹¤ë¤¿¤á¤À¤±¤Ë»È¤ï¤ì¤Þ¤¹)¡£
ÏȤϡ¢12 ¥Ó¥Ã¥È¤ÎÀ°¿ô¤ËÉä¹æ²½¤µ¤ì¤Æ¤¤¤Þ¤¹: ²¼°Ì 4 ¥Ó¥Ã¥È¤Ï plot ¤ËÂÐ ¤¹¤ë³°ÏÈ¡¢splot ¤ËÂФ·¤Æ¤ÏÄìÌ̤γ°ÏÈ¡¢¼¡¤Î 4 ¥Ó¥Ã¥È¤Ï splot ¤Î±ôľ ¤Ê³°ÏÈ¡¢¤½¤·¤Æ¾å°Ì 4 ¥Ó¥Ã¥È¤Ï splot ¤ÎÅ·°æÌ̤γ°ÏȤòÀ©¸æ¤·¤Þ¤¹¡£¤è¤Ã ¤Æ³°ÏȤÎÀßÄê¤Ï¡¢¼¡¤Îɽ¤ÎÂбþ¤¹¤ë¹àÌܤοô»ú¤ÎϤˤʤê¤Þ¤¹:
¥°¥é¥Õ¶³¦¤ÎÉä¹æ²½ | ||
¥Ó¥Ã¥È | plot | splot |
1 | ²¼ | Äì¤Îº¸¼êÁ° |
2 | º¸ | Äì¤Îº¸¸å¤í |
4 | ¾å | Äì¤Î±¦¼êÁ° |
8 | ±¦ | Äì¤Î±¦¸å¤í |
16 | ¸ú²Ì¤Ê¤· | ±ôľº¸ |
32 | ¸ú²Ì¤Ê¤· | ±ôľ¸å¤í |
64 | ¸ú²Ì¤Ê¤· | ±ôľ±¦ |
128 | ¸ú²Ì¤Ê¤· | ±ôľ¤Î¼êÁ° |
256 | ¸ú²Ì¤Ê¤· | Å·°æ¤Îº¸¸å¤í |
512 | ¸ú²Ì¤Ê¤· | Å·°æ¤Î±¦¸å¤í |
1024 | ¸ú²Ì¤Ê¤· | Å·°æ¤Îº¸¼êÁ° |
2048 | ¸ú²Ì¤Ê¤· | Å·°æ¤Î±¦¼êÁ° |
4096 | ¶ËºÂɸ·Ï | ¸ú²Ì¤Ê¤· |
¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄêÃÍ¤Ï 31 ¤Ç¡¢¤³¤ì¤Ï plot ¤Ç¤Ï 4 Êý¸þ¤Î³°ÏÈÁ´¤Æ¡¢ splot ¤Ç¤ÏÄìÌ̤ÎÏÈÀþÁ´Éô¤È z ¼´¤òÉÁ¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
3 ¼¡¸µ¤Î 4 Ëܤαôľ¤Ê¶³¦Àþ¤È¤ÏÊ̤ˡ¢¥³¥Þ¥ó¥É splot ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¡¢ ¶ÊÌ̤Τ½¤ì¤¾¤ì¤Î³Ñ¤«¤é¥°¥é¥Õ¤Î¾²Ì̤ؤαôľÀþ¤òÉÁ²è¤·¤Þ¤¹¡£set border ¤Ï¤³¤Î±ôľÀþ¤òÀ©¸æ¤·¤Þ¤»¤ó¡£Âå¤ï¤ê¤Ë¡¢set/unset cornerpoles ¤ò»È¤Ã¤Æ ¤¯¤À¤µ¤¤¡£
2 ¼¡¸µÉÁ²è¤Ç¤Ï¶³¦¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤΰìÈÖ¾å¤ËÉÁ¤«¤ì¤Þ¤¹ (front)¡£ ¤â¤·¶³¦¤òÉÁ²èÍ×ÁǤβ¼¤ËÉÁ¤«¤»¤¿¤¤¾ì¹ç¤Ï¡¢set border back ¤È¤·¤Æ¤¯¤À ¤µ¤¤¡£
3 ¼¡¸µ±£Àþ½èÍý (hidden3d) ÉÁ²è¤Ç¤Ï¡¢Ä̾ï¤Ï¶³¦¤ò¹½À®¤¹¤ëÀþ¤âÉÁ²èÍ×ÁÇ¤È Æ±Íͤ˱£Àþ½èÍý¤ÎÂоݤˤʤê¤Þ¤¹¡£set border behind ¤È¤¹¤ë¤È¤³¤Î¥Ç¥Õ¥© ¥ë¥È¤ÎµóÆ°¤¬ÊѤï¤ê¤Þ¤¹¡£
<linestyle>, <linetype>, <linewidth>, <linecolor>, <dashtype> ¤ò»ØÄꤷ ¤Æ¡¢ÏÈÀþ¤ÎÉÁ²è¤Ë¤½¤ì¤é¤òÈ¿±Ç¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹ (¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý ¡¼¥È¤¹¤ë¤â¤Î¤Ë¸ÂÄꤵ¤ì¤Þ¤¹)¡£ ¤µ¤é¤Ë¡¢¼´¤Î¹ï¤ß (tics) ¤òÉÁ²è¤¹¤ëºÝ¤â¡¢¤½¤ì¤é¤ò¶³¦Àþ¾å¤ÇÉÁ²è¤¹¤ë¤«¡¢ ¼´¾å¤ÇÉÁ²è¤¹¤ë¤«¤Ë´Ø¤ï¤é¤º¡¢¤³¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò»ÈÍѤ·¤Þ¤¹¡£
plot ¤Ç¤Ï¡¢Âè 2 ¼´¤ò͸ú¤Ë¤¹¤ë¤³¤È¤Ç¡¢²¼¤Èº¸°Ê³°¤Î¶³¦¤ËÌÜÀ¹¤ê¤òÉÁ¤¯ ¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: xtics (112.123)¡£
"unset surface; set contour base" ¤Ê¤É¤Ë¤è¤Ã¤Æ splot ¤ÇÄìÌÌ¤Ë¤Î¤ß ÉÁ²è¤¹¤ë¾ì¹ç¡¢±ôľÀþ¤äÅ·°æ¤Ï¤½¤ì¤é¤¬»ØÄꤵ¤ì¤Æ¤¤¤Æ¤âÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£
set grid ¤Î¥ª¥×¥·¥ç¥ó 'back', 'front', 'layerdefault' ¤Ç¤â¡¢ÉÁ²è½ÐÎÏ ¤Î¶³¦Àþ¤ò½ñ¤¯½çÈÖ¤òÀ©¸æ¤Ç¤¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É polar ¤Ï¡¢¶ËºÂɸ¥°¥é¥Õ¤Ë±ß·Á¤Î¶³¦¤ò¤Ä¤±¤Þ¤¹¡£
Îã:
°Ê²¼¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÏÈÀþ¤òÉÁ¤¤Þ¤¹:
set border
°Ê²¼¤Ï¡¢plot ¤Ç¤Ïº¸¤È²¼¡¢splot ¤Ç¤ÏÄìÌ̤κ¸¼êÁ°¤Èº¸¸å¤í¤ÎÏÈÀþ¤òÉÁ ¤¤Þ¤¹:
set border 3
°Ê²¼¤Ï¡¢splot ¤Ç¼þ¤ê¤Ë´°Á´¤ÊÈ¢¤òÉÁ¤¤Þ¤¹:
set border 4095
°Ê²¼¤Ï¡¢¼êÁ°¤Î±ôľÌ̤ÈÅ·°æ¤Î¤Ê¤¤È¢¤òÉÁ¤¤Þ¤¹:
set border 127+256+512 # ¤Þ¤¿¤Ï set border 1023-128
°Ê²¼¤Ï¡¢plot ¤ËÂФ·¤Æ¾å¤È±¦ÏÈÀþ¤Î¤ß¤òÉÁ¤¡¢¤½¤ì¤é¤ò¼´¤È¤·¤ÆÌÜÀ¹¤ê¤Å ¤±¤·¤Þ¤¹:
unset xtics; unset ytics; set x2tics; set y2tics; set border 12
½ñ¼°:
set boxwidth {<width>} {absolute|relative} show boxwidth
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÎÙ¤ê¹ç¤¦ËÀ¤¬Àܤ¹¤ë¤è¤¦¤Ë³Æ¡¹¤ÎËÀ¤ÎÉý¤¬¹¤²¤é¤ì¤Þ¤¹¡£¤½ ¤ì¤È¤Ï°Û¤Ê¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤òÀßÄꤹ¤ë¤Ë¤Ï set boxwidth ¥³¥Þ¥ó¥É¤ò»ÈÍÑ ¤·¤Þ¤¹¡£relative ¤Î¾ì¹ç¤ÎÉý¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤ËÂФ¹¤ëÈæ¤Ç¤¢¤ë¤È²ò¼á ¤µ¤ì¤Þ¤¹¡£
½¤¾þ»Ò relative ¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢ËÀ¤ÎÉý (boxwidth) ¤È¤·¤Æ»ØÄꤵ ¤ì¤¿ÌÀ¼¨Åª¤ÊÃͤϡ¢¸½ºß¤Î x ¼´¤Îñ°Ì¤Ç¤Î¿ô»ú (absolute) ¤Ç¤¢¤ë¤È²ò¼á ¤µ¤ì¤Þ¤¹¡£x ¼´¤¬Âпô¼´ (°Ê²¼»²¾È: set log (112.46)) ¤Ç¤¢¤ë¾ì¹ç¡¢boxwidth ¤ÎÃÍ ¤Ï¼ÂºÝ¤Ë¤Ï x=1 ¤Ç¤Î¤ß "ÀäÂÐŪ" ¤È¤Ê¤ê¡¢¤½¤ÎʪÍýŪ¤ÊŤµ¤¬¼´Á´ÂΤòÄ̤¸ ¤ÆÊÝ»ý¤µ¤ì¤Þ¤¹ (¤¹¤Ê¤ï¤Á¡¢ËÀ¤Ï x ºÂɸ¤ÎÁý²Ã¤Ë¤È¤â¤Ê¤Ã¤Æ¶¹¤¯¤Ê¤Ã¤¿¤ê¤Ï ¤·¤Þ¤»¤ó)¡£Âпô¼´¤Î x ¼´¤ÎÈϰϤ¬ x=1 ¤«¤éÎ¥¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Å¬ÀÚ¤ÊÉý¤ò ¸«½Ð¤¹¤Ë¤Ï²¿ÅÙ¤«»î¤·¤Æ¤ß¤ëɬÍפ¬¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢boxes ¤ä boxerrorbars ¥¹¥¿¥¤¥ë¤ÎÉý»ØÄêÍѤÎÄɲäΠ¥Ç¡¼¥¿Îó¤ÎÌÀ¼¨Åª¤ÊÃͤ¬¤¢¤ì¤Ð¤½¤ì¤Ë¤è¤Ã¤ÆÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: style boxes (36), style boxerrorbars (35)¡£
ËÀ¤ÎÉý¤ò¼«Æ°Åª¤Ë¥»¥Ã¥È¤¹¤ë¤Ë¤Ï
set boxwidth
ËÀ¤ÎÉý¤ò¼«Æ°Åª¤ÊÃͤÎȾʬ¤Ë¤¹¤ë¤Ë¤Ï
set boxwidth 0.5 relative
ËÀ¤ÎÉý¤òÀäÂÐŪ¤ÊÃÍ 2 ¤Ë¤¹¤ë¤Ë¤Ï
set boxwidth 2 absolute
set boxdepth {<y extent>} | square
¥³¥Þ¥ó¥É set boxdepth ¤Ï¡¢splot with boxes ¤Çºî¤Ã¤¿ 3 ¼¡¸µ¥°¥é¥Õ¤Ë ¤Î¤ß±Æ¶Á¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢y ¼´Êý¸þ¤Î³ÆÈ¢¤Î±ü¹Ô¤ (È¢¤ÎÂÀ¤µ) ¤òÀßÄꤷ¤Þ¤¹¡£ set boxdepth square ¤Ï¡¢y ¼´Êý¸þ¤Î±ü¹Ô¤¤ò¡¢x ¤È y ¤Î¼´¤Î½Ì¼Ü¤È¤Ï̵ ´Ø·¸¤Ë¡¢¸«¤¿Ìܤ¬ÀµÊý·Á¤ÎÃÇÌ̤ˤʤë¤è¤¦¤ËÁªÂò¤·¤è¤¦¤È¤·¤Þ¤¹¡£
set chi_shapes fraction <value> unset chi_shapes
±úÊñ (concave hull) ¥Õ¥£¥ë¥¿¤Ï¡¢ÆÃÀĹ chi_length ¤ÇÄêµÁ¤µ¤ì¤ë¦Ö-·Á¾õ (chi-shapes) ¤òÀ¸À®¤·¤Þ¤¹¡£chi_length ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¤½¤ì ¤Ï¶³¦Â¿³Ñ·Á (ÆÌÊñ) ¤Ë¤ª¤±¤ëºÇŤÎÊÕ¤ÎÈæΨ¤ËÅù¤·¤¤ÃͤòÁªÂò¤·¤Þ¤¹¡£¤³¤Î ÈæΨ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 0.6 ¤Ç¤¹¤¬¡¢¤½¤ì¤Ï¤³¤Î¥³¥Þ¥ó¥É¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£¤½¤Î Ãͤò 1.0 ¤Ë¤¹¤ë¤È·ë²Ì¤ÎÊÄÊñ¤ÏÆÌÊñ¤Ë½Ì¤Þ¤ê¤Þ¤¹¡£¤è¤ê¾®¤µ¤¯¤¹¤ë¤È¡¢±úÉô ʬ¤¬¤è¤êÁý¤¨¤ëÊÄÊñ¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: concavehull (99.3.5.3)¡£ ¥³¥Þ¥ó¥É unset chi_shapes ¤ÏÈæΨ 0.6 ¤òÉüµ¢¤·¡¢chi_length ÊÑ¿ô¤ò̤Äê µÁ¤Ë¤·¤Þ¤¹¡£
set colormap new <colormap-name> set colormap <colormap-name> range [<min>:<max>] show colormaps
set colormap new <name> ¤Ï¡¢¥«¥é¡¼¥Þ¥Ã¥×ÇÛÎó <name> ¤òºîÀ®¤·¡¢¸½ºß¤Î ¥Ñ¥ì¥Ã¥ÈÀßÄê¤ò¤½¤ì¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£¤³¤ÎÊݸ¤·¤¿¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢32bit ¤Î ARGB ¥«¥é¡¼ÃͤÎÇÛÎó¤È¤·¤Æ¤Î¤µ¤é¤Ê¤ëÁàºî¤â²Äǽ¤Ç¤¹¤·¡¢¤½¤Î¸å¤Î plot ¤Ç ̾Á°¤ò»ØÄꤷ¤Æ»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
°Ê²¼¤Ï¡¢°Å¤¤ÀÖ¤«¤éÇò¤ØϢ³¤¹¤ë¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤·¡¢¤½¤ì¤ò 'Reds' ¤È¤¤¤¦Ì¾ Á°¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥ÈÇÛÎó¤ËÊݸ¤·¡¢¥«¥é¡¼¥Þ¥Ã¥×¤Î¤¹¤Ù¤Æ¤Î¥¨¥ó¥È¥ê¤ò¾¯¤·¤À ¤±Æ©ÌÀ²½¤¹¤ëÎã¤Ç¤¹¡£¤³¤Î̾Á°ÉÕ¤¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢¸å¤Ç pm3d ¶ÊÌ̤˿§ÉÕ¤± ¤¹¤ë¤Î¤Ë»È¤Ã¤Æ¤¤¤Þ¤¹¡£Ì¾Á°ÉÕ¤¥«¥é¡¼¥Þ¥Ã¥×¤Î¥¢¥ë¥Õ¥¡¥Á¥ã¥ó¥Í¥ëÃͤϡ¢ ARGB Àþ°À¤Ë½¾¤¦¡¢¤¹¤Ê¤ï¤Á 0 ¤¬ÉÔÆ©ÌÀ¡¢0xff ¤¬´°Á´¤ÊÆ©ÌÀ¤Ç¤¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
set palette defined (0 "dark-red", 1 "white") set colormap new Reds do for [i=1:|Reds|] { Reds[i] = Reds[i] | 0x3F000000 } splot func(x,y) with pm3d fillcolor palette Reds
z ¤ÎÃͤ«¤é¤³¤Î¥«¥é¡¼¥Þ¥Ã¥×¤Ø¤Î¼ÌÁü¤Ï¡¢Ã¼¤ÎÃͤËÂбþ¤¹¤ë z ¤ÎºÇ¾®ÃÍ¤ÈºÇ ÂçÃͤò»ØÄꤹ¤ë¤³¤È¤ÇÄ´À°¤Ç¤¤Þ¤¹¡£Îã:
set colormap Reds range [0:10]
ÈϰϤòÀßÄꤷ¤Ê¤¤¾ì¹ç¡¢¤¢¤ë¤¤¤ÏºÇ¾®ÃͤȺÇÂçÃͤ¬Æ±¤¸Ãͤξì¹ç¤Ï¡¢¸½ºß¤Î cbrange ¤Î¸Â³¦Ãͤò»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: set cbrange (112.153)¡£
¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢Ä¹Êý·ÁÎΰè¤ò¥°¥é¥Ç¡¼¥·¥ç¥óÅɤꤹ¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ °Ê²¼»²¾È: pixmap colormap (112.70.1)¡£
set colorsequence {default|classic|podo}
set colorsequence default ¤Ï¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤ 8 ¿§¤Î½ä²óÎó¤òÁª Âò¤·¤Þ¤¹¡£°Ê²¼»²¾È: set linetype (112.41), colors (20)¡£
set colorsequence classic ¤Ï¡¢½ÐÎÏ·Á¼°Ê̤ˤ½¤Î¥É¥é¥¤¥Ð¤¬ÍÑ°Õ¤¹¤ëÀþ¿§ ¤ÎÎó¤òÁªÂò¤·¤Þ¤¹¡£¿§¤Î¼ïÎà¤Ï¡¢4 ¿§¤«¤é 100 ¿§Ä¶¤Þ¤ÇÉý¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½ ¤Î¿¤¯¤Ï¡¢ÀÖ¡¢ÎС¢ÀÄ¡¢»ç¡¢¿å¿§¡¢²«¿§¡¢¤Ç»Ï¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤¬¥Ð¡¼¥¸¥ç¥ó 5 °ÊÁ°¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤Ç¤¹¡£
set colorsequence podo ¤Ï¡¢Wong (2011) [Nature Methods 8:441] ¤Ç¿ä¾© ¤µ¤ì¤Æ¤¤¤ë¡¢P ·¿¡¢D ·¿ (Protanopia, Deuteranopia) ¤Î¿§¼å¼Ô¤¬Íưפ˶èÊÌ ¤Ç¤¤ë 8 ¿§¤ÎÁȤòÁªÂò¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¾ì¹ç¤Ç¤â¡¢¿§Îó¤ÎŤµ¤È¤½¤Î¿§¤Ë¤Ä¤¤¤Æ¤Ï¤µ¤é¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤Ç¤¤Þ ¤¹¡£°Ê²¼»²¾È: set linetype (112.41), colors (20)¡£
set clip {points|one|two|radial} unset clip {points|one|two|radial} show clip
¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ:
unset clip points set clip one unset clip two unset clip radial
¥°¥é¥ÕÎΰè¤Î¶³¦Æâ¤ËÃæ¿´¤¬¤¢¤ë¥Ç¡¼¥¿ÅÀ¤Ï¡¢¤½¤ÎÅÀ¤òɽ¤¹µ¹æ¤Î¥µ¥¤¥º¤¬¤½ ¤Îµ¹æ¤ò¶³¦Àþ¤Î³°¤Ë¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢Ä̾ï¤ÏÉÁ²è¤·¤Þ¤¹¡£ set clip points ¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤½¤Î¤è¤¦¤ÊÅÀ¤ÎÃæ¿´¤¬¥°¥é¥ÕÎΰèÆâ¤Ë¤¢ ¤ë¾ì¹ç¤Ç¤â¡¢¤½¤Î¤è¤¦¤ÊÅÀ¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹ (¤Ä¤Þ¤êÉÁ²è¤·¤Þ¤»¤ó)¡£ÅÀ ¤ÎÃæ¿´¤¬¥°¥é¥ÕÎΰ賰¤Ë¤¢¤ë¤è¤¦¤Ê¥Ç¡¼¥¿ÅÀ¤Ï¡¢·è¤·¤ÆÉÁ²è¤·¤Þ¤»¤ó¡£
unset clip ¤Î¾ì¹ç¤Ï¡¢Àþʬ¤Î°ìÊý¤ÎüÅÀ¤¬ÉÁ²èÈÏ°Ï (xrange ¤È yrange) ¤Î³°¤Ë¤¢¤ì¤Ð¡¢¤½¤ÎÀþʬ¤ÏÉÁ²è¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
set clip one ¤Î¾ì¹ç¤Ï¡¢°ìÊý¤ÎüÅÀ¤¬ÉÁ²èÈÏ°ÏÆâ¤Ë¤¢¤Ã¤Æ¡¢¤«¤Ä¤â¤¦°ìÊý ¤ÎüÅÀ¤¬Èϰϳ°¤Ë¤¢¤ë¤è¤¦¤ÊÀþʬ¤Î¡¢ÈÏ°ÏÆâ¤Ë´Þ¤Þ¤ì¤ëÉôʬ¤òÉÁ²è¤¹¤ë¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ set clip two ¤Ï¡¢Î¾Êý¤ÎüÅÀ¤¬ÉÁ²èÈϰϳ°¤Ë¤¢¤ëÀþʬ¤Î¡¢ÈÏ°ÏÆâ¤ÎÉôʬ¤ò ÉÁ²è¤¹¤ë¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ ÀþʬÁ´ÂΤ¬ÉÁ²èÈϰϳ°¤Ç¤¢¤ë¤è¤¦¤ÊÀþʬ¤Ï·è¤·¤ÆÉÁ²è¤·¤Þ¤»¤ó¡£
set clip radial ¤Ï¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£¤³¤ì¤Ï¡¢Àþ¤Î¥¯ ¥ê¥Ã¥Ô¥ó¥°¤ò¡¢set rrange [0:MAX] ¤Ç³ÎÄꤹ¤ë±ß¾õ¶³¦¤ËÂФ·¤Æ¹Ô¤¤¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤϡ¢set clip {one|two} ¤ÈÁȤ߹ç¤ï¤»¤Æ»ÈÍѤ·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ R > RMAX ¤Ç¤¢¤ë 2 ¤Ä¤ÎÅÀ¤Î´Ö¤ÎÀþ¤¬ R = RMAX ¤Î±ß¤Ë¤è¤Ã¤ÆÀÚ¤ê¼è¤é¤ì¤ëÉô ʬ¤Ï¡¢clip two ¤È clip radial ¤ÎξÊý¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ßÉÁ²è¤µ ¤ì¤Þ¤¹¡£
Ãí°Õ:
* set clip ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë lines, linespoints, points, arrows, vectors ¤ÇÀ¸À®¤µ¤ì¤ëÅÀ¡¢Àþʬ¤Î¤ß¤Ë±Æ¶Á¤·¤Þ¤¹¡£
* pm3d ¶ÊÌ̤侤ÎÃæ¿È¤ÎµÍ¤Þ¤Ã¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ÎÉÁ²è¤Ë»ÈÍѤ¹¤ë¿§Ä¹Êý·Á ¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤ÎÀ©¸æ¤Ï¡¢set pm3d clipping ¤Ç¹Ô¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢ ¸½ºß¤Î zrange ¤ËÂФ¹¤ë³ê¤é¤«¤Ê¥¯¥ê¥Ã¥Ô¥ó¥°¤Ç¤¹¡£
* ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï¡¢¸Ä¡¹¤Î¥ª¥Ö¥¸¥§¥¯¥È (object) ¤Î clip ¤« noclip °À¤ÇÀ©¸æ¤·¤Þ¤¹¡£
* ¸½ºß¤Î gnuplot ¤ÎÈǤǤϡ¢¶ËºÂɸ¥â¡¼¥É¤Î "plot with vectors" ¤Ï¡¢¥Æ¥¹ ¥È¤·¤Æ¤¤¤Þ¤»¤ó¤·¡¢ºÇÂçȾ·Â¤ËÂФ¹¤ë¥¯¥ê¥Ã¥Ô¥ó¥°¤â¤·¤Þ¤»¤ó¡£
set cntrlabel {format "format"} {font "font"} set cntrlabel {start <int>} {interval <int>} set cntrlabel onecolor
set cntrlabel ¤Ï¡¢ËÞÎãÆâ (¥Ç¥Õ¥©¥ë¥È) ¤«¡¢splot ... with labels ¤Î ºÝ¤Î¥°¥é¥Õ¾å¤ÎÅù¹âÀþ¤Î¥é¥Ù¥ë¤òÀ©¸æ¤·¤Þ¤¹¡£¸å¼Ô¤Î¾ì¹ç¡¢¥é¥Ù¥ë¤Ï¥é¥Ù¥ëµ ½Ò°À¤Î pointinterval ¤« pointnumber ¤Ë½¾¤Ã¤Æ³ÆÅù¹âÀþ¤Ë±è¤Ã¤ÆÇÛÃÖ ¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥é¥Ù¥ë¤ÏÅù¹âÀþ¤ò¹½À®¤¹¤ë 5 ÈÖÌܤÎÀþʬ¤Î¾å¤ËÃÖ ¤«¤ì¡¢20 ¸Ä¤ÎÀþʬËè¤Ë·«¤êÊÖ¤µ¤ì¤Þ¤¹¡£¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢°Ê²¼¤ÈƱ¤¸¤Ç¤¹:
set cntrlabel start 5 interval 20
¤³¤ì¤é¤ÎÃͤϥ³¥Þ¥ó¥É set cntrlabel ¤Ç¡¢¤¢¤ë¤¤¤Ï splot ¥³¥Þ¥ó¥É¤Ë´Ö ³Ö¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹:
set contours; splot $FOO with labels point pointinterval -1
´Ö³Ö¤òÉé¤ÎÃͤËÀßÄꤹ¤ë¤È¡¢¥é¥Ù¥ë¤Ï³ÆÅù¹âÀþ¤Ë 1 ¤Ä¤À¤±¤Ä¤¤Þ¤¹¡£¤·¤«¤· set samples ¤« set isosamples ¤¬Â礤ÊÃͤξì¹ç¤Ï¿¤¯¤ÎÅù¹âÀþ¤ò¥é¥Ù ¥ë°ì¤Ä¤À¤±¤ÇÉÁ¤¤Þ¤¹¡£
ËÞÎã (key) ¤Ë¤Ï¡¢Åù¹âÀþ¥é¥Ù¥ë¤ò¤½¤ì¤¾¤ì¤ÎÀþ¼ï (linetype) ¤ò»ÈÍѤ·¤Æ½ñ ¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Àþ¼ï¼«¿È¤¬³ÆÅù¹âÀþ¤Î¥ì¥Ù¥ë¤òÍ¿¤¨¤ë¤Î¤Ç¡¢¤½¤ì¤¾ ¤ì¤ËÂФ¹¤ëÊÌ¡¹¤Î¥é¥Ù¥ë¤¬¸½¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É set cntrlabel onecolor ¤Ï ¤¹¤Ù¤Æ¤ÎÅù¹âÀþ¤òƱ¤¸Àþ¼ï¤ÇÉÁ²è¤¹¤ë¤Î¤Ç¡¢ËÞÎã¤Ë¤Ï°ì¤Ä¤Î¥é¥Ù¥ë¤Î¤ß¤ò½ñ¤ ¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸Å¤¤¥³¥Þ¥ó¥É unset clabel ¤òÃÖ¤´¹¤¨¤ë¤â¤Î¤Ç¤¹¡£
½ñ¼°:
set cntrparam { { linear | cubicspline | bspline | points <n> | order <n> | levels { <n> | auto {<n>} | discrete <z1> {,<z2>{,<z3>...}} | incremental <start>, <incr> {,<end>} } {{un}sorted} {firstlinetype N} } } show cntrparam
¤³¤Î¥³¥Þ¥ó¥É¤Ï 2 ¤Ä¤Îµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°ì¤Ä¤ÏÅù¹âÀþ¾å¤ÎÅÀ¤ò·è¤á¤ë¤¿ ¤á¤Î z ¤ÎÃͤÎÀßÄê¤Ç¤¹¡£Åù¹âÀþ¤Î¥ì¥Ù¥ë¤Î¿ô <n> ¤ÏÀ°¿ô·¿¤ÎÄê¿ô¼°¤Ç¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó¡£<z1>, <z2> ... ¤Ï¼Â¿ôÃͤοô¼°¤Ç¤¹¡£ ¤â¤¦°ì¤Ä¤Ï¡¢¸Ä¡¹¤ÎÅù¹âÀþ¤Î¸«¤¿ÌܤÎÀ©¸æ¤Ç¤¹¡£
Åù¹âÀþ¤ÎÊ¿³ê²½¤òÀ©¸æ¤¹¤ë¥¡¼¥ï¡¼¥É:
linear, cubicspline, bspline — ¶á»÷ (Êä´Ö) ÊýË¡¤ò»ØÄꤷ¤Þ¤¹¡£ linear ¤Ê¤é¤Ð¡¢Åù¹âÀþ¤Ï¶ÊÌ̤«¤éÆÀ¤é¤ì¤¿Ãͤò¶èʬŪ¤ËľÀþ¤Ç·ë¤Ó¤Þ¤¹¡£ cubicspline (3 ¼¡¥¹¥×¥é¥¤¥ó) ¤Ê¤é¤Ð¡¢¶èʬŪ¤ÊľÀþ¤Ï¤¤¤¯¤Ö¤ó¤Ê¤á¤é¤« ¤ÊÅù¹âÀþ¤¬ÆÀ¤é¤ì¤ë¤è¤¦¤ËÊä´Ö¤µ¤ì¤Þ¤¹¤¬¡¢Â¿¾¯ÇÈÂǤIJÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£ bspline (B-spline) ¤Ï¡¢¤è¤ê³ê¤é¤«¤Ê¶ÊÀþ¤òÉÁ¤¯¤³¤È¤¬Êݾڤµ¤ì¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ï z ¤ÎÅù¤·¤¤ÅÀ¤Î°ÌÃÖ¤ò¶á»÷¤·¤Æ¤¤¤ë¤À¤±¤Ç¤¹¡£
points — ºÇ½ªÅª¤Ë¤Ï¡¢Á´¤Æ¤ÎÉÁ²è¤Ï¡¢¶èʬŪ¤ÊľÀþ¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤³ ¤Ç»ØÄꤹ¤ë¿ô¤Ï¡¢bspline ¤Þ¤¿¤Ï cubicspline ¤Ç¤Î¶á»÷¤Ë»È¤ï¤ì¤ëÀþʬ ¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹¡£¼ÂºÝ¤Ë¤Ï cubicspline ¤È bspline ¤Î¶è´Ö (¶ÊÀþÀþʬ) ¤Î ¿ô¤Ï points ¤ÈÀþʬ¤Î¿ô¤ÎÀѤËÅù¤·¤¯¤Ê¤ê¤Þ¤¹¡£
order — bspline ¶á»÷¤Î¼¡¿ô¤Ç¤¹¡£¤³¤Î¼¡¿ô¤¬Â礤¯¤Ê¤ë¤Ë¤Ä¤ì¤Æ¡¢Åù¹â Àþ¤Ï¤Ê¤á¤é¤«¤Ë¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó¡¢¹â¼¡¤Î bspline ¶ÊÀþ¤Ë¤Ê¤ë¤Û¤É¡¢¸µ¤Î ¶èʬŪľÀþ¤«¤é¤ÏÎ¥¤ì¤Æ¤¤¤¤Þ¤¹)¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï bspline ¥â¡¼¥É¤Ç¤Î ¤ß͸ú¤Ç¤¹¡£»ØÄê¤Ç¤¤ëÃͤϡ¢2 (ľÀþ) ¤«¤é 10 ¤Þ¤Ç¤ÎÀ°¿ô¤Ç¤¹¡£
Åù¹âÀþ¥ì¥Ù¥ë¤ÎÁªÂò¤òÀ©¸æ¤¹¤ë¥¡¼¥ï¡¼¥É:
levels auto — ¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£<n> ¤Ï²¾¤Î¥ì¥Ù¥ë¤Î¿ô¤Ç¤¢¤ê¡¢¼Â ºÝ¤Î¥ì¥Ù¥ë¤Î¿ô¤Ï¡¢´Êñ¤Ê¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¤è¤¦¤ËÄ´Àᤵ¤ì¤Þ¤¹¡£¶ÊÌ̤Πz ºÂɸ¤¬ zmin ¤«¤é zman ¤ÎÈϰϤˤ¢¤ë¤È¤¡¢Åù¹âÀþ¤Ï¤½¤Î´Ö¤Î dz ¤ÎÀ°¿ôÇÜ¤Ë ¤Ê¤ë¤è¤¦¤ËÀ¸À®¤µ¤ì¤Þ¤¹¡£¤³¤³¤Ç¡¢dz ¤Ï 10 ¤Î¤¢¤ë¤Ù¤¾è¤Î 1, 2, 5 ÇÜ¡¢¤Î ¤¤¤º¤ì¤«¤Ç¤¹ (2 ¤Ä¤ÎÌÜÀ¹¤ê¤Î´Ö¤òÃúÅÙ³ä¤êÀÚ¤ë¤è¤¦¤Ë)¡£
levels discrete — Åù¹âÀþ¤Ï»ØÄꤵ¤ì¤¿ z = <z1>, <z2> ... ¤ËÂФ·¤ÆÀ¸ À®¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¸Ä¿ô¤¬Åù¹âÀþ¤Î¥ì¥Ù¥ë¤Î¸Ä¿ô¤È¤Ê¤ê¤Þ¤¹¡£discrete ¥â¡¼¥É¤Ç¤Ï¡¢set cntrparams levels <n> ¤È¤¤¤¦»ØÄê¤Ï¾ï¤Ë̵»ë¤µ¤ì¤Þ¤¹¡£
levels incremental — Åù¹âÀþ¤Ï z = <start> ¤«¤é»Ï¤Þ¤ê¡¢<increment> ¤º¤ÄÁý¤¨¤Æ¹Ô¤¸Â³¦¤Î¸Ä¿ô¤Ë㤹¤ë¤Þ¤Ç½ñ¤«¤ì¤Þ¤¹¡£<end> ¤Ï¤½¤ÎÅù¹âÀþ¤Î¿ô ¤ò·èÄꤹ¤ë¤Î¤Ë»È¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¸å¤Î set cntrparam levels <n> ¤Ë¤è¤Ã ¤Æ¾ï¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£z ¼´¤¬Âпô¼´¤Î¾ì¹ç¡¢set ztics ¤Î¾ì¹ç¤ÈƱÍͤˡ¢ <increment> ¤ÏÇÜ¿ô¤È¤·¤Æ²ò¼á¤·¡¢<end> ¤Ï»ÈÍѤ·¤Þ¤»¤ó¡£
Åù¹âÀþ¤ÎÀþ¼ï¤Î³ä¤êÅö¤Æ¤òÀ©¸æ¤¹¤ë¥¡¼¥ï¡¼¥É:
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Åù¹âÀþ¤Ï»ØÄê¤ÎµÕ½ç¤ËÀ¸À®¤·¤Þ¤¹ (unsorted)¡£¤¹¤ï¤Ê¤Á¡¢ set cntrparam levels increment 0, 10, 100 ¤Ï¡¢100 ¤«¤é»Ï¤Þ¤Ã¤Æ¡¢0 ¤Ç ½ª¤ï¤ë 11 ËܤÎÅù¹âÀþ¤òºî¤ê¤Þ¤¹¡£¥¡¼¥ï¡¼¥É sorted ¤òÄɲ乤ë¤È¡¢¿ôÃÍ ¤ÎÁý²ÃÊý¸þ¤Î½ç¤ÎÀ¸À®¤ËÊѹ¹¤·¡¢Î㤨¤Ðº£¤ÎÎã¤Ç¤Ï¡¢ºÇ½é¤Ë 0 ¤ÎÅù¹âÀþ¤ò½ñ ¤¯¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Åù¹âÀþ¤Ï¡¢Âбþ¤¹¤ë¶ÊÌ̤˻ÈÍѤ·¤¿Àþ¼ï¤Î¡¢¼¡¤«¤é¤ÎÀþ¼ïÎó ¤ÇÉÁ¤¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢splot x*y lt 5 ¤ÎºÇ½é¤ÎÅù¹âÀþ¤ÏÀþ¼ï 6 ¤Ç¤¹¡£ hidden3d ¥â¡¼¥É¤¬Í¸ú¤Ê¾ì¹ç¡¢³Æ¶ÊÌÌ¤Ë¤Ï 2 ¤Ä¤ÎÀþ¼ï¤ò»È¤¦¤Î¤Ç¡¢¥Ç¥Õ¥© ¥ë¥È¤ÎÀßÄê¤Ç¤Ï¡¢ºÇ½é¤ÎÅù¹âÀþ¤È¶ÊÌ̤Î΢Ì̤ÎÉÁ²è¤ËƱ¤¸Àþ¼ï¤ò»È¤Ã¤Æ¤·¤Þ¤¤ ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï˾¤Þ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤òÈò¤±¤ë¤Ë¤Ï¡¢°Ê²¼¤Î 2 ¤Ä¤ÎÊýË¡ ¤¬¤¢¤ê¤Þ¤¹¡£ (1) set hidden3d offset N ¤Ë¤è¤ê¡¢¶ÊÌ̤Î΢Ì̤ÎÀþ¼ï¤òÊѹ¹¤¹¤ë¤³¤È¡£ offset -1 ¤È¤¹¤ë¤Î¤¬¤¤¤¤¤Ç¤¹¤¬¡¢¤³¤ì¤Ê¤é¤¹¤Ù¤Æ¤ÎÅù¹âÀþ¤ÎÀþ¼ï¤È¤Ö¤Ä¤« ¤ê¤Þ¤»¤ó¡£ (2) ¥ª¥×¥·¥ç¥ó set cntrparam firstlinetype N ¤Ë¤è¤ê¡¢¶ÊÌ̤ǻÈÍѤ¹¤ë Àþ¼ï¤È¤ÏÆÈΩ¤Ê¡¢Åù¹âÀþ¤Ç»ÈÍѤ¹¤ëÀþ¼ï·²¤ò»ØÄꤹ¤ë¤³¤È¡£¤³¤ì¤Ï¡¢ÆäËÅù¹â Àþ¤ÎÀþ¼ï¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤¤¾ì¹ç¤Ë¤ÏÍÍѤǤ·¤ç¤¦¡£N <= 0 ¤Î¾ì¹ç¤Ï¥Ç¥Õ ¥©¥ë¥È¤ËÌá¤ê¤Þ¤¹¡£
¥³¥Þ¥ó¥É set cntrparam ¤ò°ú¿ô̵¤·¤Ç»ÈÍѤ¹¤ë¤È¡¢»ØÄꤷ¤¿¤¹¤Ù¤Æ¤Î¥ª¥× ¥·¥ç¥óÃͤò¥Ç¥Õ¥©¥ë¥È¤Ë¥ê¥»¥Ã¥È¤·¤Þ¤¹¡£
set cntrparam order 4 points 5 set cntrparam levels auto 5 unsorted set cntrparam firstlinetype 0
set cntrparam bspline set cntrparam points 7 set cntrparam order 10
°Ê²¼¤Ï¥ì¥Ù¥ë¤Î´ð½à¤¬¹ç¤¨¤Ð 5 ¸Ä¤Î¥ì¥Ù¥ë¤¬¤Ë¼«Æ°Åª¤ËÁªÂò¤µ¤ì¤Þ¤¹:
set cntrparam levels auto 5
°Ê²¼¤Ï .1, .37, .9 ¤Ë¥ì¥Ù¥ë¤òÀßÄꤷ¤Þ¤¹:
set cntrparam levels discrete .1,1/exp(1),.9
°Ê²¼¤Ï 0 ¤«¤é 4 ¤Þ¤Ç¡¢1 ¤º¤ÄÁý¤ä¤¹¥ì¥Ù¥ë¤òÀßÄꤷ¤Þ¤¹:
set cntrparam levels incremental 0,1,4
°Ê²¼¤Ï¥ì¥Ù¥ë¤Î¿ô¤ò 10 ¤ËÀßÄꤷ¤Þ¤¹ (Áý²Ã¤ÎºÇ¸å¤ÎÃÍ (end) ¤Þ¤¿¤Ï¼«Æ°¤Ç ÀßÄꤵ¤ì¤ë¥ì¥Ù¥ë¤Î¿ô¤ÏÊѹ¹¤µ¤ì¤Þ¤¹):
set cntrparam levels 10
°Ê²¼¤Ï¥ì¥Ù¥ë¤Î¿ô¤ÏÊÝ»ý¤·¤¿¤Þ¤Þ¥ì¥Ù¥ë¤Î³«»ÏÃͤÈÁýʬÃͤòÀßÄꤷ¤Þ¤¹:
set cntrparam levels incremental 100,50
°Ê²¼¤Ï¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿Åù¹âÀþ¤ÎÀþ¼ï·²¤òÄêµÁ¤·¡¢»ÈÍѤ·¤Þ¤¹:
set linetype 100 lc "red" dt '....' do for [L=101:199] { if (L%10 == 0) { set linetype L lc "black" dt solid lw 2 } else { set linetype L lc "gray" dt solid lw 1 } } set cntrparam firstlinetype 100 set cntrparam sorted levels incremental 0, 1, 100
Åù¹âÀþ¤òÉÁ¤¯¾ì½ê¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set contour (112.19)¡£Åù¹âÀþ¤Î¥é ¥Ù¥ë¤Î½ñ¼°¤ÈÀþ¼ï¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£
°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ Åù¹âÀþ¤Î¥Ç¥â (contours.dem)
¤ª¤è¤Ó ¥æ¡¼¥¶ÄêµÁ¥ì¥Ù¥ë¤ÎÅù¹âÀþ¤Î¥Ç¥â (discrete.dem).
¥Ñ¥ì¥Ã¥È¤Ç¤Î¿§ÉÕ¤±¤ò»ÈÍѤ¹¤ë¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¡¢ÆÃ¤Ë pm3d ¤Ç¤Î¥°¥é¥Õ¤Ç¤Ï¡¢ ¥Ñ¥ì¥Ã¥È¤Î¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò¡¢unset colorbox ¤Ç¥¹¥¤¥Ã¥Á¤¬¥ª¥Õ¤Ë¤Ê¤Ã¤Æ ¤¤¤Ê¤¤¸Â¤ê¡¢¥°¥é¥Õ¤Î²£¤Î¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox) Æâ¤ËÉÁ¤¤Þ¤¹¡£
set colorbox set colorbox { { vertical | horizontal } {{no}invert} { default | bottom | user } { origin x, y } { size x, y } { front | back } { noborder | bdefault | border <linestyle> } } show colorbox unset colorbox
¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÊý¸þ¤Ï¡¢¥ª¥×¥·¥ç¥ó vertical (½Ä) ¤È horizontal (²£) ¤ÇÀßÄꤷ¤Þ¤¹¡£
¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î°ÌÃ֤ϡ¢default, bottom, user ¤Î¤¤¤º¤ì¤«¤ò»ØÄê¤Ç ¤¤Þ¤¹¡£¥¡¼¥ï¡¼¥É bottom ¤Ï¡¢°Ê²¼¤ÈƱÅù¤ÎÊØÍø¤Ê¥·¥ç¡¼¥È¥«¥Ã¥È¤Ç¤¹:
set colorbox horizontal user origin screen 0.1, 0.07 size 0.8, 0.03.
bottom ¤Ç»ØÄꤷ¤¿¾ì¹ç¤Î¤è¤¦¤Ë¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤¬¥°¥é¥Õ¤Î²¼¤Ë¤¢¤ë¤È¤¤Ï¡¢ ¤½¤ìÍѤËÄɲå¹¥Ú¡¼¥¹¤ò¼è¤ë¤ÈÊØÍø¤Ç¤·¤ç¤¦: set bmargin screen 0.2¡£
origin x, y ¤È size x, y ¤Ï¡¢user ¤« bottom ¤ÎÇÛÃ֤ǤÎÀµ³Î¤Ê°Ì ÃÖ¹ç¤ï¤»¤Î¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£x, y ¤ÎÃͤϡ¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥¹¥¯¥ê¡¼¥óºÂɸ¤È ²ò¼á¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï 3 ¼¡¸µ¥°¥é¥Õ¤Ë´Ø¤·¤Æ¤Ï·Á¼°Åª¤Ê¥ª¥×¥·¥ç¥ó¤Ë²á¤®¤Þ ¤»¤ó¡£set view map ¤Ë¤è¤ë splot ¤ò´Þ¤à 2 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢Ç¤°Õ¤ÎºÂɸ·Ï ¤¬»È¤¨¤Þ¤¹¡£
back/front ¤Ï¡¢¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ò¥°¥é¥Õ¤è¤êÁ°¤Ë½ñ¤¯¤«¡¢¸å¤Ç½ñ¤¯¤«¤ò À©¸æ¤·¤Þ¤¹¡£
border ¤Ï¶³¦ÉÁ²è¤ò ON ¤Ë¤·¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È) ¤·¡¢noborder ¤Ï¶³¦ÉÁ ²è¤ò OFF ¤Ë¤·¤Þ¤¹¡£border ¤Î¸å¤í¤ËÀµ¤ÎÀ°¿ô¤òÍ¿¤¨¤ë¤È¡¢¤½¤ì¤ò¶³¦¤òÉÁ ²è¤¹¤ë»þ¤Î line style ¤Î¥¿¥°¤È¤·¤Æ»È¤¤¤Þ¤¹¡£Î㤨¤Ð:
set style line 2604 linetype -1 linewidth .4 set colorbox border 2604
¤Ï line style 2604¡¢¤¹¤Ê¤ï¤ÁºÙ¤¤Àþ¤Î¥Ç¥Õ¥©¥ë¥È¤Î¶³¦¿§ (-1) ¤Ç¶³¦¤ò ÉÁ²è¤·¤Þ¤¹¡£bdefault (¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¶³¦¤ÎÉÁ²è¤Ë¥Ç ¥Õ¥©¥ë¥È¤Î¶³¦¤Î line style ¤ò»È¤¤¤Þ¤¹¡£
¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¼´¤Ï cb ¤È¸Æ¤Ð¤ì¡¢Ä̾ï¤Î¼´¤Î¥³¥Þ¥ó¥É¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£ ¤¹¤Ê¤ï¤Á set/unset/show ¤Ç cbrange, [m]cbtics, format cb, grid [m]cb, cblabel ¤Ê¤É¤¬¡¢¤½¤·¤Æ¿ʬ cbdata, [no]cbdtics, [no]cbmtics ¤Ê¤É¤â»È¤¨¤ë¤Ç¤·¤ç¤¦¡£
¥Ñ¥é¥á¡¼¥¿Ìµ¤·¤Î set colorbox ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃÖ¤ØÀÚÂؤ¨¤Þ¤¹¡£ unset colorbox ¤Ï¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¥Ñ¥é¥á¡¼¥¿¤ò¥Ç¥Õ¥©¥ë¥ÈÃͤ˥ꥻ¥Ã¥È ¤·¡¢¤½¤Î¾å¤Ç¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ò OFF ¤Ë¤·¤Þ¤¹¡£
°Ê²¼¤â»²¾È: set pm3d (112.71), set palette (112.67), set style line (112.86.8)¡£
set style line 1 linecolor "sea-green" set palette defined (0 "dark-red", 1 "white") print sprintf("0x%06x", rgbcolor("dark-green")) 0x006400
¥Ç¡¼¥¿¤¬³Ê»Ò¾õ¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢set dgrid3d ¤ò»È¤Ã¤ÆºÇ½é¤ËŬÀÚ¤Ê³Ê »Ò¤òÀ¸À®¤·¡¢¤½¤Î³Ê»Ò¤Ë¥Ç¡¼¥¿¤òÅö¤Æ¤Ï¤á¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set contour {base | surface | both} unset contour show contour
¤³¤ì¤é¤Î 3 ¤Ä¤Î¥ª¥×¥·¥ç¥ó¤ÏÅù¹âÀþ¤ò¤É¤³¤Ë°ú¤¯¤«¤ò»ØÄꤷ¤Þ¤¹¡£base ¤Ç ¤ÏÅù¹âÀþ¤ò x/y ¼´¤Î¹ï¤ß¤Î¤¢¤ëÄìÌ̤ËÉÁ¤«¤ì¡¢surface ¤Ç¤ÏÅù¹âÀþ¤Ï¤½¤Î ¶ÊÌ̼«ÂΤξå¤ËÉÁ¤«¤ì¡¢both ¤Ç¤ÏÄìÌ̤ȶÊÌ̾å¤ÎξÊý¤ËÉÁ¤«¤ì¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï base ¤Ç¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£
Åù¹âÀþ¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¥Ñ¥é¥á¡¼¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrparam (112.16)¡£Åù¹âÀþ¤Î¥é¥Ù¥ë¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Àþ¤ä¥é¥Ù¥ë¤òÇÛÃÖ¤¹¤ë¤â¤Î¤Ç¡¢¶ÊÌ̼«¿È¤Î¤½¤Î¾¤Î¸«¤¿ÌÜ ¤ÏÊѤ¨¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¶ÊÌ̤ο§ÉÕ¤±¤ò¡¢Åù¹âÀþ¤Ç¶èÀÚ¤é¤ì¤¿ÎÎ °è¤¬Â¾¤È¶èÊ̤Ǥ¤ë¤è¤¦¤Ê¿§¤Ë³ä¤êÅö¤Æ¤¿¤¤¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤ËÉÁ²è¥¹¥¿¥¤¥ë contourfill ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤µ¤¤¡£°Ê²¼»²¾È: contourfill (41)¡£
set contour ¤¬Í¸ú¤Ê¾ì¹ç¡¢splot with <style> ¤Ç points, lines, impulses, labels Åù¤ÎÉÁ²èÍ×ÁǤòÅù¹âÀþ¤Ë±è¤Ã¤ÆÇÛÃ֤Ǥ¤Þ¤¹¡£with pm3d ¤Ï¡¢pm3d ¶ÊÌ̤òÀ¸À®¤·¡¢¤µ¤é¤ËÅù¹âÀþ¤â½ñ¤¤Þ¤¹¡£ set contour ¤¬Í¸ú¤ÊºÝ¤ËÀ¸À®¤¹¤ëÅù¹âÀþ¤Ë¡¢¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤ó¤À¥é¥Ù ¥ë¤Ê¤É¤Î¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤ⺮¤¼¤¿¤¤¾ì¹ç¤Ï¡¢splot ¥³¥Þ¥ó¥ÉÆâ¤Î¤½¤ÎÌ¿Îá¤Î ¸å¤í¤Ë¥¡¼¥ï¡¼¥É nocontours ¤òÄɲ䷤ʤ¤¤È¤¤¤±¤Þ¤»¤ó¡£
¶ÊÌ̤ò¥¹¥¤¥Ã¥Á¥ª¥Õ (°Ê²¼»²¾È: unset surface (112.87)) ¤Ë¤·¤Æ¡¢Åù¹âÀþ¤Î¤ß¤Î¥° ¥é¥Õ¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£Åù¹âÀþ¤Î 2 ¼¡¸µ¼Í±Æ¤È¥ª¥×¥·¥ç¥ó¤Î¥é¥Ù¥ë¤Ï°Ê ²¼¤Î¤è¤¦¤Ë¤·¤ÆÀ¸À®¤Ç¤¤Þ¤¹:
set view map splot DATA with lines nosurface, DATA with labels
°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¡¢Âå¤ï¤ê¤È¤Ê¤ë¿Ãʳ¬¤ÎÊý Ë¡¤ò»È¤Ã¤Æ 3 ¼¡¸µ¤ÎÅù¹âÀþ¤ò¥Õ¥¡¥¤¥ë¤ä¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ËÊݸ¤·¡¢¤½¤Î¸å¤Ç ¤½¤ì¤ò 2 ¼¡¸µ¤Î plot ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤½¤ì¤òÉÁ²è¤·¤Æ¤¤¤Þ¤·¤¿¡£
set contour set table $datablock splot DATA with lines nosurface unset table # Åù¹âÀþ¤Ï $datablock ¤Ë¡¢1 ¤Ä¤ÎÅù¹âÀþ¤¬ 1 ¤Ä¤Î index ¤Ç plot for [level=0:*] $datablock index level with lines
°Ê²¼¤â»²¾È: splot datafile (115.1)¡£¤Þ¤¿¡¢
^
<a href="http://www.gnuplot.info/demo/contours.html">
Åù¹âÀþ¤Î¥Ç¥â (contours.dem)
^
</a>
¤È
^
<a href="http://www.gnuplot.info/demo/discrete.html">
Åù¹âÀþ¥ì¥Ù¥ë¤Î¥æ¡¼¥¶ÄêµÁ¤Î¥Ç¥â (discrete.dem)
^
</a>
¤â»²¾È¡£
½ñ¼°:
set contourfill auto N # zrange ¤ò N Åùʬ¤·¤¿ÃÇÊÒ¤Ë set contourfill ztics # z ¼´¤Î³Æ¼çÌÜÀ¹¤ê¤ÇÀÚ¤êʬ¤± set contourfill cbtics # cb ¼´¤Î³Æ¼çÌÜÀ¹¤ê¤ÇÀÚ¤êʬ¤± set contourfill {palette | firstlinetype N}
¥Ç¥Õ¥©¥ë¥È¤Ï set contourfill auto 5 palette ¤Ç¡¢¤³¤ì¤Ï¸½ºß¤Î z ¼´¤Î ÈϰϤò 5 Åùʬ¤· (6 ¤Ä¤ÎÊ¿Ì̤ǶèÀÚ¤ë)¡¢³ÆÃÇÊҤˤ½¤Î z ¤ÎÃæÅÀ¤ËÂбþ¤¹¤ë ¥Ñ¥ì¥Ã¥È¤Î¿§¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó ztics, cbtics ¤Ï¡¢zrange ¤Îʬ³ä¤ò¡¢¤½¤Î¼´¤Î¼çÌÜÀ¹¤ê¤Î°Ì Ã֤ǹԤ¤¤Þ¤¹¡£Î㤨¤Ð¡¢z=2.5, z=7, z=10 ¤Ë»ØÄꤷ¤ÆÀÚ¤êʬ¤±¤ë¤Ë¤Ï¡¢°Ê²¼ ¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Þ¤¹¡£
set ztics add ("floor" 2.5, "boundary X" 7, "ceiling" 10) set contourfill ztics
ÃÇÊҤο§ÉÕ¤±¤Ë¥Ñ¥ì¥Ã¥È¤ò»È¤¤¤¿¤¯¤Ê¤¤¾ì¹ç¤Ï¡¢Ç¤°ÕϢ³¤¹¤ëÀþ¼ï¤ÎÈϰϤòÁª Âò¤·¡¢¤½¤ì¤é¤Ë˾¤à¿§¤ÎÎó¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
set for [i=101:110] linetype i lc mycolor[i] set contourfill firstlinetype 101
set contourfill palette ¤Ç¥Ñ¥ì¥Ã¥È¤Ë¤è¤ë¿§ÉÕ¤±¤ËÉüµ¢¤Ç¤¤Þ¤¹¡£
set dashtype 5 (2,4,2,6) # 5 È֤Πdashtype ¤òÄêµÁ¤Þ¤¿¤ÏºÆÄêµÁ plot f1(x) dt 5 # ¤½¤Î dashtype ¤ò»È¤Ã¤Æ plot plot f1(x) dt (2,4,2,6) # ¾å¤ÈÁ´¤¯Æ±¤¸¥°¥é¥Õ set linetype 5 dt 5 # ¤³¤Î¥Ñ¥¿¡¼¥ó¤ò linetype 5 ¤Ç¾ï¤Ë»È¤¦ set dashtype 66 "..-" # ʸ»úÎó¤Ç¿·¤·¤¤ dashtype ¤òÄêµÁ
°Ê²¼»²¾È: dashtype (20.2)¡£
set datafile missing "<string>" set datafile missing NaN show datafile missing unset datafile
¥³¥Þ¥ó¥É set datafile missing ¤Ï¡¢ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ëÃæ¤Ç·ç»¥Ç¡¼¥¿¤ò µ½Ò¤¹¤ëÆÃÊ̤Êʸ»úÎ󤬤¢¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£missing ¤Ë ´Ø¤¹¤ë¥Ç¥Õ¥©¥ë¥ÈÃÍ (ʸ»ú) ¤Ï¤¢¤ê¤Þ¤»¤ó¡£gnuplot ¤Ï¡Ö·ç»¥Ç¡¼¥¿¡×¤È¡Ö̵ ¸ú¤ÊÃÍ¡×(Î㤨¤Ð "NaN" ¤ä 1/0) ¤ò¶èÊ̤·¤Þ¤¹¡£Î㤨¤Ð¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Ë ÂФ¹¤ë¥°¥é¥Õ¤ÎÀÞ¤ìÀþÉÁ²è¤Ï¡¢Ìµ¸ú¤ÊÃͤˤè¤Ã¤Æ¤½¤³¤ÇÀÚ¤ì¤Þ¤¹¤¬¡¢·ç»¥Ç¡¼ ¥¿¤Î¾ì¹ç¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¿ôÃͤ¬´üÂÔ¤µ¤ì¤ë¾ìÌ̤ǿôÃͤǤϤʤ¤Ê¸»ú¤¬¸½¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤¬ missing ¤Ç»ØÄꤹ¤ëʸ»úÎó¤Ë¥Þ¥Ã¥Á¤¹¤ë¾ì¹ç¤ò½ü¤¤¤Æ¡¢Ä̾ï·ç»¥Ç¡¼¥¿¤Ç¤Ï¤Ê¤¯¡¢Ìµ¸ú ¤ÊÃͤȤ·¤Æ²ò¼á¤·¤Þ¤¹¡£
µÕ¤Ë¡¢set datafile missing NaN ¤È¤¹¤ë¤È¡¢¿ô¼°¤ä¥Ç¡¼¥¿Ãæ¤Î¿ôÃÍ¤Ç¤Ï¤Ê ¤¤ÃÍ (NaN) ¤Ï¤¹¤Ù¤Æ·ç»¥Ç¡¼¥¿¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ imageNaN ¥Ç¥â
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
gnuplot ¤Ï plot ¥³¥Þ¥ó¥É¤Ç using »ØÄ꤬ľÀÜÎó¤ÎÃͤò using N, using ($N), using (function($N)) ¤Î¤è¤¦¤Ë»²¾È¤·¤¿¾ì¹ç¤ÏÎó N ¤Ë·ç» Ãͥե饰¤òÄÌÃΤ·¤Þ¤¹¡£¤³¤ì¤é¤Î¾ì¹ç¤Ï¡¢¿ô¼°¡¢Î㤨¤Ð func($N) ¤Ï°ìÀÚɾ²Á ¤µ¤ì¤Þ¤»¤ó¡£
¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢(column(N)) ¤Î·Á¼°¤ÎľÀÜ»²¾È¤âÄÌÃΤ·¤Þ ¤¹¤¬¡¢¼°¤¬ "missing" (·ç»ÃÍ) ¤Î¥Õ¥é¥°¤¬¤Ä¤¤¤¿Îó¤ÎÃͤ˴ÖÀÜŪ¤Ë°Í¸¤¹¤ë ¾ì¹ç¤Ç¤â¡¢É¾²Á¤ÎºÇÃæ¤ËÄÌÃΤ·¤Þ¤¹¡£
¤³¤ì¤é¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢gnuplot ¤ÏÆþÎϥǡ¼¥¿¹ÔÁ´ÂΤò¤½¤ì¤¬Á´¤¯¤Ê¤«¤Ã¤¿¤â ¤Î¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤·¤«¤·¡¢¼°¤¬¿¿¤Ë·ç¤±¤Æ¤¤¤ë¥Ç¡¼¥¿ÃÍ¤Ë (Î㤨¤Ð csv ¥Õ ¥¡¥¤¥ë¤Î¶õ¥Õ¥£¡¼¥ë¥É¤Î¤è¤¦¤Ë) °Í¸¤·¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï¤³¤ì¤é¤Î¥Á¥§¥Ã¥¯ ¤ò¤¹¤ê¤Ì¤±¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤ì¤ò NaN ÃͤÈɾ²Á¤¹¤ì¤Ð¡¢¤½¤ì¤Ï·ç»¥Ç¡¼ ¥¿ÅÀ¤Ç¤Ï¤Ê¤¯¡¢ÉÔÀµ¤Ê¥Ç¡¼¥¿¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤â¤·¤½¤Î¤è¤¦¤ÊÉÔÀµÃͤò¤¹¤Ù¤Æ ·ç»ÃͤȤ·¤ÆÅù¤·¤¯°·¤¤¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É set datafile missing NaN ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°:
set datafile separator {whitespace | tab | comma | "<chars>"}
Îã:
# ¥¿¥Ö¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ set datafile separator "\t"
# ¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ set datafile separator comma
# ÆþÎÏ¥Õ¥¡¥¤¥ë¤¬ * ¤« | ¤Î¤¤¤º¤ì¤«¤Ç¶èÀÚ¤é¤ì¤¿Îó¤ò»ý¤Ä¾ì¹ç set datafile separator "*|"
½ñ¼°:
set datafile commentschars {"<string>"} show datafile commentschars unset commentschars
¤è¤Ã¤Æ¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î°Ê²¼¤Î¹Ô¤Ï´°Á´¤Ë̵»ë¤µ¤ì¤Þ¤¹:
# 1 2 3 4
¤¬¡¢°Ê²¼¤Î¹Ô
1 # 3 4
¤Ï¡¢2 ÎóÌܤ˥´¥ß¤¬¤¢¤ê¡¢¤½¤Î¸å¤Ë͸ú¤Ê¥Ç¡¼¥¿¤¬ 3 ÎóÌÜ¤È 4 ÎóÌܤˤ¢¤ë¤È ǧ¼±¤µ¤ì¤Þ¤¹¡£
Îã:
set datafile commentschars "#!%"
½ñ¼°:
set datafile binary <binary list> show datafile binary show datafile unset datafile
Îã:
set datafile binary filetype=auto set datafile binary array=(512,512) format="%uchar"
show datafile binary # ¸½ºß¤ÎÀßÄê¤Î°ìÍ÷ɽ¼¨
½ñ¼°:
set decimalsign {<value> | locale {"<locale>"}} unset decimalsign show decimalsign
°ú¿ô <value> ¤Ï¡¢Ä̾ï¤Î¾®¿ôÅÀµ¹æ¤ËÃÖ¤´¹¤¨¤Æ»È¤¦Ê¸»úÎó¤Ç¤¹¡£Åµ·¿Åª¤Ê ¤â¤Î¤Ï¥Ô¥ê¥ª¥É '.' ¤ä¥³¥ó¥Þ ',' ¤Ç¤¹¤¬Â¾¤Ë¤âÍÍѤʤâ¤Î¤¬¤¢¤ë¤Ç¤·¤ç¤¦¡£ °ú¿ô <value> ¤ò¾Êά¤¹¤ë¤È¡¢¾®¿ôÅÀ¤Î¶èÀÚ¤ê¤Ï¥Ç¥Õ¥©¥ë¥È (¥Ô¥ê¥ª¥É) ¤«¤é Êѹ¹¤µ¤ì¤Þ¤»¤ó¡£unset decimalsign ¤â <value> ¤ò¾Êά¤¹¤ë¤Î¤ÈƱ¤¸¸ú²Ì¤ò »ý¤Á¤Þ¤¹¡£
Îã:
¿¤¯¤Î¥è¡¼¥í¥Ã¥Ñ½ô¹ñ¤Ç¤ÎÀµ¤·¤¤½ÐÎÏ·Á¼°¤òÆÀ¤ë¤Ë¤Ï:
set decimalsign ','
¼¡¤Î¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤: ÌÀ¼¨Åª¤Êʸ»úÎó¤òÀßÄꤷ¤¿¾ì¹ç¡¢¤³¤ì¤Ï¼´¤ÎÌÜ À¹¤ê¤Ê¤É¤Î gnuplot ¤Î gprintf() ½ñ¼°´Ø¿ô¤Ç½ÐÎϤµ¤ì¤ë¿ôÃͤΤߤ˱ƶÁ¤·¡¢ ÆþÎϥǡ¼¥¿¤Î½ñ¼°»ØÄê¤ä sprintf() ½ñ¼°´Ø¿ô¤Ç½ÐÎϤµ¤ì¤ë¿ôÃͤˤϱƶÁ¤·¤Þ ¤»¤ó¡£¤½¤ì¤é¤ÎÆþÎϤä½ÐÎϤηÁ¼°¤ÎµóÆ°¤âÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë°Ê²¼¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤:
set decimalsign locale
¤³¤ì¤Ï¡¢gnuplot ¤Ë¡¢ÆþÎϤȽÐÎϤνñ¼°¤ò¡¢´Ä¶ÊÑ¿ô LC_ALL, LC_NUMERIC, LANG ¤Î¸½ºß¤ÎÀßÄê¤Ë½¾¤Ã¤¿¤â¤Î¤ò»È¤ï¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
set decimalsign locale "foo"
¤³¤ì¤Ï¡¢gnuplot ¤Ë¡¢ÆþÎϤȽÐÎϤνñ¼°¤ò¡¢¥í¥±¡¼¥ë "foo" ¤Ë½¾¤Ã¤¿¤â¤Î¤Ë ¤·¤Þ¤¹¤¬¡¢¤½¤Î¥í¥±¡¼¥ë¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤â¤·¥í¥± ¡¼¥ë "foo" ¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¡¢¾®¿ôÅÀ ¤ÎÀßÄê¤ÏÊѹ¹¤µ¤ì¤Þ¤»¤ó¡£linux ¥·¥¹¥Æ¥à¾å¤Ç¤Ï¡¢¤½¤³¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ ¤¤¤ë¥í¥±¡¼¥ë¤Î°ìÍ÷¤Ï "locale -a" ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£linux ¤Î¥í¥±¡¼ ¥ëʸ»úÎó¤Ï¤À¤¤¤¿¤¤ "sl_SI.UTF-8" ¤Î¤è¤¦¤Ê·Á¼°¤ò¤·¤Æ¤¤¤Þ¤¹¤¬¡¢Windows ¤Î¥í¥±¡¼¥ëʸ»úÎó¤Ï "Slovenian_Slovenia.1250"¡¢¤Þ¤¿¤Ï "slovenian" ¤Î¤è ¤¦¤Ê·Á¼°¤Ç¤¹¡£¥í¥±¡¼¥ëʸ»úÎó¤Î²ò¼á¤Ï¡¢C ¤Î¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê¤¬¹Ô¤¦¤³ ¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¸Å¤¤ C ¥é¥¤¥Ö¥é¥ê¤Ç¤Ï¡¢¥í¥±¡¼¥ëÀßÄê¤Î¥µ¥Ý¡¼¥È (Î㤨¤Ð¿ô»ú¤Î 3 ·åËè¤Î¶èÀÚ¤êʸ»ú¤Ê¤É) ¤òÉôʬŪ¤Ë¤·¤«Ä󶡤·¤Æ¤¤¤Ê¤¤¤«¤â ¤·¤ì¤Þ¤»¤ó¡£
set decimalsign locale; set decimalsign "."
¤³¤ì¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Ë¹ç¤Ã¤¿¤É¤ó¤Ê¾®¿ôÅÀ¤Ç¤â¡¢Á´¤Æ¤ÎÆþ½ÐÎϤËÂФ·¤Æ»È ÍѤ¹¤ë¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¤¬¡¢gnuplot ¤ÎÆâÉô´Ø¿ô gprintf() ¤ò»È¤Ã¤Æ½ñ¼°²½ ¤¹¤ë¿ôÃͤÏÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿ '.' ¤Ë¤Ê¤ê¤Þ¤¹ (¾å½ñ¤)¡£
½ñ¼°:
set dgrid3d {<rows>} {,{<cols>}} splines set dgrid3d {<rows>} {,{<cols>}} qnorm {<norm>} set dgrid3d {<rows>} {,{<cols>}} {gauss | cauchy | exp | box | hann} {kdensity} {<dx>} {,<dy>} unset dgrid3d show dgrid3d
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï dgrid3d ¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Í¸ú¤Ê¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë ¤«¤éÆɤ߹þ¤Þ¤ì¤ë 3 ¼¡¸µ¤Î¥Ç¡¼¥¿ÅÀ¤Ï¡¢³Ê»Ò¶ÊÌ̤ËÅö¤Æ¤Ï¤á¤ë¤Î¤Ë»ÈÍѤ¹¤ë ¡Ö»¶ºß¤·¤¿¡×¥Ç¡¼¥¿ (Èó³Ê»Ò¾õ¥Ç¡¼¥¿) ¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£³Ê»Ò¤ÎÀ£Ë¡¤Ï¡¢ set dgrid3d ʸ¤ÇÍ¿¤¨¤ë¥Ñ¥é¥á¡¼¥¿ row_size/col_size ¤Î¹Ô¿ô¡¢Îó¿ô¤ÇºÆ ʬ³ä¤¹¤ë»¶ºß¥Ç¡¼¥¿¤ò°Ï¤à¶ë·Á (bounding box) ¤«¤éµá¤á¤Þ¤¹¡£³Ê»Ò¤Ï x Êý ¸þ (¹Ô) ¤È y Êý¸þ (Îó) ¤ËÅù´Ö³Ö¤Ç¤¹¡£z ¤ÎÃͤϻ¶ºß¤¹¤ë¥Ç¡¼¥¿¤Î z ¤ÎÃͤΠ½Å¤ßÉÕ¤¤ÎÊ¿¶Ñ¡¢¤Þ¤¿¤Ï¥¹¥×¥é¥¤¥óÊä´Ö¤È¤·¤Æ·×»»¤·¤Þ¤¹¡£¸À¤¤ÊѤ¨¤ì¤Ð¡¢µ¬ §Ū¤Ê´Ö³Ö¤Î³Ê»Ò¤òÀ¸À®¤·¡¢Á´¤Æ¤Î³Ê»ÒÅÀ¤Ç¸µ¥Ç¡¼¥¿¤Î³ê¤«¤Ê¶á»÷Ãͤòɾ²Á¤· ¤Þ¤¹¡£¤½¤·¤Æ¸µ¥Ç¡¼¥¿¤ÎÂå¤ï¤ê¤Ë¤³¤Î¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£
dgrid3d ¥â¡¼¥É¤¬Í¸ú¤Ê´Ö¤Ï¡¢¤³¤ì¤ò»ÈÍѤ»¤º¤Ë³Ê»Ò¶ÊÌ̤òÀ¸À®¤¹¤ë¸Ä¡¹¤ÎÅÀ ¤äÀþʬ¤òÉÁ¤¤¿¤¤¾ì¹ç¤Ï¡¢Âбþ¤¹¤ë splot ¥³¥Þ¥ó¥É¤Ë¥¡¼¥ï¡¼¥É nogrid ¤òÄɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÎó¤Î¿ô¤Ï¹Ô¤Î¿ô¤ËÅù¤·¤¯¡¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 10 ¤Ç¤¹¡£
¸µ¤Î¥Ç¡¼¥¿¤«¤é¶á»÷Ãͤò·×»»¤¹¤ë¤¿¤á¤Î¤¤¤¯¤Ä¤«¤Î¥¢¥ë¥´¥ê¥º¥à¤¬ÍÑ°Õ¤µ¤ì¤Æ ¤¤¤Æ¡¢ÄɲäΥѥé¥á¡¼¥¿¤ò»ØÄê¤Ç¤¤ë¤â¤Î¤â¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÊä´Ö¤Ï¡¢³Ê»Ò ÅÀ¤Ë¶á¤¤¥Ç¡¼¥¿ÅÀ¤Û¤É¡¢¤½¤Î³Ê»ÒÅÀ¤ËÂФ·¤Æ¤è¤ê¶¯¤¤±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
splines ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢Çö¤¤¤Ä¤®ÈĤò¸µ¤Ë¤·¤¿Êä´Ö·×»»¤ò¹Ô¤¤¤Þ¤¹¡£¤³¤ì ¤ÏÄɲåѥé¥á¡¼¥¿¤ò¼è¤ê¤Þ¤»¤ó¡£
qnorm ¥¢¥ë¥´¥ê¥º¥à¤Ï³Æ³Ê»ÒÅÀ¤ÇÆþÎϥǡ¼¥¿¤Î½Å¤ßÉդʿ¶Ñ¤ò·×»»¤·¤Þ¤¹¡£ ³ÆÅÀ¤Ë¤Ï¡¢³Ê»ÒÅÀ¤«¤é¤Îµ÷Î¥¤ÎµÕ¿ô¤Î¤¢¤ë¥Ù¥¾è¤Ç½Å¤ßÉÕ¤±¤·¤Þ¤¹¡£¤½¤Î¥Ù¥ ¤ÏÄɲåѥé¥á¡¼¥¿¤ÎÀ°¿ôÃͤȤ·¤Æ»ØÄê¤Ç¤¤Þ¤¹¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¤Ç¤¹¡£ ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ºÇ¸å¤Ë¡¢½Å¤ßÉդʿ¶Ñ¤Î·×»»ÍѤˡ¢¤¤¤¯¤Ä¤«¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô (kernel) ¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), ¤³¤³¤Ç z_i ¤Ï i ÈÖÌܤΥǡ¼¥¿¤ÎÃͤǡ¢d_i ¤Ï¸½ºß¤Î³Ê»ÒÅÀ¤È i ÈÖÌܤΥǡ¼¥¿ÅÀ¤Î°ÌÃÖ¤È ¤Îµ÷Î¥¤Ç¤¹¡£¤¹¤Ù¤Æ¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬¡¢¸½ºß¤Î³Ê»ÒÅÀ¤Ë¶á¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï Â礤ʽŤߡ¢±ó¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï¾®¤µ¤¤½Å¤ß¤òÉÕ¤±¤Þ¤¹¡£
°Ê²¼¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬»ÈÍѤǤ¤Þ¤¹:
gauss : w(d) = exp(-d*d) cauchy : w(d) = 1/(1 + d*d) exp : w(d) = exp(-d) box : w(d) = 1 d<1 ¤Î¾ì¹ç = 0 ¤½¤Î¾ hann : w(d) = 0.5*(1+cos(pi*d)) d<1 ¤Î¾ì¹ç w(d) = 0 ¤½¤Î¾
¤³¤ì¤é 5 ¤Ä¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô¤Î¤¦¤Á°ì¤Ä¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢2 ¤Ä¤Þ¤Ç¤ÎÄÉ ²Ã¥Ñ¥é¥á¡¼¥¿ dx ¤È dy ¤ò»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢µ÷Î¥¤Î·×»»»þ¤ËºÂɸ¤Î°ã ¤¤¤ò¥¹¥±¡¼¥ëÊÑ´¹¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹: d_i = sqrt( ((x-x_i)/dx)**2 + ((y-y_i)/dy)**2 ), ¤³¤³¤Ç¡¢x,y ¤Ï¸½ºß¤Î ³Ê»ÒÅÀ¤ÎºÂɸ¤Ç¡¢x_i,y_i ¤Ï i ÈÖÌܤΥǡ¼¥¿ÅÀ¤ÎºÂɸ¤Ç¤¹¡£dy ¤Î¥Ç¥Õ¥©¥ë¥È ¤ÎÃÍ¤Ï dx ¤Ç¡¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 1 ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ dx ¤È dy ¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤¬³Ê»ÒÅÀ¤Ø¡Ö¥Ç¡¼¥¿¤½¤ì¼«¿È¤Îñ°Ì¤Ç¡×¤Î´óÍ¿¤ò¹Ô¤¦ÈϰϤΠÀ©¸æ¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¥¡¼¥ï¡¼¥É kdensity ¤Ï¡¢½Å¤ßÉÕ¤±´Ø¿ô̾¤Î¸å¤í¤Ç¥ª¥×¥·¥ç¥ó¤Î ¥¹¥±¡¼¥ëÊÑ´¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÁ°¤ËÃÖ¤¯¤â¤Î¤Ç¡¢¤³¤ì¤Ï¥¢¥ë¥´¥ê¥º¥à¤òÊѹ¹¤·¤Æ¡¢ ³Ê»ÒÅÀÍѤ˷׻»¤¹¤ëÃͤò½Å¤ß¤ÎÏ ( z = Sum_i w(d_i) * z_i ) ¤Ç¤Ï³ä¤é¤Ê¤¤ ¤è¤¦¤Ë¤·¤Þ¤¹¡£z_i ¤¬¤¹¤Ù¤ÆÄê¿ô¤Î¾ì¹ç¡¢¤³¤ì¤Ï»ö¼Â¾å 2 ÊÑ¿ô¤Î½Å¤ßÉÕ¤±É¾ ²Á¤òÉÁ²è¤·¤Þ¤¹: (¾å¤Î 5 ¤Ä¤Î¤¦¤Á¤Î°ì¤Ä¤Î) ½Å¤ßÉÕ¤±´Ø¿ô¤¬³Æ¥Ç¡¼¥¿ÅÀ¤ËÃÖ ¤«¤ì¡¢¤½¤ì¤é¤Î½Å¤ß¤ÎϤ¬¤¹¤Ù¤Æ¤Î³Ê»ÒÅÀ¤Çɾ²Á¤µ¤ì¡¢¤½¤·¤Æ¸µ¤Î¥Ç¡¼¥¿¤ÎÂå ¤ï¤ê¤Ë¤³¤Î³ê¤é¤«¤Ê¶ÊÌ̤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢1 ¼¡¸µ¤Î¥Ç¡¼¥¿½¸¹ç¤ËÂФ¹ ¤ë smooth kdensity ¥ª¥×¥·¥ç¥ó¤¬¹Ô¤¦¤³¤È¤È¤ª¤ª¤Þ¤«¤Ë¤ÏƱ¤¸¤Ç¤¹¡£»ÈÍÑ Îã¤Ë´Ø¤·¤Æ¤Ï¡¢kdensity2d.dem, heatmap_points.dem ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Í¥Ã¥È¾å¤Î°Ê²¼¤Î¥Ç¥â¤â»²¾È
^
<a href="http://www.gnuplot.info/demo/dgrid3d.html">
dgrid3d
^
</a>
^
<a href="http://www.gnuplot.info/demo/scatter.html">
scatter
^
</a>
heatmap_points
½ñ¼°:
set dummy {<dummy-var>} {,<dummy-var>} show dummy
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤Ï plot ¤Ç¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¡¢¤¢¤ë¤¤¤Ï¶ËºÂ ɸ¥â¡¼¥É¤Ç¤Ï "t", ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð "x" ¤òÆÈΩÊÑ¿ô (²¾ÊÑ¿ô) ¤È¤·¡¢Æ±ÍÍ¤Ë splot ¤Ç¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï (splot ¤Ï¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï»È¤¨¤Þ¤»¤ó) "u" ¤È "v", ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð "x" ¤È "y" ¤òÆÈΩÊÑ¿ô¤È¤·¤Þ¤¹¡£
²¾ÊÑ¿ô¤Ï¡¢ÊªÍýŪ¤Ë°ÕÌ£¤Î¤¢¤ë̾Á°¡¢¤¢¤ë¤¤¤Ï¤è¤êÊØÍø¤Ê̾Á°¤È¤·¤Æ»È¤¦Êý¤¬ ÊØÍø¤Ç¤·¤ç¤¦¡£Î㤨¤Ð¡¢»þ´Ö¤Î´Ø¿ô¤òÉÁ²è¤¹¤ë¾ì¹ç:
set dummy t plot sin(t), cos(t)
Îã:
set dummy u,v set dummy ,s
ÂèÆó¤ÎÎã¤Ï¡¢2 ÈÖÌܤÎÊÑ¿ô¤ò s ¤È¤·¤Þ¤¹¡£²¾ÊÑ¿ô̾¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌ᤹ ¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
unset dummy
½ñ¼°:
set encoding {<value>} set encoding locale show encoding
͸ú¤ÊÃÍ (value) ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
default - ½ÐÎÏ·Á¼°¤Ë¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥ó¥³¡¼¥É¤Î»ÈÍѤòÌ¿Îá iso_8859_1 - UTF-8 ¤è¤êºÇ¤â°ìÈÌŪ¤ÊÀ¾¥è¡¼¥í¥Ã¥Ñ¥¨¥ó¥³¡¼¥É¡£¤³¤Î¥¨ ¥ó¥³¡¼¥É¤Ï PostScript ¤ÎÀ¤³¦¤Ç¤Î 'ISO-Latin1' ¤Ç¤¹¡£ iso_8859_15 - ¥æ¡¼¥íµ¹æ¤ò´Þ¤à iso_8859_1 ¤Î°¡¼ï iso_8859_2 - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Ç»ÈÍѤµ¤ì¤ë¥¨¥ó¥³¡¼¥É iso_8859_9 - (Latin5 ¤È¤·¤ÆÃΤé¤ì¤ë) ¥È¥ë¥³¤Ç»ÈÍѤµ¤ì¤ë¥¨¥ó¥³¡¼¥É koi8r - Îɤ¯»È¤ï¤ì¤ë Unix ¤Î¥¥ê¥ëʸ»ú¥¨¥ó¥³¡¼¥É koi8u - Unix ¤Î¥¦¥¯¥é¥¤¥ÊÃÏÊý¤Î¥¥ê¥ëʸ»ú¥¨¥ó¥³¡¼¥É cp437 - MS-DOS ¤Î¥³¡¼¥É¥Ú¡¼¥¸ cp850 - À¾¥è¡¼¥í¥Ã¥Ñ¤Î OS/2 ¤Î¥³¡¼¥É¥Ú¡¼¥¸ cp852 - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Î OS/2 ¤Î¥³¡¼¥É¥Ú¡¼¥¸ cp950 - MS ÈǤΠBig5 (emf terminal ¤Î¤ß) cp1250 - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸ cp1251 - ¥í¥·¥¢¡¢¥»¥ë¥Ó¥¢¡¢¥Ö¥ë¥¬¥ê¥¢¡¢¥Þ¥±¥É¥Ë¥¢¸ì (8 ¥Ó¥Ã¥È) cp1252 - À¾¥è¡¼¥í¥Ã¥Ñ¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸ cp1254 - ¥È¥ë¥³¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸ (Latin5 ¤Î³ÈÄ¥) sjis - Shift_JIS ÆüËܸ쥨¥ó¥³¡¼¥É utf8 - ³Æʸ»ú¤Î Unicode ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤Î¡¢²ÄÊÑĹ (¥Þ¥ë¥Á¥Ð ¥¤¥È) ɽ¸½
¥³¥Þ¥ó¥É set encoding locale ¤Ï¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤È¤Ï°ã¤¤¡¢¤³¤ì¤Ï¸½ºß ¤Î¥í¥«¡¼¥ë¤ò¼Â¹Ô»þ¤Î´Ä¶¤«¤é·èÄꤷ¤è¤¦¤È¤·¤Þ¤¹¡£¤¿¤¤¤Æ¤¤¤Î¥·¥¹¥Æ¥à¤Ç¤Ï ¤³¤ì¤Ï´Ä¶ÊÑ¿ô LC_ALL, LC_CTYPE, LANG ¤Î¤¤¤º¤ì¤«¤Ë¤è¤Ã¤ÆÀ©¸æ¤µ¤ì¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤϡ¢Î㤨¤Ð wxt, pdf ½ÐÎÏ·Á¼°¤Ç¡¢UTF-8 ¤ä EUC-JP ¤Î¤è¤¦¤Ê¥Þ¥ë ¥Á¥Ð¥¤¥Èʸ»ú¥¨¥ó¥³¡¼¥É¤òÄ̤¹¤¿¤á¤ËɬÍפǤ¹¡£¤³¤Î¥³¥Þ¥ó¥É¤ÏÆüÉÕ¤ä¿ô»ú¤Ê ¤É¤Î¥í¥«¡¼¥ëÆÃͤÎɽ¸½¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£ °Ê²¼¤â»²¾È: set locale (112.45), set decimalsign (112.24)¡£
°ìÈ̤˥¨¥ó¥³¡¼¥É¤ÎÀßÄê¤Ï¡¢¤½¤ì¤¬¥Õ¥©¥ó¥È¤ÎÁªÂò¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¤è¤¦¤Ë¡¢½Ð ÎÏ·Á¼°¤ÎÀßÄê¤ÎÁ°¤Ë¹Ô¤Ê¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
½ñ¼°:
set errorbars {small | large | fullwidth | <size>} {front | back} {line-properties} unset errorbars show errorbars
small ¤Ï 0.0 (¸òº¹Àþ¤Ê¤·)¡¢large ¤Ï 1.0 ¤ÈƱ¤¸¤Ç¤¹¡£¥µ¥¤¥º¤ò»ØÄꤷ ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 1.0 ¤Ç¤¹¡£
¥¡¼¥ï¡¼¥É fullwidth ¤Ï¡¢errorbar ¤òȼ¤¦ boxplot ¤È histograms ¤Ë¤Î ¤ß´ØÏ¢¤·¤Þ¤¹¡£¤³¤ì¤Ï errorbar ¤Îξü¤ÎÉý¤ò¡¢Âбþ¤¹¤ëÈ¢¤ÎÉý¤ÈƱ¤¸¤ËÀßÄê ¤·¤Þ¤¹¤¬¡¢È¢¤ÎÉý¼«ÂΤòÊѹ¹¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¥¡¼¥ï¡¼¥É front, back ¤Ï¡¢ÅɤêÄÙ¤·Ä¹Êý·Á¤Î¤Ä¤¤¤¿ errorbar ¤Î¤ß¤Ë ´ØÏ¢¤·¤Þ¤¹ (boxes, candlesticks, histograms)¡£
¸íº¹Àþ (errorbar) ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï´ØÏ¢¤¹¤ëÈ¢¤Î¶³¦Àþ¤ÈƱ¤¸Àþ°À¤ÇÉÁ ²è¤·¤Þ¤¹¤¬¡¢¤³¤ì¤ò¸íº¹ÀþÍѤËÍÑ°Õ¤·¤¿Àþ°À¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£
set errorbars linecolor black linewidth 0.5 dashtype '.'
½ñ¼°:
set fit {nolog | logfile {"<filename>"|default}} {{no}quiet|results|brief|verbose} {{no}errorvariables} {{no}covariancevariables} {{no}errorscaling} {{no}prescale} {maxiter <value>|default} {limit <epsilon>|default} {limit_abs <epsilon_abs>} {start-lambda <value>|default} {lambda-factor <value>|default} {script {"<command>"|default}} {v4 | v5} unset fit show fit
¥ª¥×¥·¥ç¥ó logfile ¤Ï¡¢fit ¥³¥Þ¥ó¥É¤¬¤½¤Î½ÐÎϤò½ñ¤½Ð¤¹¾ì½ê¤òÄêµÁ ¤·¤Þ¤¹¡£ °ú¿ô <filename> ¤Ï¡¢Ã±°ì°úÍÑÉ䤫Æó½Å°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ ¤¹¡£¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï unset fit ¤ò»ÈÍѤ·¤¿¾ì¹ç ¤Ï¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤǤ¢¤ë "fit.log"¡¢¤Þ¤¿¤Ï´Ä¶ÊÑ¿ô FIT_LOG ¤ÎÃͤ˥ꥻ¥Ã¥È¤µ¤ì¤Þ¤¹¡£Í¿¤¨¤é¤ì¤¿¥í¥°¥Õ¥¡¥¤¥ë̾¤¬ / ¤« \ ¤Ç ½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï¥Ç¥£¥ì¥¯¥È¥ê̾¤È²ò¼á¤µ¤ì¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ï¤½¤Î¥Ç¥£ ¥ì¥¯¥È¥ê¤Î "fit.log" ¤È¤Ê¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î¥í¥°¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤ë¾ðÊó¤Ï¡¢ÂÐÏ÷¿½ÐÎϤˤâ½ÐÎϤ· ¤Þ¤¹¡£set fit quiet ¤Ï¤½¤ÎÂÐÏ÷¿½ÐÎϤò¥ª¥Õ¤Ë¤·¡¢results ¤ÏºÇ½ª·ë²Ì ¤Î¤ß¤ò½ÐÎϤ·¤Þ¤¹¡£brief ¤Ï¡¢ÄÉ²Ã¤Ç fit ¤Î¤¹¤Ù¤Æ¤Î·«¤êÊÖ¤·¤Ë´Ø¤·¤Æ 1 ¹Ô¤ÎÍ×Ìó¤òÄ󶡤·¤Þ¤¹¡£verbose ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 4 ¤Î¤è¤¦¤Ê¾ÜºÙ¤Ê·«¤êÊÖ ¤·¤ÎÊó¹ð¤ò¹Ô¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó errorvariables ¤ò ON ¤Ë¤¹¤ë¤È¡¢fit ¥³¥Þ¥ó¥É¤Ç·×»»¤µ¤ì¤¿ ¸Ä¡¹¤ÎÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤¬¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿¤Î̾Á°¤Ë "_err" ¤ò¤Ä¤± ¤¿Ì¾Á°¤Î¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤Ë¥³¥Ô¡¼¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤È¥Ç¡¼ ¥¿¤ÎÉÁ²è¥°¥é¥Õ¤Î¾å¤Ë¥Ñ¥é¥á¡¼¥¿¤È¤½¤Î¸íº¹¤ò»²¾ÈÍѤ˽ÐÎϤ¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ ¤¹¡£Îã:
set fit errorvariables fit f(x) 'datafile' using 1:2 via a, b print "error of a is:", a_err set label 1 sprintf("a=%6.2f +/- %6.2f", a, a_err) plot 'datafile' using 1:2, f(x)
¥ª¥×¥·¥ç¥ó errorscaling ¤ò»ØÄꤹ¤ë¤È (¥Ç¥Õ¥©¥ë¥È)¡¢¥Ñ¥é¥á¡¼¥¿¤Î·×»» ¸íº¹¤òÊäÀµ¦Ö¼«¾è (reduced ¦Ö-square) ¤Ç¿½Ì¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢·ë²Ì¤È¤·¤Æ ÊäÀµ¦Ö¼«¾èÃͤˤʤ롢Åö¤Æ¤Ï¤á·×»»¤Îɸ½àÊк¹ (FIT_STDFIT) ¤ËÅù¤·¤¤¥Ç¡¼¥¿ ¸íº¹¤òÄ󶡤¹¤ë¤³¤È¤ÈƱÅù¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó noerrorscaling ¤Ç¤Ï¡¢ ɾ²Á¸íº¹¤Ï¡¢¿½Ì¤µ¤ì¤Ê¤¤Åö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Îɸ½àÊк¹¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥Ç¡¼¥¿¤Î½Å¤ß¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤Ï¾ï¤Ë¿½Ì¤µ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó prescale ¤ò¥ª¥ó¤Ë¤¹¤ë¤È¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤ËÅÏ ¤¹Á°¤Ë¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÃͤò¤½¤ì¤é¤Î½é´üÃͤ˽¾¤Ã¤Æ»öÁ°¤Ë¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÂ礤µ¤Ë¤«¤Ê¤êÂ礤ʰ㤤¤¬¤¢¤ë¾ì¹ç¤Ë¡¢ÂçÊÑÍ ¸ú¤Ç¤¹¡£¤¿¤À¤·¡¢½é´üÃͤ¬´°Á´¤Ë 0 ¤ÎÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï¡¢·è¤·¤Æ¤³¤Î ¥¹¥±¡¼¥ëÊÑ´¹¤Ï¹Ô¤¤¤Þ¤»¤ó¡£
È¿Éü¿ô¤Î¸Â³¦Ãͤϡ¢¥ª¥×¥·¥ç¥ó maxiter ¤ÇÀ©¸Â¤Ç¤¤Þ¤¹¡£¤½¤ì¤ò 0 ¤« default ¤È¤¹¤ë¤È¡¢¤½¤ì¤Ï¸Â³¦¤¬¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó limit ¤Ï¡¢¼ý«¤ò¸¡½Ð¤¹¤ë¤¿¤á¤Î¤â¤Ã¤È¤â¾®¤µ¤¤¿ô»ú¤Î¸Â³¦ (1e-5) ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÊѹ¹¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¼«¾è»Äº¹¤ÎϤ¬¤³¤Î¿ôÃÍ Ì¤Ëþ¤ÎÈæΨ¤ÎÊѲ½¤·¤«¤·¤Ê¤¤¾ì¹ç¤Ï¡¢Åö¤Æ¤Ï¤á¤Ï¡Ö¼ý«¤·¤¿¡×¤ÈȽÃǤµ¤ì¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó limit_abs ¤Ï¡¢¼«¾è»Äº¹¤ÎϤÎÊѲ½¤Î¸Â³¦ (ÀäÂÐÃÍ) ¤òÄɲä· ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤¹¡£
¥¢¥ë¥´¥ê¥º¥à¤Ë´Ø¤¹¤ëÊ̤ÎÀ©¸æ¤ò¤·¤¿¤¤¾ì¹ç¡¢¤½¤·¤Æ Marquardt-Levenberg ¥¢¥ë¥´¥ê¥º¥à¤òÎɤ¯ÃΤäƤ¤¤ë¾ì¹ç¡¢¤½¤ì¤Ë±Æ¶Á¤òÍ¿¤¨¤ë°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬ ÍøÍѤǤ¤Þ¤¹: lambda ¤Î½é´üÃͤϡ¢Ä̾KưŪ¤Ë ML-¹ÔÎ󤫤é·×»»¤µ¤ì¤Þ ¤¹¤¬¡¢É¬Íפʤé¤Ð¥ª¥×¥·¥ç¥ó start_lambda ¤ò»È¤Ã¤Æ¤½¤ì¤òÍ¿¤¨¤ë¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£¤½¤ì¤ò default ¤È¤¹¤ë¤È¡¢ºÆ¤Ó¼«Æ°ÀßÄ꤬͸ú¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó lambda_factor ¤Ï¡¢ÂоݤȤ¹¤ë´Ø¿ô¤Î¦Ö¼«¾èÃͤ¬°ÕÌ£¤¢¤ê¤²¤ËÁý²Ã ¤¹¤ë/¸º¾¯¤¹¤ë¤È¤¤Ï¾ï¤Ë lambda ¤òÁý²Ã¤µ¤»¤ë/¸º¾¯¤µ¤»¤ë°ø»Ò¤òÀßÄꤷ¤Þ ¤¹¡£¤½¤ì¤ò default ¤È¤¹¤ë¤È¡¢¥Ç¥Õ¥©¥ë¥È¤Î°ø»Ò¤Ç¤¢¤ë 10.0 ¤Ë¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó script ¤Ï¡¢fit ¤òÃæÃǤ·¤¿¤È¤¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³¥Þ¥ó ¥É¤ò»ØÄꤹ¤ë¤â¤Î¤Ç¤¹¡£°Ê²¼»²¾È: fit (88)¡£¤³¤ÎÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤Î replot ¤ä´Ä¶ÊÑ¿ô FIT_SCRIPT ¤è¤ê¤âÍ¥Àè½ç°Ì¤Ï¾å¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó covariancevariables ¤ò¥ª¥ó¤Ë¤¹¤ë¤È¡¢ºÇ½ªÅª¤Ê¥Ñ¥é¥á¡¼¥¿´Ö ¤Î¶¦Ê¬»¶¤ò¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤ËÊݸ¤·¤Þ¤¹¡£³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÁȤËÂФ·¤Æ¤½¤Î¶¦Ê¬ »¶¤òÊݸ¤¹¤ëÊÑ¿ô̾¤Ï¡¢"FIT_COV_" ¤ËºÇ½é¤Î¥Ñ¥é¥á¡¼¥¿Ì¾¤È "_" ¤È 2 ¤ÄÌÜ ¤Î¥Ñ¥é¥á¡¼¥¿¤ò¤Ä¤Ê¤²¤¿Ì¾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£Î㤨¤Ð¥Ñ¥é¥á¡¼¥¿ "a" ¤È "b" ¤ËÂÐ ¤·¤Æ¤Ï¡¢¤½¤Î¶¦Ê¬»¶ÊÑ¿ô̾¤Ï "FIT_COV_a_b" ¤È¤Ê¤ê¤Þ¤¹¡£
¥Ð¡¼¥¸¥ç¥ó 5 ¤Ç¤Ï¡¢¥³¥Þ¥ó¥É fit ¤Î½ñ¼°¤ÏÊѹ¹¤µ¤ì¡¢¥¡¼¥ï¡¼¥É error ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ïñ°Ì½Å¤ß (unitweights) ¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ ¤·¤¿¡£¥ª¥×¥·¥ç¥ó v4 ¤Ç gnuplot ¥Ð¡¼¥¸¥ç¥ó 4 ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤ËÌá¤ê ¤Þ¤¹¡£°Ê²¼¤â»²¾È: fit (88)¡£
set fontpath "/directory/where/my/fonts/live" set term postscript fontfile <filename>
[version 5.4 ¤Ç¤ÏÈó¿ä¾©]
fontpath ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤¬ºî¤ë PostScript ½ÐÎÏ Æâ¤ËËä¤á¹þ¤à¥Õ¥©¥ó¥È¤Ë¤Î¤ß´Ø·¸¤·¤Þ¤¹¡£ ¾¤Î gnuplot ½ÐÎÏ·Á¼°¤Ë¤Ï²¿¤Î±Æ¶Á¤âÍ¿¤¨¤Þ¤»¤ó¡£ ¤¢¤Ê¤¿¤¬¥Õ¥©¥ó¥È¤òËä¤á¤³¤Þ¤Ê¤±¤ì¤Ð¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï¤¢¤Ê¤¿¤Ë¤ÏɬÍפ¢¤ê¤Þ ¤»¤ó¤·¡¢Ëä¤á¤³¤à¾ì¹ç¤Ç¤â¡¢°Ê²¼¤Ë¼¨¤¹Â¾¤Î¥Ñ¥¹¤Ë¥Õ¥©¥ó¥È¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì ¹ç¤Ë¤Î¤ßɬÍפʤÀ¤±¤Ç¤¹¡£
°ÊÁ°¤ÎÈǤΠgnuplot ¤Ï¡¢¥Õ¥©¥ó¥È¤ò´Þ¤àÊ£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤òõº÷¤¹ ¤ë¤³¤È¤Ç¥Õ¥©¥ó¥È´ÉÍý¥½¥Õ¥È¤ò¤Þ¤Í¤Æ¤¤¤Þ¤·¤¿¡£ ¤·¤«¤·¸½ºß¤Ï¡¢°Ê²¼¤Î¾ì½ê¤ò¸¡º÷¤¹¤ëÊýË¡¤ËÃÖ¤´¹¤ï¤Ã¤Æ¤¤¤Þ¤¹¡£ (1) set term postscript fontfile ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤¿ÀäÂХѥ¹ (2) ¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê (¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê) (3) set loadpath ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¹¤Ù¤Æ (4) set fontpath ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê (5) ´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê
Ãí°Õ: libgd ¤Î½ÐÎÏ·Á¼° (png gif jpeg sixel) ÍѤ˥ե¡¥¤¥ë̾¤Ç»ØÄꤹ¤ë¥Õ ¥©¥ó¥È¤Î¸¡º÷¥Ñ¥¹¤Ï¡¢´Ä¶ÊÑ¿ô GDFONTPATH ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set format {<axes>} {"<format-string>"} {numeric|timedate|geographic} show format
¤³¤³¤Ç¡¢<axes> (¼´) ¤Ï x, y, xy, x2, y2, z, cb¡¢¤Þ¤¿¤Ï²¿ ¤â»ØÄꤷ¤Ê¤¤¤« (¤½¤Î¾ì¹ç¤½¤Î½ñ¼°¤Ï¤¹¤Ù¤Æ¤Î¼´¤ËŬÍѤµ¤ì¤Þ¤¹) ¤Î¤¤¤º¤ì¤« ¤Ç¤¹¡£°Ê²¼¤Î 2 ¤Ä¤Î¥³¥Þ¥ó¥É¤ÏÁ´¤¯Æ±Åù¤Ç¤¹:
set format y "%.2f" set ytics format "%.2f"
½ñ¼°Ê¸»úÎó¤ÎŤµ¤Ï 100 ʸ»ú¤Þ¤Ç¡¢¤ÈÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î½ñ¼° ʸ»úÎó¤Ï "% h" ¤Ç¡¢LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤Ç¤Ï "$%h$" ¤Ç¤¹¡£Â¾¤Ë "%.2f" ¤ä "%3.0em" ¤Î¤è¤¦¤Ê½ñ¼°¤¬¹¥¤Þ¤ì¤ë¤³¤È¤â¿¤¤¤Ç¤·¤ç¤¦¡£"set format" ¤Î¸å¤í ¤Ë²¿¤â¤Ä¤±¤º¤Ë¼Â¹Ô¤¹¤ë¤È¡¢¥Ç¥Õ¥©¥ë¥È¤ËÌᤷ¤Þ¤¹¡£
¶õʸ»úÎó "" ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¹ï¤ß¼«¿È¤Ïɽ¼¨¤·¤Þ¤¹¤¬¸«½Ð¤·¤Ï¤Ä¤±¤Þ¤»¤ó¡£ ¹ï¤ß¼«¿È¤ò¾Ã¤¹¤Ë¤Ï¡¢ unset xtics ¤Þ¤¿¤Ï set tics scale 0 ¤ò»ÈÍѤ· ¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°Ê¸»úÎó¤Ç¤Ï¡¢²þ¹Ôʸ»ú ( \n) ¤ä³Èĥʸ»úÎó½èÍý (enhanced text) ÍÑ¤Î¥Þ ¡¼¥¯¥¢¥Ã¥×¤â»È¤¨¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ï¡¢Ã±°ì°úÍÑÉä (') ¤Ç¤Ê¤¯ (") ¤ò»È¤Ã¤Æ ¤¯¤À¤µ¤¤¡£°Ê²¼¤â»²¾È: syntax (30)¡£ "%" ¤¬Æ¬¤Ë¤Ä¤«¤Ê¤¤Ê¸»ú¤Ï¤½¤Î¤Þ¤Þɽ¼¨¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢½ñ¼°Ê¸»úÎóÆâ¤Ë ¥¹¥Ú¡¼¥¹¤äʸ»úÎó¤Ê¤É¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨¤Ð "%g m" ¤È¤¹¤ì¤Ð¡¢ ¿ôÃͤθå¤Ë " m" ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"%" ¼«¿È¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ë¤Ï "%g %%" ¤Î ¤è¤¦¤Ë 2 ¤Ä½Å¤Í¤Þ¤¹¡£
¹ï¤ß¤Ë´Ø¤¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: set xtics (112.123)¡£¤Þ¤¿¡¢ ¤³¤ÎÊýË¡¤Ç½ÐÎϤµ¤ì¤ë¿ô»ú¤Ë¥Ç¥Õ¥©¥ë¥È°Ê³°¤Î¾®¿ôʬΥʸ»ú¤ò»È¤¦¤ä¤êÊý¤Ë¤Ä ¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set decimalsign (112.24)¡£ °Ê²¼¤â»²¾È ¥¨¥ì¥¯¥È¥í¥ó (ÅÅ»Ò) ¥Ç¥â (electron.dem).
ÌÜÀ¹¤ê¥é¥Ù¥ë¤Î¿ôÃͽñ¼°»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%f |
¸ÇÄê¾®¿ôÅÀɽµ |
%e , %E |
»Ø¿ôɽµ; »Ø¿ô¤ÎÁ°¤Ë "e", "E" ¤ò¤Ä¤±¤ë |
%g , %G |
%e (¤Þ¤¿¤Ï %E ) ¤È %f ¤Îάµ |
%h , %H |
%g ¤Ë "e%S" ¤Ç¤Ê¤¯ "x10^{%S}" ¤« "*10^{%S}" ¤ò¤Ä¤±¤ë |
%x , %X |
16 ¿Êɽµ |
%o , %O |
8 ¿Êɽµ |
%t |
10 ¿Ê¤Î²¾¿ôÉô |
%l |
¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë²¾¿ôÉô |
%s |
¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë²¾¿ôÉô; Êä½õñ°Ì (scientific power) |
%T |
10 ¿Ê¤Î»Ø¿ôÉô |
%L |
¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë»Ø¿ôÉô |
%S |
Êä½õñ°Ì¤Î»Ø¿ôÉô (scientific power) |
%c |
Êä½õñ°Ìʸ»ú |
%b |
ISO/IEC 80000 µË¡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ¤Î²¾¿ôÉô |
%B |
ISO/IEC 80000 µË¡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ¤ÎÀÜƬ¼ |
%P |
¦Ð¤ÎÇÜ¿ô |
Êä½õñ°Ì ('scientific' power) ¤Ï¡¢»Ø¿ô¤¬ 3 ¤ÎÇÜ¿ô¤Ç¤¢¤ë¤è¤¦¤Ê¤â¤Î¤Ç¤¹¡£ Êä½õñ°Ì»Ø¿ô ("%c") ¤Îʸ»ú¤Ø¤ÎÊÑ´¹¤Ï -18 ¤«¤é +18 ¤Þ¤Ç¤Î»Ø¿ô¤ËÂФ·¤Æ ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÈϰϳ°¤Î»Ø¿ô¤Î¾ì¹ç¡¢½ñ¼°¤ÏÄ̾ï¤Î»Ø¿ô·Á¼°¤Ë Ìá¤ê¤Þ¤¹¡£
¤Û¤«¤Ë»È¤¦¤³¤È¤Î¤Ç¤¤ë½¤¾þ»ì ("%" ¤È½ñ¼°»ØÄê»Ò¤Î´Ö¤Ë½ñ¤¯¤â¤Î) ¤Ë¤Ï¡¢ ¼¡¤Î¤¤¤¯¤Ä¤«¤¬¤¢¤ê¤Þ¤¹: "-" ¤Ï¿ô»ú¤òº¸µÍ¤á¤Ë¤·¡¢"+" ¤ÏÀµ¤Î¿ô¤Ë¤âÉä¹æ¤ò ¤Ä¤±¡¢" " (¶õÇò°ì¤Ä) ¤ÏÉé¤Î¿ô¤Ë "-" ¤ò¤Ä¤±¤ë¤Ù¤¾ì½ê¤ËÀµ¤Î¿ô¤Î¾ì¹ç¤Ë¶õ Çò¤ò°ì¤Ä¤Ä¤±¡¢"#" ¤Ï¾®¿ôÅÀ°Ê²¼¤Î¿ô»ú¤¬ 0 ¤À¤±¤Ç¤¢¤Ã¤Æ¤â¾®¿ôÅÀ¤ò¤Ä¤±¡¢ Àµ¤ÎÀ°¿ô¤Ï½ÐÎÏÉý¤òÄê¤á¡¢½ÐÎÏÉý»ØÄê¤ÎľÁ°¤Î "0" (ʸ»ú¤Ç¤Ê¤¯¿ô»ú) ¤ÏÀèƬ ¤Ë¶õ¤¤¤¿Éôʬ¤ò¶õÇò¤ÇËä¤á¤ëÂå¤ï¤ê¤Ë 0 ¤ÇËä¤á¡¢¾®¿ôÅÀ¤Î¸å¤ËÈóÉé¤ÎÀ°¿ô¤ò ½ñ¤¤¤¿¤â¤Î¤ÏÀºÅÙ¤ò°ÕÌ£¤·¤Þ¤¹ (À°¿ô¤Î¾ì¹ç¤ÏºÇ¾®·å¡¢¾®¿ô¤Î¾ì¹ç¤Ï¾®¿ôÅÀ°Ê ²¼¤Î·å¿ô)¡£
¤³¤ì¤é¤ÎÁ´¤Æ¤Î½¤¾þ»ì¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤ OS ¤â¤¢¤ë¤Ç¤·¤ç¤¦¤·¡¢µÕ¤Ë¤³¤ì °Ê³°¤Î¤â¤Î¤ò¤â¥µ¥Ý¡¼¥È¤¹¤ë OS ¤â¤¢¤ë¤Ç¤·¤ç¤¦¡£µ¿¤ï¤·¤¤¾ì¹ç¤Ï¡¢Å¬Àڤʻñ ÎÁ¤òÄ´¤Ù¡¢¤½¤·¤Æ¼Â¸³¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set format y "%t"; set ytics (5,10) # "5.0" ¤È "1.0" set format y "%s"; set ytics (500,1000) # "500" ¤È "1.0" set format y "%+-12.3f"; set ytics(12345) # "+12345.000 " set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04" set format y "%s*10^{%S}"; set ytic(12345) # "12.345*10^{3}" set format y "%s %cg"; set ytic(12345) # "12.345 kg" set format y "%.0P pi"; set ytic(6.283185) # "2 pi" set format y "%.0f%%"; set ytic(50) # "50%"
set log y 2; set format y '%l'; set ytics (1,2,3) #"1.0", "1.0", "1.5" ¤Èɽ¼¨¤µ¤ì¤ë (3 ¤Ï 1.5 * 2^1 ¤Ê¤Î¤Ç)
´Ý¤á¤È»Ø¿ô¤¬É¬ÍפȤʤë¤è¤¦¤Ê½ñ¼°¤Ç 9.999 ¤ÎÍͤʿô»ú¤¬½ñ¤«¤ì¤ë¾ì¹ç¤Ï ÌäÂ꤬µ¯¤³¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
¼´¤Î¥Ç¡¼¥¿·¿¤¬Æü»þ¥Ç¡¼¥¿ (time/date) ¤Î¾ì¹ç¡¢½ñ¼°Ê¸»úÎó¤Ï 'strftime' ´Ø¿ô ('gnuplot' ³°¡£"man strftime" ¤È¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤) ¤Ë´Ø¤¹¤ë͸ú¤Ê »ØÄê¤ò¹Ô¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£»È¤¨¤ëÆþÎϽñ¼°»ØÄê¤Î°ìÍ÷¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set timefmt (112.96)¡£
Æü»þ½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
ÆüÉÕ»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%a |
ÍËÆü̾¤Î¾Êά·Á (Sun,Mon,...) |
%A |
ÍËÆü̾ (Sunday,Monday,...) |
%b , %h |
·î̾¤Î¾Êά·Á (Jan,Feb,...) |
%B |
·î̾ (January,February,...) |
%d |
Æü (01–31) |
%D |
"%m/%d/%y" ¤Î´Êά·Á (½ÐÎϤΤß) |
%F |
"%Y-%m-%d" ¤Î´Êά·Á (½ÐÎϤΤß) |
%k |
»þ (0–23; 1 ·å¤Þ¤¿¤Ï 2 ·å) |
%H |
»þ (00–23; ¾ï¤Ë 2 ·å) |
%l |
»þ (1–12; 1 ·å¤Þ¤¿¤Ï 2 ·å) |
%I |
»þ (01–12; ¾ï¤Ë 2 ·å) |
%j |
¤½¤Îǯ¤ÎÄÌ»»Æü (001–366) |
%m |
·î (01–12) |
%M |
ʬ (00–60) |
%p |
"am" ¤Þ¤¿¤Ï "pm" |
%r |
"%I:%M:%S %p" ¤Î´Êά·Á (½ÐÎϤΤß) |
%R |
"%H:%M" ¤Î´Êά·Á (½ÐÎϤΤß) |
%S |
Éà (½ÐÎÏ¤Ç¤Ï 00–60 ¤ÎÀ°¿ô¡¢ÆþÎϤǤϼ¿ô) |
%s |
1970 ǯºÇ½é¤«¤é¤ÎÉÿô |
%T |
"%H:%M:%S" ¤Î´Êά·Á (½ÐÎϤΤß) |
%U |
¤½¤Îǯ¤ÎÄÌ»»½µ (CDC/MMWR ±Ö³ØŪ½µ) (ÆþÎϤǤÏ̵»ë) |
%w |
ÍËÆüÈÖ¹æ (0–6, ÆüÍË = 0) |
%W |
¤½¤Îǯ¤ÎÄÌ»»½µ (ISO 8601 ¤Î½µÈÖ¹æ) (ÆþÎϤǤÏ̵»ë) |
%y |
À¾Îñ (0-99¡¢1969-2068 ǯ¤Î²¼ 2 ·å) |
%Y |
À¾Îñ (4 ·å) |
%z |
¥¿¥¤¥à¥¾¡¼¥ó¡¢[+-]hh:mm |
%Z |
¥¿¥¤¥à¥¾¡¼¥ó̾¡¢Ê¸»úÎó¤Ï̵»ë |
½ñ¼° %W (ISO ¤Î½µÈÖ¹æ) ¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: tm_week (15.3.17.4)¡£ ½ñ¼° %U (CDC/MMWR: ¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼±Ö³Ø½µÊó¤Î±Ö³ØŪ½µÈÖ¹æ) ¤Ï¡¢½µ¤¬·îÍ˳«»Ï¤Ç¤Ê¤¯ÆüÍ˳«»Ï¤Ç¤¢¤ë¤³¤È¤ò½ü¤±¤Ð %W ¤ÈƱÍͤǤ¹¡£ ·Ù¹ð: ¥Ð¡¼¥¸¥ç¥ó 5.4.2 ¤è¤êÁ°¤Î gnuplot ¤Ç¤Ï¡¢½ñ¼° %W ¤È %U ¤Ï¤¤¤º¤ì¤â ¿®Íê¤Ç¤¤Þ¤»¤ó¡£"week_date.dem" ¤Îñ°Ì¥Æ¥¹¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
ÁêÂлþ¹ï½ñ¼°¤Ï¡¢»þ¹ï 0 ÃÏÅÀ¤Î¤¤¤º¤ì¤«¤Î¦¤Î»þ´Ö´Ö³Ö¤ÎŤµ¤òɽ¸½¤·¤Þ¤¹¡£ ÁêÂлþ¹ï½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
»þ¹ï»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%tD |
»þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤ÎÆüÉÕ |
%tH |
»þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤Î»þ (24 ¤Ç¤Î´¬Ìᤷ¤Ê¤·) |
%tM |
»þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤Îʬ |
%tS |
ľÁ°¤Î tH, tM ¹àÌܤËÂбþ¤¹¤ëÀµÉé¤ÎÉÿô |
¿ô»ú¤òɽ¤¹½ñ¼°¤Ë¤Ï¡¢ÀèƬ¤Ë 0 ¤òËä¤á¤ë¤¿¤á¤Ë "0" (¥¼¥í) ¤òÁ°¤Ë¤Ä¤±¤ë¤³ ¤È¤¬¤Ç¤¡¢¤Þ¤¿ºÇ¾®¤Î½ÐÎÏÉý¤ò»ØÄꤹ¤ë¤¿¤á¤ËÀµ¤ÎÀ°¿ô¤òÁ°¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç ¤¤Þ¤¹¡£½ñ¼° %S ¤È %t ¤ÏÀºÅÙ»ØÄê¤â¼õ¤±¤Ä¤±¤ë¤Î¤Ç¡¢¾®¿ô¤Î»þ/ʬ/Éäò½ñ¤¯ ¤³¤È¤â¤Ç¤¤Þ¤¹¡£
ÆüÉÕ½ñ¼°¤ÎÎã:
x ¤ÎÃͤ¬¡¢1976 ǯ 12 ·î 25 Æü¤Î¿¼Ì뾯¤·Á°¤Î»þ¹ï¤ËÂбþ¤¹¤ëÉÿô¤Ç¤¢¤ë¤È ²¾Äꤷ¤Þ¤¹¡£¤³¤Î°ÌÃ֤μ´¤Î¹ï¤ß¥é¥Ù¥ëʸ»úÎó¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹:
set format x # ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï "12/25/76 \n 23:11" set format x "%A, %d %b %Y" # "Saturday, 25 Dec 1976" set format x "%r %D" # "11:11:11 pm 12/25/76" set xtics time format "%B" # "December"
»þ¹ï½ñ¼°¤ÎÎã:
ÆüÉÕ½ñ¼°»ØÄê¤Ï¡¢Éÿô¤Ç¤Î»þ´Ö¤ÎÃͤò¡¢¤¢¤ëÆÃÄê¤ÎÆü¤Î»þ·×¤Î»þ¹ï¤Ë¥¨¥ó¥³¡¼ ¥É¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢»þ¤Ï 0 ¤«¤é 23 ¤Þ¤Ç¡¢Ê¬¤Ï 0 ¤«¤é 59 ¤Þ¤Ç¤Î¤ß¤òÆ°¤¤Þ ¤¹¤¬¡¢¤½¤ì¤é¤ÎÉé¤ÎÃͤϡ¢¥¨¥Ý¥Ã¥¯ (1970 ǯ 1 ·î 1 Æü) ¤è¤êÁ°¤ÎÆüÉÕ¤ËÂÐ ±þ¤·¤Þ¤¹¡£Éÿô¤Ç¤Î»þ´Ö¤ÎÃͤò¡¢»þ´Ö 0 ¤ËÂФ¹¤ëÁêÂÐŪ¤Ê»þ/ʬ/ÉäοôÃÍ¤È ¤·¤Æ½ÐÎϤµ¤»¤ë¤Ë¤Ï¡¢»þ´Ö½ñ¼° %tH %tM %tS ¤ò»ÈÍѤ·¤Þ¤¹¡£-3672.50 ÉäÎÃÍ ¤Ï°Ê²¼¤Î¤è¤¦¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£
set format x # ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï "12/31/69 \n 22:58" set format x "%tH:%tM:%tS" # "-01:01:12" set format x "%.2tH hours" # "-1.02 hours" set format x "%tM:%.2tS" # "-61:12.50"
½ñ¼°:
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} {{no}vertical} {<line-properties-major> {, <line-properties-minor>}} unset grid show grid
³Ê»ÒÀþ¤ÏǤ°Õ¤Î¼´¤ÎǤ°Õ¤ÎÂçÌÜÀ¹¤ê/¾®ÌÜÀ¹¤ê¤ËÂФ·¤Æ͸ú/̵¸ú¤Ë¤Ç¤¡¢¤½¤Î ÂçÌÜÀ¹¤ê¤È¾®ÌÜÀ¹¤ê¤ËÂФ¹¤ëÀþ¼ï¡¢ÀþÉý¤â»ØÄê¤Ç¤¡¢¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý¡¼ ¥È¤¹¤ëÈϰϤǡ¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: set style line (112.86.8))¡£
2 ¼¡¸µÉÁ²è¤Ç¤Ï¶ËºÂɸ³Ê»Ò¤âÁªÂò¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤¬¶ËºÂɸ¥â¡¼¥É (polar) ¤Î¤È¤¤Î set grid ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤Ç¤¹¤¬¡¢ÌÀ¼¨Åª¤Ë set grid polar <angle> rtics ¤È¤¹¤ì¤Ð¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤¢¤ë¤Ê¤·¤Ë´Ø¤ï ¤é¤º¼Â¹Ô¤Ç¤¤Þ¤¹¡£Æ±¿´±ß¤Ï r ¼´¤Î¼çÌÜÀ¹/ÉûÌÜÀ¹¤Ç¸òº¹¤¹¤ë¤è¤¦¤ËÉÁ¤¡¢Æ° ·Â¤Ï <angle> ¤Î³Ñ¤ò¶õ¤±¤ÆÉÁ¤¤Þ¤¹¡£Æ±¿´±ß¤Î¼þ°Ï¤ÎÌÜÀ¹¤ê¤Î¹ï¤ß¤Ï¡¢ set ttics ¤ÇÀ©¸æ¤·¤Þ¤¹¤¬¡¢¤³¤ì¤ÏÆ°·Â¤Î³Ê»ÒÀþ¤ò¿·¤¿¤Ë¤ÏÀ¸À®¤·¤Þ¤»¤ó¡£
set grid ¤¬ÉÁ¤¯Á°¤Ë¡¢É¬ÍפÊÌÜÀ¹¤ê¤Ï͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ gnuplot ¤Ï¡¢Â¸ºß¤·¤Ê¤¤ÌÜÀ¹¤ê¤ËÂФ¹¤ë³Ê»Ò¤ÎÉÁ²è¤ÎÌ¿Îá¤Ïñ¤Ë̵»ë¤·¤Þ¤¹¡£ ¤·¤«¤·¡¢¸å¤Ç¤½¤ÎÌÜÀ¹¤ê¤¬Í¸ú¤Ë¤Ê¤ì¤Ð¤½¤ì¤ËÂФ¹¤ë³Ê»Ò¤âÉÁ¤¤Þ¤¹¡£
¾®³Ê»ÒÀþ¤ËÂФ¹¤ëÀþ¼ï¤ò²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢Âç³Ê»ÒÀþ¤ÈƱ¤¸Àþ¼ï¤¬»È¤ï¤ì¤Þ ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶ËºÂɸ¤Î³ÑÅÙ¤Ï 30 Å٤Ǥ¹¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È ¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤Ç³Ê»ÒÀþ¤¬¸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï layerdefault ¤Ç¡¢¤³¤ì¤Ï 2D ÉÁ²è¤Ç¤Ï back ¤ÈƱ¤¸¤Ç¤¹¡£ 3D ÉÁ²è¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢³Ê»Ò¤È¥°¥é¥Õ¤ÎÏȤò 2 ¤Ä¤ÎÉÁ²èñ°Ì¤ËʬΥ¤·¡¢³Ê»Ò ¤Ï¸å¤í¤Ë¡¢ÏȤÏÉÁ²è¥Ç¡¼¥¿¤Þ¤¿¤Ï´Ø¿ô¤ÎÁ°¤Ë½ñ¤¤Þ¤¹¡£¤¿¤À¤·¡¢hidden3d ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤ì¤¬¤½¤ì¼«¿È¤ÎʤӴ¹¤¨¤ò¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢³Ê»ÒÀþ¤Î½çÈ֤Υª ¥×¥·¥ç¥ó¤ÏÁ´¤Æ̵»ë¤µ¤ì¡¢³Ê»ÒÀþ¤â±£Àþ½èÍý¤Ë¤«¤±¤é¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢¼ÂºÝ¤Ë¤Ï³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢set border ¤Ë¤è¤ë¶³¦Àþ¤È¤½¤ÎÌÜÀ¹ ¤ê¤Î¹ï¤ß (°Ê²¼»²¾È: set xtics (112.123)) ¤Ë¤â±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£
3 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢x ¼´¤È y ¼´¤Î¹ï¤ß°ÌÃÖ¤ËÂФ¹¤ë³Ê»ÒÀþ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï z=0 ¤ËÊ¿¹Ô¤ÊÄìÌ̾å¤Ë¤·¤«ÉÁ¤¤Þ¤»¤ó¤¬¡¢¥¡¼¥ï¡¼¥É vertical ¤Ï¡¢³Ê»ÒÀþ ¤ò xz ÌÌ¤È yz Ì̤ˤâ zmin ¤«¤é zmax ¤Þ¤ÇÉÁ¤¯¤è¤¦¤Ë¤·¤Þ¤¹¡£
z ¤Î³Ê»ÒÀþ¤ÏÉÁ²è¤ÎÄìÌ̤ËÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¼þ¤ê¤ËÉôʬŪ¤ÊÈ¢¤¬ÉÁ²è ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: set border (112.6)¡£
½ñ¼°:
set hidden3d {defaults} | { {front|back} {{offset <offset>} | {nooffset}} {trianglepattern <bitpattern>} {{undefined <level>} | {noundefined}} {{no}altdiagonal} {{no}bentover} } unset hidden3d show hidden3d
gnuplot ¤ÎÄ̾ï¤Îɽ¼¨¤È¤Ï°Û¤Ê¤ê¡¢±£Àþ½èÍý¤Ç¤ÏÍ¿¤¨¤é¤ì¤¿´Ø¿ô¡¢¤Þ¤¿¤Ï¥Ç¡¼ ¥¿¤Î³Ê»ÒÀþ¤ò¡¢¼ÂºÝ¤Î¶ÊÌ̤¬¤½¤Î¶ÊÌ̤ÎÇظå¤Ë¤¢¤Ã¤Æ±£¤µ¤ì¤Æ¤¤¤ëÉÁ²èÍ×ÁÇ¤Ï ¸«¤»¤Ê¤¤¤Î¤ÈƱ¤¸¤è¤¦¤Ë½èÍý¤·¤Þ¤¹¡£¤³¤ì¤¬µ¡Ç½¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¤½¤Î¶ÊÌ̤¬ '³Ê»Ò¾õ' (°Ê²¼»²¾È: splot datafile (115.1)) ¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¡¢¤Þ¤¿¤½¤ì¤é¤Ï with lines ¤« with linespoints ¤ÇÉÁ¤«¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
hidden3d ¤¬Í¸ú¤Ê¤È¤¤Ï¡¢³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢ÌÌÉôʬ¤äÅÚÂæ¤Î¾å¤ÎÅù¹âÀþ (°Ê²¼»²¾È: set contour (112.19)) ¤â±£¤µ¤ì¤Þ¤¹¡£Ê£¿ô¤ÎÌ̤òÉÁ²è¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ³Æ¶ÊÌ̤ϼ«Ê¬¼«¿È¤È¾¤Î¶ÊÌ̤DZ£¤µ¤ì¤ëÉôʬ¤â»ý¤Á¤Þ¤¹¡£¶ÊÌ̾å¤Ø¤ÎÅù¹âÀþ¤Î ɽ¼¨ (set contour surface) ¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£
¥°¥é¥Õ¾å¤Ë¶ÊÌ̤¬°ì¤Ä¤â¤Ê¤¤¾õÂ֤Ǥ⡢hidden3d ¤Ï points, labels, vectors, impulses ¤Î 3 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ vectors ¤Ï¡¢±£¤µ¤ì¤Ê¤¤Éôʬ¤ÏÀþʬ (ÌðÀè¤Ê¤·) ¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£¥°¥é ¥ÕÆâ¤Î³Æ¡¹¤ÎÉÁ²è¤ò¤³¤Î½èÍý¤«¤éÌÀ¼¨Åª¤Ë½ü³°¤·¤¿¤¤¤È¤¤Ï¡¢with »ØÄê¤Ë ÆÃÊ̤Υª¥×¥·¥ç¥ó nohidden3d ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£
hidden3d ¤Ï¡¢pm3d ¥â¡¼¥É¤ÇÉÁ²è¤µ¤ì¤¿¡¢Ã±¿§Åɤê¤Î¶ÊÌ̤ˤϱƶÁ¤òÍ¿¤¨¤Þ¤» ¤ó¡£pm3d ¤Î¶ÊÌ̤ËÂФ·¤ÆƱÍͤθú²Ì¤ò½ã¿è¤ËÆÀ¤¿¤¤¤Ê¤é¤Ð¡¢¤³¤ì¤ÎÂå¤ï¤ê¤Ë set pm3d depthorder ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ê£¿ô¤Î pm3d ¶ÊÌ̤ËÄ̾ï¤Î hidden3d ½èÍý¤òÁȤ߹ç¤ï¤»¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó set hidden3d front ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢hidden3d ½èÍý¤ÎÁ´¤Æ¤ÎÍ×ÁǤò¡¢pm3d ¶ÊÌ̤ò´Þ¤à »Ä¤ê¤Î¾¤ÎÉÁ²èÍ×ÁǤθå¤Ë¶¯À©Åª¤ËÉÁ²è¤¹¤ë¤â¤Î¤Ç¤¹¡£
´Ø¿ôÃͤϳʻҸÉΩÀþ¤Î¸òÅÀ¤Çɾ²Á¤µ¤ì¤Þ¤¹¡£¸«¤ë¤³¤È¤Î½ÐÍè¤ëÀþʬ¤òµá¤á¤ë¤È ¤¤Ï¸Ä¡¹¤Î´Ø¿ôÃÍ¡¢¤¢¤ë¤¤¤Ï¥Ç¡¼¥¿ÅÀ¤Î´Ö¤Ï¤½¤Î¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤Ã¤ÆÀþ·ÁÊä ´Ö¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢hidden3d ¤ÇÉÁ²è¤¹¤ë¾ì¹ç¤È nohidden3d ¤ÇÉÁ²è¤¹ ¤ë¾ì¹ç¤Ç´Ø¿ô¤Î¸«¤«¤±¤¬°Û¤Ê¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤Ð¡¢¸å¼Ô¤Î¾ì¹ç´Ø ¿ôÃͤϳÆɸËÜÅÀ¤Çɾ²Á¤µ¤ì¤ë¤«¤é¤Ç¤¹¡£¤³¤Î°ã¤¤¤Ë´Ø¤¹¤ëµÄÏÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: set samples (112.83), set isosamples (112.35)¡£
¶ÊÌ̤ᣤµ¤ì¤ëÉôʬ¤ò¾Ãµî¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ç À©¸æ¤µ¤ì¤ë¤¤¤¯¤Ä¤«¤ÎÄɲ媥ץ·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£defaults ¤ò»ØÄꤹ ¤ì¤Ð¤½¤ì¤é¤Ï¤¹¤Ù¤Æ¡¢°Ê²¼¤Ç½Ò¤Ù¤ë¤è¤¦¤Ê¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ defaults ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢ÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿¥ª¥×¥·¥ç¥ó¤Î ¤ß¤¬±Æ¶Á¤ò¼õ¤±¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤Ï°ÊÁ°¤ÎÃͤ¬°ú¤·Ñ¤¬¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤ì ¤é¤Î¥ª¥×¥·¥ç¥ó¤ÎÃͤò¤¤¤Á¤¤¤Á½¤Àµ¤¹¤ë¤³¤È¤Ê¤¯¡¢Ã±¤Ë set {no}hidden3d ¤Î¤ß¤Ç±£Àþ½èÍý¤ò¥ª¥ó/¥ª¥Õ¤Ç¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
ºÇ½é¤Î¥ª¥×¥·¥ç¥ó offset ¤Ï '΢¦' ¤ÎÀþ¤òÉÁ²è¤¹¤ëÀþ¤ÎÀþ¼ï¤Ë±Æ¶Á¤òÍ¿¤¨ ¤Þ¤¹¡£Ä̾ï¤Ï¶ÊÌ̤Îɽ΢¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢Î¢Â¦¤ÎÀþ¼ï¤Ï¡¢É½Â¦¤ÎÀþ¼ï¤è¤ê°ì ¤ÄÂ礤¤ÈÖ¹æ¤ÎÀþ¼ï¤¬»È¤ï¤ì¤Þ¤¹¡£offset <offset> ¤Ë¤è¤Ã¤Æ¡¢¤½¤ÎÄɲä¹ ¤ëÃͤò¡¢¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤È¤Ï°Û¤Ê¤ëÁýʬÃͤËÊѹ¹¤Ç¤¤Þ¤¹¡£nooffset ¥ª¥× ¥·¥ç¥ó¤Ï offset 0 ¤ò°ÕÌ£¤·¡¢¤³¤ì¤Ïɽ΢¤ÇƱ¤¸Àþ¼ï¤ò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¼¡¤Î¥ª¥×¥·¥ç¥ó¤Ï trianglepattern <bitpattern> ¤Ç¤¹¡£<bitpattern> ¤Ï 0 ¤«¤é 7 ¤Þ¤Ç¤Î¿ô»ú¤Ç¡¢¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤È²ò¼á¤µ¤ì¤Þ¤¹¡£³Æ¶ÊÌ̤ϻ°³Ñ·Á¤Ë ʬ³ä¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤Î¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤Î³Æ¥Ó¥Ã¥È¤Ï¤½¤ì¤é¤Î»°³Ñ·Á¤Î³ÆÊÕ¤Îɽ ¼¨¤ò·èÄꤷ¤Þ¤¹¡£¥Ó¥Ã¥È 0 ¤Ï³Ê»Ò¤Î¿åÊ¿ÊÕ¡¢¥Ó¥Ã¥È 1 ¤Ï³Ê»Ò¤Î¿âľÊÕ¡¢¥Ó¥Ã ¥È 2 ¤Ï¡¢¸µ¡¹¤Î³Ê»Ò¤¬ 2 ¤Ä¤Î»°³Ñ·Á¤Ëʬ³ä¤µ¤ì¤ë¤È¤¤ÎÂгÑÊդǤ¹¡£¥Ç¥Õ¥© ¥ë¥È¤Î¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤Ï 3 ¤Ç¡¢¤³¤ì¤ÏÁ´¤Æ¤Î¿åÊ¿ÊդȿâľÊÕ¤òɽ¼¨¤·¡¢ÂÐ³Ñ ÊÕ¤Ïɽ¼¨¤·¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ÂгÑÊÕ¤âɽ¼¨¤¹¤ë¾ì¹ç¤Ï 7 ¤ò»ØÄꤷ¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó undefined <level> ¤Ï¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤ (·ç¤±¤Æ¤¤¤ë¥Ç¡¼¥¿ ¤Þ¤¿¤Ï̤ÄêµÁ¤Î´Ø¿ôÃÍ) ¤«¡¢¤Þ¤¿¤ÏÍ¿¤¨¤é¤ì¤¿ x,y,z ¤ÎÈϰϤòĶ¤¨¤Æ¤¤¤ë¥Ç ¡¼¥¿ÅÀ¤ËŬÍѤµ¤»¤ë¥¢¥ë¥´¥ê¥º¥à¤ò»Ø¼¨¤·¤Þ¤¹¡£¤½¤Î¤è¤¦¤ÊÅÀ¤Ï¡¢¤½¤ì¤Ç¤â ɽ¼¨¤µ¤ì¤Æ¤·¤Þ¤¦¤«¡¢¤Þ¤¿¤ÏÆþÎϥǡ¼¥¿¤«¤é¼è¤ê½ü¤«¤ì¤Þ¤¹¡£¼è¤ê½ü¤«¤ì¤Æ ¤·¤Þ¤¦ÅÀ¤ËÀܤ¹¤ëÁ´¤Æ¤Î¶ÊÌÌÍ×ÁǤÏƱÍͤ˼è¤ê½ü¤«¤ì¡¢¤è¤Ã¤Æ¶ÊÌ̤˷꤬À¸ ¤¸¤Þ¤¹¡£<level> = 3 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï noundefined ¤ÈƱ¤¸¤Ç¡¢¤É¤ó¤ÊÅÀ¤â ¼Î¤Æ¤é¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¾¤Î¾ì½ê¤Ç¤¢¤é¤æ¤ë¼ïÎà¤ÎÌäÂê¤ò°ú¤µ¯¤³¤·ÆÀ¤ë¤Î¤Ç »È¤ï¤Ê¤¤¤Ù¤¤Ç¤¹¡£<level> = 2 ¤Ç¤Ï̤ÄêµÁ¤ÎÅÀ¤Ï¼Î¤Æ¤é¤ì¤Þ¤¹¤¬¡¢ÈϰϤòĶ ¤¨¤¿ÅÀ¤Ï¼Î¤Æ¤é¤ì¤Þ¤»¤ó¡£<level> = 1 ¤Ç¤Ï¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¤¬¡¢ÈÏ°Ï ¤òĶ¤¨¤¿ÅÀ¤â¼Î¤Æ¤é¤ì¤Þ¤¹¡£
noaltdiagonal ¤ò»ØÄꤹ¤ë¤È¡¢undefined ¤¬Í¸ú¤Î¤È¤ (¤¹¤Ê¤ï¤Á <level> ¤¬ 3 ¤Ç¤Ê¤¤¾ì¹ç) ¤Ëµ¯¤³¤ë°Ê²¼¤Î¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤Î¼è°·¤¤¤òÊѹ¹¤Ç¤¤Þ ¤¹¡£ÆþÎ϶ÊÌ̤γƳʻҾõ¤ÎÉôʬ¤Ï°ìÊý¤ÎÂгÑÀþ¤Ë¤è¤Ã¤Æ 2 ¤Ä¤Î»°³Ñ·Á¤Ëʬ³ä ¤µ¤ì¤Þ¤¹¡£Ä̾ï¤Ï¤½¤ì¤é¤ÎÂгÑÀþ¤ÎÁ´¤Æ¤¬³Ê»Ò¤ËÂФ·¤ÆƱ¤¸Êý¸þ¤ò¸þ¤¤¤Æ¤¤¤Þ ¤¹¡£¤â¤·¡¢¤¢¤ë³Ê»Ò¤Î 4 ¤Ä¤Î³Ñ¤Î¤¦¤Á°ì¤Ä¤¬ undefined ½èÍý¤Ë¤è¤ê¤È¤ê½ü ¤«¤ì¤Æ¤¤¤Æ¡¢¤½¤Î³Ñ¤¬Ä̾ï¤ÎÊý¸þ¤ÎÂгÑÀþ¤Ë¾è¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤ÎξÊý¤Î»° ³Ñ·Á¤¬¼è¤ê½ü¤«¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢¤â¤·¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç¤¢¤ë altdiagonal ¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î³Ê»Ò¤Ë¤Ä¤¤¤Æ¤Ï¾Êý¸þ¤ÎÂгÑÀþ ¤¬Âå¤ï¤ê¤ËÁªÂò¤µ¤ì¡¢¶ÊÌ̤ηê¤ÎÂ礤µ¤¬ºÇ¾®¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
bentover ¥ª¥×¥·¥ç¥ó¤Ïº£ÅÙ¤Ï trianglepattern ¤È¤È¤â¤Ëµ¯¤³¤ëÊ̤Τ³¤È ¤òÀ©¸æ¤·¤Þ¤¹¡£¤«¤Ê¤ê¤·¤ï¤¯¤Á¤ã¤Î¶ÊÌ̤Ǥϡ¢²¼¤Î ASCII ʸ»ú³¨¤Ë½ñ¤¤¤¿¤è ¤¦¤Ë¡¢¶ÊÌ̤Π1 ¤Ä¤Î³Ê»Ò¤¬ 2 ¤Ä¤Ëʬ¤±¤é¤ì¤¿»°³Ñ·Á¤Îɽ¤È΢¤ÎÈ¿ÂЦ¤¬¸«¤¨ ¤Æ¤·¤Þ¤¦¾ì¹ç (¤¹¤Ê¤ï¤Á¡¢¸µ¤Î»Í³Ñ·Á¤¬ÀÞ¤ê¶Ê¤²¤é¤ì¤Æ¤¤¤ë ('bent over') ¾ì¹ç) ¤¬¤¢¤ê¤Þ¤¹:
C----B ¸µ¤Î 4 ³Ñ·Á: A--B ɽ¼¨¤µ¤ì¤ë 4 ³Ñ·Á: |\ | ("set view 0,0") | /| ("set view 75,75" perhaps) | \ | |/ | | \ | C--D | \| A D
¶ÊÌ̤γʻҤÎÂгÑÊÕ¤¬ <bitpattern> ¤Î 2 bit ¤Ë¤è¤Ã¤Æ¸«¤¨¤ë¤è¤¦¤Ë¤Ï¤Ê¤Ã ¤Æ¤Ï¤¤¤Ê¤¤¾ì¹ç¡¢¾å¤ÎÂгÑÊÕ CB ¤Ï¤É¤³¤Ë¤â½ñ¤«¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¡¢¤½¤ì¤¬·ë ²Ì¤Îɽ¼¨¤òÍý²ò¤·¤Ë¤¯¤¤¤â¤Î¤Ë¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÇÄêµÁ¤µ¤ì¤ë bentover ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³¤Î¤è¤¦¤Ê¾ì¹ç¤½¤ì¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤â¤·¤½¤¦¤·¤¿¤¯ ¤Ê¤¤¤Ê¤é¡¢nobentover ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼¤â»²¾È ±£Àþ½èÍý¤Î¥Ç¥â (hidden.dem)
¤ª¤è¤Ó Ê£»¨¤Ê±£Àþ¤Î¥Ç¥â (singulr.dem).
set history {size <N>} {quiet|numbers} {full|trim} {default}
ºÇ¶á¤Î gnuplot ¥³¥Þ¥ó¥ÉÍúÎò¤ò¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï $HOME/.gnuplot_history ¤ËÊݸ¤·¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤º¡¢¤«¤Ä XDG ¥Ç¥¹¥¯¥È¥Ã¥×¥µ¥Ý¡¼¥È ¤¬Í¸ú¤Ê¾ì¹ç¡¢gnuplot ¤ÏÂå¤ï¤ê¤Ë $XDG_STATE_HOME/gnuplot_history ¤ò»È ÍѤ·¤Þ¤¹¡£
gnuplot ¤Î½ªÎ»»þ¤Ë¥Ò¥¹¥È¥ê¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¹Ô¿ô¤ò¡¢history size ¤ÎÃÍ ¤ËÀ©¸Â¤·¤Þ¤¹¡£set history size -1 ¤È¤¹¤ë¤È¡¢¥Ò¥¹¥È¥ê¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð ¤¹¹Ô¿ô¤ÎÀ©¸Â¤¬¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥³¥Þ¥ó¥É history ¤Ï³Æ¥³¥Þ¥ó¥É¤ÎÁ°¤Ë¹ÔÈÖ¹æ¤ò½ÐÎϤ·¤Þ ¤¹¡£history quiet ¤Ï¡¢º£²ó¤Î¼Â¹Ô¤ËÂФ·¤Æ¤Î¤ßÈÖ¹æ¤ò¾Êά¤·¤Þ¤¹¤¬¡¢ set history quiet ¤Ï¡¢º£¸å¤Î¤¹¤Ù¤Æ¤Î history ¤ÎÈÖ¹æ¤ò¾Êά¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó trim ¤Ï¡¢¸½ºß¤Î¥³¥Þ¥ó¥É¤ËÂФ¹¤ëÁ°¤ÎƱ¤¸¤â¤Î¤òºï½ü¤¹¤ë¤³¤È ¤Ç¡¢¥³¥Þ¥ó¥ÉÍúÎòÆâ¤Î½ÅÊ£¤¹¤ë¹Ô¤Î¿ô¤ò¸º¤é¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê: set history size 500 numbers trim
½ñ¼°:
set isosamples <iso_1> {,<iso_2>} show isosamples
³Æ¶ÊÌÌ¥°¥é¥Õ¤Ï <iso_1> ¸Ä¤Î u-¸ÉΩÀþ¤È <iso_2> ¸Ä¤Î v-¸ÉΩÀþ¤ò»ý¤Á¤Þ¤¹¡£ <iso_1> ¤Î¤ß»ØÄꤹ¤ì¤Ð¡¢<iso_2> ¤Ï <iso_1> ¤ÈƱ¤¸ÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢u, v ¤½¤ì¤¾¤ì 10 ËܤÎɸËܲ½¤¬¹Ô¤ï¤ì¤Þ¤¹¡£É¸ËÜ¿ô¤ò¤â¤Ã¤È ¿¤¯¤¹¤ì¤Ð¤è¤êÀµ³Î¤Ê¥°¥é¥Õ¤¬ºî¤é¤ì¤Þ¤¹¤¬¡¢»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î ¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÉÁ²è¤Ë¤Ï²¿¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£
¸ÉΩÀþ¤È¤Ï¡¢¶ÊÌ̤ΰì¤Ä¤ÎÇÞ²ðÊÑ¿ô¤ò¸ÇÄꤷ¤Æ¡¢¤â¤¦°ì¤Ä¤ÎÇÞ²ðÊÑ¿ô¤Ë¤è¤Ã¤Æ ÉÁ¤«¤ì¤ë¶ÊÀþ¤Î¤³¤È¤Ç¤¹¡£¸ÉΩÀþ¤Ï¡¢¶ÊÌ̤òɽ¼¨¤¹¤ëñ½ã¤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£ ¶ÊÌÌ s(u,v) ¤ÎÇÞ²ðÊÑ¿ô u ¤ò¸ÇÄꤹ¤ë¤³¤È¤Ç u-¸ÉΩÀþ c(v) = s(u0,v) ¤¬ ºî¤é¤ì¡¢ÇÞ²ðÊÑ¿ô v ¤ò¸ÇÄꤹ¤ë¤³¤È¤Ç v-¸ÉΩÀþ c(u) = s(u,v0) ¤¬¤Ç¤¤Þ¤¹¡£
´Ø¿ô¤Î¶ÊÌÌ¥°¥é¥Õ¤¬±£Àþ½èÍý¤Ê¤·¤ÇÉÁ¤«¤ì¤Æ¤¤¤ë¾ì¹ç¡¢set samples ¤Ï ³Æ¸ÉΩÀþ¾å¤ÇɸËܲ½¤µ¤ì¤ëÅÀ¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set samples (112.83), set hidden3d (112.33)¡£Åù¹âÀþÉÁ²è¥ë¡¼¥Á¥ó¤Ï¡¢´Ø¿ô¤ÎÅÀ¤ÎɸËܲ½¤Ï³Æ¸ÉΩÀþ¤Î¸òÅÀ ¤Ç¹Ô¤ï¤ì¤ë¤È²¾Äꤷ¤Æ¤¤¤ë¤Î¤Ç¡¢´Ø¿ô¤Î¶ÊÌ̤ÈÅù¹âÀþ¤Î²òÁüÅÙ¤òÊѹ¹¤¹¤ë¤È¤ ¤Ï¡¢isosamples ¤ÈƱ¤¸¤è¤¦¤Ë samples ¤òÊѹ¹¤¹¤ë¤Î¤¬Ë¾¤Þ¤·¤¤¤Ç¤·¤ç¤¦¡£
set isosurface {mixed|triangles} set isosurface {no}insidecolor <n>
¥³¥Þ¥ó¥É splot $voxelgrid with isosurface ¤ÇÉÁ¤«¤ì¤ë¶ÊÌ̤ϡ¢¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï»Í³Ñ·Á¤È»°³Ñ·Á¤Îº®¹ç¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£»Í³Ñ·Á¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢¸«¤¿ ÌܤÎÊ£»¨¤µ¤Î°õ¾Ý¤ò¸º¤é¤¹¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ë¤Ï¡¢»°³Ñ·Á¤Î¤ß¤Ç ¥â¥¶¥¤¥¯·¿¶ÊÌ̤òÉÁ²è¤¹¤ë¥ª¥×¥·¥ç¥ó¤âÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÅùÃͶÊÌ̤ÎÆâÉô¤Ï¡¢¸ÄÊ̤理ÇÅɤê¤Þ¤¹¡£¿§¤ÎÁªÂòË¡¤Ï¡¢ hidden3d ¶ÊÌ̤ξì¹ç¤ÈƱ¤¸¤Ç¡¢´ðËܤȤʤëÀþ¼ï¤Ë¥ª¥Õ¥»¥Ã¥È¤Î <n> ¤òÄɲä· ¤¿Ãͤò»ÈÍѤ·¤Þ¤¹¡£¶ÊÌ̤ÎÆ⦤ȳ°Â¦¤ÎξÊý¤òƱ¤¸¿§¤ÇÅɤë¤Ë¤Ï¡¢ set isosurface noinsidecolor ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
set isotropic unset isotropic
set isotropic ¤Ï¡¢¥°¥é¥Õ¤Î¥µ¥¤¥º¤È¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò¡¢x, y, z ¼´¤Ë±è¤¦Ã± °ÌŤµ¤¬Á´¤¯Æ±¤¸¤Ë¤Ê¤ë¤è¤¦¤Ë¹ç¤ï¤»¤Þ¤¹¡£¤³¤ì¤Ï¼¡¤Î¥³¥Þ¥ó¥É¤ÈƱÃͤǡ¢¤³ ¤ì¤ÎÂå¤ï¤ê¤Ë»È¤¨¤Þ¤¹: set size ratio -1; set view equal xyz¡£ ¤³¤ì¤Ï¡¢2 ¼¡¸µ¡¢3 ¼¡¸µ¥°¥é¥Õ¤ÎξÊý¤Ë±Æ¶Á¤·¤Þ¤¹¡£
unset isotropic ¤Ï¡¢2 ¼¡¸µ¡¢3 ¼¡¸µ¥°¥é¥Õ¤ÎξÊý¤Ç¤½¤Î«Çû¤ò³«Êü¤·¤Þ ¤¹¡£¤³¤ì¤Ï°Ê²¼¤Î¸Å¤¤¥³¥Þ¥ó¥É¤ÈƱÃͤǤ¹¤¬¡¢³Ð¤¨¤ë¤Ë¤Ï¤³¤ì¤ÎÊý¤¬´Êñ¤Ç¤· ¤ç¤¦: set size noratio; set view noequal_axes¡£
set jitter {overlap <yposition>} {spread <factor>} {wrap <limit>} {swarm|square|vertical}
Îã:
set jitter # 1 ʸ»úÉýÆâ¤ÎÅÀ¤Î jitter set jitter overlap 1.5 # 1.5 ʸ»úÉýÆâ¤ÎÅÀ¤Î jitter set jitter over 1.5 spread 0.5 # Ʊ¾å¡¢¤·¤«¤· x ¤Î°ÜÆ°¤ÏȾʬÉý
¥Ç¡¼¥¿¤Î 1 ¤Ä¡¢¤Þ¤¿¤ÏξÊý¤ÎºÂɸ¤¬Î¥»¶ÃͤËÀ©¸Â¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢Â¿¤¯¤ÎÅÀ ¤¬´°Á´¤Ë¸ß¤¤¤Î¿¿¾å¤Ë¾è¤Ã¤«¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£jitter (Íɤ餮) ¤Ï¡¢¤³¤ì¤é ½Å¤Ê¤ëÅÀ¤ò¡¢¤½¤ì¤é¤ÎºÂɸ¤Ë¤º¤é¤·ÃͤòÍ¿¤¨¤ë¤³¤È¤Ç¤½¤ÎÅÀ¤ò˼¾õ¤Ë¹¤²¤Þ¤¹¡£ ÅÀ¤¬½Å¤Ê¤Ã¤Æ¤¤¤ë¤È¸«¤Ê¤¹¤¿¤á¤ÎïçÃͤϡ¢Ê¸»úÉýñ°Ì¡¢¤¢¤ë¤¤¤ÏǤ°Õ¤ÎºÂɸ¥ª ¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ»ØÄê¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: coordinates (11)¡£jitter ¤Ï¡¢2 ¼¡ ¸µ¥°¥é¥Õ¤Î with points ¤È with impulses ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢ 3 ¼¡¸µ¤Î¥Ü¥¯¥»¥ë¥Ç¡¼¥¿¤ÎÉÁ²è¤Ë¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î jitter Æ°ºî¤Ï¡¢ÅÀ¤ò x Êý¸þ¤Î¤ß°ÜÆ°¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¡Ö¥Ó¡¼ ¥¹¥©¡¼¥à¥°¥é¥Õ¡×(bee swarm plot) ¤È¸Æ¤Ð¤ì¤ëÆÈÆäΥѥ¿¡¼¥ó¤òºî¤ê¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó¤Î¥¡¼¥ï¡¼¥É square ¤Ï¡¢°ÜÆ°¤¹¤ëÅÀ¤Î x ºÂɸ¤Ë²Ã¤¨¤Æ¡¢ overlap ¤Ç»ØÄꤷ¤¿µ÷Î¥¤À¤±¤Ï¾¯¤Ê¤¯¤È¤âÎ¥¤ì¤¿ÊÌ¡¹¤Î³¬Áؤˤ¤¤ë¤è¤¦¤Ë y ºÂɸ¤â·¤¨¤Þ¤¹¡£
jitter ¤ò x ¤Ç¤Ï¤Ê¤¯ y (¤Î¤ß) ¤Ë±è¤ï¤»¤ë¤Ë¤Ï¡¢¥¡¼¥ï¡¼¥É vertical ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
ʸ»úñ°Ì¤Ç¤ÎºÇÂç¤Î°ÜÆ°µ÷Î¥¤Ï¡¢¥¡¼¥ï¡¼¥É wrap ¤ÇÀ©¸Â¤ò¤«¤±¤é¤ì¤Þ¤¹¡£
½Å¤Ê¤ê¤ÎȽÄê´ð½à¤È¡¢Íɤ餮¤ÎÂ礤µ¤Ï¡¢¤¤¤º¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ʸ»úñ °Ì¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è¤Ã¤Æ¥°¥é¥Õ¤Î¸«¤¿Ìܤϡ¢½ÐÎÏ·Á¼°¤Î¥Õ¥© ¥ó¥È¥µ¥¤¥º¡¢¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¡¢³ÈÂçΨ¤Ë¤è¤Ã¤ÆÊѹ¹¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤³¤ì¤ò Èò¤±¤ë¤Ë¤Ï¡¢½Å¤Ê¤ê¤ÎȽÄê´ð½à¤ò y ºÂɸ·Ï¤Îñ°Ì (¥¡¼¥ï¡¼¥É first) ¤Ç »ØÄꤷ¡¢ÅÀ¤Î¥µ¥¤¥º¤È³ÈÂç·¸¿ô¤òŬÀÚ¤ÊÃͤËÄ´À°¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: coordinates (11), pointsize (112.73)¡£
·Ù¹ð: jitter ¤Ï¡¢"pointsize variable" ¤ÈξΩ¤·¤Þ¤»¤ó¡£
set jitter ¤Ï¡¢3 ¼¡¸µ¤Î¥Ü¥¯¥»¥ë¥Ç¡¼¥¿¤Ç¤âÍÍѤǤ¹¡£¥Ü¥¯¥»¥ë³Ê»Ò¥Ç¡¼ ¥¿¤Ï¡¢¶ÑÅù¤ËÇÛÃÖ¤µ¤ì¤¿ÅÀ¤Îµ¬Â§Àµ¤·¤¤³Ê»Ò¤Ç¤¢¤ë¤¿¤á¡¢Â¿¤¯¤Î»ëÊý¸þ¤Ç¡¢ÅÀ ¤¬½Å¤Ê¤Ã¤¿¤ê¡¢¥â¥¢¥ì¥Ñ¥¿¡¼¥ó¤òÀ¸À®¤·¤¿¤ê¤·¤Þ¤¹¡£¤½¤ì¤é¤ÎÉûºîÍѤϡ¢³Æ³Ê »ÒÅÀ¤«¤é¥é¥ó¥À¥à¤Ë°ÜÆ°¤µ¤»¤¿¾ì½ê¤ËÉÁ²è¤¹¤ëµ¹æ¤òÃÖ¤¯¤³¤È¤ÇÈò¤±¤ë¤³¤È¤¬ ²Äǽ¤Ç¤¹¡£
ËÞÎã¤ÎÇÛÃ֤˱ƶÁ¤¹¤ë¥ª¥×¥·¥ç¥ó¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È:
key placement (112.39.6)¡£
ËÞÎã¤ÎÆâÍƤ˱ƶÁ¤¹¤ë¥ª¥×¥·¥ç¥ó¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È:key layout (112.39.5)¡£
½ñ¼° (Âç°èŪ¥ª¥×¥·¥ç¥ó):
set key {on|off} {default} {font "<face>,<size>"} {{no}enhanced} {{no}title "<text>" {<font or other text options>}} {{no}autotitle {columnheader}} {{no}box {<line properties>}} {{no}opaque {fc <colorspec>}} {width <width_increment>} {height <height_increment>} unset key
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ËÞÎã¤Ï¥°¥é¥ÕÎΰè¤ÎÆ⦤α¦¾å¤Î³Ñ¤ËÃÖ¤¤Þ¤¹¡£ ÄɲäΠfont »ØÄê¤Ï¡¢ËÞÎã¤Î¤¹¤Ù¤Æ¤ÎÍ×ÁǤËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹¡£ ËÞÎã¤Îĺ¾å¤Ë¡¢ËÞÎã¤Î²£ÉýÁ´ÂΤËÅϤ롢ËÞÎãÁ´ÂÎÍѤΥª¥×¥·¥ç¥ó¤Î¥¿¥¤¥È¥ë¤ò Í¿¤¨¤ë¤³¤â¤Ç¤¤Þ¤¹¡£¤³¤Î¥¿¥¤¥È¥ë¤Ë¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è¥¿¥¤¥È¥ë¤Î¥Õ¥©¥ó¥È¡¢¿§¡¢ °ÌÃÖ¹ç¤ï¤»¡¢³Èĥʸ»úÎó½èÍý¤È¤ÏÊ̤Τâ¤Î¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
ËÞÎãÆâ¤Ë¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Î³ÆÍ×ÁǤËÂФ·¤Æ¡¢¤½¤Î¥¿¥¤¥È¥ëʸ»úÎó¤È¡¢¤½¤Î ¥°¥é¥Õ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò¼¨¤¹Àþʬ¤«µ¹æ¤«·Á¤¬ 1 ¹Ô¤Çɽ¸½¤µ¤ì¤Þ¤¹¡£¥¿¥¤¥È ¥ëʸ»úÎó¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤·¤Þ¤¹¤¬¡¢plot ¥³¥Þ¥ó¥ÉÃæ¤Ë title "text" ¤ò Æþ¤ì¤ë¤³¤È¤ÇÌÀ¼¨Åª¤ËÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç¥¡¼¥ï¡¼¥É notitle ¤ò»È¤¦¤È¤½¤Î¥°¥é¥Õ¤ÎËÞÎã¹Ô¤òÀ¸À®¤·¤Þ¤»¤ó¤¬¡¢¥¿¥¤¥È¥ë¤À¤±¤ò¾Ã ¤·¤¿¤¤¾ì¹ç¤Ï plot ¥³¥Þ¥ó¥É¤Ç title "" ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
Åù¹âÀþÉÁ²è¤Ç¤Ï¡¢ËÞÎãÆâ¤ËÂбþ¤¹¤ë¹Ô¤òÄɲä·¤Þ¤¹ (°Ê²¼»²¾È: cntrlabel (112.15))¡£ ¥Õ¥¡¥¤¥ë̾¤ä´Ø¿ô̾¤ÎÂå¤ï¤ê¤Ë¥¡¼¥ï¡¼¥É keyentry ¤òÍ¿¤¨¤¿¥À¥ß¡¼¤Î plot ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ç¡¢ËÞÎãÆâ¤Ë;ʬ¤Ë¹Ô¤òÄɲ乤뤳¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼ »²¾È: keyentry (112.39.3)¡£
ËÞÎã¤Î²ó¤ê¤ËÏȤò¡¢¥æ¡¼¥¶»ØÄêÀþ°À¤ÇÉÁ¤¯¤³¤È¤â¤Ç¤¤Þ¤¹ (box {...})¡£ height ¤È width ¤ÎÁýʬ¤Ï¡¢Ê¸»úÉýñ°Ì¤Ç»ØÄꤷ¡¢¤½¤ì¤Ï¤½¤Îʬ¤À¤±ËÞÎã ¤ÎÈ¢¤Î¥µ¥¤¥º¤òÂ礤¯¤·¤¿¤ê¾®¤µ¤¯¤·¤¿¤ê¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼ç¤ËËÞÎã¤Î¥¨¥ó¥È ¥ê¤ò°Ï¤à¶³¦¤òÂ礤¯¤¹¤ë¤Î¤ËÍÍѤǤ¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ËÞÎã¤Ï°ì¤Ä¤Î¥°¥é¥Õ¤ÈƱ»þ¤Ëºî¤é¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ËÞÎã¤Î µ¹æ¤È¥¿¥¤¥È¥ë¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¥°¥é¥Õ¤ÈƱ»þ¤ËÉÁ¤«¤ì¤Þ¤¹¡£¤½¤ì¤Ï¡¢¿·¤· ¤¤¥°¥é¥Õ¤¬»þ¤Ë¤ÏËÞÎã¤Î¾å¤ËÍ×ÁǤò¤«¤Ö¤»¤ÆÇÛÃÖ¤·¤¦¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ set key opaque ¤Ï¡¢ËÞÎã¤ò¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤ÎÉÁ²è¤¬½ª¤Ã¤¿¸å¤ËÀ¸À®¤µ¤»¤Þ ¤¹¡£¤³¤Î¾ì¹ç¡¢ËÞÎã¤ÎÎΰè¤òÇØ·Ê¿§¤«»ØÄꤷ¤¿¿§¤ÇÅɤê¤Ä¤Ö¤·¡¢¤½¤Î¸å¤ÇËÞÎ㠤ε¹æ¤È¥¿¥¤¥È¥ë¤ò½ñ¤¤Þ¤¹¡£ set key noopaque ¤Ç¥Ç¥Õ¥©¥ë¥È¤ËÉüµ¢¤Ç¤¤Þ¤¹¡£
ËÞÎã¤Îʸ»úÎó¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï³Èĥʸ»úÎó¥â¡¼¥É (enhanced) ¤ò»ÈÍѤ·¤Þ ¤¹¡£¤³¤ì¤Ï¥ª¥×¥·¥ç¥ó noenhanced ¤ÇÊѹ¹¤Ç¤¡¢ËÞÎãÁ´ÂΡ¢¤¢¤ë¤¤¤ÏËÞÎ㥿 ¥¤¥È¥ë¤Î¤ß¡¢¤¢¤ë¤¤¤Ï¥°¥é¥Õ¥¿¥¤¥È¥ëËè¤ËÊѹ¹¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£
set key default ¤Ï¡¢°Ê²¼¤Î¥Ç¥Õ¥©¥ë¥È¤Î key ¤ÎÀßÄê¤òÉüµ¢¤·¤Þ¤¹¡£
set key notitle set key nobox noopaque set key fixed right top vertical Right noreverse enhanced autotitle set key noinvert samplen 4 spacing 1 width 0 height 0 set key maxcolumns 0 maxrows 0
¤Ê¤ª¡¢2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢fixed ¥ª¥×¥·¥ç¥ó¤Ï´°Á´¤Ë inside ¤ÈƱ¤¸¤Ç¤¹¡£
splot ¤ÇÅù¹âÀþ¤ò½ñ¤¯¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï°Û¤Ê¤ëÀþ¼ï¤Î¸Ä¡¹¤ÎÅù¹âÀþ¥ì¥Ù ¥ë¤ËÂФ·¤Æ¡¢ÊÌ¡¹¤ÎËÞÎã¤Î¹àÌܤòÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£
set key default
°Ê²¼¤Ï¡¢ËÞÎã¤ò¥¹¥¯¥ê¡¼¥óºÂɸ¤Ç¤Î»ØÄê°ÌÃÖ (±¦¾å) ¤ËÇÛÃÖ¤·¤Þ¤¹¡£
set key at screen 0.85, 0.85
°Ê²¼¤Ï¡¢ËÞÎã¤ò¥°¥é¥Õ¤è¤ê²¼ (±ü) ¤ËÃÖ¤¡¢¿âľÊý¸þ¤ÎÉý¤òºÇ¾®²½¤·¤Þ¤¹¡£
set key below horizontal
°Ê²¼¤Ï¡¢ËÞÎã¤ò¥°¥é¥ÕÎΰè¤Îº¸²¼¶ù¤ËÃÖ¤¡¢Ê¸»úÎó¤Ïº¸Â·¤¨¤È¤·¡¢¾å¤ËËÞÎã¤Î ¥¿¥¤¥È¥ë¤òÍ¿¤¨¡¢²ó¤ê¤òÂÀ¤¤¶³¦Àþ¤ÎÏȤǰϤߤޤ¹¡£
set key left bottom Left title 'Legend' box lw 3
set key outside right center plot $HEATMAP matrix with image notitle, \ keyentry "Outcomes" left, \ keyentry with boxes fc palette cb 0 title "no effect", \ keyentry with boxes fc palette cb 1 title "threshold", \ keyentry with boxes fc palette cb 3 title "typical range", \ keyentry title "as reported in [12]", \ keyentry with boxes fc palette cb 5 title "strong effect"
keyentry "Outcomes" left ¤Î¹Ô¤Ï¡¢Ä̾ï¤ÎËÞÎã¤òÊÝ»ý¤¹¤ë¥¹¥Ú¡¼¥¹¤Ë¡¢Ê¸ »úÎó¤òº¸Â·¤¨¤ÇÇÛÃÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ËÞÎã¤ÎÉýÁ´ÂΤËÅϤäƥ¿¥¤¥È¥ë¤òËä¤á¹þ ¤Þ¤»¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£Æ±¤¸ keyentry ¤Ë title ¤âÍ¿¤¨¤¿¾ì¹ç¤Ï¡¢Î¾Êý ¤Îʸ»úÎó¤¬Æ±¤¸¹Ô¤Ë¸½¤ì¡¢¤½¤ì¤Ë¤è¤ê 2 Îó¤ÎËÞÎã¤Î¥¨¥ó¥È¥ê¤ÎÀ¸À®¤¬²Äǽ¤Ë ¤Ê¤ê¤Þ¤¹¡£ °ÌÃÖ¹ç¤ï¤»ÍѤΥ¡¼¥ï¡¼¥É left/right/center ¤ä, boxed ¤Ê¤É¤¬ÍøÍÑ¤Ç ¤¤Þ¤¹¡£ Îã:
plot ..., keyentry "West Linn" boxed title "locations"
plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines
Ãí°Õ: set key autotitle columnheader ¤È¤¹¤ë¤È¡¢¤¿¤È¤¨ËÞÎã (key) ¤¬ unset key ¤Ç̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ç¤â¡¢1 ÎóÌܤò¥Ç¡¼¥¿¤È¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢ Îó¤Î¥Ø¥Ã¥À¤È¤·¤Æ½èÍý¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢stats ¤ä fit ¤Î¤è¤¦¤ËËÞÎã¤òºî ¤é¤Ê¤¤¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¤âƱÍͤǤ¹¡£¥Ç¡¼¥¿¤ÎÀèƬ¹Ô¤ò¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤Ç¤Ï ¤Ê¤¯ columnheader ¤È¤·¤Æ»ÈÍѤ·¤¿¤¤¾ì¹ç¤Ï¡¢set datafile columnheaders ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿¡¢¤¤¤º¤ì¤Î¾ì¹ç¤Ç¤â¡¢plot ¥³¥Þ¥ó¥É¤ËÌÀ¼¨Åª¤Ê title ¤ä notitle ¥¡¼¥ï¡¼¥É¤ò»ØÄꤹ¤ì¤Ð¡¢¤½¤ì¤Ï set key autotitle ¤Ë¤è¤ëÀßÄê¤è¤êÍ¥Àè ¤µ¤ì¤Þ¤¹¡£
set key {vertical | horizontal} {maxcols {<max no. of columns> | auto}} {maxrows {<max no. of rows> | auto}} {columns <exact no. of columns>} {keywidth [screen|graph] <fraction>} {Left | Right} {{no}reverse} {{no}invert} {samplen <sample_length>} {spacing <line_spacing>} {width <width_increment>} {height <height_increment>} {title {"<text>"} {{no}enhanced} {center | left | right}} {font "<face>,<size>"} {textcolor <colorspec>}
ËÞÎã¤ÎÍ×ÁǤò¼«Æ°Åª¤Ë¹Ô¡¢¤Þ¤¿¤ÏÎó¤Ëʤ٤ë¤ä¤êÊý¤Ï¡¢¾å¤Î¥¡¼¥ï¡¼¥É¤Î±Æ¶Á ¤ò¼õ¤±¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢vertical ¤Ç¡¢¤³¤ì¤Ï²Äǽ¤Ê¸Â¤êÎó¿ô¤ò¾¯¤Ê¤¯ ¤·¤è¤¦¤È¤·¤Þ¤¹¡£³ÆÍ×ÁǤϡ¢¿âľÊý¸þ¤Ë;͵¤¬¤¢¤ë¤¦¤Á¤Ï½Ä¤Ë·¤¨¤Æʤ٤ޤ¹ ¤¬¡¢Â¤ê¤Ê¤¯¤Ê¤ì¤Ð¿·¤·¤¤Îó¤Ëʤ٤ޤ¹¡£¿âľÊý¸þ¤ÎÉý¤Ï¡¢'maxrows' ¤Ç¾å¸Â ¤òÀßÄê¤Ç¤¤Þ¤¹¡£ horizontal ¤Î¾ì¹ç¤Ï¡¢²Äǽ¤Ê¸Â¤ê¹Ô¿ô¤ò¾¯¤Ê¤¯¤·¤è¤¦¤È¤·¡¢¿åÊ¿Êý¸þ¤ÎÉý ¤Ï¡¢'maxcols' ¤Ç¾å¸Â¤òÀßÄê¤Ç¤¤Þ¤¹¡£
¼«Æ°¤ÇÁªÂò¤µ¤ì¤ë¹Ô¿ô¡¢Îó¿ô¤Ë¤ÏËþ¤Ǥ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤Î¾ì¹ç¡¢ set key columns <N> ¤ÇÎó¿ô¤òÌÀ³Î¤Ë»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥µ¥ó¥×¥ëÉý (samplen) ¤ÈÁ´ÂΤÎËÞÎãÉý (keywidth) ¤âÄ´À°¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ºÇ½é¤ÎÉÁ²è¤Î¥é¥Ù¥ë¤¬ËÞÎã¤Î°ìÈÖ¾å¤Ë¸½¤ï¤ì¡¢¤½¤ì¤Ë³¤¯¥é ¥Ù¥ë¤¬¤½¤Î²¼¤Ëʤó¤Ç¹Ô¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó invert ¤Ï¡¢ºÇ½é¤Î¥é¥Ù¥ë¤òËÞ Îã¤Î°ìÈÖ²¼¤ËÃÖ¤¡¢¤½¤ì¤Ë³¤¯¥é¥Ù¥ë¤ò¤½¤Î¾å¤Ëʤ٤ƹԤ¤Þ¤¹¡£¤³¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢ËÞÎã¤Î¥é¥Ù¥ë¤Î½Ä¤ÎʤӤνçÈÖ¤ò¡¢ÀѤ߾夲·Á¼°¤Î¥Ò¥¹¥È¥°¥é¥à (histograms) ¤ÎÈ¢¤Î½çÈ֤˹ç¤ï¤»¤ë¤È¤¤ËÊØÍø¤Ç¤·¤ç¤¦¡£
set key title "text" ¤Ï¡¢ËÞÎã¤Î¾å¤Ë¡¢Á´ÂΤËÅϤ륿¥¤¥È¥ë¤òÃÖ¤¤Þ¤¹¡£ ¤½¤Î¥¿¥¤¥È¥ë¤Î¥Õ¥©¥ó¥È¡¢Ê¸»úÎó¤Î¹Ô·¤¨¡¢¤ª¤è¤Ó¤½¤Î¾¤Îʸ»ú°À¤Ï¡¢¤³¤Î ¥³¥Þ¥ó¥É¤Î "text" ¤Îľ¸å¤ËɬÍפʥ¡¼¥ï¡¼¥É¤òÃÖ¤¯¤³¤È¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£ ¾¤Î¾ì½ê¤Ç»ØÄꤷ¤¿¥Õ¥©¥ó¥È¤äʸ»úÎó¤Î°À¤Ï¡¢ËÞÎãÆâ¤Î¤¹¤Ù¤Æ¤Îʸ»úÎó¤ËŬ ÍѤ·¤Þ¤¹
¥Ç¥Õ¥©¥ë¥È¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢¥¹¥¿¥¤¥ë¥µ¥ó¥×¥ë (¿§¡¢Àþ¡¢ÅÀ¡¢·Á¾õÅù) ¤òËÞÎ㠤γƹԤκ¸¤ËÃÖ¤¡¢¥¿¥¤¥È¥ëʸ»úÎó¤ò±¦¤ËÃÖ¤¤Þ¤¹¡£¤³¤Î¥µ¥ó¥×¥ë¤Èʸ»úÎó¤Î °ÌÃ֤ϡ¢reverse ¥¡¼¥ï¡¼¥É¤ÇµÕž¤Ç¤¤Þ¤¹¡£ËÞÎãÆâ¤Î¥°¥é¥Õ¥¿¥¤¥È¥ë¤Î¹Ô ·¤¨¤Ï¡¢Left¡¢Right (¥Ç¥Õ¥©¥ë¥È) ¤Ç»Ø¼¨¤·¤Þ¤¹¡£¥¹¥¿¥¤¥ë¥µ¥ó¥×¥ë¤Î ¿åÊ¿Êý¸þ¤ÎÉý¤Ï¡¢¤Û¤Üʸ»úÉýñ°Ì¤Î¿ôÃͤÇÀßÄê¤Ç¤¤Þ¤¹ (samplen)¡£
TeX, LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤ä¡¢À°·Á¾ðÊó¤¬Ê¸»úÎó¤ËËä¤á¹þ¤Þ¤ì¤ë½ÐÎÏ·Á¼°¤ò»È
¤¦¾ì¹ç¤Ï¡¢gnuplot ¤ÏɬÍפÊÉý¤Î¸«ÀѤ꤬¤¦¤Þ¤¯¤Ï¤Ç¤¤Þ¤»¤ó¤Î¤Ç¡¢¼«Æ°Åª ¤ÊËÞÎã¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢¸«¤¹¤Ü¤é¤·¤¤¤â¤Î¤Ë¤Ê¤êÆÀ¤Þ¤¹¡£ËÞÎã¤òº¸¤ËÃÖ¤¯¾ì¹ç ¤Ï¡¢set key left Left reverse ¤È¤¤¤¦Áȹ礻¤¬¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢Å¬ ÀÚ¤ÊÎó¿ô¤äÁ´ÂΤÎËÞÎãÉý¤ò¶¯À©Åª¤ËÀßÄꤹ¤ë¤È¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
set key {inside | outside | fixed} {lmargin | rmargin | tmargin | bmargin} {at <position>}} {left | right | center} {top | bottom | center} {offset <dx>,<dy>}
¤³¤ÎÀá¤Ç¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤µ¤ì¤ëÄ̾ï¤ÎËÞÎã¤ÎÇÛÃÖ¤ÎÀâÌÀ¤ò¤·¤Þ¤¹¡£Æó¼¡Åª¤Ê ËÞÎã¤Î¹½À®¤ä¡¢Â¾¤Î¾ì½ê¤Ø¤ÎÉÁ²è¥¿¥¤¥È¥ë¤ÎÇÛÃ֤ˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: multiple keys (112.39.9)¡£
ÇÛÃ֤λÅÁȤߤòÍý²ò¤¿¤á¤ÎºÇ¤â½ÅÍפʳµÇ°¤Ï¡¢¥°¥é¥ÕÎΰ衢¤¹¤Ê¤ï¤ÁÆ⤫³°¤«
¤È¤¤¤¦¤³¤È¤È¡¢¥°¥é¥ÕÎΰè¤Î¶³¦¤È¤Î´Ö¤Î;Çò (margin) ¤ò¹Í¤¨¤ë¤³¤È¤Ç¤¹¡£
¥°¥é¥ÕÎΰè¤Ë±è¤Ã¤Æ¡¢¥¡¼¥ï¡¼¥É left/center/right (l/c/r) ¤È
top/center/bottom (t/c/b) ¤Ï¡¢ËÞÎã (key) ¤ò¤½¤ÎÎΰè¤ÎÆ⦤Τɤ³¤ËÃÖ
¤¯¤«¤òÀ©¸æ¤·¤Þ¤¹¡£
¥â¡¼¥É inside ¤Ç¤Ï¡¢ËÞÎã¤Ï¥¡¼¥ï¡¼¥É left (l), right (r), top
(t), bottom (b), center (c) ¤Ë¤è¤Ã¤Æ°Ê²¼¤Î¿Þ¤Î¤è¤¦¤ËÉÁ²èÎΰè¤Î¶³¦
¤Ë¸þ¤«¤Ã¤Æ½ÐÎϤµ¤ì¤Þ¤¹:
|
t/l t/c t/r
c/l c c/r
b/l b/c b/r
|
¥â¡¼¥É outside ¤Ç¤â¾å¤ÈƱÍͤ˼«Æ°Åª¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¤¬¡¢¥°¥é¥ÕÎΰè¤Î¶ ³¦¤ËÂФ·¤Æ¡¢¤È¤¤¤¦¤è¤ê¤â¤à¤·¤í¸«¤¿ÌܤËÂФ·¤Æ¡¢¤È¤¤¤¦¤Ù¤¤Ç¤·¤ç¤¦¡£¤¹¤Ê ¤ï¤Á¡¢¥°¥é¥Õ¤Î¶³¦¤Ï¡¢¥°¥é¥ÕÎΰè¤Î³°¤ÎËÞÎã¤Î¾ì½ê¤òºî¤ë¤¿¤á¤Ë¡¢Æâ¦¤Ë°Ü Æ°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¾¤Î¥é¥Ù¥ë¤Î¼ÙËâ¤ò¤·¤Þ¤¹¤·¡¢¤â¤·¤« ¤·¤¿¤é½ÐÎϥǥХ¤¥¹¤Ë¤è¤Ã¤Æ¤Ï¥¨¥é¡¼¤ò°ú¤µ¯¤³¤¹¤«¤â¤·¤ì¤Þ¤»¤ó¡£ËÞÎã¤Î½Ð ÎϤ˹ç¤ï¤»¤Æ¤É¤ÎÉÁ²è¶³¦¤¬°ÜÆ°¤¹¤ë¤«¤Ï¡¢¾å¤Ë½Ò¤Ù¤¿ËÞÎã¤Î°ÌÃÖ¡¢¤ª¤è¤Ó½Å ¤Í¾å¤²¤ÎÊý¸þ¤Ë°Í¸¤·¤Þ¤¹¡£4 Êý¸þ¤ÎÃ濴·¤¨¤Î¥ª¥×¥·¥ç¥ó (center) ¤Ë´Ø ¤·¤Æ¤Ï¡¢¤É¤Î¶³¦¤¬Æ°¤¯¤Î¤«¤Ë´Ø¤¹¤ë¤¢¤¤¤Þ¤¤¤µ¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢³Ñ¤Ø¤Î½ÐÎÏ ¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢½Å¤Í¾å¤²Êý¸þ¤¬ vertical ¤Î¾ì¹ç¤Ïº¸¤Þ¤¿¤Ï±¦¤Î ¶³¦¤¬¡¢horizontal ¤Î¾ì¹ç¤Ï¾å¤Þ¤¿¤Ï²¼¤Î¶³¦¤¬¡¢¤½¤ì¤¾¤ìÆ⦤ËŬÀÚ¤Ë °ÜÆ°¤·¤Þ¤¹¡£
;Çò (margin) ¤Î½ñ¤Êý¤Ï¡¢½Å¤Í¾å¤²¤ÎÊý¸þ¤Ë¤«¤«¤ï¤Ê¤¤¼«Æ°Åª¤ÊÇÛÃÖ¤ò²Äǽ
¤Ë¤·¤Æ¤¤¤Þ¤¹¡£lmargin (lm), rmargin (rm), tmargin (tm),
bmargin (bm) ¤Î¤¦¤Á¤Î°ì¤Ä¤ò¡¢Ì·½â¤·¤Ê¤¤ 1 Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤ÈÁȤ߹ç¤ï
¤»¤Æ»ÈÍѤ·¤¿¾ì¹ç¡¢ËÞÎã¤Î°ÌÃ֤ϡ¢°Ê²¼¤Î¿Þ¤Ë¼¨¤¹¤è¤¦¤Ë¥Ú¡¼¥¸¤Î³°Â¦¤Ë±è¤Ã
¤ÆÇÛÃÖ¤µ¤ì¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É above ¤È over ¤Ï tmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¡¢¥¡¼¥ï¡¼¥É
below ¤È under ¤Ï bmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£
|
l/tm c/tm r/tm
t/lm t/rm
c/lm c/rm
b/lm b/rm
l/bm c/bm r/bm
|
°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À¤Î¤¿¤á¤Ë¡¢above, over, below, under ¤Ë l/c/r ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤¬¤Ê¤¤¤È¡¢center ¤È horizontal ¤ò»ÈÍѤ·¤Þ¤¹¡£¥¡¼¥ï¡¼¥É outside ¤Ë t/b/c ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥¡¼¥ï¡¼¥É ¤¬¤Ê¤¤¤È¡¢top, right, vertical (¤Ä¤Þ¤ê¾å¤Î t/rm ¤ÈƱ¤¸) ¤ò»ÈÍѤ· ¤Þ¤¹¡£
ËÞÎã¤Î°ÌÃÖ (<position>) ¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÈƱÍÍñ¤Ë x,y,z ¤ò»ØÄꤷ ¤Æ¤â¤¤¤¤¤Ç¤¹¤¬¡¢¤½¤ÎºÇ½é¤Î¥µ¥ó¥×¥ë¹Ô¤ÎºÂɸ¤ÎºÂɽ·Ï¤òÁªÂò¤¹¤ë¤¿¤á¤Î 5 ¤Ä¤Î¥¡¼¥ï¡¼¥É (first, second, graph, screen, character) ¤ò Ƭ¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£<position> ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Î left, right, top, bottom, center ¤Î¸ú²Ì¤Ï¡¢ label ¥³¥Þ¥ó¥É¤ÇÇÛÃÖ¤µ¤ì¤ëʸ»úÎó¤Î¾ì¹ç¤ÈƱ¤¸¤è¤¦¤Ë´ð½à°ÌÃ֤ΰÌÃÖ·¤¨¤Ë »ÈÍѤµ¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢left ¤ÏËÞÎ㤬 <position> ¤Î±¦¤ËÃÖ¤«¤ì¤Æº¸¹ç ¤ï¤»¤Ç½ÐÎϤµ¤ì¤Þ¤¹¡£Â¾¤Î¾ì¹ç¤âƱÍͤǤ¹¡£
¥°¥é¥Õ¶ÊÀþ¤Î¥µ¥ó¥×¥ë¤ÎÀþʬ¤ÎŤµ¤Ï samplen ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ÎŤµ ¤Ï¡¢ÌÜÀ¹¤ê¤ÎŤµ¤È <sample_length>*(ʸ»úÉý) ¤ÎϤȤ·¤Æ·×»»¤·¤Þ¤¹¡£ ÅÀ¤Îµ¹æ¤Ï¡¢¥µ¥ó¥×¥ëÀþʬ¤ÎÃæ±û¤Ë½ñ¤«¤ì¤ë¤¿¤á¡¢¤³¤ì¤ÏËÞÎãÆâ¤ÎÅÀ¤Î¥µ¥ó¥× ¥ë°ÌÃ֤ˤâ (Àþʬ¤ÏÉÁ¤«¤Ê¤¯¤Æ¤â) ±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
ËÞÎã¤Î¥Ù¡¼¥¹¥é¥¤¥ó´Ö³Ö¤Ï¡¢¸½ºß¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ËÂФ¹¤ë¡Ö1 ¹Ô¶õ¤¡× (single space) ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï set key spacing <line-spacing> ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
<width_increment> ¤Ï¡¢Ê¸»úÎó¤ÎŤµ¤Ë²Ã¤¨¤¿¤ê¸º¤é¤·¤¿¤ê¤¹¤ëÉý (²¿Ê¸»úʬ ¤«) ¤òɽ¤¹¿ôÃͤǤ¹¡£¤³¤ì¤Ï¡¢ËÞÎã¤Ë³°ÏȤò½ñ¤¡¢Ê¸»úÎó¤ËÀ©¸æʸ»ú¤ò»È¤¦¾ì ¹ç¤Ë¤À¤±ÍÍѤǤ·¤ç¤¦¡£gnuplot ¤Ï³°ÏȤÎÉý¤ò·×»»¤¹¤ë¤È¤¤Ï¡¢¥é¥Ù¥ëʸ»ú Îó¤Îʸ»ú¿ô¤òñ½ã¤Ë¿ô¤¨¤ë¤À¤±¤Ê¤Î¤Ç¡¢¤½¤ì¤ò½¤Àµ¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£
set multiplot layout 3,2 columnsfirst set style data boxes plot $D using 0:6 lt 1 title at 0.75, 0.20 plot $D using 0:12 lt 2 title at 0.75, 0.17 plot $D using 0:13 lt 3 title at 0.75, 0.14 plot $D using 0:14 lt 4 title at 0.75, 0.11 set label 1 at screen 0.75, screen 0.22 "Custom combined key area" plot $D using 0:($6+$12+$13+$14) with linespoints title "total" unset multiplot
½ñ¼°:
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>} {nobox} {boxed {bs <boxstyle>}} {hypertext} unset label {<tag>} show label
°ÌÃÖ (<position>) ¤Ï x,y ¤« x,y,z ¤Î¤É¤Á¤é¤«¤Ç»ØÄꤷ¡¢ºÂɸ·Ï¤ò»ØÄꤹ¤ë ¤Ë¤Ï¤½¤ÎºÂɸ¤ÎÁ°¤Ë first, second, polar, graph, screen, character ¤ò¤Ä¤±¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£
¥¿¥° (<tag>) ¤Ï¸«½Ð¤·¤ò¼±Ê̤¹¤ë¤¿¤á¤ÎÀ°¿ôÃͤǤ¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿ ¾ì¹ç̤»ÈÍѤΤâ¤Î¤ÇºÇ¤â¾®¤µ¤¤Ãͤ¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¸½ºß¤Î¸«½Ð¤· ¤òÊѹ¹¤¹¤ë¤È¤¤Ï¤½¤Î¥¿¥°¤ÈÊѹ¹¤·¤¿¤¤¹àÌܤò»ØÄꤷ¤Æ set label ¥³¥Þ¥ó ¥É¤ò»È¤¤¤Þ¤¹¡£
<label text> ¤Ïʸ»úÎóÄê¿ô¤Ç¤â¹½¤¤¤Þ¤»¤ó¤·¡¢Ê¸»úÎóÊÑ¿ô¡¢¤Þ¤¿¤Ïʸ»úÎó¤Î Ãͤò»ý¤Ä¼°¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£°Ê²¼»²¾È: strings (28), sprintf (15.3), gprintf (112.31.1)¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢»ØÄꤷ¤¿ÅÀ x,y,z ¤Ë¸«½Ð¤·¤Îʸ¾Ï¤Îº¸Ã¼¤¬Íè¤ë¤è¤¦¤ËÇÛÃÖ ¤µ¤ì¤Þ¤¹¡£x,y,z ¤ò¸«½Ð¤·¤Î¤É¤³¤Ë·¤¨¤ë¤«¤òÊѹ¹¤¹¤ë¤Ë¤ÏÊÑ¿ô <justification> ¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ì¤Ë¤Ï¡¢left, right, center ¤Î ¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤¡¢¤½¤ì¤¾¤ìʸ¾Ï¤Îº¸¡¢±¦¡¢¿¿Ã椬»ØÄꤷ¤¿ÅÀ¤ËÍè¤ë¤è¤¦ ¤ËÇÛÃÖ¤µ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ÉÁ²èÈϰϤγ°¤Ë¤Ï¤ß½Ð¤ë¤è¤¦¤Ê»ØÄê¤âµö¤µ¤ì¤Þ ¤¹¤¬¡¢ºÂɸ¼´¤Î¸«½Ð¤·¤ä¾¤Îʸ»úÎó¤È½Å¤Ê¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
È¢ÏÈÉÕ¤¤Î¥é¥Ù¥ë¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set style textbox (112.86.14)¡£²óž¤µ¤»¤¿Ê¸»úÎó¤ÎÈ¢ÉÕ¤±¤Ï¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤¬²Ä ǽ¤Ê¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
rotate ¤ò»ØÄꤹ¤ë¤È¥é¥Ù¥ë¤Ï½Ä½ñ¤¤Ë¤Ê¤ê¤Þ¤¹¡£rotate by <degrees> ¤ò»ØÄꤹ¤ë¤È¡¢Ê¸»úÎó¤Î¥Ù¡¼¥¹¥é¥¤¥ó¤ò»ØÄꤷ¤¿³Ñ¤ËÀßÄꤷ¤Þ¤¹¡£¤¿¤À¤·¡¢Ê¸ »úÎó¤Î²óž¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£
¥Õ¥©¥ó¥È¤È¤½¤Î¥µ¥¤¥º¤Ï¡¢½ÐÎÏ·Á¼°¤¬¥Õ¥©¥ó¥È¤ÎÀßÄê¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð font "<name>{,<size>}" ¤ÇÌÀ¼¨Åª¤ËÁªÂò¤Ç¤¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¤Ç ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¤¬»È¤ï¤ì¤Þ¤¹¡£
Ä̾ï¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¡¢¥é¥Ù¥ëʸ»úÎó¤ÎÁ´¤Æ¤Îʸ»úÎó ¤Ë³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ noenhanced ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢ÆÃÄê¤Î¥é¥Ù¥ë¤ò³Èĥʸ»úÎó½èÍý¤«¤é³°¤¹¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥é¥Ù¥ë¤¬Î㤨¤Ð¥¢¥ó¥À¡¼¥¹¥³¥¢ (_) ¤ò´Þ¤ó¤Ç¤¤¤ë¾ì ¹ç¤Ê¤É¤ËÍÍѤǤ¹¡£°Ê²¼»²¾È: enhanced text (13)¡£
front ¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢¸«½Ð¤·¤Ï¥Ç¡¼¥¿¤Î¥°¥é¥Õ¤Î¾å¤Ë½ñ¤«¤ì¤Þ¤¹¡£back ¤¬Í¿¤¨¤é¤ì¤ë¤È (¥Ç¥Õ¥©¥ë¥È)¡¢¸«½Ð¤·¤Ï¥°¥é¥Õ¤Î²¼¤Ë½ñ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¦¤³¤È¤Ç¡¢Ì©¤Ê¥Ç¡¼¥¿¤Ë¤è¤Ã¤Æ¸«½Ð¤·¤¬±£¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤ë¤³¤È ¤¬½ÐÍè¤Þ¤¹¡£
textcolor <colorspec> ¤Ï¸«½Ð¤·Ê¸»úÎó¤Î¿§¤òÊѹ¹¤·¤Þ¤¹¡£<colorspec> ¤Ï Àþ¼ï¡¢rgb ¿§¡¢¤Þ¤¿¤Ï¥Ñ¥ì¥Ã¥È¤Ø¤Î³äÅö¤Î¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: colorspec (20.1), palette (15.3)¡£textcolor ¤Ï¡¢tc ¤È¾Êά²Äǽ¤Ç¤¹¡£
`tc default` ¤Ï¡¢Ê¸»ú¿§¤ò¥Ç¥Õ¥©¥ë¥È¤Ë¤·¤Þ¤¹¡£ `tc lt <n>` ¤Ï¡¢Ê¸»ú¿§¤òÀþ¼ï <n> (line type)¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£ `tc ls <n>` ¤Ï¡¢Ê¸»ú¿§¤ò line style <n> ¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£ `tc palette z` ¤Ï¡¢¸«½Ð¤·¤Î z ¤Î°ÌÃÖ¤ËÂбþ¤·¤¿¥Ñ¥ì¥Ã¥È¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc palette cb <val>` ¤Ï¡¢¿§¸«ËÜ (colorbox) ¤Î <val> ¤Î¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc palette fraction <val>` (0<=val<=1) ¤Ï¡¢[0:1] ¤«¤é `palette` ¤Î ³¥¿§³¬Ä´/¥«¥é¡¼¤Ø¤Î¼ÌÁü¤ËÂбþ¤·¤¿¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc rgb "#RRGGBB"`, `tc rgb "0xRRGGBB"` ¤Ï¡¢Ç¤°Õ¤Î 24-bit RGB ¿§¤ò ÀßÄꤷ¤Þ¤¹¡£ `tc rgb 0xRRGGBB` ¤âƱ¤¸¤Ç¤¹ (16 ¿ÊÄê¿ôÃͤˤϰúÍÑÉä¤ÏÉÔÍ×)¡£
<pointstyle> ¤¬¥¡¼¥ï¡¼¥É lt, pt, ps ¤È¤È¤â¤ËÍ¿¤¨¤é¤ì¤ë¤È (°Ê²¼ »²¾È: style (99.10))¡¢Í¿¤¨¤é¤ì¤¿¥¹¥¿¥¤¥ë¤È¡¢Í¿¤¨¤é¤ì¤¿Àþ¼ï¤Î¿§¤Ç¸«½Ð¤·°ÌÃÖ¤Ë ÅÀ (point) ¤¬ÉÁ²è¤µ¤ì¡¢¸«½Ð¤·Ê¸»úÎó¤Ï¾¯¤·°ÜÆ°¤µ¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó ¤Ï mouse ³ÈÄ¥¤µ¤ì¤¿½ÐÎÏ·Á¼°¤Ç¤Î¥é¥Ù¥ë¤ÎÇÛÃ֤ˡ¢¥Ç¥Õ¥©¥ë¥È¤Ç»ÈÍѤµ¤ì ¤Æ¤¤¤Þ¤¹¡£¸«½Ð¤·Ê¸»úÎó¶á¤¯¤ÎÅÀ¤ÎÉÁ²èµ¡Ç½¤ò off (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È) ¤Ë¤¹ ¤ë¤Ë¤Ï¡¢nopoint ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
¤½¤Î°ÜÆ°¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢<pointstyle> ¤¬Í¿¤¨¤é¤ì¤ì¤Ð pointsize ¤Î ñ°Ì¤Ç 1,1 ¤Ç¡¢<pointstyle> ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 0,0 ¤Ç¤¹¡£°ÜÆ°¤Ï¡¢ ÄɲäΠoffset <offset> ¤Ç¤âÀ©¸æ¤Ç¤¤Þ¤¹¡£¤³¤³¤Ç¡¢<offset> ¤Ï x,y ¤« ¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç¤¹¤¬¡¢¤½¤ì¤ËºÂɸ·Ï¤òÁªÂò¤·¤Æ¡¢¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î¤¤¤º¤ì¤«¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£
¤â¤·°ì¤Ä (¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å¤Î) ¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¾ì¹ç¡¢ºÂɸ¤Ï timefmt ¤Î½ñ¼°¤Ë¤·¤¿¤¬¤Ã¤Æ°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ÇÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼ »²¾È: set xdata (112.118), set timefmt (112.96)¡£
set label ¤Ë´Ø¤·¤Æ͸ú¤Ê¥ª¥×¥·¥ç¥ó¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë labels ¤Ç¤â͸ú ¤Ç¤¹¡£°Ê²¼»²¾È: labels (54)¡£¤³¤Î¾ì¹ç¡¢textcolor, rotate, pointsize ¤Î°À¤Î¸å¤í¤Ë¥¡¼¥ï¡¼¥É variable ¤ò¤Ä¤±¤Æ¡¢¤½¤ì¤é¤ò¸ÇÄêÃͤǤʤ¤¤è¤¦ ¤Ë¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤½¤Î¾ì¹ç¸Ä¡¹¤Î¥é¥Ù¥ë¤ÎÂбþ¤¹¤ë°ÀÃͤϡ¢using »ØÄê¤ÎÄɲÃÎó¤Ë¤è¤ê·èÄꤷ¤Þ¤¹¡£
(1,2) ¤Î°ÌÃÖ¤Ë "y=x" ¤È½ñ¤¯¾ì¹ç:
set label "y=x" at 1,2
Symbol ¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º 24 ¤Î "¥·¥°¥Þ" (¦²) ¤ò¥°¥é¥Õ¤Î¿¿Ãæ¤Ë½ñ¤¯¾ì¹ç:
set label "S" at graph 0.5,0.5 center font "Symbol,24"
¸«½Ð¤· "y=x^
2" ¤Î±¦Ã¼¤¬ (2,3,4) ¤ËÍè¤ë¤è¤¦¤Ë¤·¡¢¥¿¥°ÈÖ¹æ¤È¤·¤Æ 3 ¤ò»È¤¦
¾ì¹ç:
set label 3 "y=x^2" at 2,3,4 right
¤½¤Î¸«½Ð¤·¤òÃæ±û·¤¨¤Ë¤¹¤ë¾ì¹ç:
set label 3 center
¥¿¥°ÈÖ¹æ 2 ¤Î¸«½Ð¤·¤òºï½ü¤¹¤ë¾ì¹ç:
unset label 2
Á´¤Æ¤Î¸«½Ð¤·¤òºï½ü¤¹¤ë¾ì¹ç:
unset label
Á´¤Æ¤Î¸«½Ð¤·¤ò¥¿¥°ÈÖ¹æ½ç¤Ëɽ¼¨¤¹¤ë¾ì¹ç:
show label
x ¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¥°¥é¥Õ¤Ë¸«½Ð¤·¤òÀßÄꤹ¤ëÎã:
set timefmt "%d/%m/%y,%H:%M" set label "Harvest" at "25/8/93",1
¥Ç¡¼¥¿¤È¡¢¿·¤¿¤ËÅö¤Æ¤Ï¤á¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Ë¤è¤ëÅö¤Æ¤Ï¤á´Ø¿ô¤òÉÁ²è¤·¤¿¤¤ ¾ì¹ç¡¢fit ¤Î¸å¤Ç¤«¤Ä plot ¤ÎÁ°¤Ë°Ê²¼¤ò¼Â¹Ô¤·¤Þ¤¹:
set label sprintf("a = %3.5g",par_a) at 30,15 bfit = gprintf("b = %s*10^%S",par_b) set label bfit at 30,20
Åö¤Æ¤Ï¤á¤é¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤Î¤Ä¤¤¤¿´Ø¿ô¤ÎÄêµÁ¼°¤òɽ¼¨¤·¤¿¤¤¾ì¹ç:
f(x)=a+b*x fit f(x) 'datafile' via a,b set label GPFUN_f at graph .05,.95 set label sprintf("a = %g", a) at graph .05,.90 set label sprintf("b = %g", b) at graph .05,.85
¸«½Ð¤·Ê¸»úÎó¤ò¾®¤µ¤¤ÅÀ¤«¤é¾¯¤·¤À¤±°ÜÆ°¤¹¤ë¾ì¹ç:
set label 'origin' at 0,0 point lt 1 pt 2 ps 3 offset 1,-1
pm3d ¤ò»È¤Ã¤¿ 3 ¼¡¸µ¤Î¥«¥é¡¼¶ÊÌ̾å¤Î¤¢¤ëÅÀ¤Î°ÌÃ֤ˡ¢¤½¤Î z ¤ÎÃÍ (¤³¤Î ¾ì¹ç 5.5) ¤ËÂбþ¤·¤¿¿§¤ò¸«½Ð¤·Ê¸»úÎó¤Ë¤Ä¤±¤ë¾ì¹ç:
set label 'text' at 0,0,5.5 tc palette z
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'
# ¤³¤Î pm3d ¶ÊÌ̾å¤ÎǤ°Õ¤Î¾ì½ê¤Ë¥Þ¥¦¥¹¤òÃÖ¤¯¤È¤½¤Î Z ºÂɸ¤ò¥Ï¥¤ # ¥Ñ¡¼¥Æ¥¥¹¥È¤È¤·¤Æɽ¼¨ splot '++' using 1:2:(F($1,$2)) with pm3d, \ '++' using 1:2:(F($1,$2)):(sprintf("%.3f", F($1,$2))) \ with labels \ hypertext point lc rgb "0xff000000" notitle
wxt ¤È qt ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢Ê¸»úÎó¤¬É½¼¨¤µ¤ì¤¿¤¢¤È¤Ë¥Ï¥¤¥Ñ¡¼¥Æ¥¥¹¥ÈÉôʬ¤ò º¸¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤½¤Î¥Ï¥¤¥Ñ¡¼¥Æ¥¥¹¥È¤¬¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ë¥³¥Ô¡¼¤µ¤ì¤Þ¤¹¡£
»î¸³Ãʳ¬¤Îµ¡Ç½ (»ÅÍͤκ٤«¤¤Éôʬ¤ÏÊѹ¹¤Î²ÄǽÀ¤¢¤ê) - "image{<xsize>,<ysize>}:<filename>{ \n<caption text>}" ¤Î·Á¼°¤Îʸ»úÎó¤Ï ¥Ý¥Ã¥×¥¢¥Ã¥×¥Ü¥Ã¥¯¥¹Æâ¤Ç²èÁü¥Õ¥¡¥¤¥ë¤òɽ¼¨¤µ¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¥µ¥¤¥º»Ø Äê¤Ë¤è¤ê¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º 300x200 ¤òÊѹ¹¤Ç¤¤Þ¤¹¡£Ç§¼±¤¹¤ë²èÁü¥Õ¥¡¥¤ ¥ë¤Î·¿¤Ï½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ°ã¤¤¤Þ¤¹¤¬¡¢*.png ¤Ï¾ï¤Ë OK ¤Ç¤¹¡£²èÁü¥Õ¥¡¥¤¥ë ̾¤Î¸å¤í¤Ë½ñ¤¤¤¿Ê¸»úÎó¤Ï¡¢Ä̾ï¤Î¥Ï¥¤¥Ñ¡¼¥Æ¥¥¹¥È¤ÈƱÍͤËɽ¼¨¤·¤Þ¤¹¡£ Îã:
set label 7 "image:../figures/Fig7_inset.png\nFigure 7 caption..." set label 7 at 10,100 hypertext point pt 7
Î㤨¤Ð¡¢Àþ¼ï 1 ¤È 2 ¤ò°Ê²¼¤Î¤è¤¦¤ËºÆÄêµÁ¤·¤Æ¤ß¤Þ¤¹:
set linetype 1 lw 2 lc rgb "blue" pointtype 6 set linetype 2 lw 2 lc rgb "forest-green" pointtype 8
¤¹¤ë¤È¡¢¤½¤ì¤é¤ÎÀþ¼ï¤ÎºÇ½é¤Î¸«¤¿Ìܤ¬¤É¤¦¤Ç¤¢¤Ã¤¿¤«¤Ë´Ø¤ï¤é¤º¡¢lt 1 ¤ò »ÈÍѤ·¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¤â¤Î¤¬¡¢¤½¤Î¸å¤ÏÂÀ¤¤ÀÄÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÀ¼Á¤Ï¡¢lt 1 ¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿°ì»þŪ¤Ê¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ÎÄêµÁ¤Î¤è¤¦¤Ê¤â¤Î¤Ë¤âŬÍѤµ¤ì ¤Þ¤¹¡£Æ±Íͤˡ¢Àþ¼ï 2 ¤Ï¡¢¤½¤Î¸å¤ÏÂÀ¤¤ÎÐÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î»ÅÁȤߤϡ¢gnuplot ¤Ç»ÈÍѤ¹¤ëÀþ¼ïÎó¤ËÂФ¹¤ë¸Ä¿ÍŪ¤Ê¹¥¤ß¤òÀßÄꤹ¤ë¤Î ¤Ë¤â»È¤¨¤Þ¤¹¡£¤½¤ì¤ò¹Ô¤¦¤Ë¤Ï¡¢¼Â¹Ô»þ½é´ü²½¥Õ¥¡¥¤¥ë ~ /.gnuplot ¤Ë¡¢Î㤨 ¤Ð°Ê²¼¤Î¤è¤¦¤Ê¤½¤ìÍѤΥ³¥Þ¥ó¥ÉÎó¤òÄɲ乤뤳¤È¤ò¤ª´«¤á¤·¤Þ¤¹:
set linetype 1 lc rgb "dark-violet" lw 2 pt 1 set linetype 2 lc rgb "sea-green" lw 2 pt 7 set linetype 3 lc rgb "cyan" lw 2 pt 6 pi -1 set linetype 4 lc rgb "dark-red" lw 2 pt 5 pi -1 set linetype 5 lc rgb "blue" lw 2 pt 8 set linetype 6 lc rgb "dark-orange" lw 2 pt 3 set linetype 7 lc rgb "black" lw 2 pt 11 set linetype 8 lc rgb "goldenrod" lw 2 set linetype cycle 8
¤³¤¦¤¹¤ë¤È¡¢¤¢¤Ê¤¿¤¬ gnuplot ¤ò¼Â¹Ô¤¹¤ëÅÙ¤ËÀþ¼ï¤Ï¤³¤ì¤é¤ÎÃͤ˽é´ü²½¤µ ¤ì¤Þ¤¹¡£Àþ¼ï¤Ï¤¢¤Ê¤¿¤¬¹¥¤à¿ô¤À¤±½é´ü²½¤Ç¤¤Þ¤¹¡£ºÆÄêµÁ¤·¤Ê¤¤¾ì¹ç¤Ï¡¢¤½ ¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°À¤ò»ý¤Á³¤±¤Þ¤¹¡£Î㤨¤ÐÀþ¼ï 3 ¤òºÆÄêµÁ¤«¤é³°¤»¤Ð¡¢ ¤½¤ì¤ÏÀÄ¤Ç pt 3, lw 1 ¤È¤Ê¤ê¤Þ¤¹¡£
ƱÍͤΥ¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤Ç¡¢¥Æ¡¼¥Þ¥Ù¡¼¥¹¤Î¿§ÁªÂò¤ÎÄêµÁ¤ò¹Ô¤Ã¤¿¤ê¡¢ÆÃÄê ¤ÎÉÁ²è¥¿¥¤¥×¡¢¤¢¤ë¤¤¤ÏÆÃÄê¤Î½ÐÎÏ·Á¼°ÍѤ˿§¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤ê¤¹¤ë¤³¤È ¤â²Äǽ¤Ç¤¹¡£
¥³¥Þ¥ó¥É set linetype cycle 8 ¤Ï¡¢Â礤ÊÈÖ¹æ¤ÎÀþ¼ï¤ËÂФ·¤Æ¤Ï¿§¤äÀþÉý ¤Ë´Ø¤¹¤ë¤³¤ì¤é¤ÎÄêµÁ¤òºÆÍøÍѤ¹¤ë¤³¤È¤ò gnuplot ¤ËÅÁ¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ Àþ¼ï (linetype) 9-16, 17-24 Åù¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤ÈƱ¤¸¿§¡¢Éý¤ÎÎó¤ò»ÈÍѤ· ¤Þ¤¹¡£¤¿¤À¤·¡¢ÅÀ¤Î°À (pointtype, pointsize, pointinterval) ¤Ï¡¢¤³¤Î ¥³¥Þ¥ó¥É¤Î±Æ¶Á¤Ï¼õ¤±¤Þ¤»¤ó¡£unset linetype cycle ¤Ï¤³¤Îµ¡Ç½¤ò̵¸ú¤Ë ¤·¤Þ¤¹¡£Â礤ÊÀþ¼ïÈÖ¹æ¤ÎÀþ¤Î°À¤òÌÀ¼¨Åª¤ËÄêµÁ¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï¾®¤µ¤¤ ÈÖ¹æ¤ÎÀþ¼ï¤Î°À¤ÎºÆÍøÍѤè¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£
set link {x2 | y2} {via <expression1> inverse <expression2>} unset link
¥³¥Þ¥ó¥É set link ¤Ï¡¢x ¼´¤È x2 ¼´¡¢¤Þ¤¿¤Ï y ¼´¤È y2 ¼´¤Î´Ö¤ÎÂбþ¤ò ÀßÄꤷ¤Þ¤¹¡£<expression1> ¤Ï¡¢Âè 1 ¼´¤ÎºÂɸ¤òÂè 2 ¼´¤Ë¼ÌÁü¤¹¤ë¿ô¼°¤Ç¤¹ ¤¬¡¢<expression2> ¤ÏÂè 2 ¼´¤ÎºÂɸ¤òÂè 1 ¼´¤Ë¼ÌÁü¤¹¤ë¿ô¼°¤Ç¤¹¡£
Îã:
set link x2
¤³¤ì¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÎºÇ¤âñ½ã¤Ê·Á¼°¤Ç¡¢x2 ¼´¤òÈÏ°Ï (range) ¤â¿½Ì (scale) ¤âÊý¸þ¤â x ¼´¤ÈÁ´¤¯Æ±¤¸¤Ë¤·¤Þ¤¹¡£set xrange, set x2range ¤ä set auto x ¤Ê¤É¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤³¤Î¾ì¹ç x ¼´¤Ë¤â x2 ¼´¤Ë¤âºîÍѤ·¤Þ ¤¹¡£
set link x2 via x**2 inverse sqrt(x) plot "sqrt_data" using 1:2 axes x2y1, "linear_data" using 1:2 axes x1y1
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢x ¼´¤È x2 ¼´¤Î¡¢½çÊý¸þ¤ÈµÕÊý¸þ¤ÎÂбþ¤òÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£ ½çÊý¸þ¤ÎÂбþ¤Ï¡¢x2 ¼´¤Î¹ï¤ß¥é¥Ù¥ë¤È¡¢¥Þ¥¦¥¹¤Î x2 ºÂɸ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È ¤¤¡¢µÕÊý¸þ¤ÎÂбþ¤Ï¡¢x2 ¼´·Ï¤Ç»ØÄꤵ¤ì¤¿ºÂɸ¤òÉÁ²è¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤³ ¤ÎÂбþ¤Ï¡¢ÈóÉé¤Î x ºÂɸ¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£y2 ¼´¤Ë Âбþ¤µ¤»¤¿¾ì¹ç¡¢<expression1> ¤È <expression2> ¤Ë¤Ï²¾ÊÑ¿ô¤È¤·¤Æ y ¤ò»È ¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
½ñ¼°:
set loadpath {"pathlist1" {"pathlist2"...}} show loadpath
¥Ñ¥¹Ì¾¤Ïñ°ì¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ñ¥¹Ì¾¤Î¥ê¥¹¥È¤È¤·¤ÆÆþÎϤ·¤Þ ¤¹¡£Ê£¿ô¤Î¥Ñ¥¹¤«¤é¤Ê¤ë¥Ñ¥¹¥ê¥¹¥È¤Ï OS ¸ÇͤΥѥ¹¶èÀڤꡢÎ㤨¤Ð Unix ¤Ç ¤Ï¥³¥í¥ó (':'), MS-DOS, Windows, OS/2 ¤Ç¤Ï¥»¥ß¥³¥í¥ó (';') Åù¤Ç¶èÀÚ¤ê ¤Þ¤¹¡£show loadpath, save, save set ¥³¥Þ¥ó¥É¤Ï¡¢OS ¸ÇͤΥѥ¹¶è ÀÚ¤ê¤ò¥¹¥Ú¡¼¥¹ (' ') ¤ÇÃÖ¤´¹¤¨¤Þ¤¹¡£
´Ä¶ÊÑ¿ô GNUPLOT_LIB ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ÎÆâÍÆ¤Ï loadpath ¤ËÄÉ ²Ã¤µ¤ì¤Þ¤¹¤¬¡¢show loadpath ¤Ï¡¢set loadpath ¤È GNUPLOT_LIB ¤ÎÃͤò ÊÌ¡¹¤Ëɽ¼¨¤·¤Þ¤¹¤·¡¢save, save set ¥³¥Þ¥ó¥É¤Ï¡¢GNUPLOT_LIB ¤ÎÃͤΠÊý¤Ï̵»ë¤·¤Þ¤¹¡£
½ñ¼°:
set locale {"<locale>"}
<locale> ¤Ë¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥·¥¹¥Æ¥à¤Ç»È¤¦¤³¤È¤Î½ÐÍè¤ëǤ°Õ¤Î¸À¸ì¤ò »ØÄê¤Ç¤¤Þ¤¹¡£²Äǽ¤Ê¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¥·¥¹¥Æ¥à¤Î¥É¥¥å¥á¥ó¥È¤ò»²¾È¤· ¤Æ¤¯¤À¤µ¤¤¡£¥³¥Þ¥ó¥É set locale "" ¤Ï¡¢´Ä¶ÊÑ¿ô LC_TIME, LC_ALL, ¤Þ ¤¿¤Ï LANG ¤«¤é¥í¥«¡¼¥ë¤ÎÃͤò·èÄꤷ¤è¤¦¤È¤·¤Þ¤¹¡£
¾®¿ôÅÀ¤Ë´Ø¤¹¤ë locale ¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set decimalsign (112.24)¡£ ʸ»ú¥¨¥ó¥³¡¼¥É¤ò¸½ºß¤Î¥í¥«¡¼¥ë¤Î¤â¤Î¤ËÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set encoding (112.27)¡£
set logscale <axes> {<base>} unset logscale <axes> show logscale
¤³¤³¤Ç¡¢<axes> (¼´) ¤Ï¡¢x, x2, y, y2, z, cb, r ¤ÎǤ°Õ¤Î ½ç½ø¤ÎÁȤ߹礻¤¬²Äǽ¤Ç¤¹¡£<base> ¤Ï¡¢ÂпôÌÜÀ¹¤ê¤ÎÄì¤Ç¤¹ (¥Ç¥Õ¥©¥ë¥È¤Î Äì¤Ï 10)¡£¼´¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢r °Ê³°¤Î¤¹¤Ù¤Æ¤Î¼´¤¬ÂоݤȤʤê¤Þ ¤¹¡£¥³¥Þ¥ó¥É unset logscale ¤Ï¡¢¤¹¤Ù¤Æ¤Î¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤·¤Þ¤¹¡£ Âпô¼´¤ËÂФ·¤Æ¤Ä¤±¤é¤ì¤ëÌÜÀ¹¤ê¤Î¹ï¤ß¤Ï¡¢Åù´Ö³Ö¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£°Ê²¼»²¾È: set xtics (112.123)¡£
Îã:
x, z ξ¼´¤Ë¤Ä¤¤¤ÆÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale xz
y ¼´¤Ë¤Ä¤¤¤ÆÄì 2 ¤È¤¹¤ëÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale y 2
pm3d plot ÍÑ¤Ë z ¤È¿§¤Î¼´¤ËÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale zcb
z ¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤¹¤ë:
unset logscale z
½ñ¼°:
set mapping {cartesian | spherical | cylindrical}
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥«¡¼¥Æ¥·¥¢¥óºÂɸ (Ä̾ï¤Î x,y,z ºÂɸ) ¤¬»È¤ï¤ì¤Þ¤¹¡£
µåÌ̺Âɸ¤Ç¤Ï¡¢¥Ç¡¼¥¿¤Ï 2 ¤Ä¤« 3 ¤Ä¤ÎÎó (¤Þ¤¿¤Ï¤½¤Î¸Ä¿ô¤Î using ¥¨¥ó ¥È¥ê) ¤È¤·¤ÆÍ¿¤¨¤é¤ì¤Þ¤¹¡£ºÇ½é¤Î 2 ¤Ä¤Ï¡¢set angles ¤ÇÀßÄꤵ¤ì¤¿Ã±°Ì ¤Ç¤ÎÊý°Ì³Ñ (theta) ¤È¶Ä³Ñ (phi) (¤¹¤Ê¤ï¤Á "·ÐÅÙ" ¤È "°ÞÅÙ") ¤È¤ß¤Ê¤µ¤ì ¤Þ¤¹¡£È¾·Â r ¤Ï¡¢¤â¤· 3 ÎóÌܤΥǡ¼¥¿¤¬¤¢¤ì¤Ð¤½¤ì¤¬»È¤ï¤ì¡¢¤â¤·¤Ê¤±¤ì¤Ð 1 ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£³ÆÊÑ¿ô¤Î x,y,z ¤È¤ÎÂбþ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
x = r * cos(theta) * cos(phi) y = r * sin(theta) * cos(phi) z = r * sin(phi)
¤³¤ì¤Ï¡¢"¶ËºÂɸ·Ï" ¤È¤¤¤¦¤è¤ê¡¢¤à¤·¤í "Ãϳؾå¤ÎºÂɸ·Ï" (°ÞÅÙ¡¢·ÐÅÙ) ¤Ë ÁêÅö¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (¤¹¤Ê¤ï¤Á¡¢phi ¤Ï z ¼´¤È¤Ê¤¹³Ñ¡¢¤È¤¤¤¦ ¤è¤êÀÖÆ»¤«¤é·×¤Ã¤¿¶Ä³Ñ¡¢¤Ë¤Ê¤ê¤Þ¤¹)¡£
±ßÃìºÂɸ¤Ç¤Ï¡¢¥Ç¡¼¥¿¤Ï¤ä¤Ï¤ê 2 ¤Ä¤« 3 ¤Ä¤ÎÎó¤ÇÍ¿¤¨¤é¤ì¡¢ºÇ½é¤Î 2 ¤Ä¤Ï theta (set angle ¤Ç»ØÄꤵ¤ì¤¿Ã±°Ì¤Î) ¤È z ¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£È¾·Â r ¤Ï µåÌ̺Âɸ¤Î¾ì¹ç¤ÈƱÍÍ¡¢3 ÎóÌܤΥǡ¼¥¿¤¬¤¢¤ì¤Ð¤½¤ì¤¬¡¢¤Ê¤±¤ì¤Ð 1 ¤ÈÀßÄê ¤µ¤ì¤Þ¤¹¡£³ÆÊÑ¿ô¤Î x,y,z ¤È¤ÎÂбþ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
x = r * cos(theta) y = r * sin(theta) z = z
mapping ¤Î¸ú²Ì¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Î using »ØÄê¤Ç¼Â¸½¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¤¬¡¢Â¿¤¯¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬½èÍý¤µ¤ì¤ë¾ì¹ç¤Ï mapping ¤ÎÊý¤¬ÊØ Íø¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢mapping ¤ò»È¤Ã¤Æ¤¤¤Æ¤â¡¢¤â¤·¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤Î½ç ÈÖ¤¬Å¬ÀڤǤʤ«¤Ã¤¿¤é·ë¶É using ¤¬É¬ÍפˤʤäƤ·¤Þ¤¤¤Þ¤¹¡£
mapping ¤Ï plot ¤Ç¤Ï²¿¤â¤·¤Þ¤»¤ó¡£ world.dem: mapping ¤Î¥Ç¥â¡£
½ñ¼°:
set lmargin {{at screen} <margin>} set rmargin {{at screen} <margin>} set tmargin {{at screen} <margin>} set bmargin {{at screen} <margin>} set margins <left>, <right>, <bottom>, <top> show margin
<margin> ¤Î¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì¤Ë¤Ï¡¢Å¬ÀڤȻפï¤ì¤ë¡¢Ê¸»ú¤Î¹â¤µ¤ÈÉý¤¬»È¤ï ¤ì¤Þ¤¹¡£Àµ¤ÎÃͤÏ;Çò¤ÎÀäÂÐŪ¤ÊÂ礤µ¤òÄêµÁ¤·¡¢Éé¤ÎÃÍ (¤Þ¤¿¤Ï̵»ØÄê) ¤Ï gnuplot ¤Ë¤è¤Ã¤Æ¼«Æ°·×»»¤µ¤ì¤ëÃͤò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ç¤Ï º¸¤Î;Çò (lmargin) ¤Î¤ß¤¬Ê¸»ú¤ÎÂ礤µ¤òñ°Ì¤È¤·¤ÆÀßÄê¤Ç¤¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É at screen ¤Ï¡¢¤½¤Î;Çò¤Î»ØÄ꤬Á´ÂΤÎÉÁ²èÎΰè¤ËÂФ¹¤ë³ä¹ç ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Â¿½ÅÉÁ²è (multiplot) ¥â¡¼¥É¤Ç¤Î 2D, 3D ¥°¥é¥Õ¤Î³Ñ¤òÀµ³Î¤Ë·¤¨¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¤³¤ÎÇÛÃ֤ϸ½ºß¤Î set origin ¤ä ¤ä set size ¤ÎÃͤò̵»ë¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï¿½ÅÉÁ²èÆâ¤Î¥°¥é¥Õ ¤ÎÇÛÃÖ¤ÎÊ̤ÎÊýË¡¤È¤·¤Æ»È¤ï¤ì¤ë¤³¤È¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£
ÉÁ²è¤Î;Çò¤ÏÄ̾ïÌÜÀ¹¤ê¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¼´¤Î¸«½Ð¤·¡¢ÉÁ²è¤Î¥¿¥¤¥È¥ë¡¢ ÆüÉÕ¡¢¤½¤·¤Æ¶³¦¤Î³°¤Ë¤¢¤ë¾ì¹ç¤ÎËÞÎã (key) ¤Î¥µ¥¤¥ºÅù¤ò¸µ¤Ë·×»»¤µ¤ì¤Þ ¤¹¡£¤·¤«¤·¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¤¬¶³¦¤Ç¤Ê¤¯¼´¤ÎÊý¤Ë¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç (Î㤨¤Ð set xtics axis ¤Ë¤è¤Ã¤Æ)¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¼«¿È¤È¤½¤Î¸«½Ð¤·¤Ï;Çò¤Î·×»»¤Ë ¤Ï´Þ¤Þ¤ì¤Þ¤»¤ó¤·¡¢Í¾Çò¤Ë½ñ¤«¤ì¤ë¾¤Îʸ»úÎó¤Î°ÌÃ֤η׻»¤Ë¤â´Þ¤Þ¤ì¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢¼´¤È¶³¦¤¬Èó¾ï¤Ë¶á¤¤¾ì¹ç¡¢¼´¤Î¸«½Ð¤·¤¬Â¾¤Îʸ»úÎó¤ò¾å½ñ¤¤¹¤ë²Ä ǽÀ¤ò¼¨º¶¤·¤Þ¤¹¡£
^
-6) ¤ò¼¨¤¹ÀÜƬ¼¤È¤·¤Æ¾®Ê¸»ú¤Î u ¤ò»È¤¤
¤Þ¤¹¡£¥³¥Þ¥ó¥É set micro ¤Ï¡¢¤½¤ì¤È¤Ï°Û¤Ê¤ë°õ»úÍÑʸ»ú (unicode
U+00B5) ¤ò»ÈÍѤ¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤½¤Îʸ»ú¤òɽ¸½¤¹¤ë¤Î¤Ë»È
ÍѤµ¤ì¤ë¥Ð¥¤¥ÈÎó¤Ï¡¢¸½ºß¤Î encoding ¤Ë°Í¸¤·¤Þ¤¹¡£°Ê²¼»²¾È:
format specifiers (112.31.2), encoding (112.27)¡£
¸½ºß¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ë¤è¤ë¥Ç¥Õ¥©¥ë¥È¤¬Ëþ¤¤¤«¤Ê¤¤¾ì¹ç¡¢Íߤ·¤¤É½¸½¤ò À¸À®¤¹¤ëʸ»úÎó¤ò¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢latex ·Ï ¤Î½ÐÎÏ·Á¼°¤Ç¤ÏÍÍѤǡ¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£
set micro "{\textmu}"
set minussign
¤Ï¡¢gprintf() ¤Î¿ô»ú¤Î½ÐÎϤˡ¢¥Ï¥¤¥Õ¥ó¤ÎÂå¤ï¤ê¤Ë¥Þ¥¤¥Ê¥¹Éä¹æʸ»ú¤ò»ÈÍÑ ¤¹¤ë¤è¤¦»Ø¼¨¤·¤Þ¤¹¡£UTF-8 ¥í¥±¡¼¥ë¤Ç¤Ï¤½¤ì¤Ï Unicode U+2212 ¤ËÂбþ¤¹¤ë ¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»úÎó¤Ë¤Ê¤ê¡¢Window ¥³¡¼¥É¥Ú¡¼¥¸ 1252 ¥í¥±¡¼¥ë¤Ç¤Ï¡¢¤³¤ì ¤Ï 8 ¥Ó¥Ã¥Èʸ»ú¤Î ALT+150 ("en dash") ¤Ë¤Ê¤ê¤Þ¤¹¡£¥³¥Þ¥ó¥É set minussign ¤Ï¡¢¼´¤Î¹ï¤ß¤Î¥é¥Ù¥ë¤È¡¢gprintf ¤òÌÀ¼¨Åª¤Ë¸Æ¤Ó½Ð¤·¤ÆÀ¸ À®¤µ¤ì¤¿Ê¸»úÎó¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î¾ì¹ç¤Î¥Ï¥¤¥Õ¥ó¤ò´Þ¤àʸ»úÎó¤Ë ¤Ï²¿¤é±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£°Ê²¼»²¾È: gprintf (112.31.1)¡£
LaTeX ¤Ï¡¢¤½¤ì¼«¿È¤¬Éé¤ÎÉä¹æ¤ò¼«Á°¤Ç½èÍý¤¹¤ë»ÅÁȤߤò»ý¤Ã¤Æ¤¤¤ë¤¿¤á¡¢¤³ ¤Î¥³¥Þ¥ó¥É¤Ï¡¢LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï̵»ë¤µ¤ì¤ë¤³¤È¤ËÃí °Õ¤·¤Æ¤¯¤À¤µ¤¤¡£postscript ½ÐÎÏ·Á¼°¤ò»ÈÍѤ¹¤ë¾ì¹ç¤â¡¢gnuplot ¤Î postscript ÍÑÁ°½èÍý¥ë¡¼¥Á¥ó¤¬ ascii ¤Î¥Ï¥¤¥Õ¥ó¥³¡¼¥É \055 ¤ò minus ¤È¤¤¤¦Ì¾Á°¤Î°Û¤Ê¤ëʸ»ú¤ËÊÑ´¹¤¹¤ë¤Î¤Ç¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÏɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
Îã (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 ¤ò´Þ¤à¥é¥Ù¥ë
set monochrome {linetype N <linetype properties>}
¥³¥Þ¥ó¥É set monochrome ¤Ï¡¢Àþ¼ï·²¤ÎÊ̤ÎÀßÄêË¡¤òÁªÂò¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï ¿§¤Î°ã¤¤¤Ç¤Ï¤Ê¤¯¡¢ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤äÀþÉý¤Î°ã¤¤¤Ë¤è¤ë¤â¤Î¤Ç¤¹¡£¤³¤Î¥³ ¥Þ¥ó¥É¤Ï¡¢gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¤¢¤ë½ÐÎÏ·Á¼°¤Ç monochrome ¥ª¥×¥· ¥ç¥ó¤È¤·¤ÆÄ󶡤·¤Æ¤¤¤¿¤â¤Î¤ËÃÖ¤´¹¤ï¤ë¤â¤Î¤Ç¡¢¸åÊý¸ß´¹À¤Î¤¿¤á¡¢¤½¤ì¤é ¤Î½ÐÎÏ·Á¼°¤Ç "mono" ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢°ÅÌÛ¤Ç set monochrome ¤ò ¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ Î㤨¤Ð¡¢
set terminal pdf mono
¤Ï¡¢°Ê²¼¤ÈƱÅù¤Ç¤¹¡£
set terminal pdf set mono
Çò¹õ¥â¡¼¥É (monochrome) ¤ÎÁªÂò¤Ï¡¢ÌÀ¼¨Åª¤Ê RGB ¿§¡¢¥Ñ¥ì¥Ã¥È¿§¤ò»ÈÍѤ· ¤Æ¤Î¥«¥é¡¼¤ÎÀþ¤ÎÉÁ²è¤ò˸¤²¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢°Ê²¼¤â»²¾È: set palette gray (112.67.4)¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 6 ¤Ä¤ÎÇò¹õÀþ¼ï¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Î°À¤òÊѹ¹ ¤·¤¿¤ê¡¢Çò¹õÀþ¼ï¤òÄɲ乤뤳¤È¤Ï¡¢¥Õ¥ë·Á¼°¤Ç¤½¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤³¤È ¤Ç¤Ç¤¤Þ¤¹¡£Çò¹õÀþ¼ï¤Ë¤Û¤É¤³¤µ¤ì¤¿Êѹ¹¤Ï¡¢¥«¥é¡¼¤ÎÀþ¼ï¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ ¤»¤ó¤·¡¢¤½¤ÎµÕ¤âƱÍͤǤ¹¡£¥«¥é¡¼Àþ¼ï¤ËÉüµ¢¤¹¤ë¤Ë¤Ï¡¢unset monochrome ¤«¡¢set color ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Þ¥¦¥¹¥â¡¼¥É¤Ï 2 ¼ïÎàÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£2 ¼¡¸µ¥â¡¼¥É¤Ï¡¢plot ¥³¥Þ¥ó¥É ¤È splot ¤Î 2 ¼¡¸µ¼Í±Æ (¤¹¤Ê¤ï¤Á¡¢z ¤Î²óž³Ñ¤¬ 0, 90, 180, 270, 360 Å٤Πset view¡¢¤ª¤è¤Ó set view map) ¤ÇÆ°ºî¤·¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢ ¥Þ¥¦¥¹°ÌÃÖ¤¬ÄÉÀפµ¤ì¡¢¥Þ¥¦¥¹¥Ü¥¿¥ó¤äÌð°õ¥¡¼¤ò»È¤Ã¤Æ³ÈÂ礷¤¿¤ê»ëÅÀ°ÜÆ° ¤·¤¿¤ê¤Ç¤¤Þ¤¹¡£¥°¥é¥Õ¤ËÂбþ¤¹¤ëËÞÎã¤Î¥¿¥¤¥È¥ë¤äÊ̤ʥ¦¥£¥¸¥§¥Ã¥È¥¢¥¤¥³ ¥ó¤Ê¤É¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¡¢¸Ä¡¹¤Î¥°¥é¥Õ¤ÎÉÁ²è¤ò¥ª¥ó/¥ª¥Õ¤ËÀÚ¤êÂؤ¨¤ë ¤³¤È¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£
splot ¤Ë¤è¤ë 3 ¼¡¸µ¥°¥é¥Õ¤ËÂФ·¤Æ¤Ï¡¢¥°¥é¥Õ¤Î»ëÊý¸þ (view) ¤È½Ì¼Ü¤Î Êѹ¹¤¬¡¢¤½¤ì¤¾¤ì¥Þ¥¦¥¹¥Ü¥¿¥ó 1 ¤È 2 (¤Ë¤è¤ë¥É¥é¥Ã¥°) ¤Ç¹Ô¤¨¤Þ¤¹¡£¥Ü¥¿ ¥ó 2 ¤Î¿âľÊý¸þ¤Î¥É¥é¥Ã¥°¤ò shift ¥¡¼¤ÈƱ»þ¤Ë¹Ô¤¦¤È¡¢z ¼´¤Î°ìÈÖ²¼¤Î°Ì ÃÖ (xyplane) ¤ò¾å²¼¤·¤Þ¤¹¡£¤³¤ì¤é¤Î¥Ü¥¿¥ó¤Ë¤µ¤é¤Ë <ctrl> ¥¡¼¤ò²¡¤¹ ¤È¡¢ºÂɸ¼´¤Ïɽ¼¨¤µ¤ì¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¤Îɽ¼¨¤Ï¾Ã¤¨¤Þ¤¹¡£¤³¤ì¤ÏÂ礤ʥǡ¼¥¿ ¤ËÂФ·¤ÆÍÍѤǤ·¤ç¤¦¡£¥Þ¥¦¥¹¥Ü¥¿¥ó 3 ¤Ï¡¢z ¼´¤Î¸þ¤ (azimuth) ¤òÀ©¸æ¤· ¤Þ¤¹ (°Ê²¼»²¾È: set view azimuth (112.104.1))¡£
½ñ¼°:
set mouse {doubleclick <ms>} {nodoubleclick} {{no}zoomcoordinates} {zoomfactors <xmultiplier>, <ymultiplier>} {noruler | ruler {at x,y}} {polardistance{deg|tan} | nopolardistance} {format <string>} {mouseformat <int> | <string> | function <f(x,y)>} {{no}labels {"labeloptions"}} {{no}zoomjump} {{no}verbose} unset mouse
¥ª¥×¥·¥ç¥ó noruler ¤È ruler ¤Ï¡¢Ä구 (ruler) µ¡Ç½¤ò off, on ¤Ë¤·¤Þ ¤¹¡£ruler ¤Ë¤ÏºÂɸ¤òÍ¿¤¨¤Æ¸¶ÅÀ¤òÀßÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ruler ¤¬ on ¤Î´Ö¡¢ruler ¤Î¸¶ÅÀ¤«¤é¥Þ¥¦¥¹¤Þ¤Ç¤Î¥æ¡¼¥¶Ã±°Ì¤Ç¤Îµ÷Î¥¤¬Ï¢Â³Åª¤Ëɽ¼¨ ¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ruler ¤Î¥È¥°¥ë¥¹¥¤¥Ã¥Á¤Ï 'r' ¤Ë¥¡¼³ä¤êÅö¤Æ ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó polardistance ¤Ï¡¢¥Þ¥¦¥¹¥«¡¼¥½¥ë¤«¤éÄ구 (ruler) ¤Þ¤Ç¤Îµ÷ Î¥¤ò¶ËºÂɸ¤Ç¤âɽ¼¨ (µ÷Î¥¡¢¤ª¤è¤Ó³ÑÅÙ¤Þ¤¿¤Ï·¹¤) ¤¹¤ë¤«¤É¤¦¤«¤ò·èÄꤷ¤Þ ¤¹¡£¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥¡¼³ä¤êÅö¤Æ '5' ¤ËÂбþ¤·¤Þ¤¹¡£
¥Ü¥¿¥ó 2 ¤Î gnuplot ¤Î±Ê³Ū¤Ê¥é¥Ù¥ë¤òÄêµÁ¤¹¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó labels ¤ò»ÈÍѤ·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï nolabels ¤Ç¡¢¥Ü¥¿¥ó 2 ¤Ïñ¤Ë°ì»þ Ū¤Ê¥é¥Ù¥ë¤ò¥Þ¥¦¥¹°ÌÃÖ¤ËÉÁ²è¤·¤Þ¤¹¡£¥é¥Ù¥ë¤Ï¸½ºß¤Î mouseformat ¤ÎÀß Äê¤Ë½¾¤Ã¤Æ½ñ¤«¤ì¤Þ¤¹¡£labeloptions ʸ»úÎó¤Ï¡¢¥³¥Þ¥ó¥É set label ¥³ ¥Þ¥ó¥É¤ËÅϤµ¤ì¤Þ¤¹¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï "point pointtype 1" ¤Ç¡¢¤³¤ì¤Ï¥é ¥Ù¥ë°ÌÃ֤˾®¤µ¤¤¥×¥é¥¹ (+) ¤òÉÁ²è¤·¤Þ¤¹¡£°ì»þŪ¤Ê¥é¥Ù¥ë¤Ï¡¢¤½¤Î¼¡¤Î replot¡¢¤Þ¤¿¤Ï¥Þ¥¦¥¹¥º¡¼¥àÁàºî¤Ç¤Ï¸½¤ì¤Þ¤»¤ó¡£±Ê³Ū¤Ê¥é¥Ù¥ë¤Ï¡¢¥é¥Ù ¥ë¤ÎÅÀ¤Î¾å¤Ç Ctrl ¥¡¼¤ò²¡¤·¤Æ¥Ü¥¿¥ó 2 ¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¾Ã¤¹¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£¼ÂºÝ¤Î¥é¥Ù¥ë¤Î°ÌÃ֤ˤɤì°Ì¶á¤¯¤Ç¥¯¥ê¥Ã¥¯¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤« ¤ÎïçÃͤâ pointsize ¤Ç·èÄꤵ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó verbose ¤¬ ON ¤Î¾ì¹ç¡¢¼Â¹Ô»þ¤ÎÊó¹ð¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 6 ¤òÂǤĤ³¤È¤Ç ON/OFF ¤¬¥¹¥¤ ¥Ã¥Á¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï verbose ¤Ï OFF ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 'h' ¤òÂǤĤȡ¢¥Þ¥¦¥¹¤È¥¡¼³ä¤êÅö¤Æ¤ÎÀâÌÀ¤òɽ¼¨ ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î¥¡¼³ä¤êÅö¤Æ¡¢¤¹¤Ê¤ï¤Á bind ¥³¥Þ¥ó¥É¤Ë¤è ¤ë hotkeys ¤âɽ¼¨¤·¤Þ¤¹¡£¥æ¡¼¥¶ÄêµÁ¤Î¥¡¼³ä¤êÅö¤Æ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥¡¼ ³ä¤êÅö¤Æ¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼¤â»²¾È: bind (22.1)¡£
¤³¤ÎÀßÄê¤Ï¡¢"set mouse mouseformat" ¤òÃÖ¤´¹¤¨¤ë¤â¤Î¤Ç¤¹¡£
set mouse mouseformat i set mouse mouseformat "custom format" set mouse mouseformat function string_valued_function(x, y)
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥Þ¥¦¥¹°ÌÃÖ¤òÊó¹ð¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë½ñ¼°¤òÀ©¸æ¤·¤Þ¤¹¡£ À°¿ô¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢²¼¤Îɽ¤Î½ñ¼°¥ª¥×¥·¥ç¥ó¤Î°ì¤Ä¤òÁªÂò¤Ç¤¤Þ¤¹¡£ ʸ»úÎó¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤ò½ñ¼°¥ª¥×¥·¥ç¥ó 7 ¤Î sprintf() ¤ËÂФ¹¤ë½ñ¼°¤È ¤·¤Æ»ÈÍѤ·¤Þ¤¹¤¬¡¢x, y ¤ËÂбþ¤¹¤ë 2 ¤Ä¤Î¼Â¿ô»ØÄê»Ò¤ò»ý¤ÄɬÍפ¬¤¢¤ê¤Þ¤¹¡£
ºÇ¸å¤Îʸ»úÎó¤òÊÖ¤¹¥«¥¹¥¿¥à´Ø¿ô¤Î»ØÄê¤Ï¡Ö»î¸³Ãʳ¬¡×¤Ç¤¹¡£¤½¤ì¤Ï¡¢¥¹¥¯¥ê ¡¼¥óºÂɸ¤«¤é¥°¥é¥ÕºÂɸ¤Ø¤ÎµÕ¤ÎÂбþ¤¬ x, y ¤ÎξÊý¤òÁȤǹÍθ¤¹¤ëɬÍפ¬¤¢ ¤ë¤è¤¦¤ÊºÂɸ·Ï¤ÎÆɤ߽Ф·¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£Îã¤Ë¤Ä¤¤¤Æ¤Ï¡¢map_projection ¥Ç¥â¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set mouse mouseformat "mouse x,y = %5.2g, %10.3f"
¤³¤Îʸ»úÎó¤ò¤Þ¤¿¥ª¥Õ¤Ë¤¹¤ë¤Ë¤Ï¡¢set mouse mouseformat "" ¤È¤·¤Þ¤¹¡£
°Ê²¼¤Î½ñ¼°¤¬ÍøÍѲÄǽ¤Ç¤¹:
0 ¥Ç¥Õ¥©¥ë¥È (1 ¤ÈƱ¤¸) 1 ¼´¤ÎºÂɸ 1.23, 2.45 2 ¥°¥é¥ÕºÂɸ (0 ¤«¤é 1 ¤Þ¤Ç) /0.00, 1.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 <format-string>` ¤Ë¤è¤ë½ñ¼° 8 `set mouse mouseformat function <func>` ¤Ë¤è¤ë½ñ¼°
2 ¼¡¸µ¥°¥é¥Õ¤ÎÁªÂò¤·¤¿Îΰè¤ò¹¤²¤ë¤Ë¤Ï¡¢¥Þ¥¦¥¹¤Î¥É¥é¥Ã¥°¤Ç³ÈÂçÈϰϤÎÀþ °ú¤¤ò¹Ô¤¤¡¢¤½¤·¤Æº¸¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò²¡¤¹¤³¤È¤Ç¹Ô¤¤¤Þ¤¹¡£¥°¥é¥Õ¥¦¥£¥ó¥É¥¦ ¾å¤Ç¥Û¥Ã¥È¥¡¼ 'u' ¤ò¥¿¥¤¥×¤¹¤ë¤³¤È¤Ç¸µ¤Î¥°¥é¥Õ¤ËÉü¸µ¤Ç¤¤Þ¤¹¡£¥Û¥Ã¥È ¥¡¼ 'p' ¤È 'n' ¤Ï¡¢³ÈÂçÁàºî¤ÎÍúÎò¤ò¸åÊý¤ÈÁ°Êý¤Ë¤¿¤É¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó zoomcoordinates ¤Ï¡¢³ÈÂç¤ÎºÝ¤Ë¡¢³ÈÂç¤ÎÏȤÎü¤Ë¤½¤ÎºÂɸ¤ò ½ñ¤¯¤«¤É¤¦¤«¤ò·èÄꤷ¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï ON ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó zoomjump ¤¬ ON ¤Î¾ì¹ç¡¢¥Ü¥¿¥ó 3 ¤Ë¤è¤ë³ÈÂçÈϰϤÎÁªÂò¤ò³« »Ï¤¹¤ë¤È¡¢¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤Ï¼«Æ°Åª¤Ë¾¯¤·¤À¤±¤º¤ì¤¿°ÌÃ֤˰ÜÆ°¤·¤Þ¤¹¡£¤³¤ì ¤Ï¡¢¤´¤¯¾®¤µ¤¤ (¤Þ¤¿¤Ï¶õ¤Ç¤µ¤¨¤¢¤ë) ³ÈÂçÈϰϤòÁªÂò¤·¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤± ¤ë¤Î¤ËÊØÍø¤Ç¤·¤ç¤¦¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï zoomjump ¤Ï OFF ¤Ç¤¹¡£
½ñ¼°:
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 ¤¬Í¿¤¨¤é¤ì ¤ë¤Þ¤Ç²¿¤ÎÉÁ²è¤âɽ¼¨¤µ¤ì¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¤³¤Î¥³¥Þ¥ó¥É¤Ë¤è¤ê ¥Ú¡¼¥¸Á´ÂΤÎÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¡¢gnuplot ¤Ïɸ½à¤Îñ°ìÉÁ²è¥â¡¼¥É¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤½¤ì°Ê³°¤Î½ÐÎÏ·Á¼°¤Ç¤Ï¡¢³Æ plot ¥³¥Þ¥ó¥É¤¬¤½¤ì¤¾¤ìɽ¼¨¤ò¹¹¿·¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É clear ¤Ï¡¢¼¡¤ÎÉÁ²è¤Ë»È¤¦Ä¹Êý·ÁÎΰè¤ò¾Ã¤¹¤Î¤Ë»È¤¨¤Þ¤¹¡£Åµ·¿ Ū¤Ë¤Ï¡¢Â礤¤¥°¥é¥Õ¤ÎÆâÉô¤Ë¾®¤µ¤Ê¥°¥é¥Õ¤òÁÞÆþ¤¹¤ë¤è¤¦¤Ê¾ì¹ç¤ËɬÍפǤ¹¡£
ÄêµÁºÑ¤Î¸«½Ð¤·¤ä¥Ù¥¯¥È¥ë¤Ï¡¢³ÆÉÁ²è¤Ë¤ª¤¤¤Æ¡¢Ëè²ó¸½ºß¤Î¥µ¥¤¥º¤È¸¶ÅÀ¤Ë½¾ ¤Ã¤Æ½ñ¤«¤ì¤Þ¤¹ (¤½¤ì¤é¤¬ screen ºÂɽ·Ï¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç)¡£¤½¤ì °Ê³°¤ÎÁ´¤Æ¤Î set ¤ÇÄêµÁ¤µ¤ì¤ë¤â¤Î¤â³ÆÉÁ²è¤¹¤Ù¤Æ¤ËŬÍѤµ¤ì¤Þ¤¹¡£¤â¤· 1 ÅÙ¤ÎÉÁ²è¤Ë¤À¤±¸½¤ï¤ì¤ÆÍߤ·¤¤¤â¤Î¤òºî¤ê¤¿¤¤¤Ê¤é¡¢¤½¤ì¤¬Î㤨¤ÐÆüÉÕ (timestamp) ¤À¤È¤·¤¿¤é¡¢set multiplot ¤È unset multiplot ¤Ç°Ï¤Þ¤ì ¤¿¥Ö¥í¥Ã¥¯Æâ¤Î plot (¤Þ¤¿¤Ï splot, replot) Ì¿Îá¤Î°ì¤Ä¤ò set time ¤È unset time ¤Ç¤Ï¤µ¤ó¤Ç¤¯¤À¤µ¤¤¡£
multiplot ¤Î¥¿¥¤¥È¥ë¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è¥¿¥¤¥È¥ë¤¬¤¢¤Ã¤¿¤È¤·¤Æ¤â¡¢¤½¤ì¤È¤ÏÊÌ ¤Î¤â¤Î¤Ç¡¢¥Ú¡¼¥¸¤Î¾åÉô¤Ë¤½¤Î¤¿¤á¤Î¥¥ã¥ó¥Ð¥¹Á´ÂΤÎÉý¤Ë¤ï¤¿¤ë¥¹¥Ú¡¼¥¹¤¬ ³ÎÊݤµ¤ì¤Þ¤¹¡£
layout ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¤è¤êÎɤ¤°ÌÃÖ·è¤á¤ò¤·¤¿¤¤¾ì¹ç¤Ï¡¢ ¥³¥Þ¥ó¥É set origin ¤È set size ³ÆÉÁ²è¤ÇÀµ¤·¤¤°ÌÃÖ¤ËÀßÄꤹ¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set origin (112.64), set size (112.84)¡£
Îã:
set multiplot set size 0.4,0.4 set origin 0.1,0.1 plot sin(x) set size 0.2,0.2 set origin 0.5,0.5 plot cos(x) unset multiplot
¤³¤ì¤Ï¡¢cos(x) ¤Î¥°¥é¥Õ¤ò¡¢sin(x) ¤Î¾å¤ËÀѤ߽ŤͤÆɽ¼¨¤·¤Þ¤¹¡£
set size ¤È set origin ¤ÏÁ´ÂΤÎÉÁ²èÎΰè¤ò»²¾È¤·¡¢¤½¤ì¤Ï³ÆÉÁ²è¤ÇÍø ÍѤµ¤ì¤Þ¤¹¡£°Ê²¼¤â»²¾È: set term size (8)¡£ÉÁ²è¶³¦¤ò°ìÎó¤Ë·¤¨¤¿¤¤¤Ê¤é ¤Ð¡¢set margin ¥³¥Þ¥ó¥É¤Ç¡¢¶³¦¤Î³°¤Î;Çò¥µ¥¤¥º¤òƱ¤¸¥µ¥¤¥º¤Ë·¤¨¤ë ¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤½¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢°Ê²¼»²¾È: set margin (112.49)¡£Í¾Çò¥µ¥¤¥º ¤Ïʸ»ú¥µ¥¤¥ºÃ±°Ì¤ÎÀäÂÐŪ¤Ê¿ôÃÍñ°Ì¤ò»ÈÍѤ¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è ¤Ã¤Æ»Ä¤Ã¤¿¥¹¥Ú¡¼¥¹¤ËÉÁ¤«¤ì¤ë¥°¥é¥Õ¤Ïɽ¼¨¤¹¤ë¥Ç¥Ð¥¤¥¹¤Îɽ¼¨¥µ¥¤¥º¤Ë°Í¸ ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¥×¥ê¥ó¥¿¤È¥Ç¥£¥¹¥×¥ì¥¤¤Îɽ¼¨¤Ï¿ʬ°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤· ¤ç¤¦¡£
¥ª¥×¥·¥ç¥ó layout ¤Ë¤è¤ê¡¢³ÆÉÁ²è¤ÎÁ°¤Ë¤½¤ì¤¾¤ìÍ¿¤¨¤Æ¤¤¤¿ set size ¤ä set origin ¥³¥Þ¥ó¥É¤Ê¤·¤Ë¡¢Ã±½ã¤ÊÊ£¿ô¥°¥é¥Õ¤ÎÉÁ²è¤òºîÀ®¤Ç¤¤Þ¤¹¡£ ¤½¤ì¤é¤ÎÀßÄê¤Ï¼«Æ°Åª¤Ë¹Ô¤Ê¤ï¤ì¡¢¤¤¤Ä¤Ç¤â¤½¤ÎÀßÄê¤òÊѹ¹¤Ç¤¤Þ¤¹¡£ layout ¤Ç¤Ïɽ¼¨¤Ï <rows> ¹Ô¤È <cols> Îó¤Î³Ê»Ò¤Ëʬ³ä¤µ¤ì¡¢³Æ³Ê»Ò¤Ï¡¢ ¤½¤Î¸å¤Ë³¤¯Âбþ¤¹¤ë̾Á°¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¹Ô (rowsfirst)¡¢¤¢¤ë¤¤¤ÏÎó (columnsfirst) ¤¬Àè¤ËËä¤á¤é¤ì¤Æ¹Ô¤¤Þ¤¹¡£ÉÁ²è¥°¥é¥Õ¤ÎÀѤ߾夲¤Ï²¼Êý¸þ (downwards) ¤Ë¡¢¤Þ¤¿¤Ï¾åÊý¸þ (upwards) ¤Ë¿¤Ó¤ë¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ï rowsfirst ¤Ç downwards ¤Ç¤¹¡£ ¥³¥Þ¥ó¥É set multiplot next ¤È set multiplot previous ¤Ï¡¢¥ì¥¤¥¢¥¦ ¥È¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Î¤ß¤Ë´Ø·¸¤·¤Þ¤¹¡£next ¤Ï¡¢³Ê»ÒÆâ¤Î¼¡ ¤Î°ÌÃÖ¤ò¥¹¥¥Ã¥×¤·¡¢¶õÇò¤ò»Ä¤·¤Þ¤¹¡£prev ¤Ï¡¢Ä¾Á°¤ËÉÁ²è¤·¤¿°ÌÃ֤ξ Á°¤Î³Ê»Ò°ÌÃÖ¤ËÌá¤ê¤Þ¤¹¡£
³ÆÉÁ²è¤Ï scale ¤Ç¿½Ì¤ò¡¢offset ¤Ç°ÌÃÖ¤ÎÊ¿¹Ô°ÜÆ°¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£scale ¤ä offset ¤Î y ¤ÎÃͤ¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï¡¢x ¤ÎÃͤ¬¤½¤ì¤Ë»ÈÍÑ ¤µ¤ì¤Þ¤¹¡£unset multiplot ¤Ë¤è¤ê¼«Æ°ÇÛÃÖµ¡Ç½¤Ï¥ª¥Õ¤Ë¤Ê¤ê¡¢¤½¤·¤Æ set size ¤È set origin ¤ÎÃÍ¤Ï set multiplot layout ¤ÎÁ°¤Î¾õÂÖ¤Ë Éüµ¢¤µ¤ì¤Þ¤¹¡£
Îã:
set size 1,1 set origin 0,0 set multiplot layout 3,2 columnsfirst scale 1.1,0.9 [ ¤³¤³¤Ë¤Ï 6 ¤Ä¤Þ¤Ç¤ÎÉÁ²è¥³¥Þ¥ó¥É ] unset multiplot
¾å¤ÎÎã¤Ç¤Ï 6 ¤Ä¤ÎÉÁ²è¤¬ 2 Îó¤ÎÃæ¤Ë¾å¤«¤é²¼¤Ø¡¢º¸¤«¤é±¦¤Ø¤ÈËä¤á¤é¤ì¤Æ¹Ô ¤¤Þ¤¹¡£³ÆÉÁ²è¤Ï¿åÊ¿¥µ¥¤¥º¤¬ 1.1/2¡¢¿âľ¥µ¥¤¥º¤¬ 0.9/3 ¤È¤Ê¤ê¤Þ¤¹¡£
¾¤Ë¤â¡¢¤½¤Î¥ì¥¤¥¢¥¦¥ÈÆâ¤Î¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤Ë°ìÍͤʥޡ¼¥¸¥ó¤ò¥ª¥×¥·¥ç¥ó layout margins ¤È spacing ¤ÇÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï°ì½ï¤Ë »È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£margins ¤Ï¡¢³Ê»ÒÇÛÃÖ¤ÎÊ£¿ô¥°¥é¥ÕÁ´ÂΤγ°Â¦¤ËÂФ¹ ¤ë¥Þ¡¼¥¸¥ó¤òÀßÄꤷ¤Þ¤¹¡£
spacing ¤Ï¡¢ÎÙÀܤ¹¤ëÉôʬ¥°¥é¥Õ´Ö¤Î·ä´Ö¤òÍ¿¤¨¤Þ¤¹¤¬¡¢character ¤« screen ñ°Ì¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Ã±°ì¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤Ï x, y ¤ÎξÊý¤ÎÊý¸þ¤Ë»ÈÍѤµ¤ì¤Þ¤¹¤¬¡¢2 ¤Ä¤Î°Û¤Ê¤ëÃͤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
°ì¤Ä¤ÎÃͤËñ°Ì¤¬¤Ê¤±¤ì¤Ð¡¢Ä¾Á°¤Î¥Þ¡¼¥¸¥óÀßÄê¤Î¤â¤Î¤ò»ÈÍѤ·¤Þ¤¹¡£
Îã:
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 ʸ»úÉý¤Î¾ì½ê¤Ë¤¢¤ë¤è¤¦¤Ê¥ì ¥¤¥¢¥¦¥È¤òÀ¸À®¤·¤Þ¤¹¡£²¼¤Î¥Þ¡¼¥¸¥ó¤Ï 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
°Ê²¼»²¾È: remultiplot (106), new multiplots (4.9)¡£¤Þ¤¿°Ê²¼¤â»²¾È multiplot ¤Î¥Ç¥â (multiplt.dem)
½ñ¼°:
set mxtics <freq> set mxtics default set mxtics time <N> <units> unset mxtics show mxtics
¤³¤ì¤é¤Î½ñ¼°¤Ï mytics, mztics, mx2tics, my2tics, mrtics, mttics, mcbtics ¤ËÂФ·¤Æ¤âƱ¤¸¤Ç¤¹¡£
<freq> ¤Ï¡¢ÂçÌÜÀ¹¤ê´Ö¤Î¡¢¾®ÌÜÀ¹¤ê¤Ë¤è¤Ã¤Æʬ³ä¤µ¤ì¤ë¶è´Ö¤Î¿ô¤Ç¤¢¤ê¡¢¾® ÌÜÀ¹¤ê¤Î¿ô¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Ä̾ï¤ÎÀþ·Á¼´¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢2 (ÌÜ À¹¤ê 1 ¤Ä) ¤« 5 (ÌÜÀ¹¤ê 4 ¤Ä) ¤Ç¡¢¤³¤ì¤ÏÂçÌÜÀ¹¤ê¤Î´Ö³Ö¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ ¤¹¡£
default ¤ò»ØÄꤹ¤ë¤È¾®ÌÜÀ¹¤ê¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌá¤ê¤Þ¤¹¡£
set mxtics time <N> <units> ¤Ï¡¢ÂçÌÜÀ¹¤ê¤¬»þ¹ï¥â¡¼¥É¤Î¾ì¹ç¤Ë¤Î¤ßŬÍÑ ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics time (112.57.1)¡£
¼´¤¬Âпô¼´¤Ç¤¢¤ë¾ì¹ç¡¢Ê¬³ä¶è´Ö¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏͰդʿô¤Ë¥»¥Ã¥È¤µ¤ì ¤Þ¤¹ (10 ¸Ä¤ÎŤµ¤ò¸µ¤Ë¤·¤Æ)¡£<freq> ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ì¤Ð¤½¤Á¤é¤¬Í¥À褵 ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢Âпô¼´¤Ç¤ÏÄ̾ï¤Î¾®ÌÜÀ¹¤ê (Î㤨¤Ð 1 ¤«¤é 10 ¤Þ¤Ç¤Î 2, 3, ..., 8, 9 ¤Î¹ï¤ß) ¤Ï¡¢9 ¤Ä¤ÎÉôʬ¶è´Ö¤·¤«¤¢¤ê¤Þ¤»¤ó¤¬¡¢<freq> ¤ÎÀßÄê¤Ï 10 ¤È¤¹¤ë¤³¤È¤Ç¤½¤¦¤Ê¤ê¤Þ¤¹¡£
¾®ÌÜÀ¹¤ê¤òǤ°Õ¤Î°ÌÃÖ¤ËÀßÄꤹ¤ë¤Ë¤Ï¡¢("<label>" <pos> <level>, ...) ¤Î ·Á¼°¤ò set {x|x2|y|y2|z}tics ¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À¤·¡¢<label> ¤Ï ¶õ ("") ¤Ç¡¢<level> ¤ò 1 ¤Ë¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É set m{x|x2|y|y2|z}tics ¤Ï¡¢ÂçÌÜÀ¹¤ê¤¬°ìÍͤδֳ֤ξì¹ç¤Ë¤Î¤ß Ư¤¤Þ¤¹¡£¤â¤·Á´¤Æ¤ÎÂçÌÜÀ¹¤ê¤¬ set {x|x2|y|y2|z}tics ¤Ë¤è¤Ã¤Æ¼êÆ°¤Ç ÇÛÃÖ¤µ¤ì¤¿¾ì¹ç¤Ï¡¢¤³¤Î¾®ÌÜÀ¹¤ê¤Î¥³¥Þ¥ó¥É¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¼«Æ°Åª¤ÊÂçÌÜÀ¹ ¤ê¤ÎÇÛÃ֤ȼêÆ°¤Î¾®ÌÜÀ¹¤ê¤ÎÇÛÃ֤ϡ¢set {x|x2|y|y2|z}tics ¤È set {x|x2|y|y2|z}tics add ¤È¤ò»È¤¦¤³¤È¤Ç¶¦Â¸¤Ç¤¤Þ¤¹¡£
Îã:
set xtics 0, 5, 10 set xtics add (7.5) set mxtics 5
¤³¤Î¾ì¹ç¡¢ÂçÌÜÀ¹¤ê¤Ï 0,5,7.5,10¡¢¾®ÌÜÀ¹¤ê¤Ï 1,2,3,4,6,7,8,9 ¤Î¾ì½ê
set logscale y set ytics format "" set ytics 1e-6, 10, 1 set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \ "10^-4" 0.0001) set mytics 10
¤³¤Î¾ì¹ç¡¢ÂçÌÜÀ¹¤ê¤Ï»ØÄꤵ¤ì¤¿½ñ¼°¤Ç¡¢¾®ÌÜÀ¹¤ê¤ÏÂпôŪ¤ËÇÛÃÖ
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¾®ÌÜÀ¹¤ê¤Îɽ¼¨¤Ï¡¢Àþ·Á¼´¤Ç¤Ï¥ª¥Õ¤Ç¡¢Âпô¼´¤Ç¤Ï¥ª¥ó¤Ë¤Ê¤Ã ¤Æ¤¤¤Þ¤¹¡£¤½¤ÎÀßÄê¤Ï¡¢ÂçÌÜÀ¹¤ê¤ËÂФ¹¤ë axis|border ¤È {no}mirror ¤Î»ØÄê¤ò·Ñ¾µ¤·¤Þ¤¹¡£¤³¤ì¤é¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set xtics (112.123)¡£
set mxtics time <N> {seconds|minutes|hours|days|weeks|months|years}
¤³¤ì¤Ï¡¢gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤ÇƳÆþ¤µ¤ì¤¿¿·¤·¤¤¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢¾®ÌÜÀ¹¤ê¤Î¹ï¤ß¤ò¡¢ÂçÌÜÀ¹¤ê¶è´Ö¤ËÂФ¹¤ëʬ³ä°ÌÃ֤ǤϤʤ¯¡¢»þ¹ïñ °Ì¤Î¤¢¤ëÀ°¿ôÈÖ¹æ¤Î¾ì½ê¤ËÀµ³Î¤ËÇÛÃÖ¤·¤Þ¤¹¡£
ÂçÌÜÀ¹¤ê¤¬»þ¹ï¥â¡¼¥É (set xdata time ¤« set xtics time) ¤Î¾ì¹ç¤Ï¡¢ ¾®ÌÜÀ¹¤ê¤òÀ¸À®¤·¤Ê¤¤¤Î¤¬¿·¤·¤¤¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
set mxtics ¤ä set mxtics <freq> ¤Ç¡¢6 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÎµóÆ°¤ËÌá ¤»¤Þ¤¹¤¬¡¢¤³¤ì¤Ë¤Ï¾ï¤ËÌäÂê¤òÊú¤¨¤Æ¤¤¤Þ¤·¤¿¡£Î㤨¤Ð¡¢72 ǯ´Ö³Ö¤ËÂФ·¤Æ ¼«Æ°Ê¬³äµ¡Ç½¤ÏÂçÌÜÀ¹¤ê¤ò 12 ǯ´Ö³Ö¤Ë¡¢¾®ÌÜÀ¹¤ê¤ò 5 ǯ´Ö³Ö¤Ë¤·¤Æ¤·¤Þ¤Ã ¤Æ¤¤¤Þ¤·¤¿¡£
¤·¤«¤· set mxtics time 2 years ¤ò»È¤¨¤Ð¡¢Àµ³Î¤Ë 1 ǯÃÖ¤¤Îǯ»Ï¤á¤Î¤È ¤³¤í¤Ë¾®ÌÜÀ¹¤ê¹ï¤ß¤òÃÖ¤¤Þ¤¹¡£set mxtics time 1 month ¤Ï¡¢³Æ·î¤ÎÆü¿ô ¤¬Åù¤·¤¯¤Ê¤¤¤Ç¤¹¤¬¡¢1 ·î 1 Æü¡¢2 ·î 1 Æü¡¢3 ·î 1 Æü¡¢... ¤Î³Æ·î 1 Æü¤Î ¾ì½ê¤ËÀµ¤·¤¯¹ï¤ß¤òÃÖ¤¤Þ¤¹¡£
set nonlinear <axis> via f(axis) inverse g(axis) unset nonlinear <axis>
¤³¤Î¥³¥Þ¥ó¥É¤Ï¥³¥Þ¥ó¥É set link ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢2 ¤Ä¤Î¥ê¥ó¥¯¤µ¤ì¤¿¼´ ¤Î°ìÊý¤Î¤ß¤òɽ¼¨¤¹¤ëÅÀ¤¬°ã¤¤¤Þ¤¹¡£±£¤µ¤ì¤ë¼´¤ÏÀþ·Á¼´¤Î¤Þ¤Þ¤Ç¤¹¡£É½¼¨¤¹ ¤ë¼´¤Ë±è¤¦ºÂɸ¤Ï¡¢g(x) ¤òŬÍѤ·¤Æ±£¤ì¤Æ¤¤¤ë¼´¤ÎºÂɸ¤«¤é³ä¤êÅö¤Æ¤é¤ì¡¢ f(x) ¤Ïɽ¼¨¤¹¤ë¼´¤ÎºÂɸ¤ò±£¤ì¤Æ¤¤¤ëÀþ·Á¼´¤ËÂбþ¤µ¤»¤Þ¤¹¡£ÊÑ´¹¼°¤ÈµÕÊÑ ´¹¼°¤ÎξÊý¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤ì¤¬¤É¤Î¤è¤¦¤Ëµ¡Ç½¤¹¤ë¤«¤òÍý²ò¤¹¤ë¤Ë¤Ï¡¢x2 ¼´¤¬Âпô¼´¤Î¾ì¹ç¤ò¹Í¤¨¤Æ ¤ß¤Æ¤¯¤À¤µ¤¤¡£
set x2ange [1:1000] set nonlinear x2 via log10(x) inverse 10**x
¤³¤ÎÎã¤Ï¡¢set log x2 ¤ÈƱ¤¸¸ú²Ì¤òÀ¸¤ß¤Þ¤¹¡£¤³¤Î¾ì¹ç±£¤ì¤Æ¤¤¤ë¼´¤Ï¡¢ [log10(xmin):log10(xmax)] ¤ò·×»»¤¹¤ë¤³¤È¤Ç [0:3] ¤ÎÈϰϤˤʤê¤Þ¤¹¡£
ÊÑ´¹´Ø¿ô f(), g() ¤Ï¡¢ÈóÀþ·Á¼´Ëè¤ËŬÀڤʥÀ¥ß¡¼ÊÑ¿ô¤ò»È¤Ã¤ÆÄêµÁ¤¹¤ëɬÍ× ¤¬¤¢¤ê¤Þ¤¹¡£
axis: x x2 dummy variable x axis: y y2 dummy variable y axis: z cb dummy variable z axis: r dummy variable r
set xrange [-3:3] set nonlinear x via norm(x) inverse invnorm(x)
¤³¤ÎÎã¤Ï³ÎΨ¥¹¥±¡¼¥ë ("¥×¥í¥Ó¥Ã¥È") ¤Î x ¼´¤òºîÀ®¤·¡¢ÎßÀÑÀµµ¬Ê¬ÉÛ´Ø¿ô Phi(x) ¤Î¥°¥é¥Õ¤¬Àþ·Á¤Î y ¼´¤ËÂФ·¤ÆľÀþ¤È¤Ê¤ê¤Þ¤¹¡£
logit(p) = log(p/(1-p)) logistic(a) = 1. / (1. + exp(-a)) set xrange [.001 : .999] set nonlinear y via logit(y) inverse logistic(y) plot logit(x)
¤³¤ÎÎã¤Ï¥í¥¸¥Ã¥È¥¹¥±¡¼¥ë¤Î y ¼´¤òºîÀ®¤·¡¢Àþ·Á¤Î x ¼´¤ËÂФ¹¤ë logit(x) ¤Î¥°¥é¥Õ¤¬Ä¾Àþ¤Ë¤Ê¤ê¤Þ¤¹¡£
f(x) = (x <= 100) ? x : (x < 500) ? NaN : x-390 g(x) = (x <= 100) ? x : x+390 set xrange [0:1000] noextend set nonlinear x via f(x) inverse g(x) set xtics add (100,500) plot sample [x=1:100] x, [x=500:1000] x
¤³¤ÎÎã¤Ï "ÀÚÃǼ´" ¤òºîÀ®¤·¤Þ¤¹¡£x ºÂɸ¤Ïº¸¤Ë 0 ¤«¤é 100¡¢±¦¤Ë 500 ¤«¤é 1000 ¤¬Ê¤ӡ¢¤½¤Î´Ö¤Ë 10 Éý¤Î¾®¤µ¤Ê·ä´Ö¤¬¤Ç¤¤Þ¤¹¡£100 < x < 500 ¤Î´Ö ¤Î¥Ç¡¼¥¿¤ÏÉÁ²è¤µ¤ì¤º¡¢¤³¤ì¤Ï´üÂÔÄ̤ê¤ÎÆ°ºî¤ò¤·¤Þ¤¹¡£
2 ¼¡¸µ¥°¥é¥Õ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¼´ºÂɸ¡¢¥°¥é¥ÕºÂɸ (graph)¡¢¶ËºÂɸ¡¢¥¹ ¥¯¥ê¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤ÎÁȤ߹ç¤ï¤»¤Ç¤âÄêµÁ¤Ç¤¤Þ¤¹¡£ 3 ¼¡¸µ¥°¥é¥Õ¤Î¥ª¥Ö¥¸¥§¥¯¥È»ØÄê¤Ç¤Ï¡¢¥°¥é¥ÕºÂɸ¤Ï»È¤¨¤Þ¤»¤ó¡£3 ¼¡¸µ¤ÎĹ Êý·Á¤ÈÂʱߤϡ¢¥¹¥¯¥ê¡¼¥óºÂɸ¤À¤±¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
½ñ¼°:
set object <index> <object-type> <object-properties> {front|back|behind|depthorder} {clip|noclip} {fc|fillcolor <colorspec>} {fs <fillstyle>} {default} {lw|linewidth <width>} {dt|dashtype <dashtype>} unset object <index>
<object-type> ¤Ï¡¢rectangle, ellipse, circle, polygon ¤Î¤¤¤º¤ì ¤«¤Ç¤¹¡£¸Ä¡¹¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î·¿¤Ï¡¢¤½¤Î·¿¤ËÆÃͤÎÀ¼Á¤â¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤ ¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó front, back, behind ¤Ï¡¢¥°¥é¥Õ¼«¿È¤ÎÉÁ²è¤ÎÁ°¡¢¤¢¤ë¤¤ ¤Ï¸å¤Î¤É¤Á¤é¤ËÉÁ¤¯¤«¤òÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼»²¾È: layers (21)¡£ front ¤ò»ØÄꤹ¤ë¤È¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤÎÁ° (¾å) ¤ËÉÁ²è¤µ ¤ì¤Þ¤¹¤¬¡¢front ¤È»ØÄꤵ¤ì¤¿¥é¥Ù¥ë¤è¤ê¤Ï¸å¤í (²¼) ¤Ë¤Ê¤ê¤Þ¤¹¡£back ¤ò»ØÄꤹ¤ë¤È¡¢¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁÇ¡¢¤¹¤Ù¤Æ¤Î¥é¥Ù¥ë¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¡£ behind ¤Ï¡¢¼´¤ä back ¤ÎĹÊý·Á¤ò´Þ¤à¤¹¤Ù¤Æ¤Î¤â¤Î¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ ¤¹¡£¤è¤Ã¤Æ¡¢
set object rectangle from screen 0,0 to screen 1,1 behind
¤Ï¡¢¥°¥é¥Õ¤ä¥Ú¡¼¥¸Á´ÂΤÎÇطʤ˿§¤ò¤Ä¤±¤ë¤Î¤ËÍøÍѤǤ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤ÎĺÅÀ¤¬¥¹¥¯¥ê¡¼¥óºÂɸ ¤ÇÍ¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥°¥é¥Õ¶³¦¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤µ¤ì¤Þ¤¹¡£noclip ¤È ÀßÄꤹ¤ë¤È¡¢¥°¥é¥Õ¶³¦¤Ç¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥¹¥¯¥ê¡¼¥ó¥µ ¥¤¥º¤ËÂФ¹¤ë¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï¹Ô¤ï¤ì¤Þ¤¹¡£
¥ª¥Ö¥¸¥§¥¯¥È¤ÎÅɤêÄÙ¤·¤Î¿§¤Ï <colorspec> ¤Ç»ØÄꤷ¤Þ¤¹¡£fillcolor ¤Ï fc ¤È¾Êά¤Ç¤¤Þ¤¹¡£ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Ï <fillstyle> ¤Ç»ØÄꤷ¤Þ¤¹¡£¾ÜºÙ ¤Ï¡¢°Ê²¼»²¾È: colorspec (20.1), fillstyle (112.86.4)¡£¥¡¼¥ï¡¼¥É default ¤ò»ØÄꤹ ¤ë¤È¡¢¤³¤ì¤é¤Î°À¤ÏÉÁ²è¤¬¼ÂºÝ¤Ë¹Ô¤ï¤ì¤ë¤È¤¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¼õ¤±·Ñ ¤®¤Þ¤¹¡£°Ê²¼»²¾È: set style rectangle (112.86.10)¡£
set object <index> rectangle {from <position> {to|rto} <position> | center <position> size <w>,<h> | at <position> size <w>,<h>}
ĹÊý·Á¤Î°ÌÃ֤ϡ¢ÂгѤ˸þ¤«¤¤¹ç¤¦ 2 ¤Ä¤ÎĺÅÀ (º¸²¼¤È±¦¾å) ¤Î°ÌÃÖ¡¢¤¢¤ë ¤¤¤ÏÃæ¿´ÅÀ¤Î°ÌÃ֤Ȳ£Éý (<w>) ¤È½ÄÉý (<h>) ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç ¤âÅÀ¤Î°ÌÃ֤ϡ¢¼´¤ÎºÂɸ (first, second)¡¢¥°¥é¥ÕÎΰèÆâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ¤Þ¤¹ (°Ê²¼»²¾È: coordinates (11))¡£¥ª¥×¥·¥ç¥ó at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£
Îã:
# ºÂɸ¼´¤Ç°Ï¤Þ¤ì¤¿ÎΰèÁ´ÂΤÎÇطʤò¿å¿§¤Ë set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back set object 1 rect fc rgb "cyan" fillstyle solid 1.0
# º¸²¼³Ñ¤¬ 0,0, ±¦¾å³Ñ¤¬ 2,3 ¤ÎÀÖ¤¤»Í³Ñ¤ò°ì¤ÄÃÖ¤¯ set object 2 rect from 0,0 to 2,3 fc lt 1
# ÀĤ¤¶³¦¤Î¶õ (ÅɤêÄÙ¤µ¤Ê¤¤) ĹÊý·Á¤òÃÖ¤¯ set object 3 rect from 0,0 to 2,3 fs empty border rgb "blue"
# ĺÅÀ¤Ï°ÜÆ°¤·¤Ê¤¤¤Þ¤Þ¡¢ÅɤêÄÙ¤·¤È¿§¤ò¥Ç¥Õ¥©¥ë¥È¤ËÊѹ¹ set object 2 rect default
¥¹¥¯¥ê¡¼¥óºÂɸ¤ÇĹÊý·Á¤Î³Ñ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤Ï¸½ºß¤Î¥°¥é¥ÕÎΰè¤Îü¤ò±Û ¤¨¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢¤½¤Î¾¤Î¾ì¹ç¤ÏĹÊý·Á¤Ï¥°¥é¥ÕÆâ¤Ë¼ý¤Þ¤ë¤è¤¦¤Ë¥¯¥ê ¥Ã¥Ô¥ó¥°¤µ¤ì¤Þ¤¹¡£
set object <index> ellipse {at|center} <position> size <w>,<h> {angle <orientation>} {units xy|xx|yy} {<other-object-properties>}
ÂʱߤΰÌÃ֤ϡ¢Ãæ¿´¤ò»ØÄꤷ¡¢¤½¤Î¸å¤í¤ËÉý¤È¹â¤µ (¼ç¼´¤ÈÉû¼´) ¤ò»ØÄꤷ¤Þ ¤¹¡£¥¡¼¥ï¡¼¥É at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£Ãæ¿´¤Î°ÌÃ֤λØÄê¤Ë¤Ï¡¢ ¼´¤ÎºÂɸ (first, second)¡¢¥°¥é¥ÕÎΰèÆâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê ¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ¤Þ¤¹ (°Ê²¼»²¾È: coordinates (11))¡£ ¼ç¼´¤ÈÉû¼´¤ÎŤµ¤Ï¡¢¼´¤ÎºÂɸ¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Âʱߤθþ¤ (orientation) ¤Ï¡¢¿åÊ¿¼´¤ÈÂʱߤμ缴¤È¤Î´Ö¤Î³ÑÅ٤ǻØÄꤷ¤Þ¤¹¡£³ÑÅÙ¤òÍ¿ ¤¨¤Ê¤±¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÂʱߤθþ¤¤¬Âå¤ï¤ê¤Ë»È¤ï¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£¥¡¼¥ï¡¼¥É units ¤Ï¡¢Âʱߤμ´¤Î½Ì¼Ü¤ÎÀ©¸æ¤Ë»È ÍѤ·¤Þ¤¹¡£units xy ¤Ï¡¢¼ç¼´¤Ï x ¼´¤Îñ°Ì¤Ç¡¢Éû¼´¤Ï y ¼´¤Îñ°Ì¤Ç·×»» ¤·¤Þ¤¹¤¬¡¢units xx ¤Ïξ¼´¤È¤â x ¼´¤Îñ°Ì¤Ç½Ì¼Ü¤·¡¢units yy ¤Ïξ¼´ ¤È¤â y ¼´¤Îñ°Ì¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï xy ¤Ç¤¹¤¬¡¢set style ellipse units ¤ÎÀßÄê¤Ç¤¤¤Ä¤Ç¤âÊÑ ¹¹¤Ç¤¤Þ¤¹¡£
Ãí°Õ: x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬Åù¤·¤¯¤Ê¤¤¾ì¹ç (¤½¤·¤Æ units xy ¤Î¾ì¹ç)¡¢²ó ž¸å¤Î¼ç¼´¤ÈÉû¼´¤ÎÈæ¤ÏÀµ¤·¤¯¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
set object ellipse size <2r>,<2r> ¤È set object circle <r> ¤È¤Ï¡¢ °ìÈ̤ˤÏƱ¤¸¤³¤È¤Ë¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£circle ¤ÎȾ·Â¤Ï¾ï ¤Ë x ¼´¤Îñ°Ì¤Ç·×¤é¤ì¡¢¤è¤Ã¤Æ x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬°ã¤Ã¤¿¤ê¡¢ÉÁ²è¤Î¥¢¥¹ ¥Ú¥¯¥ÈÈ椬 1 ¤Ç¤Ê¤¯¤Æ¤â¡¢¾ï¤Ë±ß¤¬À¸À®¤µ¤ì¤Þ¤¹¡£units ¤¬ xy ¤ËÀßÄê ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢'set object ellipse' ¤Ç¤Ï¡¢ºÇ½é¤Î <2r> ¤Ï x ¼´¤Îñ°Ì¤Ç¡¢ ¸å¤í¤Î <2r> ¤Ï y ¼´¤Îñ°Ì¤Ç·×¤é¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬Æ± ¤¸¤Ç¡¢¤«¤ÄÉÁ²è¤Î¥¢¥¹¥Ú¥¯¥ÈÈ椬 1 ¤Ç¤¢¤ë¾ì¹ç¤Î¤ß±ß¤òÀ¸À®¤¹¤ë¤³¤È¤ò°ÕÌ£ ¤·¤Þ¤¹¡£¤·¤«¤·¡¢units ¤ò xx ¤ä yy ¤Ë¥»¥Ã¥È¤¹¤ì¤Ð¡¢¥³¥Þ¥ó¥É set object ¤Ç»ØÄꤷ¤¿Ä¾·Â¤ÏƱ¤¸Ã±°Ì¤Ç·×»»¤µ¤ì¤ë¤Î¤Ç¡¢ÂʱߤÏÀµ¤·¤¤¥¢ ¥¹¥Ú¥¯¥ÈÈæ¤ò»ý¤Á¡¢ÉÁ²è¤ò¥ê¥µ¥¤¥º¤·¤Æ¤â¤½¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£
set object <index> circle {at|center} <position> size <radius> {arc [<begin>:<end>]} {no{wedge}} {<other-object-properties>}
±ß¤Î°ÌÃ֤ϡ¢Ãæ¿´¤ò»ØÄꤷ¡¢¤½¤Î¸å¤í¤ËȾ·Â¤ò»ØÄꤷ¤Þ¤¹¡£¥¡¼¥ï¡¼¥É at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢°ÌÃÖ¤ÈȾ·Â¤ÏǤ°Õ¤ÎºÂɸ·Ï ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: coordinates (11)¡£3 ¼¡¸µ¥°¥é¥Õ¤Î±ß¤Ë¤Ï¥°¥é¥ÕºÂ ɸ¤Ï»È¤¨¤Þ¤»¤ó¡£¤½¤Î¤É¤Î¾ì¹ç¤Ç¤â¡¢È¾·Â¤Ï¼´¡¢¥°¥é¥Õ¡¢¥¹¥¯¥ê¡¼¥ó¤Î¿åÊ¿Êý ¸þ¤Î½Ì¼Ü¤ËÂФ·¤Æ·×¤é¤ì¡¢¿åÊ¿Êý¸þ¤È¿âľÊý¸þ¤Î½Ì¼Ü¤Ë¤º¤ì¤¬¤¢¤Ã¤Æ¤â¡¢·ë²Ì ¤¬¾ï¤ËÀµ¤·¤¯±ß¤Ë¤Ê¤ë¤è¤¦¤Ëľ¤µ¤ì¤Þ¤¹¡£±ß¤ò¥°¥é¥Õ¤ÎºÂɸ¤ÇÉÁ¤¤¿¤¤ (¤Ä¤Þ ¤ê¿åÊ¿¼´¤È¿âľ¼´¤Î¥¹¥±¡¼¥ë¤¬°ã¤¦¾ì¹ç¤Ë¤Ï¤½¤ì¤¬ÂʱߤȤ·¤Æɽ¼¨¤µ¤ì¤ë¤è¤¦ ¤Ë¤·¤¿¤¤) ¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë set object ellipse ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢´°Á´¤Ê±ß¤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó¤Î arc ¤Ë³«»Ï³Ñ¤È ½ªÎ»³Ñ¤òÅÙ¤òñ°Ì¤È¤·¤Æ»ØÄꤹ¤ë¤È±ß¸Ì¤òÉÁ²è¤·¤Þ¤¹¡£±ß¸Ì¤Ï¡¢¾ï¤ËÈ¿»þ·×²ó ¤ê¤ËÉÁ¤«¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È: set style circle (112.86.9), set object ellipse (112.62.2)¡£
set object <index> polygon from <position> to <position> ... {to <position>}
¤Þ¤¿¤Ï
from <position> rto <position> ... {rto <position>}
¿³Ñ·Á¤Î°ÌÃ֤ϡ¢ÄºÅÀ¤Î°ÌÃÖ¤ÎÎó¤òÍ¿¤¨¤ë¤³¤È¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ì¤é¤Ë¤Ï¡¢ Ǥ°Õ¤ÎºÂɸ·Ï¤¬»È¤¨¤Þ¤¹¡£ÁêÂÐŪ¤ÊºÂɸ (rto) ¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¡¢¤½¤ÎºÂɸ ·Ï¤ÏÁ°¤ÎĺÅÀ¤ÈƱ¤¸ºÂɸ·Ï¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: coordinates (11)¡£
Îã:
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
3 ¼¡¸µÂ¿³Ñ·Á¤Ç¤Ï¤Ê¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤³¤Îµ¡Ç½¤òÀßÄꤹ¤ë¤È¡¢¤½¤ì¤Ï¿ʬÁ´¤¯ ÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£
½ñ¼°:
set offsets <left>, <right>, <top>, <bottom> unset offsets show offsets
³Æ¥ª¥Õ¥»¥Ã¥È¤ÏÄê¿ô¡¢¤Þ¤¿¤Ï¿ô¼°¤¬»È¤¨¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 0 ¤Ç¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢º¸±¦¤Î¥ª¥Õ¥»¥Ã¥È¤Ï x1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¡¢¾å²¼¤Î¥ª¥Õ ¥»¥Ã¥È¤Ï y1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¥¡¼¥ï¡¼¥É "graph" ¤òÍѤ¤¤ë¤³ ¤È¤ÇÁ´¥°¥é¥Õ¥µ¥¤¥º¤ËÂФ¹¤ë³ä¹ç¤È¤·¤Æ¥ª¥Õ¥»¥Ã¥È¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ ÈóÀþ·Á¼´ (nonlinear axes) ¤ËÂФ·¤Æ¤Ï¡¢"graph" ¤Ë¤è¤ë¥ª¥Õ¥»¥Ã¥È¤Î¤ß²Äǽ ¤Ç¤¹¡£
Àµ¤Î¥ª¥Õ¥»¥Ã¥È¤ÎÃͤϡ¢¼´¤ÎÈϰϤò»ØÄꤵ¤ì¤¿Êý¸þ¤Ø¿¤Ð¤·¤Þ¤¹¡£Î㤨¤ÐÀµ¤Î ²¼Êý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤Ï y ¤ÎºÇ¾®Ãͤò¤è¤ê¾®¤µ¤ÊÃͤˤ·¤Þ¤¹¡£Éé¤Î¥ª¥Õ¥»¥Ã¥È Ãͤϡ¢¼«Æ°½Ì¼Ü¤È¥¯¥ê¥Ã¥Ô¥ó¥°¤ËÂФ·¤Æ°¤¯±Æ¶Á¤·¤Þ¤¹¡£
Îã:
set autoscale noextend set offsets graph 0.05, 0, 2, 2 plot sin(x)
¤³¤Î sin(x) ¤Î¥°¥é¥Õ¤Î y ¤ÎÈÏ°Ï¤Ï [-3:3] ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì¤Ï¡¢´Ø¿ô¤Î y ¤ÎÈÏ°Ï¤Ï [-1:1] ¤Ë¼«Æ°½Ì¼Ü¤µ¤ì¤Þ¤¹¤¬¡¢¿âľÊý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤¬Ã¼¤Ë¤½¤ì¤¾ ¤ì 2 ¤òÄɲ乤뤿¤á¤Ç¤¹¡£x ¤ÎÈÏ°Ï¤Ï [-11:10] ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ç¥Õ ¥©¥ë¥È¤¬ [-10:10] ¤Ç¡¢º¸¤ËÁ´ÈϰϤΠ0.05 ¤Î³ä¹çʬ¹¤²¤é¤ì¤ë¤¿¤á¤Ç¤¹¡£
½ñ¼°:
set origin <x-origin>,<y-origin>
set output {"<filename>"} unset output show output
ÈóÂÐÏ÷¿½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÀ¸À®¤·¤¿¥°¥é¥Õ¤Ï stdout ¤ËÁ÷¤ê¤Þ ¤¹¡£¥³¥Þ¥ó¥É set output ¤Ï¡¢¤½¤Î½ÐÎϤò»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤ä¥Ç¥Ð¥¤¥¹¤Ë¥ê ¥À¥¤¥ì¥¯¥È¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ç³«¤¤¤¿¥Õ¥¡¥¤¥ë¤Ï¡¢¼¡¤Î set/unset output ¥³¥Þ¥ó¥É¡¢¤Þ¤¿¤Ï¼¡¤Î½ÐÎÏ·Á¼°¤ÎÊѹ¹¡¢¤Þ¤¿¤Ï gnuplot ¤ò½ªÎ»¤¹¤ë¤Þ ¤Ç³«¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ÂÐÏ÷¿½ÐÎÏ·Á¼°¤Ç¤Ï¡¢set output ¤Ï̵»ë¤·¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¥Õ¥¡¥¤¥ë̾¤ò¾Êά¤·¤¿¾ì¹ç¡¢
¤½¤Î¥³¥Þ¥ó¥É¤Ï unset output ¤ÈƱ¤¸¤Ë¤Ê¤ê¡¢¤½¤ì¤ÏľÁ°¤Î set output ¤Ç³«¤¤¤¿Ç¤°Õ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÊĤ¸¡¢¿·¤·¤¤½ÐÎÏ¤Ï stdout ¤ËÁ÷¤ê¤Þ¤¹¡£
set terminal ¤È set output ¤ÎξÊý¤ò»ØÄꤹ¤ë¾ì¹ç¡¢set terminal ¤ò Àè¤Ë»ØÄꤹ¤ëÊý¤¬°ÂÁ´¤Ç¤¹¡£¤½¤ì¤Ï¡¢¤¢¤ë¼ï¤Î terminal ¤Ç¤Ï¡¢OS ¤¬É¬Í×¤È ¤¹¤ë¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£Î㤨¤Ð¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ËÂÐ ¤·¤ÆÊÌ¡¹¤Î open ¥³¥Þ¥ó¥É¤òɬÍפȤ¹¤ë¤è¤¦¤Ê OS ¤Ê¤É¤¬¤½¤ì¤Ë³ºÅö¤·¤Þ¤¹¡£
¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È¤¹¤ë´Ä¶¤Ç¤Ï¡¢¥Ñ¥¤¥×½ÐÎϤâÍÍѤǤ¹¡£Î㤨¤Ð°Ê²¼¤ÎÄ̤ê¤Ç ¤¹:
set output "|lpr -Plaser filename" set term png; set output "|display png:-"
MS-DOS ¤Ç¤Ï¡¢set output "PRN" ¤È¤¹¤ë¤Èɸ½à¤Î¥×¥ê¥ó¥¿¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£
set overflow {float | NaN | undefined} unset overflow
gnuplot ¤Î¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï¡¢64 ¥Ó¥Ã¥ÈÀ°¿ô±é»»¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢
2^
53 ¤«¤é 2^
63 (¤ª¤ª¤Þ¤«¤Ë¤Ï 10^
16 ¤«¤é 10^
19) ¤ÎÀ°¿ôɾ²Á¤ÎÊý¤¬¡¢IEEE
754 ¤ÎÉâÆ°¾®¿ô±é»»¤ò»ÈÍѤ¹¤ëɾ²Á¤è¤ê¤âÀºÅ٤ι⤤ÃͤòÊÝ»ý¤¹¤ë¤³¤È¤ò°ÕÌ£
¤·¤Þ¤¹¡£¤·¤«¤· IEEE ÉâÆ°¾®¿ôɽ¸½¤Ï¡¢ÀºÅ٤ϵ¾À·¤Ë¤¹¤ëÂå¤ï¤ê¤Ë¡¢¤ª¤ª¤Þ¤«
¤Ë¤Ï [-10^
307 : 10^
307] ¤ÎÁ´ÈϰϤò¥«¥Ð¡¼¤·¤Þ¤¹¤¬¡¢À°¿ô±é»»¤Ï¡¢¤½¤Î·ë²Ì
¤¬ [-2^
63 : 2^
63] ¤ÎÈϰϳ°¤Ë¤Ê¤ë¾ì¹ç¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤·¤Þ¤¹¡£¤½¤Î¥ª¡¼¥Ð
¡¼¥Õ¥í¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ë²¿¤ò¤µ¤»¤ë¤«¤Ï¥³¥Þ¥ó¥É set overflow ¤Ë¤è¤êÀ©¸æ
¤Ç¤¤Þ¤¹¡£¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
set overflow ¤Ï¡¢set overflow float ¤ÈƱ¤¸¤Ç¡¢·ë²Ì¤òÀ°¿ô¤È¤·¤ÆÊÖ¤¹ Âå¤ï¤ê¤Ë¼Â¿ôÃͤȤ·¤ÆÊÖ¤·¤Þ¤¹¡£¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
¥³¥Þ¥ó¥É unset overflow ¤Ï¡¢À°¿ô±é»»¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ò̵»ë¤¹¤ë¤è¤¦¤Ë ¤·¤Þ¤¹¡£¥¨¥é¡¼¤Ï½Ð¤Þ¤»¤ó¡£32 ¥Ó¥Ã¥ÈÀ°¿ô±é»»¤·¤«¤Ç¤¤Ê¤¤´Ä¶¤Ç¡¢5.4 ¤è ¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤ÎµóÆ°¤Ë¶á¤Å¤±¤¿¤¤¾ì¹ç¤Ï¡¢¤³¤ì¤ò»ÈÍѤ¹¤ë¤È ¤¤¤¤¤Ç¤·¤ç¤¦¡£
¥³¥Þ¥ó¥É reset ¤Ï¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼½èÍý¤Î¾õÂ֤˱ƶÁ¤òÍ¿¤¨¤Þ¤»¤ó¡£
Á°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢32 ¥Ó¥Ã¥È±é»»¤ËÀ©¸Â¤µ¤ì¡¢À°¿ô¥ª¡¼¥Ð¡¼¥Õ¥í ¡¼¤Ï̵»ë¤·¤Æ¤¤¤Þ¤·¤¿¡£¤·¤«¤·¡¢ÁȤ߹þ¤ß±é»»¤Î°ìÉô¤Ï¡¢À°¿ô°ú¿ô¤òÍ¿¤¨¤Æ¤â ´°Á´¤ËÀ°¿ô±é»»¤ò¹Ô¤¦¤È¤Ï¸Â¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ë¤Ï¡¢»Ø¿ô ±é»» N**M ¤ä¡¢Ï¤α黻 (°Ê²¼»²¾È: summation (15.5)) ¤Ê¤É¤¬´Þ¤Þ¤ì¤Þ¤¹¡£¤³¤ì ¤é¤Î±é»»¤Ï¡¢¸½ºß¤ÏÀ°¿ô°ú¿ô¤òÍ¿¤¨¤¿¾ì¹ç¤ÏÀ°¿ôÃͤòÊÖ¤·¡¢¤½¤ì¤é¤òÆâºßŪ¤Ë ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î±Æ¶Á¤ò¼õ¤±¤ä¤¹¤¯¤¹¤ë¤³¤È¤Ç set overflow ¤Î¾õÂ֤˻ÙÇÛ ¤µ¤ì¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
^
63 : 2^
63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í
¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤ÏÂå¤ï¤ê¤ËÉâÆ°¾®¿ôÃͤȤ·¤ÆÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼
¤È¤·¤Æ¤Ï°·¤ï¤ì¤Þ¤»¤ó¡£
Îã:
gnuplot> set overflow float gnuplot> A = 2**62 - 1; print A, A+A, A+A+A 4611686018427387903 9223372036854775806 1.38350580552822e+19
^
63 : 2^
63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í
¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤Ï NaN (Èó¿ô) ¤òÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼¤È¤·¤Æ¤Ï°·
¤ï¤ì¤Þ¤»¤ó¡£
Îã:
gnuplot> set overflow NaN gnuplot> print 10**18, 10**19 1000000000000000000 NaN
^
63 : 2^
63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í
¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤Ï̤ÄêµÁÃͤȤʤê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼¤È¤·¤Æ°·¤ï¤ì¤Þ
¤¹¡£
Îã:
gnuplot> set overflow undefined gnuplot> A = 10**19 ^ undefined value
+ - * / **
¤È¡¢ÁȤ߹þ¤ß¤Îϱ黻 sum ¤Ë±Æ¶Á¤·¤Þ¤¹¡£
¤³¤ì¤é¤Î±é»»¤Ï¤¹¤Ù¤Æ¡¢°ú¿ô¤¬¤¹¤Ù¤ÆÀ°¿ô¤Ê¤é¤Ð¡¢¤½¤Îɾ²Á¤Ç¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ ¤¬µ¯¤¤Ê¤¤¸Â¤ê¡¢À°¿ôÃͤηë²Ì¤òÊÖ¤·¤Þ¤¹¡£
set overflow ¤Ï¡¢°Ê²¼¤ÎÏÀÍý±é»»¡¢¥Ó¥Ã¥È±é»»¤Ë¤Ï±Æ¶Á¤·¤Þ¤»¤ó¡£
<< >> | ^ &
ϤÎɾ²Á¤Î²áÄø¤Î¤É¤³¤«¤Ç¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¬µ¯¤¤¿¾ì¹ç¤Ï¡¢ set overflow float ¤È¤¹¤ë¤È¡¢ºÇ½ªÅª¤ÊϤ¬À°¿ô¤ÎÀ©¸ÂÈÏ°ÏÆâ¤Ë¤ª¤µ¤Þ¤ë ¾ì¹ç¤Ç¤¢¤Ã¤Æ¤â¡¢¼Â¿ôÃͤòÊÖ¤¹¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
½ñ¼°:
set palette set palette { { gray | color } { gamma <gamma> } { rgbformulae <r>,<g>,<b> | defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) } | file '<filename>' {datafile-modifiers} | colormap <colormap-name> | functions <R>,<G>,<B> } { cubehelix {start <val>} {cycles <val>} {saturation <val>} } { viridis } { model { RGB | CMY | HSV {start <radians>} } } { positive | negative } { nops_allcF | ps_allcF } { maxcolors <maxcolors> } }
¥Ñ¥ì¥Ã¥È¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÊýË¡¤ÇÄêµÁ¤Ç¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤Î¤Ê¤¤ set palette ¤Ï¡¢¥Ç¥Õ¥©¥ë¥ÈÃͤËÌᤷ¤Þ¤¹¡£
set palette negative ¤Ï¡¢¥Ñ¥ì¥Ã¥È¤ÎÊý¸þ¤òµÕž¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ set palette viridis negative ¤Ï¡¢ÀĤ«¤é²«¿§¤Ç¤Ï¤Ê¤¯¡¢²«¿§¤«¤éÀĤؤΠ¥°¥é¥Ç¡¼¥·¥ç¥ó¤òºîÀ®¤·¤Þ¤¹¡£
set palette gray ¤Ï¡¢³¥¿§³¬Ä´¤Î¥Ñ¥ì¥Ã¥È¤ËÀÚ¤êÂؤ¨¤Þ¤¹¡£ set palette color ¤ÏºÇ¤âºÇ¶á¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ËÌᤷ¤Þ¤¹¡£
pm3d ¥«¥é¡¼¶ÊÌ̤Ǥϡ¢³ÆÈù¾®»ÍÊÕ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃͤò¡¢ÈÏ °Ï [min_z, max_z] ¤«¤é³¥¿§³¬Ä´ÃͤÎÈÏ°Ï (¾ï¤Ë [0:1]) ¤Ø¤Î¼ÌÁü¤ÇÊÑ´¹¤¹¤ë ¤³¤È¤Ë¤è¤ê¡¢¤½¤Î»ÍÊÕ·Á¤Î³¥¿§³¬Ä´Ãͤ¬ÆÀ¤é¤ì¤Þ¤¹¡£¥Ñ¥ì¥Ã¥È¤Ï¡¢¤½¤Î³¥¿§³¬ Ä´Ãͤ«¤é RGB ¿§¤Ø¤Î¼ÌÁü¤Ç¤¹¡£
¥Ñ¥ì¥Ã¥È¿§¤ò¡¢ÌÀ¼¨Åª¤Ê¿§»ØÄê¤Ç¤â¸ÀµÚ¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: colorspec (20.1))¡£ ¤³¤ì¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥È¤«¥é¥Ù¥ë¤Ë¥Ñ¥ì¥Ã¥È¿§¤ò³ä¤êÅö¤Æ¤ë¤È¤¤ËÊØÍø¤Ç¤¹¡£
¥Ñ¥ì¥Ã¥È¤Ï¡¢3 ¼ïÎà¤Î¿§¶õ´Ö RGB, CMY, HSV ¤Î¤¤¤º¤ì¤Ç¤âÄêµÁ¤Ç¤¤Þ¤¹¡£°Ê ²¼»²¾È: set palette model (112.67.11)¡£ ¤¤¤º¤ì¤Î¿§¶õ´Ö¤Ç¤â¡¢¤½¤Î¿§À®Ê¬¤Ï¤¹¤Ù¤Æ [0,1] ¤ÎÈϰϤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
set palette rgbformulae <function 1>, <function 2>, <function 3>
¤³¤Î̾Á°¤È¤Ï´Ø·¸¤Ê¤¯¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏÁ´¤Æ¤Î¿§¶õ´Ö¤ËŬÍѤµ¤ì¤Þ¤¹¡£ ¤¢¤Ê¤¿¤Ï¡¢³Æ¿§À®Ê¬¤ËÂФ·¤Æ¡¢¤¢¤é¤«¤¸¤áÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë 36 ¸Ä¤Î³ä¤êÅö¤Æ´Ø ¿ô¤Î¤¦¤Á¤Î°ì¤Ä¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Í¸ú¤Ê³ä¤êÅö¤Æ´Ø¿ô¤Î°ìÍ÷¤Ï¡¢ show palette rgbformulae ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢ set palette rgbformulae 7,5,15 ¤Ç¤¹¡£RGB ¤Î¿§¶õ´Ö¤Ç¤Ï¡¢¤³¤ì¤Ï 7 È֤Π´Ø¿ô¤òÀÖ¤ÎÀ®Ê¬¤Î¼ÌÁü¤Ë»ÈÍѤ·¡¢5 È֤δؿô¤òÎÐÀ®Ê¬¤Î¼ÌÁü¡¢15 È֤δؿô¤ò ÀÄÀ®Ê¬¤Î¼ÌÁü¤Ë»ÈÍѤ·¤Þ¤¹¡£´Ø¿ôÈÖ¹æ¤È¤·¤ÆÉé¤ÎÃͤò»ÈÍѤ¹¤ë¤È¡¢¤½¤ì¤Ï³ä¤ê Åö¤Æ¤òµÕ¡¢¤¹¤Ê¤ï¤Á f(gray) ¤Ç¤Ê¤¯¡¢f(1-gray) ¤Î¼ÌÁü¤Ë¤è¤ëÀ®Ê¬¤Ë¤·¤Þ¤¹¡£
7,5,15 ... ¥Ç¥Õ¥©¥ë¥È (¹õ-ÀÄ-ÀÖ-²«) 3,11,6 ... ÎÐ-ÀÖ-»ç 23,28,3 ... ³¤ (ÎÐ-ÀÄ-Çò) 21,22,23 ... ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò) 30,31,32 ... ¹õ-ÀÄ-»ç-²«-Çò 33,13,10 ... Æú (ÀÄ-ÎÐ-²«-ÀÖ) 34,35,36 ... AFM ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò)
HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È:
3,2,2 ... ÀÖ-²«-ÎÐ-¿å¿§-ÀÄ-»ç-ÀÖ
½ñ¼°:
set palette defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }
¤³¤³¤Ç N ¡æ 2 ¤Ç¡¢<grayN> ¤Ï [0,1] ¤Ë³ä¤êÅö¤Æ¤ë³¥¿§ÃͤǤ¹¡£¤½¤ì¤ËÂбþ ¤¹¤ë RGB ¿§ <colorN> ¤Ï¡¢3 ¼ïÎà¤ÎÊýË¡¤Ç»ØÄê¤Ç¤¤Þ¤¹:
<color> := { <r> <g> <b> | '<color-name>' | '#rrggbb' }
ÀÖ¡¢ÎС¢ÀĤËÂбþ¤¹¤ë¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿ 3 ¤Ä¤ÎÃÍ (¤½¤ì¤¾¤ì [0,1] Æâ)¡¢°ú ÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿¿§Ì¾¡¢¤Þ¤¿¤Ï°úÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿ X ·Á¼°¤Î»ØÄêÊý¼°¡¢¤Î¤¤ ¤º¤ì¤«¤Ç¤¹¡£¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÄêµÁ¤Ç¤Ï¡¢¤³¤ì¤é¤Î 3 ¼ï¤Î·¿¤ò¼«Í³¤ËÁÈ¤ß¹ç ¤ï¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬¡¢¿§¶õ´Ö¤È¤·¤Æ RGB ¤Ç¤Ê¤¤¤â¤Î¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¿§ ̾ "red" ¤Ï¾¯¤·°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£»ÈÍѤǤ¤ë¿§Ì¾¤Ï show colornames ¤Ç¤½¤Î°ìÍ÷¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
<gray> ¤ÎÃͤϼ¿ô¤Î¾º½ç¤Ëʤ٤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤½¤ÎÎó¤ÎÃͤϼ«Æ°Åª¤Ë [0,1] ¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£
¥«¥Ã¥³¤Ä¤¤Î¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÄêµÁ¤Ê¤·¤Ç set palette defined ¤È¤·¤¿¾ì ¹ç¡¢RGB ¿§¶õ´Ö¤Ë¤·¡¢¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤¿¥Õ¥ë¥¹¥Ú¥¯¥È¥ë¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò »ÈÍѤ·¤Þ¤¹¡£¥°¥é¥Ç¡¼¥·¥ç¥ó¤òɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»È ÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
³¥¿§¤Î¥Ñ¥ì¥Ã¥È (Ìò¤ËΩ¤¿¤Ê¤¤¤¬¶µ·±Åª¤Ê) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette model RGB set palette defined ( 0 "black", 1 "white" )
ÀÄ-²«-À֤Υѥì¥Ã¥È (Á´¤Æ¤¬Åù²Á¤Î) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette defined ( 0 "blue", 1 "yellow", 2 "red" ) set palette defined ( 0 0 0 1, 1 1 1 0, 2 1 0 0 ) set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" )
HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥¹¥Ú¥¯¥È¥ë:
set palette model HSV set palette defined ( 0 0 1 1, 1 1 1 1 ) set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1)
Àְʳ°¤Î¤¢¤ë¿§Áê¤Ç´¬¤¿Ê¤á¤¿ HSV ¥Õ¥ë¥«¥é¡¼¥¹¥Ú¥¯¥È¥ë
set palette model HSV start 0.15 set palette defined ( 0 0 1 1, 1 1 1 1 )
Åù´Ö³Ö¤Ê¾¯¤·¤Î¿§¤À¤±¤Î¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette model RGB maxcolors 4 set palette defined ( 0 "yellow", 1 "red" )
'¸òÄÌ¿®¹æ' (³ê¤é¤«¤Ç¤Ï¤Ê¤¯ gray = 1/3, 2/3 ¤ÇÄ·¤Ó¤ò»ý¤Ä):
set palette model RGB set palette defined (0 "dark-green", 1 "green", \ 1 "yellow", 2 "dark-yellow", \ 2 "red", 3 "dark-red" )
set palette functions <f1(gray)>, <f2(gray)>, <f3(gray)>
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢set palette rgbformulae ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢³Æ¿§À®Ê¬¤Ë ÂФ·¤Æ¡¢ÄêµÁºÑ¤ß¤Î´Ø¿ôÈÖ¹æ¤ò»ØÄꤹ¤ëÂå¤ï¤ê¤Ë¼ÂºÝ¤Î´Ø¿ô¤òÍ¿¤¨¤ë¤³¤È¤¬°ã ¤¤¤Þ¤¹¡£³Æ´Ø¿ô¤Î¥À¥ß¡¼ÊÑ¿ô¤¬É¬Íפʤ顢¤½¤ì¤Ï "gray" ¤È¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ ¤»¤ó¡£´Ø¿ô¤Ï¡¢[0,1] ¤ÎÈϰϤΠgray ¤ÎÃͤò¡¢[0,1] Æâ¤ÎÃͤ˼ÌÁü¤·¤Ê¤ì¤Ð¤Ê ¤ê¤Þ¤»¤ó¡£
Îã:
¥Õ¥ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette model HSV functions gray, 1, 1
¹õ¤«¤é¶â¿§¤Ø¤ÎÎɤ¤¥Ñ¥ì¥Ã¥È:
set palette model RGB functions 1.1*gray**0.25, gray**0.75, 0
¥¬¥ó¥ÞÊäÀµ¤ÎÇò¹õ¤Î¥Ñ¥ì¥Ã¥È:
gamma = 2.2 map(gray) = gray**(1./gamma) set palette model RGB functions map(gray), map(gray), map(gray)
D A Green (2011) http://arxiv.org/abs/1108.5083
start ¤Ï¡¢¿§Áê´Ä¤Ë±è¤Ã¤¿³«»ÏÅÀ¤ò¥é¥¸¥¢¥óñ°Ì¤Ç·èÄꤷ¤Þ¤¹¡£ cycles ¤Ï¡¢¥Ñ¥ì¥Ã¥È¤ÎÈϰϤòÅϤäƿ§Áê´Ä¤ò²¿²ó²ó¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£ saturation (ºÌÅÙ) ¤¬Â礤¤¤È¡¢¤è¤ê¤¢¤¶¤ä¤«¤Ê¿§¤Ë¤Ê¤ê¤Þ¤¹¡£1 ¤è¤êÂç¤ ¤¤ºÌÅ٤ϡ¢¸Ä¡¹¤Î RGB À®Ê¬¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¡¢¸÷ÅÙ¤ÏñĴ¤Ç¤Ï ¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£set palette gamma ¤â¥Ñ¥ì¥Ã¥È¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥ÈÃͤϰʲ¼¤ÎÄ̤ê¤Ç¤¹¡£
set palette cubehelix start 0.5 cycles -1.5 saturation 1 set palette gamma 1.5
set palette viridis
¥Ñ¥ì¥Ã¥È "viridis" ¤Ï¡¢¿§³Ð¤Ë¾ã³²¤Î¤¢¤ë¥æ¡¼¥¶¸þ¤±¤ÎÀĤ«¤é²«¿§¤Ø¤Î¥°¥é ¥Ç¡¼¥·¥ç¥ó¤Ç¤¹¡£viridis ¤Ï¡¢Ste'fan van der Walt ¤È Nathaniel Smith ¤Ë ¤è¤ê³«È¯¤µ¤ì¤Þ¤·¤¿¡£¤½¤ì¤Ï¡¢´¶³ÐŪ¤ÊÌÀ¤ë¤µ (µ±ÅÙ) ¤Î¶á»÷Ū¤ËÀþ·Á¤Ê¥°¥é ¥Ç¡¼¥·¥ç¥ó¤È¤Ê¤ê¤Þ¤¹¡£gnuplot ¤¬»ÈÍѤ¹¤ë¥«¥é¡¼¥Þ¥Ã¥×ÈǤϡ¢°Ê²¼¤Ë´ð¤Å¤¤ ¤Æ¤¤¤Þ¤¹¡£
"Viridis - Colorblind-Friendly Color Maps for R", Garnier et al (2021) https://CRAN.R-project.org/package=viridis
¥Õ¥¡¥¤¥ë¤ÏÄ̾ï¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤È¤·¤ÆÆɤà¤Î¤Ç¡¢Á´¤Æ¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë½¤¾þ »Ò¤¬»È¤¨¤Þ¤¹¡£HSV ¿§¶õ´Ö¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢R ¤Ï¼ÂºÝ¤Ë¤Ï H ¤ò»Ø¤¹¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥°¥é¥Ç¡¼¥·¥ç¥ó¤òɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ ¤¤¡£
Îã:
RGB ¤Î¥Ñ¥ì¥Ã¥È¤ò [0,255] ¤ÎÈϰϤÇÆɤ߹þ¤à:
set palette file 'some-palette' using ($1/255):($2/255):($3/255)
Åù´Ö³Ö¤ÎÆú¿§ (ÀÄ-ÎÐ-²«-ÀÖ) ¥Ñ¥ì¥Ã¥È:
set palette model RGB file "-" using 1:2:3 0 0 1 0 1 0 1 1 0 1 0 0 e
ÌÀ¼¨Åª¤Ê³¥¿§ÃÍ»ØÄê¤È RGB ÃÍ»ØÄê¤ÇƱ¤¸¤³¤È¤ò:
set palette model RGB file "-" using 1:2 1 0x0000ff 2 0x00ff00 3 0xffff00 4 0xff0000 e
¥Ð¥¤¥Ê¥ê¥Ñ¥ì¥Ã¥È¥Õ¥¡¥¤¥ë¤âƱÍͤ˥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: binary general (99.2.1)¡£R,G,B ¤Î double ¤Î¥Ç¡¼¥¿¤Î 64 ¸Ä¤Î 3 ¤ÄÁȤò¥Õ¥¡¥¤¥ë palette.bin ¤Ë½ÐÎϤ·¡¢¤½¤ì¤òÆɤ߹þ¤àÎã:
set palette file "palette.bin" binary record=64 using 1:2:3
³¥¿§³¬Ä´¼ÌÁü¤ËÂФ·¤Æ <gamma> ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1.5 ¤Ç¡¢Ä̾ï¤ÏŬÀÚ¤ÊÃͤǤ¹¡£
¥¬¥ó¥ÞÊäÀµ¤Ï¡¢cubehelix ¥«¥é¡¼¥Ñ¥ì¥Ã¥È·Á¼°¤Ë¤ÏŬÍѤµ¤ì¤Þ¤¹¤¬¡¢Â¾¤Î¿§·Á ¼°¤Ë¤ÏŬÍѤµ¤ì¤Þ¤»¤ó¡£¤·¤«¤·¡¢ÌÀ¼¨Åª¤Ê¿§´Ø¿ô¤Ë¥¬¥ó¥ÞÊäÀµ¤ò¼ÂÁõ¤¹¤ë¤Î¤Ï Æñ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£
Îã:
set palette model RGB set palette functions gray**0.64, gray**0.67, gray**0.70
Êä´Ö¤µ¤ì¤¿¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò»È¤Ã¤Æ¥¬¥ó¥ÞÊäÀµ¤ò¹Ô¤¦¤Ë¤Ï¡¢Å¬Åö¤Ê¿§¤ËÃæ´Ö¤Î Ãͤò»ØÄꤷ¤Þ¤¹¡£
set palette defined ( 0 0 0 0, 1 1 1 1 )
¤ÎÂå¤ï¤ê¤ËÎ㤨¤Ð°Ê²¼¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤:
set palette defined ( 0 0 0 0, 0.5 .73 .73 .73, 1 1 1 1 )
¤Þ¤¿¤Ï¡¢Àþ·ÁÊä´Ö¤¬ "¥¬¥ó¥ÞÊäÀµ" ¤ÎÊä´Ö¤Ë½½Ê¬Îɤ¯Å¬¹ç¤¹¤ë¤Þ¤Ç¤è¤êÎɤ¤Ãæ ´Ö¤ÎÅÀ¤òõ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì¤ÎÂè°ì¤Î»ÈÍÑÌÜŪ¤Ï¡¢Î¥»¶Åª¤Ê¿§¤½¤ì¤¾¤ì¤¬ÃͤÎÈϰϤòÂåɽ¤¹¤ë¤â¤Î¤Ç¡¢ ¤½¤ì¤Ë¤è¤Ã¤Æ²¹ÅÙʬÉÛ¿Þ¤òÀ¸À®¤¹¤ë¤³¤È¤Ç¤¹¡£
2 ¤ÄÌܤλÈÍÑÌÜŪ¤Ï¡¢¸ÂÄꤵ¤ì¤¿¿§¿ô (Î㤨¤Ð gif ¤ä sixel ¤Ç¤Ï 256 ¿§) ¤·¤«¥µ¥Ý¡¼¥È¤·¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤Î½èÍý¤Ç¤¹¡£gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¿§¤Ï ¤½¤Î¤¦¤Á¤Î¤¤¤¯¤Ä¤«¤Þ¤Ç¤ò»ÈÍѤ¹¤ë¤Î¤Ç¡¢¥Ñ¥ì¥Ã¥È¤¬ÍøÍѤǤ¤ë¿§¿ô¤Ï¤µ¤é¤Ë À©¸Â¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ê£¿ô¤Î¥Ñ¥ì¥Ã¥È¤ò»ÈÍѤ¹¤ë multiplot ¤Ç¤Ï¡¢ºÇ½é¤Î ¥Ñ¥ì¥Ã¥È¤¬ÍøÍѲÄǽ¤Ê¿§°ÌÃÖ¤ò»È¤¤ÀڤäƤ·¤Þ¤Ã¤Æ¼ºÇÔ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤½¤ì ¤¾¤ì¤Î¥Ñ¥ì¥Ã¥È¤Ç»ÈÍѤǤ¤ë¿§¿ô¤òÀ©¸Â¤¹¤ë¤³¤È¤Ç¡¢²óÈò¤Ç¤¤Þ¤¹¡£
set palette model { RGB | CMY | HSV {start <radians>} }
¿§¶õ´Ö¤Ï¡¢model ¤ò RGB, HSV, CMY ¤È¤¹¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ RGB ¤Ï¡¢É¸½àŪ¤ÊÀÖ (Red)¡¢ÎÐ (Green)¡¢ÀÄ (Blue) ¤Ë¡¢CMY ¤Ï¿å¿§ (Cyan)¡¢ »ç (Magenta)¡¢²«¿§ (Yellow) ¤Ë¡¢HSV ¤Ï ¿§Áê(Hue)¡¢ºÌÅÙ (Saturation)¡¢ ÌÀÅÙ (Value) ¤Ë´ð¤Å¤¯¿§¶õ´Ö¤Ç¤¹¡£HSV ¿§¶õ´Ö¤Ç¤Ï¡¢H ¤¬ 0 ¤«¤é 1 ¤ËÊѲ½ ¤¹¤ë¤Î¤Ë±þ¤¸¤Æ¿§Áê´ÄÁ´ÂΤò°ì²ó¤ê¤·¡¢¤è¤Ã¤Æ H=0 ¤È H=1 ¤ÏƱ¤¸¿§¤ò¼¨¤¹¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î²óž¤Î³«»Ï¤È½ªÎ»°ÌÃÖ¤ÏÀ֤Ǥ¹¡£¥ª¥×¥· ¥ç¥ó¥Ñ¥é¥á¡¼¥¿ start ¤Ï¤½¤ì¤ò¤º¤é¤¹¤Î¤Ç¡¢¤è¤Ã¤Æ set palette model HSV start 0.3 ¤Î¸å¤Ç¤Ï¡¢H=0 ¤È H=1 ¤Ï¤¤¤º¤ì¤âÎÐ¤Ë Âбþ¤·¤Þ¤¹¡£
¥«¥é¡¼¥â¥Ç¥ë¤Ë´Ø¤¹¤ë¤µ¤é¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤: http://en.wikipedia.org/wiki/Color_space
(ÌõÃí: ÆüËܸì¤Ç¤Ï "http://ja.wikipedia.org/wiki/¿§¶õ´Ö" ¤¬¤¢¤ê¤Þ¤¹¡£)
¥Ñ¥ì¥Ã¥È¥ª¥×¥·¥ç¥ó¤Ë´Ø¤¹¤ë¥Þ¥Ë¥å¥¢¥ë¤Ï¡¢RGB ¿§¶õ´Ö¤Ë¤Ä¤¤¤Æ½ñ¤«¤ì¤Æ¤¤¤Þ ¤·¤¿¤¬¡¢Î㤨¤Ð¤½¤ì¤Î R ¤Ï¡ÖºÇ½é¤Î¿§À®Ê¬¡×¤ò°ÕÌ£¤·¡¢¤è¤Ã¤Æ¼ÂºÝ¤Ë»ÈÍÑ ¤·¤Æ¤¤¤ë¿§¶õ´Ö¤Ë¤è¤Ã¤Æ¤Ï H¡¢C ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
postscript ¥Õ¥¡¥¤¥ë¤Ë pm3d ¶ÊÌ̤ò½ñ¤½Ð¤¹¾ì¹ç¡¢¤½¤Î¸å¤Ç gnuplot ¤ËÉÕ° ¤¹¤ë awk ¥¹¥¯¥ê¥×¥È pm3dCompress.awk ¤ò¼Â¹Ô¤¹¤ë¤È¤½¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º ¤ò¾®¤µ¤¯¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¥Ç¡¼¥¿¤¬»Í³Ñ·Á¤Î³Ê»Ò¾õ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ awk ¥¹¥¯¥ê¥×¥È pm3dConvertToImage.awk ¤ò»È¤¦¤³¤È¤Ç¤è¤êÂ礤ʰµ½ÌΨ¤¬ ÆÀ¤é¤ì¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£ ¤¤¤º¤ì¤â¥¹¥¯¥ê¥×¥È¤â gnuplot ¤È¤È¤â¤ËÇÛÉÛ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ »ÈÍÑË¡:
awk -f pm3dCompress.awk thefile.ps >smallerfile.ps awk -f pm3dConvertToImage.awk thefile.ps >smallerfile.ps
½ñ¼°:
set parametric unset parametric show parametric
2 ¼¡¸µ¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¤Ï¡¢ÇÞ²ðÊÑ¿ôɽ¼¨´Ø¿ô¤Ï¤Ò¤È¤Ä¤ÎÇÞ²ðÊÑ¿ô¤ËÂФ¹¤ë 2 ¤Ä¤Î´Ø¿ô¤ÇÄê¤á¤é¤ì¤Þ¤¹¡£Îã¤È¤·¤Æ¤Ï plot sin(t),cos(t) ¤È¤¹¤ë¤³¤È¤Ë¤è¤Ã ¤Æ±ß¤¬ÉÁ¤±¤Þ¤¹ (¥¢¥¹¥Ú¥¯¥ÈÈ椬Àµ¤·¤¯ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡£°Ê²¼»²¾È: set size (112.84))¡£gnuplot ¤Ï¡¢Î¾Êý¤Î´Ø¿ô¤¬ÇÞ²ðÊÑ¿ô¤Ë¤è¤ë plot ¤Î¤¿¤á¤Ë Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Þ¤¹¡£
3 ¼¡¸µ¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¤ÏÌÌ¤Ï x = f(u,v), y = g(u,v), z = h(u,v) ¤ÇÄê¤á ¤é¤ì¤Þ¤¹¡£¤è¤Ã¤Æ 3 ¤Ä¤Î´Ø¿ô¤òÁȤǻØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Îã¤È¤·¤Æ¤Ï¡¢ cos(u)*cos(v),cos(u)*sin(v),sin(u) ¤È¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆµåÌ̤¬ÉÁ¤±¤Þ¤¹¡£ gnuplot ¤Ï¡¢3 ¤ÄÁ´Éô¤Î´Ø¿ô¤¬ÇÞ²ðÊÑ¿ô¤Ë¤è¤ë splot ¤Î¤¿¤á¤ËÍ¿¤¨¤é¤ì ¤Æ¤¤¤Ê¤±¤ì¤Ð¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Þ¤¹¡£
¤³¤ì¤Ë¤è¤Ã¤Æɽ¸½¤Ç¤¤ë´Ø¿ô·²¤Ï¡¢Ã±½ã¤Ê f(x) ·¿¤Î´Ø¿ô·²¤ÎÆâÊñ¤¹¤ë¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤Ð¡¢2 ¤Ä (3 ¤Ä) ¤Î´Ø¿ô¤Ï x, y (, z) ¤ÎÃͤòÆÈΩ¤Ë·×»» ¤¹¤ëµ½Ò¤¬¤Ç¤¤ë¤«¤é¤Ç¤¹¡£¼ÂºÝ¡¢t,f(t) ¤Î¥°¥é¥Õ¤Ï¡¢°ìÈÖÌܤδؿô¤Î¤è¤¦ ¤Ê¹±Åù´Ø¿ô¤òÍѤ¤¤Æ x ¤ÎÃͤ¬·×»»¤µ¤ì¤ë¾ì¹ç¤Ë f(x) ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤ë¥° ¥é¥Õ¤ÈÅù²Á¤Ç¤¹¡£Æ±Íͤˡ¢3 ¼¡¸µ¤Ç¤Î u,v,f(u,v) ¤ÎÉÁ²è¤Ï¡¢f(x,y) ¤ÈÅù²Á ¤Ç¤¹¡£
ÇÞ²ðÊÑ¿ôɽ¼¨´Ø¿ô¤Ï¡¢x ¤Î´Ø¿ô¡¢y ¤Î´Ø¿ô (¡¢z ¤Î´Ø¿ô)¤Î½ç¤Ë»ØÄꤷ¡¢¤½¤ì ¤é¤Ï¶¦Ä̤ÎÇÞ²ðÊÑ¿ô¤ª¤è¤Ó¤½¤ÎÊÑ°è¤ÇÄêµÁ¤µ¤ì¤ë¤³¤È¤Ëα°Õ¤·¤Æ²¼¤µ¤¤¡£
¤µ¤é¤Ë¡¢set parametric ¤Î»ØÄê¤Ï¡¢¿·¤·¤¤ÊÑ¿ôÊÑ°è¤ò»ÈÍѤ¹¤ë¤³¤È¤ò°Å¤Ë Àë¸À¤·¤Þ¤¹¡£Ä̾ï¤Î f(x) ¤ä f(x,y) ¤¬ xrange¡¢yrange (¡¢zrange) ¤ò»ÈÍÑ ¤¹¤ë¤Î¤ËÂФ·¤Æ¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï¤½¤ì¤Ë²Ã¤¨¤Æ¡¢trange, urange, vrange ¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÑ°è¤Ï set trange, set urange, set vrange ¤Ë¤è¤Ã¤ÆľÀÜ»ØÄꤹ¤ë¤³¤È¤â¡¢plot ¤ä splot ¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ ¸½»þÅÀ¤Ç¤Ï¡¢¤³¤ì¤é¤ÎÇÞ²ðÊÑ¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ°è¤Ï [-5:5] ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¾ÍèŪ¤Ë¤Ï¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¤â¤Ã¤ÈͰդʤâ¤Î¤ËÊѹ¹¤¹¤ëͽÄê¤Ç¤¹¡£
set paxis <axisno> {range <range-options> | tics <tic-options>} set paxis <axisno> label <label-options> { offset <radial-offset> } show paxis <axisno> {range | tics}
¥³¥Þ¥ó¥É set paxis ¤Ï¡¢Ê¿¹ÔºÂɸÉÁ²è (parallel axis) ¤È¥¯¥â¤ÎÁ㥰¥é¥Õ (spiderplot) ¤Î p1, p2, ... ¼´¤Î°ì¤Ä¤ËºîÍѤ¹¤ë¤³¤È°Ê³°¤Ï¡¢set xrange ¤ä set xtics ¤ÈƱ¤¸¤Ç¤¹¡£°Ê²¼»²¾È: parallelaxes (58), set xrange (112.122), set xtics (112.123)¡£range ¤È tics ¥³¥Þ¥ó¥É¤Ø¤ÎÄ̾ï¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¿¹ÔºÂɸÉÁ ²è¥¹¥¿¥¤¥ë¤Ë¤Ï°ÕÌ£¤Î¤Ê¤¤¤â¤Î¤â¤¢¤ê¤Þ¤¹¤¬¡¢°ì±þ¤¹¤Ù¤Æ¤ò¼õ¤±¤Ä¤±¤Þ¤¹¡£
set paxis <axisno> label <label-options> ¤Ï¡¢spiderplot ÍѤǡ¢¤½¤Î¾ ¤Ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£Ê¿¹ÔºÂɸÉÁ²è¤Î¼´¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Î title ¥ª¥×¥·¥ç ¥ó¤Ç¥é¥Ù¥ëÉÕ¤±¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï xtic ¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¤Î¤Ç¡¢set xtics ¤âɬÍפȤʤ뤳¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¼´¤ÎÀþ¼ï°À¤Ï¡¢set style parallelaxis ¤ÇÀ©¸æ¤·¤Þ¤¹¡£
set pixmap <index> {"filename" | colormap <name>} at <position> {width <w> | height <h> | size <w>,<h>} {front|back|behind} {center} show pixmaps unset pixmaps unset pixmap <index>
¥³¥Þ¥ó¥É set pixmap ¤Ï¡¢¤½¤Î¸å¤Ë³¤¯ plot ¤Çɽ¼¨¤µ¤ì¤ë¥ª¥Ö¥¸¥§¥¯¥È¤ò ÄêµÁ¤¹¤ë¥³¥Þ¥ó¥É set object ¤È»÷¤Æ¤¤¤Þ¤¹¡£¤½¤Î¥Ô¥¯¥¹¥Þ¥Ã¥×¤ò¹½À®¤¹¤ë R/G/B/alpha ¤ÎÃͤÎĹÊý·ÁÇÛÎó¤¬ png, jpeg, gif ¥Õ¥¡¥¤¥ë¤Î¤¤¤º¤ì¤«¤«¤éÆÉ ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£gnuplot ½ÐÎϾå¤Î°ÌÃ֤ȥԥ¯¥¹¥Þ¥Ã¥×¤¬Àêͤ¹¤ëÈϰϤϡ¢Ç¤°Õ ¤ÎºÂɸ·Ï (°Ê²¼»²¾È: coordinates (11)) ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£at <position> ¤Ç Í¿¤¨¤¿ºÂɸ¤Ï¡¢¥¡¼¥ï¡¼¥É center ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥Ô¥¯¥¹¥Þ¥Ã¥× ¤Îº¸²¼³Ñ¤ò°ÕÌ£¤·¤Þ¤¹¡£
width <x-extent> ¤ò»ÈÍѤ·¤ÆÉÁ²è¤¹¤ë¥Ô¥¯¥¹¥Þ¥Ã¥×¤Î x ¤ÎÈϰϤò »ØÄꤷ ¤¿¾ì¹ç¡¢¸µ¤Î²èÁü¤Î¥¢¥¹¥Ú¥¯¥ÈÈ椬ÊÝ»ý¤µ¤ì¡¢¼´¤Î¥¹¥±¡¼¥ë¤ä²óž¤Ç¤Ï¥¢¥¹¥Ú ¥¯¥ÈÈæ¤â¥Ô¥¯¥¹¥Þ¥Ã¥×¤Î¸þ¤¤âÊѹ¹¤·¤Þ¤»¤ó¡£height <y-extent> ¤ò»ÈÍѤ· ¤Æ y ¤ÎÈϰϤò»ØÄꤷ¤¿¾ì¹ç¤âƱÍͤǤ¹¡£size <x-extent> <y-extent> ¤ò»È ÍѤ·¤Æ x ¤È y ¤ÎÈϰϤÎξÊý¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¸µ¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤òÊѹ¹¤·¤Þ¤¹¡£ ¥µ¥¤¥º¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î¸µ¤Î¥µ¥¤¥º¤ò»ÈÍѤ·¤Þ¤¹ (¤è¤Ã¤Æ¤½ ¤Î¼ÂºÝ¤Î¥µ¥¤¥º¤Ï¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Þ¤¹)¡£
¥Ô¥¯¥¹¥Þ¥Ã¥×¤Ï¡¢¥°¥é¥Õ¤Î¶³¦¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤»¤ó¡£¥ª¥Ö¥¸¥§¥¯¥È¤ä¥ì¥¤ ¥ä¤Î°ìÈÌŪ¤ÊµóÆ°¤ËÂФ¹¤ëÎã³°¤È¤·¤Æ¡¢behind ¥ì¥¤¥ä¤Ë³ä¤êÅö¤Æ¤¿¥Ô¥¯¥¹ ¥Þ¥Ã¥×¤Ï¡¢multiplot ¤Ç¤ÏºÇ½é¤Î plot ¤Ç¤Î¤ßÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ì¤Ä¤ÎÇØ ·ÊÍѤΥԥ¯¥¹¥Þ¥Ã¥×¤ò¡¢multiplot ¤Î¤¹¤Ù¤Æ¤Î¥Ñ¥Í¥ë¤Ç¶¦Í¤¹¤ë¤³¤È¤ò²Äǽ¤Ë ¤·¤Þ¤¹¡£
Îã:
# ¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤ÎÇطʤȤ·¤Æ¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò»ÈÍÑ # ¥¥ã¥ó¥Ð¥¹Á´ÂΤòËä¤á¤ë¤è¤¦ x, y ¤ÎξÊý¤ò¥ê¥µ¥¤¥º¤¹¤ë set pixmap 1 "gradient.png" set pixmap 1 at screen 0, 0 size screen 1, 1 behind
# ¥°¥é¥Õ¤Î³Æ¥Ú¡¼¥¸¤Î±¦²¼¤Ë¥í¥´¤ò¤òÇÛÃÖ set pixmap 2 "logo.jpg" set pixmap 2 at screen 0.95, 0 width screen 0.05 behind
# ¤¢¤ë 3 ¼¡¸µºÂɸ¤Ë¾®¤µ¤¤²èÁü¤òÇÛÃÖ # ¤½¤ì¤ÏÉÁ²è¤µ¤ì¤Æ¤¤¤ë¶ÊÌ̤ËÄ¥¤êÉÕ¤¤¤Æ¤¤¤ë¤è¤¦¤Ë°ÜÆ°¤¹¤ë¤¬¡¢ # ¾ï¤ËÁ°¤ò¸þ¤Ä¾Î©¤·Â³¤±¤ë set pixmap 3 "image.png" at my_x, my_y, f(my_x,my_y) width screen .05 splot f(x,y)
set pixmap <index> colormap <name> at <position> size <width>, <height>
½ñ¼° (¥ª¥×¥·¥ç¥ó¤ÏǤ°Õ¤Î½ç¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹):
set pm3d { { at <position> } { interpolate <steps/points in scan, between scans> } { scansautomatic | scansforward | scansbackward | depthorder {base} } { flush { begin | center | end } } { ftriangles | noftriangles } { clip | clip1in | clip4in } { {no}clipcb } { corners2color { mean|geomean|harmean|rms|median|min|max|c1|c2|c3|c4 } } { {no}lighting {primary <fraction>} {specular <fraction>} {spec2 <fraction>} } { {no}border {retrace} {<linestyle-options>}} { implicit | explicit } { map } } show pm3d unset pm3d
pm3d ¤Î¶ÊÌ̤ϡ¢splot ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤¿½ç¤ËϢ³¤·¤ÆÉÁ²è¤¹¤ë¤³¤È¤ËÃí°Õ¤· ¤Æ¤¯¤À¤µ¤¤¡£Àè¤ËÉÁ¤«¤ì¤¿¥°¥é¥Õ¤Ï¡¢¸å¤Î¥°¥é¥Õ¤Ç±£¤µ¤ì¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤òÈò¤±¤ë¤¿¤á¤Ë¡¢scan ¥ª¥×¥·¥ç¥ó¤Î depthorder ¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£
pm3d ¶ÊÌ̤ϡ¢É½¼¨ÏȤÎÅ·°æ (top) ¤äÄìÌÌ (bottom) ¤Ë¼Í±Æ¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: pm3d position (112.71.5)¡£ °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢°Û¤Ê¤Ã¤¿¹â¤µ¤Ç 3 ¤Ä¤Î¿§ÉÕ¤¤Î¶ÊÌ̤òÉÁ¤¤Þ¤¹:
set border 4095 set pm3d at s splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t
°Ê²¼¤â»²¾È: set palette (112.67), set cbrange (112.153), set colorbox (112.17)¡£¤½¤·¤Æ¥Ç¥â¥Õ ¥¡¥¤¥ë demo/pm3d.dem ¤â»²¹Í¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
½ñ¼°
splot DATA using (x):(y):(z){:(color)} with pm3d { at <position>} {fs|fillstyle <fillstyle>} {fc|fillcolor <colorspec>} {zclip [zmin:zmax]}
¤¹¤Ù¤Æ¤Î pm3d ¶ÊÌ̤ÎÉÁ²è°À¤Ï¡¢set pm3d ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ç¤Ï¡¢¶ÊÌÌÁ´ÂΤò»ÍÊÕ·Á¤Î³Ê»Ò¤È¤·¤ÆÉÁ²è¤·¡¢³Æ³Ê»Ò¤Ï z ºÂɸ¤Ë³ä¤ê Åö¤Æ¤é¤ì¤ë¥Ñ¥ì¥Ã¥È¿§¤Ç¿§ÉÕ¤±¤·¤Þ¤¹¡£4 ÈÖÌܤÎÆþÎÏÎó¤òÍ¿¤¨¤ë¤È¡¢¥Ñ¥ì¥Ã¥È ¤Î³ä¤êÅö¤Æ¤Ï z ¤ÎÃͤǤʤ¯¤½¤ÎÃͤò»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: pm3d fillcolor (112.71.11), pm3d color_assignment (112.71.8)¡£
set pm3d implicit ¤¬Í¸ú¤Ê¾õÂÖ¤Ç with pm3d °Ê³°¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò»È ÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢plot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë with pm3d ¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢ ÉÁ²è¥ª¥×¥·¥ç¥ó¤òÄɲ乤뤳¤È¤¬²Äǽ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Æ±¤¸¥°¥é¥Õ¾å¤Ç¡¢°ã ¤¦¶ÊÌ̤ËÊÌ¡¹¤Î¿§ÉÕ¤±¤Î»ÅÁȤߤò»È¤¦¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
»î¸³Ãʳ¬: ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢¥ª¥×¥·¥ç¥ó zclip ¤òƳÆþ¤·¤Æ¤¤ ¤Æ¡¢¤½¤ì¤Ï z ¤ÎÃͤ泦¤Ç¶ÊÌ̤ò³ê¤é¤«¤Ê¶ÊÌ̤òÀ¸À®¤¹¤ë¤è¤¦¤Ë¥¯¥ê¥Ã¥Ô¥ó ¥°¤·¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ï¡¢2 ¿§¤Î 3 ¼¡¸µ¶ÊÌ̤Îĺ¾å¤ÎÉôʬ¤ò½ù¡¹¤Ë¾Ã¤·¤Æ¤¤¤¯ ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤òɽ¼¨¤·¤Þ¤¹¡£
set style line 101 lc "gray" set style line 102 lc "blue" set pm3d depthorder do for [i=0:N] { splot f(x,y) with pm3d fillcolor ls 101 zclip [* : zmax-(i*delta)] pause 0.2 # ¥¢¥Ë¥á¡¼¥·¥ç¥ó¥Õ¥ì¡¼¥à´Ö³Ö¤Ï 1/5 Éà }
splot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë with pm3d ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿¤ä´Ø ¿ôÉÁ²è¥¹¥¿¥¤¥ë (style) ¤¬Âç°èŪ¤Ë pm3d ¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤¢¤ë ¤¤¤Ï¡¢pm3d ¥â¡¼¥É¤¬ set pm3d implicit ¤È¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢pm3d ¤Î¥« ¥é¡¼¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£¸å¤Î 2 ¤Ä¤Î¾ì¹ç¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿¥¹¥¿¥¤ ¥ë¤ÇÀ¸À®¤¹¤ëÌÖÌÜ¤Ë pm3d ¶ÊÌ̤òÄɲ乤ë·Á¤ÇÉÁ²è¤·¤Þ¤¹¡£Î㤨¤Ð¡¢
splot 'fred.dat' with lines, 'lola.dat' with lines
¤Ï¡¢³Æ¥Ç¡¼¥¿½¸¹çËè¤ËÀÞ¤ìÀþ¤Ë¤è¤ëÌÖÌÜ¤È pm3d ¶ÊÌ̤ÎξÊý¤òÉÁ²è¤·¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó explicit (ÌÀ¼¨Åª) ¤¬ ON (¤Þ¤¿¤Ï implicit ¤¬ OFF) ¤Î¾ì¹ç ¤Ï¡¢Â°À with pm3d ¤ò»ØÄꤷ¤¿¥°¥é¥Õ¤Î¤ß¤¬ pm3d ¶ÊÌ̤Ȥ·¤ÆÉÁ²è¤µ¤ì¤Þ ¤¹¡£Î㤨¤Ð
splot 'fred.dat' with lines, 'lola.dat' with pm3d
¤Ï¡¢'freq.dat' ¤ÏÀÞ¤ìÀþ¤Ç (Àþ¤Î¤ß¤Ç)¡¢'lola.dat' ¤Ï pm3d ¶ÊÌ̤ÇÉÁ²è¤· ¤Þ¤¹¡£
gnuplot ¤Îµ¯Æ°»þ¤Ï¤½¤Î¥â¡¼¥É¤Ï explicit (ÌÀ¼¨Åª) ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Îò »ËŪ¡¢¤½¤·¤Æ¸ß´¹À¤Î¤¿¤á¤Ë¡¢¥³¥Þ¥ó¥É set pm3d; (¤¹¤Ê¤ï¤Á¥ª¥×¥·¥ç¥ó¤¬ ¤Ê¤¤¾ì¹ç) ¤È set pm3d at X ... (¤¹¤Ê¤ï¤Á at ¤¬ºÇ½é¤Î¥ª¥×¥·¥ç¥ó¤Î¾ì ¹ç) ¤Ï¥â¡¼¥É¤ò implicit (°ÅÌÛŪ) ¤ËÊѹ¹¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É set pm3d; ¤Ï¡¢¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó¤ò¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿/´Ø¿ô¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò pm3d ¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢Î㤨¤Ð
set style data pm3d
¤È¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó implicit ¤È explicit ¤Ï¸úÎϤò»ý¤Á¤Þ ¤»¤ó¡£
¤Þ¤º¡¢ÃÏ¿Þ/¶ÊÌ̤¬¤É¤Î¤è¤¦¤ËÉÁ¤«¤ì¤ë¤Î¤«¤Ë¤Ä¤¤¤Æµ½Ò¤·¤Þ¤¹¡£ÆþÎϥǡ¼¥¿ ¤Ï¡¢´Ø¿ô¤òɾ²Á¤·¤ÆÆÀ¤é¤ì¤ë¤«¤Þ¤¿¤Ï splot data file ¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£ ¶ÊÌ̤ϡ¢Áöºº (¸ÉΩÀþ) ¤Î·«¤êÊÖ¤·¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ç¤Ï¡¢ ºÇ½é¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤È¡¢¼¡¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿Â¾¤Î 2 ÅÀ¤Î ´Ö¤ÎÎΰ褬¡¢¤³¤ì¤é 4 ÅÀ¤Î z ¤ÎÃÍ (¤Þ¤¿¤ÏÄɲ䵤줿 'color' ÍѤÎÎó¤ÎÃÍ¡¢ °Ê²¼»²¾È: using (99.3.11)) ¤Ë½¾¤Ã¤Æ³¥¿§¤Ç (¤Þ¤¿¤Ï ¥«¥é¡¼¤Ç) Åɤé¤ì¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤Ç¤Ï 4 ¤Ä¤Î³Ñ¤ÎÃͤÎÊ¿¶ÑÃͤ¬»È¤ï¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¥ª¥×¥·¥ç¥ó corners2color ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£¤½¤ì¤Ê¤ê¤Î¶ÊÌ̤òÉÁ¤¯¤¿¤á¤Ë¤Ï¡¢ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤ÎÁöºº¤¬¸òº¹¤·¤Æ¤Ï¤¤¤±¤Ê¤¯¤Æ¡¢¶áÀÜÅÀÁöººËè¤ÎÅÀ¤Î¿ô¤¬°ã¤¤¤¹¤®¤Æ¤Ï¤¤ ¤±¤Þ¤»¤ó¡£¤â¤Á¤í¤ó¡¢ºÇ¤âÎɤ¤¤Î¤ÏÁöºº¤ÎÅÀ¤Î¿ô¤¬Æ±¤¸¤³¤È¤Ç¤¹¡£Â¾¤Ë¤Ï²¿¤â ɬÍפǤϤ¢¤ê¤Þ¤»¤ó (Î㤨¤Ð¥Ç¡¼¥¿¤Ï³Ê»Ò¾õ¤Ç¤¢¤ëɬÍפâ¤Ê¤¤)¡£Â¾¤Ë¤â¤³¤Î pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢ÆþÎϤµ¤ì¤¿ (·×¬¤µ¤ì¤¿¡¢¤¢¤ë¤¤¤Ï·×»»¤µ¤ì¤¿) ÎÎ°è ¤Î³°¤Ë¤Ï²¿¤âÉÁ¤«¤Ê¤¤¡¢¤È¤¤¤¦Ä¹½ê¤¬¤¢¤ê¤Þ¤¹¡£
¶ÊÌ̤ο§¤Å¤±¤Ï¡¢°Ê²¼¤Î¤è¤¦¤ÊÆþÎϥǡ¼¥¿¤Ë´Ø¤·¤Æ¹Ô¤ï¤ì¤Þ¤¹:
1. ´Ø¿ô¡¢¤Þ¤¿¤Ï 1 ¤Ä¤« 3 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ¾å¤Ë½Ò¤Ù ¤¿»Í³Ñ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃÍ (¤Þ¤¿¤Ï corners2color) ¤«¤é¡¢³¥ ¿§¤ÎÈÏ°Ï [0:1] ¤òÍ¿¤¨¤ë zrange ¤Þ¤¿¤Ï cbrange ¤ÎÈÏ°Ï [min_color_z,max_color_z] ¤Ø¤ÎÂбþ¤Ë¤è¤ê¡¢³¥¿§/¥«¥é¡¼¤ÎÃͤ¬ÆÀ¤é¤ì¤Þ¤¹¡£ ¤³¤ÎÃͤϡ¢Ä¾Àܳ¥¿§¤Î¿§ÃÏ¿ÞÍѤγ¥¿§¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Àµµ¬²½ ¤µ¤ì¤¿³¥¿§¤ÎÃͤò¥«¥é¡¼¤ËÂбþ¤µ¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£´°Á´¤ÊÀâÌÀ¤Ï¡¢°Ê²¼ »²¾È: set palette (112.67)¡£
2. 2 ¤Ä¤« 4 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ³¥¿§/¥«¥é¡¼¤ÎÃͤϡ¢z ¤ÎÃͤÎÂå¤ï¤ê¤ËºÇ¸å¤ÎÎó¤ÎºÂɸ¤ò»È¤Ã¤ÆÆÀ¤é¤ì¤Þ¤¹¤Î¤Ç¡¢¿§¤È z ºÂɸ¤¬ÆÈΩ ¤Ê¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï 4 ¼¡¸µ¥Ç¡¼¥¿¤ÎÉÁ²è¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¾¤ÎÃí°Õ:
1. ʪÍý³Ø¼Ô¤Î´Ö¤Ç¤Ï¡¢gnuplot ¤Îʸ½ñ¤ä¥½¡¼¥¹¤Ë¸½¤ï¤ì¤ë 'iso_curve' (¸É ΩÀþ) ¤È¤¤¤¦¸ÀÍÕ¤è¤ê¤â¡¢¾å¤Ç¸ÀµÚ¤·¤¿ 'Áöºº (scan)' ¤È¤¤¤¦¸ÀÍÕ¤ÎÊý¤¬»È ¤ï¤ì¤Æ¤¤¤Þ¤¹¡£1 ÅÙ¤ÎÁöºº¤È¾¤ÎÁöºº¤ÎµÏ¿¤Ë¤è¤ê¿§ÃÏ¿Þ¤òɾ²Á¤¹¤ë¡¢¤È¤¤¤¦ ¤Î¤Ï¤½¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¡£
2. 'gray' ¤ä 'color' ¤ÎÃÍ (scale) ¤Ï¡¢³ê¤é¤«¤ËÊѲ½¤¹¤ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø ¤Î¡¢Ï¢Â³¤ÊÊÑ¿ô¤ÎÀþ·Á¼ÌÁü¤Ç¤¹¡£¤½¤Î¼ÌÁü¤ÎÍͻҤÏÉÁ²è¥°¥é¥Õ¤ÎÎÙ¤ËĹÊý·Á¤Ç ɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤Îʸ½ñ¤Ç¤Ï¤½¤ì¤ò "¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox)" ¤È¸Æ¤Ó¡¢ ¤½¤ÎÊÑ¿ô¤ò¥«¥é¡¼¥Ü¥Ã¥¯¥¹¼´¤ÎÊÑ¿ô¤È¸Æ¤Ó¤Þ¤¹¡£°Ê²¼»²¾È: set colorbox (112.17), set cbrange (112.153)¡£
set pm3d lighting {primary <frac>} {specular <frac>} {spec2 <frac>} set pm3d spotlight {rgb <color>} {rot_x <angle>} {rot_z <angle>} {Phong <value>} {default}
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢pm3d ¤Î¿§¤Î³ä¤êÅö¤Æ¤Ï¡¢¸þ¤¤ä»ëÊý°Ì¤Ë¤Ï°Í¸¤·¤Þ¤»¤ó¡£ ¤½¤Î¾õÂÖ¤Ï set pm3d nolighting ¤ËÂбþ¤·¤Þ¤¹¡£ °ìÊý¡¢¥³¥Þ¥ó¥É set pm3d lighting ¤Ï¡¢°ìÅÀ¤ÎÅÀ¸÷¸»¤«¤é¤Î¾ÈÌÀ¤«¤é¤Î 50% ¤Î¸÷¤Ë¤è¤ëñ½ã¤Ê¸÷¸»¥â¥Ç¥ë¤òÁªÂò¤·¤Þ¤¹¡£¼þ°Ï¤ÎÌÀ¤ë¤µ¤ËÂФ¹¤ë¤½¤Î¸÷ ¸»¤Î¶¯ÅÙ¤Ï set pm3d lighting primary <fraction> ¤ÇÄ´À°¤Ç¤¤Þ¤¹¡£È¿¼Í ¸÷ (specular) ¤ò´Þ¤Þ¤»¤ëÅٹ礤¤Ï¡¢¤½¤ÎÈæΨ (fraction) ¤ÎÀßÄ꤬¤Ç¤¤Þ¤¹:
set pm3d lighting primary 0.50 specular 0.0 # ¥Ï¥¤¥é¥¤¥È¤Ê¤· set pm3d lighting primary 0.50 specular 0.6 # ¶¯¤¤¥Ï¥¤¥é¥¤¥È
¥Ù¥¿Åɤê (solid color) ¤Î pm3d ¶ÊÌ̤ϡ¢È¿¼Í¸÷¤Î¥Ï¥¤¥é¥¤¥È¤¬¤Ê¤¤¤È¤È¤Æ ¤âÊ¿¤é¤Ë¸«¤¨¤ë·¹¸þ¤¬¤¢¤ê¤Þ¤¹¡£
¼ç¸÷¸»¤Î¥Ï¥¤¥é¥¤¥È¤Ï¶ÊÌ̤ÎÊÒ¦¤Ë¤·¤«±Æ¶Á¤òÍ¿¤¨¤Ê¤¤¤Î¤Ç¡¢Â¾¤ÎÊý¸þ¤«¤é¸÷ ¤ë 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Î¾ÈÌÀ¤òÄɲ乤ë¤È¤¤¤¤¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Î¶¯¤µ¤Ï¡¢"spec2 <fraction>" (ÈæΨ) ¤ÇÀßÄꤷ¤Þ¤¹¡£ 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Ï¡¢spec2 ¤¬À¸¤Î¾ì¹ç¤Ë¤Î¤ß¸÷¸»¥â¥Ç¥ë¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£ ¤½¤ÎÊý¸þ¡¢¿§¡¢È¿¼Í¥â¥Ç¥ë¤Ï¡¢"set pm3d spotlight" ¤ÇÀ©¸æ¤·¤Þ¤¹¡£¤³¤Î¥¹ ¥Ý¥Ã¥È¥é¥¤¥È¤ÎÍøÍÑË¡¤È°ÌÃÖ¼è¤ê¤Ï¡¢ÂÐÏ÷Á¼°¤Î¥Ç¥â spotlight.dem ¤ÇÀâ ÌÀ¤·¤Æ¤¤¤Þ¤¹¡£ hidden_compare.dem ¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ (ñ¿§Åɤê¶ÊÌ̤Πhidden3d ¤È pm3d ¤Î½èÍý¤ÎÈæ³Ó)
Îã:
set pm3d lighting primary 0.8 spec 0.4 spec2 0.4 set pm3d spot rgb "blue"
Åɤé¤ì¤¿»Í³Ñ·Á¤Ï¡¢¼¡¤«¤é¼¡¤Ø¤ÈÉÁ²è¤µ¤ì¤Æ¹Ô¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸å¤ËÉÁ¤¯»Í³Ñ ·Á¤¬¡¢°ÊÁ°¤ËÉÁ¤¤¤¿»Í³Ñ·Á¤òʤ¤Ã¤¿¤ê¡¢½Å¤Ê¤Ã¤¿¤ê¤·¤Þ¤¹¡£ºÇ½é¤ËÁöºº¤µ¤ì¤ë ¥Ç¡¼¥¿¤òºÇ½é¤ËÉÁ¤¯¤«ºÇ¸å¤ËÉÁ¤¯¤«¤òÀÚ¤êÂؤ¨¤ë¥¹¥¤¥Ã¥Á¥ª¥×¥·¥ç¥ó scansforward ¤È scansbackward ¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ï scansautomatic ¤Ç¡¢¤³¤ì¤Ï gnuplot ¼«¿È¤ËÁöºº¤Î½ç¤ò¿ä¬¤µ¤»¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó depthorder ¤Ï»Í³Ñ·Á¤Î½ç½ø¤ò»ëÅÀ¤«¤é¤Îµ÷Î¥¤Ç¥½¡¼¥È¤¹¤ë¤³¤È¤Ç´° Á´¤ËºÆ¹½À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¤«¤Ê¤êÊ£»¨¤Ê¶ÊÌ̤Ǥâ»ë³ÐŪ¤Ê¤â¤Î¤Ë¤¹¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: pm3d depthorder (112.71.6)¡£
set pm3d {scansautomatic | scansforward | scansbackward | depthorder}
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢pm3d ¤Îñ¿§Åɤê¶ÊÌ̤ò¹½À®¤¹¤ë»Í³Ñ·Á¤Ï¡¢¤½¤ì¤é¤¬¶ÊÌ̤Π³Ê»ÒÅÀ¤Ë±è¤Ã¤Æ½Ð²ñ¤¦½çÈÖ¤ËÅɤêÄÙ¤µ¤ì¤Þ¤¹¡£¤³¤Î½çÈ֤ϡ¢¥ª¥×¥·¥ç¥ó scansautomatic|scansforward|scansbackward ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£¤³¤ì¤é ¤ÎÁöºº (scan) ¥ª¥×¥·¥ç¥ó¤Ï¡¢°ìÈ̤ˤϱ£Ì̽èÍý¤È¤ÏξΩ¤·¤Þ¤»¤ó¡£
2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢»Í³Ñ·Á¤ÎÅÀ¤Î¼è¤ê»Ï¤á¤ò¡¢ ξÊý¤ÎÁöºº¤ÎºÇ½é¤«¤é (flush begin) ¤Ë¤¹¤ë¤«¡¢ºÇ¸å¤«¤é (flush end) ¤Ë¤¹¤ë¤«¡¢¿¿Ã椫¤é (flush center) ¤Ë¤¹¤ë¤«¤ò·èÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ flush (center|end) ¤Ï scansautomatic ¤È¤ÏξΩ¤»¤º¡¢¤è¤Ã¤Æ flush center ¤Þ¤¿¤Ï flush end ¤ò»ØÄꤷ¤Æ scansautomatic ¤¬ÀßÄꤵ ¤ì¤¿¾ì¹ç¡¢¤½¤ì¤Ï̵¸À¤Ç scansforward ¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£
2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¸Ä¡¹¤ÎÁöºº¤ÇÅÀ¤¬Â¤ê¤Ê ¤¤¾ì¹ç¤Ë¡¢Áöºº¤ÎºÇ¸å¤Ë¿§»°³Ñ·Á¤òÉÁ¤¯¤«¤É¤¦¤«¤ò¥ª¥×¥·¥ç¥ó ftriangles ¤Ï»Ø¼¨¤·¤Þ¤¹¡£¤³¤ì¤Ï³ê¤é¤«¤Ê¿§ÃϿޤ泦¤òÉÁ¤¯¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
gnuplot ¤Ï¡¢¶ÊÌ̤Îñ¿§Åɤê¤Ë¤ª¤¤¤Æ¤Ï¡¢ËÜÅö¤Î±£Ì̽èÍý¤Ï¹Ô¤¤¤Þ¤»¤ó¤¬¡¢¤¿ ¤¤¤Æ¤¤¤Ï±ó¤¤Êý¤«¤é¶á¤¤Êý¤Ø½ç¤Ë»Í³Ñ·ÁÍ×ÁǤòÅɤêÄÙ¤¹¤³¤È¤Ç½½Ê¬¤Ê¤Ç¤¤¢¤¬ ¤ê¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤ÇÁªÂò¤Ç¤¤Þ¤¹:
set pm3d depthorder
Âç°èŪ¤Ê¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ë set hidden3d ¤Ï¡¢pm3d ¶ÊÌ̤ˤϱƶÁ¤·¤Ê¤¤¤³ ¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥ª¥×¥·¥ç¥ó depthorder ¤Ï¡¢splot with boxes ¤Çºî¤Ã¤¿ºÙŤ¤Ä¹Êý·Á¤Ë ŬÍѤ¹¤ë¤È¡¢Îɤ¯¤Ê¤¤·ë²Ì¤òÀ¸¤à·¹¸þ¤¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¥¡¼¥ï¡¼¥É base ¤òÄɲ乤뤳¤È¤Ç¡¢z=0 ¤ÎÊ¿Ì̤ÈÈ¢¤Î¶¦ÄÌÉôʬ¤Ç¿¼¤µ¤Î¥½¡¼¥È¤ò¹Ô¤¦ ¤¿¤á¾¯¤·¤Þ¤·¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î·Á¼°¤Î¥°¥é¥Õ¤Ï¡¢¸÷¸»¥â¥Ç¥ë (lighting) ¤òÄÉ ²Ã¤¹¤ì¤Ð¹¹¤Ë²þÁ±¤Ç¤¤Þ¤¹¡£ Îã:
set pm3d depthorder base set pm3d lighting set boxdepth 0.4 splot $DATA using 1:2:3 with boxes
set pm3d {clip | clip1in | clip4in} set pm3d {no}clipcb
pm3d ¶ÊÌ̤侤Π3 ¼¡¸µ¥ª¥Ö¥¸¥§¥¯¥È¤ò¹½À®¤¹¤ë»ÍÊÕ·Á¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¸½ ºß¤Î zrange ¤Ë´Ø¤·¤Æ³ê¤é¤«¤Ë¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot 5.0 °Ê Á°¤È¤Ï°Û¤Ê¤ëµóÆ°¤Ç¤¹¡£2 ¼¡¸µ¼Í±Æ (set view map) ¤Ç¤Ï¡¢¤³¤Î¥â¡¼¥É¤Ï xrange ¤È yrange ¤ËÂФ·¤Æ¤â¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹¡£
¤½¤ì¤È¤ÏÊ̤ˡ¢4 ¤Ä¤Î³ÑÁ´Éô¤¬ x, y, z ¤ÎÈÏ°ÏÆâ¤Ç¤¢¤ë»ÍÊÕ·ÁÁ´ÂÎ (set pm3d clip4in)¡¢¤Þ¤¿¤Ï¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤Î³Ñ¤¬ x, y, z ¤ÎÈÏ°ÏÆâ¤Ç¤¢ ¤ë»ÍÊÕ·ÁÁ´ÂÎ (set pm3d clip1in)¤òÉÁ²è¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥¯¥ê¥Ã¥Ô¥ó¥°¤¹ ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó clip, clip1in, clip4in ¤ÏÁê¸ß¤ËÇÓ¾ Ū¤Ç¤¹¡£
¶õ´ÖºÂɸ x, y, z ¥Ù¡¼¥¹¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤È¤ÏÊ̤ˡ¢»ÍÊÕ·Á¤òÉÁ²è¤¹¤ë¤«¤É¤¦ ¤«¤òºÇ½ªÅª¤Ê¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃͤǷèÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ clipcb: (¥Ç¥Õ¥©¥ë¥È) cbmin ̤Ëþ¤Î¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃÍ¤Ï cbmin ¤È¤·¤Æ¡¢ cbmax ¤è¤êÂ礤¤¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃÍ¤Ï cbmax ¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ noclipcb: cbrange ³°¤Î¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃͤλÍÊÕ·Á¤Ï²¿¤âÉÁ²è¤·¤Þ¤»¤ó¡£
³Æ»ÍÊÕ·Á¤Ë¤Ï°ì¤Ä¤Î³¥¿§/¥«¥é¡¼ÃÍ (¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ç¤Ï¤Ê¤¤) ¤ò³ä¤êÅö¤Æ¤Þ ¤¹¡£¤½¤ÎÃͤϡ¢corners2color <option> ¤Ë½¾¤Ã¤Æ»ÍÊÕ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤«¤é·×»»¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎÃͤò¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤«¤é¿§¤òÁªÂò¤¹¤ë¤Î¤Ë »ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: set palette (112.67)¡£ °ì¤Ä¤Î splot ¥³¥Þ¥ó¥ÉÆâ¤Ç¥Ñ¥ì¥Ã¥È¤òÊѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
4 ÎóÌܤ˥ǡ¼¥¿¤òÍ¿¤¨¤¿¾ì¹ç¡¢¸Ä¡¹¤Î»Í³Ñ·Á¤ÎºÌ¿§¤Ï¾å¤ÈƱÍͤ˹Ԥ¤¤Þ¤¹¤¬¡¢ ¿§¤ÎÃÍ¤Ï z ¤ÎÃͤȤÏÊ̤Ȥߤʤµ¤ì¤Þ¤¹¡£Ê̤κ̿§¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢4 ÎóÌÜ ¤Î¥Ç¡¼¥¿¤Ë RGB ¿§¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: rgbcolor variable (20.1.4)¡£ ¤³¤Î¾ì¹ç¡¢ÉÁ²è¥³¥Þ¥ó¥É¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:
splot ... using 1:2:3:4 with pm3d lc rgb variable
z ¤ÎÃͤÎÈϰϤȶÊÌ̤理ÎÃͤÎÈϰϤϡ¢set zrange, set cbrange, set log z, set log cb Åù¤Ë¤è¤Ã¤ÆÆÈΩ¤ËÄ´À°¤·ÆÀ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À ¤µ¤¤¡£
set pm3d border {retrace} {line-properties} set pm3d noborder
¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢³Æ»Í³Ñ·Á¤Î¶³¦Àþ¤ò¡¢»Í³Ñ·Á¤¬ÉÁ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤ËÉÁ²è¤· ¤Þ¤¹¡£ÄɲäÎÀþ°À (Àþ¼ï¡¢¿§¡¢ÀþÉý) ¤ÏǤ°Õ¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Éý 1 ¤Î ¹õ¤Î¼ÂÀþ¤Ç¶³¦¤ò½ñ¤¤Þ¤¹¡£
set pm3d border retrace ¤Ï¡¢»ÍÊÕ·Á¤ÎÅɤë¤Î¤ÈƱ¤¸¿§¤Ç¶³¦¤òÅɤ餻¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢·ë²Ì¤È¤·¤Æ noborder ¤ÈƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢½ÐÎϥ⡼¥É¤Ë¤è¤Ã ¤Æ¤Ï¡¢ÎÙÀܤ·¤¿ÅɤêÄÙ¤·»ÍÊÕ·Á¤Î´Ö¤Î¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ë¤è¤ëÉû»ºÊª¤Ë¶ì¤·¤à ¤«¤â¤·¤ì¤Þ¤»¤ó¡£¶³¦¤òºÆÉÁ²è (retrace) ¤¹¤ë¤³¤È¤Ç¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤ÏÂç¤ ¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤é¤ÎÉû»ºÊª¤ò±£¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
splot FOO with pm3d fillcolor <colorspec>
ÉÁ²è¥¹¥¿¥¤¥ë with pm3d ¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Ç fillcolor Äɲ媥ץ·¥ç ¥ó¤ò¼õ¤±¤Ä¤±¤Þ¤¹¡£¤½¤Î»ØÄê¤Ï¡¢pm3d ¶ÊÌÌÁ´ÂΤËŬÍѤµ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£¤¿¤¤¤Æ¤¤¤Î fillcolor »ØÄê¤Ç¤Ïñ°ì¿§¤Îñ¿§Åɤê¤Ë¤Ê¤ê¤Þ¤¹¤¬ ¶ÊÌ̤Îɽ΢¤ÎÍ×ÁǤò¶èÊ̤¹¤ë¤¿¤á¤Î¸÷¸»¥â¥Ç¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¸«¤¿Ìܤò²ò ¼á¤¹¤ë¤Î¤¬Æñ¤·¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: pm3d lighting (112.71.4)¡£
2,3 ÆÃÊ̤ÊÎã¤ò¾Ò²ð¤·¤Þ¤¹¡£with pm3d fillcolor palette ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È ¤Î pm3d ¤Î¥Ñ¥ì¥Ã¥È¥Ù¡¼¥¹¤ÎÇÛ¿§¤ÈÁ´¤¯Æ±¤¸·ë²Ì¤òÀ¸À®¤·¤Þ¤¹¤Î¤Ç¡¢Ìò¤ËΩ¤Ä ¥ª¥×¥·¥ç¥ó¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ with pm3d fillcolor linestyle N ¤Ï¿¾¯°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢ gnuplot ¤Î hidden3d ¥â¡¼¥É¤ò»È¤Ã¤¿¾ì¹ç¤ÎÇÛ¿§¤Î»ÅÁȤߤÈƱÍÍ¡¢pm3d ¶Ê Ì̤ξ妤Ȳ¼Â¦¤Ë°Û¤Ê¤ë¿§¤ò³ä¤êÅö¤Æ¤ëÊѼï¤Ç¤¹¡£Àþ¼ï N ¤ò¾å¦¤Î¶ÊÌ̤ˡ¢ Àþ¼ï N+1 ¤ò²¼Â¦¤Î¶ÊÌ̤˻ÈÍѤ·¤Þ¤¹¡£¡Ö¾å¦¡×¤È¡Ö²¼Â¦¡×¤Ï¡¢Áöºº (scan) ½ç½ø¤Ë°Í¸¤·¤Þ¤¹¤Î¤Ç¡¢pm3d scansbackward ¤È pm3d scansforward ¤Ç¤Ï ÇÛ¿§¤¬µÕ¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÇÛ¿§¥ª¥×¥·¥ç¥ó¤Ï¡¢ pm3d depthorder ¤È¤Ç¤ÏºÇŬ¤Ëµ¡Ç½¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï»ÄÇ°¤Ê¤¬¤éÁöºº½ç½ø¤Î À©¸æ¤òµö¤·¤Þ¤»¤ó¤Î¤Ç¡¢Âå¤ï¤ê¤ËÀþ¼ï N ¤È N+1 ¤ÇÄêµÁ¤µ¤ì¤ë¿§¤òÆþ¤ìÂؤ¨¤Ê ¤¤¤È¤¤¤±¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
Àµ¤Î m, n ¤ËÂФ·¤Æ¤Ï³Æ»Í³Ñ·Á¡¢¤Þ¤¿¤Ï»°³Ñ·Á¤Ï¡¢¤½¤ì¤¾¤ì¤ÎÊý¸þ¤Ë m ²ó¡¢ n ²óÊä´Ö¤µ¤ì¤Þ¤¹¡£Éé¤Î m, n ¤Ç¤ÏÊä´Ö¤ÎÉÑÅ٤ϡ¢¾¯¤Ê¤¯¤È¤â |m|, |n| ÅÀ¤¬ ÉÁ²è¤µ¤ì¤ë¤è¤¦¤ËÁªÂò¤µ¤ì¤Þ¤¹¡£¤³¤ì¤ÏÆÃÊ̤ʳʻҴؿô¤È¸«¤Ê¤¹¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£
Ãí°Õ: interpolate 0,0 ¤Ï¡¢¼«Æ°Åª¤ËºÇŬ¤ÊÊä´Ö¶ÊÌÌÅÀ¿ô¤òÁªÂò¤·¤Þ¤¹¡£
Ãí°Õ: corners2color ¤Ç´ö²¿Ê¿¶Ñ (geomean) ¤Î¤è¤¦¤ÊÈóÀþ·Áɾ²Á¤¬ÀßÄꤵ¤ì ¤Æ¤¤¤¿¤È¤·¤Æ¤â¡¢¸½ºß¤Î¿§¤ÎÊä´Ö¤Ï¾ï¤ËÀþ·ÁÊä´Ö¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£
Èó¿ä¾©¤Ê¥ª¥×¥·¥ç¥ó set pm3d hidden3d N ¤Ï¡¢°Ê²¼¤ÈƱÅù¤Ç¤¹¡£ set pm3d border ls N
½ñ¼°:
set pointsize <multiplier> show pointsize
¥Ç¥Õ¥©¥ë¥È¤Ï 1.0 ÇܤǤ¹¡£²èÁü¥Ç¡¼¥¿½ÐÎϤǤϡ¢Â礤¤¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÊý ¤¬¸«¤ä¤¹¤¤¤Ç¤·¤ç¤¦¡£
°ì¤Ä¤ÎÉÁ²è¤ËÂФ¹¤ë¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ï plot ¥³¥Þ¥ó¥É¤Î¾å¤Ç¤âÊѹ¹¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: plot with (99.10)¡£
¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÀßÄê¤Ï¡¢É¬¤º¤·¤âÁ´¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤± ¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°:
set polar set polar grid <grid options> unset polar show polar
¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï¡¢²¾ÊÑ¿ô (t) ¤Ï³ÑÅ٦Ȥò°ÕÌ£¤·¤Þ¤¹¡£t ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈÏ °Ï¤Ï [0:2*pi] ¤Ç¤¹¤¬¡¢Ã±°Ì¤È¤·¤ÆÅÙ¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ì¤Ð [0:360] ¤È¤Ê¤ê¤Þ ¤¹ (°Ê²¼»²¾È: set angles (112.1))¡£
¥³¥Þ¥ó¥É unset polar ¤ÏÉÁ²èÊýË¡¤ò¥Ç¥Õ¥©¥ë¥È¤Î xy ľ¸òºÂɸ·Ï¤ËÌᤷ¤Þ ¤¹¡£
set polar ¥³¥Þ¥ó¥É¤Ï 2 ¼¡¸µÉÁ²è¤Ë¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£Æ±ÍͤΠ3 ¼¡¸µµ¡ ǽ¤Î¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set mapping (112.48)¡£
¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï t ¤Î¿ô¼°¤Î°ÕÌ£¤Ï r=f(t) ¤È¤Ê¤ê¡¢t ¤Ï²óž³Ñ¤È¤Ê¤ê¤Þ¤¹¡£ trange ¤Ï´Ø¿ô¤ÎÄêµÁ°è (³ÑÅÙ) ¤òÀ©¸æ¤·¡¢rrange, xrange, yrange ¤Ï¤½¤ì¤¾ ¤ì¥°¥é¥Õ¤Î x,y Êý¸þ¤ÎÈϰϤòÀ©¸æ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÈÏ°Ï¤È rrange ¤Ï¼«Æ°Åª¤ËÀßÄꤵ¤ì¤ë¤«¡¢¤Þ¤¿¤ÏÌÀ¼¨Åª¤ËÀßÄê¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ë´Ø¤· ¤Æ¤Ï¡¢°Ê²¼»²¾È: set rrange (112.81), set xrange (112.122)¡£
Îã:
set polar plot t*sin(t) set trange [-2*pi:2*pi] set rrange [0:3] plot t*sin(t)
ºÇ½é¤Î plot ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î³ÑÅÙ¤ÎÈϰϤΠ0 ¤«¤é 2*pi ¤ò»È¤¤¤Þ¤¹¡£Æ°·Â Êý¸þ¤È¥°¥é¥Õ¤Î¥µ¥¤¥º¤Ï¼«Æ°Åª¤Ë¿½Ì¤µ¤ì¤Þ¤¹¡£2 ÈÖÌܤΠplot ¤Ï³ÑÅÙ¤ÎÄê µÁ°è¤ò³ÈÄ¥¤·¡¢¥°¥é¥Õ¤Î¥µ¥¤¥º¤ò¸¶ÅÀ¤«¤é 3 ¤ÎÉý¤ËÀ©¸Â¤·¤Þ¤¹¡£¤³¤ì¤Ï x,y ¤Î¤½¤ì¤¾¤ì¤ÎÊý¸þ¤ò [-3:3] ¤ËÀ©¸Â¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¶ËºÂɸ¥°¥é¥Õ¤Ï³ÑÅÙ 0 (¦È=0) ¤¬±¦¸þ¤¤Ç¡¢Áý²Ã¤ÏÈ¿»þ·×²ó¤ê ¤È¤Ê¤ë¤è¤¦¤Ë¸þ¤¤Å¤±¤é¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤Î 0 ¤Î¸þ¤¤ÈÁý²ÃÊý¸þ¤ÎξÊý¤òÌÀ¼¨ Ū¤ËÊѹ¹²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set theta (112.91)¡£
set size square ¤È¤¹¤ë¤È gnuplot ¤Ï¥¢¥¹¥Ú¥¯¥ÈÈæ (½Ä²£¤ÎÈæ) ¤ò 1 ¤Ë ¤¹¤ë¤Î¤Ç±ß¤¬ (ÂʱߤǤʤ¯) ±ß¤Ë¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±¿´±ß¤Î¼þ°Ï¤ÎÌÜÀ¹ ¤ê¤Î¹ï¤ß¤Ï¡¢set ttics ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£ °Ê²¼¤â»²¾È ¶ËºÂɸ¤Î¥Ç¥â (polar.dem)
¤ª¤è¤Ó ¶ËºÂɸ¥Ç¡¼¥¿¤ÎÉÁ²è (poldat.dem)¡£
set polar grid {<theta_segments>, <radial_segments>} { qnorm {<power>} | gauss | cauchy | exp | box | hann } { kdensity } { scale <scale> } {theta [min:max]} {r [min:max]}
¶ËºÂɸ³Ê»Ò¤ÎÀßÄê¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë with surface ¤ÈÁȤ߹ç¤ï¤»¤Æ¶ËºÂɸ¤Î ÅÀ½¸¹ç¤«¤é²¹ÅÙʬÉÛ¿Þ (heat map) ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£Ì̤ϡ¢±ß¤òËä¤á ¿Ô¤¯¤¹³Ê»Ò¤«¤é¤Ê¤ê¡¢¤½¤ì¤Ë¤è¤ê¦È¤È r ¤ÎÎ¥»¶Åª¤ÊÈϰϤǷÁºî¤ëÉôʬ¤Ç±ß¤ò ʬ³ä¤·¤Þ¤¹¡£
³ÆÉôʬ¤Ë¤Ï¡¢¸Ä¡¹¤Î»¶ºßÅÀ [x,y,z] ¤ÎÆþÎϽ¸¹ç¤«¤é¥Õ¥£¥ë¥¿Áàºî¤ÎŬÍÑ¤Ë¤è ¤êƳ¤«¤ì¤ëÃͤò³ä¤êÅö¤Æ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥£¥ë¥¿¤Ï qnorm 1 ¤Ç¡¢¤³¤ì ¤Ï³ÆÅÀ¤Î¡¢³Ê»ÒÉôʬ¤ÎÃæ¿´¤«¤é¤½¤ÎÅÀ¤Þ¤Ç¤Îµ÷Î¥¤ÎµÕ¿ô¤Ç½Å¤ß¤Å¤±¤µ¤ì¤¿ z ÃͤÎÊ¿¶Ñ¤ò¼è¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
¾¤Î¥Õ¥£¥ë¥¿Áàºî gauss, cauchy, exp, box, hann ¤Ë´Ø¤·¤Æ¤Ï¡¢¤Û¤«¤Î¾ì½ê ¤Ç¾Ü¤·¤¯ÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: dgrid3d (112.25)¡£
kdensity: ¤³¤Î¥¡¼¥ï¡¼¥É¤Ï¡¢gnuplot ¤Ë¡¢½Å¤ß¤Ä¤¤ÎÊ¿¶Ñ¤ÎÂå¤ï¤ê¤Ë¡¢ ¤¹¤Ù¤Æ¤ÎÅÀ¤«¤é¤Î´óÍ¿¤Î½Å¤ßÉÕ¤¤ÎϤò»ÈÍѤ¹¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ¤¹¡£
scale: ¤³¤Î¥¹¥±¡¼¥ë°ø»Ò (¥Ç¥Õ¥©¥ë¥È¤Ï 1.0) ¤Ï¡¢½Å¤ß·×»»¤ÇÃͤò»È¤¦Á° ¤Ë¡¢¤¹¤Ù¤Æ¤Îµ÷Î¥¤ËÂФ·¤Æ¥¹¥±¡¼¥ê¥ó¥°¤òŬÍѤ·¤Þ¤¹¡£
¥Þ¥¹¥¥ó¥°: ¤¹¤Ù¤Æ¤ÎÆþÎÏÅÀ¤ò¡¢³Ê»ÒÃͤò·×»»¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£´°Á´¤Ë ³Ê»Ò¤ÎÄ¥¤é¤ì¤¿Ì̤ϡ¢¾ï¤Ë¦È¤ÎÈÏ°Ï [0:360] ¡¢¤ª¤è¤Ó¼«Æ°½Ì¼Ü¡¢¤Þ¤¿¤ÏÁ°¤Ë ¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É set rrange ¤ÇÄêµÁ¤µ¤ì¤ëÆ°·ÂÈϰϤËÅϤê¤Þ¤¹¡£¤·¤«¤· Ì̤μºݤ˥°¥é¥Õ¤Ë¸½¤ì¤ëÉôʬ¤Ï¡¢¦È¤ä r ¤Î²¼¸Â¡¢¾å¸Â¤Ë¤è¤Ã¤ÆÀÚ¤êÍ¤¿ ¤¯¤µ¤Ó·¿¾õ¤ËÀ©¸Â¤Ç¤¤Þ¤¹¡£¦È¤ÎÈϰϤÏÅÙñ°Ì¤ÇÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
set rrange [0:*] set polar grid qnorm kdensity theta [0:190] plot DATA with surface, DATA with points
½ñ¼°:
set print set print "-" set print "<filename>" [append] set print "|<shell_command>" set print $datablock [append]
¥Ñ¥é¥á¡¼¥¿¤Ê¤·¤Î set print ¤Ï¡¢½ÐÎϤò <STDERR> ¤ËÉüµ¢¤µ¤»¤Þ¤¹¡£"-" ¤È¤¤¤¦ <filename> ¤Ï <STDOUT> ¤ò°ÕÌ£¤·¤Þ¤¹¡£append ¥Õ¥é¥°¤Ï¥Õ¥¡¥¤¥ë ¤òÄɲà (append) ¥â¡¼¥É¤Ç³«¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥×¥é ¥Ã¥È¥Û¡¼¥à¾å¤Ç¤Ï¡¢<filename> ¤¬ "|" ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤¿¤é¡¢<shell_command> ¤Ø¤Î¥Ñ¥¤¥×¤¬³«¤«¤ì¤Þ¤¹¡£
¥³¥Þ¥ó¥É print ¤ÎÂоݤÏ̾Á°ÉÕ¤¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£¥Ç¡¼¥¿ ¥Ö¥í¥Ã¥¯Ì¾¤Ï '$' ¤Ç»Ï¤Þ¤ê¤Þ¤¹¡£°Ê²¼»²¾È: inline data (18)¡£ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Øʸ»úÎó¤ò½ÐÎϤ¹¤ë¾ì¹ç¡¢²þ¹Ôʸ»ú¤¬Æþ¤Ã¤Æ¤¤¤ë¤È¡¢¤½¤ì¤Ï Ê£¿ô¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¹Ô¤òÀ¸À®¤¹¤ë¤è¤¦¤ËŸ³«¤µ¤ì¤Þ¤¹¡£
1) `set psdir` ¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê 2) ´Ä¶ÊÑ¿ô GNUPLOT_PS_DIR ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê 3) ÁȤ߹þ¤Þ¤ì¤¿¥Ø¥Ã¥À¡¼¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥·¥¹¥Æ¥à¥Ç¥£¥ì¥¯¥È¥ê 4) `set loadpath` ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê
set rgbmax {1.0 | 255} unset rgbmax
rgbimage ¥°¥é¥Õ¤Î RGB (ÀÖ¡¢ÎС¢ÀÄ) ¿§À®Ê¬¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï [0:255] ¤Î ÈϰϤÎÀ°¿ôÃͤǤ¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£set rgbmax 1.0 ¤È¤¹¤ë¤È¡¢gnuplot ¤Ï rgbimage ¤ä rgbalpha ¤Ç¤Î¥°¥é¥Õ¤Î¿§À®Ê¬¤ÎÀ¸À®¤Ë»È¤¦¥Ç¡¼¥¿Ãͤò¡¢ [0:1] ¤ÎÈϰϤμ¿ôÃͤǤ¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£unset rgbmax ¤Ï¡¢¤½¤ì¤ò¥Ç¥Õ ¥©¥ë¥È¤ÎÀ°¿ôÃͤÎÈÏ°Ï [0:255] ¤ËÌᤷ¤Þ¤¹¡£
½ñ¼°:
set samples <samples_1> {,<samples_2>} show samples
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥µ¥ó¥×¥ë¿ô¤Ï 100 ÅÀ¤ÈÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÃͤòÁý¤ä¤¹¤È ¤è¤êÀµ³Î¤ÊÉÁ²è¤¬½ÐÍè¤Þ¤¹¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤ÎÉÁ²è¤Ë¤Ï²¿¤Î±Æ¶Á¤âÍ¿¤¨¤Þ¤»¤ó¤¬¡¢Êä´Ö/¶á»÷¤Î¥ª¥×¥·¥ç¥ó¤¬»È¤ï¤ì¤Æ¤¤¤ë ¾ì¹ç¤Ï¤½¤Î¸Â¤ê¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼»²¾È: plot smooth (99.3.8), set cntrparam (112.16), set dgrid3d (112.25)¡£
2 ¼¡¸µ¤Î¥°¥é¥ÕÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤¤Ï <samples_1> ¤ÎÃͤΤߤ¬´Ø·¸¤·¤Þ¤¹¡£
±£Àþ½èÍý¤Ê¤·¤Ç¶ÊÌÌÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤¤Ï¡¢samples ¤ÎÃͤϸÉΩÀþËè¤Ëɾ²Á ¤µ¤ì¤ë¥µ¥ó¥×¥ë¿ô¤Î»ØÄê¤Ë¤Ê¤ê¤Þ¤¹¡£³Æ v-¸ÉΩÀþ¤Ï <samples_1> ¸Ä¤Î¥µ¥ó¥× ¥ëÅÀ¤ò»ý¤Á¡¢u-¸ÉΩÀþ¤Ï <samples_2> ¸Ä¤Î¥µ¥ó¥×¥ë¿ô¤ò»ý¤Á¤Þ¤¹¡£<samples_1> ¤Î¤ß»ØÄꤹ¤ë¤È¡¢<samples_2> ¤ÎÃÍ¤Ï <samples_1> ¤ÈƱ¤¸ÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ °Ê²¼¤â»²¾È: set isosamples (112.35)¡£
set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>} show size
<xscale> ¤È <yscale> ¤ÏÉÁ²èÁ´ÂΤγÈÂç¤ÎÇÜΨ¤Ç¡¢ÉÁ²èÁ´ÂΤȤϥ°¥é¥Õ¤È¥é ¥Ù¥ë¤È;Çò¤ÎÉôʬ¤ò´Þ¤ß¤Þ¤¹¡£
Îò»ËŪ¤ÊÃí°Õ: gnuplot ¤Î°ÊÁ°¤ÎÈǤǤϡ¢set size ¤ÎÃͤò¡¢½ÐÎϤ¹¤ëÉÁ ²èÎΰè (¥¥ã¥ó¥Ð¥¹) ¤Î¥µ¥¤¥º¤òÀ©¸æ¤¹¤ë¤Î¤Ë¤â»È¤Ã¤Æ¤¤¤¿½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ ¤·¤¿¤¬¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤¬¤½¤¦¤À¤Ã¤¿¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£¸½ºß¤Ï¡¢ 'set size' ¤È 'set term ... size' ¤Î 2 ¤Ä¤Ï¡¢¤Ï¤Ã¤¤ê°ã¤¦Â°À¤òÀß Äꤷ¤Þ¤¹¡£
set term <terminal_type> size <x ñ°Ì>, <y ñ°Ì> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î ¥µ¥¤¥º¡¢¤Þ¤¿¤Ï "¥¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥µ¥¤¥º¥Ñ¥é¥á¡¼¥¿¤ÎÍ ¸ú¤Êñ°Ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¸Ä¡¹¤Î½ÐÎÏ·Á¼°¤Î¥Ø¥ë¥×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï¡¢¥°¥é¥Õ¤Ï¤½¤Î¥¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£
set size <xscale>, <yscale> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤Æ ÁêÂÐŪ¤Ë¿½Ì¤µ¤»¤Þ¤¹¡£1.0 ¤è¤ê¾®¤µ¤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥¥ã¥ó ¥Ð¥¹Á´ÂΤòËä¤á¤º¡¢1.0 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß ¤¬¥¥ã¥ó¥Ð¥¹Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë ¤È¡¢¤¢¤ë½ÐÎÏ·Á¼°¤Ç¤ÏÌäÂ꤬µ¯¤³¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
ratio ¤Ï¡¢»ØÄꤷ¤¿ <xscale>, <yscale> ¤ÎÉÁ²èÈÏ°ÏÆâ¤Ç¡¢¥°¥é¥Õ¤Î¥¢¥¹¥Ú ¥¯¥ÈÈæ (½Ä²£Èæ) ¤ò <r> ¤Ë¤·¤Þ¤¹ (<r> ¤Ï x Êý¸þ¤ÎŤµ¤ËÂФ¹¤ë y Êý¸þ¤Î Ťµ¤ÎÈæ)¡£
<r> ¤ÎÃͤòÉé¤Ë¤¹¤ë¤È¤½¤Î°ÕÌ£¤Ï°ã¤Ã¤ÆÍè¤Þ¤¹¡£<r>=-1 ¤Î¤È¤¡¢x ¼´¡¢y ¼´ ¤ÎÁÐÊý¤Îñ°Ì (¤Ä¤Þ¤ê 1) ¤ÎÌÜÀ¹¤ê¤ÎŤµ¤¬Æ±°ì¡¢¤¹¤Ê¤ï¤ÁÅùĹ (isotropic) ¤Ë¤Ê¤ë¤è¤¦ÀßÄꤷ¤Þ¤¹¡£°Ê²¼¤â»²¾È: set isotropic (112.37)¡£ ¤³¤ì¤Ï¡¢3 ¼¡¸µÍѤΥ³¥Þ¥ó¥É set view equal xy ¤Î 2 ¼¡¸µ¤Ç¤ÎƱÅùʪ¤Ç¤¹¡£ <r>=-2 ¤Î¤È¤¡¢y ¼´¤Îñ°ÌÌÜÀ¹¤ê¤ÎŤµ¤Ï x ¼´¤Îñ°ÌÌÜÀ¹¤ê¤ÎŤµ¤Î 2 ÇÜ ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£<r> ¤¬Éé¤ÎÃͤ˴ؤ·¤Æ°Ê²¼Æ±ÍͤǤ¹¡£°Ê²¼¤â»²¾È: set isotropic (112.37)¡£
gnuplot ¤¬»ØÄꤵ¤ì¤¿¥¢¥¹¥Ú¥¯¥ÈÈæ¤Î¥°¥é¥Õ¤ò¤Á¤ã¤ó¤È½ñ¤±¤ë¤«¤ÏÁªÂò¤µ¤ì ¤ë½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Þ¤¹¡£¥°¥é¥Õ¤ÎÎΰè¤Ï½ÐÎϤλØÄꤵ¤ì¤¿Éôʬ¤Ë¤Á¤ã¤ó¤È¼ý ¤Þ¤ê¡¢¥¢¥¹¥Ú¥¯¥ÈÈ椬 <r> ¤Ç¤¢¤ë¤è¤¦¤ÊºÇÂç¤ÎĹÊý·Á¤È¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó ŬÅö¤Ê;Çò¤â»Ä¤·¤Þ¤¹¤¬)¡£
set size square ¤Ï set size ratio 1 ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£
noratio ¤È nosquare ¤Ï¤¤¤º¤ì¤â¥°¥é¥Õ¤ò¤½¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç¤Î ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ËÌᤷ¤Þ¤¹¤¬¡¢<xscale> ¤È <yscale> ¤Ï¤½¤Î¥Ç¥Õ ¥©¥ë¥È¤ÎÃÍ (1.0) ¤Ë¤ÏÌᤷ¤Þ¤»¤ó¡£
ratio ¤È square ¤Ï 3 ¼¡¸µÉÁ²è¤Ç¤Ï°ÕÌ£¤ò»ý¤Á¤Þ¤»¤ó¤¬¡¢set view map ¤ò»ÈÍѤ·¤¿ 3 ¼¡¸µÉÁ²è¤Î 2 ¼¡¸µ¼Í±Æ¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ °Ê²¼¤â»²¾È: set view equal (112.104.2)¡£¤³¤ì¤Ï¡¢3 ¼¡¸µ¤Î x ¼´¤È y ¼´¤ò¶¯À©Åª¤ËƱ¤¸¥¹¥±¡¼¥ë¤Ë ¤·¤Þ¤¹¡£
Îã:
¥°¥é¥Õ¤¬¸½ºß¤Î¥¥ã¥ó¥Ð¥¹¤òËä¤á¤ë¤è¤¦¤ÊÂ礤µ¤ËÀßÄꤷ¤Þ¤¹:
set size 1,1
¥°¥é¥Õ¤òÄ̾ï¤ÎȾʬ¤ÎÂ礤µ¤ÇÀµÊý·Á¤Ë¤·¤Þ¤¹:
set size square 0.5,0.5
¥°¥é¥Õ¤Î¹â¤µ¤ò²£Éý¤Î 2 Çܤˤ·¤Þ¤¹:
set size ratio 2
set style data spiderplot unset border unset tics set key noautotitle set size ratio 1.0
ÉÁ²è¸ì¤Ë¤³¤ì¤é¤ò¸µ¤Î¾õÂÖ¤ËÉüµ¢¤¹¤ë¤Ë¤Ï¡¢reset ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°:
set style function <style> set style data <style> show style function show style data
»ØÄê¤Ç¤¤ëÉÁ²èÍ×ÁǤΥǥե©¥ë¥È¥¹¥¿¥¤¥ë¤âÀßÄê¤Ç¤¤Þ¤¹¡£
½ñ¼°:
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 {<n>} {opaque|transparent} {{no}border} {fillcolor} set style watchpoint labels <label options>
½ñ¼°:
set style arrow <index> default set style arrow <index> {nohead | head | backhead | heads} {size <length>,<angle>{,<backangle>} {fixed}} {filled | empty | nofilled | noborder} {front | back} { {linestyle | ls <line_style>} | {linetype | lt <line_type>} {linewidth | lw <line_width} {linecolor | lc <colorspec>} {dashtype | dt <dashtype>} } unset style arrow show style arrow
<index> ¤ÏÀ°¿ô¤Ç¡¢¤½¤ì¤ÇÌð¤Î¥¹¥¿¥¤¥ë (arrowstyle) ¤òÆÃÄꤷ¤Þ¤¹¡£
default ¤ò»ØÄꤹ¤ë¤È¡¢Á´¤Æ¤Î arrow ¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤Ï¤½¤Î¥Ç¥Õ¥©¥ë ¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
<index> ¤Î arrowstyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£<index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
¥³¥Þ¥ó¥É plot ¤Þ¤¿¤Ï splot ¤«¤é¸Æ¤Ó½Ð¤·¤¿ arrow ¥¹¥¿¥¤¥ë¤Ë¤Ï¡¢¥Ç¡¼ ¥¿Ëè²ÄÊѤÊÀþ¿§ (lc variable ¤ä lc rgb variable) ¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤¡¢ ¤½¤ì¤Ï¤½¤ì¤ËÂбþ¤¹¤ë using »ØÄê¤Ë¤è¤ë¥Ç¡¼¥¿¤ÎÄɲÃÎó¤¬É¬ÍפȤʤê¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¡¢set arrow ¤ÇºîÀ®¤¹¤ë¸ÄÊ̤Πarrow ¤ËÂФ·¤Æ¤Ï¡¢¤½¤Î¥¹¥¿¥¤¥ë ¤Ï¿ʬͱפʤâ¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
nohead ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÌðÀè¤Î¤Ê¤¤Ì𡢤¹¤Ê¤ï¤ÁÀþʬ¤ò½ñ¤¯¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¾å¤ËÀþʬ¤òÉÁ¤¯Ê̤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ¤Ä¤ÎÌðÀ褬¤Ä¤¤¤Æ¤¤¤Þ¤¹¡£heads ¤Î»ØÄê¤ÇÀþʬ¤Îξü¤ËÌðÀ褬ÉÁ¤«¤ì¤Þ¤¹¡£
ÌðÀè¤ÎÂ礤µ¤Ï size <length>,<angle> ¤Þ¤¿¤Ï size <length>,<angle>,<backangle> ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£<length> ¤ÏÌðÀè ¤Î³Æ»Þ¤ÎŤµ¤Ç¡¢<angle> ¤ÏÌðÀè¤Î»Þ¤ÈÌð¼´¤¬¤Ê¤¹³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤Ç¤¹¡£ <length> ¤Îñ°Ì¤Ï x ¼´¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤½¤ì¤Ï <length> ¤ÎÁ°¤Ë first, second, graph, screen, character ¤ò¤Ä¤±¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤È¤Æ¤âû¤¤Ìð¤ÎÌðÀè¤Ï¾®¤µ¤¯¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¡¢size ¥³ ¥Þ¥ó¥É¤Î¸å¤í¤Ë fixed ¤ò»È¤¦¤³¤È¤Ç̵¸ú¤Ë¤Ç¤¤Þ¤¹¡£
<backangle> ¤Ï¡¢ÌðÀè¤Î¸å¤í¤ÎÉôʬ¤ÎÌ𼴤ȤÎÀÚ¤ê³Ñ (<angle> ¤ÈƱ¤¸Êý ¸þ¡¢Ã±°Ì¤ÏÅÙ) ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥¹¥¿¥¤¥ë¤¬ nofilled ¤Î¾ì¹ç¤Ï¤³¤ì¤ò̵»ë¤· ¤Þ¤¹¡£
filled ¤ò»ØÄꤹ¤ë¤È¡¢ÌðÀè¤Î²ó¤ê¤ÎÀþ (¶³¦Àþ) ¤òÉÁ¤¡¢ÌðÀè¤òÅɤê¤Ä¤Ö ¤·¤Þ¤¹¡£noborder ¤ò»ØÄꤹ¤ë¤È¡¢ÌðÀè¤ÏÅɤê¤Ä¤Ö¤·¤Þ¤¹¤¬¡¢¶³¦Àþ¤ÏÉÁ¤ ¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¡¢ÌðÀè¤ÎÀèü¤¬¥Ù¥¯¥È¥ë¤Î½ªÅÀ¥Ô¥Ã¥¿¥ê¤Î¾ì½ê¤ËÃÖ¤«¤ì¡¢¤½ ¤ÎÌðÀè¤ÏÁ´ÂΤȤ·¤Æ¾¯¤·¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¡£ÅÀÀþ¤ÇÌð¤òÉÁ¤¯¾ì¹ç¤Ï¡¢ÅÀÀþ¤Î¶³¦ Àþ¤Ï±ø¤¤¤Î¤Ç¡¢¾ï¤Ë noborder ¤ò»È¤¦¤Ù¤¤Ç¤¹¡£ÌðÀè¤ÎÅɤê¤Ä¤Ö¤·¤Ï¡¢¤¹¤Ù ¤Æ¤Î½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£
Àþ¼ï¤Ï¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤«¤éÁª¤Ö¤³¤È¤â¤Ç¤¤Þ¤¹¤· (°Ê²¼»²¾È: set style line (112.86.8))¡¢ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë <line_type> ¤ÎÃÍ (¥Ç¥Õ ¥©¥ë¥È¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤ÎÈÖ¹æ) ¤½¤·¤Æ <linewidth> (¥Ç¥Õ¥©¥ë¥È ¤ÎÉý¤ÎÇÜ¿ô) ¤ò»È¤Ã¤Æ¤³¤³¤ÇÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¤·¤«¤·¡¢¥æ¡¼¥¶¡¼ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¡¢¤½¤Î°À (Àþ¼ï¡¢ Éý) ¤Ï¡¢Ã±¤Ë¾¤Î set style arrow ¥³¥Þ¥ó¥É¤ÇŬÅö¤ÊÈÖ¹æ¤ä lt, lw ¤Ê¤É¤ò»ØÄꤷ¤Æ¤â¡¢Êѹ¹¤Ï¤Ç¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢Ìð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»Ø Äꤵ¤ì¤¿¾ì¹ç (¥Ç¥Õ¥©¥ë¥È) ¤ÏÌð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤ÇÌ𤬸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
ÌðÀ褬¤Ê¤¯¡¢ÇܤÎÉý¤¬Ìð¤òÉÁ¤¯¤Ë¤Ï:
set style arrow 1 nohead lw 2 set arrow arrowstyle 1
¤½¤Î¾¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set arrow (112.2)¡£
½ñ¼°:
set style boxplot {range <r> | fraction <f>} {{no}outliers} {pointtype <p>} {candlesticks | financebars} {medianlinewidth <width>} {separation <x>} {labels off | auto | x | x2} {sorted | unsorted}
boxplot ¤ÎÈ¢¤Ï¡¢¾ï¤Ë¥Ç¡¼¥¿ÅÀ¤ÎÂè°ì»Íʬ°Ì¤«¤éÂè»°»Íʬ°Ì¤ÎÃͤÎÈϰϤˤ«¤« ¤Ã¤Æ¤¤¤Þ¤¹¡£È¢¤«¤é±äŤµ¤ì¤ëÈ¢¤Ò¤²¤Î¸Â³¦¤Ï¡¢2 ¤Ä¤Î°Û¤Ê¤ëÊýË¡¤ÇÀ©¸æ¤Ç¤ ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢È¢¤Ò¤²¤Ï¡¢¤½¤ÎÈ¢¤Î¤½¤ì¤¾¤ì¤Îü¤«¤é¡¢»Íʬ°ÌÈϰϤΠ1.5 ÇÜ (¤¹¤Ê¤ï¤Á¡¢¤½¤ÎÈ¢¤Î¸·Ì©¤Ê¿âľÊý¸þ¤Î¹â¤µ) ¤ËÅù¤·¤¤ÈϰϤˤޤDZäĹ ¤µ¤ì¤Þ¤¹¡£È¢¤Ò¤²¤½¤ì¤¾¤ì¤Ï¡¢¥Ç¡¼¥¿½¸¹ç¤Î¤¢¤ëÅÀ¤Ë°¤¹¤ë y ¤ÎÃͤǽªÎ»¤¹ ¤ë¤è¤¦¤Ë¡¢¥á¥¸¥¢¥ó¤Ë¸þ¤«¤Ã¤ÆÀÚ¤ê¼Î¤Æ¤é¤ì¤Þ¤¹¡£»Íʬ°ÌÈϰϤÎÃúÅÙ 1.5 ÇÜ ¤ÎÃͤÎÅÀ¤¬¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤«¤é¡¢È¢¤Ò¤²¤Ï¤½¤Î̾Ìܾå¤ÎÈϰϤè¤ê¤âû¤¯¤Ê ¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï°Ê²¼¤ËÂбþ¤·¤Þ¤¹¡£
set style boxplot range 1.5
¤â¤¦°ì¤Ä¤ÎÊýË¡¤È¤·¤Æ¡¢È¢¤Ò¤²¤¬¤«¤«¤ëÅÀ¤ÎÁí¿ô¤Î³ä¹ç (fraction) ¤ò»ØÄꤹ ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤½¤ÎÈϰϤϥ᥸¥¢¥óÃͤ«¤é¡¢¥Ç¡¼¥¿½¸¹ç¤Î»ØÄê ¤·¤¿Ê¬¤ò°Ï¤¤¹þ¤à¤Þ¤Ç¡¢ÂоΤ˱䍵¤ì¤Þ¤¹¡£¤³¤Î¤È¤¤â¡¢¸Ä¡¹¤ÎÈ¢¤Ò¤²¤Ï¥Ç ¡¼¥¿½¸¹çÆâ¤ÎÅÀ¤Îü¤Þ¤Ç¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£¥Ç¡¼¥¿½¸¹ç¤Î 95% ¤ÎÅÀ¤ò¤Ï¤ë¤Ë¤Ï °Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
set style boxplot fraction 0.95
È¢¤Ò¤²¤ÎÈϰϤγ°¤Ë¤¢¤ëǤ°Õ¤ÎÅÀ¤Ï¡¢outliers (¸ÉΩ¤·¤¿É¸ËÜÃÍ) ¤È¸«¤Ê¤µ¤ì ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤é¤ò¤Ò¤È¤Ä¤Ò¤È¤Ä±ß (pointtype 7) ¤ÇÉÁ¤¤Þ¤¹¤¬¡¢ ¥ª¥×¥·¥ç¥ó nooutliers ¤Ï¤³¤ì¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ ÉÁ²è¤µ¤ì¤Ê¤¤ outliers ¤Ï¡¢autoscaling ¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï boxplot ¤Ï candlesticks ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤·¤Þ¤¹¤¬¡¢ financebars ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤¹¤ë¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£
È¢¤Î¶³¦¤ÈƱ¤¸Àþ¼ï¤ò»È¤Ã¤Æ¡¢¥á¥¸¥¢¥ó¤ò¼¨¤¹²£ÃÇÀþ¤òÉÁ¤¤Þ¤¹¤¬¡¢¤½¤Î¥á¥¸ ¥¢¥óÀþ¤ò¤è¤êÂÀ¤¯¤·¤¿¤±¤ì¤Ð¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£
set style boxplot medianlinewidth 2.0
¥á¥¸¥¢¥óÀþ¤¬É¬Íפʤ±¤ì¤Ð¡¢¤½¤ì¤ò 0 ¤Ë¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤¡£
boxplot ¤Î using »ØÄ꤬ 4 ÎóÌܤò»ý¤Ä¾ì¹ç¡¢¤½¤ÎÎó¤ÎÃͤϤ¢¤ë°ø»ÒÊÑ¿ô¤ÎÎ¥ »¶Åª¤Ê¥ì¥Ù¥ëÃͤǤ¢¤ë¤È¸«¤Ê¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤½¤Î°ø»ÒÊÑ¿ô¤Î¥ì¥Ù¥ë¤Î¿ô¤È Ʊ¤¸¤À¤±¤ÎÊ£¿ô¤Î boxplot ¤¬ÉÁ¤«¤ì¤Þ¤¹¡£¤½¤ì¤é¤Î boxplot ¤ÎÎÙ¤ê¹ç¤¦¤â¤Î Ʊ»Î¤Îµ÷Î¥¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1.0 (x ¼´¤Îñ°Ì¤Ç) ¤Ç¤¹¤¬¡¢¤³¤Î´Ö³Ö¤Ï¥ª¥×¥· ¥ç¥ó separation ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó labels ¤Ï¡¢¤³¤ì¤é¤Î boxplot (¤½¤ì¤¾¤ì¥Ç¡¼¥¿½¸¹ç¤Î¤¢¤ëÉôʬ ¤ËÂбþ¤¹¤ë) ¤Î¤É¤³¤Ë¡¢¤É¤Î¤è¤¦¤Ë¥é¥Ù¥ë¤ò¤Ä¤±¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï°ø»Ò¤ÎÃͤò¿åÊ¿¼´ (x ¤« x2 ¤Î¤¤¤º¤ì¤« plot ¤Ç»È¤ï¤ì¤Æ¤¤¤ëÊý) ¤ÎÌÜ À¹¥é¥Ù¥ë¤Ë½ÐÎϤ·¤Þ¤¹¡£¤³¤ì¤Ï¥ª¥×¥·¥ç¥ó¤Î labels auto ¤ËÂбþ¤·¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó labels x, labels x2 ¤Ë¤è¤Ã¤Æ¡¢¶¯À©Åª¤Ë x ¼´¡¢x2 ¼´¤Ë¤½ ¤ì¤¾¤ì½ÐÎϤµ¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢labels off ¤Ç¥ª¥Õ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢°ø»ÒÊÑ¿ô¤Î°Û¤Ê¤ë¥ì¥Ù¥ë¤ËÂбþ¤¹¤ë boxplot ¤ÏÀ°Î󲽤Ϥ» ¤º¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤½¤Î¥ì¥Ù¥ë¤¬¸½¤ì¤ë½çÈÖ¤ËÉÁ²è¤·¤Þ¤¹¡£¤³¤ÎµóÆ°¤Ï¥ª¥× ¥·¥ç¥ó¤Î unsorted ¤ËÂбþ¤·¤Þ¤¹¤¬¡¢¥ª¥×¥·¥ç¥ó sorted ¤ò»ÈÍѤ¹¤ë¤È¡¢ ¤Þ¤º¥ì¥Ù¥ë¤ò¼½ñ½ç¤Ë¥½¡¼¥È¤·¡¢¤½¤Î½ç¤Ë boxplot ¤òÉÁ²è¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó separation, labels, sorted, unsorted ¤Ï¡¢plot ¤Ë 4 ÎóÌܤλØÄê¤òÍ¿¤¨¤¿¾ì¹ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£
°Ê²¼»²¾È: boxplot (37), candlesticks (39), financebars (45)¡£
½ñ¼°:
set style data <plotting-style> show style data
ÁªÂò¹àÌܤˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plotting styles (II)¡£show style data ¤Ï ¸½ºß¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿ÉÁ²è¥¹¥¿¥¤¥ë¤òɽ¼¨¤·¤Þ¤¹¡£
½ñ¼°:
set style fill {empty | {transparent} solid {<density>} | {transparent} pattern {<n>}} {border {lt} {lc <colorspec>} | noborder}
¥Ç¥Õ¥©¥ë¥È¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ï empty ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó solid ¤Ï¡¢½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î¿§¤Ç¤Îñ¿§ Åɤê¤ò¹Ô¤¤¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ <density> ¤ÏÅɤê¤Ä¤Ö¤·¿§¤Î¶¯¤µ¤òɽ¤·¤Æ¤¤¤Æ <density> ¤¬ 0.0 ¤Ê¤éÈ¢¤Ï¶õ¡¢<density> ¤¬ 1.0 ¤Ê¤éÈ¢¤Ï¤½¤ÎÆâÉô¤Ï¸½ºß¤Î Àþ¼ï¤È´°Á´¤ËƱ¤¸¿§¤ÇÅɤé¤ì¤Þ¤¹¡£½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢¤³¤Î¶¯¤µ¤òϢ³Ū¤Ë ÊѲ½¤µ¤»¤é¤ì¤ë¤â¤Î¤â¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î¤â¤Î¤Ï¡¢ÉôʬŪ¤ÊÅɤê¤Ä¤Ö¤·¤Î´ö ¤Ä¤«¤Î¥ì¥Ù¥ë¤ò¼ÂÁõ¤·¤Æ¤¤¤ë¤Ë²á¤®¤Þ¤»¤ó¡£¥Ñ¥é¥á¡¼¥¿ <density> ¤¬Í¿¤¨¤é ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤Ë¤Ê¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó pattern ¤Ï¡¢½ÐÎϥɥ饤¥Ð¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤ë¥Ñ¥¿¡¼¥ó¤Ç¤ÎÅÉ ¤ê¤Ä¤Ö¤·¤ò¹Ô¤¤¤Þ¤¹¡£ÍøÍѤǤ¤ëÅɤê¤Ä¤Ö¤·¥Ñ¥¿¡¼¥ó¤Î¼ïÎà¤È¿ô¤Ï½ÐÎϥɥ饤 ¥Ð¤Ë°Í¸¤·¤Þ¤¹¡£Åɤê¤Ä¤Ö¤·¤Î boxes ¥¹¥¿¥¤¥ë¤ÇÊ£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤òÉÁ²è¤¹ ¤ë¾ì¹ç¤½¤Î¥Ñ¥¿¡¼¥ó¤Ï¡¢Ê£¿ô¤Î¶ÊÀþ¤ÎÉÁ²è¤Ë¤ª¤±¤ëÀþ¼ï¤Î¼þ´ü¤ÈƱÍÍ¡¢Í¸ú¤Ê ¥Ñ¥¿¡¼¥ó¤ò¡¢¥Ñ¥¿¡¼¥ó <n> ¤«¤é»Ï¤á¤Æ¼þ´üŪ¤ËÍøÍѤ·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó empty ¤Ï¡¢È¢¤òÅɤê¤Ä¤Ö¤·¤Þ¤»¤ó¤¬¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
ÅɤêÄÙ¤·¿§ (fillcolor <colorspec>) ¤Ï¡¢ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë (fill style) ¤«¤éʬΥ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢fillstyle ¤ÏÉÁ²èÍ×ÁǤ䥪¥Ö¥¸¥§¥¯¥È¤ÇÊÌ ¡¹¤Î¿§¤ò»ý¤Ã¤¿¤Þ¤Þ¶¦Í¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£fillstyle ¤ò¼õ¤±¤Ä¤±¤ëÂçÄñ¤Î ¾ì½ê¤Ç fillcolor ¤ò»ØÄê¤Ç¤¤Þ¤¹¡£fillcolor ¤Ï fc ¤Î¾Êά·Á¤â»È¤¨¤Þ¤¹¡£ »ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢ÅɤêÄÙ¤·¿§¤Ï¸½ºß¤ÎÀþ¼ï (linetype) ¤«¤é¼è¤ê¤Þ¤¹¡£ Îã:
plot FOO with boxes fillstyle solid 1.0 fillcolor "cyan"
# ÅɤêÄÙ¤·¤Ï¶¯ÅÙȾʬ¡¢¶³¦¤ÏƱ¤¸¿§¤ÇÁ´¶¯ÅÙ set style fill solid 0.5 border # ÅɤêÄÙ¤·¤ÏȾʬƩ²á¡¢¶³¦¤Ï¼ÂÀþ¤Î¹õ (Àþ¼ï -1) set style fill transparent solid 0.5 border -1 # ¸½ºß¤Î¿§¤Ç¤Î¥Ñ¥¿¡¼¥óÅɤêÄÙ¤·¡¢¶³¦¤ÏÀþ¼ï 5 ¤Î¿§¤Ç plot ... with boxes fillstyle pattern 2 border lt 5 # ¿å¿§ (cyan) ¤Ç¤ÎÎΰè¤ÎÅɤêÄÙ¤·¡¢¶³¦¤ÏÀÄ plot ... with boxes fillcolor "cyan" fs solid border linecolor "blue"
Ãí°Õ: fill ¥¹¥¿¥¤¥ë¤Î border (¶³¦) °À¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¥â¡¼¥É¤Î closed (ÊĶÊÀþ) ¤Î with filledcurves ¤Î¥°¥é¥Õ¤Ë¤·¤«±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£
Æ©ÌÀ¤ÊÅɤê¤Ä¤Ö¤·Îΰè¤ò´Þ¤à¥°¥é¥Õ¤ò¸«¤¿¤êºî¤Ã¤¿¤ê¤¹¤ë¤Î¤Ë¤Ï¡¢Ê̤ÊÀ©¸Â¤¬ ¤¢¤ê¤¦¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢png ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢"truecolor" ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÆ©ÌÀ²½¤ÎÅɤêÄÙ¤·¤¬ÍøÍѤǤ¤Þ¤¹¡£ PDF ¥Õ¥¡¥¤¥ë¤Ë¤ÏÆ©ÌÀ²½Îΰ褬Àµ¤·¤¯µ½Ò¤µ¤ì¤Æ¤¤¤Æ¤â¡¢PDF ¤Îɽ¼¨¥½¥Õ¥È¤Ë ¤è¤Ã¤Æ¤Ï¤½¤ì¤òÀµ¤·¤¯É½¼¨¤Ç¤¤Ê¤¤¤³¤È¤â¤¢¤ê¤¨¤Þ¤¹¡£¼ÂºÝ¤Ë PostScript ¥× ¥ê¥ó¥¿¤Ç¤ÏÌäÂê¤Ï¤Ê¤¤¤Î¤Ë¡¢Ghostscript/gv ¤Ç¤Ï¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·Îΰè¤ò Àµ¤·¤¯É½¼¨¤Ç¤¤Þ¤»¤ó¡£
½ñ¼°:
set style function <plotting-style> show style function
Èó¿ä¾©: gnuplot ¤¬»ÈÍѤ¹¤ëÀþ¼ï¤ÎÈϰϤòÍÍѤʤâ¤Î¤ËºÆÄêµÁ¤¹¤ë¤Ë¤Ï¡¢¤³¤ì ¤ÎÂå¤ï¤ê¤Ë set linetype ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: set linetype (112.41)¡£
½ñ¼°:
set style line <index> default set style line <index> {{linetype | lt} <line_type> | <colorspec>} {{linecolor | lc} <colorspec>} {{linewidth | lw} <line_width>} {{pointtype | pt} <point_type>} {{pointsize | ps} <point_size>} {{pointinterval | pi} <interval>} {{pointnumber | pn} <max_symbols>} {{dashtype | dt} <dashtype>} {palette} unset style line show style line
default ¤Ï¡¢Á´¤Æ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤ò¤½¤ì¤ÈƱ¤¸ index ¤ò»ý¤Ä Àþ¼ï (linetype) ¤ËÀßÄꤷ¤Þ¤¹¡£
<index> ¤Î linestyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£<index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
¤³¤Î¤è¤¦¤Ë¤Ä¤¯¤é¤ì¤ë¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Ï¡¢¥