gnuplot-info@lists.sourceforge.net
gnuplot-bugs@lists.sourceforge.net
http://sourceforge.net/projects/gnuplot
Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley
Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
Permission to modify the software is granted, but not the right to
distribute the complete modified source code. Modifications are to
be distributed as patches to the released version. Permission to
distribute binaries produced by compiling modified sources is granted,
provided you
1. distribute the corresponding source modifications from the released version in the form of a patch file along with the binaries, 2. add special version identification to distinguish your version in addition to the base release version number, 3. provide your name and address as the primary contact for the support of your modified version, and 4. retain our contact information in regard to use of the base software.
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 additions: See list of contributors at head of this document.
(°Ê²¼¤ª¤ª¤Þ¤«¤ÊÌõ; Ìõ¤ÏÀµ¤·¤¯¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¤Î¤Ç¾Ü¤·¤¯¤Ï¾åµ¤Î¸¶Ê¸¤òÅö¤¿¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ìõ¼Ô¤ÏÀÕǤ¤ò»ý¤Á¤Þ¤»¤ó¡£)
Copyright (C) 1986 - 1993, 1998, 2004, 2007 Thomas Williams, Colin Kelley
¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤È¤½¤ÎÉÕ°ʸ½ñ¤Î»ÈÍÑ¡¢Ê£À½¡¢ÇÛÉۤεö²Ä¤Ï¡¢¾åµ¤ÎÃøºî¸¢(copyright) ɽ¼¨¤¬¡¢Á´¤Æ¤ÎÊ£À½Êª¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¡¢¤ª¤è¤ÓÃøºî¸¢É½¼¨¤È ¤³¤ÎµöÂúʸ¤ÎξÊý¤¬¤½¤Î»Ù±çʸ½ñ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¤ò¾ò·ï¤È¤·¤¿¾å¤Ç¡¢¤³¤Î ʸ½ñ¤Ë¤è¤êÊݾڤµ¤ì¤Þ¤¹¡£
¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤Î½¤Àµ¤âǧ¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢½¤Àµ¤ò´Þ¤àÁ´¥½¡¼¥¹¥³
¡¼¥É¤ÎÇÛÉۤθ¢Íø¤Ïǧ¤á¤é¤ì¤Þ¤»¤ó¡£½¤Àµ¤Ï¥ê¥ê¡¼¥¹ÈǤËÂФ¹¤ë¥Ñ¥Ã¥Á¤Î·Á¤Ç
ÇÛÉÛ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£½¤Àµ¤µ¤ì¤¿¥½¡¼¥¹¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æºî¤é¤ì¤¿¥Ð¥¤
¥Ê¥ê¤ÎÇÛÉۤϡ¢°Ê²¼¤Î¾ò·ï¤Î¸µ¤Çǧ¤á¤é¤ì¤Þ¤¹:
1. ¥ê¥ê¡¼¥¹ÈǤ«¤é¤Î¥½¡¼¥¹¤Î½¤ÀµÉôʬ¤ò¡¢¥Ñ¥Ã¥Á¤Î·Á¤Ç¥Ð¥¤¥Ê¥ê¤È¶¦¤ËÇÛ ÉÛ¤¹¤ë¤³¤È 2. ¥Ù¡¼¥¹¤È¤Ê¤ë¥ê¥ê¡¼¥¹ÈǤȶèÊ̤¹¤ë¤¿¤á¤Ë¡¢¤½¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ËÆÃÊÌ ¤Ê¥Ð¡¼¥¸¥ç¥ó»ØÄê»Ò¤òÉղ乤뤳¤È 3. ¤½¤Î½¤ÀµÈǤΥµ¥Ý¡¼¥ÈÍѤˡ¢¤¢¤Ê¤¿¤Î̾Á°¤È¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¤È ¤òÄ󶡤¹¤ë¤³¤È 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 ¼¡¸µ¤Î¡¢Â¿¤¯¤Î¼ïÎà¤Î¥°¥é¥Õ¤ò¥µ¥Ý¡¼¥È¤·¤Æ ¤¤¤Þ¤¹: ÀÞÀþ¥°¥é¥Õ¡¢ÅÀ¥°¥é¥Õ¡¢ËÀ¥°¥é¥Õ¡¢Åù¹âÀþ¡¢¥Ù¥¯¥È¥ë¾ìÉÁ²è¡¢¶ÊÌÌ¡¢ ¤½¤·¤Æ¤½¤ì¤é¤Ë´ØÏ¢¤¹¤ë¤µ¤Þ¤¶¤Þ¤Êʸ»úÎóÅù¡£¤½¤·¤Æ¤µ¤é¤Ë¤¤¤¯¤Ä¤«¤ÎÆÃÊÌ¤Ê ÉÁ²è·¿¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
gnuplot ¤Ï¿¤¯¤Î°Û¤Ê¤ë½ÐÎϤò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹: ÂÐÏ÷¿¥¹¥¯¥ê¡¼¥ó½ÐÎÏ·Á ¼° (¥Þ¥¦¥¹¤ä¥Û¥Ã¥È¥¡¼ÆþÎϤâ²Äǽ)¡¢¥Ú¥ó¥×¥í¥Ã¥¿¤ä¸½ºß¤Î¥×¥ê¥ó¥¿¤Ø¤Îľ ÀܽÐÎÏ¡¢¤Þ¤¿¤Ï¿¤¯¤Î¥Õ¥¡¥¤¥ë·Á¼°¤Ø¤Î½ÐÎÏ (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, ...)¡£gnuplot ¤Ï¡¢Íưפ˿·¤·¤¤½ÐÎÏ·Á¼°¤òÄɲä¹¤ë ¤è¤¦³ÈÄ¥¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ºÇ¶áÄɲ䵤줿ÂÐÏ÷¿½ÐÎÏ·Á¼°¤Ë¤Ï¡¢ wxWidgets (Ê£¿ô¤Î¥×¥é¥Ã¥È¥Û¡¼¥à¤ÇÍøÍѲÄǽ), Qt ¤ò¸µ¤Ë¤·¤¿¤â¤Î¤¬¤¢¤ê¤Þ ¤¹¡£svg ¤ä HTML5 canvas ½ÐÎÏ·Á¼°¤òÍøÍѤ¹¤ì¤Ð¡¢¥°¥é¥Õ¤ò Web ¥Ú¡¼¥¸Æâ¤Ë ¥Þ¥¦¥¹ÍøÍѲÄǽ¤Ê·Á¤ÇËä¤á¹þ¤ó¤À½ÐÎϤòÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
gnuplot ¤Î¥³¥Þ¥ó¥É¸À¸ì¤ÏÂçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¾®Ê¸»ú¤Ç ½ñ¤«¤ì¤¿¥³¥Þ¥ó¥É¤ä´Ø¿ô̾¤Ï¡¢¤½¤ì¤é¤òÂçʸ»ú¤Ç½ñ¤¤¤¿¤â¤Î¤È¤ÏƱ¤¸¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó¡£¤¤¤º¤ì¤Î¥³¥Þ¥ó¥É¤â¡¢¤¢¤¤¤Þ¤¤¤µ¤Î̵¤¤¸Â¤ê¤Ë¤ª¤¤¤Æ¾Êά¤¹¤ë¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£1 ¹ÔÃæ¤Ë¤Ï¥»¥ß¥³¥í¥ó (;) ¤Ç¶èÀڤäÆÊ£¿ô¤Î¥³¥Þ¥ó¥É¤ò½ñ¤¯¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£Ê¸»úÎó¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉä¤Î¤É¤Á¤é¤«¤Ç½ñ¤»Ï¤á ¤Þ¤¹¤¬¡¢Î¾¼Ô¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ê¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: syntax (24))¡£Îã:
load "filename" cd 'dir'
¥³¥Þ¥ó¥É¤Ï¡¢Ê£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Ï¡¢ºÇ½ª¹Ô°Ê³°¤ÎÁ´¤Æ¤Î¹Ô¤Î¹ÔËö¤Ë¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \ ) ¤ò½ñ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¥Ð¥Ã¥¯¥¹¥é ¥Ã¥·¥å¤Ïɬ¤º³Æ¹Ô *ºÇ¸å* ¤Îʸ»ú¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤½¤Î·ë²Ì¤È¤·¤Æ¥Ð¥Ã ¥¯¥¹¥é¥Ã¥·¥å¤È¡¢¤½¤ì¤Ë³¤¯²þ¹Ôʸ»ú¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤«¤Î¤è¤¦¤Ë°·¤ï¤ì¤Þ¤¹¡£ ¤Ä¤Þ¤ê¡¢²þ¹Ôʸ»ú¤¬¥¹¥Ú¡¼¥¹¤ÎÌò¤ò¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¤·¡¢²þ¹Ô¤Ë¤è¤Ã¤Æ¥³ ¥á¥ó¥È¤¬½ªÎ»¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¡£¤Ç¤¹¤«¤éÊ£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¹Ô¤ÎÀèƬ¤ò¥³ ¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤È¡¢¤½¤Î¥³¥Þ¥ó¥ÉÁ´ÂΤ¬¥³¥á¥ó¥È¥¢¥¦¥È¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ ¤¹ (°Ê²¼»²¾È: comments (9))¡£¤Ê¤ªÃí°Õ¤·¤Þ¤¹¤¬¡¢¤â¤·¡¢Ê£¿ô¹Ô¤Î¥³¥Þ¥ó¥É¤Î ¤É¤³¤«¤Ç¥¨¥é¡¼¤¬µ¯¤¤¿¤È¤¡¢¥Ñ¡¼¥µ¤Ï¤½¤Î¾ì½ê¤òÀµ³Î¤Ë¤Ï»Ø¼¨¤¹¤ë¤³¤È¤¬¤Ç ¤¤Þ¤»¤ó¤·¡¢¤Þ¤¿¡¢Àµ¤·¤¤¹Ô¤Ë»Ø¼¨¤¹¤ëɬÍפâ¤Ê¤¤¤Ç¤·¤ç¤¦¡£
¤³¤Î¥É¥¥å¥á¥ó¥È¤Ë¤ª¤¤¤Æ¡¢Ãæ³ç¸Ì ({}) ¤Ï¾Êά²Äǽ¤Ê°ú¿ô¤òɽ¤¹¤â¤Î¤È¤·¡¢ ½ÄËÀ (| ) ¤Ï¡¢¸ß¤¤¤ËÇÓ¾Ū¤Ê°ú¿ô¤ò¶èÀÚ¤ë¤â¤Î¤È¤·¤Þ¤¹¡£gnuplot ¤Î¥¡¼ ¥ï¡¼¥É¤ä help ¤Ë¤ª¤±¤ë¹àÌÜ̾¤Ï¡¢¥Ð¥Ã¥¯¥¯¥ª¡¼¥È (¡®) ¤Þ¤¿¤Ï²Äǽ¤Ê¾ì¹ç ¤Ë¤Ï boldface (ÂÀ»ú) ¤Çɽ¤·¤Þ¤¹¡£³Ñ³ç¸Ì (< > ) ¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¤â¤Î ¤ËÃÖ¤´¹¤¨¤é¤ì¤ë¤Ù¤¤â¤Î¤òɽ¤·¤Þ¤¹¡£Â¿¤¯¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó¤Î°ú¿ô¤Ë¤Ï¡¢ ¤½¤ì¤¬¾Êά¤µ¤ì¤ë¤È¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤é¤Î¾ì¹ç¡¢ ɬ¤º¤·¤â³Ñ³ç¸Ì¤¬Ãæ³ç¸Ì¤Ç°Ï¤Þ¤ì¤Æ½ñ¤«¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¤¢¤ë¹àÌܤˤĤ¤¤Æ¤Î¥Ø¥ë¥×¤¬É¬ÍפʤȤ¤Ë¤Ï¡¢help ¤Ë³¤±¤Æ¤½¤Î¹àÌÜ̾¤ò ÆþÎϤ·¤Æ²¼¤µ¤¤¡£¤Þ¤¿¤Ïñ¤Ë help ? ¤Ç¤â¥Ø¥ë¥×¤Î¹àÌܤΥá¥Ë¥å¡¼¤¬¸½¤ï¤ì ¤Þ¤¹¡£
½é¤á¤Æ gnuplot ¤ò»È¤¦Êý¤Ï¡¢plotting ¤Ë´Ø¤¹¤ëÀâÌÀ¤«¤éÆɤߤϤ¸¤á¤ë¤È Îɤ¤¤Ç¤·¤ç¤¦ (ÂÐÏ÷¿¤Ç»ÈÍÑÃæ¤Ê¤é¤Ð help plotting ¤ÈÆþÎϤ·¤Æ²¼¤µ¤¤)¡£
simple.dem ¥Ç¥â¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤¢¤ë¤¤¤Ï°Ê²¼¤Î Web ¥Ú¡¼¥¸¤Ë¤â¾¤Î¥Ç¥â¤È°ì½ï¤Ë¤¢¤ê¤Þ¤¹¡£
gnuplot ¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¡¢¤¢¤ë¤¤¤Ï¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶¤Î¥¢¥¤¥³¥ó¤«¤é
µ¯Æ°¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éµ¯Æ°¤¹¤ë¤È¤¤Ï¡¢°Ê²¼¤Î½ñ¼°¤¬»È¤¨¤Þ¤¹¡£
gnuplot {OPTIONS} file1 file2 ...
gnuplot {X11OPTIONS} {OPTIONS} file1 file2 ...
gnuplot ¤ËÍ¿¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¥³¥Þ¥ó¥É¹Ô¤Î¤É¤³¤ËÃÖ¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£¥Õ
¥¡¥¤¥ë¤Ï»ØÄꤷ¤¿½ç¤Ë¼Â¹Ô¤µ¤ì¡¢Æ±ÍÍ¤Ë -e ¥ª¥×¥·¥ç¥ó¤ÇǤ°Õ¤Î¥³¥Þ¥ó¥É¤òÍ¿
¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Îã:
gnuplot file1.in -e "reset" file2.in
ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ï¡¢É¸½àÆþÎϤ«¤éÆɤޤ»¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£gnuplot
¤ÏºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò½èÍý¤·½ª¤ï¤ë¤È½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡¥¤¥ë¤ò°ì¤Ä
¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎϤ«¤é¤ÎÂÐÏÃÆþÎϤò¼è¤ê¤Þ¤¹¡£¾ÜºÙ
¤Ï¡¢°Ê²¼»²¾È: batch/interactive (6)¡£gnuplot ÍѤΥª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢
°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ°ìÍ÷¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
gnuplot --help
ÂÐÏ÷¿ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ç¤Îºî¶ÈÃæ¤Ï¡¢'h' ¤òÂǤĤȥۥåȥ¡¼ (hotkeys) ¤È¥Þ¥¦¥¹µ¡Ç½ (mousing) ¤Ë´Ø¤¹¤ë¥Ø¥ë¥×¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ seeking-assistance ¤Î¥»¥¯¥·¥ç¥ó¤Ï¡¢¤µ¤é¤Ê¤ë¾ðÊó¤ä¥Ø¥ë¥×¡¢FAQ ¤òõ¤¹ ¼ê³Ý¤ê¤òÍ¿¤¨¤Æ¤¯¤ì¤ë¤Ç¤·¤ç¤¦¡£
½õ¤±¤òµá¤á¤ëÁ°¤Ë¡¢¥Õ¥¡¥¤¥ë FAQ.pdf ¤«¡¢¤Þ¤¿¤Ï¾å¤Î Web ¥µ¥¤¥È¤Î
FAQ (ÅÙ¡¹Ê¹¤«¤ì¤ë¼ÁÌä; Frequently Asked Questions) ¤Î°ìÍ÷
¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£
gnuplot ¥æ¡¼¥¶¤È¤·¤Æ¤Î¼ê½õ¤±¤¬É¬Íפʤ顢°Ê²¼¤Î¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤òÍøÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
comp.graphics.apps.gnuplot
http://sourceforge.net/projects/gnuplot
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¥á¥ó¥Ð¡¼¤Ø¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹:
gnuplot-info@lists.sourceforge.net
¥Ð¥°¥ê¥Ý¡¼¥È¡¢¥½¡¼¥¹¤Î²þÎÉÅù¤Ï°Ê²¼¤Î trackers ¤Ë upload ¤·¤Æ¤¯¤À¤µ¤¤:
http://sourceforge.net/projects/gnuplot/support
³«È¯ÈǤ˴ؤ¹¤ë¥á¡¼¥ê¥ó¥°¥ê¥¹¥È:
gnuplot-beta@lists.sourceforge.net
²¿¤«¼ÁÌä¤òÅê¹Æ¤¹¤ë¤È¤¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ·¤Æ¤¤¤ë gnuplot ¤Î¥Ð¡¼¥¸¥ç¥ó¡¢ ½ÐÎÏ·Á¼°¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¡¢¤È¤¤¤Ã¤¿Á´¤Æ¤Î¾ðÊó¤ò´Þ¤à¤è¤¦¤Ë¤·¤Æ ¤¯¤À¤µ¤¤¡£¤½¤ÎÌäÂê¤ò°ú¤µ¯¤³¤¹¡Ö¾®¤µ¤¤¡×¥¹¥¯¥ê¥×¥È¤¬¤¢¤ì¤Ð¤Ê¤ªÎɤ¤¤Ç¤¹¡£ ¤½¤Î¾ì¹ç¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¥×¥í¥Ã¥È¤è¤ê¤â´Ø¿ô¤Î¥×¥í¥Ã¥È¤ÎÊý¤¬¤è¤êÎɤ¤¤Ç ¤¹¡£
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
¸½ºß¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿Îó¤ò¡¢¥Õ¥¡¥¤¥ë¤Î 1 ¹ÔÌܤ˽ñ¤«¤ì¤¿¥é
¥Ù¥ë̾¤ÇÁªÂò¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: columnhead (14.1)¡£Îã:
plot for [crop in "Oats Peas Beans"] 'data' using "Year":crop
¸½ºß¤Ï¿¤¯¤Î½ÐÎÏ·Á¼°¤Ç¥°¥é¥Õ¤ÎÇØ·Ê¿§¤òÌÀ¼¨Åª¤ËÀßÄê¤Ç¤¤Þ¤¹¡£¤½¤Î¿§¤ÇÉÁ ²è¤¹¤ë¤Î¤Ë¡¢ÆÃÊ̤ÊÀþ¼ï (linetype) bgnd ¤¬ÍøÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È:bgnd (17.1.1)¡£
print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0)) 18:15:04.253 16-Apr-2011
Web ¥Ù¡¼¥¹¤ÎÂÐÏ÷¿É½¼¨¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤¬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£HTML5 ¤Î canvas ½ÐÎÏ·Á¼°¤Ï version 4.4 ¤ÇƳÆþ¤µ¤ì¤Þ¤·¤¿¡£svg ½ÐÎÏ·Á¼°¤Ï¡¢¥Þ ¥¦¥¹Áàºî¤Ë´Ø¤·¤Æ¡¢¤ª¤è¤Ó gnuplot ¤«¤é¤Î svg ½ÐÎϤò¤è¤êÂç¤¤Ê svg/xml ʸ½ñ¤Ë¤è¤ê¤è¤¯Ëä¤á¹þ¤á¤ë¤è¤¦¤Ë¡¢Â礤¯²þÎɤµ¤ì¤Æ¤¤¤Þ¤¹¡£
½ÐÎϥɥ饤¥Ð canvas ¤Ï¡¢¥¦¥§¥Ö¥Ú¡¼¥¸¤Î canvas Í×ÁÇ HTML Ãæ¤ËÉÁ²è¤¹¤ë javascript ½ÐÎϤòÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ì¤Ä¤ÎÉÁ²è¤À¤±¤ò´Þ¤à´°Á´¤Ê¥¦¥§¥Ö ¥Ú¡¼¥¸¡¢¤¢¤ë¤¤¤Ï³°Éô¤ËÀ¸À®¤µ¤ì¤¿ HTML ¥É¥¥å¥á¥ó¥È¤Î°ìÉô (Ê£¿ô¤ÎÉÁ²è¤ò Æþ¤ì¤ë¤³¤È¤¬¤Ç¤¤ë) ¤È¤·¤ÆËä¤á¹þ¤á¤ë¥¹¥¯¥ê¥×¥È¡¢¤Î¤¤¤º¤ì¤«¤òºîÀ®¤Ç¤¤Þ ¤¹¡£Ëä¤á¹þ¤Þ¤»¤ëÉÁ²è¤Ï¡¢³ÈÂç/½Ì¾®¤Ê¤É¤Î¡¢¥Ö¥é¥¦¥¶Â¦¤Î¥Þ¥¦¥¹Æ°ºî¤ò¥µ¥Ý ¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
½ÐÎϥɥ饤¥Ð lua ¤Ï¡¢lua ¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤Î¥¹¥¯¥ê¥×¥È¤Ë¤è¤Ã¤Æ¤µ¤é ¤Ê¤ë½èÍý¤¬²Äǽ¤Ê¥Ç¡¼¥¿¤òÀ¸À®¤·¤Þ¤¹¡£¸½»þÅÀ¤Ç¤Ï¡¢¤½¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È¤È ¤·¤Æ¤Ï gnuplot-tikz.lua ¤Î¤ß¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Æ¡¢¤³¤ì¤Ï¡¢latex TikZ ¥Ñ¥Ã ¥±¡¼¥¸ÍѤνÐÎϤòºîÀ®¤·¤Þ¤¹¡£¤â¤Á¤í¤ó¡¢Â¾¤Î TeX ¥Ñ¥Ã¥±¡¼¥¸ÍÑ¡¢¤¢¤ë¤¤¤Ï TeX °Ê³°¤Î¥Ä¡¼¥ëÍѤΠgnuplot ½ÐÎϤòÀ¸À®¤¹¤ë lua ¥¹¥¯¥ê¥×¥È¤Ê¤É¤òºîÀ®¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤·¤ç¤¦¡£
set term tikz ¤Ï¡¢set term lua tikz ¤Î¾Êά·Á¤Ç¤¹¡£¾å¤Ë½ñ¤¤¤¿¤è¤¦¤Ë ¤³¤ì¤Ï lua ½ÐÎÏ·Á¼°¤È³°Éô¤Î lua ¥¹¥¯¥ê¥×¥È¤ò»ÈÍѤ·¤Æ latex ʸ½ñ¤òÀ¸À® ¤·¤Þ¤¹¡£
½ÐÎϥɥ饤¥Ð context ¤Ï¡¢ConTeXt TeX ¥Þ¥¯¥í¥Ñ¥Ã¥±¡¼¥¸¤Ç¤µ¤é¤Ë½èÍý¤µ ¤ì¤ë½ÐÎϤòÀ¸À®¤·¤Þ¤¹¡£¤½¤Î½ÐÎϤνèÍý¤Ë¤Ï¡¢°Ê²¼¤Î ConTeXt ÍѤΠgnuplot¥â¥¸¥å¡¼¥ë¤¬É¬ÍפǤ¹:
http://ctan.org/pkg/context-gnuplot
½ÐÎÏ·Á¼° epscairo ¤Ï¡¢cairo ¤È pango ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ·¤Æ EPS ½ÐÎÏ (Encapsulated PostScript) ¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢½ÐÎϥɥ饤¥Ð postscript ¤È¤ÏÊ̤ΠEPS ½ÐÎÏÊýË¡¤È¤Ê¤ê¤Þ¤¹¤¬¡¢Î㤨¤Ð½ÐÎÏ·Á¼° wxt ¤Î²èÌ̽ÐÎϤÈƱ¤¸¸«¤¿ÌܤΠEPS ¥Õ¥¡¥¤¥ë¤¬Íߤ·¤¤¤È¤¤¤¦¿Í¸þ¤¤Ç¤¹¡£
½ÐÎÏ·Á¼° cairolatex ¤Ï¡¢½ÐÎÏ·Á¼° pdfcairo ¤ä epscairo ¤Î cairo ¤Ë¤è¤ë¸å½èÍý¤ò»ÈÍѤ·¤Æ LaTeX ʸ½ñ¤Ë¼è¤ê¹þ¤à¤¿¤á¤Î¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢PDF ¤« EPS ¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¤¬¡¢¥Æ¥¥¹¥Èʸ»úÎó¤Ï¡¢½ÐÎÏ·Á¼° epslatex ¤ÈƱ¤¸ÊýË¡¤Ç LaTeX ¤ËžÁ÷¤·¤Þ¤¹¡£
½ÐÎϥɥ饤¥Ð windows ¤Ï¡¢Æ©ÌÀ²½¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¡¢¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°½Ð ÎÏ¡¢Ê£¿ô¤Î¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¡¢¥°¥é¥Õ¤Î¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ø¤Î¥³¥Ô¡¼¤ä¥°¥é¥Õ¤Î EMF ¥Õ¥¡¥¤¥ë¤Ø¤ÎÊݸ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦²þÎɤµ¤ì¤Æ¤¤¤Þ¤¹¡£¿·¤·¤¤¥ª¥×¥·¥ç ¥ó¤â¤¿¤¯¤µ¤ó¤¢¤ê¡¢¥æ¡¼¥¶¡¼¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤â²þÎɤµ¤ì¤Æ¤¤¤Þ¤¹¡£¤µ¤é¤Ë¡¢ Ť¤¹Ô¤ÎÀޤꤿ¤¿¤ß¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥Æ¥¥¹¥È¥³¥ó¥½¡¼¥ë¤Î¥×¥í¥°¥é¥à¤â ÂçÉý¤Ë½ñ¤´¹¤¨¤é¤ì¤Æ¤¤¤Þ¤¹¡£¥Ø¥ë¥×¤Ï¡¢¸½ºß¤Ï HTML ·Á¼°¤Î¤â¤Î¤òÍÑ°Õ¤·¤Æ ¤¤¤Þ¤¹¡£
./configure --enable-backwards-compatibility
Ãí°Õ: Èó¿ä¾©¤Î½ñ¼°¤Ï¡¢Ì¤Íè¤Î gnuplot ¤Î¤¢¤ëÈǤǡ¢´°Á´¤Ëºï½ü¤µ¤ì¤Æ¤·¤Þ ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£
°ì¤Ä¤Î¼ç¤Ê°ã¤¤¤Ï¡¢Ê£»¨¤Ê¥³¥Þ¥ó¥É (ÆäËʸ»úÎóÊÑ¿ô¤ò´Þ¤à¥³¥Þ¥ó¥É) ¤Î¤¢¤¤ ¤Þ¤¤¤µ¤òÈò¤±¤ë¤è¤¦¤Ê¥¡¼¥ï¡¼¥É¤ÎƳÆþ¤Ç¤¹¡£ÆäËÃí°Õ¤¹¤Ù¤ÅÀ¤Ï¡¢¥ª¥Õ¥»¥Ã ¥È¡¢Àþ¼ï¡¢ÅÀ¼ï¤ËÂФ¹¤ëÀ¸¤Î¿ô¤Î»ÈÍѤǤ·¤¿¡£ ¶ñÂÎÎã:
Èó¿ä¾©:
set title "Old" 0,-1 set data linespoints plot 1 2 4 # horizontal line at y=1
TITLE = "New" set title TITLE offset char 0, char -1 set style data linespoints plot 1 linetype 2 pointtype 4
¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¤Ï¡¢¥×¥í¥°¥é¥à¤Ø¤Î¥ª¥×¥·¥ç¥ó (ʸ»ú - ¤Ç»Ï¤Þ¤ë) ¤«¡¢ gnuplot ¥³¥Þ¥ó¥É¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ç¤¢¤ë¤È²ò¼á¤µ¤ì¤Þ¤¹¡£ -e "command" ¤Î·Á¼°¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢gnuplot ¥³¥Þ¥ó¥É¤ò¶¯À©Åª¤Ë¼Â¹Ô¤µ¤»¡¢ ³Æ¥Õ¥¡¥¤¥ë¤È¤³¤Î¥³¥Þ¥ó¥Éʸ»úÎó¤Ï¡¢»ØÄꤵ¤ì¤¿½ç¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ÆÃÊÌ¤Ê¥Õ ¥¡¥¤¥ë̾ "-" ¤Ï¡¢¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤éÆɤ߹þ¤à¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ºÇ¸å ¤Î¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¸å¤Ë gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡¥¤¥ë¡¢ ¤ª¤è¤Ó¥³¥Þ¥ó¥Éʸ»úÎó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎϤ«¤é¤Î ÂÐÏ÷¿¤ÎÆþÎϤò¼õ¤±ÉÕ¤±¤Þ¤¹¡£
exit ¤È quit ¤Ï¤É¤Á¤é¤â¸½ºß¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤ò½ªÎ»¤·¡¢¤Þ¤ÀÁ´¤Æ¤Î ¥Õ¥¡¥¤¥ë¤¬½ª¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¼¡¤Î¥Õ¥¡¥¤¥ë¤ò load ¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
Îã:
ÂÐÏäò³«»Ï¤¹¤ë:
gnuplot
2 ¤Ä¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë "input1", "input2" ¤ò»È¤Ã¤Æ¥Ð¥Ã¥Á½èÍý¤ò¹Ô¤Ê¤¦:
gnuplot input1 input2
½é´ü²½¥Õ¥¡¥¤¥ë "header" ¤Î¸å¡¢ÂÐÏ÷¿¥â¡¼¥É¤òµ¯Æ°¤·¡¢¤½¤Î¸åÊ̤Υ³¥Þ¥ó¥É
¥Õ¥¡¥¤¥ë "tailer" ¤ò¼Â¹Ô¤¹¤ë:
gnuplot header - trailer
¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é gnuplot ¥³¥Þ¥ó¥É¤òľÀÜÍ¿¤¨¡¢½ªÎ»¸å¤Ë¥¹¥¯¥ê¡¼¥ó¾å
¤Ë¥°¥é¥Õ¤¬»Ä¤ë¤è¤¦¤Ë¥ª¥×¥·¥ç¥ó "-persist" ¤ò»È¤¦:
gnuplot -persist -e "set title 'Sine curve'; plot sin(x)"
¥Õ¥¡¥¤¥ë¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¡¢¥æ¡¼¥¶ÄêµÁÊÑ¿ô a ¤È s ¤ò¥»¥Ã¥È¤¹¤ë:
gnuplot -e "a=2; s='file.png'" input.gpl
gnuplot ¤Î°ÊÁ°¤ÎÈǤǤϡ¢set size ¤ÎÃͤò¡¢½ÐÎϤ¹¤ëÉÁ²èÎΰè (¥¥ã¥ó¥Ð¥¹) ¤Î¥µ¥¤¥º¤òÀ©¸æ¤¹¤ë¤Î¤Ë¤â»È¤Ã¤Æ¤¤¤¿½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤·¤¿¤¬¡¢¤¹¤Ù¤Æ¤Î ½ÐÎÏ·Á¼°¤¬¤½¤¦¤À¤Ã¤¿¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£¤³¤ÎÌÜŪ¤Î¤¿¤á¤Ë set size ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï version 4.2 ¤ÇÈó¿ä¾©¤È¤Ê¤ê¡¢version 4.4 °Ê¹ß¤Ï¡¢¤Û¤È¤ó¤É¤Î½ÐÎÏ·Á¼°¤¬°Ê²¼¤Î¥ë¡¼¥ë¤Ë½¾¤¦¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿:
set term < terminal_type> size < XX> , < YY> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¡¢ ¤Þ¤¿¤Ï "¥¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥µ¥¤¥º¥Ñ¥é¥á¡¼¥¿¤Î͸ú¤ÊÃÍ¤Ë ¤Ä¤¤¤Æ¤Ï¡¢¸Ä¡¹¤Î½ÐÎÏ·Á¼°¤Î¥Ø¥ë¥×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥° ¥é¥Õ¤Ï¤½¤Î¥¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£
set size < XX> , < YY> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤ÆÁêÂÐŪ¤Ë ¿½Ì¤µ¤»¤Þ¤¹¡£1 ¤è¤ê¾®¤µ¤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥¥ã¥ó¥Ð¥¹Á´ÂΤò Ëä¤á¤º¡¢1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß¤¬¥¥ã¥ó¥Ð¥¹ Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¤¢¤ë½ÐÎÏ ·Á¼°¤Ç¤ÏÌäÂ꤬µ¯¤³¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¥ë¡¼¥ë¤Ë±è¤ï¤Ê¤¤¼ç¤ÊÎã³°¤Ï PostScript ¥É¥é¥¤¥Ð¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï°ÊÁ°¤ÎÈǤΤÈƱ¤¸¿¶Éñ¤¤¤ò¤·¤Þ¤¹¡£gnuplot ¤Î¼¡¤ÎÈǤǤϡ¢PostScript ¥É¥é¥¤ ¥Ð¤âƱÍͤ˥ǥե©¥ë¥È¤Î¿¶Éñ¤¤¤òÊѹ¹¤¹¤ë¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
Îã:
set size 0.5, 0.5 set term png size 600, 400 set output "figure.png" plot "data" with lines
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢Éý 600 ¥Ô¥¯¥»¥ë¡¢¹â¤µ 400 ¥Ô¥¯¥»¥ë¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë "figure.png" ¤òÀ¸À®¤·¤Þ¤¹¡£¥°¥é¥Õ¤Ï¥¥ã¥ó¥Ð¥¹¤ÎÃæ¤Îº¸²¼¤ËÃÖ¤«¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢multiplot ¥â¡¼¥É¤¬¾ï¤Ë¹Ô¤Ã¤Æ¤¤¿ÊýË¡¤ÈÌ·½â¤·¤Þ¤»¤ó¡£
ÁȤ߹þ¤ß¤Î readline ÈǤξì¹ç¤ÎÊÔ½¸¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¤¬¡¢DEL ¥¡¼¤Ë´Ø¤¹¤ëÆ°ºî¤Ï¥·¥¹¥Æ¥à¤Ë°Í¸¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£GNU readline ¥é¥¤¥Ö¥é¥ê¤È BSD libedit ¥é¥¤¥Ö¥é¥ê¤Ë´Ø¤·¤Æ¤Ï¡¢¤½¤ì¼«¿È¤Î¥É¥¥å¥á¥ó¥È ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥³¥Þ¥ó¥É¹ÔÊÔ½¸¥³¥Þ¥ó¥É | |
ʸ»ú | µ¡Ç½ |
¹ÔÊÔ½¸ | |
^B |
1 ʸ»úÁ°¤ØÌ᤹ |
^F |
1 ʸ»úÀè¤Ø¿Ê¤á¤ë |
^A |
¹Ô¤ÎÀèƬ¤Ø°ÜÆ° |
^E |
¹Ô¤ÎºÇ¸å¤Ø°ÜÆ° |
^H |
ľÁ°¤Îʸ»ú¤òºï½ü |
DEL |
¸½ºß¤Îʸ»ú¤òºï½ü |
^D |
¸½ºß°ÌÃÖ¤Îʸ»ú¤òºï½ü¡¢¶õ¹Ô¤Ê¤é EOF |
^K |
¸½ºß°ÌÃÖ¤«¤é¹ÔËö¤Þ¤Çºï½ü |
^L, ^R |
²õ¤ì¤¿É½¼¨¤Î¹Ô¤òºÆɽ¼¨ |
^U |
¹ÔÁ´ÂΤκï½ü |
^W |
ľÁ°¤Îñ¸ì¤òºï½ü |
ÍúÎò | |
^P |
Á°¤ÎÍúÎò¤Ø°ÜÆ° |
^N |
¼¡¤ÎÍúÎò¤Ø°ÜÆ° |
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ëÃæ¤Î¥³¥á¥ó¥Èʸ»ú¤Î»ØÄê¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:set datafile commentschars (82.16.5)¡£¥³¥á¥ó¥È¹Ô¤¬ ' \ ' ¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¼¡ ¤Î¹Ô¤â¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
{<system>} <x>, {<system>} <y> {,{<system>} <z>}
³ÆºÂɸ·Ï»ØÄê < system> ¤Ë¤Ï¡¢first, second, graph, screen, character ¤Î¤¤¤º¤ì¤«¤¬Æþ¤ê¤Þ¤¹¡£
first ¤Ïº¸¤È²¼¤Î¼´¤ÇÄêµÁ¤µ¤ì¤ë x,y (3D ¤Î¾ì¹ç¤Ï z ¤â) ¤ÎºÂɸ·Ï¤ò»ÈÍÑ ¤·¤Þ¤¹¡£second ¤ÏÂè 2 ¼´ (¾å¤È±¦¤Î¼´) ¤ò»ÈÍѤ·¤Þ¤¹¡£graph ¤Ï¥°¥é¥Õ ÉÁ²èÎΰèÆâ¤ÎÁêÂÐŪ°ÌÃÖ¤ò»ØÄꤷ¡¢º¸²¼¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 (splot ¤Î¾ì¹ç ¤Ï¥°¥é¥ÕÉÁ²èÎΰèÆâ¤Îº¸²¼¤¬ 0,0,0 ¤Ç¡¢ÅÚÂæ¤Î°ÌÃÖ¤ÏÉé¤Î z ¤ÎÃͤò»ÈÍѤ·¤Þ ¤¹¡£°Ê²¼»²¾È: set xyplane (82.97)) ¤È¤Ê¤ê¤Þ¤¹¡£screen ¤Ïɽ¼¨ÈÏ°ÏÆâ (ÈÏ°ÏÁ´ ÂΤǤ¢¤ê¡¢set size ¤ÇÁªÂò¤µ¤ì¤ë°ìÉôʬ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤ò»ØÄꤷ¡¢º¸²¼ ¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 ¤È¤Ê¤ê¤Þ¤¹¡£character ¤Ï¡¢²èÌÌÎΰè¤Îº¸²¼ (screen 0,0) ¤«¤é¤Î¡¢Ê¸»ú¤ÎÉý¡¢Ê¸»ú¤Î¹â¤µ¤Ç¤Î°ÌÃÖ¤òÍ¿¤¨¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ character ºÂɸ¤Ï¡¢ÁªÂò¤µ¤ì¤¿¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º¤Ë°Í¸¤·¤Þ¤¹¡£
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 (82.91), set timefmt (82.75)¡£¤Þ¤¿¡¢gnuplot ¤ÏÀ°¿ôɽµ¤â ǧ¤á¤Æ¤¤¤Æ¡¢¤½¤Î¾ì¹ç¤½¤ÎÀ°¿ô¤Ï 2000 ǯ 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 style labels (42), using xticlabels (72.3.8.3), plot title (72.10),using (72.3.8)¡£
^
2"
¤Ï x ¤Î¼«¾è¤ò¡¢Ä̾ï²æ¡¹¤¬¸«¤ë¾åÉÕ¤¤Î 2 ¤¬¤Ä¤¤¤¿·Á¤Ç½ñ¤½Ð¤·¤Þ¤¹¡£¤³¤Î
¥â¡¼¥É¤Ï¡¢Î㤨¤Ð¡¢"set term png enhanced" ¤Î¤è¤¦¤ËÉáÄ̤ϽÐÎÏ·Á¼°¤òÀßÄê
¤¹¤ë¤È¤¤ËÁªÂò¤·¤Þ¤¹¤¬¡¢¸å¤Ç "set termoption enhanced" ¤ò»È¤Ã¤Æ¤½¤Îµ¡
ǽ¤ò͸ú/̵¸ú¤Ë¤â¤Ç¤¤Þ¤¹¤·¡¢"set label 'x_2' noenhanced" ¤Î¤è¤¦¤Ë¸Ä¡¹
¤Îʸ»úÎó¤ËŬÍѤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
³Èĥʸ»úÎóÀ©¸æµ¹æ | |||
À©¸æµ¹æ | Îã | ·ë²Ì | ÀâÌÀ |
^ |
a^x |
ax | ¾åÉդʸ»ú |
_ |
a_x |
ax | ²¼Éդʸ»ú |
@ |
a@^b_{cd} |
abcd | ¶õ¥Ü¥Ã¥¯¥¹ (Éý¤¬¤Ê¤¤) |
& |
d&{space}b |
d b |
»ØÄꤷ¤¿Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òÁÞÆþ |
~ |
~a{.8-} |
'a' ¤Î¾å¤Ë '-' ¤ò¡¢¸½ºß¤Î¥Õ¥©¥ó¥È¥µ | |
|
|
¥¤¥º¤Î .8 ÇÜ»ý¤Á¾å¤²¤¿°ÌÃ֤˽Ťͽñ¤ |
Ã楫¥Ã¥³¤Ï°ìʸ»ú¤¬´üÂÔ¤µ¤ì¤ë²Õ½ê¤ËÊ£¿ô¤Îʸ»ú¤ò½ñ¤¯¾ì¹ç¤Ë»È¤ï¤ì¤Þ¤¹ (Îã
¤¨¤Ð 2^
{10})¡£¥Õ¥©¥ó¥È¡¢¤ª¤è¤Ó¤½¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î·Á¼°¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤: {/[fontname][=fontsize |
*fontscale] text} ¤è¤Ã¤Æ¡¢Î㤨¤Ð {/Symbol=20 G} ¤Ï 20 ¥Ý¥¤¥ó¥È¤Î¦£ (¥¬¥ó¥Þ)¤Ë¡¢{/*0.75 K} ¤Ï¸½ºß¤ÎÍ
¸ú¤Ê¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î 3/4 ¤ÎÂ礤µ¤Î K ¤Ë¤Ê¤ê¤Þ¤¹ (ʸ»ú '/' ¤Ï¡¢'{' ¤Î
ľ¸å¤Îʸ»ú¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó)¡£
¶õ¥Ü¥Ã¥¯¥¹ (phantom box) ¤Ï a@^
b_c ¤Î¾åÉդʸ»ú¤È²¼Éդʸ»ú¤ò·¤¨¤ë¤È
¤¤ËÍÍѤǤ¹¤¬¡¢Ê¸»ú¤Ë¥¢¥¯¥»¥ó¥Èµ¹æ¤ò½Å¤Í¤ë¾ì¹ç¤Ë¤Ï¤¦¤Þ¤¯Æ¯¤¤Þ¤»¤ó¡£
¸å¼Ô¤ÎÌÜŪ¤Î¤¿¤á¤Ë¤Ï¡¢¿§¡¹¤Ê¥¢¥¯¥»¥ó¥È¤ä¤½¤Î¾¤Î¥À¥¤¥¢¥¯¥ê¥Æ¥£¥«¥ë¥Þ
¡¼¥¯¤Î¤¢¤ë¿¤¯¤Îʸ»ú¤ò»ý¤Ä¥¨¥ó¥³¡¼¥É (Î㤨¤Ð iso_8859_1 ¤ä utf8) ¤ò»È
ÍѤ¹¤ëÊý¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: set encoding (82.20)¡£¤½¤Î¥Ü¥Ã¥¯¥¹¤Ï¥¹¥Ú¡¼
¥·¥ó¥°¤¬¹Ô¤Ê¤ï¤ì¤Ê¤¤¤Î¤Ç¡¢¥Ü¥Ã¥¯¥¹Æâ (¤Ä¤Þ¤ê @ ¤Î¸å¤í) ¤Î¾åÉդʸ»ú¤ä
²¼Éդʸ»ú¤òû¤¯½ÐÎϤ¹¤ë¤Î¤ËŬ¤·¤Æ¤¤¤Þ¤¹¡£
¤¢¤ëʸ»úÎó¤ÈƱ¤¸Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òʸ»ú '&' ¤ò»È¤¦¤³¤È¤ÇÆþ¤ì¤ë¤³¤È¤¬¤Ç¤
¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢
'abc&{def}ghi'
'abc ghi'
ʸ»ú '~ ' ¤Ï¡¢¼¡¤Îʸ»ú¡¢¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ë¡¢¤½¤ì¤Ë³¤¯Ê¸»ú
¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ò½Å¤Í½ñ¤¤·¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤ÏºÇ½é¤Îʸ»ú
¤Ë¤¢¤ï¤»¤Æ¿åÊ¿Êý¸þ¤Ë¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ '~ a/' ¤Ï 'a' ¤ò´Ó¤¯¤è
¤¦¤Ê¥¹¥é¥Ã¥·¥å¤¬ÆÀ¤é¤ì¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤Ï¡¢¤½¤ÎÁ°¤Ë¿ô»ú¤òÃÖ¤¯¤³¤È¤Ç¿â
ľÊý¸þ¤Ë°ÜÆ°¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¿ô»ú¤Ï¸½ºß¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ËÂФ¹
¤ë³ä¹ç¤ò°ÕÌ£¤·¡¢¤½¤ì¤Ë½¾¤Ã¤Æʸ»ú¤¬¾å¤¬¤Ã¤¿¤ê²¼¤¬¤Ã¤¿¤ê¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç
¿ô»ú¤Èʸ»úÎó¤Ï 1 ʸ»ú¤è¤êŤ¯¤Ê¤ë¤Î¤Ç¥«¥Ã¥³¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£½Å¤Í
½ñ¤¤µ¤ì¤ëʸ»úÎ󤬿ô»ú¤«¤é»Ï¤Þ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¿âľ¤Ë¤º¤é¤¹ÃͤÈʸ»úÎó¤È
¤Î´Ö¤Ë¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤ ('~ {abc}{.5 000}')¡£¤½¤ì°Ê³°¤Ï¥¹¥Ú¡¼¥¹¤ÏÉÔÍפǤ¹ ('~ {abc}{.5 -- }')¡£°ìÊý¡¢¤¢¤ë¤¤¤ÏξÊý¤Î¥Õ¥©¥ó¥È¤òÊѹ¹¤¹¤ë¤³
¤È¤â¤Ç¤¤Þ¤¹ ('~ a{.5 /*.2 o}'; 'a' ¤½¤Î 1/5 ¤ÎÂ礤µ¤Î 'o'¡¢¤³¤Î¾ì¹ç¿ô
»ú¤È¥¹¥é¥Ã¥·¥å¤Î´Ö¤Î¥¹¥Ú¡¼¥¹¤ÏɬÍפǤ¹) ¤¬¡¢¤½¤Îʸ»úÎ󤬻Ϥޤ俸å¤ÇÊÑ
¹¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤ì¤¾¤ì¤Îʸ»úÎóÆâ¤Ç¡¢Â¾¤ÎÆüì¤Ê½ñ¼°¤ò»È¤¦¤³¤È
¤â¤Ç¤¤Þ¤»¤ó¡£¤â¤Á¤í¤ó¡¢'~ a{
\
^
}' ¤Î¤è¤¦¤ËÆüì¤Êʸ»ú¤ò¥¨¥¹¥±¡¼¥×¤¹¤ë¤³
¤È (²¼µ»²¾È) ¤Ï²Äǽ¤Ç¤¹¡£
\ ʸ»ú¥³¡¼¥É (8 ¿Ê¿ô) ¤ò»ØÄꤹ¤ë¤³¤È¤ÇÆüì¤Êµ¹æ¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£Î㤨¤Ð¡¢{/Symbol \ 245} ¤Ï̵¸ÂÂç¤Îµ¹æ¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¡¢ UTF-8 ¤Î¤è¤¦¤Ê¥Þ¥ë¥Á¥Ð¥¤¥È¥¨¥ó¥³¡¼¥É¤Î¾ì¹ç¤Ë¤Ï¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£UTF-8 ´Ä¶¤Ç¤Ï¡¢¥¿¥¤¥×ÆþÎϤ¹¤ë¤«¤Þ¤¿¤ÏÊ̤Τä¤êÊý¤Ç¤¢¤Ê¤¿¤¬Ë¾¤àʸ»ú¤òÁªÂò¤¹¤ë ¤³¤È¤Ç¥Þ¥ë¥Á¥Ð¥¤¥ÈÎó¤òÆþÎϤǤ¤ë¤è¤¦¤Ë¤¹¤Ù¤¤Ç¤¹¡£
À©¸æʸ»ú¤Ï¡¢ \ \ ¤ä \ { ¤Ê¤É¤Î¤è¤¦¤Ë \ ¤ò»È¤Ã¤Æ¥¨¥¹¥±¡¼¥×¤Ç¤¤Þ¤¹¡£
¤·¤«¤·¡¢Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ïñ°ì°úÍÑÉäÆâ¤Îʸ»úÎó¤È¤Ï°Û¤Ê¤Ã¤Æ²ò¼á¤µ¤ì ¤ë¤³¤È¤òÃΤäƤª¤¤¤Æ¤¯¤À¤µ¤¤¡£¼ç¤Ê°ã¤¤¤Ï¡¢Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ç¤Ï¥Ð¥Ã ¥¯¥¹¥é¥Ã¥·¥å¤Ï 2 ¤Ä½Å¤Í¤ëɬÍפ¬¤¢¤ë¤³¤È¤Ç¤¹¡£
Îã (¤³¤ì¤é¤Ï¸ÀÍÕ¤ÇÀâÌÀ¤¹¤ë¤Î¤ÏÆñ¤·¤¤¤Î¤Ç¤È¤ê¤¢¤¨¤º¤ä¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤):
set xlabel 'Time (10^6 {/Symbol m}s)' set title '{/Symbol=18 \\362@_{/=9.6 0}^{/=12 x}} \\ {/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'
gnuplot ¥½¡¼¥¹ÇÛÉÛʪÆâ¤Î /docs/psdoc ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë "ps_guide.ps" ¤Ë¡¢³ÈÄ¥¤µ¤ì¤¿½ñ¼°¤Ë´Ø¤¹¤ëÎ㤬¹¹¤ËºÜ¤Ã¤Æ¤¤¤Þ¤¹¡£
GNUTERM ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï»ÈÍѤµ¤ì¤ë½ÐÎÏ·Á¼° (terminal) ¤Î̾ Á°¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£¤³¤ì¤Ï gnuplot ¤¬µ¯Æ°»þ¤Ë¸«¤Ä¤±¤¿½ÐÎÏ·Á¼°¤ËÍ¥Àè ¤·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¤¬¡¢.gnuplot (¤Þ¤¿¤Ï¤½¤ì¤ËÁêÅö¤¹¤ë) ¥¹¥¿¡¼¥È¥¢¥Ã¥×¥Õ¥¡ ¥¤¥ë (°Ê²¼»²¾È: startup (21)) ¤Ë¤è¤ë»ØÄê¤ä¡¢Åö¤êÁ°¤Î¤³¤È¤Ç¤¹¤¬¡¢¤½¤Î¸å¤Ë ÌÀ¼¨Åª¤Ë»ØÄꤷ¤¿Êª¤ÎÊý¤¬Í¥À褵¤ì¤Þ¤¹¡£
GNUHELP ¤Ë¥Ø¥ë¥×¥Õ¥¡¥¤¥ë (gnuplot.gih) ¤Î¥Ñ¥¹Ì¾¤òÄêµÁ¤·¤Æ¤ª¤¯¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£
VMS ¤Ç¤Ï¡¢ÏÀÍý̾ GNUPLOT$HELP ¤ò gnuplot ¤Î¥Ø¥ë¥×¥é¥¤¥Ö¥é¥ê¤Î̾Á°¤È ¤·¤ÆÄêµÁ¤·¤Þ¤¹¡£gnuplot ¤Î¥Ø¥ë¥×¤ÏǤ°Õ¤Î¥·¥¹¥Æ¥à¤Î¥Ø¥ë¥×¥é¥¤¥Ö¥é¥ê¤Ë Æþ¤ì¤ë¤³¤È¤¬¤Ç¤¡¢gnuplot ¤ÎÆâÉô¤«¤é¤Ç¤â³°Éô¤«¤é¤Ç¤â»²¾È¤·¤Æ¹½¤¤¤Þ¤» ¤ó¡£
Unix ¤Ë¤ª¤¤¤Æ¤Ï¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë .gnuplot ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤ ¾ì¹ç¤Ë¤Ï¡¢HOME ¤ËÄêµÁ¤µ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤òõ¤·¤Þ¤¹¡£MS-DOS, Windows, OS/2 ¤Ç¤Ï GNUPLOT ¤¬¤½¤ÎÌò³ä¤Ë»È¤ï¤ì¤Þ¤¹¡£Windows ¤Ç¤Ï¡¢NT ÀìÍѤÎÊÑ¿ô USERPROFILE ¤â»²¾È¤µ¤ì¤Þ¤¹¡£VMS ¤Ç¤Ï SYS$LOGIN ¤Ç¤¹¡£help startup ¤ÈÂǤäƤߤƤ¯¤À¤µ¤¤¡£
Unix ¤Ë¤ª¤¤¤Æ¤Ï¡¢PAGER ¤¬¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤Î½ÐÎÏÍѤΥե£¥ë¥¿¤È¤·¤Æ»È¤ï ¤ì¤Þ¤¹¡£
Unix ¤Ç¤Ï¡¢SHELL ¤¬ shell ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë»È¤ï¤ì¤Þ¤¹¡£MS-DOS, OS/2 ¤Ç ¤Ï COMSPEC ¤¬ shell ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë»È¤ï¤ì¤Þ¤¹¡£
FIT_SCRIPT ¤Ï¡¢Åö¤Æ¤Ï¤á (fit) ¤¬ÃæÃǤµ¤ì¤¿¤È¤¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³ ¥Þ¥ó¥É¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: fit (64)¡£FIT_LOG ¤ÏÅö¤Æ¤Ï¤á¤Ë¤è¤ë¥í ¥°¥Õ¥¡¥¤¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë̾¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£
GNUPLOT_LIB ¤Ï¡¢¥Ç¡¼¥¿¤ä¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤òÄɲÃÄêµÁ¤¹ ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ÎÊÑ¿ô¤Ï¡¢°ì¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤«¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ç¥£¥ì ¥¯¥È¥ê̾¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¶èÀÚ¤ê¤Ï¥×¥é¥Ã¥È¥Û¡¼¥àËè ¤Ë°ã¤¤¤Þ¤¹¡£Î㤨¤Ð Unix ¤Ç¤Ï ':' ¤Ç¡¢MS-DOS, Windows, OS/2 ¤Ç¤Ï ';' ¤Ç ¤¹¡£GNUPLOT_LIB ¤ÎÃͤÏÊÑ¿ô loadpath ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï save ¤ä save set ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£
½ÐÎϥɥ饤¥Ð¤ÎÃæ¤Ë¤Ï gd ¥é¥¤¥Ö¥é¥ê·Ðͳ¤Ç TrueType ¥Õ¥©¥ó¥È¤ò°·¤¨¤ë¤â¤Î ¤â¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î¥É¥é¥¤¥Ð¤Î¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¤Ï¡¢´Ä¶ÊÑ¿ô GDFONTPATH ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£¤µ¤é¤Ë¡¢¤½¤ì¤é¤Î¥É¥é¥¤¥Ð¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Õ ¥©¥ó¥È¤Ï´Ä¶ÊÑ¿ô GNUPLOT_DEFAULT_GDFONT ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
postscript ½ÐÎϥɥ饤¥Ð¤Ï¼«Ê¬¤Ç»ý¤Ã¤Æ¤¤¤ë¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¤ò»È¤¤¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£½ñ¼°¤Ï GNUPLOT_LIB ¤È Ʊ¤¸¤Ç¤¹¡£GNUPLOT_FONTPATH ¤ÎÃͤÏÊÑ¿ô fontpath ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢¤½ ¤ì¤Ï save ¤ä save set ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£
PostScript ¥É¥é¥¤¥Ð¤Ï¡¢³°Éô (ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤) ÄêµÁ¥Õ¥¡¥¤¥ë¤òõ¤¹¤¿ ¤á¤Ë´Ä¶ÊÑ¿ô GNUPLOT_PS_DIR ¤òÍøÍѤ·¤Þ¤¹¡£¥¤¥ó¥¹¥È¡¼¥ë»þ¤Îºî¶È¤Ë¤è¤ê¡¢ gnuplot ¤Ë¤Ï¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥© ¥ë¥È¤Î¥Ñ¥¹¤¬Ëä¤á¹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤Ç¥Ç¥Õ ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë¤ÎÂå¤ï¤ê¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿ prologue ¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ¹¤ë ¤Î¤ËÍøÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È: postscript prologue (92.51.3)¡£
Ê£ÁÇ¿ô¤ÎÄê¿ô¤Ï {< real> ,< imag> } ¤Èɽ¸½¤·¤Þ¤¹¡£¤³¤³¤Ç < real> ¤È < imag> (¼ÂÉô¡¢µõÉô) ¤Ï¿ôÃÍÄê¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð {3,2} ¤Ï 3 + 2i ¤ò ¤¢¤é¤ï¤·¡¢{0,1} ¤Ï 'i' ¼«¿È¤òɽ¤·¤Þ¤¹¡£¤³¤ì¤é¤Ë¤ÏÌÀ¼¨Åª¤ËÃ楫¥Ã¥³¤ò»È ¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
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" ¤È¤·¤Æ¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ ¥à¤¬ -2 ¤È -3 ¤Î¤É¤Á¤é¤òÅú¤¨¤È¤¹¤ë¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¿ô¼° "1/0" ¤Ï "̤ÄêµÁÃÍ (undefined)" ¥Õ¥é¥°¤òÀ¸À®¤·¡¢¤½¤ì¤Ë¤è¤ê¤½¤ÎÅÀ ¤ò̵»ë¤·¤Þ¤¹¡£¤¢¤ë¤¤¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ NaN ¤ò»È¤Ã¤Æ¤âƱ¤¸ ¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Îã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using (72.3.8)¡£
Ê£ÁÇ¿ôɽ¸½¤Î¼Â¿ôÉôʬ¡¢µõ¿ôÉôʬ¤Ï¡¢¤É¤ó¤Ê·Á¤ÇÆþÎϤµ¤ì¤Æ¤â¾ï¤Ë¼Â¿ô¤Ç¤¹: {3,2} ¤Î "3" ¤È "2" ¤Ï¼Â¿ô¤Ç¤¢¤ê¡¢À°¿ô¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
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 ¤Ï¾Êά¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
´Ø¿ô EllipticE(k) ¤Ï¡¢Âè 2 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á¡¢´Ø¿ô (1-(k*sin(p))**2)**0.5 ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤιµÁÀÑʬ¤ÎÃͤòÊÖ¤· ¤Þ¤¹¡£k ¤ÎÄêµÁ°è¤Ï -1 ¤«¤é 1 ¤Ç¤¹ (ξü¤â´Þ¤à)¡£
´Ø¿ô EllipticPi(n,k) ¤Ï¡¢Âè 3 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á´Ø¿ô (1-(k*sin(p))**2)**(-0.5)/(1-n*sin(p)**2) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤΠ¹µÁÀÑʬ¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ n ¤Ï 1 ¤è¤ê¾®¤µ¤¯¡¢k ¤Ï -1 ¤È 1 ¤Î´Ö (ξü¤Ï´Þ¤Þ¤Ê¤¤) ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ÄêµÁ¤è¤ê¡¢¤¹¤Ù¤Æ¤ÎÀµ¤Î k ¤ËÂФ· EllipticPi(0,k) == EllipticK(k) ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
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 ¤ËÀßÄꤹ¤ë
±é»»¤Îɾ²Á¤Î½ç½ø¤òÊѹ¹¤¹¤ë¤Ë¤Ï¤«¤Ã¤³¤ò»È¤¤¤Þ¤¹¡£
ñ¹à±é»»»Ò | ||
µ¹æ | Îã | ÀâÌÀ |
- |
-a |
¥Þ¥¤¥Ê¥¹Éä¹æ |
+ |
+a |
¥×¥é¥¹Éä¹æ (²¿¤â¤·¤Ê¤¤) |
~ |
~a |
* 1 ¤ÎÊä¿ô (¥Ó¥Ã¥Èȿž) |
! |
!a |
* ÏÀÍýŪÈÝÄê |
! |
a! |
* ³¬¾è |
$ |
$3 |
* `using` Æâ¤Ç¤Î°ú¿ô/Îó»ØÄê |
ÀâÌÀ¤ËÀ±°õ (*) ¤Î¤Ä¤¤¤¿±é»»»Ò¤Î°ú¿ô¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
±é»»»Ò¤ÎÍ¥Àè½ç°Ì¤Ï Fortran ¤ä C ¤ÈƱ¤¸¤Ç¤¹¡£¤½¤ì¤é¤Î¸À¸ìƱÍÍ¡¢±é»»¤Îɾ ²Á¤µ¤ì¤ë½ç½ø¤òÊѤ¨¤ë¤¿¤á¤Ë¤«¤Ã¤³¤¬»È¤ï¤ì¤Þ¤¹¡£¤è¤Ã¤Æ -2**2 = -4 ¤Ç¡¢ (-2)**2 = 4 ¤Ç¤¹¡£
³¬¾è±é»»»Ò¤Ï¡¢Â礤ÊÃͤòÊÖ¤»¤ë¤è¤¦¤Ë¼Â¿ô¤òÊÖ¤·¤Þ¤¹¡£
Æó¹à±é»»»Ò | ||
µ¹æ | Îã | ÀâÌÀ |
** |
a**b |
Îß¾è |
* |
a*b |
ÀÑ |
/ |
a/b |
¾¦ |
% |
a%b |
* ;¤ê |
+ |
a+b |
ÏÂ |
- |
a-b |
º¹ |
== |
a==b |
Åù¤·¤¤ |
!= |
a!=b |
Åù¤·¤¯¤Ê¤¤ |
< |
a<b |
¤è¤ê¾®¤µ¤¤ |
<= |
a<=b |
°Ê²¼ |
> |
a>b |
¤è¤êÂ礤¤ |
>= |
a>=b |
°Ê¾å |
& |
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)
¥Õ¥¡¥¤¥ë 'file' ¤Î¥Ç¡¼¥¿¤Ç¡¢4 ÎóÌܤΥǡ¼¥¿¤¬Éé¤Ç¤Ê¤¤¤È¤¤À¤±¡¢1 ÎóÌܤΠ¥Ç¡¼¥¿¤Ë´Ø¤¹¤ë 2 ÎóÌÜ¤È 3 ÎóÌܤΥǡ¼¥¿¤ÎÊ¿¶ÑÃͤòÉÁ²è:
plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )
using ¤Î½ñ¼°¤ÎÀâÌÀ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: plot datafile using (72.3.8)¡£
sum [<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))
Îã: ÅÀ [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_XSIZE FRAC_Y = SCREEN_Y / GPVAL_TERM_YSIZE
Æɤ߽Ф·ÀìÍÑÊÑ¿ô GPVAL_ERRNO ¤Ï¡¢Ç¤°Õ¤Î gnuplot ¥³¥Þ¥ó¥É¤¬¤¢¤ë¥¨¥é¡¼¤Î ¤¿¤á¤ËÁ᤯½ª¤ï¤Ã¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Ë 0 ¤Ç¤Ê¤¤Ãͤ˥»¥Ã¥È¤µ¤ì¡¢Ä¾Á°¤Î¥¨¥é¡¼ ¥á¥Ã¥»¡¼¥¸¤Ïʸ»úÎóÊÑ¿ô GPVAL_ERRMSG ¤ËÊݸ¤µ¤ì¤Þ¤¹¡£GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Ï¡¢¥³¥Þ¥ó¥É reset errors ¤ò»È¤Ã¤Æ¥¯¥ê¥¢¤Ç¤¤Þ¤¹¡£
mouse µ¡Ç½¤¬»È¤¨¤ëÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ï¡¢"MOUSE_" ¤Ç»Ï¤Þ¤ëÆɤ߽Ф·ÀìÍÑ ÊÑ¿ô¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: mouse variables (18.2)¡£
fit µ¡Ç½¤Ï¡¢"FIT_" ¤Ç»Ï¤Þ¤ë¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤ò»ÈÍѤ·¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤è¤¦ ¤Ê̾Á°¤ò»È¤¦¤Î¤ÏÈò¤±¤ë¤Ù¤¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢fit ¤Î»ÈÍѤ˺ݤ·¤Æ¤Ï¡¢Îã ¤¨¤Ð "FIT_LIMIT" ¤Î¤è¤¦¤ËºÆÄêµÁ¤ò¤¹¤ëɬÍפ¬¤¢¤ë¤è¤¦¤ÊÊÑ¿ô¤Ï¤¢¤ê¤Þ¤¹¡£ set fit errorvariables ¤È¤¹¤ë¤È³ÆÅö¤Æ¤Ï¤áÊÑ¿ô¤Î¥¨¥é¡¼¤Ï¡¢¤½¤Î¥Ñ¥é¥á ¡¼¥¿Ì¾¤Ë "_err" ¤òÄɲä·¤¿ÊÑ¿ô¤ËÊݸ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: fit (64)¡£
°Ê²¼¤â»²¾È: user-defined variables (14.5), reset errors (80),mouse variables (18.2), fit (64)¡£
¥æ¡¼¥¶ÄêµÁ´Ø¿ô½ñ¼°:
<func-name>( <dummy1> {,<dummy2>} ... {,<dummy12>} ) = <expression>
¤³¤³¤Ç < expression> ¤Ï²¾ÊÑ¿ô < dummy1> ¤«¤é < dummy12> ¤Çɽ¤µ¤ì¤ë¿ô¼°¤Ç¤¹¡£
¥æ¡¼¥¶ÄêµÁÊÑ¿ô½ñ¼°:
<variable-name> = <constant-expression>
Îã:
w = 2 q = floor(tan(pi/2 - 0.1)) f(x) = sin(w*x) sinc(x) = sin(pi*x)/(pi*x) delta(t) = (t == 0) ramp(t) = (t > 0) ? t : 0 min(a,b) = (a < b) ? a : b comb(n,k) = n!/(k!*(n-k)!) len3d(x,y,z) = sqrt(x*x+y*y+z*z) plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x)
file = "mydata.inp" file(n) = sprintf("run_%d.dat",n)
ºÇ¸å¤Î 2 ¹Ô¤ÎÎã¤Ï¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎóÊÑ¿ô¤È¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎó´Ø¿ô¤ò°ÕÌ£ ¤·¤Æ¤¤¤Þ¤¹¡£
ÊÑ¿ô pi (3.14159...) ¤È NaN (IEEE Èó¿ô ("Not a Number")) ¤Ï¤¢¤é¤« ¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤¬É¬Íפʤ±¤ì¤Ð¡¢Â¾¤Î¤â¤Î¤ËºÆÄêµÁ¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¤·¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¸µ¤ÎÃͤËÉüµ¢¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹:
NaN = GPVAL_NaN pi = GPVAL_pi
¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤¬¡¢Î㤨¤ÐÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ç¤Î¥Þ¥¦¥¹Áàºî¤äÅö¤Æ¤Ï¤á (fit) ¤Ê¤É¤Î gnuplot ¤ÎÆ°ºî¾õÂ֤˱þ¤¸¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï °Ê²¼»²¾È: gnuplot-defined variables (14.4)¡£
¤¢¤ëÊÑ¿ô 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 (82.25), functions (72.6), gnuplot-defined variables (14.4),macros (23.2), value (14.1.3)¡£
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢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 ¤Ï Adobe Type 1 ¥Õ¥©¥ó¥È (*.pfa) ¤È TrueType
¥Õ¥©¥ó¥È¤Ø¤Î¥¢¥¯¥»¥¹¤âÄ󶡤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¥Õ¥©¥ó¥È¼«¿È¤Î̾Á°¤Ç¤Ï¤Ê¤¯¡¢
¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò¡¢"<
face>
{,<
pointsize>
}" ¤Î·Á¼°¤ÇÍ¿¤¨¤Þ¤¹¡£
¤³¤³¤Ç¡¢<
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"
TrueType ¤È Adobe Type 1 ¥Õ¥©¥ó¥È¤Ï¡¢´°Á´¤ËÂ礤µ¤ÎÊѹ¹¤ä²óž¤¬²Äǽ¤Ç ¤¹¡£"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 fontfile (92.51.2)¡£
"¥Ú¡¼¥¸ (page)"¡¢"ɽ¼¨²èÌÌ (screen)"¡¢"¥¥ã¥ó¥Ð¥¹ (canvas)" ¤Ï¡¢ gnuplot ¤¬¥¢¥¯¥»¥¹²Äǽ¤ÊÎΰèÁ´ÂΤò»Ø¤·¤Þ¤¹¡£¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¤Ï¤½¤ì¤Ï¥¦ ¥£¥ó¥É¥¦Á´ÂΤò»Ø¤·¡¢¥×¥í¥Ã¥¿¤Ç¤Ï¡¢°ìËç¤Î»æÁ´ÂΡ¢svga ¥â¡¼¥É¤Ç¤Ï¡¢¥â¥Ë ¥¿¥¹¥¯¥ê¡¼¥óÁ´ÂΤò»Ø¤·¤Þ¤¹¡£
ɽ¼¨²èÌ̤ϡ¢°ì¤Ä¡¢¤Þ¤¿¤Ï¤½¤ì°Ê¾å¤Î "¥°¥é¥ÕÉÁ²è (plot)" ¤ò´Þ¤ß¤Þ¤¹¡£¥° ¥é¥ÕÉÁ²è¤Ï°ì¤Ä¤Î²£ºÂɸ¤È°ì¤Ä¤Î½ÄºÂɸ¤ÇÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¢Í¾Çò (margin) ¤ä ¤½¤ÎÃæ¤Ë½ñ¤«¤ì¤ëʸ»úÎó (text) ƱÍÍ¡¢¤½¤ì¤é¤Ï¼ÂºÝ¤Ë¤½¤Î¾å¤Ëɽ¼¨¤µ¤ì¤Æ¤¤ ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
¥°¥é¥ÕÉÁ²è¤Ï°ì¤Ä¤Î "¥°¥é¥Õ" ¤ò´Þ¤ß¤Þ¤¹¡£¥°¥é¥Õ¤Ï°ì¤Ä¤Î²£ºÂɸ¤È°ì¤Ä¤Î½Ä ºÂɸ¤ÇÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤é¤Ï¼ÂºÝ¤Ë¤½¤Î¾å¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ëɬÍפϤ¢¤ê¤Þ ¤»¤ó¡£
¥°¥é¥Õ¤Ï°ì¤Ä¤Þ¤¿¤Ï¤½¤ì°Ê¾å¤Î "¶ÊÀþ (line)" ¤ò´Þ¤ß¤Þ¤¹¡£¶ÊÀþ¤Ï°ì¤Ä¤Î´Ø ¿ô¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿½¸¹ç¤Ç¤¹¡£ÍѸì "line" ¤ÏÉÁ²è¥¹¥¿¥¤¥ë¤È¤·¤Æ¤â»È¤ï¤ì¤Þ¤¹¡£ ¤µ¤é¤Ë¤³¤ÎÍѸì¤Ï "ʸ»úÎó¤Î°ì¹Ô (a line of text)" ¤Î¤è¤¦¤Ë»È¤ï¤ì¤ë¤³¤È ¤â¤¢¤ê¤Þ¤¹¡£Â¿Ê¬Ê¸Ì®¤«¤é¤½¤ì¤é¤Ï¶èÊ̤Ǥ¤ë¤Ç¤·¤ç¤¦¡£
°ì¤Ä¤Î¥°¥é¥Õ¾å¤ÎÊ£¿ô¤Î¶ÊÀþ¤Ï¤½¤ì¤¾¤ì̾Á°¤ò»ý¤Á¤Þ¤¹¡£¤½¤Î̾Á°¤Ï¡¢¤½¤Î¶Ê Àþ¤Îɽ¸½¤Ë»È¤ï¤ì¤ëÉÁ²è¥¹¥¿¥¤¥ë¤Î¥µ¥ó¥×¥ë¤È¤È¤â¤Ë "(ÀâÌÀ) key" Æâ¤Ë°ìÍ÷ ɽ¼¨¤µ¤ì¤Þ¤¹¡£ÀâÌÀ¤Ï¡¢»þ¤Ë¤Ï "(ɽÂê) legend" ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹¡£
ÍѸì "¥¿¥¤¥È¥ë (title)" ¤Ï gnuplot ¤Ç¤ÏÊ£¿ô¤Î°ÕÌ£¤Ç»È¤ï¤ì¤Þ¤¹¡£¤³¤Î ¥É¥¥å¥á¥ó¥È¤Ç¤Ï¤½¤ì¤é¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢·ÁÍÆ»ì¤È¤·¤Æ "ÉÁ²è¤Î (plot)"¡¢ "¶ÊÀþ¤Î (line)"¡¢"ÀâÌÀ¤Î (key)" ¤òƬ¤Ë¤Ä¤±¤¿¤ê¤â¤·¤Þ¤¹¡£ 2 ¼¡¸µ¤Î¥°¥é¥Õ¤Ï 4 ¤Ä¤Þ¤Ç¤Î¸«½Ð¤·ÉÕ¤±¤µ¤ì¤ë¼´¤ò»ý¤Ä¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³ ¤ì¤é 4 ¤Ä¤Î¼´¤Î̾Á°¤Ï¤½¤ì¤¾¤ì¡¢¥°¥é¥ÕÉÁ²è¤Î²¼¤Î¶³¦¤Ë±è¤¦¼´¤Ç¤¢¤ë "x"¡¢ º¸¤Î¶³¦¤Ë±è¤¦¼´ "y"¡¢¾å¤Î¶³¦¤Ë±è¤¦¼´ "x2"¡¢±¦¤Î¶³¦¤Ë±è¤¦¼´ "y2" ¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: axes (72.1)¡£
3 ¼¡¸µ¤Î¥°¥é¥Õ¤Ï 3 ¤Ä¤Þ¤Ç¤Î¸«½Ð¤·ÉÕ¤±¤µ¤ì¤ë¼´ (axes) "x","y","z" ¤ò »ý¤Ä¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤É¤ÎÆÃÄê¤Î¼´¤Ë´Ø¤·¤Æ¤â¤½¤ì¤¬¥°¥é¥Õ¾å¤Ç¤É¤³¤Ë½ñ¤«¤ì ¤ë¤«¤ò½Ò¤Ù¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢set view ¤Ç¥°¥é¥Õ¤ò¸«¤ëÊý¸þ¤ò Êѹ¹¤Ç¤¤ë¤«¤é¤Ç¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ëµÄÏÀ¤Ç¤Ï¡¢ÍѸì "¹Ô (record)" ¤òÉü³è¤·¡¢¥Õ¥¡¥¤¥ë ¤Î°ì¹Ô¤Îʸ»úÎ󡢤¹¤Ê¤ï¤Á¡¢²þ¹Ôʸ»ú¤ä¹ÔËöʸ»úƱ»Î¤Î´Ö¤Îʸ»úÎ󡢤ò»Ø¤·¼¨ ¤¹¤Î¤Ë»È¤¤¤Þ¤¹¡£"ÅÀ (point)" ¤Ï¹Ô¤«¤é¼è¤ê½Ð¤·¤¿°ì¤Ä¤Î¥Ç¡¼¥¿¤Ç¤¹¡£"¥Ç¡¼ ¥¿¥Ö¥í¥Ã¥¯ (datablock)" ¤Ï¡¢¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤¿Ï¢Â³¤·¤¿Ê£¿ô¤Î¹Ô¤«¤é¤Ê¤ëÅÀ ¤Î½¸¹ç¤Ç¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎµÄÏÀ¤ÎÃæ¤Ç "line" ¤¬»²¾È¤µ¤ì¤ë¾ì¹ç¤Ï¡¢¤³¤ì ¤Ï¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÉôʬ½¸¹ç¤ò»Ø¤·¤Þ¤¹¡£
(ÌõÃí: ¤³¤ÎÆüËܸìÌõ¤ÎÃæ¤Ç¤Ï¤³¤³¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤ÊÍѸì¤ÎÅý°ì¤Ï¹Í褵 ¤ì¤Æ¤Ï¤ª¤é¤º¡¢¤è¤Ã¤Æº®Íð¤ò°ú¤µ¯¤³¤¹²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£¸·Ì©¤Ë¤Ï¸¶Ê¸¤ò»² ¾È¤¹¤Ù¤¤Ç¤·¤ç¤¦¡£)
¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï (linetype) ¤Î°À¤Ï¡¢ÂÐÏÃŪ¤«½é´ü²½¥Õ¥¡¥¤¥ë¤Î¤¤¤º¤ì¤« ¤Ë¤è¤Ã¤ÆºÆÄêµÁ²Äǽ¤Ç¤¹¡£¤³¤ì¤Ï¡¢¤¹¤Ù¤Æ¤Î gnuplot ÉÁ²è¥³¥Þ¥ó¥É¤Ç»ÈÍѤµ ¤ì¤ëÀþ¤Î¿§¤ä¾¤Î°À¤ò¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£°Ê²¼»²¾È:set linetype (82.32)¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢°ì¤Ä¤ÎÉÁ²è¥³¥Þ¥ó¥ÉÆâ¤Ç¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎʤӤˤϡ¢ ½çÈÖ¤ËÀþ¼ï¤¬³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Î½çÎó¤Ï¡¢´Ø¿ô¡¢¥Ç¡¼¥¿¥Õ¥¡ ¥¤¥ë¡¢¤Þ¤¿¤Ï¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤ˸ÄÊ̤ËÀþ¼ï¤ò»ØÄꤹ¤ë¤³¤È¤Ç¾å½ñ¤¤Ç¤¤Þ¤¹¡£
Îã:
plot "foo", "bar" # Àþ¼ï 1, 2 ¤Ç 2 ¥Õ¥¡¥¤¥ë¤òÉÁ²è plot sin(x) linetype 4 # ½ÐÎÏ·Á¼°¤Ë°Í¸¤¹¤ëÀþ¼ï¿§ 4 plot sin(x) lt -1 # ¹õ
¿¤¯¤Î½ÐÎÏ·Á¼°¤Ç¡¢¥æ¡¼¥¶ÄêµÁ¿§¤òÄêµÁ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¿§¤ÎÄêµÁ ¤ÏÌÀ¼¨Åª¤Ê rgb (ÀÖ¡¢ÎС¢ÀÄ) ¤ò»ØÄꤹ¤ë¤«¡¢¿§Ì¾¤«¡¢¸½ºß¤Î pm3d ¥Ñ¥ì¥Ã¥È ¤ò»²¾È¤¹¤ë¿§¤ÎÃͤΤ¤¤º¤ì¤«¤Ç¹Ô¤Ê¤¤¤Þ¤¹¡£
Îã:
plot sin(x) lt rgb "violet" # gnuplot ¤Î»ý¤Ä¿§Ì¾¤Î°ì¤Ä plot sin(x) lt rgb "#FF00FF" # ÌÀ¼¨Åª¤Ê 16 ¿Ê RGB 3 ¤ÄÁÈ plot sin(x) lt palette cb -45 # ¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î cbrange ¤Î # -45 ¤ËÂбþ¤¹¤ë¿§ plot sin(x) lt palette frac 0.3 # ¥Ñ¥ì¥Ã¥È¤ËÂбþ¤¹¤ë¾®¿ôÃÍ
°Ê²¼»²¾È: show colornames (82.13), set palette (82.54), cbrange (82.126)¡£
ÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤ÏÅÀÀþ/ ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¤È¿§¤ÎξÊý¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£º£¤Î½ê gnuplot ¤Ë¤Ï¡¢ÅÀÀþ/ ÇËÀþ¥Ñ¥¿¡¼¥ó¤òÊѹ¹¤¹¤ë»ÅÁȤߤ¬¤Ê¤¤¤Î¤Ç¡¢ÆÃÄê¤ÎÅÀÀþ¥Ñ¥¿¡¼¥ó¤ÈÆÃÄê¤Î¿§¤ò ÁȤ߹ç¤ï¤»¤¿¤¤¾ì¹ç¤Ï¡¢Àè¤Ë¤½¤ÎÅÀÀþ¥Ñ¥¿¡¼¥ó¤ò»ý¤ÄÀþ¼ï (linetype) ¤òÁªÂò ¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î¿§¤ò¥¡¼¥ï¡¼¥É linecolor (¾Êά·Á¤Ï lc) ¤Ç¾å½ñ¤¤¹ ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢postscript ½ÐÎÏ·Á¼°¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï 3 ¤ÏÀÄ ¤ÎÇËÀþ¤Ç¤¹¡£°Ê²¼¤ÎÉÁ²è¥³¥Þ¥ó¥É¤ÏƱ¤¸ÇËÀþ¥Ñ¥¿¡¼¥ó¤Ç 3 ¤Ä¤ÎÉÁ²è¤ò¹Ô¤Ê¤¤¤Þ¤¹¤¬¡¢°ì¤Ä¤ÏÀÄ (¥Ç¥Õ¥©¥ë¥È)¡¢°ì¤Ä¤ÏÀÖ (Àþ¼ï 1 ¤Î¥Ç¥Õ¥©¥ë¥È¿§)¡¢¤â¤¦ °ì¤Ä¤Ï¶â¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
Îã:
set term postscript dashed color plot 'foo' lt 3, 'baz' lt 3 linecolor 1, 'bar' lt 3 lc rgb 'gold'
½ñ¼°:
... {linecolor | lc} {<colorspec> | <n>} ... {textcolor | tc} {<colorspec> | {linetype | lt} <n>}
< colorspec> ¤Ï°Ê²¼¤Î·Á¼°¤Î¤¤¤º¤ì¤«¤Ç¤¹:
rgbcolor "colorname" rgbcolor "#RRGGBB" rgbcolor variable # ¿§¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à palette frac <val> # <val> ¤Ï 0 ¤«¤é 1 ¤ÎÃÍ palette cb <value> # <val> ¤Ï cbrange ¤ÎÈϰϤÎÃÍ palette z variable # ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¿§ÈÖ¹æ¤òÆɤ߹þ¤à
< n> ¤Ï¡¢¤½¤ÎÀþ¼ï (linetype) Èֹ椬»È¤¦¿§¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼»²¾È:test (87)¡£
"colorname" ¤Ï gnuplot ¤¬ÆâÉô¤Ë»ý¤Ã¤Æ¤¤¤ë¿§¤Î̾Á°¤Î¤¦¤Á¤Î°ì¤Ä¤ò»ØÄꤷ ¤Þ¤¹¡£Í¸ú¤Ê̾Á°¤Î°ìÍ÷¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: show colornames (82.13)¡£
"#RRGGBB" ¤Ï "#" µ¹æ¤Î¸å¤Ë 16 ¿ÊÄê¿ô¤òʤ٤ޤ¹¡£RRGGBB ¤Ï¡¢ÀÖ¡¢ÎС¢ÀÄ ¤Î¿§¤ÎÀ®Ê¬¤ò°ÕÌ£¤·¡¢¤½¤ì¤¾¤ì¤Ï 0 - 255 ¤ÎÈϰϤοô¤Ç¤¹¡£Î㤨¤Ð¡¢¥Þ¥¼¥ó ¥¿ (»ç) = ºÇ¤âÌÀ¤ë¤¤ÀÖ + ºÇ¤âÌÀ¤ë¤¤ÀÄ¡¢¤Ê¤Î¤Ç¡¢#FF00FF ¤Èɽ¤µ¤ì¡¢¤³¤ì ¤Ï 16 ¿Ê¿ô¤Ç¡¢(255 < < 16) + (0 < < 8) + (255) ¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£
¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤È¤Ï¡¢¿§¤ÎÀþ·¿¤Ê¸ûÇۤǡ¢Ã±°ì¤Î¿ôÃͤòÆÃÄê¤Î¿§¤Ë³ê¤é¤«¤ËÂÐ ±þ¤Å¤±¤Þ¤¹¡£¾ï¤Ë¤½¤Î¤è¤¦¤Ê 2 ¤Ä¤ÎÂбþÉÕ¤±¤¬¸úÎϤò»ý¤Á¤Þ¤¹¡£ palette frac ¤Ï 0 ¤«¤é 1 ¤Þ¤Ç¤Î¾®¿ôÃͤò¡¢¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ÎÁ´ÈϰϤËÂÐ ±þÉÕ¤±¤ë¤â¤Î¤Ç¡¢palette cb ¤Ï¡¢¿§¼´¤ÎÈϰϤòƱ¤¸¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø³ä¤ê Åö¤Æ¤ë¤â¤Î¤Ç¤¹¡£°Ê²¼»²¾È: set cbrange (82.126), set colorbox (82.12)¡£¤³¤ì¤é¤ÎÂбþ ÉÕ¤±¤Î¤É¤Á¤é¤«¤ò»È¤Ã¤Æ¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤«¤éÄê¿ô¿§¤òÁª¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£
"palette z" ¤Ï¡¢³ÆÉÁ²èÀþʬ¤äÉÁ²èÍ×ÁǤΠz ¤ÎÃͤò¡¢¥Ñ¥ì¥Ã¥È¤ØÂбþ¤Å¤±¤é ¤ì¤Æ¤¤¤ë cbrange ¤ÎÈϰϤËÂбþ¤Å¤±¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢3 ¼¡¸µ¤Î¶ÊÀþ¤ä¶ÊÌÌ ¤Ë±è¤Ã¤Æ¿§¤ò³ê¤é¤«¤ËÊѲ½¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¡¢¥Ñ ¥ì¥Ã¥ÈÃͤòÄɲäÎÎó¥Ç¡¼¥¿¤«¤éÆɤ߹þ¤Þ¤»¤Æ¿§ÉÕ¤±¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹ (¤¹¤Ù ¤Æ¤Î 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤¬¤³¤ÎÄɲÃÎó¤òǧ¼±¤¹¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó)¡£
# °Ê²¼¤Ï¥¥ã¥ó¥Ð¥¹¤Î°ìÉôʬ¤òÇØ·Ê¿§¤Ç¾å½ñ¤¤¹¤ë¤³¤È¤Ç¾Ãµî¤·¤Þ¤¹¡£ set term wxt background rgb "gray75" set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd # °Ê²¼¤Ï x ¼´¤Ë±è¤Ã¤¿¡Ö¸«¤¨¤Ê¤¤¡×Àþ¤òÉÁ¤¤Þ¤¹¡£ 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
Îã:
# 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
linetypes ¤Ï±Ê³Ū (ÌÀ¼¨Åª¤Ë¤½¤ì¤é¤òºÆÄêµÁ¤¹¤ë¤Þ¤Ç¤ÏÊÝ»ý¤µ¤ì¤ë) ¤Ç¤¹ ¤¬¡¢linestyles ¤Ï°ì»þŪ¤Ê¤â¤Î¤Ç¤¹¡£¼¡¤Î¥°¥é¥Õ¥£¥Ã¥¯¤Î¾õÂÖ¤¬¥ê¥»¥Ã¥È ¤µ¤ì¤ë¤Þ¤Ç¤Î´Ö¤·¤«ÊÝ»ý¤µ¤ì¤Þ¤»¤ó¡£
Îã:
# ¿·¤·¤¤¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤¿§ cyan¡¢ÀþÉý¤¬ 3¡¢ # ÅÀ¼ï 6 (´Ý¤ÎÃæ¤ËÅÀ) ¤ÈÄêµÁ set style line 5 lt rgb "cyan" lw 3 pt 6 plot sin(x) with linespoints ls 5 # ÄêµÁ¥¹¥¿¥¤¥ë 5 ¤Ç
bind {allwindows} [<key-sequence>] ["<gnuplot commands>"] bind <key-sequence> "" reset bind
bind ¤Ï¡¢¥Û¥Ã¥È¥¡¼¤ÎÄêµÁ¡¢ºÆÄêµÁ¤Ë»ÈÍѤ·¤Þ¤¹¡£¥Û¥Ã¥È¥¡¼¤È¤Ï¡¢ÆþÎÏ ¥«¡¼¥½¥ë¤¬¥É¥é¥¤¥Ð¤Î¥¦¥£¥ó¥É¥¦Æâ¤Ë¤¢¤ë¤È¤¤Ë¡¢¤¢¤ë¥¡¼¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥ ¡¼¤ò²¡¤¹¤³¤È¤Ç¡¢gnuplot ¤Î¥³¥Þ¥ó¥ÉÎó¤ò¼Â¹Ô¤µ¤»¤ëµ¡Ç½¤Î¤³¤È¤ò¸À¤¤¤Þ¤¹¡£ bind ¤Ï¡¢gnuplot ¤¬ mouse ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤Æ ¤«¤Ä¥Þ¥¦¥¹¤¬Í¸ú¤Ê½ÐÎÏ·Á¼°¾å¤Ç»È¤ï¤ì¤Æ¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£¥æ¡¼¥¶»ØÄê¤Î¥¡¼³äÅö (binding) ¤Ï¡¢ÁȤ߹þ¤ß (builtin) ¥ ¡¼³äÅö¤òÃÖ¤´¹¤¨¤Þ¤¹¤¬¡¢< space> ¤È 'q' ¤ÏÄ̾ï¤ÏºÆÄêµÁ¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½ ¤ÎÍ£°ì¤ÎÎã³°¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: bind space (18.1.1)¡£
¥Þ¥¦¥¹¥Ü¥¿¥ó¤Ï 1 ¤Î¤ß¡¢¤½¤·¤Æ 2D ÉÁ²è¤Ë´Ø¤·¤Æ¤Î¤ßºÆÄêµÁ¤Ç¤¤Þ¤¹¡£
¥Û¥Ã¥È¥¡¼¤Î°ìÍ÷¤òÆÀ¤ë¤Ë¤Ï 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 # ¥Ç¥Õ¥©¥ë¥È (ÁȤ߹þ¤ß) ¤Î¥¡¼ÄêµÁ¤òƳÆþ bind! # "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
¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÆü쥡¼¤Î°ìÍ÷:
"BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock", "Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down", "PageUp", "PageDown", "End", "Begin",
"KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4", "KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp", "KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal", "KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal", "KP_Divide",
"KP_1" - "KP_9", "F1" - "F12"
°Ê²¼¤Ï¡¢¼ÂºÝ¤Î¥¡¼¤Ç¤Ï¤Ê¤¯¡¢¥¦¥£¥ó¥É¥¦¤Ë´Ø¤¹¤ë¥¤¥Ù¥ó¥È¤Ç¤¹:
"Button1" "Close"
°Ê²¼¤â»²¾È: mouse (82.40)¡£
plot 'something' pause mouse if (defined(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 (14.4)¡£
gnuplot -persist -e 'plot [-5:5] sinh(x)'
gnuplot ¤Ï¡¢É½¼¨¥¦¥£¥ó¥É¥¦¤ò³«¤¡¢¤½¤ÎÃæ¤Ë¥°¥é¥Õ¤òÉÁ¤¡¢¤½¤·¤Æ½ªÎ»¤·¡¢ ɽ¼¨¥¦¥£¥ó¥É¥¦¤Ï¥°¥é¥Õ¤ò¤½¤ÎÃæ¤Ë»ý¤Ã¤¿¤Þ¤Þ¥¹¥¯¥ê¡¼¥ó¤Ë»Ä¤ê¤Þ¤¹¡£½ÐÎÏ·Á ¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢¤½¤Î»Ä¤Ã¤¿¥¦¥£¥ó¥É¥¦¾å¤Ç¤â¿¾¯¤Î¥Þ¥¦¥¹Áàºî¤¬²Äǽ¤Ê¾ì¹ç¤â ¤¢¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¥°¥é¥Õ¤ÎºÆÉÁ²è¤òÍ׵᤹¤ë¥º¡¼¥à (¤È¤½¤ÎµÕ) ¤Î¤è¤¦¤ÊÁà ºî¤Ï¡¢´û¤Ë¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤Æ¤¤¤ë¤Î¤Ç°ìÈÌŪ¤Ë¤Ï̵Íý¤Ç¤¹¡£
¿·¤·¤¤½ÐÎÏ·Á¼°¤òÀßÄꤹ¤ë¤È¤¤Ë¤â persist ¤ä nopersist ¤ò»ØÄê¤Ç¤¤Þ ¤¹¡£Îã:
set term qt persist size 700,500
ÉÁ²è¤Ë´Ø¤¹¤ë°ìÈÌŪ¤Ê¾ðÊó¤ÎÂçȾ¤Ï¡¢plot ¤Ë´Ø¤¹¤ë¹à¤Ç¸«¤Ä¤«¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ë¸ÇͤξðÊó¤Ï splot ¤Î¹à¤Ë¤¢¤ê¤Þ¤¹¡£
plot ¤Ï xy ľ¸òºÂɸ·Ï¤È¶ËºÂɸ·Ï¤¬»È¤¨¤Þ¤¹¡£¶ËºÂɸ·Ï¤Î¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï °Ê²¼»²¾È: set polar (82.57)¡£splot ¤Ï xyz ľ¸òºÂɸ·Ï¤Î¤ß¤·¤«°·¤¨¤Þ¤»¤ó¤¬¡¢ ¥³¥Þ¥ó¥É set mapping ¤Ç¾¤Î 2, 3 ¤ÎºÂɸ·Ï¤ò»ÈÍѤ¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£ ¤µ¤é¤Ë¡¢¥ª¥×¥·¥ç¥ó using ¤ò»È¤¨¤Ð¡¢plot ¤Ç¤â splot ¤Ç¤â¤Û¤È¤ó¤É ¤É¤ó¤ÊºÂɸ·Ï¤Ç¤â¤½¤ì¤òÄêµÁ¤·¤Æ»È¤¦¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
plot ¤Ç¤Ï¡¢4 ¤Ä¤Î¶³¦ x (²¼), x2 (¾å), y (º¸), y2 (±¦) ¤ò¤½¤ì¤¾¤ìÆÈ Î©¤Ê¼´¤È¤·¤Æ°·¤¦¤³¤È¤â¤Ç¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó axes ¤Ç¡¢Í¿¤¨¤é¤ì¤¿´Ø¿ô¤ä ¥Ç¡¼¥¿½¸¹ç¤ò¤É¤Î¼´¤Î¥Ú¥¢¤Çɽ¼¨¤µ¤»¤ë¤«¤òÁª¤Ù¤Þ¤¹¡£¤Þ¤¿¡¢³Æ¼´¤Î½Ì¼Ü¤ä¸« ½Ð¤·¤Å¤±¤ò´°Á´¤ËÀ©¸æ¤¹¤ë¤¿¤á¤Ë½½Ê¬¤ÊÊ亴¤È¤Ê¤ë set ¥³¥Þ¥ó¥É·²¤¬Â¸ºß ¤·¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Ï¡¢set xlabel ¤Î¤è¤¦¤Ë¼´¤Î̾Á°¤ò¤½¤ÎÃæ¤Ë »ý¤Ã¤Æ¤¤¤Þ¤¹¤·¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤Ï set logscale xy ¤Î¤è¤¦¤Ë¡¢1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¼´¤Î̾Á°¤ò¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤È¤ê¤Þ¤¹¡£z ¼´¤òÀ©¸æ¤¹¤ë¥ª¥×¥·¥ç¥ó ¤ä¥³¥Þ¥ó¥É¤Ï 2 ¼¡¸µ¥°¥é¥Õ¤Ë¤Ï¸úÎϤò»ý¤Á¤Þ¤»¤ó¡£
splot ¤Ï¡¢ÅÀ¤äÀþ¤Ë²Ã¤¨¤Æ¶ÊÌ̤äÅù¹âÀþ¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£3 ¼¡¸µ¤Î´Ø ¿ô¤Î³Ê»ÒÄêµÁ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set isosamples (82.29)¡£3 ¼¡¸µ ¥Ç¡¼¥¿¤Î¥Õ¥¡¥¤¥ë¤ËɬÍפʷÁÂ֤ˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: splot datafile (84.1)¡£Åù ¹âÀþ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set contour (82.14), set cntrparam (82.11)¡£
splot ¤Ç¤Î½Ì¼Ü¤ä¸«½Ð¤·ÉÕ¤±¤ÎÀ©¸æ¤Ï¡¢x2 ¼´¤È y2 ¼´¤òÀ©¸æ¤¹¤ë¥³¥Þ¥ó¥É ¤ä¥ª¥×¥·¥ç¥ó¤Ï¸ú²Ì¤¬¤Ê¤¯¡¢z ¼´¤òÀ©¸æ¤¹¤ë¤â¤Î¤Ë¤Ï¤â¤Á¤í¤ó¸ú²Ì¤¬¤¢¤ë¡¢¤È ¤¤¤¦¤³¤È¤ò½ü¤±¤Ð plot ¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£
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
ʸ»úÎó¤ËÂФ¹¤ë 3 ¤Ä¤ÎÆó¹à±é»»»Ò¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: ʸ»úÎó¤Î·ë¹ç±é»»»Ò ".", ʸ»úÎó¤ÎÅù¹æ±é»»»Ò "eq", ¤ª¤è¤Óʸ»úÎó¤ÎÉÔÅù¹æ±é»»»Ò "ne" ¤Ç¤¹¡£°Ê²¼¤ÎÎã¤Ç¤Ï TRUE ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
if ("A"."B" eq "AB") print "TRUE"
°Ê²¼¤â»²¾È: 2 ¤Ä¤Îʸ»úÎó½ñ¼°´Ø¿ô gprintf (82.23.1), sprintf (14.1)¡£
Ǥ°Õ¤Îʸ»úÎó¡¢Ê¸»úÎóÊÑ¿ô¡¢Ê¸»úÎóÃÍ´Ø¿ô¤Ë¡¢ÈÏ°Ï»ØÄê»Ò¤ò¤Ä¤±¤ë¤³¤È¤Ë¤è¤ê Éôʬʸ»úÎó¤ò»ØÄê¤Ç¤¤Þ¤¹¡£ÈÏ°Ï»ØÄê»Ò¤Ï [begin:end] ¤Î·Á¤Ç¡¢begin ¤ÏÉô ʬʸ»úÎó¤ÎÀèƬ°ÌÃÖ¡¢end ¤ÏºÇ¸å¤Î°ÌÃ֤Ǥ¹¡£°ÌÃÖ»ØÄê¤Ï¡¢ºÇ½é¤Îʸ»ú¤ò 1 ÈÖÌܤȸ«¤Þ¤¹¡£ÀèƬ¤Î°ÌÃÖ¡¢ºÇ¸å¤Î°ÌÃ֤϶õ¡¢¤¢¤ë¤¤¤Ï '*' ¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾ì¹ç¡¢¤½¤ì¤Ï¸µ¤Îʸ»úÎó¼«ÂΤÎÀèƬ¡¢¤¢¤ë¤¤¤ÏºÇ¸å¤ò°ÕÌ£¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ str[:] ¤ä str[*:*] ¤Ï¤É¤Á¤é¤â str ¤Îʸ»úÎóÁ´ÂΤò°ÕÌ£¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥ÉÃÖ´¹¤Ï¡¢Ã±°ì°úÍÑÉäÆâ¤Îʸ»úÎó°Ê³°¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥óÃæ¡¢¤É¤³¤Ç¤Ç¤â»ÈÍѲÄǽ¤Ç¤¹¡£
Îã:
°Ê²¼¤ÎÎã¤Ï¡¢leastsq ¤È¤¤¤¦¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¡¢¤½¤Î½ÐÎÏ·ë²Ì¤Ç¡¢leastsq ¤ò (¤Þ¤ï¤ê¤Î°úÍÑÉ䤳¤ß¤Ç) ÃÖ¤´¹¤¨¤Þ¤¹:
f(x) = `leastsq`
¤¿¤À¤· VMS ¤Ç¤Ï¡¢
f(x) = `run leastsq`
°Ê²¼¤Ï¸½ºß¤ÎÆüÉդȥ桼¥¶¡¼Ì¾¤Î¥é¥Ù¥ë¤òÀ¸À®¤·¤Þ¤¹:
set label "generated on `date +%Y-%m-%d` by `whoami`" at 1,1 set timestamp "generated on %Y-%m-%d by `whoami`"
set macros 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
¥³¥Þ¥ó¥É¤ò´°À®¤µ¤»¤Æ¼Â¹Ô¤¹¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É 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 ¤È¤Ê¤ê¤Þ¤¹¡£
EEPIC, Imagen, Uniplex, LaTeX, TPIC ¤Î³Æ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢Ã±°ì°úÍÑÉäÆâ¤Î \ \ ¤Þ¤¿¤ÏÆó½Å°úÍÑÉäÆâ¤Î \ \ \ \ ¤Ç²þ¹Ô¤ò¼¨¤¹¤³¤È¤¬²Äǽ¤Ç¤¹¡£
¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤Ç°Ï¤ß¤Þ¤¹¡£¤³¤Î¥Þ¥Ë¥å¥¢¥ë ¤Ç¤Ï°ìÈ̤˥³¥Þ¥ó¥É¤ÎÎ㼨¤Ç¤Ï¡¢¤ï¤«¤ê¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ë¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°ú ÍÑÉä¤Ç¤¯¤¯¤ê¡¢Â¾¤Îʸ»úÎó¤ÏÆó½Å°úÍÑÉä¤Ç¤¯¤¯¤ê¤Þ¤¹¡£
¸«½Ð¤· (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 (12)¡£
¥Ð¥Ã¥¯¥¯¥©¡¼¥È (¡®¡®) ¤Ï¥³¥Þ¥ó¥É¥é¥¤¥óÃæ¤ÎÃÖ´¹¤Î¤¿¤á¤Ë¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É ¤ò°Ï¤à¤Î¤Ë»È¤¤¤Þ¤¹¡£°Ê²¼»²¾È: substitution (23)¡£
ÆâÉô¤Ç¤Ï¡¢»þ¹ï¤ÈÆüÉÕ¤Ï 2000 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤È¤·¤ÆÊݸ¤µ¤ì¤Æ¤¤¤Þ ¤¹¡£¤³¤ì¤Ï¡¢É¸½àŪ¤Ê Unix ¥¨¥Ý¥Ã¥¯ (1970 ǯ 1 ·î 1 Æü) ¤È¤Ï¡Ö°Û¤Ê¤ë¡× ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤Î 2 ¤Ä¤Î¥¨¥Ý¥Ã¥¯¤Î¤º¤ì¤Ï EPOCH_OFFSET = 946684800.0 ÉäǤ¹¡£unix ¤Ç¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤È gnuplot ¤Î¤ß¤ÎÉäǤλþ¹ï ɽ¸½¤È¤ÎÊÑ´¹¤Ë¤³¤ÎÃͤ¬É¬Íפˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢gnuplot ¥Ð¡¼¥¸ ¥ç¥ó 5 ¤Ç¤ÏÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥³¥Þ¥ó¥É set timefmt ¤ÏÁ´¤Æ¤ÎÆþÎϽñ¼°¤òÄêµÁ¤·¤Þ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¡¢ ÈÏ°Ï¡¢¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¥é¥Ù¥ë¤Î°ÌÃÖ¡£¼êû¤Ë¸À¤¨¤Ð¡¢¥Ç¡¼¥¿¤ÎÃͤò¼õ¤± ¤È¤ëÁ´¤Æ¤Î¤â¤Î¤¬¤³¤Î½ñ¼°¤Ë¤·¤¿¤¬¤Ã¤Æ¼õ¤±¤È¤é¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£°ì»þ¤Ë ¤Ï°ì¤Ä¤ÎÆþÎϽñ¼°¤Î¤ß¤¬Í¸ú¤Ê¤Î¤Ç¡¢Æ±¤¸¤È¤¤ËÆþÎϤµ¤ì¤ëÁ´¤Æ¤Î»þ´Ö/ÆüÉÕ ¤Î¥Ç¡¼¥¿¤ÏƱ¤¸½ñ¼°¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥Õ¥¡¥¤¥ëÆâ¤Î x ¤È y ¤Î ξÊý¤¬»þ´Ö/ÆüÉեǡ¼¥¿¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏƱ¤¸½ñ¼°¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤» ¤ó¡£
Éÿô¤Ø (Éÿô¤«¤é) ¤ÎÊÑ´¹¤Ï¹ñºÝɸ½à»þ (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() ¤Ï¸½ºß¤Î»þ¹ï¤ò 2000 ǯ 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" ¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
°Ê²¼»²¾È: time_specifiers (82.23.3)¡£
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 (72.3.8)¡£
3 Îó: x y ydelta 4 Îó: x y ydelta xdelta # È¢¤ÎÉý != -2 4 Îó: x y ylow yhigh # È¢¤ÎÉý == -2 5 Îó: x y ylow yhigh xdelta
ÆþÎÏÎó¤òÄɲà (4,5,6 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (17.1), rgbcolor variable (17.1.3)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£¸í º¹Àþ¤Ï¡¢È¢¤Î¶³¦¤ÈƱ¤¸¿§¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£
È¢¤Î¹â¤µ¤Ï¡¢yerrorbars ¥¹¥¿¥¤¥ëƱÍÍ¤Ë y ¤Î¸íº¹¤ÎÃͤ«¤é·èÄꤵ¤ì¤Þ¤¹¡£ y-ydelta ¤«¤é y+ydelta ¤Þ¤Ç¡¢¤¢¤ë¤¤¤Ï ylow ¤«¤é yhigh ¤Þ¤Ç¡¢¤³¤ì¤é¤Ï²¿ Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£ °Ê²¼¤â»²¾È
2 Îó: x y 3 Îó: x y x_width
È¢¤ÎÉý¤Ï 3 ¤Ä¤Î¤¦¤Á°ì¤Ä¤ÎÊýË¡¤Ç·èÄꤵ¤ì¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¤¬ 3 ÎóÌܤΥǡ¼ ¥¿¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤¬È¢¤ÎÉý¤Ë¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¯¤Æ set boxwidth ¥³¥Þ¥ó¥É¤ÇÈ¢¤ÎÉý¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤¬»È¤ï¤ì ¤Þ¤¹¡£¤½¤Î¤É¤Á¤é¤Ç¤â¤Ê¤¤¾ì¹ç¡¢È¢¤ÎÉý¤Ï¡¢ÎÙÀܤ¹¤ëÈ¢¤¬¤¯¤Ã¤Ä¤¯¤è¤¦¤Ë¼«Æ° Ū¤Ë·×»»¤µ¤ì¤Þ¤¹¡£
È¢¤ÎÃæ¿È¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ë½¾¤Ã¤ÆÅɤê¤Ä¤Ö¤µ¤ì¤Þ ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set style fill (82.66.4)¡£¿·¤·¤¤Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò plot ¥³¥Þ¥ó¥É¾å¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤¬ empty ¤Î¾ì¹ç¤Ï¡¢È¢¤ÏÅɤê¤Ä¤Ö¤µ¤ì¤Þ¤»¤ó¡£
Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤¬ solid ¤Î¾ì¹ç¤Ï¡¢È¢¤Ï¸½ºß¤ÎÉÁ²è¿§¤Ç¥Ù¥¿Åɤꤵ¤ì ¤Þ¤¹¡£¤³¤ì¤Ë¤ÏÄɲ媥ץ·¥ç¥ó < density> ¤¬¤¢¤ê¡¢¤½¤ì¤ÏÅɤê¤Ä¤Ö¤·Ì©ÅÙ¤ò °ÕÌ£¤·¡¢0 ¤ÏÇØ·Ê¿§¡¢1 ¤ÏÉÁ²è¿§¤½¤Î¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£
Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤¬ pattern ¤Î¾ì¹ç¤Ï¡¢È¢¤Ï¸½ºß¤ÎÉÁ²è¿§¤Ç¤¢¤ë¥Ñ¥¿¡¼ ¥ó¤ÇÅɤê¤Ä¤Ö¤µ¤ì¤Þ¤¹¤¬¡¢½ÐÎϥɥ饤¥Ð¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
Îã:
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òÅɤê¤Ä¤Ö¤·¤¿È¢¤ÇÉÁ²è¤·¡¢È¢Æ±»Î¤ò¾¯¤·¿âľÊý¸þ¤Ë¥¹¥Ú¡¼¥¹ ¤ò¶õ¤±¤ë (ËÀ¥°¥é¥Õ):
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, cos(x) with boxes
sin ¤Ï¥Ñ¥¿¡¼¥ó 0 ¤Ç¡¢cos ¤Ï¥Ñ¥¿¡¼¥ó 1 ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£Äɲ䵤ì¤ëÉÁ²è¤Ï ½ÐÎϥɥ饤¥Ð¤¬¥µ¥Ý¡¼¥È¤¹¤ë¥Ñ¥¿¡¼¥ó¤ò½Û´ÄŪ¤Ë»ÈÍѤ·¤Þ¤¹¡£
¤½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿½¸¹ç¤ÇÌÀ¼¨Åª¤ËÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò»ØÄê:
plot 'file1' with boxes fs solid 0.25, \ 'file2' with boxes fs solid 0.50, \ 'file3' with boxes fs solid 0.75, \ 'file4' with boxes fill pattern 1, \ 'file5' with boxes fill empty
Îã:
# 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 style boxplot ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ °Ê²¼»²¾È: set style boxplot (82.66.2), bars (82.4), boxwidth (82.8), fillstyle (82.66.4),candlesticks (30)¡£
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 ¤Þ¤Ç¡£¤³¤ì¤é¤Ï²¿Îó¤Î¥Ç¡¼¥¿ ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£
ÆþÎÏÎó¤òÄɲà (5,7 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (17.1), rgbcolor variable (17.1.3)) ¤Ç¤¢¤ë¤È¤·¤Æ»È¤ï¤ì¤Þ ¤¹¡£
È¢¤ÎÆâÉô¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ë½¾¤Ã¤ÆÅɤé¤ì¤Þ¤¹¡£¾Ü ºÙ¤Ï¡¢°Ê²¼»²¾È: set style fill (82.66.4), boxes (27)¡£plot ¥³¥Þ¥ó¥É¾å¤Ç¿·¤·¤¤ÅÉ¤ê ¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
´ðËÜŪ¤Ë 5 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹:
¶âÍ»¥Ç¡¼¥¿: date open low high close È¢¤Ò¤²ÉÁ²è: x box_min whisker_min whisker_high box_high
ĹÊý·Á¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¤¬¡¢°ÊÁ°¤Î gnuplot¤Ø¤Î¸åÊý¸ß´¹À¤È¤·¤Æ¡¢boxwidth ¥Ñ¥é¥á¡¼¥¿¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ïset bars < width> ¤ÇÀ©¸æ¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤ÎÂå¤ï¤ê¤Ë¡¢È¢¤Ò¤² (box-and-whisker) ¤Î¥°¥ë¡¼¥×²½¤Ë´Ø¤¹¤ëÌÀ¼¨Åª¤Ê Éý¤Î»ØÄê¤ò¡¢ÄɲäΠ6 ÈÖÌܤΥǡ¼¥¿¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ÎÉý¤Ï¡¢x ºÂɸ¤ÈƱ ¤¸Ã±°Ì¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ¡¢¤Þ¤¿¤Ï 6 ÎóÌܤ¬¥Ç¡¼¥¿¤ÎÉý¤È¤·¤Æ»È¤ì¤ë¾ì¹ç¤Ï 7 Îó ÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È:linecolor (17.1), rgbcolor variable (17.1.3)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢±ôľÀþʬ¤Î¤Æ¤Ã¤Ú¤ó¤ÈÄì¤Ë¤Ï¿âľ¤Ë¸ò¤ï¤ë¿åÊ¿Àþ¤Ï°ú¤«¤ì¤Þ ¤»¤ó¡£¤½¤ì¤ò°ú¤¤¿¤¤¾ì¹ç¡¢Î㤨¤Ðŵ·¿Åª¤ÊÎã¤ÏÈ¢¤Ò¤²¿Þ (box-and-whisker plot) ¤Ç¤Î»ÈÍѤǤ¹¤¬¡¢ÉÁ²è¥³¥Þ¥ó¥É¤Ë¥¡¼¥ï¡¼¥É whiskerbars ¤òÄɲä· ¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿åÊ¿Àþ¤ÏÈ¢ (candlestick) ¤Î¿åÊ¿Éý°ìÇդ˰ú ¤«¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÁ´ÂΤÎÉý¤ËÂФ¹¤ë³ä¹ç¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
¶âÍ»¥Ç¡¼¥¿¤ÎÄ̾ï¤Î´·½¬¤Ç¤Ï¡¢(³«»ÏÃÍ) < (½ªÃÍ) ¤Î¾ì¹ç¤ÏĹÊý·Á¤Ï¶õ¤Ç¡¢ (½ªÃÍ) < (³«»ÏÃÍ) ¤Î¾ì¹ç¤ÏÅɤêÄÙ¤µ¤ì¤Þ¤¹¡£¸½ºß¤Î fillstyle ¤Ë "empty" ¤ò¥»¥Ã¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼ÂºÝ¤Ë¤³¤¦¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (82.66.4)¡£ fillstyle ¤ËÅɤêÄÙ¤·¡¢¤Þ¤¿¤Ï¥Ñ¥¿¡¼¥ó¤ò¥»¥Ã¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢³«»ÏÃÍ¡¢½ª Ãͤ˴ط¸¤Ê¤¯¡¢¤¹¤Ù¤Æ¤ÎÈ¢¤Ë¤½¤ì¤¬»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set bars (82.4),financebars (35)¡£¤Þ¤¿¡¢°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¤È
¤Î¥Ç¥â¡£
Ãí°Õ: Ãæ±ûÃͤòɽ¤¹¤¿¤á¤Îµ¹æ¤Ê¤É¤òÄɲä·¤¿¤¤¾ì¹ç¡¢°Ê²¼¤ÎÎã¤Î¤è¤¦¤Ë¡¢¤Ò¤²ÉÕ¤¤ÎËÀ¥°¥é¥Õ¤Ë¾¤ÎÉÁ²è¥³¥Þ¥ó¥É¤òÄɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹:
# ¥Ç¡¼¥¿Îó: X 'ºÇ¾®ÃÍ' '1/4 °Ì¤ÎÃÍ' 'Ãæ±ûÃÍ' '3/4 °Ì¤ÎÃÍ' 'ºÇÂçÃÍ' set bars 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 (82.8), set bars (82.4), set style fill (82.66.4), boxplot (28)¡£
Îã:
# ÌÌÀѤ¬ 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
¤³¤ì¤Ï¡¢pointstyle 7 ¤ÇÅÀ¤Î¥µ¥¤¥º¤ò variable ¤È¤·¤¿ points ¤Ë¤è¤ëÉÁ ²è¤È»÷¤Æ¤¤¤Þ¤¹¤¬¡¢circles ¤Ï x ¼´¤ÎÈϰϤǿ½Ì¤µ¤ì¤ëÅÀ¤¬°Û¤Ê¤ê¤Þ¤¹¡£°Ê²¼¤â»²¾È: set object circle (82.47.3), fillstyle (82.66.4)¡£
2 Îó: x y 3 Îó: x y major_diam 4 Îó: x y major_diam minor_diam 5 Îó: x y major_diam minor_diam angle
2 Îó¤Î¥Ç¡¼¥¿¤Î¤ß¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¤È¤ß¤Ê¤µ¤ì¡¢Â汧 ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÂ礤µ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (82.66.10))¡£ÂÊ ±ß¤Î¸þ¤¤Ï¡¢¼ç¼´¤È x ¼´¤Î¤Ê¤¹³Ñ¤ÇÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î ellipse ¤Î¥¹¥¿¥¤¥ë¤«¤é¼è¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (82.66.10))¡£ 3 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢3 ÎóÌܤϼ硢Éûξ¼´¤Îľ·Â (Éý) ¤È¤·¤Æ»È ¤ï¤ì¤Þ¤¹¡£¸þ¤¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç 0 ¤Ë¤Ê¤ê¤Þ¤¹¡£ 4 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¡¢¼ç¼´Ä¾·Â (Éý)¡¢Éû ¼´Ä¾·Â¤È¤·¤Æ»È¤ï¤ï¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ïľ·Â¤Ç¤¢¤ê¡¢È¾·Â¤Ç¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ ¤¯¤À¤µ¤¤¡£ 5 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢5 ÎóÌܤÎÃͤÏÅÙñ°Ì¤Î¸þ¤¤Î³ÑÅ٤λØÄê¤È ¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£ Âʱߤϡ¢3,4,5 Îó¤ÎÃͤÏÉé¤ÎÃͤȤ·¤Æ»ØÄꤹ¤ë¤³¤È¤Ç¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î ÃͤòÍøÍѤ·¤ÆÂʱߤò½ñ¤«¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¾å¤Î¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢variable color ¥Ç¡¼¥¿¤òºÇ¸å¤ÎÎó (3,4,5,6 ÎóÌÜ) ¤È ¤·¤ÆÄɲäǤ¤Þ¤¹¡£¾ÜºÙ¤Ï°Ê²¼»²¾È: colorspec (17.1)¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¼ç¼´Ä¾·Â¤Ï¿åÊ¿¼´ (x ¤Þ¤¿¤Ï x2) ¤Îñ°Ì¡¢Éû¼´Ä¾·Â¤Ï¿âľ ¼´ (y ¤Þ¤¿¤Ï y2) ¤Îñ°Ì¤Ç¤¢¤ë¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢x ¼´¤È y ¼´¤Î½Ì¼Ü ¤¬°Û¤Ê¤ë¾ì¹ç¡¢¼ç¼´¤ÈÉû¼´¤ÎÈæ¤Ï²óž¸å¤Ë¤ÏÀµ¤·¤¯¤Ï¤Ê¤é¤Ê¤¤¡¢¤È¤¤¤¦¤³¤È¤ò °ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¤³¤ÎµóÆ°¤Ï¡¢¥¡¼¥ï¡¼¥É units ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
¤³¤ì¤Ë´Ø¤·¤Æ¤Ï¡¢3 ¼ïÎà¤ÎÂåÍÑÉʤ¬¤¢¤ê¤Þ¤¹: units xy ¤¬ÉÁ²è»ØÄê¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î¼´¤Ï¾å¤Ë½Ò¤Ù¤¿¤è¤¦¤Ë½Ì¼Ü ¤µ¤ì¤Þ¤¹¡£units xx ¤È¤¹¤ë¤È¡¢Ä¾·Â¤Ïξ¼´¤È¤â x ¼´¤Îñ°Ì¤Ç·×»»¤µ¤ì¡¢ units yy ¤Ïξ¼´¤È¤â y ¼´¤Îñ°Ì¤Ç·×»»¤µ¤ì¤Þ¤¹¡£¸å¤Î 2 ¤Ä¤Ï¡¢ÉÁ²è¤Î¥µ ¥¤¥º¤òÊѹ¹¤·¤Æ¤â¡¢ÂʱߤÏÀµ¤·¤¤¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò»ý¤Á¤Þ¤¹¡£
units ¤ò¾Êά¤·¤¿¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄ꤬»ÈÍѤµ¤ì¡¢units xy ¤È¤Ê ¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¡¢set style ellipse ¤ÇºÆÄêµÁ²Äǽ¤Ç¤¹¡£
Îã (Âʱߤò͸ú¤ÊÀþ¼ï¤ò¼þ´üŪ¤Ë»ÈÍѤ·¤ÆÉÁ²è):
plot 'data' using 1:2:3:4:(0):0 with ellipses
°Ê²¼¤â»²¾È: set object ellipse (82.47.2), set style ellipse (82.66.10), fillstyle (82.66.4)¡£
½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï (post, pdf ¤Ê¤É)¡¢¥É¥Ã¥È¤ÎÂ礤µ¤Ï linewidth ¤òÊѹ¹ ¤¹¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£
1 Îó: y # x ¤Ï¹ÔÈÖ¹æ 2 Îó: x y 3 Îó: x y z # 3D ¤Î¤ß (splot)
½ñ¼°:
plot ... with filledcurves [option]
¤³¤³¤Ç¡¢¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¹:
[closed | {above | below} {x1 | x2 | y1 | y2 | r}[=<a>] | xy=<x>,<y>]
ºÇ½é¤Î¤â¤Î¤Ï closed ¤Ç¡¢¤³¤ì¤Ï¶ÊÀþ¤½¤ì¼«¿È¤òÊÄ¿³Ñ·Á¤È¸«¤Ê¤·¤Þ¤¹¡£Æþ Îϥǡ¼¥¿¤¬ 2 Îó¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
2 ¼ïÎàÌܤϻØÄꤵ¤ì¤¿¼´¡¢¤¢¤ë¤¤¤Ï¿åÊ¿Àþ¡¢¿âľÀþ¡¢Í¿¤¨¤é¤ì¤¿ÅÀ¤Ê¤É¤È¡¢¶Ê Àþ¤È¤Î´Ö¤Ëºî¤é¤ì¤ëÎΰè¤òÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£
filledcurves closed ... ÃúÅÙÊĶÊÀþ¤Ç°Ï¤Þ¤ì¤ëÎΰè filledcurves x1 ... x1 ¼´ filledcurves x2 ... x2 ¼´ (y1, y2 ¼´¤âƱÍÍ) filledcurves y1=0 ... (y1 ¼´¤Ç¤Î) ľÀþ y=0 i.e. x1 ¼´¤ÈÊ¿¹Ô filledcurves y2=42 ... (y2 ¼´¤Ç¤Î) ľÀþ y=42 i.e. x2 ¼´¤ÈÊ¿¹Ô filledcurves xy=10,20 ... x1,y1 ¼´¤Ç¤ÎÅÀ 10,20 (À𷿤Τ褦¤Ê·Á¾õ) filledcurves above r=1.5 ¶ËºÂɸ¤Ç¤ÎÆ°·Â¼´¤Î 1.5 ¤Î³°Â¦¤ÎÎΰè
3 ¼ïÎàÌÜ¤Ï 3 Îó¤ÎÆþÎϥǡ¼¥¿¤òɬÍפȤ·¡¢¤½¤ì¤é¤Ï x ºÂɸ¤È¡¢¤½¤ì¤ËÂФ¹¤ë 2 ¤Ä¤Î y ºÂɸ¤«¤é¤Ê¤ê¡¢¤½¤ì¤é¤ÏƱ¤¸ x ºÂɸ¤Î½¸¹ç¤ËÂФ¹¤ë 2 ¤Ä¤Î¶ÊÀþ¤Î y ºÂɸ¤ËÂбþ¤·¤Þ¤¹¡£¤½¤·¤Æ¤½¤Î 2 ¤Ä¤Î¶ÊÀþ¤Î´Ö¤ÎÎΰ褬Åɤê¤Ä¤Ö¤µ¤ì¤Þ¤¹¡£ ÆþÎϥǡ¼¥¿¤¬ 3 Îó°Ê¾å¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
3 Îó: x y1 y2
ÆþÎϤµ¤ì¤¿ 2 ¤Ä¤Î¶ÊÀþ¤Î´Ö¤ÎÎΰè¤ÎÅɤê¤Ä¤Ö¤·¤ÎÎã:
plot 'data' using 1:2:3 with filledcurves
above ¤È below ¥ª¥×¥·¥ç¥ó¤Ï
... filledcurves above {x1|x2|y1|y2|r}=<val>
... using 1:2:3 with filledcurves below
Ãí°Õ: ¤³¤ÎÉÁ²è¥â¡¼¥É¤ÏÁ´¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÉÁ¤«¤ì¤¿¶ÊÀþ¤ÎÅɤê¤Ä¤Ö¤·¤ò³ÈÂ礹¤ë¤È¡¢²¿¤â¤Ê¤¯¤Ê¤Ã¤¿ ¤êÀµ¤·¤¯¤Ê¤¤Îΰè¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï gnuplot ¤¬¡¢Îΰè¤Ç¤Ï¤Ê ¤¯ÅÀ¤äÀþ¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹¡£
< a> , < x> , < y> ¤¬ÉÁ²èÎΰè¤Î³°¤Ë¤¢¤ë¾ì¹ç¡¢¤½¤ì¤é¤Ï¥°¥é¥Õ¤Î¶³¦¤Ø°ÜÆ°¤µ¤ì ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥ª¥×¥·¥ç¥ó xy=< x> ,< y> ¤ò»ØÄꤷ¤¿¾ì¹ç¤Î¼ÂºÝ¤ÎÅɤê¤Ä¤Ö¤·ÎÎ °è¤Ï¡¢xrange ¤ä yrange ¤Ë°Í¸¤·¤Þ¤¹¡£
5 Îó: date open low high close
ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¹ÔËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (17.1), rgbcolor variable (17.1.3)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È
autoscale ¤¬Í¸ú¤Ç¤¢¤ë¾ì¹ç¡¢x ¤ÎÈϰϤϡ¢¤½¤Î±äŤµ¤ì¤¿¿åÊ¿Àþ¤ÎÈÏ°Ï¤Ç ¤Ï¤Ê¤¯¡¢¥Ç¡¼¥¿ÅÀ¤ÎÈϰϤ¬ÁªÂò¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ã¼¤ÎÅÀ¤Ë´Ø¤·¤Æ¤Ï¤½¤Î¿åÊ¿ Àþ¤ÏȾʬ¤·¤«ÉÁ¤«¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ °Ê²¼¤â»²¾È
histeps ¤Ïñ¤Ê¤ëÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤¹¤®¤º¡¢gnuplot ¤Ë¤Ï¡¢¥Ò¥¹¥È¥°¥é¥à¤Î È¢¤òÀ¸À®¤¹¤ëǽÎϤ䡢¥Ç¡¼¥¿½¸¹ç¤«¤éÊ콸ÃĤò·èÄꤹ¤ëǽÎϤʤɤϤ¢¤ê¤Þ¤»¤ó¡£
set style histogram clustered {gap <gapsize>} set style histogram errorbars {gap <gapsize>} {<linewidth>} set style histogram rowstacked set style histogram columnstacked
¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï set style histogram clustered gap 2 ¤ËÂбþ¤· ¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢ÊÂÎó¤Ë»ØÄꤵ¤ì¤¿¥Ç¡¼¥¿¤ÎÃͤν¸¹ç¤Ï¡¢ÁªÂò¤µ ¤ì¤¿¥Ç¡¼¥¿Îó¤Î¤½¤Î¤½¤ì¤¾¤ì¤Î½øÎó (¹ÔÈÖ¹æ) ¤ËÂбþ¤¹¤ë x ºÂɸ¤Î¾ì½ê¤Ë¡¢ ³Æ¡¹È¢¤Î¥°¥ë¡¼¥×¤È¤·¤Æ¸Ç¤á¤é¤ì¤ÆÃÖ¤«¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢< n> ¸Ä¤Î¥Ç¡¼¥¿Îó¤ò ÊÂÎó¤Ë»ØÄꤷ¤¿¾ì¹ç¡¢ºÇ½é¤Î¸Ç¤Þ¤ê¤Ï x=1 ¤òÃæ¿´¤È¤¹¤ë < n> ¸Ä¤ÎÈ¢¤Î¸Ç¤Þ¤ê ¤«¤é¤Ê¤ê¡¢¤½¤Î³Æ¡¹¤Î¹â¤µ¤Ï¡¢¤½¤Î < n> ¥Ç¡¼¥¿Îó³Æ¡¹¤ÎºÇ½é (1 ¹ÔÌÜ) ¤ÎÃÍ ¤¬¼è¤é¤ì¤Þ¤¹¡£¤½¤Î¸å¤Ë¾¯¤·¶õÇò (gap) ¤¬¶õ¤±¤é¤ì¡¢¼¡¤Ë³Æ¥Ç¡¼¥¿Îó¤Î¼¡ (2 ¹ÔÌÜ) ¤ÎÃͤËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤¬ x=2 ¤òÃæ¿´¤È¤·¤ÆÃÖ¤«¤ì¤Þ¤¹¡£°Ê²¼Æ±ÍͤǤ¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶õÇò (gap) Éý¤Î 2 ¤Ï¡¢È¢¤Î¸Ç¤Þ¤êƱ»Î¤Î´Ö¤Î¶õÇò¤¬¡¢È¢ 2 ¤Ä¤ÎÉý¤ËÅù¤·¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£Æ±¤¸Îó¤ËÂФ¹¤ëÈ¢¤ÏÁ´¤ÆƱ¤¸¿§¤Þ¤¿¤ÏƱ ¤¸¥Ñ¥¿¡¼¥ó¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style fill (82.66.4))¡£
È¢¤Î¸Ç¤Þ¤ê¤½¤ì¤¾¤ì¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 1 ¤Ä¤Î¹Ô¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£¤½¤Î¤è ¤¦¤ÊÆþÎÏ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤ÎºÇ½é¤Î¹àÌܤ¬¸«½Ð¤· (¥é¥Ù¥ë) ¤Ç¤ë¤³¤È¤ÏÎɤ¯¤¢¤ë ¤³¤È¤Ç¤¹¡£¤½¤ÎÎó¤Ë¤¢¤ë¸«½Ð¤· (¥é¥Ù¥ë) ¤Ï¡¢using ¤Ë xticlabels ¥ª¥× ¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢¤½¤ì¤ËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤Î¿¿²¼¤Î x ¼´¤Ë±è¤Ã¤¿¤È ¤³¤í¤ËÃÖ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
errorbars ¥¹¥¿¥¤¥ë ¤Ï¡¢³Æ¥¨¥ó¥È¥ê¤ËÂФ·¤ÆÄɲäÎÆþÎÏÎó¤òɬÍפȤ¹¤ë°Ê³°¤Ï clustered ¥¹¥¿¥¤¥ë¤Ë¤È¤Æ¤âÎɤ¯»÷¤Æ¤¤¤Þ¤¹¡£ºÇ½é¤ÎÎó¤Ï¡¢
clustered ¥¹¥¿¥¤¥ë¤Î¾ì¹ç¤ÈÁ´¤¯Æ±ÍͤËÈ¢¤Î¹â¤µ (y ¤ÎÃÍ) ¤È¤·¤ÆÊÝ»ý¤µ¤ì
¤Þ¤¹¡£
2 Îó: y yerr # Àþ¤Ï y-yerr ¤«¤é y+err ¤Ø¿¤Ó¤ë 3 Îó: y ymin ymax # Àþ¤Ï ymin ¤«¤é ymax ¤Ø¿¤Ó¤ë
ÀѤ߾夲·¿¤Î¥Ò¥¹¥È¥°¥é¥à¤â 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 (82.66.4))¡£
¥¹¥¿¥¤¥ë columnstacked ¤âƱÍͤǤ¹¤¬¡¢¤³¤Á¤é¤Ï³ÆÈ¢¤ÎÀѤ߾夲¤Ï (³Æ¹Ô ¤Î¥Ç¡¼¥¿¤«¤é¤Ç¤Ï¤Ê¤¯) ³ÆÎó¤Î¥Ç¡¼¥¿¤«¤é¤Ê¤ê¤Þ¤¹¡£ºÇ½é¤Ë»ØÄꤵ¤ì¤¿Îó¤Î³Æ ¹Ô¤Î¥Ç¡¼¥¿¤¬ x=1 ¤ÎÈ¢¤ÎÀѤ߾夲¤òÀ¸À®¤·¡¢2 ÈÖÌܤ˻ØÄꤷ¤¿Îó¤Î³Æ¹Ô¤Î¥Ç ¡¼¥¿¤¬ x=2 ¤ÎÈ¢¤ÎÀѤ߾夲¡¢¤Ê¤É¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢³Æ È¢¤Î¿§¤Ï¡¢³Æ¥Ç¡¼¥¿¹àÌܤΠ(ÎóÈÖ¹æ¤Ç¤Ï¤Ê¤¯) ¹ÔÈֹ椫¤é·èÄꤵ¤ì¤Þ¤¹¡£
È¢¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ È¢¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤Ï¥³¥Þ¥ó¥É set style fill ¤ÇÀßÄê¤Ç¤¤Þ¤¹¡£
histograms ¤Ï x ¼´¤Ï¾ï¤Ë x1 ¼´¤ò»È¤¤¤Þ¤¹¤¬¡¢y ¼´¤Ë´Ø¤·¤Æ¤Ï y1 ¼´¤« y2 ¼´¤«¤òÁªÂò¤Ç¤¤Þ¤¹¡£plot Ì¿Î᤬¡¢histograms ¤È¾¤Î¥¹¥¿¥¤¥ë¤ÎÉÁ²è¤ÎξÊý ¤ò´Þ¤à¾ì¹ç¡¢histogram ¤Ç¤Ê¤¤Êý¤Ï¡¢x1 ¼´¤ò»È¤¦¤« x2 ¼´¤ò»È¤¦¤«¤òÁªÂò¤Ç ¤¤Þ¤¹¡£
Îã:
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 bars 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
set style histogram columnstacked plot '' u 5:key(1) # 1 ÎóÌܤò key ¥¿¥¤¥È¥ë¤Ë»ÈÍÑ plot '' u 5 title columnhead #
¤³¤Î 2 ¤Ä¤ÎÎã¤Ï¡¢Á´¤¯Æ±¤¸¥Ç¡¼¥¿ÃͤòÍ¿¤¨¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢°Û¤Ê¤ë½ñ¼°¤Ç¤¢ ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
newhistogram {"<title>"} {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 ¤Ë¥»¥Ã¥È¤·¤¿¾ì¹ç¡¢ÅɤêÄÙ¤·¤Ë»ÈÍѤµ¤ì¤ë ¥Ñ¥¿¡¼¥óÈÖ¹æ¤Ï¼«Æ°Åª¤ËÁý²Ã¤µ¤ì¤Æ¤¤¤¤Þ¤¹¡£
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
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] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£
¥¹¥¿¥¤¥ë rgbalpha ¤Ï¡¢ÀÖ¡¢ÎС¢ÀĤΠRGB À®Ê¬¤Ë²Ã¤¨¤Æ¡¢¥¢¥ë¥Õ¥¡¥Á¥ã¥Í ¥ë (Æ©²á¥Ñ¥é¥á¡¼¥¿) ¤Î¾ðÊó¤â´Þ¤ó¤À¥Ô¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ plot ¤Ç¤Ï 6 ¼¡¸µ¥Ç¡¼¥¿ (x,y,r,g,b,a) ¤¬¡¢splot ¤Ç¤Ï 7 ¼¡¸µ¥Ç¡¼¥¿ (x,y,z,r,g,b,a) ¤¬É¬Íפˤʤê¤Þ¤¹¡£ÀÖ¡¢ÎС¢ÀÄ¡¢¤ª¤è¤Ó¥¢¥ë¥Õ¥¡¤Î³ÆÀ®Ê¬¤Ï [0:255] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£
plot 'data' with image failsafe
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 (82.31))¡£¼¡¤ÎÎã¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 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 ¤Ï 3 ¼¡¸µÉÁ²è¤Ç¤â»ÈÍѤǤ¤Þ¤¹¡£¤³¤Î¾ì¹ç X,Y,Z ¤Èʸ»ú Î󡢤Π4 ¤Ä¤ÎÆþÎÏÎó»ØÄ꤬ɬÍפǤ¹¡£
splot 'datafile' using 1:2:3:4 with labels
°Ê²¼¤â»²¾È: datastrings (11), set style data (82.66.3)¡£
2 ¼¡¸µ¤Î¾ì¹ç
1 Îó: y # ¹ÔÈÖ¹æ¤Ë¤è¤ë°ÅÌۤΠx 2 Îó: x y
1 Îó: z # x ¤Ï°ÅÌۤιÔÈֹ桢y ¤Ï index ¤«¤é 3 Îó: x y z
°Ê²¼¤â»²¾È: linetype (82.32), linewidth (82.66.7), linestyle (82.66.7)¡£
Àþ¼ï (linetype) ¤Î°À¤Ç¤¢¤ë pointinterval (¾Êά·Á pi) ¤Ç¡¢¥°¥é¥Õ ¤Î¤¹¤Ù¤Æ¤ÎÅÀ¤òÍ¿¤¨¤¿µ¹æ¤Ë¤¹¤ë¤«¤É¤¦¤«¤òÀ©¸æ¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢ with lp pi 3 ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿ÅÀ´Ö¤ËÀþʬ¤ò°ú¤¤Þ¤¹¤¬¡¢ÅÀ¤Îµ¹æ¤Ï 3 ¤Ä¤ª¤¤Ë¤·¤«½ñ¤¤Þ¤»¤ó¡£pointinterval ¤òÉé¤ÎÃͤˤ·¤¿¾ì¹ç¤Ï¡¢µ¹æ¤Î²¼ ¤ÎÀþʬ¤ÎÉôʬ¤ò¾Ã¤·¤Þ¤¹¡£¾Ã¤¹Éôʬ¤Î¥µ¥¤¥º¤Ï set pointintervalbox ¤ÇÀ© ¸æ¤Ç¤¤Þ¤¹¡£
linespoints ¤Ï lp ¤Èά¤¹¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
4 Îó: x y xdelta ydelta 6 Îó: x y z xdelta ydelta zdelta
ξÊý¤Î¾ì¹ç¤Ç¡¢ÆþÎÏÎó¤òÄɲà (2D ¤Ç¤Ï 5 ÎóÌÜ¡¢3D ¤Ç¤Ï 7 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½ ¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (17.1),rgbcolor variable (17.1.3)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
vectors ¥¹¥¿¥¤¥ë¤ò»È¤Ã¤Æ¤Î splot ¤Ï set mapping cartesian ¤Î¤ß¤Ç¥µ¥Ý ¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É "with vectors" ¤Ï¡¢¤½¤Î¸å¤í¤Ë¡¢¥¤¥ó¥é¥¤¥ó¤Î arrow ¥¹¥¿¥¤¥ë »ØÄê¤ä¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ë arrow ¥¹¥¿¥¤¥ë¤Î»²¾È¡¢¤¢¤ë¤¤¤ÏÎó¤«¤é ³Æ¥Ù¥¯¥È¥ë¤ËÂФ¹¤ëɬÍ×¤Ê arrow ¥¹¥¿¥¤¥ë¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÆɤà¤è¤¦¤Ê»ØÄê ¤òȼ¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Ãí°Õ: "arrowstyle variable" ¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢Âбþ ¤¹¤ë¥Ù¥¯¥È¥ë¤¬ÉÁ²è¤µ¤ì¤ëºÝ¤Ë¤Ï¤½¤ì¤¬ arrow ¤Î°ÀÃͤ¹¤Ù¤Æ¤òËä¤á¤ë¤Î¤Ç ¤½¤Î plot ¥³¥Þ¥ó¥ÉÆâ¤Ë¾¤ÎÀþ°À¤ä arrow ¥¹¥¿¥¤¥ë»ØÄê¤ò¤³¤Î¥¡¼¥ï¡¼¥É ¤Èº®ºß¤µ¤»¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
plot ... with vectors filled heads plot ... with vectors arrowstyle 3 plot ... using 1:2:3:4:5 with vectors arrowstyle variable
¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: arrowstyle (82.66.1)¡£
Îã:
plot 'file.dat' using 1:2:3:4 with vectors head filled lt 2 splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2
set clip one ¤È set clip two ¤Ï 2 ¼¡¸µ¤Î¥Ù¥¯¥È¥ë¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set clip (82.10), arrowstyle (82.66.1)¡£
3 Îó: x y xdelta 4 Îó: x y xlow xhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£
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 ¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
3 Îó: x y ydelta 4 Îó: x y ylow yhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È
3 Îó: x y xdelta 4 Îó: x y xlow xhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£
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 ¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£
3 Îó: x y ydelta 4 Îó: x y ylow yhigh
ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È¡£
¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥³¥Þ¥ó¥É̾¤È¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¶¤é¤ï¤·¤¯¤Ê¤¤ÈϰϤǾÊά ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢"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 "<ÆþÎÏ¥Õ¥¡¥¤¥ë>" <¥Ñ¥é¥á¡¼¥¿ 0> <¥Ñ 1> ... <¥Ñ 9>
ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤½¤·¤Æ¡¢¥Ñ¥é¥á¡¼¥¿¤â °úÍÑÉä¤Ç°Ï¤à¤³¤È¤ò¿ä¾©¤·¤Þ¤¹ (gnuplot ¤Î¾Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï°úÍÑÉä¤Ç °Ï¤ó¤Ç¤¢¤ëÉôʬ¤È°Ï¤ó¤Ç¤Ê¤¤Éôʬ¤ËÂФ·¤Æ¤Ï°ã¤¦¼è¤ê°·¤¤¤ò¤¹¤ëͽÄê¤Ç¤¹)¡£
Îã:
¥Õ¥¡¥¤¥ë 'calltest.gp' ¤Ï°Ê²¼¤Î¹Ô¤ò´Þ¤ó¤Ç¤¤¤ë¤È¤¹¤ë¤È:
print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"
¼¡¤Î¹Ô¤òÆþÎϤ¹¤ë¤È:
call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"
°Ê²¼¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤ë¤Ç¤·¤ç¤¦:
argc=7 p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx
Ãí°Õ: using ¤ò»ÈÍѤ·¤Æ¤¤¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ç¤ÏʸˡŪ¤Ë½Å¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ ¤¹¡£¤½¤Î¾ì¹ç¡¢call ¤µ¤ì¤¿¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¥×¥í¥Ã¥È¤¹¤ë¤È¤¤Ï¡¢¥Ç¡¼ ¥¿¤Î n ¥«¥é¥àÌܤλؼ¨¤Ë¤Ï $$n ¤Þ¤¿¤Ï column(n) ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
¤¤¤¯¤Ä¤«¤Î½ÐÎÏÁõÃÖ¤Ï 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 (82.41),set size (82.65), set origin (82.49)¡£
do for <iteration-spec> { <commands> <commands> }
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
½ñ¼°:
eval <string expression>
¤³¤ì¤Ï¡¢ÆäËƱÍͤΥ³¥Þ¥ó¥É¤Î·«¤êÊÖ¤·¤ËÍÍѤǤ¹¡£
Îã:
set_label(x, y, text) \ = sprintf("set label '%s' at %f, %f point pt 5", text, x, y) eval set_label(1., 1., 'one/one') eval set_label(2., 1., 'two/one') eval set_label(1., 2., 'one/two')
ʸ»úÎ󤫤饳¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÊ̤ÎÊýË¡¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È:substitution macros (23.2)¡£
ÆþÎÏ¥¹¥È¥ê¡¼¥à¤¬Æþ¤ì»Ò (³¬ÁØŪ¤Ê load ¤Î¥¹¥¯¥ê¥×¥È¤Ç) ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì ¹ç¡¢Æɤ߹þ¤ß¤Ï¿Æ¤Î¥¹¥È¥ê¡¼¥à¤Ç·Ñ³¤µ¤ì¤Þ¤¹¡£¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥¹¥È¥ê¡¼¥à¤¬ ÊĤ¸¤é¤ì¤ë¤È¡¢¥×¥í¥°¥é¥à¤Ï¤½¤ì¼«¿È½ªÎ»¤·¤Þ¤¹¡£
¥³¥Þ¥ó¥É exit gnuplot ¤Ï¡¢Ä¾¤Á¤Ë¡¢Ìµ¾ò·ï¤Ë¡¢¤½¤·¤ÆÎ㤨ÆþÎÏ¥¹¥È¥ê¡¼¥à ¤¬Â¿Ãʳ¬¤Ë¥Í¥¹¥È¤µ¤ì¤Æ¤¤¤Æ¤â¡¢gnuplot ¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢³«¤«¤ì ¤Æ¤¤¤¿Á´¤Æ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ï¤¤ì¤¤¤Ë´°Á´¤Ê·Á¤Ç¤ÏÊĤ¸¤é¤ì¤Ê¤¤²ÄǽÀ¤¬¤¢¤ê ¤Þ¤¹¡£»ÈÍÑÎã:
bind "ctrl-x" "unset output; exit gnuplot"
¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (6)¡£
½ñ¼°:
fit {<ranges>} <expression> '<datafile>' {datafile-modifiers} via '<parameter file>' | <var1>{,<var2>,...}
ÈÏ°Ï (xrange,yrange) ¤Ï¡¢Åö¤Æ¤Ï¤á¤é¤ì¤ë¥Ç¡¼¥¿ÅÀ¤ò°ì»þŪ¤ËÀ©¸Â¤¹¤ë¤Î¤Ë
»È¤¦¤³¤È¤¬¤Ç¤¡¢¤½¤ÎÈϰϤòĶ¤¨¤¿¥Ç¡¼¥¿¤ÏÁ´¤Æ̵»ë¤µ¤ì¤Þ¤¹¡£¤½¤Î½ñ¼°¤Ï
plot ¥³¥Þ¥ó¥ÉƱÍÍ
[{dummy_variable=}{<min>}{:<max>}],
< expression> ¤ÏÄ̾ï¤Ï¤¢¤é¤«¤¸¤á¥æ¡¼¥¶ÄêµÁ¤µ¤ì¤¿ f(x) ¤Þ¤¿¤Ï f(x,y) ¤Î ·Á¤Î´Ø¿ô¤Ç¤¹¤¬¡¢gnuplot ¤Ç͸ú¤ÊǤ°Õ¤Î¿ô¼°¤ò»ØÄê¤Ç¤¤Þ¤¹¡£
< datafile> ¤Ï plot ¥³¥Þ¥ó¥É¤ÈƱÍͤ˰·¤ï¤ì¤Þ¤¹¡£plot datafile ¤Î½¤ ¾þ»Ò (using, every,...) ¤Ï¡¢smooth ¤È¤¢¤Þ¤ê´«¤á¤é¤ì¤Ê¤¤ thru ¤ò½ü¤¤¤Æ¡¢Á´¤Æ fit ¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È:plot datafile (72.3)¡£
Åö¤Æ¤Ï¤á¤ë 1 ÊÑ¿ô´Ø¿ô z=f(x) ¤Ø¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿¤Î½ñ¼°¤Ï z ¤« x:z ¤Ç¤¹¡£¤Ä¤Þ¤ê¡¢¥Ç¡¼¥¿¤¬ 1 Îó¤·¤«¤Ê¤±¤ì¤Ð¤½¤ì¤Ï½¾Â°ÊÑ¿ôÃÍ (´Ø¿ôÃÍ) ¤È¸« ¤Ê¤µ¤ì¡¢¹ÔÈֹ椬ÆÈΩÊÑ¿ôÃÍ (ÊÑ¿ôÃÍ) ¤È¤Ê¤ê¡¢2 Îó¤Î¥Ç¡¼¥¿¤¬¤¢¤ì¤Ð¡¢1 Îó Ìܤ¬ÆÈΩÊÑ¿ôÃÍ¡¢2 ÎóÌܤ¬½¾Â°ÊÑ¿ôÃͤȤʤê¤Þ¤¹¡£
¤³¤ì¤é¤Î·Á¼°¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ø¤Î using »ØÄê»Ò¤ÇÊѹ¹¤Ç¤¡¢Î㤨¤Ð z ¤Î Ãͤò¾¤ÎÎ󤫤é¼è¤Ã¤¿¤ê¡¢¤¢¤ë¤¤¤ÏÊ£¿ô¤ÎÎ󤫤é·×»»¤·¤¿ÃͤȤ¹¤ë¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£3 ÈÖÌܤΠusing »ØÄê (ÎóÈֹ桢¤Þ¤¿¤Ï¿ô¼°) ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢ ¤½¤ì¤ÏÂбþ¤¹¤ë z ¤ÎÃͤÎɸ½àÊк¹¤È¤·¤Æ²ò¼á¤µ¤ì¡¢¤½¤ì¤Ï¤½¤Î¥Ç¡¼¥¿¤Ø¤Î½Å ¤ß (=1/s**2) ¤ò·×»»¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢Á´¤Æ¤Î¥Ç¡¼¥¿¤Ï Ʊ¤¸½Å¤ß (1) ¤Ç·×»»¤µ¤ì¤Þ¤¹¡£using ¥ª¥×¥·¥ç¥ó¤òÁ´¤¯»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì ¹ç¡¢3 ÎóÌܤΥǡ¼¥¿¤¬¤¢¤Ã¤¿¾ì¹ç¤Ç¤â¥Ç¡¼¥¿¤«¤é z ¤ÎÊк¹¤ÏÆɤޤì¤Þ¤»¤ó¤Î ¤Ç¡¢¤½¤Î¾ì¹ç¤Ï½Å¤ß 1 ¤Ë¤Ê¤ê¤Þ¤¹¡£
2 ÊÑ¿ô´Ø¿ô z=f(x,y) ¤òÅö¤Æ¤Ï¤á¤ë¾ì¹ç¡¢¥Ç¡¼¥¿¤Î½ñ¼°¤Ï using ¤Ë¤è¤ë 4 ¤Ä¤Î¹àÌÜ x:y:z:s ¤¬Í׵ᤵ¤ì¤Þ¤¹¡£¤³¤ì¤Ï´°Á´¤ËÁ´¤Æ¤¬Í¿¤¨¤é¤ì¤Ê¤±¤ì¤Ð¤Ê ¤é¤º¡¢ÉÔ¤¹¤ë¹àÌܤËÂФ·¤Æ¤Ï¤É¤ÎÎó¤â¥Ç¥Õ¥©¥ë¥È¤Ï²¾Äꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£³Æ ¥Ç¡¼¥¿ÅÀ¤Î½Å¤ß¤Ï¾å¤ÈƱÍÍ¤Ë 's' ¤«¤é·×»»¤µ¤ì¤Þ¤¹¡£¤â¤·¸íº¹É¾²Á¤ò»ý¤Ã¤Æ ¤¤¤Ê¤±¤ì¤Ð¡¢Äê¿ôÃͤòÄê¿ô¼°¤È¤·¤Æ»ØÄꤹ¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦ (°Ê²¼»²¾È:plot datafile using (72.3.8))¡£Î㤨¤Ð using 1:2:3:(1) ¤Î¤è¤¦¤Ë¡£
Åö¤Æ¤Ï¤á´Ø¿ô¤Ë¤Ï¡¢ÆÈΩÊÑ¿ô¤ò 5 ¤Ä¤Þ¤Ç»ý¤¿¤»¤é¤ì¤Þ¤¹¤¬¡¢1 ÊÑ¿ô°Ê³°¤Î¾ì¹ç¤Ï¡¢¤½¤ÎÆÈΩÊÑ¿ô¤Î¸Ä¿ô¤è¤ê¤â 2 ¤Ä¿¤¤ using »ØÄê¤ò¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£µö¤µ¤ì¤ë½ñ¼°¡¢¤½¤·¤Æ¥Ç¥Õ¥©¥ë¥È¤Î¥À¥ß¡¼ÊÑ¿ô̾¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
z x:z x:z:s x:y:z:s x:y:t:z:s x:y:t:u:z:s x:y:t:u:v:z:s
¥À¥ß¡¼ÊÑ¿ô̾¤Ï¡¢²¼¤Ë¤¢¤²¤ë¤è¤¦¤ËÈÏ°Ï»ØÄê¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤¤Þ¤¹¡£ºÇ½é¤ÎÈÏ °Ï¤Ï using »ØÄê¤ÎºÇ½é¤Î¤â¤Î¤ËÂбþ¤·¡¢°Ê²¼Æ±ÍͤǤ¹¡£z (½¾Â°ÊÑ¿ô) ¤ÎÈÏ °Ï¤â»ØÄê¤Ç¤¤Þ¤¹¤¬¡¢¤½¤Î̾Á°¤ÏÊѹ¹¤Ç¤¤Þ¤»¤ó¡£
Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤âÊ£¿ô¤Î 1 ÊÑ¿ô´Ø¿ô¤ËƱ»þ¤ËÅö¤Æ¤Ï¤á¤ë¤³¤È¤â¡¢y ¤ò '²¾ ÊÑ¿ô' ¤È¤¹¤ì¤Ð²Äǽ¤Ç¤¹¡£Î㤨¤Ð¥Ç¡¼¥¿¹ÔÈÖ¹æ¤ò»È¤¤¡¢2 ÊÑ¿ô´Ø¿ô¤Ø¤ÎÅö¤Æ¤Ï ¤á¡¢¤È¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: fit multi-branch (64.5)¡£
via »ØÄê»Ò¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÄ´Àá¤òľÀܤ«¡¢¤Þ¤¿¤Ï¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤ò»² ¾È¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¦¤«¤ò»ØÄꤷ¤Þ¤¹¡£
Îã:
f(x) = a*x**2 + b*x + c g(x,y) = a*x**2 + b*y**2 + c*x*y 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 via a, b, c fit g(x,y) 'surface.dat' using 1:2:3:(1) 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:(1) via a,b fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3:(1) via a,b fit a*x + b*y + c*t 'foo.dat' using 1:2:3:4:(1) via a,b,c h(x,y,t,u,v) = a*x + b*y + c*t + d*u + e*v fit h(x,y,t,u,v) 'foo.dat' using 1:2:3:4:5:6:(1) via a,b,c,d,e
È¿Éü¤Î¸Ä¡¹¤Î¥¹¥Æ¥Ã¥×¤Î¸å¤Ç¡¢Åö¤Æ¤Ï¤á¤Î¸½ºß¤Î¾õÂ֤ˤĤ¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤¬ ²èÌ̤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¤½¤·ºÇ½é¤ÈºÇ¸å¤Î¾õÂ֤˴ؤ¹¤ëƱ¤¸¾ðÊó¤¬ "fit.log" ¤È¤¤¤¦¥í¥°¥Õ¥¡¥¤¥ë¤Ë¤â½ñ¤½Ð¤µ¤ì¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤ÏÁ°¤ÎÅö¤Æ¤Ï¤á¤ÎÍúÎò ¤ò¾Ã¤µ¤Ê¤¤¤è¤¦¤Ë¾ï¤ËÄɲ䵤ì¤Æ¤¤¤¤Þ¤¹¡£¤³¤ì¤Ï˾¤à¤Ê¤éºï½ü¡¢¤¢¤ë¤¤¤ÏÊÌ ¤Ê̾Á°¤Ë¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É set fit logfile ¤ò»È¤Ã¤Æ¥í¥°¥Õ¥¡¥¤¥ë¤Î̾ Á°¤òÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
gnuplot ¤¬¡¢set fit errorvariables ¤ò»È¤¨¤ë¤è¤¦¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ ¤¤¤Æ¡¢¤½¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢³ÆÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤Ï¡¢¤½¤Î¥Ñ ¥é¥á¡¼¥¿¤È»÷¤¿Ì¾Á° ("_err" ¤¬Äɲ䵤줿̾Á°) ¤ÎÊÑ¿ô¤ËÊݸ¤µ¤ì¤Þ¤¹¡£¤è ¤Ã¤Æ¤½¤Î¸íº¹¤ò¹¹¤Ê¤ë·×»»¤ÎÆþÎϤȤ·¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
set fit prescale ¤È¤·¤¿¾ì¹ç¡¢Åö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤ò¡¢¤½¤ì¤é¤Î½é´üÃͤ« ¤é¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÂ礤µ¤Ë¤«¤Ê¤ê°ã¤¤ ¤¬¤¢¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤¬¤è¤êÁ᤯¡¢¤è¤ê¿®Íê À¤Î¤¢¤ëÃͤ˼ý«¤µ¤»¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Åö¤Æ¤Ï¤á¤ÎÈ¿Éü¤Ï Ctrl-C (wgnuplot ¤Ç¤Ï Ctrl-Break) ¤ò²¡¤¹¤³¤È¤ÇÃæÃÇ¤Ç ¤¤Þ¤¹¡£¸½ºß¤ÎÈ¿Éü¤¬Àµ¾ï¤Ë½ªÎ»¤·¤¿¸å¡¢ (1) Åö¤Æ¤Ï¤á¤ò»ß¤á¤Æ¸½ºß¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòºÎÍѤ¹¤ë (2) Åö¤Æ¤Ï¤á¤ò³¹Ô¤¹¤ë (3) ´Ä¶ÊÑ¿ô FIT_SCRIPT ¤Ç»ØÄꤷ¤¿ gnuplot ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë ¤Î¤¤¤º¤ì¤«¤òÁª¤Ö¤³¤È¤¬¤Ç¤¤Þ¤¹¡£FIT_SCRIPT ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï replot ¤Ç ¤¢¤ê¡¢¤è¤Ã¤Æ¤â¤·¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á´Ø¿ô¤ò°ì¤Ä¤Î¥°¥é¥Õ¤Ë¤¢¤é¤«¤¸¤áÉÁ²è¤·¤Æ ¤¢¤ì¤Ð¡¢¸½ºß¤ÎÅö¤Æ¤Ï¤á¤Î¾õÂÖ¤òɽ¼¨¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
fit ¤¬½ªÎ»¤·¤¿¸å¤Ï¡¢ºÇ¸å¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÊݸ¤¹¤ë¤Î¤Ë update ¥³¥Þ ¥ó¥É¤ò»È¤¤¤Þ¤¹¡£¤½¤ÎÃͤϺƤӥѥé¥á¡¼¥¿¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: update (90)¡£
Ä´À°¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ï¡¢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¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹)¡£
Àþ·ÁºÇ¾®¼«¾èË¡ (LLS) ¤Ç¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ïñ½ã¤Ê´Ø¿ô¤ÎϤǤ¢¤ê¡¢¤½¤ì
¤¾¤ì¤Ï°ì¤Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÄê¿ôÇܤǾ¤Î¥Ñ¥é¥á¡¼¥¿¤ò´Þ¤Þ¤Ê¤¤¹à¤Ë¤Ê¤ê¤Þ¤¹¡£
ÈóÀþ·ÁºÇ¾®¼«¾èË¡ (NLLS) ¤Ç¤Ï¤è¤êÊ£»¨¤Ê´Ø¿ô¤ò°·¤¤¡¢¥Ñ¥é¥á¡¼¥¿¤Ï¿§¤ó¤Ê
»È¤ï¤ìÊý¤ò¤µ¤ì¤Þ¤¹¡£¥Õ¡¼¥ê¥¨µé¿ô¤ÏÀþ·Á¤ÈÈóÀþ·Á¤ÎºÇ¾®¼«¾èË¡¤Î°ã¤¤¤òɽ¤¹
°ì¤Ä¤ÎÎã¤Ç¤¹¡£¥Õ¡¼¥ê¥¨µé¿ô¤Ç¤Ï°ì¤Ä¤Î¹à¤Ï
z=a*sin(c*x) + b*cos(c*x).
Àþ·Á¤Î¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÃͤÏÈæ³ÓŪ´Êñ¤ÊÀþ·ÁÂå¿ô¤ÎľÀÜË¡¤Ë¤è¤Ã¤Æ·èÄê¤Ç ¤¤Þ¤¹¡£¤·¤«¤·¤½¤Î¤è¤¦¤Ê LLS ¤ÏÆüì¤Ê¾ì¹ç¤Ç¤¢¤ê¡¢'gnuplot' ¤¬»ÈÍѤ¹¤ë È¿ÉüË¡¤Ï¡¢¤â¤Á¤í¤ó¤½¤ì¤â´Þ¤á¤Æ¡¢¤è¤ê°ìÈÌŪ¤Ê NLLS ÌäÂê¤ò²ò¤¯¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£fit ¤Ï¸¡º÷¤ò¹Ô¤¦¤³¤È¤ÇºÇ¾®Ãͤòõ¤½¤¦¤È¤·¤Þ¤¹¡£È¿Éü¤Î³Æ¥¹¥Æ¥Ã¥× ¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¿·¤·¤¤ÃͤÎÁȤËÂФ·¤Æ WSSR ¤ò·×»»¤·¤Þ¤¹¡£Marquardt- Levenberg ¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¼¡¤Î¥¹¥Æ¥Ã¥×¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÁªÂò¤·¤Þ¤¹¡£¤½ ¤·¤Æ¤½¤ì¤Ï¤¢¤é¤«¤¸¤áÍ¿¤¨¤¿´ð½à¡¢¤¹¤Ê¤ï¤Á¡¢(1) Åö¤Æ¤Ï¤á¤¬ "¼ý«¤·¤¿" (WSSR ¤ÎÁêÂÐ¸íº¹¤¬ FIT_LIMIT ¤è¤ê¾®¤µ¤¯¤Ê¤Ã¤¿¾ì¹ç)¡¢¤Þ¤¿¤Ï (2) ¤¢¤é¤« ¤¸¤áÀßÄꤵ¤ì¤¿È¿Éü¿ô¤Î¸Â³¦ FIT_MAXITER (°Ê²¼»²¾È:fit control variables (64.4.1)) ¤Ë㤷¤¿¾ì¹ç¡¢¤Î¤¤¤º¤ì¤«¤òËþ¤¿¤¹¤Þ¤Ç³¤±¤é¤ì ¤Þ¤¹¡£¥¡¼¥Ü¡¼¥É¤«¤é¤½¤ÎÅö¤Æ¤Ï¤á¤ÎÈ¿Éü¤ÏÃæÃǤǤ¤Þ¤¹¤·¡¢¤½¤ì¤Ë³¤¤¤ÆÃæ »ß¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: fit (64))¡£¥æ¡¼¥¶ÊÑ¿ô FIT_CONVERGED ¤Ï¡¢ ľÁ°¤Î fit ¥³¥Þ¥ó¥É¤¬¼ý«¤Ë¤è¤ê½ªÎ»¤·¤¿¾ì¹ç¤Ï 1 ¤ò´Þ¤ß¡¢¤½¤ì°Ê³°¤ÎÍýͳ¤ÇÃæÃǤ·¤¿¾ì¹ç¤Ï 0 ¤ò´Þ¤ß¤Þ¤¹¡£
Åö¤Æ¤Ï¤á¤Ë»È¤ï¤ì¤ë´Ø¿ô¤Ï¤·¤Ð¤·¤Ð¤¢¤ë¥â¥Ç¥ë (¤Þ¤¿¤Ï¤¢¤ëÍýÏÀ) ¤ò¸µ¤Ë¤·¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï¥Ç¡¼¥¿¤Î¿¶Éñ¤òµ½Ò¤·¤¿¤ê¡¢¤¢¤ë¤¤¤Ïͽ¬¤·¤è¤¦¤È¤·¤Þ¤¹¡£¤è¤Ã ¤Æ fit ¤Ï¡¢¥Ç¡¼¥¿¤¬¤½¤Î¥â¥Ç¥ë¤Ë¤É¤ì¤¯¤é¤¤¤¦¤Þ¤¯Åö¤Æ¤Ï¤Þ¤Ã¤Æ¤¤¤ë¤Î¤«¤ò ·èÄꤹ¤ë¤¿¤á¡¢¤½¤·¤Æ¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤ÎÈϰϤòɾ²Á¤¹¤ë¤¿¤á¤Ë¡¢¥â¥Ç ¥ë¤Î¼«Í³¤Ê¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòµá¤á¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È:fit error_estimates (64.3)¡£
¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢¶ÊÀþ¤Ë¤è¤ëÅö¤Æ¤Ï¤á¤Ë¤ª¤±¤ë´Ø¿ô¤Ï¡¢¥â¥Ç¥ë¤È¤Ï̵´Ø·¸¤ËÁª ¤Ð¤ì¤Æ¤¤¤Þ¤¹ (¤½¤ì¤Ï½½Ê¬¤Êɽ¸½ÎϤȺǤ⾯¤Ê¤¤¿ô¤Î¥Ñ¥é¥á¡¼¥¿¤ò»ý¤Á¡¢¥Ç¡¼ ¥¿¤Î·¹¸þ¤òµ½Ò¤·¤½¤¦¤Ê´Ø¿ô¤È¤·¤Æ·Ð¸³¤Ë´ð¤Å¤¤¤ÆÁª¤Ð¤ì¤ë¤Ç¤·¤ç¤¦)¡£
¤·¤«¤·¡¢¤â¤·¤¢¤Ê¤¿¤¬Á´¤Æ¤Î¥Ç¡¼¥¿ÅÀ¤òÄ̤ë¤è¤¦¤Ê³ê¤é¤«¤Ê¶ÊÀþ¤òÍߤ·¤¤¤Ê¤é fit ¤Ç¤Ï¤Ê¤¯¡¢¤à¤·¤í plot ¤Î smooth ¥ª¥×¥·¥ç¥ó¤Ç¤½¤ì¤ò¹Ô¤¦¤Ù¤¤Ç ¤·¤ç¤¦¡£
¥Ç¡¼¥¿¸íº¹¤Ï¡¢Ê¿Êý»Äº¹¤Î½Å¤ßÉÕ¤¤ÎÏ WSSR¡¢¤¹¤Ê¤ï¤Á¦Ö¼«¾è¤ò·èÄꤹ¤ëºÝ ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÁêÂÐŪ¤Ê½Å¤ß¤ò·×»»¤¹¤ë¤Î¤ËÍѤ¤¤é¤ì¤Þ¤¹¡£¤½¤ì¤é¤Ï¥Ñ¥é¥á ¡¼¥¿¤Îɾ²Á¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤½¤ì¤Ï¡¢¤½¤ì¤é¤¬¡¢Åö¤Æ¤Ï¤á¤é¤ì¤¿´Ø¿ô¤«¤é¤Î ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÊк¹¤¬ºÇ½ªÅª¤ÊÃͤËÍ¿¤¨¤ë±Æ¶Á¤ÎÂ礤µ¤ò·èÄꤹ¤ë¤³¤È¤Ë¤è ¤ê¤Þ¤¹¡£Àµ³Î¤Ê¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹ ɾ²ÁÅù¤Î fit ¤¬½ÐÎϤ¹¤ë¾ðÊó¤Ï¤è¤êÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£
'statistical overview' ¤Ç¤Ï fit ¤Î½ÐÎϤΤ¤¤¯¤Ä¤«¤òÀâÌÀ¤·¡¢ 'practical guidelines' ¤ËÂФ¹¤ëÇطʤò½Ò¤Ù¤Æ¤¤¤Þ¤¹¡£
ʬ»¶ = Áí·×¤Ç¤¢¤ë¿ô¤¨¾å¤²Åý·×³ØƱÍÍ¡¢Ê콸ÃĤÎɸ½àÊк¹¤¬Äê¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ ³ÆÅÀ¤Ï´Ñ¬¤µ¤ì¤ëÊк¹¤ÎϤȴüÂÔ¤µ¤ì¤ëÊк¹¤ÎϤòÈæ³Ó¤¹¤ë¤È¤¤Ë¸ÄÊÌ¤Ë½Å¤ß ¤Å¤±¤µ¤ì¤ë¤Ù¤¤Ç¤¹¡£
ºÇ½ªÃʳ¬¤Ç fit ¤Ï 'stdfit'¡¢¤¹¤Ê¤ï¤Á»Äº¹¤Î RMS (¼«¾èÊ¿¶ÑÊ¿Êýº¬) ¤Çµá
¤á¤é¤ì¤ëÅö¤Æ¤Ï¤á¤Îɸ½àÊк¹¤È¡¢¥Ç¡¼¥¿ÅÀ¤¬½Å¤ß¤Å¤±¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë '¸º¤é
¤µ¤ì¤¿¦Ö¼«¾è' ¤È¤â¸Æ¤Ð¤ì¤ë»Äº¹¤Îʬ»¶¤ò¥ì¥Ý¡¼¥È¤·¤Þ¤¹¡£¼«Í³ÅÙ (¥Ç¡¼¥¿ÅÀ
¤Î¿ô¤«¤éÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¿ô¤ò°ú¤¤¤¿¤â¤Î) ¤Ï¤³¤ì¤é¤Îɾ²Á¤Ç»ÈÍѤµ¤ì¤Þ
¤¹¡£¤Ê¤¼¤Ê¤é¡¢¥Ç¡¼¥¿ÅÀ¤Î»Äº¹¤Î·×»»¤Ç»È¤ï¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤ÏƱ¤¸¥Ç¡¼¥¿¤«¤é
ÆÀ¤é¤ì¤ë¤â¤Î¤À¤«¤é¤Ç¤¹¡£¤³¤ì¤é¤ÎÃͤϰʲ¼¤ÎÊÑ¿ô¤ËÂåÆþ¤µ¤ì¤Þ¤¹:
FIT_NDF = ¼«Í³Å٤οô FIT_WSSR = ½Å¤ß¤Ä¤»Äº¹¤Î¼«¾èÏ FIT_STDFIT = sqrt(WSSR/NDF)
¥Ñ¥é¥á¡¼¥¿¤Ë´Ø¤¹¤ë¿®Íê¥ì¥Ù¥ë¤òɾ²Á¤¹¤ë¤³¤È¤Ç¡¢Åö¤Æ¤Ï¤á¤«¤éÆÀ¤é¤ì¤ëºÇ¾® ¤Î¦Ö¼«¾è¤È¡¢Í׵᤹¤ë¿®Íê¥ì¥Ù¥ë¤Î¦Ö¼«¾è¤ÎÃͤò·èÄꤹ¤ë¤¿¤á¤Î¦Ö¼«¾è¤ÎÅý·× ¤òÍѤ¤¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤·¤«¤·¡¢¤½¤Î¤è¤¦¤ÊÃͤòÀ¸À®¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÁȤò ·èÄꤹ¤ë¤Ë¤Ï¡¢ÁêÅö¤Î¤µ¤é¤Ê¤ë·×»»¤¬É¬ÍפȤʤë¤Ç¤·¤ç¤¦¡£
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 ¤¬¡¢Àµµ¬Ê¬ÉÛ¤¹¤ë¸íº¹¤ò»ý¤Ä¥é ¥ó¥À¥à¤Ê¥µ¥ó¥×¥ë¤È´Ø¿ô¤ËÂФ·¤Æ´üÂÔ¤µ¤ì¤ë¤â¤Î¤è¤ê¤â¾®¤µ¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ ¤¹¡£¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Â礤¹¤®¤ë¤Î¤«¡¢Åý·×Ū¤Ê²¾Ä꤬Àµ¤·¤¯¤Ê¤¤¤Î¤«¡¢¤Þ¤¿ ¤Ï¥â¥Ç¥ë´Ø¿ô¤¬°ìÈÌŪ¤¹¤®¤Æ¡¢ÆâºßŪ·¹¸þ¤Ë²Ã¤¨¤ÆÆüì¤Ê¥µ¥ó¥×¥ë¤Ë¤è¤ëÊÑÆ° ¤ÎÅö¤Æ¤Ï¤á¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¡£ºÇ¸å¤Î¾ì¹ç¤Ï¡¢¤è¤ê¥·¥ó¥×¥ë¤Ê´Ø¿ô¤Ë¤¹ ¤ì¤Ð¤¦¤Þ¤¯¹Ô¤¯¤Ç¤·¤ç¤¦¡£
ɸ½àŪ¤Ê¥¨¥é¡¼¤ò¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÉÔ³ÎÄêÀ¤Ë´Ø¤¹¤ë¡¢¤¢¤ë¤è¤ê¸½¼ÂŪ¤Êɾ²Á¤Ë ´Ø·¸ÉÕ¤±¤ë¤³¤È¡¢¤ª¤è¤ÓÁê´Ø¹ÔÎó¤Î½ÅÍ×À¤òɾ²Á¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë Á°¤Ë¡¢¤¢¤Ê¤¿¤Ï fit ¤È¡¢¤½¤ì¤òŬÍѤ·¤è¤¦¤È¤¹¤ë¤¢¤ë¼ï¤ÎÌäÂê¤Ë´·¤ì¤Æ¤ª ¤¯É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£
fit ¤Ï¡¢ÂçÄñ¤ÎÈóÀþ·ÁºÇ¾®¼«¾èË¡¤Î¼ÂÁõ¤Ç¤Ï¶¦Ä̤·¤Æ¡¢µ÷Î¥¤Î¼«¾è (y-f(x))**2 ¤Î½Å¤ßÉÕ¤¤ÎϤòºÇ¾®²½¤·¤è¤¦¤È¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤ì¤Ï¡¢x ¤ÎÃͤΠ"¸íº¹" ¤ò·×»»¤Ë´Ø¤·¤Æ¤Ï¤É¤ó¤ÊÊýË¡¤âÍ¿¤¨¤Æ¤Ï¤ª¤é¤º¡¢Ã± ¤Ë y ¤Ë´Ø¤¹¤ëɾ²Á¤Î¤ß¤Ç¤¹¡£¤Þ¤¿¡¢"¸ÉΩÅÀ" (Àµµ¬Ê¬ÉۤΥâ¥Ç¥ë¤Î¤«¤é³°¤ì ¤Æ¤¤¤ë¥Ç¡¼¥¿ÅÀ) ¤Ï¾ï¤Ë²ò¤ò°²½¤µ¤»¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
FIT_LIMIT
È¿Éü¿ô¤ÎºÇÂçÃͤÏÊÑ¿ô
FIT_MAXITER
¹¹¤Ë¤½¤Î¥¢¥ë¥´¥ê¥º¥à¤òÀ©¸æ¤·¤¿¤¤¾ì¹ç¤Ç¡¢¤«¤Ä Marquardt-Levenberg ¥¢¥ë
¥´¥ê¥º¥à¤òÎɤ¯ÃΤäƤ¤¤ë¾ì¹ç¤Ï¡¢¤µ¤é¤Ë¤½¤ì¤Ë±Æ¶Á¤òÍ¿¤¨¤ëÊÑ¿ô¤¬¤¢¤ê¤Þ¤¹¡£
lambda (¦Ë) ¤ÎºÇ½é¤ÎÃͤϡ¢Ä̾ï ML ¹ÔÎ󤫤鼫ưŪ¤Ë·×»»¤µ¤ì¤Þ¤¹¤¬¡¢¤â
¤·¤½¤ì¤ò¤¢¤é¤«¤¸¤áÍÑ°Õ¤·¤¿Ãͤ˥»¥Ã¥È¤·¤¿¤±¤ì¤Ð
FIT_START_LAMBDA
FIT_LAMBDA_FACTOR
fit ¤Ë¤Ï FIT_ ¤«¤é»Ï¤Þ¤ëÊÑ¿ô¤¬Â¾¤Ë¤â¤¢¤ê¤Þ¤¹¤«¤é¡¢¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤È¤· ¤Æ¤Ï¤½¤Î¤è¤¦¤Ê̾Á°¤Ç»Ï¤Þ¤ëÊÑ¿ô¤Ï»È¤ï¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Î¤¬°ÂÁ´¤Ç¤·¤ç¤¦¡£
ÊÑ¿ô FIT_SKIP ¤È FIT_INDEX ¤Ï¡¢°ÊÁ°¤ÎÈǤΠgnuplot ¤Î¡¢gnufit ¤È¸Æ¤Ð¤ì¤Æ¤¤¤¿ fit ¥Ñ¥Ã¥Á¤Ç»È¤ï¤ì¤Æ¤¤¤¿¤â¤Î¤Ç¡¢¸½ºß¤Ï»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ FIT_SKIP ¤Îµ¡Ç½¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë every »ØÄê»Ò¤ÇÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ ¤¹¡£FIT_INDEX ¤ÏÊ£¿ôÅö¤Æ¤Ï¤áË¡ (multi-branch fitting) ¤Ç»È¤ï¤ì¤Æ¤¤¤¿¤â ¤Î¤Ç¤¹¤¬¡¢1 ÊÑ¿ô¤ÎÊ£¿ôÅö¤Æ¤Ï¤áË¡¤Ï¡¢º£¤Ç¤Ï µ¿»÷ 3 ¼¡¸µÅö¤Æ¤Ï¤á¤È¤·¤Æ¹Ô ¤Ê¤ï¤ì¤Æ¤¤¤Æ¡¢¤½¤³¤Ç¤Ï»Þ¤Î»ØÄê¤Ë¤Ï 2 ÊÑ¿ô¤È using ¤¬»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£ °Ê²¼»²¾È: fit multi-branch (64.5)¡£
FIT_LOG
FIT_SCRIPT
Îã: 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 ¤¹¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤¤«¤â ÃΤì¤Þ¤»¤ó¡£
fit ¤Î°ú¿ô¤Î via ¤Ë¤Ï¡¢2 ¤Ä¤ÎÂ礤¯°Û¤Ê¤ëÌÜŪ¤Î¤¿¤á¤Î 2 ¤Ä¤Î·Á¼°¤¬ ¤¢¤ê¤Þ¤¹¡£via "file" ¤Î·Á¼°¤Ï¡¢¥Ð¥Ã¥Á½èÍý (ÈóÂÐÏ÷¿¤Ç¤Î¼Â¹Ô¤¬²Äǽ) ¤ÇºÇ¤âÎɤ¯»È¤ï¤ì¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ç½é´üÃͤòÍ¿¤¨¡¢¤Þ¤¿¤½¤Î¸å¤Ç·ë²Ì¤ò¾¤Î (¤Þ¤¿¤Ï Ʊ¤¸) ¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¤¿¤á¤Ë update ¤ò»È¤¦¤³ ¤È¤â½ÐÍè¤Þ¤¹¡£
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! (Èó Àþ·ÁÅö¤Æ¤Ï¤áË¡¤Ï·Ý½Ñ¤À !)"
help {<¹àÌÜ̾>}
¤â¤· < ¹àÌÜ̾> ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ë¤Ä¤¤¤Æ¤Î´Êñ¤ÊÀâÌÀ ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¹àÌܤˤĤ¤¤Æ¤ÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¡¢¤½¤ì¤ËÂФ¹¤ë ºÙÌܤΥá¥Ë¥å¡¼¤¬É½¼¨¤µ¤ì¡¢¤½¤ÎºÙÌÜ̾¤òÆþÎϤ¹¤ë¤³¤È¤ÇºÙÌܤËÂФ¹¤ë¥Ø¥ë¥× ¤ò³¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎºÙÌܤÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¤Ë¡¢¤µ¤é¤Ê ¤ëºÙÌÜ̾¤ÎÆþÎϤòÍ׵ᤵ¤ì¤ë¤«¡¢¤Þ¤¿¤Ï 1 ¤ÄÁ°¤Î¹àÌܤΥì¥Ù¥ë¤ØÌá¤ê¤Þ¤¹¡£ ¤³¤ì¤ò·«¤êÊÖ¤¹¤È¤ä¤¬¤Æ¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ø¤ÈÌá¤ê¤Þ¤¹¡£
¤Þ¤¿¡¢µ¿ÌäÉä (?) ¤ò¹àÌܤȤ·¤Æ»ØÄꤹ¤ë¤È¡¢¸½ºß¤Î¥ì¥Ù¥ë¤Î¹àÌܤΥꥹ¥È¤¬ ɽ¼¨¤µ¤ì¤Þ¤¹¡£
¶ñÂÎÎã¤Ç»ÈÍÑË¡¤ò¾Ò²ð¤·¤Þ¤¹:
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" # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à) hi !reread # "reread" ¤Ç»Ï¤Þ¤ëºÇ¤â¿·¤·¤¤¹Ô¤ò¼Â¹Ô hist !"set xr" # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à) hi !hi # Åö¤Æ¤Æ¤ß¤Æ :-))
popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à (Unix ¤Ê¤É) ¤Ç¤Ï¡¢ÍúÎò¤Î½ÐÎϤò ¥Ñ¥¤¥×·Ðͳ¤Ç¾¤Î³°Éô¥×¥í¥°¥é¥à¤ËÅϤ¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¾å¤ÎÎã¤Î °ì¤Ä¤Ë¤¢¤ë¤è¤¦¤Ë¡¢¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¥³¥Þ¥ó¥É̾¤ÎÀèƬ¤Ë '| ' ¤ò¤Ä¤±¤¿¤â¤Î ¤ò»È¤¤¤Þ¤¹¡£
if (<condition>) { <command>; <command> <commands> <commands> } else { <commands> }
if (<¾ò·ï>) <¥³¥Þ¥ó¥É¹Ô> [; else if (<¾ò·ï>) ...; else ...]
¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢if/else ¤Î¥Ö¥í¥Ã¥¯·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ ¤¹¡£¥¡¼¥ï¡¼¥É if, else ¤Î¸å¤í¤Ë³«»Ï¥«¥Ã¥³ "{" ¤¬Â³¤¯¾ì¹ç¡¢"}" ¤Ç ½ªÎ»¤¹¤ë¥Ö¥í¥Ã¥¯¤Þ¤Ç¤Î¤¹¤Ù¤Æ¤Îʸ (Ê£¿ô¤ÎÆþÎϹԤâ²Ä) ¤Ë¾ò·ïŪ¤Ê¼Â¹Ô¤¬Å¬ ÍѤµ¤ì¤Þ¤¹¡£if ¥³¥Þ¥ó¥É¤ÏÆþ¤ì»Ò¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¸Å¤¤·Á¼°¤Î 1 ¹Ô¤Î if/else ʸ¤â¤Þ¤À¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¿·¤·¤¤¥Ö¥í¥Ã ¥¯·Á¼°¤Î½ñ¼°¤È¤Ïº®¤¼¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: if-old (67.1)¡£
¥¡¼¥ï¡¼¥É if ¤¬ "{" ¤ò¤È¤â¤Ê¤ï¤Ê¤¤¾ì¹ç¤Ï¡¢< ¾ò·ï> ¤¬¿¿ (¥¼¥í¤Ç¤Ê¤¤) ¤Ê¤é¤Ð < ¥³¥Þ¥ó¥É¹Ô> ¤Î¥³¥Þ¥ó¥É (Ê£¿ô¤â²Ä) ¤¬¼Â¹Ô¤µ¤ì¡¢µ¶ (¥¼¥í) ¤Ê¤é¤Ð ¥¹¥¥Ã¥×¤µ¤ì¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç¤âÆþÎϹԤκǸå¤Ë¤Ê¤ë¤«¡¢else ¤¬¸½¤ì¤ë ¤È¤³¤í¤Þ¤Ç¤½¤ì¤¬¹Ô¤ï¤ì¤Þ¤¹¡£; ¤ò»È¤¦¤ÈƱ¤¸¹Ô¤ËÊ£¿ô¤Î¥³¥Þ¥ó¥ÉÃÖ¤¯¤³¤È ¤¬²Äǽ¤Ç¤¹¤¬¡¢¾ò·ïÉÕ¤¤Î¥³¥Þ¥ó¥É (if ¤Î¹½Ê¸¼«ÂÎ) ¤Ï¤½¤³¤Ç¤Ï½ª¤é¤Ê¤¤ ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
pi=3 if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi
?Fixing pi! 3.14159265358979
if (1==2) print "Never see this"; print "Or this either"
¤½¤Î¾:
v=0 v=v+1; if (v%2) print "2" ; else if (v%3) print "3" ; else print "fred"
if ¤È reread ¤ò»È¤Ã¤Æ¥ë¡¼¥×¤ò¹½À®¤¹¤ëÎã¤Ï¡¢°Ê²¼»²¾È: reread (79)¡£
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
¤µ¤é¤Ê¤ëÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plot iteration (72.9), do (61)¡£
½ñ¼°:
load "<ÆþÎÏ¥Õ¥¡¥¤¥ë̾>"
ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
load ¥³¥Þ¥ó¥É¤Ï¡¢É¸½àÆþÎϤ«¤é¤Î¥³¥Þ¥ó¥É¤ÎÆþÎϤΤ¿¤á¤Ë¡¢ÆÃÊ̤ʥե¡¥¤ ¥ë̾ "-" ¤òÍÑ°Õ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤¬¡¢¤¤ ¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤é¼õ¤±ÉÕ¤±¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (6)¡£
Unix ¤Î¤è¤¦¤Ë popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à¤Ç¤Ï¡¢'< ' ¤Ç»Ï¤Þ¤ë ¥Õ¥¡¥¤¥ë̾¤Ë¤¹¤ë¤³¤È¤Ç¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ò¥Ñ¥¤¥×¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
load 'work.gnu' load "func.dat" load "< loadfile_generator.sh"
gnuplot ¤Ø¤Î°ú¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢°ÅÌۤΤ¦¤Á¤Ë load ¥³ ¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢»ØÄꤵ¤ì¤¿½ç¤Ë¥í¡¼¥É¤µ¤ì¡¢¤½¤Î¸å gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£
lower {plot_window_nb}
¥³¥Þ¥ó¥É lower (raise ¤ÎÈ¿ÂÐ) ¤Ï¡¢pm, win, wxt, x11 Åù¤Î gnuplot ¤ÎÂÐÏ÷¿½ÐÎÏ·Á¼°¤Î¼Â¹ÔÃæ¤Ë¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò²¼ (Çظå) ¤Ë²¼¤²¤Þ ¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¡¢¥Ç¥¹¥¯¥È¥Ã¥×¾å¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Î z Êý¸þ¤Î ¥¦¥£¥ó¥É¥¦¤Î½Å¤Ê¤ê¤Î²¼¤ËÃÖ¤¤Þ¤¹¡£
x11 ¤ä wxt ¤Î¤è¤¦¤ËÊ£¿ô¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï¤³¤Î¥³¥Þ¥ó¥É¤Ï¤½¤ì¤é¤ÎÊ£¿ô¤Î¥¦¥£¥ó¥É¥¦¤ò¹ß½ç¤Ë²¼¤²¡¢ºÇ½é¤Ë ºî¤é¤ì¤¿¥¦¥£¥ó¥É¥¦¤ò°ìÈÖ²¼¤Ë¡¢ºÇ¸å¤Ëºî¤é¤ì¤¿¥¦¥£¥ó¥É¥¦¤ò°ìÈÖ¾å¤ËÊÂ¤Ù¤Þ ¤¹¡£¥ª¥×¥·¥ç¥ó°ú¿ô¤ÎÉÁ²èÈֹ椬Ϳ¤¨¤é¤ì¤¿¾ì¹ç¡¢¤½¤ì¤ËÂбþ¤¹¤ëÉÁ²è¥¦¥£¥ó ¥É¥¦¤¬Â¸ºß¤¹¤ì¤Ð¤½¤ì¤Î¤ß¤¬²¼¤²¤é¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó°ú¿ô¤Ï¡¢Ã±°ì¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Î½ÐÎÏ·Á¼°¡¢¤¹¤Ê¤ï¤Á pm ¤È win ¤Ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
pause <time> {"<string>"} pause mouse {<endcondition>}{, <endcondition>} {"<string>"}
< time> ¤Ï¡¢Ç¤°Õ¤ÎÄê¿ô¤Þ¤¿¤Ï¼°¤Ç¤¹¡£-1 ¤ò»ØÄꤹ¤ë¤È²þ¹Ô¥¡¼¤¬²¡¤µ¤ì¤ë¤Þ ¤ÇÂÔ¤Á¤Þ¤¹¡£0 ¤ò»ØÄꤹ¤ë¤È°ìÀÚÂÔ¤¿¤º¡¢Àµ¤Î¿ô¤ò»ØÄꤹ¤ë¤È¤½¤ÎÉÿô¤À¤±ÂÔ ¤Á¤Þ¤¹¡£¼Â¹Ô´Ä¶¤¬Éðʲ¼¤Î»þ´Ö»ØÄê¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤½¤Î»þ´Ö¤ÏÀ°¿ô¤ÎÉÿô¤Ë´Ý¤á¤é¤ì¤Þ¤¹¡£pause 0 ¤Ï print ¤ÈƱ¤¸¤Ç¤¹¡£
»ÈÍѤ·¤Æ¤¤¤ë½ÐÎÏ·Á¼°¤¬ 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 (18.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" ¤Ï¡¢Í¸ú¤ÊÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç¤ÎǤ°Õ¤Î¥¡¼ ÆþÎϤˤè¤Ã¤ÆºÆ³«¤µ¤ì¤Þ¤¹¡£ÆÃÊ̤ʥ¡¼ÆþÎϤޤÇÂԤĤ褦¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê reread ¤Ë¤è¤ë¥ë¡¼¥×¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹:
print "ÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç Tab ¥¡¼¤òÂǤĤÈÉüµ¢¤·¤Þ¤¹¡£" load "wait_for_tab"
¥Õ¥¡¥¤¥ë "wait_for_tab" ¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¹:
pause mouse key if (MOUSE_KEY != 9) reread
½ñ¼°:
plot {<ranges>} {<iteration>} {<function> | {"<datafile>" {datafile-modifiers}}} {axes <axes>} {<title-spec>} {with <style>} {, {definitions{,}} <function> ...}
´Ø¿ô < function> ¡¢¤Þ¤¿¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë̾ (< datafile> ) ¤Î¤É¤Á¤é¤«°ìÊý¤òÍ¿¤¨¤Þ¤¹¡£´Ø¿ô¤ÏÄ̾ï¤Ï 1 Ëܤοô¼°¤Ç¤¹¤¬¡¢ÇÞ²ðÊÑ¿ô¥â¡¼ ¥É (parametric) ¤Ë¤ª¤¤¤Æ¤Ï 2 ¤Ä¤Î¿ô¼°¤ÎÁȤǤ¹¡£´Ø¿ô¤Ï¡¢ÁȤ߹þ¤ß´Ø¿ô¡¢ ¥æ¡¼¥¶ÄêµÁ´Ø¿ô¡¢¤¢¤ë¤¤¤Ï¤½¤Î plot ¥³¥Þ¥ó¥É¤Î¾å¤ÇÍ¿¤¨¤ë¤â¤Î¤Î¤¤¤º¤ì¤«¤ò »ÈÍѤǤ¤Þ¤¹¡£¥³¥ó¥Þ¤Ç¶èÀڤ뤳¤È¤Ç¡¢Ê£¿ô¤Î¥Ç¡¼¥¿¤ä´Ø¿ô¤ò 1 ¤Ä¤Î¥³¥Þ¥ó ¥É¤ÇÉÁ²è¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: data (72.3), functions (72.6)¡£
Îã:
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 (82.52)¡£
°ÊÁ°¤Î gnuplot ¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢¥Ð¥¤¥Ê¥ê·Á¼°¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ò¼«Æ°Åª¤Ë¸¡½Ð¤¹¤ë¤â¤Î¤â¤¢¤ê¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï¥Õ¥¡¥¤¥ë̾¤Î¸å¤í¤Ë binary ¤Î¥¡¼¥ï¡¼¥É¤òÍ¿¤¨¤ë¤³¤È¤¬É¬¿Ü¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥Õ¥¡¥¤¥ë·Á¼°¤Ë´Ø¤¹¤ë½½Ê¬¾ÜºÙ¤Ê ¾ðÊó¤Ï¡¢¥æ¡¼¥¶¤¬¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÍ¿¤¨¤ë¤«¡¢¤Þ¤¿¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë filetype ¤Î¥Ð¥¤¥Ê¥ê·Á¼°¤Î¥Õ¥¡¥¤¥ë¤½¤ì¼«¿È¤«¤éÈ´¤½Ð¤µ¤ì¤ë¤«¤¹¤ëɬÍ× ¤¬¤¢¤ê¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢Â礤¯ 2 ¤Ä¤Î·Á¼°¡¢binary matrix ·Á ¼°¤È binary general ·Á¼°¤¬¤¢¤ê¤Þ¤¹¡£
binary matrix ·Á¼°¤Ï¡¢32 ¥Ó¥Ã¥È IEEE µ¬³Ê¤ÎÉâÆ°¾®¿ôÃÍ (float) ¤¬ 2 ¼¡¸µÇÛÎó¤Î·Á¤Çʤӡ¢¤½¤ì¤é¤ÎºÂɸÃͤòɽ¤¹¹Ô¤ÈÎó¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£ ASCII matrix ƱÍÍ¡¢using ¥ê¥¹¥È¤Ë¤ª¤¤¤Æ¤Ï¡¢ºÂɸÍѤÎÎó¤ÎÊÂ¤Ó (1 ÎóÌÜ) ¤¬ using ¤Î 1 ÈÖÌܤÎÍ×ÁÇ (x ºÂɸ) ¤ËÂбþ¤·¡¢ºÂɸÍѤιԤÎÊÂ¤Ó (1 ¹ÔÌÜ) ¤¬ using ¤Î 2 ÈÖÌܤÎÍ×ÁÇ (y ºÂɸ) ¤ËÂбþ¤·¡¢ÇÛÎó¤Î³ÆÃͤ¬ using ¤Î 3 ÈÖ ÌܤÎÍ×ÁÇ (z ºÂɸ) ¤ËÂбþ¤·¤Þ¤¹¡£
binary general ·Á¼°¤Ï¡¢Ç¤°Õ¸Ä¤ÎÎó¤Î¥Ç¡¼¥¿¤ò´Þ¤ß¡¢¤½¤ì¤é¤Î¾ðÊó¤Ï¥³¥Þ ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð array, record, format, using ¤Ê¤É¤Ç¥µ¥¤¥º¤ä·Á¼°¡¢¥Ç¡¼¥¿¤Î¼¡¸µ¤ò»ØÄê¤Ç¤¤Þ¤¹¡£Â¾¤Ë¤â¡¢¥Õ¥¡¥¤ ¥ë¥Ø¥Ã¥ÀÆɤßÈô¤Ð¤·¤¿¤ê¡¢¥¨¥ó¥Ç¥£¥¢¥ó (endian) ¤òÊѹ¹¤¹¤ë¤¿¤á¤ÎÍÍѤʥ³ ¥Þ¥ó¥É¤¬¤¢¤ê¤Þ¤¹¤·¡¢ÇÛÃÖ¡¢¥Ç¡¼¥¿¤ÎÊÑ´¹¤ò¹Ô¤Ê¤¦¥³¥Þ¥ó¥É¤ÎÁȤ¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤Ï¡¢°ìÍͤËɸËܲ½¤µ¤ì¤¿¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¤½¤ÎºÂɸ¤¬¥Õ¥¡¥¤¥ë¤Ë¤Ï´Þ¤Þ¤ì¤Ê ¤¤¤³¤È¤¬Îɤ¯¤¢¤ë¤«¤é¤Ç¤¹¡£matrix ¥Ð¥¤¥Ê¥ê¤ä ASCII ¥Ç¡¼¥¿¤È°ã¤Ã¤Æ¤¤¤ë¤È ¤³¤í¤Ç¤¹¤¬¡¢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 (84.1.1), binary general (72.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 (84.1.1)¡£)
¥Ð¥¤¥Ê¥ê·Á¼°¤Ë´Ø¤¹¤ë¾ðÊ󤬼«Æ°Åª¤Ë¥Õ¥¡¥¤¥ë¤«¤éÆɤ߼è¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦ ¤Êɸ½àŪ¤Ê¥Õ¥¡¥¤¥ë·Á¼°¤â¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹ (¤½¤Î°ìÍ÷¤ò¸«¤ë¤Ë¤Ï¡¢gnuplot ¤ÎÂÐÏòèÌ̤«¤é show datafile binary ¤·¤Æ¤¯¤À¤µ¤¤)¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¡¢¤¢¤ë¤¤¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥¡¼¥ï ¡¼¥É¤Ë´Ø¤·¤Æ¤Ï°Ê²¼¤ÇÀâÌÀ¤·¤Þ¤¹¡£
< binary list> ¤ËÍ¿¤¨¤ë¥¡¼¥ï¡¼¥É filetype ¤Ï¡¢¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¤Î¤Ë »ÈÍѤµ¤ì¤ë¥ë¡¼¥Á¥ó¡¢¤¹¤Ê¤ï¤Á¥Ç¡¼¥¿¤Î·Á¼°¤Î°·¤¤¤òÀ©¸æ¤·¤Þ¤¹¡£¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤ë filetype ¤Î°ìÍ÷¤ò¸«¤ë¤Ë¤Ï¡¢show datafile binary filetypes ¤È ¤·¤Æ¤¯¤À¤µ¤¤¡£filetype ¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Îµ¬Â§¤Ï¡¢splot ÍÑ¤Ë binary ¥¡¼¥ï¡¼¥É¤¬Ã±ÆȤÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¸ÅŵŪ¤Ê gnuplot ¥Ð¥¤¥Ê¥ê·Á¼°¤À¤È¸« ¤Ê¤µ¤ì¡¢¤½¤Î¾Á´¤Æ¤Î¾õ¶·¡¢¤¹¤Ê¤ï¤Á plot ÍѤ«¤Þ¤¿¤Ï¾¯¤Ê¤¯¤È¤â°ì¤Ä¤Î < binary list> ¥¡¼¥ï¡¼¥É¤¬Í¿¤¨¤é¤ì¤¿¤è¤¦¤Ê¾ì¹ç¤Ï¡¢raw ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë ¤È¤ß¤Ê¤µ¤ì¡¢¤½¤Î¥¡¼¥ï¡¼¥É¤Ë¤è¤Ã¤Æ¥Ð¥¤¥Ê¥ê·Á¼°¤¬»ØÄꤵ¤ì¤Þ¤¹¡£
general ¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï 2 ¤Ä¤Î´ðËÜŪ¤Ê¥¯¥é¥¹¤Ëʬ¤«¤ì¤Þ¤¹¤¬¡¢ ¤½¤ì¤¬¤É¤Î¤è¤¦¤Ë°·¤ï¤ì¤ë¤Î¤«¤Ë¤è¤Ã¤ÆξÊý¤Î¥¯¥é¥¹¤ËÆþ¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£ °ì¤Ä¤Î¥¯¥é¥¹¤Ï¡¢¥Ç¡¼¥¿¤Ï°ìÍͤ˥µ¥ó¥×¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¤È¸«¤Ê¤µ¤ì¡¢ÅÀ¤ÎºÂ ɸ¤ÏɬÁ³Åª¤Ë¤½¤³¤«¤éÀ¸À®¤µ¤ì¤Þ¤¹¡£¤³¤Î¥¯¥é¥¹¤Ç¤Ï < binary list> ¥¡¼¥ï ¡¼¥É¤òÍѤ¤¤ÆÁ´¤Æ¤ÎÀ©¸æ¤¬¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£¤½¤·¤Æ¡¢¤³¤Î¥¯¥é¥¹¤Ç¤ÎÀßÄê¤ÎÍ¥Àè ½ç°Ì¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ñ¥é¥á¡¼¥¿¤¬¥Õ¥¡¥¤¥ëÆâ¤Î¥Ñ¥é¥á¡¼¥¿¤ò¾å½ñ¤¤·¡¢¤½ ¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¾å½ñ¤¤·¤Þ¤¹¡£¤â¤¦°ì¤Ä¤Î¥¯¥é¥¹¤Ï¡¢ºÂɸ¾ðÊ󤬥ե¡ ¥¤¥ëÆâ¤Ë´Þ¤Þ¤ì¤¿Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ÎÁȤΤ¿¤á¤Î¤â¤Î¡¢¤¢¤ë¤¤¤Ï gnuplot ¥Ð¥¤ ¥Ê¥ê¤Î¤è¤¦¤ÊÈó°ìÍͤÊɸËܲ½¤ò´Þ¤ßÆÀ¤ë°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Î¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£
gnuplot ¥Ð¥¤¥Ê¥ê¤Î¤è¤¦¤ÊÆüì¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë°Ê³°¤Ç¤Ï¡¢°ìÈ̤˥Х¤¥Ê¥ê¥Ç¡¼¥¿¤Ï³µÇ°¾å¤Ï ASCII ¥Ç¡¼¥¿¤ÈƱÍͤ˹ͤ¨¤é¤ì¤Þ¤¹¡£³ÆÅÀ¤Ï¾ðÊó¤ÎÎó¤ò»ý¤Ã ¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï using ¤Ë¤è¤Ã¤Æ·ë¤Ó¤Ä¤±¤é¤ì¤ë < using list> ¤ÇÁªÂò¤µ¤ì ¤Þ¤¹¡£format ʸ»úÎ󤬲¿¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï¥Ð¥¤¥Ê¥êÊÑ ¿ô¤Î¿ô¤ò < using list> ¤ÇÍ¿¤¨¤é¤ì¤ëºÇÂç¤ÎÎóÈÖ¹æ¤ËÅù¤·¤¯¼è¤ê¤Þ¤¹¡£Î㤨 ¤Ð using 1:3 ¤Î¾ì¹ç¤Ï 3 Î󤺤ĥǡ¼¥¿¤¬Æɤ߼è¤é¤ì¡¢2 ÈÖÌܤΤâ¤Î¤Ï̵»ë ¤µ¤ì¤Þ¤¹¡£³ÆÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï¤½¤Îŵ·¿Åª¤Ê¥Ñ¥é¥á¡¼¥¿¤Î¸Ä¿ô¤¬¤¢¤ê¡¢¤½¤ì¤Ë ´ð¤Å¤¯ < using list> ¤¬¥Ç¥Õ¥©¥ë¥È¤È¤·¤ÆÁªÂò¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð with image ¤Ç¤Ï ¥Ç¥Õ¥©¥ë¥È¤Ç using 1 ¤¬¡¢with rgbimage ¤Ç¤Ï¥Ç¥Õ ¥©¥ë¥È¤Ç using 1:2:3 ¤¬»È¤ï¤ì¤Þ¤¹¡£using ¤Ç ÅÀ/Àþ/index ¤òɽ¤¹ÆÃÊÌ ¤Êʸ»ú¤Ï¡¢°ìÈ̤ˤϥХ¤¥Ê¥ê¥Ç¡¼¥¿¤Ç¤Ï»È¤¦¤Ù¤¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À ¤µ¤¤¡£¤³¤ì¤òÀ©¸æ¤¹¤ë < binary list> ¤Î¥¡¼¥ï¡¼¥É¤¬¤¢¤ê¤Þ¤¹¡£
Ãí°Õ: gnuplot version 4.2 ¤Ç¤Ï array=(128,128) ¤È¤¤¤¦½ñ¼°¤Ç¤Ï¤Ê ¤¯¡¢array=128x128 ¤È¤¤¤¦½ñ¼°¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤·¤¿¡£¸Å¤¤½ñ¼° ¤Ï¿ä¾©¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¤¢¤Ê¤¿¤Î gnuplot ¤¬¸åÊý¸ß´¹À¤ò¥µ ¥Ý¡¼¥È¤¹¤ë¤è¤¦¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð°ì±þº£¤Ç¤â»È¤¨¤Þ¤¹¡£
plot '<file_name>' binary skip=1024 ...
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 (82.16.6))¡£
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 ¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
°Ê²¼¤Î¥¡¼¥ï¡¼¥É¤âºÂɸ¤ÎÀ¸À®»þ¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢°Ê²¼¤Î¤â¤Î¤Ï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} matrix} {index <index list> | index "<name>"} {every <every list>} {thru <thru expression>} {skip <number-of-lines>} {using <using list>} {smooth <option>} {volatile} {noautoscale}
½¤Àµ»Ò¤Î binary, index, every, skip, using, smooth ¤Ï¡¢¤½ ¤ì¤¾¤ì¤Ëʬ¤±¤ÆÀâÌÀ¤·¤Þ¤¹¡£´Êñ¤Ë¸À¤¦¤È¡¢binary ¤Ï¥Ç¡¼¥¿Îó¤ò¥Ð¥¤¥Ê¥ê ¥Õ¥¡¥¤¥ë¤«¤é¼èÆÀ¤Ç¤¤ë¤è¤¦¤Ë¤· (¥Ç¥Õ¥©¥ë¥È¤Ï ASCII ¥Õ¥¡¥¤¥ë)¡¢index ¤Ï¥Þ¥ë¥Á¥Ç¡¼¥¿½¸¹ç¥Õ¥¡¥¤¥ë¤«¤é¤É¤Î¥Ç¡¼¥¿½¸¹ç¤òɽ¼¨¤¹¤ë¤Î¤«¤òÁª¤Ó¡¢ every ¤¬¡¢°ì¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤«¤é¤É¤ÎÅÀ¤òɽ¼¨¤¹¤ë¤Î¤«¤òÁª¤Ó¡¢using ¤Ï °ì¹Ô¤«¤é¤É¤ÎÎó¤ò²ò¼á¤¹¤ë¤Î¤«¤ò·èÄꤷ (thru ¤Ï¡¢using ¤ÎÆÃÊ̤ʾì¹ç ¤Ç¤¢¤ë)¡¢¤½¤·¤Æ smooth ¤¬¡¢Ã±½ã¤ÊÊä´Ö¤È¶á»÷¤ò¹Ô¤¤¤Þ¤¹¡£(splot ¤Ï¡¢ ¤è¤¯»÷¤¿½ñ¼°¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢smooth ¥ª¥×¥·¥ç¥ó¤È thru ¥ª¥×¥·¥ç¥ó ¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó)
¥¡¼¥ï¡¼¥É noautoscale ¤Ï¡¢¼«Æ°Åª¤Ë¼´¤ÎÈϰϤ¬·èÄꤵ¤ì¤ëµ¡Ç½¤¬Í¸ú¤Ç ¤¢¤ë¾ì¹ç¤Ë¡¢¤³¤ÎÉÁ²è¤ò¹½À®¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤½¤ì¤ò̵»ë¤µ¤»¤ë (¼« Æ°½Ì¼Üµ¡Ç½¤Î·×»»Âоݤ«¤é³°¤¹) ¤è¤¦¤Ë¤·¤Þ¤¹¡£
ASCII ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë:
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢°ì¹Ô¤Ë¤Ä¤¾¯¤Ê¤¯¤È¤â°ì¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤ò´Þ¤àɬÍפ¬¤¢¤ê¤Þ ¤¹ (using ¤Ï°ì¹Ô¤«¤é°ì¤Ä¤Î¥Ç¡¼¥¿¥Ý¥¤¥ó¥È¤òÁª¤Ö¤³¤È¤¬¤Ç¤¤Þ¤¹)¡£# (VMS ¤Ç¤Ï !) ¤Ç»Ï¤Þ¤ë¹Ô¤Ï¡¢¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì¡¢Ìµ»ë¤µ¤ì¤Þ¤¹¡£³Æ¥Ç ¡¼¥¿ÅÀ¤Ï¡¢(x,y) ¤ÎÁȤòɽ¤·¤Þ¤¹¡£¥¨¥é¡¼¥Ð¡¼¡¢¤Þ¤¿¤ÏÀÞ¤ìÀþɽ¼¨ÉÕ¥¨¥é¡¼¥Ð ¡¼¤Î plot ¤Ç¤Ï (°Ê²¼»²¾È: set style errorbars (53),set style errorlines (56))¡¢³Æ¥Ç¡¼¥¿ÅÀ¤Ï¡¢(x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh), (x,y,xlow,xhigh,ylow,yhigh) ¤Î¤¤¤º¤ì¤« ¤ò°ÕÌ£¤·¤Þ¤¹¡£
¤É¤ó¤Ê¾ì¹ç¤Ç¤â¡¢½ñ¼°¤Î»ØÄê»Ò¤¬ using ¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤Æ¤¤
¤Ê¤±¤ì¤Ð¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤Î¿ô»ú¤Ï¡¢¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (°ì¤Ä¤Þ¤¿¤ÏÊ£
¿ô¤Î¶õÇò¤«¥¿¥Ö) ¤Ë¤è¤Ã¤Æ¶èÀÚ¤é¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¥Û¥ï¥¤¥È¥¹¥Ú
¡¼¥¹¤Ï¡¢³Æ¹Ô¤òÎó¤Î¹àÌܤ˶èÀÚ¤ê¤Þ¤¹¡£¤¿¤À¤·¡¢Æó½Å°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿¥Û¥ï¥¤
¥È¥¹¥Ú¡¼¥¹¤ÏÎó¤Î´ªÄê¤Ç¤Ï̵»ë¤µ¤ì¡¢¤è¤Ã¤Æ¼¡¤Î¤è¤¦¤Ê¥Ç¡¼¥¿¹Ô¤Ï 3 Î󡢤È
¸«¤Ê¤µ¤ì¤Þ¤¹:
1.0 "second column" 3.0
¥Ç¡¼¥¿¤Ï¡¢»Ø¿ôÉô¤Ë e, E ¤Îʸ»ú¤ò¤Ä¤±¤¿»Ø¿ôɽµ¤Ç½ñ¤«¤ì¤Æ¤¤¤Æ¤â¹½¤¤¤Þ¤» ¤ó¡£¥³¥Þ¥ó¥É set datafile fortran ¤¬Í¸ú¤Ê¾ì¹ç¤Ï¡¢fortran ¤Î»Ø¿ô»ØÄê »Ò d, D, q, Q ¤â»È¤¨¤Þ¤¹¡£
ɬÍפǤ¢¤ë¤Î¤Ï¤¿¤À°ì¤Ä¤ÎÎó (y ¤ÎÃÍ) ¤Î¤ß¤Ç¤¹¡£¤â¤· x ¤ÎÃͤ¬¾Êά¤µ¤ì¤¿ ¤é¡¢gnuplot ¤Ï¤½¤ì¤ò 0 ¤Ç»Ï¤Þ¤ëÀ°¿ôÃͤȤ·¤ÆÍÑ°Õ¤·¤Þ¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤ª¤¤¤Æ¡¢¥Ö¥é¥ó¥¯¹Ô (¶õÇò¤È²þ¹Ô¡¢Éüµ¢°Ê³°¤Ëʸ»ú¤ò´Þ¤Þ¤Ê¤¤¹Ô) ¤Ï½ÅÍפǤ¹¡£
1 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢plot ¤ËÉÔϢ³¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ö¥é¥ó¥¯¹Ô¤Ë¤è¤Ã¤Æ¶è ÀÚ¤é¤ì¤¿ÅÀ¤ÏÀþ¤Ç·ë¤Ð¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó (line style ¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¾ì ¹ç¤Ë¤Ï)¡£
2 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢ÊÌ¡¹¤Î¥Ç¡¼¥¿½¸¹ç´Ö¤Î¶èÀÚ¤ê¤ò¼¨¤·¤Þ¤¹¡£°Ê²¼»²¾È:index (72.3.3)¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð (°Ê²¼»²¾È: set autoscale (82.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 ¥³¥Þ¥ó¥É¤Î fixmin/fixmax ¥ª¥×¥· ¥ç¥ó¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê¤Î¹ï¤ß¤Ë¹ç¤¦¤è¤¦¤Ë¼´¤ÎÈÏ°Ï ¤ò¼«Æ°Åª¤Ë³ÈÄ¥¤¹¤ëµ¡Ç½¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
¥é¥Ù¥ë¤ÎºÂɸ¤Èʸ»úÎó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: labels (42))¡£
¤³¤³¤Ç¤Ï ¡Ö¥Ý¥¤¥ó¥È¡×¤Ï¥Õ¥¡¥¤¥ëÃæ¤Î 1 ¤Ä¤Î¹Ô¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¥Ç¡¼¥¿¤È ¤·¡¢¤³¤³¤Ç¤Î¡Ö¥Ö¥í¥Ã¥¯¡×¤Ï¡Ö¥Ç¡¼¥¿¡¦¥Ö¥í¥Ã¥¯¡×(°Ê²¼»²¾È: glossary (16)) ¤ÈƱ¤¸¤â¤Î¤ò°ÕÌ£¤¹¤ë¤³¤È¤È¤·¤Þ¤¹¡£
½ñ¼°:
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 ¤Þ¤Ç¤ò # Áª¤Ó¤Þ¤¹
»²¾È:
,
Èó¥Ñ¥é¥á¡¼¥¿¥â¡¼¥É¤Ç¤Î 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 (84.1.1)¡£
½ñ¼°:
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 (72.3.8.2), lc variable (17.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 | cumulative | cnormal | kdensity | unwrap | csplines | acsplines | mcsplines | bezier | sbezier}
unique, frequency, cumulative, cnormal ¤Ï¡¢¥Ç¡¼¥¿¤òñĴ¤Ë·¤¨ ¤¿¸å¤Ç¤½¤ì¤é¤ò plot ¤·¤Þ¤¹¡£unwrap ¤Ï¡¢Ï¢Â³¤¹¤ëÅÀ¤Î y ¤ÎÃͤ¬¦Ð¤è¤êÂç ¤¤Ê¥¸¥ã¥ó¥×¤ò¤·¤Ê¤¤¤è¤¦¤ÊÁàºî¤ò¤·¤Þ¤¹¡£Â¾¤Î¥ë¡¼¥Á¥ó¤Ï¤¤¤º¤ì¤â¡¢¥Ç¡¼¥¿ ¤Îξü¤ÎÅÀ¤Î´Ö¤ò·ë¤Ö¡¢¤¢¤ëϢ³¶ÊÀþ¤Î·¸¿ô¤ò·èÄꤹ¤ë¤¿¤á¤Ë¥Ç¡¼¥¿¤ò»È¤¤¤Þ ¤¹¡£¤³¤Î¶ÊÀþ¤Ï¡¢´Ø¿ô¤È¤·¤ÆƱ¤¸ÊýË¡¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤½¤ì¤é¤ÎÃÍ ¤Ï x ºÂɸ¤Ë±è¤¦Æ±¤¸Éý¤Î¶è´Ö¤´¤È¤ËÁª¤Ð¤ì (°Ê²¼»²¾È: set samples (82.64))¡¢¤½ ¤ì¤é¤ÎÅÀ¤òÀþʬ¤Ç¤Ä¤Ê¤°¤³¤È¤Ë¤è¤ê (¤â¤· line style ¤¬Áª¤Ð¤ì¤Æ¤¤¤ë¤Î¤Ê¤é ¤Ð) ÉÁ²è¤µ¤ì¤Þ¤¹¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð¡¢ÉÁ²èÈϰϤϥ°¥é¥Õ¤Î¶³¦Àþ¤ÎÃæ¤Ë¶ÊÀþ¤¬ ¼ý¤Þ¤ë¤è¤¦¤Ë·×»»¤µ¤ì¤Þ¤¹¡£
¤â¤· autoscale ¤Î¾õÂ֤Ǥʤ¯¡¢smooth ¤Î¥ª¥×¥·¥ç¥ó¤¬ acsplines ¤« csplines ¤Ç¤¢¤ì¤Ð¡¢À¸À®¤¹¤ë¶ÊÀþ¤ÎɸËܲ½¤Ï¡¢ÆþÎϥǡ¼¥¿¤ò´Þ¤à¤è¤¦¤Ê x ¤ÎÈϰϤȡ¢set xrange ¤Ê¤É¤ÇÄêµÁ¤µ¤ì¤ë¸ÇÄꤵ¤ì¤¿²£ºÂɸ¤ÎÈϰϤζ¦ÄÌÉô ʬ¤Î¾å¤Ç¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£
ÁªÂò¤µ¤ì¤¿¥ª¥×¥·¥ç¥ó¤òŬÍѤ¹¤ë¤Î¤Ë¥Ç¡¼¥¿¤ÎÅÀ¿ô¤¬¾¯¤Ê¤¹¤®¤ë¾ì¹ç¤Ï¡¢¥¨ ¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¤½¤ÎºÇ¾®¤Î¥Ç¡¼¥¿¿ô¤Ï unique ¤È frequency ¤Ç¤Ï 1 ¤Ä¡¢acsplines ¤Ç¤Ï 4 ¤Ä¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤Ç¤Ï 3 ¤Ä ¤Ç¤¹¡£
smooth ¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ø¿ô¤ÎÉÁ²è¤Î¤È¤¤Ë¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
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
¶õ¤Î¥Õ¥¡¥¤¥ë̾ '' ¤Ï¡¢Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢Ä¾Á°¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤òºÆ¤Ó »ÈÍѤ¹¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Æ±¤¸ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 2 ¤Ä¤Î ¥Ç¡¼¥¿Îó¤òÉÁ²è¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:
plot 'filename' using 1:2, '' using 1:3
'+' ¤È '++' ¤È¤¤¤¦ÆÃÊ̤ʥե¡¥¤¥ë̾¤Ï¡¢using »ØÄê¤ÎÁ´ÂΤÈÉÁ²è¥¹¥¿¥¤¥ë ¤Ë¥¤¥ó¥é¥¤¥ó´Ø¿ô¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î»ÅÁȤߤǤ¹¡£Ä̾´Ø¿ôÉÁ²è¤Ï¥µ ¥ó¥×¥ëÅÀËè¤Ëñ°ì¤Î y (¤Þ¤¿¤Ï z) ¤ÎÃͤ·¤«»ý¤Æ¤Þ¤»¤ó¡£¤·¤«¤·µ¿»÷¥Õ¥¡¥¤¥ë '+' ¤Ï¤½¤ì¤¬¤¢¤¿¤«¤â¼ÂºÝ¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤è¤¦¤Ë¡¢using »ØÄê¤Ë¤è¤ë 1 ÎóÌܤÎÃͤòɸËÜÅÀ¤È¤·¤Æ°·¤¤¡¢¤µ¤é¤ËÄɲäÎÎó¤ÎÃͤò»ØÄꤹ¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£ÊÖ¤µ¤ì¤ëɸËÜÅÀ¤Î¿ô¤Ï¡¢set samples ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£ Îã:
plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves
ƱÍͤˡ¢µ¿»÷¥Õ¥¡¥¤¥ë '++' ¤Ï¡¢x Êý¸þ¤Ï set samples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î ¿ô¡¢y Êý¸þ¤Ï set isosamples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î¿ô¤Î¡¢É¸½àŪ¤Ê [x,y] ºÂ ɸ¤Î³Ê»Ò¤òÀ¸À®¤¹¤ë 2 Îó¤Î¥Ç¡¼¥¿¤òÊÖ¤·¤Þ¤¹¡£ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï¥µ¥ó¥×¥ë ÅÀ¤Ï x ¤È y ¤Ë´Ø¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢u ¤È v ¤Ë´Ø¤·¤Æ¼è¤é¤ì¤Þ¤¹¡£'++' ¤ÎÉÁ²è¤Î Á°¤Ë¡¢xrange ¤È yrange (¤Þ¤¿¤Ï 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 ¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ë¤ª¤± ¤ë < < (¥Ò¥¢¥É¥¥å¥á¥ó¥È)¡¢¤¢¤ë¤¤¤Ï VMS DCL ¤Ë¤ª¤±¤ë $DECK ¤ÈƱÍͤǤ¹¡£ ¤½¤Î¥Ç¡¼¥¿¤Ï¡¢¤½¤ì¤é¤¬¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤Þ¤ì¤¿¤«¤Î¤è¤¦¤Ë¡¢1 ¹Ô¤Ë¤Ä¤ 1 ¤Ä¤º¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤¬ÆþÎϤµ¤ì¤Þ¤¹¡£¤½¤·¤Æ¥Ç¡¼¥¿¤Î½ª¤ê¤Ï¡¢1 ÎóÌܤλϤá¤Ë ʸ»ú "e" ¤òÃÖ¤¯¤³¤È¤Ç»Ø¼¨¤·¤Þ¤¹¡£using ¥ª¥×¥·¥ç¥ó¤ò¤³¤ì¤é¤Î¥Ç¡¼¥¿¤Ë ŬÍѤ¹¤ë¤³¤È¤Ï²Äǽ¤Ç¤¹¡£¤¢¤ë´Ø¿ô¤òÄ̤·¥Ç¡¼¥¿¤ò¥Õ¥£¥ë¥¿¡¼¤¹¤ë¤³¤È¤Ë»È¤¦ ¤Î¤Ï°ÕÌ£¤¬¤¢¤ë¤Ç¤·¤ç¤¦¤¬¡¢Îó¤òÁª¤Ö¤Î¤Ë»È¤¦¤³¤È¤Ï¿ʬ°ÕÌ£¤¬¤Ê¤¤¤Ç¤·¤ç¤¦¡£
'-' ¤Ï¡¢¥Ç¡¼¥¿¤È¥³¥Þ¥ó¥É¤ò°ì½ï¤Ë»ý¤Ä¤³¤È¤¬ÍÍѤǤ¢¤ë¾ì¹ç¤Î¤¿¤á¤Ë¤¢ ¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢gnuplot ¤¬¤¢¤ë¥Õ¥í¥ó¥È¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥µ¥Ö¥×¥í¥» ¥¹¤È¤·¤Æµ¯Æ°¤µ¤ì¤ë¾ì¹ç¤Ê¤É¤¬¤³¤ì¤Ë¤¢¤¿¤ê¤Þ¤¹¡£Îã¤È¤·¤Æ¡¢¥Ç¥â¥ó¥¹¥È¥ì ¡¼¥·¥ç¥ó¤Ç¤³¤Îµ¡Ç½¤ò»È¤¦¤â¤Î¤¬¤¢¤ë¤Ç¤·¤ç¤¦¡£index ¤ä every ¤Î¤è¤¦ ¤Ê plot ¤Î¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤È¡¢¤½¤ì¤é¤Ï¤¢¤Ê¤¿¤Ë»È¤ï¤ì¤ë¤³ ¤È¤Î¤Ê¤¤¥Ç¡¼¥¿¤òÆþÎϤ¹¤ë»ö¤ò¶¯Íפ·¤Þ¤¹¡£¼¡¤ÎÎã¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
plot '-' index 0, '-' index 1 2 4 6
10 12 14 e 2 4 6
10 12 14 e
¤³¤ì¤Ï¡¢¼ÂºÝ¤ËÆ°ºî¤·¤Þ¤¹¤¬¡¢
plot '-' , '-' 2 4 6 e 10 12 14 e
¤È¥¿¥¤¥×¤¹¤ëÊý¤¬³Ú¤Ç¤·¤ç¤¦¡£
¤â¤·¡¢replot ¥³¥Þ¥ó¥É¤Ç '-' ¤ò»È¤¦¤Ê¤é¡¢¤¢¤Ê¤¿¤Ï 1 Åٰʾå¥Ç¡¼¥¿¤òÆþÎϤ¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: replot (78), refresh (77)¡£
¶õ¤Î¥Õ¥¡¥¤¥ë̾ ('') ¤Ï¡¢Ä¾Á°¤Î¥Õ¥¡¥¤¥ë̾¤¬ºÆ¤Ó»È¤ï¤ì¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢
plot '¤¢¤ë/¤È¤Æ¤â/Ť¤/¥Õ¥¡¥¤¥ë̾' using 1:2, '' using 1:3, '' using 1:4
¤Î¤è¤¦¤Ê¤È¤¤ËÊØÍø¤Ç¤¹¡£(¤â¤·Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢'-' ¤È '' ¤Î ξÊý¤ò»ÈÍѤ¹¤ë¤È¡¢¾å¤ÎÎã¤Ë¤¢¤ë¤è¤¦¤Ë¡¢¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤Î 2 ¤Ä¤Î½¸¹ç¤ò Í¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£)
popen ´Ø¿ô¤ò»ý¤Ã¤Æ¤¤¤ë¥·¥¹¥Æ¥à¾å¤Ç¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢'< ' ¤Ç»Ï¤Þ¤ë¥Õ ¥¡¥¤¥ë̾¤Ë¤è¤Ã¤Æ¡¢¥·¥§¥ë¥³¥Þ¥ó¥É¤«¤é¥Ñ¥¤¥×ÆþÎϤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨 ¤Ð
pop(x) = 103*exp(-x/10) plot "< awk '{print $1-1965, $2}' population.dat", pop(x)
¤Ï¡¢ºÇ½é¤Î¿Í¸ý¤ÎÎã¤ÈƱ¤¸¾ðÊó¤òÉÁ²è¤·¤Þ¤¹¡£¤¿¤À¤·¡¢x ºÂɸ¤Ï 1965 ǯ¤« ¤é¤Î·Ð²áǯ¤òɽ¤¹¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÎã¤ò¼Â¹Ô¤¹¤ë¤È¤¤Ï¡¢¾å¤Î¥Ç¡¼¥¿¥Õ ¥¡¥¤¥ë¤Î¥³¥á¥ó¥È¹Ô¤ò¤¹¤Ù¤Æºï½ü¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¤¬¡¢¤Þ¤¿¤Ï¾å¤Î¥³¥Þ ¥ó¥É¤ÎºÇ½é¤ÎÉôʬ¤ò¼¡¤Î¤è¤¦¤ËÊѤ¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (¥³¥ó¥Þ¤Ë³¤¯Éôʬ):
plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"
¤³¤Î¥¢¥×¥í¡¼¥Á¤ÏºÇ¤â½ÀÆðÀ¤¬¤¢¤ê¤Þ¤¹¤¬¡¢using ¤¢¤ë¤¤¤Ï thru ¥¡¼ ¥ï¡¼¥É¤òÍѤ¤¤¿Ã±½ã¤Ê¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Ç¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£
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' thru f(x)
¤³¤ì¤Ï¼¡¤ÈƱÍͤǤ¹:
plot 'file' using 1:(f($2))
¸å¼Ô¤ÎÊý¤¬¤è¤êÊ£»¨¤Ë¸«¤¨¤Þ¤¹¤¬¡¢¤³¤ÎÊý¤¬½ÀÆðÀ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¤µ¤é¤Ë ¼«Á³¤Ê
plot 'file' thru f(y)
¤âÆ°ºî¤·¤Þ¤¹ (¤¹¤Ê¤ï¤Á¡¢y ¤ò¥À¥ß¡¼ÊÑ¿ô¤È¤·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹)¡£
thru ¤Ï splot ¤È fit ¤Ç¤âÄ̤ê¤Þ¤¹¤¬¡¢²¿¤Î¸ú²Ì¤â»ý¤Á¤Þ¤»¤ó¡£
½ñ¼°:
plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}
format ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤ò C ¥é¥¤¥Ö¥é¥ê´Ø¿ô 'scanf' ¤ËŬÍѤ·¤Æ¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤òÆɤߤޤ¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢³Æ¹Ô¤Ï¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (¥¹¥Ú ¡¼¥¹¤ä¥¿¥Ö) ¤Ç¶èÀÚ¤é¤ì¤¿¥Ç¡¼¥¿¤ÎÎó (¥Õ¥£¡¼¥ë¥É) ¤«¤é¤Ê¤ë¤È¤ß¤Ê¤·¤Þ¤¹¤¬ °Ê²¼¤â»²¾È: datafile separator (82.16.4)¡£
³Æ < entry> ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î°ì¤Ä¤Î¥Õ¥£¡¼¥ë¥É¤òÁªÂò¤¹¤ë¤¿¤á¤Îñ¤Ê¤ëÎó ¤ÎÈֹ椫¡¢°ì¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ÎºÇ½é¤Î¹Ô¤ÎÎó¤Î¥é¥Ù¥ë¤Ë°ìÃפ¹¤ëʸ»úÎó¡¢¥«¥Ã ¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¡¢xticlabels(2) ¤Î¤è¤¦¤Ë¥«¥Ã¥³¤Ç°Ï¤Þ¤Ê¤¤ÆÃÊ̤ʴؿô¡¢¤Î ¤¤¤º¤ì¤«¤Ç¤¹¡£
¤½¤Î¥¨¥ó¥È¥ê¤¬¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¤Î¾ì¹ç¡¢N ÎóÌܤÎÃͤò»ØÄꤹ¤ë¤Î¤Ë´Ø¿ô
column(N) ¤ò»ÈÍѤǤ¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢column(1) ¤ÏÆɤ߹þ¤Þ¤ì¤¿ºÇ½é¤Î¹àÌܤò
»²¾È¤·¡¢column(2) ¤Ï¼¡¤Î¹àÌÜ¡¢¤È¤¤¤Ã¤¿¶ñ¹ç¤Ç¤¹¡£column(1), column(2),
... ¤Îάµ¤È¤·¤Æ¡¢ÆÃÊ̤ʵ¹æ $1, $2, ... ¤ò»ÈÍѤǤ¤Þ¤¹¡£´Ø¿ô
valid(N) ¤Ç¡¢N ÈÖÌܤÎÎó¤¬Í¸ú¤Ê¿ô»ú¤Ç¤¢¤ë¤«¤É¤¦¤«¥Æ¥¹¥È¤Ç¤¤Þ¤¹¡£
ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Î³ÆÎó¤Ë¡¢¥Ç¡¼¥¿¤ÎÃͤǤϤʤ¯¥é¥Ù¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¾ì
¹ç¡¢¤³¤Î¥é¥Ù¥ë¤òÆþÎÏÎó¤ÎÆÃÄê¤ä plot ¥¿¥¤¥È¥ë¤Ë»ÈÍѤǤ¤Þ¤¹¡£´Ø¿ô
column() ¤Ï¡¢ÎóÈÖ¹æ°Ê³°¤Ë¥é¥Ù¥ë¤ÇÆþÎÏÎó¤òÁªÂò¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿
¥Õ¥¡¥¤¥ë¤¬°Ê²¼¤Î¤è¤¦¤Ê¾ì¹ç:
Height Weight Age val1 val1 val1 ... ... ...
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 ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Î 1...N ¤È¤¤¤¦¼ÂºÝ¤ÎÎó¤Ë²Ã¤¨¤Æ¡¢gnuplot ¤Ï´ÉÍý¾ðÊó ¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤Î "µ¿»÷Îó" ¤òÄ󶡤·¤Þ¤¹¡£Î㤨¤Ð¡¢$0 ¤Þ¤¿¤Ï column(0) ¤Ï¡¢ ¥Ç¡¼¥¿½¸¹çÆâ¤Î¤½¤Î¥Ç¡¼¥¿¹Ô¤Î¹ÔÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È:pseudocolumns (72.3.8.2)¡£
< 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 (82.66), fit (64)¡£
'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 ÎóÌܤÎÃͤȤ·¤Æ»ØÄꤵ¤ì¤ë¤Ù¤¤Ç¤¹¡£
plot 'file' ¤È plot 'file' using 1:2¡¢¤½¤·¤Æ plot 'file' using ($1):($2) ¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ ¤¤¡£1) file ¤¬ 1 Îó¤È 2 Îó¤Î¥Ç¡¼¥¿¤ò»ý¤Ä¹Ô¤ò¤½¤ì¤¾¤ì´Þ¤ó¤Ç¤¤¤ë¤È¤¹¤ë ¤È¡¢¥Ç¡¼¥¿¤¬ 1 Îó¤Î¤ß¤Î¹Ô¤ËÂФ·¤Æ¤Ï¡¢ºÇ½é¤Î¤â¤Î¤Ï x ¤ÎÃͤòºî¤ê½Ð¤·¡¢2 ÈÖÌܤΤâ¤Î¤Ï¤½¤Î¹Ô¤Ï̵»ë¤·¡¢3 ÈÖÌܤΤâ¤Î¤Ï¤½¤ì¤ò̤ÄêµÁ¤ÎÃͤȤ·¤ÆÊݸ¤· ¤Þ¤¹ (ÀÞ¤ìÀþ¤Ç plot ¤·¤Æ¤¤¤ë¾ì¹ç (plot with lines)¡¢¤½¤Î̤ÄêµÁ¤ÎÅÀ¤òÄÌ ²á¤¹¤ëÀþ¤ò·ë¤Ð¤Ê¤¤¤è¤¦¤Ë)¡£2) 1 ÎóÌܤËʸ»úÎó¤ò´Þ¤ó¤Ç¤¤¤ë¤è¤¦¤Ê¹Ô¤¬¤¢¤ë ¾ì¹ç¡¢ºÇ½é¤Î¤â¤Î¤Ï¥¨¥é¡¼¤È¤·¤Æ plot ¤òÃæ»ß¤·¤Þ¤¹¤¬¡¢2 ÈÖÌÜ¤È 3 ÈÖÌܤΠ¤â¤Î¤Ï¤½¤ÎÉÔÍפʹԤòÆɤߤȤФ·¤Þ¤¹¡£
¼ÂºÝ¡¢ºÇ½é¤Ëñ¤Ë
plot 'file' using 1:2
¤È»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÂçÄñ¤Î¾ì¹ç¤É¤ó¤Ê¤Ë¥´¥ß¤Î¥Ç¡¼¥¿¤ò´Þ¤à¹Ô¤ò»ý¤Ä¥Õ¥¡¥¤¥ë ¤ò¤â plot ¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤É¤¦¤·¤Æ¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë ʸ»úÎó¤ò»Ä¤·¤Æ¤ª¤¤¿¤¤¤Ê¤é¤Ð¡¢¤½¤Î¥Æ¥¥¹¥È¹Ô¤ÎÂè°ìÎó¤Ë¥³¥á¥ó¥Èʸ»ú (#) ¤òÃÖ¤¯Êý¤¬¤è¤ê°ÂÁ´¤Ç¤·¤ç¤¦¡£
column(0) ¥Ç¡¼¥¿½¸¹çÆâ¤Ç¤Î³ÆÅÀ¤Î½çÈÖ¡£½çÈÖ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢2 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ç¥ê¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£Î¬µ $0 ¤â»ÈÍѲġ£ column(-1) ¤³¤ÎÈÖ¹æ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢1 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ç¥ê¥»¥Ã¥È ¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¹ÔÎ󡢤ޤ¿¤Ï³Ê»Ò¾õ¥Ç¡¼¥¿Æâ¤Î¥Ç¡¼¥¿ ¹Ô¤ËÂбþ¤·¤Þ¤¹¡£ column(-2) Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ò»ý¤Ä¥Õ¥¡¥¤¥ëÆâ¤Î¡¢¸½ºß¤Î¥Ç¡¼¥¿½¸¹ç ¤Î index Èֹ档°Ê²¼»²¾È: `index`¡£
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" ¤«¤Î ¤¤¤º¤ì¤«¤È¤Ê¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤Ë°Ê²¼¤Î¤è¤¦¤Ê 3 ¤Ä¡¢4 ¤Ä¡¢¤¢¤ë¤¤¤Ï 6 ¤Ä¤ÎÎ󤬤¢¤ë¤³¤È¤ò´üÂÔ¤·¤Æ¤¤¤Þ¤¹:
(x, y, ydelta), (x, y, ylow, yhigh), (x, y, xdelta), (x, y, xlow, xhigh), (x, y, xdelta, ydelta), (x, y, xlow, xhigh, ylow, yhigh)
x ºÂɸ¤Ïɬ¤º»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£³Æ¿ôÃͤò½ñ¤¯½ç½ø¤â¾å¤Çµó¤²¤¿Ä̤ê¤Ç ¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤¿¤À¡¢using ½¤¾þ»Ò¤ò»È¤¨¤Ð¤½¤Î½ç½ø¤òÁàºî¤Ç¤¤Þ¤¹¤·¡¢ ·ç¤±¤Æ¤¤¤ëÎó¤ÎÃͤâÊ䤦¤³¤È¤Ï²Äǽ¤Ç¤¹¤¬¡£Î㤨¤Ð¡¢
plot 'file' with errorbars plot 'file' using 1:2:(sqrt($1)) with xerrorbars plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars
ºÇ¸å¤ÎÎã¤Ï¡¢ÁêÂÐŪ¤Ê x ¤Î¸íº¹¤ÈÀäÂÐŪ¤Ê y ¤Î¸íº¹¡¢¤È¤¤¤¦¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ ¤¤¤Ê¤¤ÁȤΥե¡¥¤¥ë¤ËÂФ¹¤ë¤â¤Î¤Ç¤¹¡£using ¥¨¥ó¥È¥ê¤¬ÁêÂÐŪ¤Ê x ¤Î¸íº¹ ¤«¤éÀäÂÐŪ¤Ê x ¤ÎºÇ¾®ÃͤȺÇÂçÃͤòÀ¸À®¤·¤Æ¤¤¤Þ¤¹¡£
y ¤Î¥¨¥é¡¼¥Ð¡¼¤Ï¡¢(x, ylow) ¤«¤é (x, yhigh) ¤Ø¤Î±ôľ¤ÊÀþ¤È¤·¤ÆÉÁ¤«¤ì¤Þ¤¹¡£ ylow ¤È yhigh ¤ÎÂå¤ï¤ê¤Ë ydelta ¤¬»ØÄꤵ¤ì¤¿¤È¤¤Ï¡¢ylow = y - ydelta, yhigh = y + ydelta ¤È¤Ê¤ê¤Þ¤¹¡£¤¢¤ë¹Ô¤Ë¥Ç¡¼¥¿¤¬ 2 ¤Ä¤·¤«¤Ê¤±¤ì¤Ð¡¢ylow ¤È yhight ¤Ï¤È¤â¤Ë y ¤È¤Ê¤ê¤Þ¤¹¡£x ¥¨¥é¡¼¥Ð¡¼¤ÏƱÍͤ˷׻»¤µ¤ì¤¿¿åÊ¿Àþ¤Ç¤¹¡£ ¥Ç¡¼¥¿¤Î³ÆÅÀ¤ò·ë¤ÖÀÞ¤ìÀþ¤ò°ú¤¤¿¤¤¾ì¹ç¤Ï¡¢with errorbars ¤È with lines ¤ò »ØÄꤷ¤Æ¡¢Æ±¤¸¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ò 2 ²ó plot ¤·¤Æ²¼¤µ¤¤ (¤¿¤À¤·¡¢¥¡¼¤ÎÃæ¤Ë 2 ¤Ä¤Î¥¨¥ó¥È¥ê¤òºî¤é¤Ê¤¤¤è¤¦¤Ë¡¢¤½¤Î°ìÊý¤Ë¤Ï notitle ¥ª¥×¥·¥ç¥ó¤ò»È¤¦ ¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç²¼¤µ¤¤)¡£Â¾¤ÎÁªÂò»è¤È¤·¤Æ¡¢errorlines ¥³¥Þ¥ó¥É¤â¤¢¤ê¤Þ¤¹ (°Ê²¼»²¾È: errorlines (72.5))¡£
¥¨¥é¡¼¥Ð¡¼¤Ë¤Ï¡¢¤â¤· set bars ¤ò»È¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¤½¤Î¤½¤ì¤¾¤ì¤Îü¤Ë¿âľ¤Ê Àþʬ¤¬¤Ä¤¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set bars (82.4))¡£
¼«Æ°ÈÏ°Ï»ØÄ꤬͸ú¤Ç¤¢¤ì¤Ð¡¢¤½¤ÎÉÁ²èÈϰϤϥ¨¥é¡¼¥Ð¡¼¤â´Þ¤à¤è¤¦¤ËÄ´À° ¤µ¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È
¹¹¤Ê¤ë¾ðÊó¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: plot using (72.3.8), plot with (72.11), set style (82.66)¡£
¥Ç¥Õ¥©¥ë¥È¤Î¾õÂ֤Ǥϡ¢gnuplot ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤Ë 3 ¸Ä¡¢4 ¸Ä¡¢ 6 ¸Ä¤Î¤¤¤º¤ì¤«¤Î¸Ä¿ô¤Î¥Ç¡¼¥¿¤¬¤¢¤ë¤³¤È¤ò´üÂÔ¤·¡¢¤½¤ì¤¾¤ì°Ê²¼¤Î¤¤¤º¤ì¤«¤ËÂбþ¤·¤Þ¤¹¡£
(x, y, ydelta), (x, y, ylow, yhigh), (x, y, xdelta), (x, y, xlow, xhigh), (x, y, xdelta, ydelta), (x, y, xlow, xhigh, ylow, yhigh)
x ºÂɸ¤Ï»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤·¡¢¥Ç¡¼¥¿¤Î½çÈÖ¤â¾å¤Î·Á¼°¤Ç¤¢¤ëɬÍפ¬¤¢ ¤ê¤Þ¤¹¤¬¡¢using ½¤¾þ»Ò¤Ç¤½¤Î½çÈÖ¤òÁàºî¤·¤¿¤ê¡¢·ç¤±¤Æ¤¤¤ëÎó¤ËÂФ¹¤ëÃÍ ¤òÍ¿¤¨¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨¤Ð
plot 'file' with errorlines plot 'file' using 1:2:(sqrt($1)) with xerrorlines plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines
ºÇ¸å¤ÎÎã¤Ï¡¢ÁêÂÐŪ¤Ê x ¤Î¸íº¹¤ÈÀäÂÐŪ¤Ê y ¤Î¸íº¹¡¢¤È¤¤¤¦¥µ¥Ý¡¼¥È¤µ¤ì¤Æ ¤¤¤Ê¤¤Áȹ礻¤Î¥Ç¡¼¥¿¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë¤â¤Î¤Ç¡¢using ¤ÇÁêÂÐŪ¤Ê¸íº¹¤« ¤éÀäÂÐŪ¤Ê x ¤ÎºÇ¾®ÃͤȺÇÂçÃͤòÀ¸À®¤·¤Æ¤¤¤Þ¤¹¡£
y ¸íº¹Àþ¤Ï (x, ylow) ¤«¤é (x, yhigh) ¤ØÉÁ²è¤µ¤ì¤ë½ÄÀþ¤Ç¤¹¡£ylow, yhigh Âå¤ï¤ê¤Ë ydelta ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢ylow = y - ydelta, yhigh = y + ydelta ¤È°·¤ï¤ì¤Þ¤¹¡£¤¢¤ë¹Ô¤Ë 2 ¤Ä¤Î¥Ç¡¼¥¿¤·¤«¤Ê¤¤¾ì¹ç¡¢yhigh, ylow ¤ÏξÊý¤È ¤â y ¤Ë¤Ê¤ê¤Þ¤¹¡£x ¸íº¹Àþ¤ÏƱÍͤÎÊýË¡¤Ç·×»»¤µ¤ì¤ë¿åÊ¿Àþ¤Ç¤¹¡£
¸íº¹Àþ¤Ë¤Ï¡¢set bars ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤½¤Îξü¤Ç¿âľ¤Ë¸ò¤ï¤ë Àþʬ¤¬ÉÕ¤¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set bars (82.4))¡£
¼«Æ°½Ì¼Ü (autoscaling) ¤¬ ON ¤Î¾ì¹ç¡¢ÉÁ²èÈÏ°Ï¤Ï¸íº¹Àþ¤¬Æþ¤ë¤è¤¦¤ËÄ´À° ¤µ¤ì¤Þ¤¹¡£
¹¹¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plot using (72.3.8), plot with (72.11), set style (82.66)¡£
Îã:
approx(ang) = ang - ang**3 / (3*2) plot sin(x) title "sin(x)", approx(x) title "approximation"
´Ø¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤òÀßÄꤹ¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:set style function (82.66.5)¡£ÁȤ߹þ¤ß´Ø¿ô¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:expressions functions (14.1)¡£¼«Á°¤Ç´Ø¿ô¤òÄêµÁ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:user-defined (14.5)¡£
Îã:
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>}}]
ºÇ½é¤ÎÈÏ°Ï»ØÄê¤ÏÆÈΩÊÑ¿ô¤ÎÈÏ°Ï (xrange ¤Þ¤¿¤Ï¥Ñ¥é¥á¥È¥ê¥Ã¥¯¥â¡¼¥É¤Ç ¤Ï trange) ¤Ç¡¢2 ÈÖÌܤΤâ¤Î¤Ï½¾Â°ÊÑ¿ô¤ÎÈÏ°Ï yrange (¥Ñ¥é¥á¥È¥ê¥Ã¥¯¥â¡¼¥É¤Ç¤Ï xrange) ¤È¤Ê¤ê¤Þ¤¹¡£< dummy-var> ¤Ë¤ÏÆÈΩÊÑ¿ô¤Î¿·¤·¤¤ÊÌ̾¤ò »ØÄꤷ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ¿ô̾¤Ï set dummy ¤ÇÊѹ¹¤Ç¤¤Þ¤¹)¡£< min> , < max> ¤Ë¤ÏÄê¿ô¼°¡¢¤¢¤ë¤¤¤Ï * ¤ò½ñ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¥Ñ¥é¥á¥È¥ê¥Ã¥¯¥â¡¼¥É¤Ç¤Ê¤±¤ì¤Ð¡¢Í¿¤¨¤é¤ì¤ë¤Ù¤ÈÏ°Ï»ØÄê¤Ï xrange, yrange ¤Î½ç¤Ë¤Ê¤ê¤Þ¤¹¡£
¥Ñ¥é¥á¥È¥ê¥Ã¥¯¥â¡¼¥É¤Ç¤Ï¡¢plot ¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¤Ï¤½¤Î½ç½ø¤Ï trange, xrange, yrange ¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼¤Î 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
x2 ¤ÎÈÏ°Ï¤È y2 ¤ÎÈϰϤϤ³¤³¤Ç¤Ï»ØÄê¤Ç¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤ì¤Ë¤Ï set x2range ¤ä set y2range ¤¬»È¤ï¤ì¤Þ¤¹¡£
ÈϰϤÏŬÀڤʥ⡼¥É¤ËÂФ·¤Æ¡¢¾å¤Ë¼¨¤·¤¿½ç½ø¤Ç²ò¼á¤µ¤ì¤Þ¤¹¡£É¬ÍפÊÈÏ°Ï»Ø Ä꤬°ìÅÙÁ´¤Æ»ØÄꤵ¤ì¤ë¤È¡¢ºÆ¤Ó»ØÄꤷľ¤¹¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢É¬Íפʤ¤Éô ʬ¤òÁ´¤¯»ØÄꤷ¤Ê¤¤¤è¤¦¤Ë¤Ï¤Ç¤¤Þ¤»¤ó¡£¤½¤ÎÂå¤ï¤ê¡¢¤½¤³¤Ë¶õ¤ÎÈÏ°Ï»ØÄê [] ¤òÃÖ¤¤Þ¤¹¡£
* ¤Ï¡¢min (ºÇ¾®ÃÍ) ¤ä max (ºÇÂçÃÍ) ¤Ë¼«Æ°ÈÏ°Ï»ØÄê (autoscale) ¤Îµ¡Ç½ ¤ò»È¤¦¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£°Ê²¼¤â»²¾È: set autoscale (82.3)¡£
plot ¤ä splot ¤Î¥³¥Þ¥ó¥É¹Ô¤Ç»ØÄꤵ¤ì¤¿ÈϰϤϤ½¤Î¥°¥é¥Õ¤Ë¤Î¤ß±Æ¶Á¤ò µÚ¤Ü¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤Î¸å¤Î¥°¥é¥Õ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈϰϤòÊѹ¹¤¹¤ë¤Ë¤Ï¡¢ set xrange ¤ä set yrange ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
»þ´Ö¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢ÈϰϤϥ¯¥©¡¼¥È¤Ç°Ï¤ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹ (¥Ç ¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¸½¤ï¤ì¤ë»þ´Ö¥Ç¡¼¥¿¤ÈƱ¤¸·Á¼°¤Î)¡£gnuplot ¤Ï¤½¤ÎÈϰϤò Æɤߤ³¤à¤Î¤Ë»þ´Ö½ñ¼°Ê¸»úÎó (timefmt) ¤ò»ÈÍѤ·¤Þ¤¹¡£¾Ü¤·¤¯¤Ï°Ê²¼»²¾È:set timefmt (82.75)¡£
Îã:
°Ê²¼¤Ï¸½ºß¤ÎÈϰϤò»ÈÍѤ·¤Þ¤¹:
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:] exp(sin(x))
°Ê²¼¤Ï x ¤ÎÈϰϤò»þ·ÏÎó¥Ç¡¼¥¿¤È¤·¤Æ»ØÄꤷ¤Æ¤¤¤Þ¤¹:
set timefmt "%d/%m/%y %H:%M" plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'
½ñ¼°:
plot for [<variable> = <start> : <end> {:<increment>}] plot for [<variable> in "string of words"]
·«¤êÊÖ¤·¤ÎŬÍÑÈÏ°Ï (scope) ¤Ï¡¢¼¡¤Î¥³¥ó¥Þ (,) ¤«¥³¥Þ¥ó¥É¤Î½ª¤ï¤ê¡¢¤Î¤¤ ¤º¤ì¤«Àè¤Ë¸½¤ì¤¿¤È¤³¤í¤Þ¤Ç¤Ç¤¹¡£·«¤êÊÖ¤·¤ÏÆþ¤ì»Ò (nest) ¤Ë¤¹¤ë¤³¤È¤Ï¤Ç ¤¤Þ¤»¤ó¡£
·«¤êÊÖ¤·Ê¸¤¬¥³¥ó¥Þ¤Þ¤Ç¤Ê¤Î¤Ç¡¢°Ê²¼¤Ï°ì¤Ä¤Î¶ÊÀþ sin(3x) ¤òÉÁ²è¤·¤Þ¤¹¡£
plot for [i=1:3] j=i, sin(j*x)
plot for [i=1:3] j=i 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
¤³¤ÎÎã¤Ï¡¢À°¿ô¤Î·«¤êÊÖ¤·ÊÑ¿ô¤Ç¤Ï¤Ê¤¯¡¢Ê¸»úÎó¤Î·«¤êÊÖ¤·ÊÑ¿ô·Á¼°¤òÍѤ¤¤Æ ¤¤¤ë¤³¤È°Ê³°¤ÏÁ°¤ÎÎã¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£
½ñ¼°:
title <text> | notitle [<ignored text>] title columnheader | title columnheader(N)
¤³¤³¤Ç < text> ¤Ï¡¢°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎ󤫡¢Ê¸»úÎó¤Èɾ²Á¤µ¤ì¤ë¼°¤Î¤¤¤º ¤ì¤«¤Ç¤¹¡£°úÍÑÉä¤Ï¥¡¼¤Ë¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£
ÆþÎϥǡ¼¥¿¤ÎÎó¤ÎºÇ½é¤Î¹àÌÜ (¤¹¤Ê¤ï¤ÁÎó¤ÎÀèƬ) ¤òʸ»úÎó¥Õ¥£¡¼¥ë¥É¤È²ò¼á ¤·¡¢¤½¤ì¤ò¥¡¼¥¿¥¤¥È¥ë¤È¤·¤ÆÍøÍѤ¹¤ë¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È:datastrings (11)¡£¤³¤ì¤Ï¡¢set key autotitle columnhead ¤ò»ØÄꤹ¤ì¤Ð¥Ç¥Õ ¥©¥ë¥È¤ÎµóÆ°¤È¤Ê¤ê¤Þ¤¹¡£
¶ÊÀþ¥¿¥¤¥È¥ë¤È¥µ¥ó¥×¥ë¤ÏͽÌó¸ì notitle ¤ò»È¤¦¤³¤È¤Ç¥¡¼¤«¤éºï½ü¤Ç¤ ¤Þ¤¹¡£²¿¤â¤Ê¤¤¥¿¥¤¥È¥ë (title '') ¤Ï notitle ¤ÈƱ¤¸°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£ ¥µ¥ó¥×¥ë¤À¤±¤¬Íߤ·¤¤¤È¤¤Ï¡¢°ì¤Ä°Ê¾å¤Î¶õÇò¤ò¥¿¥¤¥È¥ë¤Î¸å¤í¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤ (tilte ' ')¡£notilte ¤Î¸å¤í¤Ëʸ»úÎó¤ò¤Ä¤±¤¿¾ì¹ç¡¢¤½¤Îʸ»úÎó ¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
key autotitles ¤¬ÀßÄꤵ¤ì¤Æ (¥Ç¥Õ¥©¥ë¥È)¡¢¤«¤Ä title ¤â notitle ¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤Ï plot ¥³¥Þ¥ó¥É¾å¤Ë¤¢¤ë´Ø¿ô̾ ¤«¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë̾¤Ë¤Ê¤ê¤Þ¤¹¡£¥Õ¥¡¥¤¥ë̾¤Î¾ì¹ç¤Ï¡¢»ØÄꤵ¤ì¤ëǤ°Õ¤Î¥Ç¡¼ ¥¿¥Õ¥¡¥¤¥ë½¤¾þ»Ò¤â¤½¤Î¥Ç¥Õ¥©¥ë¥È¥¿¥¤¥È¥ë¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£
°ÌÃ֤䥿¥¤¥È¥ë¤Î°ÌÃÖ·¤¨¤Ê¤É¤Î¥¡¼¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢set key ¤ÇÀ©¸æ¤Ç¤ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set key (82.30)¡£
Îã:
°Ê²¼¤Ï y=x ¤ò¥¿¥¤¥È¥ë 'x' ¤Çɽ¼¨¤·¤Þ¤¹:
plot x
°Ê²¼¤Ï¡¢x ¤Î 2 ¾è¤ò¥¿¥¤¥È¥ë "x^
2" ¤Ç¡¢¥Õ¥¡¥¤¥ë "data.1" ¤ò¥¿¥¤¥È¥ë"measured data" ¤Çɽ¼¨¤·¤Þ¤¹:
plot x**2 title "x^2", 'data.1' t "measured data"
°Ê²¼¤Ï¡¢¶ËºÂɸ¥°¥é¥Õ¤Î¼þ¤ê¤Ë±ß·Á¤Î¶³¦¤ò½ñ¤¡¢¥¿¥¤¥È¥ë¤Ê¤·¤Çɽ¼¨¤·¤Þ¤¹:
set polar; plot my_function(t), 1 notitle
°Ê²¼¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î³ÆÎó¤Ë¥¿¥¤¥È¥ë¤ò´Þ¤àÊ£¿ôÎó¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¤Þ¤¹:
plot for [i=1:4] 'data' using i title columnhead
½ñ¼°:
with <style> { {linestyle | ls <line_style>} | {{linetype | lt <line_type>} {linewidth | lw <line_width>} {linecolor | lc <colorspec>} {pointtype | pt <point_type>} {pointsize | ps <point_size>} {fill | fs <fillstyle>} {nohidden3d} {nocontours} {nosurface} {palette}} }
¤³¤³¤Ç¡¢< style> ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«:
lines dots steps errorbars xerrorbar xyerrorlines points impulses fsteps errorlines xerrorlines yerrorbars linespoints labels histeps financebars xyerrorbars yerrorlines vectors
boxes candlesticks image circles boxerrorbars filledcurves rgbimage ellipses boxxyerrorbars histograms rgbalpha pm3d boxplot
ºÇ½é¤Î¥°¥ë¡¼¥×¤Î¥¹¥¿¥¤¥ë¤Ï¡¢Àþ¡¢ÅÀ¡¢Ê¸»ú¤Î°À¤ò»ý¤Á¡¢Âè 2 ¤Î¥°¥ë¡¼¥× ¤Î¥¹¥¿¥¤¥ë¤Ï¡¢¤µ¤é¤ËÅɤêÄÙ¤·Â°À¤â»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (82.66.4)¡£ ¤µ¤é¤Ë¥µ¥Ö¥¹¥¿¥¤¥ë¤ò»ý¤Ä¥¹¥¿¥¤¥ë¤â¤¢¤ê¤Þ¤¹¡£¸Ä¡¹¤Î¥¹¥¿¥¤¥ë¤Î¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï¡¢°Ê²¼»²¾È: plotting styles (II)¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï¡¢set style function ¤È set style data ¤ÇÁª Âò¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤ì¤¾¤ì¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢»È¤¦¤³¤È¤¬¤Ç¤¤ë·¿¤Î ºÇÂç¿ô¤Ë㤹¤ë¤Þ¤Ç°Û¤Ê¤ëÀþ¼ï¡¢ÅÀ¼ï¤ò»È¤¤¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎüËöÍѥɥ饤¥Ð¤Ï ºÇÄã 6 ¤Ä¤Î°Û¤Ê¤ëÅÀ¼ï¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤â¤·¤¿¤¯¤µ¤óÍ׵ᤵ¤ì¤¿¾ì¹ç¡¢ ¤½¤ì¤é¤ò½ç¤ËºÆÍøÍѤ·¤Æ¤¤¤¤Þ¤¹¡£»ÈÍÑÃæ¤Î½ÐÎÏ·Á¼°¤Ç¤ÎÀþ¼ï¡¢ÅÀ¼ï¤Î½¸¹çÁ´ ÂΤò¸«¤¿¤±¤ì¤Ð¡¢test ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
°ì¤Ä¤ÎÉÁ²è¤ÇÀþ¼ï¤äÅÀ¼ï¤òÁª¤Ó¤¿¤¤¤Ê¤é¤Ð¡¢< line_type> ¤ä < point_type> ¤ò »ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é¤ÎÃͤϡ¢¤½¤ÎÉÁ²è¤Ç»È¤ï¤ì¤ëÀþ¼ï¤äÅÀ¼ï¤ò»ØÄꤹ¤ë Àµ¤ÎÀ°Äê¿ô (¤Þ¤¿¤Ï¿ô¼°) ¤Ç¤¹¡£»ÈÍѤ¹¤ëüËö¤Ç»È¤¨¤ëÀþ¼ï¡¢ÅÀ¼ï¤òɽ¼¨¤¹¤ë ¤Ë¤Ï test ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
ÉÁ²è¤ÎÀþ¤ÎÉý¤äÅÀ¤ÎÂ礤µ¤Ï < line_width> ¤ä < point_size> ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ ¤³¤ì¤é¤Ï¤½¤Î³Æ¡¹¤ÎüËö¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÂФ¹¤ëÁêÂÐŪ¤ÊÃͤȤ·¤Æ»ØÄꤷ¤Þ ¤¹¡£ÅÀ¤ÎÂ礤µ¤ÏÁ´ÂΤËÄÌÍѤ¹¤ë¤è¤¦¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:set pointsize (82.56)¡£¤·¤«¤·¡¢¤³¤³¤Ç¥»¥Ã¥È¤µ¤ì¤ë < point_size> ¤È¡¢ set pointsize ¤Ç¥»¥Ã¥È¤µ¤ì¤ëÂ礤µ¤Ï¡¢¤¤¤º¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î¥Ý¥¤¥ó¥È¥µ ¥¤¥º¤Ë³Ý¤±¤é¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤¹¤Ê¤ï¤Á¡¢¤½¤ì¤é¤Î¸ú²Ì¤ÏÎßÀÑ¤Ï ¤·¤Þ¤»¤ó¡£Î㤨¤Ð¡¢set pointsize 2; plot x w p ps 3 ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î ¥µ¥¤¥º¤Î 3 ÇܤǤ¢¤Ã¤Æ¡¢6 ÇܤǤϤ¢¤ê¤Þ¤»¤ó¡£
¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î°ìÉôʬ¡¢¤¢¤ë¤¤¤Ï³Æ plot ¤Ë¤ª¤¤¤Æ pointsize variable ¤È¤¤¤¦»ØÄê¤â²Äǽ¤Ç¤¹¡£¤³¤Î¾ì¹ç¡¢ÆþÎϤˤÏÄɲäΠ1 Îó¤¬Í׵ᤵ¤ì¤Þ¤¹¡£Îã ¤¨¤Ð 2D ÉÁ²è¤Ç¤Ï 3 Îó¡¢3D ÉÁ²è¤Ç¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬Íפˤʤê¤Þ¤¹¡£¸Ä¡¹ ¤ÎÅÀ¤Î¥µ¥¤¥º¤Ï¡¢Á´ÂΤòÄ̤·¤Æ¤Î pointsize ¤Ë¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎÏ ¤Ë¤è¤ëÃͤò¤«¤±¤¿¤â¤Î¤È¤·¤Æ·èÄꤵ¤ì¤Þ¤¹¡£
set style line ¤ò»È¤Ã¤ÆÀþ¼ï/ÀþÉý¡¢ÅÀ¼ï/ÅÀÉý¤ÎÁȤòÄêµÁ¤¹¤ì¤Ð¡¢¤½¤Î¥¹ ¥¿¥¤¥ë¤ÎÈÖ¹æ¤ò < line_style> ¤Ë¥»¥Ã¥È¤¹¤ë¤³¤È¤Ç¤½¤ì¤é¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£
gnuplot ¤¬ pm3d ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢ splots ¤Ë¤ª¤¤¤Æ lines, points, dots ¤Î¿§¤ò³ê¤é¤«¤ËÊѲ½¤µ¤»¤ë¤¿¤á¤ÎÆà Ê̤ʥ¡¼¥ï¡¼¥É palette ¤¬»È¤¨¤Þ¤¹¡£¤½¤Î¿§¤Ï¡¢¥³¥Þ¥ó¥É set palette ¤Ç¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤¿³ê¤é¤«¤ËÊѲ½¤¹¤ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤«¤éÁªÂò¤·¤Þ¤¹¡£¿§ ¤ÎÃͤϡ¢ÅÀ¤Î z ºÂɸ¤ÎÃͤ«¡¢¤Þ¤¿¤Ï using ¤Ç 4 ÈÖÌܤΥѥé¥á¡¼¥¿¤È¤·¤Æ »ØÄꤵ¤ì¤ë¿§ºÂɸ¤ËÂбþ¤·¤Þ¤¹¡£2 ¼¡¸µ¡¢3 ¼¡¸µ¤ÎÉÁ²è (plot ¤È splot ¥³¥Þ¥ó¥É) ¤ÎξÊý¤Ç¡¢¥Ñ¥ì¥Ã¥È¿§¤ò¾®¿ôÃͤ«¤Þ¤¿¤Ï¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ÎÈϰϤØÂÐ ±þ¤Å¤±¤é¤ì¤¿ÃͤΤ¤¤º¤ì¤«¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ñ¥ì¥Ã¥È¿§¤ÎÃͤϡ¢ using »ØÄê¤ÇÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿ÆþÎÏÎ󤫤éÆɤ߹þ¤à¤³¤È¤â²Äǽ¤Ç¤¹¡£ °Ê²¼»²¾È: colors (17), set palette (82.54), linetype (82.32)¡£
¥¡¼¥ï¡¼¥É 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 [ ] [-2:5] 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 y1=10
°Ê²¼¤Ï¡¢x*x ¤Î¶ÊÀþ¤È¿§¤ÎÈ¢¤òÉÁ²è¤·¤Þ¤¹:
plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y1=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 <¼°> {, <¼°>, ...}
°Ê²¼»²¾È: expressions (14)¡£½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ï set print ¤ÇÀßÄê¤Ç¤¤Þ¤¹¡£
¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òʸ»úÎóÊÑ¿ô¤ËÊݸ¤·¤¿¤ê¡¢Ê¸»ú¼°¤ÎÃæ¤Ç»È¤¤¤¿¤¤¾ì¹ç ¤Ï¡¢ÊÑ¿ô GPVAL_PWD ¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È:show variables all (82.80)¡£
raise {plot_window_nb}
¥³¥Þ¥ó¥É raise (lower ¤ÎÈ¿ÂÐ) ¤Ï¡¢pm, win, wxt, x11 Åù¤Î gnuplot ¤ÎÂÐÏ÷¿½ÐÎÏ·Á¼°¤Î¼Â¹ÔÃæ¤Ë¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¾å (Á°ÌÌ) ¤Ë¾å¤²¤Þ ¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¡¢¥Ç¥¹¥¯¥È¥Ã¥×¾å¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Î z Êý¸þ¤Î ¥¦¥£¥ó¥É¥¦¤Î½Å¤Ê¤ê¤ÎÁ° (¾å) ¤ËÃÖ¤¤Þ¤¹¡£
x11 ¤ä wxt ¤Î¤è¤¦¤ËÊ£¿ô¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï¤³¤Î¥³¥Þ¥ó¥É¤Ï¤½¤ì¤é¤ÎÊ£¿ô¤Î¥¦¥£¥ó¥É¥¦¤ò¹ß½ç¤Ë¾å¤²¡¢ºÇ½é¤Ë ºî¤é¤ì¤¿¥¦¥£¥ó¥É¥¦¤ò°ìÈÖ²¼¤Ë¡¢ºÇ¸å¤Ëºî¤é¤ì¤¿¥¦¥£¥ó¥É¥¦¤ò°ìÈÖ¾å¤ËÊÂ¤Ù¤Þ ¤¹¡£¥ª¥×¥·¥ç¥ó°ú¿ô¤ÎÉÁ²èÈֹ椬Ϳ¤¨¤é¤ì¤¿¾ì¹ç¡¢¤½¤ì¤ËÂбþ¤¹¤ëÉÁ²è¥¦¥£¥ó ¥É¥¦¤¬Â¸ºß¤¹¤ì¤Ð¤½¤ì¤Î¤ß¤¬¾å¤²¤é¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó°ú¿ô¤Ï¡¢Ã±°ì¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Î½ÐÎÏ·Á¼°¡¢¤¹¤Ê¤ï¤Á pm ¤È win ¤Ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
¥¦¥£¥ó¥É¥¦¤¬ X11 ¤ÇÁ°Ì̤˽Фʤ¤¾ì¹ç¡¢¤â¤·¤«¤¹¤ë¤ÈÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢°Û ¤Ê¤ë X11 ¥»¥Ã¥·¥ç¥ó¤ÇÆ°ºî¤·¤Æ¤¤¤ë (Î㤨¤Ð telnet ¤ä ssh ¥»¥Ã¥·¥ç¥ó¤Ê¤É ¤Ë¤è¤Ã¤Æ) ¤«¡¢¤Þ¤¿¤ÏÁ°Ì̤˽Ф¹¤³¤È¤¬¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤ÎÀßÄê¤Ë¤è¤Ã¤Æ Ëɳ²¤µ¤ì¤Æ¤¤¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
¥Þ¥¦¥¹Áàºî¡¢Æä˥º¡¼¥à¥¤¥ó¤È¥º¡¼¥à¥¢¥¦¥È¤Ç¤Ï¡¢Å¬Àڤʾì¹ç¤Ï 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
replot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë°ú¿ô¤ÏºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot ¤Þ¤¿¤Ï splot ¥³¥Þ¥ó¥É¤Î°ú¿ô¤Ë (°ÅÌۤΠ',' ¤È¶¦¤Ë) Äɲ䵤졢¤½¤ì¤«¤éºÆ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ replot ¤Ï¡¢ÈÏ°Ï (range) ¤ò½ü¤¤¤Æ¤Ï¡¢plot ¤ä splot ¤ÈƱ¤¸°ú¿ô¤ò ¤È¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ä¾Á°¤Î¥³¥Þ¥ó¥É¤¬ splot ¤Ç¤Ï¤Ê¤¯ plot ¤Î¾ì¹ç¤Ï¡¢´Ø¿ô¤ò¤â¤¦°ì¤Ä¤Î¼´¹ï¤Ç¥×¥í¥Ã¥È¤¹¤ë¤Î¤Ë replot ¤ò»È¤¦¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£
Ãí°Õ:
plot '-' ; ... ; replot
¤È¤¤¤¦»È¤¤Êý¤Ï¿ä¾©¤µ¤ì¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¤³¤ì¤¬¤¢¤Ê¤¿¤ËºÆ¤ÓƱ¤¸¥Ç¡¼¥¿¤¹¤Ù ¤Æ¤ÎÆþÎϤòÍ׵᤹¤ë¤³¤È¤Ë¤Ê¤ë¤«¤é¤Ç¤¹¡£¤¿¤¤¤Æ¤¤¤Î¾ì¹ç¡¢Âå¤ï¤ê¤Ë¥³¥Þ¥ó¥É refresh ¤ò»È¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ°¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤ò»È¤Ã¤Æ¥°¥é¥Õ¤òºÆÉÁ²è¤·¤Þ¤¹¡£
replot ¥³¥Þ¥ó¥É¤Ï multiplot ¥â¡¼¥É¤Ç¤ÏƯ¤¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¤½¤ì¤¬ ²èÌÌÁ´ÂΤˤǤϤʤ¯Ä¾Á°¤Î¥×¥í¥Ã¥È¤Î¤ß¤òºÆ¼Â¹Ô¤¹¤ë¤â¤Î¤À¤«¤é¤Ç¤¹¡£
ºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot (splot) ¥³¥Þ¥ó¥É¤ÎÆâÍƤò½¤Àµ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï °Ê²¼¤â»²¾È: command-line-editing (8)¡£
ľÁ°¤ÎÉÁ²è¥³¥Þ¥ó¥É¤ÎÁ´ÂΤòɽ¼¨¤µ¤»¤ë¤³¤È¤ä¡¢¤½¤ì¤ò history ¤ÎÃæ¤Ë ¥³¥Ô¡¼¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: show plot (82.52)¡£
Îã:
¥Õ¥¡¥¤¥ë "looper" ¤¬¼¡¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤Ç
a=a+1 plot sin(x*a) pause -1 if(a<5) reread
a=0 load 'looper'
¥Õ¥¡¥¤¥ë "data" ¤¬¡¢³Æ¹Ô¤Ë¡¢0 ¤«¤é 10 ¤Þ¤Ç¤ÎÈÏ°Ï (yrange) ¤Î 6 ¤Ä¤Î¥Ç
¡¼¥¿ ¤ò»ý¤Á¡¢ºÇ½é¤¬ x ºÂɸ¤Ç¡¢¤½¤Î¾¤Ï 5 ¤Ä¤Î°Û¤Ê¤ë´Ø¿ô¤Î¡¢¤½¤Î x ¤Ç¤Î
ÃͤǤ¢¤ë¤È¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢¥Õ¥¡¥¤¥ë "plotter" ¤¬
c_p = c_p+1 plot "$0" using 1:c_p with lines linetype c_p if(c_p < n_p) reread
n_p=6 c_p=1 unset key set yrange [0:10] set multiplot call 'plotter' 'data' unset multiplot
°Ê²¼¤Î¤â¤Î¤Ï¡¢reset ¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó¡£
`set term` `set output` `set loadpath` `set fontpath` `set linetype` `set encoding` `set decimalsign` `set locale` `set psdir`
reset errors ¤Ï¡¢¥¨¥é¡¼¾õÂÖÊÑ¿ô GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Î¤ß¤ò¥¯ ¥ê¥¢¤·¤Þ¤¹¡£
reset bind ¤Ï¡¢¥¡¼ÄêµÁ¤ò¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÉüµ¢¤·¤Þ¤¹¡£
½ñ¼°:
save {<¥ª¥×¥·¥ç¥ó>} '<¥Õ¥¡¥¤¥ë̾>'
¤³¤³¤Ç¡¢< ¥ª¥×¥·¥ç¥ó> ¤Ï¡¢functions, variables, terminal, set ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¤É¤ì¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢gnuplot ¤Ï¡¢¥æ¡¼¥¶Äê µÁ´Ø¿ô¡¢ÊÑ¿ô¡¢set ¤ÇÀßÄꤹ¤ë¥ª¥×¥·¥ç¥ó¡¢ºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot (¤Þ¤¿¤Ï splot) ¥³¥Þ¥ó¥É¤ÎÁ´¤Æ¤òÊݸ¤·¤Þ¤¹¡£
save ¤Ï¡¢¥Æ¥¥¹¥È·Á¼°¤Ç½ÐÎϤ·¤Þ¤¹¡£¤Þ¤¿¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤Ï load ¥³¥Þ ¥ó¥É¤ÇÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£set ¥ª¥×¥·¥ç¥óÉÕ¤¡¢¤Þ¤¿¤Ï²¿¤â¥ª¥×¥·¥ç ¥ó¤ò¤Ä¤±¤º¤Ë save ¤ò¼Â¹Ô¤·¤¿¾ì¹ç¡¢terminal ¤ÎÁªÂò¤È output ¤Î¥Õ ¥¡¥¤¥ë̾¤Ï¥³¥á¥ó¥Èµ¹æ¤Ä¤¤Ç½ñ¤½Ð¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¤½¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò ¾¤Î´Ä¶¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿ gnuplot ¾å¤ÇÆ°¤«¤¹¾ì¹ç¤Ë¡¢½¤Àµ¤Ê¤·¤Ë»È¤¨ ¤ë¤è¤¦¤Ë¤¹¤ë¡¢¤¢¤ë¤¤¤Ï¤¦¤Ã¤«¤ê¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤¤·¤Æ¤·¤Þ¤Ã¤¿¤ê¤¹¤ë´í¸±À ¤òÈò¤±¤ë¡¢¤È¤¤¤Ã¤¿°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£
save terminal ¤Ï¡¢terminal ¤Î¾õÂÖ¤ò¡¢¥³¥á¥ó¥Èµ¹æ¤ò¤Ä¤±¤º¤Ë½ñ¤½Ð ¤·¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢¤Á¤ç¤Ã¤È¤Î´Ö¤À¤± terminal ¤ÎÀßÄê¤òÆþ¤ìÂؤ¨¡¢¤½¤Î ¸åÊݸ¤·¤Æ¤ª¤¤¤¿ terminal ¤Î¾õÂÖ¤òÆɤ߹þ¤à¤³¤È¤Ç°ÊÁ°¤Î terminal ¤ÎÀßÄê¤ËÌ᤹¾ì¹ç¤Ê¤É¤ËÌòΩ¤Á¤Þ¤¹¡£¤¿¤À¡¢Ã±°ì¤Î gnuplot ¥»¥Ã¥·¥ç¥ó¤Ç¤Ï¡¢¸½ ºß¤Î terminal ¤òÊݸ/Éü¸µ¤¹¤ë¾¤ÎÊýË¡¤Ç¤¢¤ë¥³¥Þ¥ó¥É set term push ¤È set term pop ¤ò»È¤¦Êý¤¬¤à¤·¤í¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£°Ê²¼»²¾È:set term (82.69)¡£
¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ë°Ï¤ï¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ë¤è¤ê save ¥³¥Þ¥ó¥É¤Ëɸ½à½ÐÎϤ˽ÐÎϤµ¤»¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à (Unix ¤Ê¤É) ¤Ç¤Ï¡¢ save ¤Î½ÐÎϤò¥Ñ¥¤¥×·Ðͳ¤Ç¾¤Î³°Éô¥×¥í¥°¥é¥à¤ËÅϤ¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î ¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¥³¥Þ¥ó¥É̾¤ÎÀèƬ¤Ë '| ' ¤ò¤Ä¤±¤¿¤â¤Î¤ò»È¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤È¥Ñ¥¤¥×¤òÄ̤·¤ÆÄÌ¿®¤¹¤ë¥×¥í¥°¥é¥à¤Ë¡¢gnuplot ¤ÎÆâ ÉôÀßÄê¤Ë´Ø¤¹¤ë¼óÈø°ì´Ó¤·¤¿¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (6)¡£
Îã:
save 'work.gnu' save functions 'func.dat' save var 'var.dat' save set 'options.dat' save term 'myterm.gnu' save '-' save '|grep title >t.gp'
show ¥³¥Þ¥ó¥É¤Ï¤½¤ì¤é¤ÎÀßÄêÃͤòɽ¼¨¤·¤Þ¤¹¡£show all ¤Ç¤½¤ì¤éÁ´¤Æ ¤òɽ¼¨¤·¤Þ¤¹¡£
set ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤µ¤ì¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë unset ¥³¥Þ¥ó ¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÌ᤹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£°Ê²¼¤â»²¾È:reset (80)¡£¤³¤ì¤ÏÁ´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌᤷ¤Þ¤¹¡£
¤â¤·ÊÑ¿ô¤¬Æü»þ¤Î¥Ç¡¼¥¿¤ò´Þ¤à¤Ê¤é¤Ð¡¢show ¤Ï¡¢set timefmt ¤Ë¤è¤Ã¤Æ ¸½ºßÀßÄꤵ¤ì¤Æ¤¤¤ë½ñ¼°¤Ë½¾¤Ã¤Æɽ¼¨¤·¤Þ¤¹¡£¤½¤ì¤ÏÊÑ¿ô¤¬ºÇ½é¤ËÀßÄꤵ¤ì¤Æ ¤¤¤Æ¤½¤Î½ñ¼°¤¬¸ú²Ì¤ò»ý¤¿¤Ê¤«¤Ã¤¿¤È¤·¤Æ¤â¤Ç¤¹¡£ set ¤È unset ¥³¥Þ¥ó¥É¤Ë¤Ï·«¤êÊÖ¤·Àá¤âÍøÍѤǤ¤Þ¤¹¡£°Ê²¼»²¾È:iteration (68)¡£
½ñ¼°:
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|rto <position>} { {arrowstyle | as <arrow_style>} | { {nohead | head | backhead | heads} {size <length>,<angle>{,<backangle>}} {filled | empty | nofilled} {front | back} { {linestyle | ls <line_style>} | {linetype | lt <line_type>} {linewidth | lw <line_width} } } }
unset arrow {<tag>} show arrow {<tag>}
¥¿¥° < tag> ¤Ï³ÆÌð°õ¤ò¼±Ê̤¹¤ëÀ°¿ô¤Ç¤¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤Î»þ ÅÀ¤Ç̤»ÈÍѤκǤ⾮¤µ¤¤¿ô¤¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¥¿¥°¤ò»È¤¦¤³¤È¤Ç¡¢ ÆÃÄê¤ÎÌð°õ¤òÊѹ¹¤·¤¿¤ê¡¢ºï½ü¤·¤¿¤ê¤Ç¤¤Þ¤¹¡£´û¤Ë¸ºß¤¹¤ëÌð°õ¤Î°À¤òÊÑ ¹¹¤¹¤ë¾ì¹ç¤Ï¡¢¥¿¥°¤òÌÀ¼¨¤·¤¿ set arrow ¥³¥Þ¥ó¥É¤ÇÊѹ¹²Õ½ê¤ò»ØÄꤷ¤Æ ¤¯¤À¤µ¤¤¡£
< position> ¤Ï x,y ¤¢¤ë¤¤¤Ï x,y,z ¤Ç»ØÄꤷ¤Þ¤¹¡£¤½¤·¤Æ¤½¤ÎÁ°¤ËºÂɸ·Ï¤ò ÁªÂò¤¹¤ë¤¿¤á¤Ë first, second, graph, screen, character ¤òÃÖ ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ºÂɸ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 0 ¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£ Ìð°õ¤ÎüÅÀ¤Ï¡¢5 ¤Ä¤ÎºÂɸ·Ï¡¢¤¹¤Ê¤ï¤Á first ¤« second ¤Î¼´¡¢¤¢¤ë¤¤ ¤Ï graph, screen, character ¤Î¤¦¤Á¤Î 1 ¤Ä¤òÁªÂò¤·¤Æ»ØÄê¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£"from" ¤Î¾ì½ê¤ÎºÂɸ·Ï»ØÄê»Ò¤Ï¡¢"to" ¤Î¾ì½ê¤Ë±Æ¶Á¤òµÚ¤Ü¤¹¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¥°¥é¥Õ¤ÎÏȤò¤Ï¤ß½Ð¤ëÌð°õ¤ò½ñ¤¯¤³ ¤È¤â¤Ç¤¤Þ¤¹¤¬¡¢½ÐÎÏüËö¤Ë¤è¤Ã¤Æ¤Ï¥¨¥é¡¼¤òÀ¸¤º¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£½ªÅÀ¤¬ "to" ¤ÎÂå¤ï¤ê¤Ë "rto" ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢»ÏÅÀ¤«¤é¤ÎÁêÂÐŪ¤Ê°ÌÃÖ¤ËÉÁ ¤«¤ì¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢Àþ·Á¼´ (ÈóÂпô¼´)¡¢¤ª¤è¤Ó graph, screen ºÂɸ¤Ë ÂФ·¤Æ¤Ï¡¢»ÏÅÀ¤È½ªÅÀ¤Îµ÷Î¥¤¬Í¿¤¨¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤËÂбþ¤·¤Þ¤¹¡£°ìÊý¡¢ÂÐ ¿ô¼´¤ËÂФ·¤Æ¤Ï¡¢Í¿¤¨¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤϡ¢»ÏÅÀ¤«¤é½ªÅÀ¤Ø¤ÎÇÜ¿ô¤ËÂбþ¤·¤Þ ¤¹¡£¤è¤Ã¤Æ¡¢Âпô¼´¤Î¾ì¹ç¡¢ÁêÂÐŪ¤ÊÃͤȤ·¤Æ 0 ¤äÉé¤ÎÃͤòÍ¿¤¨¤ë¤³¤È¤Ïµö ¤µ¤ì¤Þ¤»¤ó¡£
nohead ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÌðÀè¤Î¤Ê¤¤Ì𡢤¹¤Ê¤ï¤ÁÀþʬ¤ò½ñ¤¯¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¾å¤ËÀþʬ¤òÉÁ¤¯Ê̤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ¤Ä¤ÎÌð¤Ï 1 ¤Ä¤ÎÌðÀè¤ò¤½¤Î½ªÃ¼¤Ë»ý¤Ã¤Æ¤¤¤Þ¤¹¡£backhead ¤Ï»ÏÅÀ¤ËÌðÀè¤ò ÉÁ¤¡¢heads ¤ÏÀþʬ¤Îξü¤ËÌðÀè¤òÉÁ¤¤Þ¤¹¡£Á´¤Æ¤Î½ÐÎÏ·Á¼°¤¬Î¾Ã¼¤ÎÌðÀè ¤ÎÉÁ²è¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
ÌðÀè¤ÎÂ礤µ¤Ï size < length> ,< angle> ¤Þ¤¿¤Ï size < length> ,< angle> ,< backangle> ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£< length> ¤ÏÌðÀè ¤Î³Æ»Þ¤ÎŤµ¤Ç¡¢< angle> ¤ÏÌðÀè¤Î»Þ¤ÈÌð¼´¤¬¤Ê¤¹³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤Ç¤¹¡£ < length> ¤Îñ°Ì¤Ï x ¼´¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤½¤ì¤Ï < length> ¤ÎÁ°¤Ë first, second, graph, screen, character ¤ò¤Ä¤±¤ë¤³¤È¤ÇÊѹ¹¤Ç ¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£< backangle> ¤Ï¡¢filled ¤« ¤Þ¤¿¤Ï empty ¤¬¤È¤â¤Ë»È¤ï¤ì¤¿¾ì¹ç¤Î¤ß¸úÎϤò»ý¤Á¡¢¤½¤Î¾ì¹ç¡¢ < backangle> ¤ÏÌðÀè¤Î¸å¤í¤ÎÉôʬ¤ÎÌ𼴤ȤÎÀÚ¤ê³Ñ (< angle> ¤ÈƱ¤¸Êý¸þ; ñ°Ì¤ÏÅÙ) ¤Ë¤Ê¤ê¤Þ¤¹¡£½ÐÎÏ·Á¼° fig ¤Ï¡¢À©¸Â¤µ¤ì¤¿ÀÚ¤ê³Ñ´Ø¿ô¤ò»ý¤Ã¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï 3 ¤Ä¤Î°Û¤Ê¤ë·Á¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï 2 ¤Ä¤ÎïçÃͤǷèÄê ¤·¤Þ¤¹: 70 ÅṲ̀Ëþ¤Î¾ì¹ç¡¢ÌðÀè¤Ï¤Ø¤³¤ó¤ÀÀÚ¤ê³Ñ¤ò»ý¤Á¡¢110 ÅÙ¤òĶ¤¨¤ë¾ì ¹ç¡¢¸å¤í¤ÎÉôʬ¤ËÀí¤Ã¤¿³Ñ¤ò»ý¤Á¡¢¤½¤Î´Ö¤Î³Ñ¤Ç¤Ï¡¢ÌðÀè¤Î¸å¤í¤ÏľÀþ¤Ë¤Ê¤ê ¤Þ¤¹¡£
filled ¤ò»ØÄꤹ¤ë¤È¡¢Åɤê¤Ä¤Ö¤µ¤ì¤¿ÌðÀè¤òºî¤ê¤Þ¤¹ (heads ¤¬»È¤ï¤ì ¤Æ¤¤¤ë¾ì¹ç)¡£Åɤê¤Ä¤Ö¤·¤Ï¡¢Â¿³Ñ·Á¤ÎÅɤê¤Ä¤Ö¤·¤¬¹Ô¤¨¤ë¤è¤¦¤Ê½ÐÎÏ·Á¼°¤Ç ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Æ¡¢¤½¤Î¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: pm3d (82.53)¡£Â¾¤Î½ÐÎÏ·Á ¼°¤Ç¤ÏÌðÀè¤ÏÊĤ¸¤é¤ì¤Þ¤¹¤¬Åɤê¤Ä¤Ö¤µ¤ì¤Þ¤»¤ó¡£¤½¤ì¤ÈƱ¤¸¸ú²Ì (ÊĤ¸¤é¤ë ¤¬Åɤé¤ì¤Ê¤¤) ¤Ï¡¢empty ¤ò»ØÄꤷ¤Æ¤âÆÀ¤é¤ì¤Þ¤¹¡£¤Þ¤¿¡¢metafont, metapost, latex, tgif ¤Î¤è¤¦¤Ë¡¢Ìð¤ò¤½¤ì¤é¼«¿È¤ÎÆȼ«¤Î¥ë¡¼¥Á¥ó¤Ç ÉÁ¤¯¤è¤¦¤Ê½ÐÎÏ·Á¼°¤Ç¤Ï¡¢ÌðÀè¤ÎÅɤê¤Ä¤Ö¤·¤äÌðÀè¤ÎÏÈÀþÉÁ¤¤Ï¤â¤Á¤í¤ó¥µ¥Ý ¡¼¥È¤µ¤ì¤Þ¤»¤ó¡£
Àþ¼ï¤Ï¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤«¤éÁª¤Ö¤³¤È¤â¤Ç¤¤Þ¤¹¤· (°Ê²¼»²¾È: set style line (82.66.7))¡¢ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë < line_type> ¤ÎÃÍ (¥Ç¥Õ¥© ¥ë¥È¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤ÎÈÖ¹æ) ¤½¤·¤Æ < linewidth> (¥Ç¥Õ¥©¥ë¥È¤ÎÉý ¤ÎÇÜ¿ô) ¤ò»È¤Ã¤Æ¤³¤³¤ÇÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¤·¤«¤·¡¢¥æ¡¼¥¶¡¼ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¡¢¤½¤Î°À (Àþ¼ï¡¢ Éý) ¤Ï¡¢Ã±¤Ë¾¤Î set arrow ¥³¥Þ¥ó¥É¤ÇŬÅö¤ÊÈÖ¹æ¤ä lt, lw ¤Ê¤É¤ò »ØÄꤷ¤Æ¤â¡¢Êѹ¹¤Ï¤Ç¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢Ìð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»Ø Äꤵ¤ì¤¿¾ì¹ç (¥Ç¥Õ¥©¥ë¥È) ¤ÏÌð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤ÇÌ𤬸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
¸¶ÅÀ¤«¤é (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
2 ÈÖ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:
unset arrow 2
Á´¤Æ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:
unset arrow
Á´¤Æ¤ÎÌð°õ¤Î¾ðÊó¤ò (¥¿¥°¤Î½ç¤Ë) ¸«¤ë¤Ë¤Ï:
show arrow
½ñ¼°:
set autoscale {<axes>{|min|max|fixmin|fixmax|fix} | fix | keepfix} unset autoscale {<axes>} show autoscale
¤³¤³¤Ç¡¢< axes> (¼´) ¤Ï x, y, z, cb, x2, y2, xy ¤Î¤¤¤º¤ì ¤«¤Ç¤¹¡£min ¤Þ¤¿¤Ï max ¤ò¼´¤ËÄɲûØÄꤹ¤ë¤È (xy ¤Ç¤Ï»È¤¨¤Þ¤»¤ó¤¬) ¤½¤ì¤Ï gnuplot ¤Ë¤½¤Î¼´¤ÎºÇ¾®ÃÍ¡¢¤Þ¤¿¤ÏºÇÂçÃͤΤߤò¼«Æ°½Ì¼Ü¤µ¤»¤ë¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¼´¤â²¿¤â»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤ÏÁ´¤Æ¤Î¼´¤¬ÂоݤȤʤê¤Þ¤¹¡£
fixmin ¤ä fixmax ¤ä fix ¤òÄɲûØÄꤹ¤ë¤È¡¢Åù´Ö³Ö¤ÎÌÜÀ¹¤ê¤Î¼«Æ°½Ì ¼Ü»þ¤Î¡¢¼¡¤ÎÌÜÀ¹¤ê°ÌÃ֤ޤǤÎÈϰϤμ«Æ°³ÈÂç¤ò gnuplot ¤Ë¹Ô¤ï¤»¤Ê¤¤¤è¤¦ ¤Ë¤·¤Þ¤¹¡£set autoscale fix ¤Ï¤³¤ì¤òÁ´¤Æ¤Î¼´¤ËÂФ·¤ÆÀßÄꤷ¤Þ¤¹¡£¥³¥Þ ¥ó¥É set autoscale keepfix ¤Ï¡¢Ä¾Á°¤Î fix ¤ÎÀßÄê¤ò°Ý»ý¤·¤¿¤Þ¤ÞÁ´¤Æ ¤Î¼´¤ò¼«Æ°½Ì¼Ü¤Ë¤·¤Þ¤¹¡£
¼«Æ°½Ì¼Üµ¡Ç½¤ò»È¤¦¤È¤¤Ï¡¢ÉÁ²èÈϰϤϼ«Æ°Åª¤Ë³ä¤ê½Ð¤µ¤ì¡¢½¾Â°ÊÑ¿ô¼´(plot ¤Î¤È¤¤Ï y ¼´¡¢splot ¤Î¤È¤¤Ï z ¼´) ¤Ï¡¢´Ø¿ô¤ä¥Ç¡¼¥¿¤ÎÃͰ褬 ¼ý¤Þ¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
½¾Â°ÊÑ¿ô¼´ (y ¤Þ¤¿¤Ï z) ¤Î¼«Æ°½Ì¼Üµ¡Ç½¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¸½ºß¤Î y ¤ä z ¤ÎÉÁ²èÈϰϤ¬¤½¤Î¤Þ¤Þ»È¤ï¤ì¤Þ¤¹¡£
ÆÈΩÊÑ¿ô¼´ (plot ¤Î¤È¤¤Ï x ¼´¡¢splot ¤Î¤È¤¤Ï x,y ¼´) ¤Î¼«Æ°½Ì¼Ü µ¡Ç½¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ÉÁ²è¤µ¤ì¤ëÁ´¤Æ¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÅÀ¤¬¼ý¤Þ¤ë ¤è¤¦¤ËÄêµÁ°è¤ò¤È¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬ 1 ¤Ä¤â»ØÄꤵ¤ì¤Æ¤¤ ¤Ê¤¤¾ì¹ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï¤Ê¤ó¤Î¸ú²Ì¤â¤¢¤ê¤Þ¤»¤ó¡£¤Ä¤Þ¤ê¡¢´Ø¿ô¤Î¤ß¤¬ »ØÄꤵ¤ì¤Æ¤¤¤Æ¥Ç¡¼¥¿¡¼¥Õ¥¡¥¤¥ë¤ò»È¤ï¤Ê¤¤¾ì¹ç¤Ï¡¢x ¼´¤ÎÉÁ²èÈÏ°Ï (z = f(x,y) ¤òÉÁ²è¤·¤Æ¤¤¤ë¤È¤¤Ï y ¼´¤â) ¤Ï±Æ¶Á¤ò¤¦¤±¤Þ¤»¤ó¡£
ÈϰϤ˴ؤ¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set xrange (82.95)¡£
ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤â¼«Æ°½Ì¼Üµ¡Ç½¤Ï͸ú¤Ç¤¹ (°Ê²¼»²¾È:set parametric (82.51))¡£¤³¤Î¾ì¹ç¡¢¤è¤ê¿¤¯¤Î½¾Â°ÊÑ¿ô¤¬¤¢¤ë¤Î¤Ç¡¢x, y, z ³Æ¼´¤Ë´Ø¤·¤Æ¡¢¤è¤ê¿¤¯¤ÎÀ©¸æ¤¬¹Ô¤ï¤ì¤Þ¤¹¡£ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤ÎÆÈΩÊÑ¿ô (²¾ ÊÑ¿ô) ¤Ï plot ¤Ç¤Ï t ¤Ç splot ¤Ç¤Ï u, v ¤Ç¤¹¡£¤½¤·¤ÆÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤Ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï (t, u, v, x, y, z) ¤ÎÁ´¤Æ¤ÎÉÁ²èÈϰϤòÀ©¸æ¤·¡¢x, y, z ¤ÎÈϰϤμ«Æ°ÀßÄê¤ò´°Á´¤Ë¹Ô¤¤¤Þ¤¹¡£
¼«Æ°½Ì¼Üµ¡Ç½¤Ï¡¢¶ËºÂɸ¥â¡¼¥É (polar mode) ¤Ç¤â plot ¤ÎÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤ÈƱÍͤ˵¡Ç½¤·¤Þ¤¹¤¬¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï set dummy ¤ÇÆÈΩÊÑ¿ô¤ò t ¤«¤é Êѹ¹¤¹¤ë¤Ç¤¤ë (°Ê²¼»²¾È: set dummy (82.19)) ¤È¤¤¤¦³ÈÄ¥¤¬¤¢¤ê¤Þ¤¹¡£
ÌÜÀ¹¤ê¤¬ÂèÆó¤Î¼´¤Ëɽ¼¨¤µ¤ì¡¢¤·¤«¤â¤³¤ì¤é¤Î¼´¤ËÂФ¹¤ëÉÁ²è¤¬¹Ô¤ï¤ì¤Ê¤«¤Ã ¤¿¾ì¹ç¤Ë¤Ï¡¢x2range ¤È y2range ¤Ï xrange ¤È yrange ¤ÎÃͤò¼õ¤±·Ñ¤®¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢xrange ¤È yrange ¤¬À°¿ô¸Ä¤ÎÌÜÀ¹¤êÉý¤Ë¼«Æ°½Ì¼Ü¤µ¤ì¤ë¡ÖÁ°¡×¤Ë¹Ô¤ï ¤ì¤Þ¤¹¤Î¤Ç¡¢¾ì¹ç¤Ë¤è¤Ã¤Æͽ´ü¤·¤Ê¤¤·ë²Ì¤ò¤â¤¿¤é¤¹²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£¤½¤ì ¤òÈò¤±¤ë¤¿¤á¤Ë fixmin, fixmax ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
°Ê²¼¤Ï 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
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤â¤½¤¦¤Ç¤Ê¤¤¾õÂ֤ǤâƱÍͤËÉÁ²è¤µ¤ì ¤Þ¤¹¡£¤·¤«¤·¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤È´Ø¿ô¤¬º®ºß¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢°ã¤¤¤¬¤¢ ¤ê¤Þ¤¹: ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ê¤±¤ì¤Ð¡¢x ¤Î¼«Æ°½Ì¼Üµ¡Ç½¤Ï¡¢´Ø¿ô¤ÎÈϰϤò ¥Ç¡¼¥¿¤ÎÉÁ²èÈϰϤ˹ç¤ï¤»¤Þ¤¹¡£¤·¤«¤·ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï¥Ç¡¼¥¿¤ÎÈÏ°Ï ¤Ï´Ø¿ô¤ÎÈϰϤ˱ƶÁ¤·¤Þ¤»¤ó¡£
¤½¤ì¤Ë¤Ï¡¢ÊÒ¼êÍî¤Á¤Ë¤Ê¤é¤Ê¤¤¤è¤¦¤Ë set autoscale t ¤È¤¤¤¦¥³¥Þ¥ó¥É ¤âÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¤½¤Î¸ú²Ì¤ÏÈó¾ï¤Ë¾®¤µ¤¤¤â¤Î¤Ç¤¹¡£¼«Æ°½Ì¼Ü µ¡Ç½¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢gnuplot ¤¬ t ¤ÎÈϰϤ¬Ìµ¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤È ȽÃǤ·¤¿¾ì¹ç¤ËÈϰϤò¾¯¤·Ä´À°¤·¤Þ¤¹¡£¼«Æ°½Ì¼Üµ¡Ç½¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È ¤³¤Î¤è¤¦¤Ê¤È¤¤Ë¤Ï¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£¤³¤Î¤è¤¦¤ÊÆ°ºî¤Ï¼Â¤Ï¤¢¤Þ¤ê°ÕÌ£¤¬ ¤Ê¤¯¡¢¤è¤Ã¤Æ set autoscale t ¤È¤¤¤¦¥³¥Þ¥ó¥É¤Ï¸ºß°ÕµÁ¤Ëµ¿Ì䤬¤¢¤ê ¤Þ¤¹¡£
splot ¤Ç¤Ï¾åµ¤ÎȯÁۤθµ¤Ë³ÈÄ¥¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¼«Æ°½Ì¼Üµ¡Ç½¤¬ÀßÄꤵ¤ì ¤Æ¤¤¤ë¾ì¹ç¡¢x, y, z ¤Î³ÆÉÁ²èÈϰϤϷ׻»·ë²Ì¤¬¼ý¤Þ¤ë¤è¤¦¤ËÀßÄꤵ¤ì½Ì¼Ü Ä´À°¤µ¤ì¤Þ¤¹¡£
1 ¤Ä¡¢¤¢¤ë¤¤¤Ï 2 ¤Ä¤ÎÈϰϤÏÌÀ¼¨Åª¤ËÀßÄꤷ¤Æ¤½¤Î¾¤Î¤â¤Î¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï ͽ´ü¤·¤Ê¤¤·ë²Ì¤ò°ú¤µ¯¤³¤¹¤«¤âÃΤì¤Þ¤»¤ó¡£ °Ê²¼¤â»²¾È
½ñ¼°:
set bars {small | large | fullwidth | <size>} {front | back} unset bars show bars
small ¤Ï 0.0, large ¤Ï 1.0 ¤ÈƱ¤¸¤Ç¤¹¡£¥µ¥¤¥º¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥© ¥ë¥È¤ÎÃÍ¤Ï 1.0 ¤Ç¤¹¡£
¥¡¼¥ï¡¼¥É fullwidth ¤Ï¡¢errorbar ¤òȼ¤¦ boxplots ¤È histograms ¤Ë¤Î ¤ß´ØÏ¢¤·¤Þ¤¹¡£¤³¤ì¤Ï errorbar ¤Îξü¤ÎÉý¤ò¡¢Âбþ¤¹¤ëÈ¢¤ÎÉý¤ÈƱ¤¸¤ËÀßÄê ¤·¤Þ¤¹¤¬¡¢È¢¤ÎÉý¼«ÂΤòÊѹ¹¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¥¡¼¥ï¡¼¥É front, back ¤Ï¡¢ÅɤêÄÙ¤·Ä¹Êý·Á¤Î¤Ä¤¤¤¿ errorbar ¤Î¤ß¤Ë ´ØÏ¢¤·¤Þ¤¹ (boxes, candlesticks, histograms)¡£
½ñ¼°:
set border {<integer>} {front | back} {linewidth | lw <line_width>} {{linestyle | ls <line_style>} | {linetype | lt <line_type>}} 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 | ¸ú²Ì¤Ê¤· | Å·°æ¤Î±¦¼êÁ° |
¥Ó¥Ã¥È¤Ï°ì¤Ä°ì¤Ä¡¢¤¢¤ë¤¤¤Ï¤¤¤¯¤Ä¤«¤ò¤Þ¤È¤á¤Æ°ì½ï¤Ë¤³¤Î¥³¥Þ¥ó¥É¤ÇÉÕ²Ã¤Ç ¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 31 ¤Ç¡¢¤³¤ì¤Ï plot ¤Ç¤Ï 4 Êý¸þ¤Î³°ÏÈÁ´¤Æ¡¢splot ¤Ç¤ÏÄìÌ̤ÎÏÈÀþÁ´Éô¤È z ¼´¤òÉÁ¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
2 ¼¡¸µÉÁ²è¤Ç¤Ï¶³¦¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤΰìÈÖ¾å¤ËÉÁ¤«¤ì¤Þ¤¹ (front)¡£ ¤â¤·¶³¦¤òÉÁ²èÍ×ÁǤβ¼¤ËÉÁ¤«¤»¤¿¤¤¾ì¹ç¤Ï¡¢set border back ¤È¤·¤Æ¤¯¤À ¤µ¤¤¡£
< line_style> , < line_type> , < line_width> ¤ò»ØÄꤷ¤Æ¡¢ÏÈÀþ¤ÎÉÁ²è¤Ë¤½¤ì ¤é¤òÈ¿±Ç¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹ (¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý¡¼¥È¤¹¤ë¤â¤Î¤Ë¸ÂÄê ¤µ¤ì¤Þ¤¹)¡£
plot ¤Ç¤Ï¡¢Âè 2 ¼´¤ò͸ú¤Ë¤¹¤ë¤³¤È¤Ç¡¢²¼¤Èº¸°Ê³°¤Î¶³¦¤ËÌÜÀ¹¤ê¤òÉÁ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: xtics (82.96)¡£
"unset surface; set contour base" ¤Ê¤É¤Ë¤è¤Ã¤Æ splot ¤ÇÄìÌÌ¤Ë¤Î¤ß ÉÁ²è¤¹¤ë¾ì¹ç¡¢±ôľÀþ¤äÅ·°æ¤Ï¤½¤ì¤é¤¬»ØÄꤵ¤ì¤Æ¤¤¤Æ¤âÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£
set grid ¤Î¥ª¥×¥·¥ç¥ó 'back', 'front', 'layerdefault' ¤Ç¤â¡¢ÉÁ²è½ÐÎÏ ¤Î¶³¦Àþ¤ò½ñ¤¯½çÈÖ¤òÀ©¸æ¤Ç¤¤Þ¤¹¡£
Îã:
°Ê²¼¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÏÈÀþ¤òÉÁ¤¤Þ¤¹:
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 (82.36)) ¤Ç¤¢¤ë¾ì¹ç¡¢boxwidth ¤ÎÃÍ ¤Ï¼ÂºÝ¤Ë¤Ï x=1 ¤Ç¤Î¤ß "ÀäÂÐŪ" ¤È¤Ê¤ê¡¢¤½¤ÎʪÍýŪ¤ÊŤµ¤¬¼´Á´ÂΤòÄ̤¸ ¤ÆÊÝ»ý¤µ¤ì¤Þ¤¹ (¤¹¤Ê¤ï¤Á¡¢ËÀ¤Ï x ºÂɸ¤ÎÁý²Ã¤Ë¤È¤â¤Ê¤Ã¤Æ¶¹¤¯¤Ê¤Ã¤¿¤ê¤Ï ¤·¤Þ¤»¤ó)¡£Âпô¼´¤Î x ¼´¤ÎÈϰϤ¬ x=1 ¤«¤éÎ¥¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Å¬ÀÚ¤ÊÉý¤ò ¸«½Ð¤¹¤Ë¤Ï²¿ÅÙ¤«»î¤·¤Æ¤ß¤ëɬÍפ¬¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢boxes ¤ä boxerrorbars ¥¹¥¿¥¤¥ë¤ÎÉý»ØÄêÍѤÎÄɲäΠ¥Ç¡¼¥¿Îó¤ÎÌÀ¼¨Åª¤ÊÃͤ¬¤¢¤ì¤Ð¤½¤ì¤Ë¤è¤Ã¤ÆÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¡£4 Îó¤Î¥Ç¡¼¥¿ ¤Î¾ì¹ç¡¢Âè 4 ÎóÌܤÎÃͤ¬ËÀ¤ÎÉý¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£¤¿¤À¤·¡¢¤½¤ÎÉý¤¬ -2.0 ¤Î¾ì¹ç¤Ë¤ÏËÀ¤ÎÉý¤Ï¼«Æ°·×»»¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: style boxes (27),style boxerrorbars (26)¡£
ËÀ¤ÎÉý¤ò¼«Æ°Åª¤Ë¥»¥Ã¥È¤¹¤ë¤Ë¤Ï
set boxwidth
¤È¤¹¤ë¡¢¤¢¤ë¤¤¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
set boxwidth -2
plot ¤Î¥¡¼¥ï¡¼¥É using ¤ò»È¤Ã¤Æ¤âƱ¤¸¸ú²Ì¤òÆÀ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
plot 'file' using 1:2:3:4:(-2)
ËÀ¤ÎÉý¤ò¼«Æ°Åª¤ÊÃͤÎȾʬ¤Ë¤¹¤ë¤Ë¤Ï
set boxwidth 0.5 relative
ËÀ¤ÎÉý¤òÀäÂÐŪ¤ÊÃÍ 2 ¤Ë¤¹¤ë¤Ë¤Ï
set boxwidth 2 absolute
½ñ¼°:
set clabel {'<format>'} unset clabel show clabel
½ñ¼°Ê¸»úÎó¤Î¥Ç¥Õ¥©¥ë¥È¤Ï %8.3g ¤Ç¡¢¾®¿ôÉôʬ¤Ï 3 ·åɽ¼¨¤µ¤ì¤Þ¤¹¡£¤â¤· key ¤¬¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ«¤éÊѹ¹¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¤½¤ÎÇÛÃÖ¤ÏÉÔ½½Ê¬¤Ê¤â¤Î ¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
ºÇ½é¤ÎÅù¹âÀþ¤ÎÀþ¼ï¡¢¤Þ¤¿¤Ï clabel ¤¬Ìµ¸ú¤Ç¤¢¤ë¾ì¹ç¤ÎÍ£°ì¤Ä¤ÎÅù¹âÀþ¤Î Àþ¼ï¤Ï¡¢(¶ÊÌ̤ÎÀþ¼ï +1) ¤Ë¤Ê¤ê¤Þ¤¹¡£Åù¹âÀþ¤ÎÅÀ¤Ï¶ÊÌ̤ÎÅÀ¤ÈƱ¤¸¤â¤Î¤Ë ¤Ê¤ê¤Þ¤¹¡£
°Ê²¼»²¾È: set contour (82.14)¡£
½ñ¼°:
set clip <clip-type> unset clip <clip-type> show clip
gnuplot ¤ÏÅÀ¤äÀþ¤ËÂФ¹¤ë¥¯¥ê¥Ã¥×·¿ (clip-type) ¤È¤·¤Æ¡¢points, one, two ¤Î 3 ¼ïÎà¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£¤¢¤ëÉÁ²è¤ËÂФ·¤Æ¡¢¤³¤ì¤é¤Î ¥¯¥ê¥Ã¥×·¿¤ÏǤ°Õ¤ÎÁȤ߹礻¤ÇÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£pm3d ¤Î¿§ÃÏ¿Þ¤ä ¥«¥é¡¼¶ÊÌ̤ÇÅɤê¤Ä¤Ö¤µ¤ì¤¿»Í³Ñ·Á¤Ï¤³¤Î¥³¥Þ¥ó¥É¤Ç¤ÏÀ©¸æ¤Ç¤¤Þ¤»¤ó¤¬¡¢ set pm3d clip1in ¤ä set pm3d clip4in ¤Ë¤è¤Ã¤Æ²Äǽ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¯¥ê¥Ã¥×·¿ points ¤òÀßÄꤹ¤ë¤È¡¢ÉÁ²èÎΰèÆâ¤Ë¤Ï¤¢¤ë¤±¤ì¤É¶³¦Àþ¤ËÈó ¾ï¤Ë¶á¤¤¤è¤¦¤ÊÅÀ¤ò¥¯¥ê¥Ã¥×¤¹¤ë (¼ÂºÝ¤Ë¤ÏÉÁ²è¤·¤Ê¤¤¤À¤±¤Ç¤¹¤¬) ¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ì¤ÏÅÀ¤È¤·¤ÆÂ礤ʥޡ¼¥¯¤ò»ÈÍѤ·¤¿¤È¤¤Ë¡¢ ¤½¤Î¥Þ¡¼¥¯¤¬¶³¦Àþ¤«¤é¤Ï¤ß½Ð¤µ¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£points ¤ò¥¯¥ê¥Ã¥×¤·¤Ê¤¤¾ì¹ç¡¢¶³¦Àþ¤ÎÊÕ¤ê¤ÎÅÀ¤¬±ø¤¯¸«¤¨¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤½¤Î¾ì¹ç¡¢x ¤ä y ¤ÎÉÁ²èÈÏ°Ï (xrange, yrange) ¤òÄ´À°¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£
¥¯¥ê¥Ã¥×·¿ one ¤òÀßÄꤹ¤ë¤È¡¢°ìü¤Î¤ß¤¬ÉÁ²èÎΰè¤Ë¤¢¤ë¤è¤¦¤ÊÀþʬ¤â ÉÁ²è¤¹¤ë¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ÎºÝ¡¢ÉÁ²èÎΰèÆâ¤Ë¤¢¤ëÉôʬ ¤Î¤ß¤¬¼ÂºÝ¤ËÉÁ²è¤µ¤ì¤ëÈϰϤǤ¹¡£ÀßÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤³¤Î¤è¤¦¤ÊÀþʬ¤Ï ÉÁ²èÂоݤȤʤ餺¡¢¤É¤ÎÉôʬ¤âÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£
ξü¤Ï¶¦¤ËÉÁ²èÈϰϤË̵¤¤¤¬ÉÁ²èÎΰè¤òÄ̲᤹¤ë¤È¤¤¤¦Àþʬ¤â¤¢¤ê¤Þ¤¹¡£ ¥¯¥ê¥Ã¥×·¿ two ¤òÀßÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¤³¤Î¤è¤¦¤ÊÀþʬ¤ÎÉÁ²èÎΰè¤Î Éôʬ¤òÉÁ²è¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤É¤Î¤è¤¦¤Ê¾õ¶·¤Ç¤â¡¢ÉÁ²èÈϰϤγ°¤ËÀþ¤¬°ú¤«¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢noclip points, clip one, noclip two ¤È¤Ê¤Ã¤Æ ¤¤¤Þ¤¹¡£
Á´¤Æ¤Î¥¯¥ê¥Ã¥×·¿¤ÎÀßÄê¾õ¶·¤ò¸«¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:
show clip
²áµî¤Î¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À¤Î¤¿¤á°Ê²¼¤Î½ñ¼°¤â»ÈÍѲÄǽ¤Ç¤¹:
set clip unset clip
set clip ¤Ï set clip points ¤ÈƱµÁ¤Ç¤¹¡£unset clip ¤Ï 3 ¼ï¤Î ¥¯¥ê¥Ã¥×·¿Á´¤Æ¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
½ñ¼°:
set cntrparam { { linear | cubicspline | bspline | points <n> | order <n> | levels { auto {<n>} | <n> | discrete <z1> {,<z2>{,<z3>...}} | incremental <start>, <incr> {,<end>} } } } show contour
¤³¤Î¥³¥Þ¥ó¥É¤Ï 2 ¤Ä¤Îµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°ì¤Ä¤ÏÅù¹âÀþ¾å¤ÎÅÀ (¥Ç¡¼¥¿ÅÀ ¤ÎÀþ·ÁÊä´Ö¡¢¤¢¤ë¤¤¤Ï´Ø¿ô¤ÎɸËܲ½ (isosample) ¤Ë¤è¤ëÅÀ) ¤Ç¤Î z ¤ÎÃͤÎÀß Äê¤Ç¡¢¤â¤¦°ì¤Ä¤Ï¡¢¤½¤Î¤è¤¦¤Ë·èÄꤵ¤ì¤¿ z ¤¬Åù¤·¤¤ÅÀƱ»Î¤òÅù¹âÀþ¤Ç·ë¤Ö ÊýË¡¤ÎÀ©¸æ¤Ç¤¹¡£< n> ¤ÏÀ°¿ô·¿¤ÎÄê¿ô¼°¡¢< 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 (¥Ç¥Õ¥©¥ë¥È), discrete, incremental ¤ÈÅù¹âÀþ¤Î¥ì¥Ù¥ë¿ô < n> ¤ÇÀ©¸æ¤·¤Þ¤¹¡£
auto ¤Ç¤Ï¡¢< n> ¤Ï²¾¤Î¥ì¥Ù¥ë¤Î¿ô¤Ç¤¢¤ê¡¢¼ÂºÝ¤Î¥ì¥Ù¥ë¤Î¿ô¤Ï¡¢´Êñ¤Ê¥é ¥Ù¥ë¤òÀ¸À®¤¹¤ë¤è¤¦¤ËÄ´Àᤵ¤ì¤Þ¤¹¡£¶ÊÌ̤Πz ºÂɸ¤¬ zmin ¤«¤é zman ¤ÎÈÏ °Ï¤Ë¤¢¤ë¤È¤¡¢Åù¹âÀþ¤Ï¤½¤Î´Ö¤Î dz ¤ÎÀ°¿ôÇܤˤʤë¤è¤¦¤ËÀ¸À®¤µ¤ì¤Þ¤¹¡£¤³ ¤³¤Ç¡¢dz ¤Ï 10 ¤Î¤¢¤ë¤Ù¤¾è¤Î 1, 2, 5 ÇÜ¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¹ (2 ¤Ä¤ÎÌÜÀ¹¤ê ¤Î´Ö¤òÃúÅÙ³ä¤êÀÚ¤ë¤è¤¦¤Ë)¡£
levels discrete ¤Ç¤Ï¡¢Åù¹âÀþ¤Ï»ØÄꤵ¤ì¤¿ z = < z1> , < z2> ... ¤ËÂФ·¤Æ À¸À®¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¸Ä¿ô¤¬Åù¹âÀþ¤Î¥ì¥Ù¥ë¤Î¸Ä¿ô¤È¤Ê¤ê¤Þ¤¹¡£discrete ¥â¡¼¥É¤Ç¤Ï¡¢set cntrparams levels < n> ¤È¤¤¤¦»ØÄê¤Ï¾ï¤Ë̵»ë¤µ¤ì¤Þ¤¹¡£
incremental ¤Ç¤Ï¡¢Åù¹âÀþ¤Ï z = < start> ¤«¤é»Ï¤Þ¤ê¡¢< increment> ¤º¤Ä Áý¤¨¤Æ¹Ô¤¸Â³¦¤Î¸Ä¿ô¤Ë㤹¤ë¤Þ¤Ç½ñ¤«¤ì¤Þ¤¹¡£< end> ¤Ï¤½¤ÎÅù¹âÀþ¤Î¿ô¤ò·è Äꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¸å¤Î set cntrparam levels < n> ¤Ë¤è¤Ã¤Æ ¾ï¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£z ¼´¤¬Âпô¼´¤Î¾ì¹ç¡¢set ztics ¤Î¾ì¹ç¤ÈƱÍͤˡ¢ < increment> ¤ÏÇÜ¿ô¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£
¥³¥Þ¥ó¥É set cntrparam ¤¬°ú¿ô¤Ê¤·¤Ë¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ï¡¢¼¡¤Î¥Ç¥Õ¥©¥ë¥È¤Î Ãͤ¬»È¤ï¤ì¤Þ¤¹: linear, 5 points, order 4, 5 auto levels
Îã:
set cntrparam bspline set cntrparam points 7 set cntrparam order 10
°Ê²¼¤Ï¥ì¥Ù¥ë¤Î´ð½à¤¬¹ç¤¨¤Ð 5 ¸Ä¤Î¥ì¥Ù¥ë¤¬¤Ë¼«Æ°Åª¤ËÁªÂò¤µ¤ì¤Þ¤¹:
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 contour (82.14)¡£Åù¹âÀþ¤Î¥é ¥Ù¥ë¤Î½ñ¼°¤ÈÀþ¼ï¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set clabel (82.9)¡£
°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¤ª¤è¤Ó
¥æ¡¼¥¶ÄêµÁ¥ì¥Ù¥ë¤ÎÅù¹âÀþ¤Î¥Ç¥â (discrete.dem).
¿§¤Î°ìÍ÷ɽ¡¢¤¹¤Ê¤ï¤Á pm3d ¤Î palette ¤Î min_z ¤«¤é max_z ¤Þ¤Ç¤Î³ê ¤é¤«¤Ê¿§¤Î¸ûÇۤϡ¢unset colorbox ¤¬»È¤ï¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox) ¤ËÉÁ¤«¤ì¤Þ¤¹¡£
set colorbox set colorbox { { vertical | horizontal } { default | user } { origin x, y } { size x, y } { front | back } { noborder | bdefault | border [line style] } } show colorbox unset colorbox
¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î°ÌÃ֤ϡ¢default ¤Þ¤¿¤Ï user ¤Ç»ØÄê¤Ç¤¡¢¸å¼Ô¤Î¾ì¹ç ¤½¤Î°ÌÃÖ¤äÂ礤µ¤ò origin ¤ä size ¥³¥Þ¥ó¥É¤ÇÀßÄꤷ¤Þ¤¹¡£¥«¥é¡¼¥Ü¥Ã ¥¯¥¹¤Ï¡¢¥°¥é¥Õ¤ä¶ÊÌ̤θå (front) ¤¢¤ë¤¤¤ÏÀè (back) ¤ËÉÁ²è¤µ¤»¤ë¤³ ¤È¤â¤Ç¤¤Þ¤¹¡£
¿§¸ûÇÛ¤ÎÊý¸þ¤Ï¡¢¥ª¥×¥·¥ç¥ó vertical ¤È horizontal ¤ÇÀÚÂؤ¨¤ë¤³¤È¤¬ ²Äǽ¤Ç¤¹¡£
origin x, y ¤È size x, y ¤Ï user ¥ª¥×¥·¥ç¥ó¤È¤ÎÁȤǤΤ߻ÈÍѤµ¤ì
¤Þ¤¹¡£x, y ¤ÎÃͤϡ¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥¹¥¯¥ê¡¼¥óºÂɸ¤È²ò¼á¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤ì
¤Ï 3 ¼¡¸µÉÁ²èÍѤΤ«¤·¤³¤Þ¤Ã¤¿¥ª¥×¥·¥ç¥ó¤Ë²á¤®¤Þ¤»¤ó¡£set view map ¤Ë
¤è¤ë splot ¤ò´Þ¤à 2 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢Ç¤°Õ¤ÎºÂɸ·Ï¤Ç¤Î»ØÄ꤬²Äǽ¤Ç¤¹¡£Î㤨
¤Ð°Ê²¼¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤:
set colorbox horiz user origin .1,.02 size .8,.04
border ¤Ï¶³¦ÉÁ²è¤ò ON ¤Ë¤·¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È) ¤·¡¢noborder ¤Ï¶³¦ÉÁ
²è¤ò OFF ¤Ë¤·¤Þ¤¹¡£border ¤Î¸å¤í¤ËÀµ¤ÎÀ°¿ô¤òÍ¿¤¨¤ë¤È¡¢¤½¤ì¤ò¶³¦¤òÉÁ
²è¤¹¤ë»þ¤Î line style ¤Î¥¿¥°¤È¤·¤Æ»È¤¤¤Þ¤¹¡£Î㤨¤Ð:
set style line 2604 linetype -1 linewidth .4 set colorbox border 2604
¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¼´¤Ï 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 (82.53), set palette (82.54), x11 pm3d (92.72.7), set style line (82.66.7)¡£
set style line 1 linecolor rgb "sea-green"
½ñ¼°:
set contour {base | surface | both} unset contour show contour
¤³¤ì¤é¤Î 3 ¤Ä¤Î¥ª¥×¥·¥ç¥ó¤ÏÅù¹âÀþ¤ò¤É¤³¤Ë°ú¤¯¤«¤ò»ØÄꤷ¤Þ¤¹¡£base ¤Ç ¤ÏÅù¹âÀþ¤ò x/y ¼´¤Î¹ï¤ß¤Î¤¢¤ëÄìÌ̤ËÉÁ¤«¤ì¡¢surface ¤Ç¤ÏÅù¹âÀþ¤Ï¤½¤Î ¶ÊÌ̼«ÂΤξå¤ËÉÁ¤«¤ì¡¢both ¤Ç¤ÏÄìÌ̤ȶÊÌ̾å¤ÎξÊý¤ËÉÁ¤«¤ì¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï base ¤Ç¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£
Åù¹âÀþ¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¥Ñ¥é¥á¡¼¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:set cntrparam (82.11)¡£Åù¹âÀþ¤Î¥é¥Ù¥ë¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È:set clabel (82.9)¡£
Åù¹âÀþ¤Î¤ß¤Î¥°¥é¥Õ¤òÆÀ¤ë¤¿¤á¤Ë¡¢¶ÊÌ̼«¿È¤ÎÉÁ²è¤ò¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤³¤È¤â ¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: set surface (82.67))¡£set size ¤ò»È¤Ã¤Æ¡¢¥°¥é¥Õ¤ò²èÌÌ °ìÇÕ¤ËÉÁ²è¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢¤½¤¦¤¤¤Ã¤¿½ÐÎÏ·Á¼°¤è¤ê¤â¡¢Åù¹âÀþ¤Î¥Ç¡¼ ¥¿¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¡¢¤½¤ì¤òºÆ¤Ó 2 ¼¡¸µ¥Ç¡¼¥¿¤È¤·¤ÆÆɤ߹þ¤ó¤ÇÉÁ²è¤¹ ¤ì¤Ð¤è¤ê¤è¤¤À©¸æ¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹:
unset surface set contour set cntrparam ... set table 'filename' splot ... unset table # contour info now in filename set term <whatever> plot 'filename'
Åù¹âÀþ¤òÉÁ¤¯¤¿¤á¤Ë¤Ï¡¢¥Ç¡¼¥¿¤Ï³Ê»Ò¾õ¥Ç¡¼¥¿ ("grid data") ¤Ç¤¢¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£¤½¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤Ç¤Ï¡¢°ì¤Ä¤Î y-¸ÉΩÀþ¾å¤ÎÁ´¤Æ¤ÎÅÀ¤¬½ç¤Ë ʤ٤é¤ì¤Æ¤¤¤¤Þ¤¹¡£¤½¤·¤ÆÎ٤Πy-¸ÉΩÀþ¾å¤ÎÅÀ¤¬½ç¤Ëʤ٤é¤ì¡¢¤½¤·¤ÆÎÙ¡¢ ¤È³¤¤¤Æ¤¤¤¤Þ¤¹¡£y-¸ÉΩÀþƱ»Î¤òʬΥ¤¹¤ë¤Ë¤Ï°ì¹Ô¤Î¶õ¹Ô (¶õÇò¡¢Éüµ¢¡¢²þ ¹Ô°Ê³°¤Îʸ»ú¤ò´Þ¤Þ¤Ê¤¤¹Ô) ¤ò¶´¤ß¤Þ¤¹¡£°Ê²¼»²¾È: splot datafile (84.1)¡£
°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¤ª¤è¤Ó
¥æ¡¼¥¶ÄêµÁ¥ì¥Ù¥ë¤ÎÅù¹âÀþ¤Î¥Ç¥â (discrete.dem).
½ñ¼°:
set datafile missing {"<string>"} show datafile missing unset datafile
Îã:
# IEEE NaN ("Not a Number") ¥³¡¼¥É¤ò´Þ¤à¥¨¥ó¥È¥ê¤ò̵»ë¤¹¤ë set datafile missing "NaN"
Îã:
set style data linespoints plot '-' 1 10 2 20 3 ? 4 40 5 50 e set datafile missing "?" plot '-' 1 10 2 20 3 ? 4 40 5 50 e plot '-' using 1:2 1 10 2 20 3 ? 4 40 5 50 e plot '-' using 1:($2) 1 10 2 20 3 ? 4 40 5 50 e
ºÇ½é¤Î plot ¤Ï¡¢"3 ?" ¤Î¹Ô¤Ç¤ÏºÇ½é¤Î¥Ç¡¼¥¿¤Î¤ß¤òǧ¼±¤·¡¢¤½¤³¤Ç¤Ï 1 ¹Ô¤Ë 1 ¤Ä¤·¤«¥Ç¡¼¥¿¤¬¤Ê¤«¤Ã¤¿¾ì¹ç¤Îµ¬Â§¤¬Å¬ÍѤµ¤ì¡¢¹ÔÈֹ椬 "x" ¤Ç¥Ç¡¼ ¥¿¤¬ "y" ¤È¸«¤Ê¤µ¤ì¡¢¤½¤ÎÅÀ¤Ï (2,3) ¤Ë (¤³¤Î¾ì¹ç¤Ï¸í¤Ã¤Æ) ÉÁ²è¤µ¤ì¤Þ¤¹¡£
2 ÈÖÌÜ¤È 3 ÈÖÌܤΠplot ¥³¥Þ¥ó¥É¤Ï¡¢¿¿Ãæ¤Î¹Ô¤òÀµ¤·¤¯Ìµ»ë¤·¤Þ¤¹¡£ÉÁ²è ¤µ¤ì¤ë¶ÊÀþ¤Ï¡¢(2,20) ¤È (4,40) ¤¬·ë¤Ð¤ì¤Þ¤¹¡£
4 ÈÖÌܤΠplot ¤â¿¿Ãæ¤Î¹Ô¤òÀµ¤·¤¯Ìµ»ë¤·¤Þ¤¹¤¬¡¢¤³¤Î¾ì¹ç¤Ï (2,20) ¤È (4,40) ¤Ï·ë¤Ð¤ì¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Î missing ÍѤÎʸ»ú¤Ï²¿¤âÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¤¬¡¢Â¿¤¯¤Î¾ì¹ç ¿ôÃͤ¬´üÂÔ¤µ¤ì¤ë¤Ù¤½ê¤Ë¤½¤ì¤Èǧ¼±¤Ç¤¤Ê¤¤Ê¸»ú¤¬¸«¤Ä¤«¤Ã¤¿¤é¤½¤ì¤Ï·ç¤± ¤¿¥Ç¡¼¥¿ (missing data) ¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
set datafile separator {"<char>" | whitespace}
Îã:
# ¥¿¥Ö¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ set datafile separator "\t"
# ¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ set datafile separator ","
½ñ¼°:
set datafile commentschars {"<string>"} show datafile commentschars unset commentschars
¥Ç¥Õ¥©¥ë¥È¤Î string ¤Ï¡¢VMS ¤Ç¤Ï "#!" ¤Ç¡¢¤½¤ì°Ê³°¤Ç¤Ï "#" ¤Ç¤¹¡£
¤è¤Ã¤Æ¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î°Ê²¼¤Î¹Ô¤Ï´°Á´¤Ë̵»ë¤µ¤ì¤Þ¤¹
# 1 2 3 4
1 # 3 4
set datafile missing '#'
Îã:
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 | qnorm {<norm>} | (gauss | cauchy | exp | box | hann) {kdensity} {<dx>} {,<dy>} } unset dgrid3d show dgrid3d
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï dgrid3d ¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Í¸ú¤Ë¤Ê¤ë¤È¡¢¥Õ¥¡¥¤¥ë ¤«¤éÆɤ߹þ¤Þ¤ì¤ë 3 ¼¡¸µ¤Î¥Ç¡¼¥¿¤Ï¡Ö»¶ºß¤·¤¿¡×¥Ç¡¼¥¿ (Èó³Ê»Ò¾õ¥Ç¡¼¥¿) ¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£³Ê»Ò¤Ï¡¢¥°¥é¥Õ¤ÈÅù¹âÀþ¤ÎÉÁ²è¤Î¤¿¤á¤Ë¡¢»¶ºß¤·¤¿¥Ç ¡¼¥¿¤ò°Ï¤à¶ë·Á¤«¤éÆÀ¤é¤ì¤ëÀ£Ë¡¤È¡¢row_size/col_size ¤Ç»ØÄꤵ¤ì¤ë¿ô¤Î¹Ô ¤ÈÎó¤ò»ý¤Ä¤è¤¦¤ËÀ¸À®¤µ¤ì¤Þ¤¹¡£³Ê»Ò¤Ï x Êý¸þ (¹Ô) ¤È y Êý¸þ (Îó) ¤ËÅù´Ö ³Ö¤Ç¤¹¡£z ¤ÎÃͤϻ¶ºß¤¹¤ë¥Ç¡¼¥¿¤Î z ¤ÎÃͤνŤßÉÕ¤¤ÎÊ¿¶Ñ¡¢¤Þ¤¿¤Ï¥¹¥×¥é ¥¤¥óÊä´Ö¤È¤·¤Æ·×»»¤µ¤ì¤Þ¤¹¡£¸À¤¤ÊѤ¨¤ì¤Ð¡¢µ¬Â§Åª¤Ê´Ö³Ö¤Î³Ê»Ò¤¬À¸À®¤µ¤ì¡¢ Á´¤Æ¤Î³Ê»ÒÅÀ¤Ç¸µ¤Î¥Ç¡¼¥¿¤Î³ê¤«¤Ê¶á»÷Ãͤ¬É¾²Á¤µ¤ì¤Þ¤¹¡£¸µ¤Î¥Ç¡¼¥¿¤ÎÂå¤ï ¤ê¤Ë¤³¤Î¶á»÷Ãͤ¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÎó¤Î¿ô¤Ï¹Ô¤Î¿ô¤ËÅù¤·¤¯¡¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 10 ¤Ç¤¹¡£
¸µ¤Î¥Ç¡¼¥¿¤«¤é¶á»÷Ãͤò·×»»¤¹¤ë¤¿¤á¤Î¤¤¤¯¤Ä¤«¤Î¥¢¥ë¥´¥ê¥º¥à¤¬ÍÑ°Õ¤µ¤ì¤Æ ¤¤¤Æ¡¢ÄɲäΥѥé¥á¡¼¥¿¤ò»ØÄê¤Ç¤¤ë¤â¤Î¤â¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÊä´Ö¤Ï¡¢³Ê»Ò ÅÀ¤Ë¶á¤¤¥Ç¡¼¥¿ÅÀ¤Û¤É¡¢¤½¤Î³Ê»ÒÅÀ¤ËÂФ·¤Æ¤è¤ê¶¯¤¤±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
splines ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢"Çö¤¤¤Ä¤®ÈÄ" ¤ò¸µ¤Ë¤·¤¿Êä´Ö·×»»¤ò¹Ô¤¤¤Þ¤¹¡£ ¤³¤ì¤ÏÄɲåѥé¥á¡¼¥¿¤ò¼è¤ê¤Þ¤»¤ó¡£
qnorm ¥¢¥ë¥´¥ê¥º¥à¤Ï³Æ³Ê»ÒÅÀ¤ÇÆþÎϥǡ¼¥¿¤Î½Å¤ßÉդʿ¶Ñ¤ò·×»»¤·¤Þ¤¹¡£
³ÆÅÀ¤Ï³Ê»ÒÅÀ¤«¤é¤Îµ÷Î¥¤Î norm ¾è¤ÎµÕ¿ô¤Ç½Å¤ßÉÕ¤±¤µ¤ì¤Þ¤¹¡£(¼ÂºÝ¤Ë¤Ï¡¢
dx, dy ¤ò³Æ¥Ç¡¼¥¿ÅÀ¤È³Ê»ÒÅÀ¤È¤Îº¹¤ÎÀ®Ê¬¤Ç¤¢¤ë¤È¤¹¤ë¤È¡¢½Å¤ß¤Ï dx^
norm
+ dy^
norm ¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£2 ¤Î¤Ù¤¤Î¥Î¥ë¥à¡¢ÆÃ¤Ë 4, 8, 16 ¤Ë´Ø¤·¤Æ¤Ï¡¢
¤½¤Î½Å¤ß¤Î·×»»¤Ï¥æ¡¼¥¯¥ê¥Ã¥Éµ÷Î¥¤ò»È¤¦¤³¤È¤Ç (dx^
2+dy^
2)^
norm/2 ¤Î¤è¤¦
¤ËºÇŬ²½¤µ¤ì¤Æ¤Þ¤¹¤¬¡¢Ç¤°Õ¤ÎÉé¤Ç¤Ê¤¤À°¿ô¤ò»È¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£) ¥Î¥ë¥à
¤Î¤Ù¤¤ÎÃͤò¤¿¤À°ì¤Ä¤ÎÄɲåѥé¥á¡¼¥¿¤È¤·¤Æ»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤Î¥¢¥ë¥´¥ê¥º
¥à¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
ºÇ¸å¤Ë¡¢½Å¤ßÉդʿ¶Ñ¤Î·×»»ÍѤˡ¢¤¤¤¯¤Ä¤«¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô (kernel) ¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), ¤³¤³¤Ç z_i ¤Ï i ÈÖÌܤΥǡ¼¥¿¤ÎÃͤǡ¢d_i ¤Ï¸½ºß¤Î³Ê»ÒÅÀ¤È i ÈÖÌܤΥǡ¼¥¿ÅÀ¤Î°ÌÃÖ¤È ¤Îµ÷Î¥¤Ç¤¹¡£¤¹¤Ù¤Æ¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬¡¢¸½ºß¤Î³Ê»ÒÅÀ¤Ë¶á¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï Â礤ʽŤߡ¢±ó¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï¾®¤µ¤¤½Å¤ß¤òÉÕ¤±¤Þ¤¹¡£
°Ê²¼¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬»ÈÍѤǤ¤Þ¤¹:
gauss : w(d) = exp(-d*d) cauchy : w(d) = 1/(1 + d*d) exp : w(d) = exp(-d) box : w(d) = 1 d<1 ¤Î¾ì¹ç = 0 ¤½¤Î¾ hann : w(d) = 0.5*(1-cos(2*pi*d)) d<1 ¤Î¾ì¹ç w(d) = 0 ¤½¤Î¾
¤³¤ì¤é 5 ¤Ä¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô¤Î¤¦¤Á°ì¤Ä¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢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 ¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤¬³Ê»ÒÅÀ¤Ø¡Ö¥Ç¡¼¥¿¤½¤ì¼«¿È¤Îñ°Ì¤Ç¡×¤Î´óÍ¿¤ò¹Ô¤¦ÈϰϤΠÀ©¸æ¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¥¡¼¥ï¡¼¥É kdensity2d ¤Ï¡¢½Å¤ßÉÕ¤±´Ø¿ô̾¤Î¸å¤í¤Ç (¥ª¥×¥·¥ç ¥ó¤Î) ¥¹¥±¡¼¥ëÊÑ´¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÁ°¤ËÃÖ¤¯¤â¤Î¤Ç¡¢¤³¤ì¤Ï¥¢¥ë¥´¥ê¥º¥à¤òÊÑ ¹¹¤·¤Æ¡¢³Ê»ÒÅÀÍѤ˷׻»¤¹¤ëÃͤò½Å¤ß¤ÎÏ ( z = Sum_i w(d_i) * z_i ) ¤Ç¤Ï ³ä¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£z_i ¤¬¤¹¤Ù¤ÆÄê¿ô¤Î¾ì¹ç¡¢¤³¤ì¤Ï»ö¼Â¾å 2 ÊÑ¿ô¤Î½Å ¤ßÉÕ¤±É¾²Á¤òÉÁ²è¤·¤Þ¤¹: (¾å¤Î 5 ¤Ä¤Î¤¦¤Á¤Î°ì¤Ä¤Î) ½Å¤ßÉÕ¤±´Ø¿ô¤¬³Æ¥Ç¡¼ ¥¿ÅÀ¤ËÃÖ¤«¤ì¡¢¤½¤ì¤é¤Î½Å¤ß¤ÎϤ¬¤¹¤Ù¤Æ¤Î³Ê»ÒÅÀ¤Çɾ²Á¤µ¤ì¡¢¤½¤·¤Æ¸µ¤Î¥Ç ¡¼¥¿¤ÎÂå¤ï¤ê¤Ë¤³¤Î³ê¤é¤«¤Ê¶ÊÌ̤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢1 ¼¡¸µ¤Î¥Ç¡¼¥¿½¸ ¹ç¤ËÂФ¹¤ë smooth kdensity ¥ª¥×¥·¥ç¥ó¤¬¹Ô¤¦¤³¤È¤È¤ª¤ª¤Þ¤«¤Ë¤ÏƱ¤¸¤Ç ¤¹ (»ÈÍÑÎã¤Ï kdensity2d.dem ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
¸åÊý¸ß´¹À¤Î¤¿¤á¤Ë¡¢¤ï¤º¤«¤Ë°Û¤Ê¤ë½ñ¼°¤â¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤É¤Î¥¢¥ë ¥´¥ê¥º¥à¤âÌÀ¼¨Åª¤ËÁªÂò¤·¤Ê¤«¤Ã¤¿¾ì¹ç¡¢qnorm ¥¢¥ë¥´¥ê¥º¥à¤¬²¾Äꤵ¤ì¡¢ 3 ¤Ä°Ê²¼¤Î¡¢¥³¥ó¥Þ (,) ¶èÀÚ¤ê¤Î¥ª¥×¥·¥ç¥ó¥Ñ¥é¥á¡¼¥¿¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢ ¤½¤ì¤é¤ò¤½¤ì¤¾¤ì¹Ô¿ô¡¢Îó¿ô¡¢¤½¤·¤Æ norm ÃͤǤ¢¤ë¤È²ò¼á¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó dgrid3d ¤Ï¡¢»¶ºß¤¹¤ë¥Ç¡¼¥¿¤ò½Å¤ßÉդʿ¶Ñ¤Çµ¬Â§Åª¤Ê³Ê»Ò¤Ë ÃÖ¤ÊѤ¨¤ëñ½ã¤Ê»ÅÁȤߤ˲᤮¤Þ¤»¤ó¡£¤³¤ÎÌäÂê¤ËÂФ¹¤ë¤è¤êÀöÎý¤µ¤ì¤¿¼êË¡ ¤¬Â¸ºß¤·¤Þ¤¹¤Î¤Ç¡¢¤³¤Îñ½ã¤ÊÊýË¡¤¬ÉÔ½½Ê¬¤Ç¤¢¤ì¤Ð¡¢gnuplot ¤Î³°¤Ç¤½¤Î ¤è¤¦¤ÊÊýË¡¤Ç¥Ç¡¼¥¿¤òÁ°½èÍý¤¹¤ë¤Ù¤¤Ç¤·¤ç¤¦¡£
°Ê²¼¤â»²¾È
¤ª¤è¤Ó
½ñ¼°:
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 ¤À¤±¤À¤È¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
Îã:
set dummy u,v set dummy ,s
ÂèÆó¤ÎÎã¤Ï¡¢2 ÈÖÌܤÎÊÑ¿ô¤ò s ¤È¤·¤Þ¤¹¡£
set encoding {<value>} set encoding locale show encoding
͸ú¤ÊÃÍ (value) ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
default - ½ÐÎÏ·Á¼°¤Ë¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥ó¥³¡¼¥É¤Î»ÈÍѤòÌ¿Îá iso_8859_1 - ¿¤¯¤Î Unix ¥ï¡¼¥¯¥¹¥Æ¡¼¥·¥ç¥ó¤ä MS-Windows ¤Ç»ÈÍÑ²Ä Ç½¤ÊºÇ¤â°ìÈÌŪ¤ÊÀ¾¥è¡¼¥í¥Ã¥Ñ¥¨¥ó¥³¡¼¥É¡£¤³¤Î¥¨¥ó¥³¡¼ ¥É¤Ï 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 ¥Ó¥Ã¥È) cp1254 - ¥È¥ë¥³¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸ (Latin5 ¤Î³ÈÄ¥) sjis - Shift_JIS ÆüËܸ쥨¥ó¥³¡¼¥É utf8 - ³Æʸ»ú¤Î Unicode ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤Î¡¢²ÄÊÑĹ (¥Þ¥ë¥Á¥Ð ¥¤¥È) ɽ¸½
¥³¥Þ¥ó¥É set encoding locale ¤Ï¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤È¤Ï°ã¤¤¡¢¤³¤ì¤Ï¸½ºß ¤Î¥í¥«¡¼¥ë¤ò¼Â¹Ô»þ¤Î´Ä¶¤«¤é·èÄꤷ¤è¤¦¤È¤·¤Þ¤¹¡£¤¿¤¤¤Æ¤¤¤Î¥·¥¹¥Æ¥à¤Ç¤Ï ¤³¤ì¤Ï´Ä¶ÊÑ¿ô LC_ALL, LC_CTYPE, LANG ¤Î¤¤¤º¤ì¤«¤Ë¤è¤Ã¤ÆÀ©¸æ¤µ¤ì¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤϡ¢Î㤨¤Ð wxt, cairopdf ½ÐÎÏ·Á¼°¤Ç¡¢UTF-8 ¤ä EUC-JP ¤Î¤è¤¦ ¤Ê¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»ú¥¨¥ó¥³¡¼¥É¤òÄ̤¹¤¿¤á¤ËɬÍפǤ¹¡£¤³¤Î¥³¥Þ¥ó¥É¤ÏÆüÉÕ¤ä ¿ô»ú¤Ê¤É¤Î¥í¥«¡¼¥ëÆÃͤÎɽ¸½¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£ °Ê²¼¤â»²¾È: set locale (82.35), set decimalsign (82.17)¡£
°ìÈ̤ˡ¢¥¨¥ó¥³¡¼¥É¤ÎÀßÄê¤Ï½ÐÎÏ·Á¼°¤ÎÀßÄê¤ÎÁ°¤Ë¹Ô¤Ê¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤³ ¤Î¥¨¥ó¥³¡¼¥É¤Ï¤É¤ó¤Ê½ÐÎÏ·Á¼°¤Ç¤â¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤È¤Ï¸Â¤é¤º¡¢¤½¤·¤Æ½Ð ÎÏ·Á¼°¤ÏÍ׵ᤵ¤ì¤¿¤É¤ó¤ÊÈóɸ½àʸ»ú¤âÀ¸À®¤Ç¤¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
½ñ¼°:
set fit {logfile {"<filename>"}} {{no}quiet} {{no}errorvariables} {{no}prescale} unset fit show fit
°ú¿ô < filename> ¤Ï¡¢Ã±°ì°úÍÑÉ䤫Æó½Å°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï unset fit ¤ò»ÈÍѤ·¤¿¾ì¹ç¤Ï¡¢ ¥í¥°¥Õ¥¡¥¤¥ë¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤǤ¢¤ë "fit.log"¡¢¤Þ¤¿¤Ï´Ä¶ÊÑ¿ô FIT_LOG ¤ÎÃͤ˥ꥻ¥Ã¥È¤µ¤ì¤Þ¤¹¡£
Í¿¤¨¤é¤ì¤¿¥í¥°¥Õ¥¡¥¤¥ë̾¤¬ / ¤« \ ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï¥Ç¥£¥ì¥¯¥È¥ê ̾¤È²ò¼á¤µ¤ì¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î "fit.log" ¤È¤Ê¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 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 'a=%6.2f', a, '+/- %6.2f', a_err plot 'datafile' using 1:2, f(x)
¥ª¥×¥·¥ç¥ó prescale ¤ò¥ª¥ó¤Ë¤¹¤ë¤È¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤ËÅÏ ¤¹Á°¤Ë¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÃͤò¤½¤ì¤é¤Î½é´üÃͤ˽¾¤Ã¤Æ»öÁ°¤Ë¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÂ礤µ¤Ë¤«¤Ê¤êÂ礤ʰ㤤¤¬¤¢¤ë¾ì¹ç¤Ë¡¢ÂçÊÑÍ ¸ú¤Ç¤¹¡£¤¿¤À¤·¡¢½é´üÃͤ¬´°Á´¤Ë 0 ¤ÎÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï¡¢·è¤·¤Æ¤³¤Î ¥¹¥±¡¼¥ëÊÑ´¹¤Ï¹Ô¤¤¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤µ¤ì¤ë¾ðÊó¤Ï²èÌ̤ˤâɽ¼¨¤µ¤ì¤Þ¤¹¡£ set fit quiet ¤È¤¹¤ì¤Ð¤³¤Î²èÌÌɽ¼¨¤Ï¾Ã¤¨¤Þ¤¹¡£
½ñ¼°:
set fontpath {"pathlist1" {"pathlist2"...}} show fontpath
¥Ñ¥¹Ì¾¤Ïñ°ì¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ñ¥¹Ì¾¤Î¥ê¥¹¥È¤È¤·¤ÆÆþÎϤ·¤Þ ¤¹¡£Ê£¿ô¤Î¥Ñ¥¹¤«¤é¤Ê¤ë¥Ñ¥¹¥ê¥¹¥È¤Ï OS ¸ÇͤΥѥ¹¶èÀڤꡢÎ㤨¤Ð Unix ¤Ç ¤Ï¥³¥í¥ó (':'), MS-DOS, Windows, OS/2 ¤Ç¤Ï¥»¥ß¥³¥í¥ó (';') Åù¤Ç¶èÀÚ¤ê ¤Þ¤¹¡£show fontpath, save, save set ¥³¥Þ¥ó¥É¤Ï¡¢²ÄÈÂÀ¤Î¤¿¤á¤Ë OS ¸ÇͤΥѥ¹¶èÀÚ¤ê¤ò¥¹¥Ú¡¼¥¹ (' ') ¤ÇÃÖ¤´¹¤¨¤Þ¤¹¡£¥Ç¥£¥ì¥¯¥È¥ê̾¤¬¥¨ ¥¯¥¹¥¯¥é¥á¡¼¥·¥ç¥ó¥Þ¡¼¥¯ ('!') ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤â¸¡º÷¤µ¤ì¤Þ¤¹¡£
´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ÎÆâÍÆ¤Ï fontpath ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢¤½¤ì¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¥·¥¹¥Æ¥à¤Ë°Í¸¤·¤¿¥Ç¥Õ¥©¥ë ¥È¤ÎÃͤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£ºÇ½é¤Ë¥Õ¥©¥ó¥È¥Ñ¥¹¤ò»È¤Ã¤¿¤È¤¤Ë¡¢¤½¤Î´ö¤Ä¤«¤Î¥Ç ¥£¥ì¥¯¥È¥ê¤¬Â¸ºß¤¹¤ë¤«¥Æ¥¹¥È¤µ¤ì¡¢¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°ìÈֺǽé¤Î set fontpath, show fontpath, save fontpath ¤ä¡¢Ëä¤á¹þ¤ß¥Õ¥©¥ó¥È ¤ò»ÈÍѤ·¤¿¾ì¹ç¤Î plot, splot ¤Ï¡¢¾¯¤·»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¡£¤½¤ì¤ò¾¯¤· ¤Ç¤âû¤¯¤·¤¿¤±¤ì¤Ð¡¢´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤½¤¦ ¤¹¤ì¤Ð¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Á¥§¥Ã¥¯¤Ï OFF ¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥Ñ ¥¹¤¬²¿¤Ç¤¢¤ë¤«¤Ï¡¢show fontpath ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
show fontpath ¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î fontpath ¤È¥·¥¹¥Æ¥à¤Î fontpath ¤òÊÌ¡¹ ¤Ëɽ¼¨¤·¤Þ¤¹¤¬¡¢save, save set ¥³¥Þ¥ó¥É¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î fontpath ¤Î¤ß¤òÊݸ¤·¤Þ¤¹¡£
gd ¥é¥¤¥Ö¥é¥ê¤òÄ̤¸¤Æ¥Õ¥¡¥¤¥ë̾¤Ç¥Õ¥©¥ó¥È¤Ë¥¢¥¯¥»¥¹¤¹¤ë½ÐÎϥɥ饤¥Ð¤Ë ´Ø¤·¤Æ¤Ï¡¢¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¤Ï´Ä¶ÊÑ¿ô GDFONTPATH ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
set format {<axes>} {"<format-string>"} set format {<axes>} {'<format-string>'} show format
¤³¤³¤Ç¡¢<
axes>
(¼´) ¤Ï x, y, xy, x2, y2, z, cb¡¢¤Þ¤¿¤Ï²¿
¤â»ØÄꤷ¤Ê¤¤¤« (¤½¤Î¾ì¹ç¤½¤Î½ñ¼°¤Ï¤¹¤Ù¤Æ¤Î¼´¤ËŬÍѤµ¤ì¤Þ¤¹) ¤Î¤¤¤º¤ì¤«
¤Ç¤¹¡£°Ê²¼¤Î 2 ¤Ä¤Î¥³¥Þ¥ó¥É¤ÏÁ´¤¯Æ±Åù¤Ç¤¹:
set format y "%.2f" set ytics format "%.2f"
½ñ¼°Ê¸»úÎó¤ÎŤµ¤Ï 100 ʸ»ú¤Þ¤Ç¡¢¤ÈÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î½ñ¼° ʸ»úÎó¤Ï "% g" ¤Ç¤¹¤¬¡¢¡¢"%.2f" ¤ä "%3.0em" ¤Ê¤É¤Î½ñ¼°¤¬¹¥¤Þ¤ì¤ë¤³¤È¤â ¿¤¤¤Ç¤·¤ç¤¦¡£¡£LaTeX ÍѤˤϤ褯 "$%g$" ¤¬¹¥¤Þ¤ì¤Þ¤¹¡£½ñ¼°Ê¸»úÎó¤ò²¿¤âÍ¿¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢format ¤Ï¥Ç¥Õ¥©¥ë¥È¤ËÌá¤ê¤Þ¤¹¡£¶õʸ»úÎó "" ¤ò»ØÄꤷ¤¿ ¾ì¹ç¡¢¹ï¤ß¼«¿È¤Ïɽ¼¨¤µ¤ì¤Þ¤¹¤¬¸«½Ð¤·¤Ï¤Ä¤¤Þ¤»¤ó¡£¹ï¤ß¼«¿È¤ò¾Ã¤¹¤Ë¤Ï¡¢ unset xtics ¤Þ¤¿¤Ï set tics scale 0 ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°Ê¸»úÎó¤Ç¤Ï¡¢²þ¹Ôʸ»ú ( \ n) ¤ä³Èĥʸ»úÎó½èÍý (enhanced text) ÍÑ¤Î¥Þ ¡¼¥¯¥¢¥Ã¥×¤â»È¤¨¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ï¡¢Ã±°ì°úÍÑÉä (') ¤Ç¤Ê¤¯ (") ¤ò»È¤Ã¤Æ ¤¯¤À¤µ¤¤¡£°Ê²¼¤â»²¾È: syntax (24)¡£ "%" ¤¬Æ¬¤Ë¤Ä¤«¤Ê¤¤Ê¸»ú¤Ï¤½¤Î¤Þ¤Þɽ¼¨¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢½ñ¼°Ê¸»úÎóÆâ¤Ë¥¹¥Ú¡¼¥¹¤äʸ»úÎó¤Ê¤É¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Î㤨¤Ð "%g m" ¤È¤¹¤ì¤Ð¡¢ ¿ôÃͤθå¤Ë " m" ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"%" ¼«¿È¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ë¤Ï "%g %%" ¤Î ¤è¤¦¤Ë 2 ¤Ä½Å¤Í¤Þ¤¹¡£
¹ï¤ß¤Ë´Ø¤¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: set xtics (82.96)¡£¤Þ¤¿¡¢ ¤³¤ÎÊýË¡¤Ç½ÐÎϤµ¤ì¤ë¿ô»ú¤Ë¥Ç¥Õ¥©¥ë¥È°Ê³°¤Î¾®¿ôʬΥʸ»ú¤ò»È¤¦¤ä¤êÊý¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set decimalsign (82.17)¡£ °Ê²¼¤â»²¾È¡£
¥¨¥ì¥¯¥È¥í¥ó (ÅÅ»Ò) ¥Ç¥â (electron.dem).
ÌÜÀ¹¤ê¥é¥Ù¥ë¤Î¿ôÃͽñ¼°»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%f |
¸ÇÄê¾®¿ôÅÀɽµ |
%e , %E |
»Ø¿ôɽµ; »Ø¿ô¤ÎÁ°¤Ë "e", "E" ¤ò¤Ä¤±¤ë |
%g , %G |
%e (¤Þ¤¿¤Ï %E ) ¤È %f ¤Îάµ |
%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 (82.75)¡£
ÌÜÀ¹¤ê¥é¥Ù¥ë¤ÎÆü»þ½ñ¼°»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%a |
ÍËÆü̾¤Î¾Êά·Á (Sun,Mon,...) |
%A |
ÍËÆü̾ (Sunday,Monday,...) |
%b , %h |
·î̾¤Î¾Êά·Á (Jan,Feb,...) |
%B |
·î̾ (January,February,...) |
%d |
Æü (01-31) |
%D |
"%m/%d/%y" ¤Î´Êά·Á (½ÐÎϤΤß) |
%F |
"%Y-%m-%d" ¤Î´Êά·Á (½ÐÎϤΤß) |
%k |
»þ (0-23; 1 ·å¤Þ¤¿¤Ï 2 ·å) |
%H |
»þ (00-23; ¾ï¤Ë 2 ·å) |
%l |
»þ (1-12; 1 ·å¤Þ¤¿¤Ï 2 ·å) |
%I |
»þ (01-12; ¾ï¤Ë 2 ·å) |
%j |
¤½¤Îǯ¤ÎÄÌ»»Æü (1-366) |
%m |
·î (01-12) |
%M |
ʬ (0-60) |
%p |
"am" ¤Þ¤¿¤Ï "pm" |
%r |
"%I:%M:%S %p" ¤Î´Êά·Á (½ÐÎϤΤß) |
%R |
"%H:%M" ¤Î´Êά·Á (½ÐÎϤΤß) |
%S |
Éà (½ÐÎÏ¤Ç¤Ï 0-60 ¤ÎÀ°¿ô¡¢ÆþÎϤǤϼ¿ô) |
%s |
2000 ǯºÇ½é¤«¤é¤ÎÉÿô |
%T |
"%H:%M:%S" ¤Î´Êά·Á (½ÐÎϤΤß) |
%U |
¤½¤Îǯ¤ÎÄÌ»»½µ (½µ¤ÏÆüÍËÆü¤«¤é¤È¿ô¤¨¤ë) |
%w |
ÍËÆüÈÖ¹æ (0-6, ÆüÍË = 0) |
%W |
¤½¤Îǯ¤ÎÄÌ»»½µ (½µ¤Ï·îÍËÆü¤«¤é¤È¿ô¤¨¤ë) |
%y |
À¾Îñ (0-99¡¢1969-2068 ǯ¤Î²¼ 2 ·å) |
%Y |
À¾Îñ (4 ·å) |
¿ô»ú¤òɽ¤¹½ñ¼°¤Ç¤Ï¡¢¤³¤ì¤é¤Î»ØÄê»Ò (% ¤Î¸å¤í¡¢»ØÄê»Ò¤ÎÁ°) ¤Ë "0" ("¥ª¡¼" ¤Ç¤Ê¤¯ "¥¼¥í") ¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢ÀèƬ¤Ë¶õÇò¤¬¤Ç¤¤ë¾ì¹ç¤Ë¶õÇò¤Î Âå¤ï¤ê¤Ë 0 ¤ÇËä¤á¤ë¤³¤È¤¬¤Ç¤¡¢¤Þ¤¿ºÇ¾®¤Î½ÐÎÏÉý¤òÀµ¤ÎÀ°¿ô¤Ç»ØÄꤹ¤ë¤³ ¤È¤â¤Ç¤¤Þ¤¹ (½ÐÎϤµ¤ì¤ë¿ô»ú¤òɽ¼¨¤¹¤ë¤Î¤Ë»ØÄꤷ¤¿Éý¤¬Â¤ê¤Ê¤¤¾ì¹ç¤Ï̵ »ë¤µ¤ì¤Þ¤¹)¡£½ñ¼° %S ¤Ï¼Â¿ô»ØÄê¤â¼õ¤±¤Ä¤±¤Þ¤¹¤Î¤Ç¡¢¾®¿ôÉäâ½ñ¤±¤Þ¤¹¡£ ɽ¼¨¤¹¤ëʸ»ú¤ÎŤµ¤Ï 24 ʸ»ú¤Þ¤Ç¡¢¤È¤¤¤¦À©¸Â¤¬¤¢¤ê¡¢Ä¹¤¹¤®¤¿Éôʬ¤ÏÀÚ¤ê ¼Î¤Æ¤é¤ì¤Þ¤¹¡£
Îã:
Æü»þ¤Î¥Ç¡¼¥¿¤¬ "76/12/25 23:11:11" ¤Î¾ì¹ç
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"
Æü»þ¤Î¥Ç¡¼¥¿¤¬ "98/07/06 05:04:03.123456" ¤Î¾ì¹ç
set format x "%1y/%2m/%3d %01H:%02M:%06.3S" # "98/ 7/ 6 5:04:03.123"
½ñ¼°:
show functions
gnuplot ¤Ë¤ª¤±¤ë´Ø¿ô¤ÎÄêµÁ¤È¤½¤Î»È¤¤Êý¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:expressions (14)¡£ °Ê²¼¤â»²¾È
¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ç¤Î¥¹¥×¥é¥¤¥ó (spline.dem)
¤ª¤è¤Ó
´Ø¿ô¤ÈÊ£ÁÇÊÑ¿ô¤òÍã¤Ë»ÈÍÑ (airfoil.dem)¡£
½ñ¼°:
set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics} {{no}{m}x2tics} {{no}{m}y2tics} {{no}{m}cbtics} {polar {<angle>}} {layerdefault | front | back} { {linestyle <major_linestyle>} | {linetype | lt <major_linetype>} {linewidth | lw <major_linewidth>} { , {linestyle | ls <minor_linestyle>} | {linetype | lt <minor_linetype>} {linewidth | lw <minor_linewidth>} } } unset grid show grid
³Ê»ÒÀþ¤ÏǤ°Õ¤Î¼´¤ÎǤ°Õ¤Î¼çÌÜÀ¹/ÉûÌÜÀ¹¤ËÂФ·¤Æ͸ú/̵¸ú¤Ë¤Ç¤¡¢¤½¤Î¼çÌÜ À¹¤ê¤ÈÉûÌÜÀ¹¤ê¤ËÂФ¹¤ëÀþ¼ï¡¢ÀþÉý¤â»ØÄê¤Ç¤¡¢¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý¡¼¥È¤¹ ¤ëÈϰϤǡ¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¤µ¤é¤Ë¡¢2 ¼¡¸µ¤ÎÉÁ²è¤Ç¤Ï¶ËºÂɸ³Ê»Ò¤â»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ÄêµÁ²Äǽ¤Ê¶è´Ö ¤ËÂФ·¤Æ¡¢ÁªÂò¤µ¤ì¤¿ÌÜÀ¹¤ê¤òÄ̤ëƱ¿´±ß¤ÈÃæ¿´¤«¤é¤ÎÊü¼Í¾õ¤ÎÀþ¤¬ÉÁ¤«¤ì¤Þ ¤¹ (¤½¤Î¶è´Ö¤Ï set angles ¤ÎÀßÄê¤Ë¤·¤¿¤¬¤Ã¤ÆÅÙ¡¢¤Þ¤¿¤Ï¥é¥¸¥¢¥ó¤Ç»ØÄê ¤·¤Þ¤¹)¡£¶ËºÂɸ³Ê»Ò¤Ï¸½ºß¤Ï¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï¼«Æ°Åª¤Ë¤ÏÀ¸À®¤µ¤ì¤Ê¤¤¤³¤È ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
set grid ¤¬ÉÁ¤¯Á°¤Ë¡¢É¬ÍפÊÌÜÀ¹¤ê¤Ï͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ gnuplot ¤Ï¡¢Â¸ºß¤·¤Ê¤¤ÌÜÀ¹¤ê¤ËÂФ¹¤ë³Ê»Ò¤ÎÉÁ²è¤ÎÌ¿Îá¤Ïñ¤Ë̵»ë¤·¤Þ¤¹¡£ ¤·¤«¤·¡¢¸å¤Ç¤½¤ÎÌÜÀ¹¤ê¤¬Í¸ú¤Ë¤Ê¤ì¤Ð¤½¤ì¤ËÂФ¹¤ë³Ê»Ò¤âÉÁ¤¤Þ¤¹¡£
Éû³Ê»ÒÀþ¤ËÂФ¹¤ëÀþ¼ï¤ò²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¼ç³Ê»ÒÀþ¤ÈƱ¤¸Àþ¼ï¤¬»È¤ï¤ì¤Þ ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶ËºÂɸ¤Î³ÑÅÙ¤Ï 30 Å٤Ǥ¹¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È ¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤Ç³Ê»ÒÀþ¤¬¸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï layerdefault ¤Ç¡¢¤³¤ì¤Ï 2D ÉÁ²è¤Ç¤Ï back ¤ÈƱ¤¸¤Ç¤¹¡£ 3D ÉÁ²è¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢³Ê»Ò¤È¥°¥é¥Õ¤ÎÏȤò 2 ¤Ä¤ÎÉÁ²èñ°Ì¤ËʬΥ¤·¡¢³Ê»Ò ¤Ï¸å¤í¤Ë¡¢ÏȤÏÉÁ²è¥Ç¡¼¥¿¤Þ¤¿¤Ï´Ø¿ô¤ÎÁ°¤Ë½ñ¤¤Þ¤¹¡£¤¿¤À¤·¡¢hidden3d ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤ì¤¬¤½¤ì¼«¿È¤ÎʤӴ¹¤¨¤ò¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢³Ê»ÒÀþ¤Î½çÈ֤Υª ¥×¥·¥ç¥ó¤ÏÁ´¤Æ̵»ë¤µ¤ì¡¢³Ê»ÒÀþ¤â±£Àþ½èÍý¤Ë¤«¤±¤é¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢¼ÂºÝ¤Ë¤Ï³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢set border ¤Ë¤è¤ë¶³¦Àþ¤È¤½¤ÎÌÜÀ¹ ¤ê¤Î¹ï¤ß (°Ê²¼»²¾È: set xtics (82.96)) ¤Ë¤â±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£
z ¤Î³Ê»ÒÀþ¤ÏÉÁ²è¤ÎÄìÌ̤ËÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¼þ¤ê¤ËÉôʬŪ¤ÊÈ¢¤¬ÉÁ²è ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: set border (82.7)¡£
½ñ¼°:
set hidden3d {defaults} | { {front|back} {{offset <offset>} | {nooffset}} {trianglepattern <bitpattern>} {{undefined <level>} | {noundefined}} {{no}altdiagonal} {{no}bentover} } unset hidden3d show hidden3d
gnuplot ¤ÎÄ̾ï¤Îɽ¼¨¤È¤Ï°Û¤Ê¤ê¡¢±£Àþ½èÍý¤Ç¤ÏÍ¿¤¨¤é¤ì¤¿´Ø¿ô¡¢¤Þ¤¿¤Ï¥Ç¡¼ ¥¿¤Î³Ê»ÒÀþ¤ò¡¢¼ÂºÝ¤Î¶ÊÌ̤¬¤½¤Î¶ÊÌ̤ÎÇظå¤Ë¤¢¤Ã¤Æ±£¤µ¤ì¤Æ¤¤¤ëÉÁ²èÍ×ÁÇ¤Ï ¸«¤»¤Ê¤¤¤Î¤ÈƱ¤¸¤è¤¦¤Ë½èÍý¤·¤Þ¤¹¡£¤³¤ì¤¬µ¡Ç½¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¤½¤Î¶ÊÌ̤¬ '³Ê»Ò¾õ' (°Ê²¼»²¾È: splot datafile (84.1)) ¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¡¢¤Þ¤¿¤½¤ì¤é¤Ï with lines ¤« with linespoints ¤ÇÉÁ¤«¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
hidden3d ¤¬Í¸ú¤Ê¤È¤¤Ï¡¢³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢ÌÌÉôʬ¤äÅÚÂæ¤Î¾å¤ÎÅù¹âÀþ (°Ê²¼»²¾È: set contour (82.14)) ¤â±£¤µ¤ì¤Þ¤¹¡£Ê£¿ô¤ÎÌ̤òÉÁ²è¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ³Æ¶ÊÌ̤ϼ«Ê¬¼«¿È¤È¾¤Î¶ÊÌ̤DZ£¤µ¤ì¤ëÉôʬ¤â»ý¤Á¤Þ¤¹¡£¶ÊÌ̾å¤Ø¤ÎÅù¹âÀþ¤Î ɽ¼¨ (set contour surface) ¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£
¸«½Ð¤·¤ÈÌð°õ¤Ï¾ï¤Ëɽ¼¨¤µ¤ì¡¢±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó¡£¥°¥é¥Õ¤ÎÀâÌÀ (key) ¤â¶Ê Ì̤˱£¤µ¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£gnuplot ¥Ð¡¼¥¸¥ç¥ó 4.6 ¤Ç¤Ï¡¢¥°¥é¥Õ¾å¤Ë ¶ÊÌ̤¬°ì¤Ä¤â¤Ê¤¤¾õÂ֤Ǥ⡢hidden3d ¤Ï points, labels, vectors, impulses ¤Î 3 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¥°¥é¥ÕÆâ¤Î³Æ¡¹¤ÎÉÁ ²è¤ò¤³¤Î½èÍý¤«¤éÌÀ¼¨Åª¤Ë½ü³°¤·¤¿¤¤¤È¤¤Ï¡¢with »ØÄê¤ËÆÃÊ̤Υª¥×¥·¥ç ¥ó nohidden3d ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£
hidden3d ¤Ï¡¢pm3d ¥â¡¼¥É¤ÇÉÁ²è¤µ¤ì¤¿¡¢ÅɤêÄÙ¤µ¤ì¤¿¶ÊÌ̤ˤϱƶÁ¤òÍ¿¤¨¤Þ ¤»¤ó¡£pm3d ¤Î¶ÊÌ̤ËÂФ·¤ÆƱÍͤθú²Ì¤ò½ã¿è¤ËÆÀ¤¿¤¤¤Ê¤é¤Ð¡¢¤³¤ì¤ÎÂå¤ï¤ê ¤Ë set pm3d depthorder ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ê£¿ô¤Î pm3d ¶ÊÌ̤ËÄ̾ï¤Î hidden3d ½èÍý¤òÁȤ߹ç¤ï¤»¤ë¤Ë¤Ï¡¢hidden3d ½èÍý¤ÎÁ´¤Æ¤ÎÍ×ÁǤò¶¯À©Åª¤Ë »Ä¤ê¤Î¾¤ÎÉÁ²èÍ×ÁǤθå¤ËÉÁ²è¤¹¤ë¤¿¤á¤Î¥ª¥×¥·¥ç¥ó set hidden3d front ¤ò»ÈÍѤ·¡¢¤½¤·¤Æ¶ÊÌ̤ò 2 ÅÙÉÁ²è¤·¤Æ¤¯¤À¤µ¤¤¡£ºÇ½é¤Ï with lines lt -2 ¤Ç¡¢2 ÅÙÌÜ¤Ï with pm3d ¤ÇÉÁ²è¤·¤Þ¤¹¡£ºÇ½é¤ÎÊý¤Ç¤Ï¡¢±£¤µ¤ì¤ëÉÁ²èÍ×ÁÇ ¤Î·×»»¤ò¹Ô¤Ã¤Æ¤¤¤ë´Ö¤Ï±£¤¹Êý¤Î¶ÊÌ̤â´Þ¤Þ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¼ÂºÝ¤Ë¤Ï¤½¤Î ¶ÊÌ̼«ÂΤÏÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£
´Ø¿ôÃͤϳʻҸÉΩÀþ¤Î¸òÅÀ¤Çɾ²Á¤µ¤ì¤Þ¤¹¡£¸«¤ë¤³¤È¤Î½ÐÍè¤ëÀþʬ¤òµá¤á¤ë¤È ¤¤Ï¸Ä¡¹¤Î´Ø¿ôÃÍ¡¢¤¢¤ë¤¤¤Ï¥Ç¡¼¥¿ÅÀ¤Î´Ö¤Ï¤½¤Î¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤Ã¤ÆÀþ·ÁÊä ´Ö¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢hidden3d ¤ÇÉÁ²è¤¹¤ë¾ì¹ç¤È nohidden3d ¤ÇÉÁ²è¤¹ ¤ë¾ì¹ç¤Ç´Ø¿ô¤Î¸«¤«¤±¤¬°Û¤Ê¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤Ð¡¢¸å¼Ô¤Î¾ì¹ç´Ø ¿ôÃͤϳÆɸËÜÅÀ¤Çɾ²Á¤µ¤ì¤ë¤«¤é¤Ç¤¹¡£¤³¤Î°ã¤¤¤Ë´Ø¤¹¤ëµÄÏÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: set samples (82.64), set isosamples (82.29)¡£
¶ÊÌ̤ᣤµ¤ì¤ëÉôʬ¤ò¾Ãµî¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ç À©¸æ¤µ¤ì¤ë¤¤¤¯¤Ä¤«¤ÎÄɲ媥ץ·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£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 ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼¤â»²¾È
¤ª¤è¤Ó
Ê£»¨¤Ê±£Àþ¤Î¥Ç¥â (singulr.dem).
½ñ¼°:
set historysize <int> unset historysize
historysize ¤ÎÃͤϡ¢gnuplot ¤Î½ªÎ»»þ¤Ë history ¤Î¹Ô¤ò¹â¡¹¤½¤Î¹Ô¿ô¤Þ¤Ç ¤ËÀÚ¤ê¼Î¤Æ¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 500 ¤Ç¤¹¡£ unset historysize ¤Ï history ¤ÎÀڼΤƤò̵¸ú¤Ë¤·¤Þ¤¹¤Î¤Ç¡¢history ¥Õ ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹¹Ô¿ô¤ÎÀ©¸Â¤ò¤·¤Þ¤»¤ó¡£
½ñ¼°:
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 (82.64),set hidden3d (82.27)¡£Åù¹âÀþÉÁ²è¥ë¡¼¥Á¥ó¤Ï¡¢´Ø¿ô¤ÎÅÀ¤ÎɸËܲ½¤Ï³Æ¸ÉΩÀþ¤Î¸òÅÀ ¤Ç¹Ô¤ï¤ì¤ë¤È²¾Äꤷ¤Æ¤¤¤ë¤Î¤Ç¡¢´Ø¿ô¤Î¶ÊÌ̤ÈÅù¹âÀþ¤Î²òÁüÅÙ¤òÊѹ¹¤¹¤ë¤È¤ ¤Ï¡¢isosamples ¤ÈƱ¤¸¤è¤¦¤Ë samples ¤òÊѹ¹¤¹¤ë¤Î¤¬Ë¾¤Þ¤·¤¤¤Ç¤·¤ç¤¦¡£
ÀâÌÀ (key) ¤ÎÆâÍÆ¡¢¤¹¤Ê¤ï¤ÁÉÁ²è¤µ¤ì¤ë¸Ä¡¹¤Î¥Ç¡¼¥¿½¸¹ç¤ä´Ø¿ô¤Ë¤Ä¤±¤ë̾ Á°¡¢¤ª¤è¤Ó¤½¤ì¤é¥°¥é¥Õ¤Î¶ÊÀþ¤È¥°¥é¥Õ¾å¤ÎÅÀ¤òɽ¤¹µ¹æ¤«¤é¤Ê¤ë¥µ¥ó¥×¥ë¤Ï¡¢ plot (¤Þ¤¿¤Ï splot) ¥³¥Þ¥ó¥É¤Î title, with ¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê·è Äꤵ¤ì¤Þ¤¹¡£¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plot title (72.10),plot with (72.11)¡£
½ñ¼°:
set key {on|off} {default} {{inside | outside} | {lmargin | rmargin | tmargin | bmargin} | {at <position>}} {left | right | center} {top | bottom | center} {vertical | horizontal} {Left | Right} {{no}opaque} {{no}reverse} {{no}invert} {samplen <sample_length>} {spacing <vertical_spacing>} {width <width_increment>} {height <height_increment>} {{no}autotitles {columnheader}} {title "<text>"} {{no}enhanced} {font "<face>,<size>"} {textcolor <colorspec>} {{no}box { {linestyle | ls <line_style>} | {linetype | lt <line_type>} {linewidth | lw <line_width>}}} {maxcols {<max no. of columns> | auto}} {maxrows {<max no. of rows> | auto}} unset key show key
¥¡¼ (ÀâÌÀ) ¤Ï¡¢¥°¥é¥ÕÆâ¤Î³ÆÉÁ²è¤ËÂФ¹¤ë¥¿¥¤¥È¥ë¤È¥µ¥ó¥×¥ë (ËÞÎã; Àþ¡¢ ÅÀ¡¢È¢) ¤«¤éÀ®¤ê¤Þ¤¹¡£¥¡¼¤Îµ¡Ç½¤Ï¡¢set key off ¤Þ¤¿¤Ï unset key ¤Ç̵¸ú¤Ë¤Ç¤¤Þ¤¹¡£¸Ä¡¹¤Î¥¡¼¤Î¥¨¥ó¥È¥ê¤Ï¡¢Âбþ¤¹¤ë plot ¥³¥Þ¥ó¥ÉÆâ¤Ë¥ ¡¼¥ï¡¼¥É notitle ¤ò»È¤¦¤³¤È¤Ç̵¸ú¤Ë¤Ç¤¤Þ¤¹¡£
¥¡¼Æâ¤Î³ÆÍ×ÁÇ¤Ï vertical (½Ä) ¤Þ¤¿¤Ï horizontal (²£) ¤Ë½¾¤Ã¤Æ½Å¤Í ¤é¤ì¤Þ¤¹¡£vertical ¤Î¾ì¹ç¡¢key ¤Ï²Äǽ¤Ê¤é¤Ð 2,3 ¸Ä¤Î½Ä¤ÎÎó¤ò»È¤¤¤Þ¤¹¡£ ¤¹¤Ê¤ï¤Á¡¢³ÆÍ×ÁǤϿâľ¥¹¥Ú¡¼¥¹¤¬¤Ê¤¯¤Ê¤ë¤Þ¤Ç¤Ï 1 ¤Ä¤ÎÎó¤ËÀ°Î󤵤ì¤Þ¤¹ ¤¬¡¢¤½¤³¤«¤é¿·¤·¤¤Î󤬳«»Ï¤µ¤ì¤Þ¤¹¡£¿âľ¥¹¥Ú¡¼¥¹¤Ï¡¢maxrows ¤ò»È¤Ã¤Æ À©¸Â¤Ç¤¤Þ¤¹¡£horizontal ¤Î¾ì¹ç¤Ï¡¢key ¤Ï²£¤Î¹Ô¤ò¤Ç¤¤ë¤À¤±¾¯¤Ê¤¯»È ¤ª¤¦¤È¤·¤Þ¤¹¡£¿åÊ¿Êý¸þ¤Î¥¹¥Ú¡¼¥¹¤Ï maxcols ¤Ë¤è¤êÀ©¸Â¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢key ¤Ï¥°¥é¥ÕÎΰè¤ÎÆ⦤α¦¾å¤Î³Ñ¤ËÃÖ¤«¤ì¤Þ¤¹¡£¥¡¼¥ï¡¼ ¥É left, right, top, bottom, center, inside, outside, lmargin, rmargin, tmargin, bmargin (, above, over, below, under) ¤Ï¡¢¥°¥é¥ÕÎΰè¤Î¾¤Î¾ì½ê¤Ø¤Î¼«Æ°Åª¤ÊÇÛÃ֤Τ¿¤á¤Ë»ÈÍѤ·¤Þ¤¹¡£ key ¤ÎÉÁ²è¤ò¤É¤³¤ËÃÖ¤¯¤«¤ò¤è¤ê¾Ü¤·¤¯»Ø¼¨¤¹¤ë¤¿¤á¤Î at < position> ¤â ¤¢¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥¡¼¥ï¡¼¥É left, right, top, bottom, center ¤¬Æ±Íͤδð½àÅÀ¹ç¤ï¤»¤ÎÀßÄê¤ÎÌÜŪ¤Ç»È¤ï¤ì¤Þ¤¹¡£ ¤è¤ê¾Ü¤·¤¯¤Ï¡¢°Ê²¼»²¾È: key placement (82.30.1)¡£
¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤Î¹Ô·¤¨¤Ï Left, Right (¥Ç¥Õ¥©¥ë¥È) ¤Ç»Ø¼¨¤· ¤Þ¤¹¡£¥é¥Ù¥ëʸ»úÎó¤È¶ÊÀþ¤Î¥µ¥ó¥×¥ë¤Ïº¸±¦Æþ¤ìÂؤ¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹ (reverse) ¤·¡¢ Á´ÂΤòÏȤǰϤळ¤È¤â¤Ç¤¤Þ¤¹ (box {...})¡£¤½¤ÎÏȤΠÀþ¤Ï¡¢Àþ¼ï (linetype), ÀþÉý (linewidth)¡¢¤¢¤ë¤¤¤ÏÄêµÁºÑ¤Î¥é¥¤¥ó¥¹ ¥¿¥¤¥ë (linestyle) ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢key ¤Ï°ì¤Ä¤Î¥°¥é¥Õ¤ÈƱ»þ¤Ëºî¤é¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢key ¤Î µ¹æ¤È¥¿¥¤¥È¥ë¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¥°¥é¥Õ¤ÈƱ»þ¤ËÉÁ¤«¤ì¤Þ¤¹¡£¤½¤ì¤Ï¡¢¿·¤· ¤¤¥°¥é¥Õ¤¬»þ¤Ë¤Ï key ¤Î¾å¤ËÍ×ÁǤò¤«¤Ö¤»¤ÆÇÛÃÖ¤·¤¦¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ set key opaque ¤Ï¡¢key ¤ò¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤ÎÉÁ²è¤¬½ª¤Ã¤¿¸å¤ËÀ¸À®¤µ¤»¤Þ ¤¹¡£¤³¤Î¾ì¹ç¡¢key ¤ÎÎΰè¤ÏÇØ·Ê¿§¤ÇÅɤê¤Ä¤Ö¤µ¤ì¤Æ key ¤Îµ¹æ¤È¥¿¥¤¥È¥ë ¤¬ÉÁ¤«¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢key ¼«¿È¤Ï¤¤¤¯¤Ä¤«¤ÎÉÁ²èÍ×ÁǤòʤ¤¤±£¤·¤Æ¤·¤Þ¤¤ÆÀ ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£set key noopaque ¤Ç¥Ç¥Õ¥©¥ë¥È¤ËÉüµ¢¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ºÇ½é¤ÎÉÁ²è¤Î¥é¥Ù¥ë¤¬ÀâÌÀ¤Î°ìÈÖ¾å¤Ë¸½¤ï¤ì¡¢¤½¤ì¤Ë³¤¯¥é ¥Ù¥ë¤¬¤½¤Î²¼¤Ëʤó¤Ç¹Ô¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó invert ¤Ï¡¢ºÇ½é¤Î¥é¥Ù¥ë¤òÀâ ÌÀ¤Î°ìÈÖ²¼¤ËÃÖ¤¡¢¤½¤ì¤Ë³¤¯¥é¥Ù¥ë¤ò¤½¤Î¾å¤Ëʤ٤ƹԤ¤Þ¤¹¡£¤³¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢ÀâÌÀ¤Î¥é¥Ù¥ë¤Î½Ä¤ÎʤӤνçÈÖ¤ò¡¢ÀѤ߾夲·Á¼°¤Î¥Ò¥¹¥È¥°¥é¥à (histograms) ¤ÎÈ¢¤Î½çÈ֤˹ç¤ï¤»¤ë¤È¤¤ËÊØÍø¤Ç¤·¤ç¤¦¡£
< height_increment> ¤Ï¡¢ÀâÌÀ¤ÎÈ¢¤Î¹â¤µ¤Ë²Ã¤¨¤¿¤ê¸º¤é¤·¤¿¤ê¤¹¤ë¹â¤µ (²¿ ʸ»úʬ¤«) ¤òɽ¤¹¿ôÃͤǤ¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢ÀâÌÀ¤Î²ó¤ê¤ËÈ¢¤òÉÁ¤¯¾ì¹ç¤Ç¡¢ÀâÌÀ ¤ÎʤӤβó¤ê¤Î¶³¦Àþ¤ò¤è¤êÂ礤¯¤·¤¿¤¤¾ì¹ç¤Î¤â¤Î¤Ç¤¹¡£
plot ¤ä splot ¤ÇÉÁ²è¤µ¤ì¤ëÁ´¤Æ¤Î¶ÊÀþ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó autotitles ¤Ë½¾¤Ã¤ÆɽÂê (title) ¤¬¤Ä¤±¤é¤ì¤Þ¤¹¡£É½Âê¤Î¼«Æ°À¸À®¤Ï¡¢ noautotaitle ¤ÇÍÞÀ©¤Ç¤¤Þ¤¹¤¬¤½¤Î¾ì¹ç¡¢(s)plot ... title ... ¤ÇÌÀ ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿É½Âê¤Î¤ß¤¬ÉÁ¤«¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
¥³¥Þ¥ó¥É set key autotitle columnheader ¤Ï¡¢³ÆÆþÎϥǡ¼¥¿¤ÎÀèƬ¹Ô¤Î³Æ Îó¤Î¥¨¥ó¥È¥ê¤ò¥Æ¥¥¹¥Èʸ»úÎó¤È²ò¼á¤·¡¢Âбþ¤¹¤ëÉÁ²è¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤È¤· ¤Æ»ÈÍѤ·¤Þ¤¹¡£ÉÁ²è¤µ¤ì¤ëÎ̤¬¡¢Ê£¿ô¤ÎÎó¥Ç¡¼¥¿¤Î´Ø¿ô¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢ gnuplot ¤Ï¤É¤ÎÎó¤ò¥¿¥¤¥È¥ë¤ÎÉÁ²è¤Ë»È¤¨¤Ð¤¤¤¤¤Î¤«¤ï¤«¤ê¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î ¤è¤¦¤Ê¾ì¹ç¡¢plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤ËÌÀ¼¨Åª¤Ë¥¿¥¤¥È¥ë¤ÎÎó¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines
Á´ÂΤËÅϤëɽÂê¤ÏÀâÌÀ¤Î¾å¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç¤¤Þ¤¹ (title "< text> ")¡£Ã± °ì°úÍÑÉä (') ¤ÈÆó½Å°úÍÑÉä (") ¤Î°ã¤¤¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: syntax (24)¡£ ÀâÌÀ¤ÎɽÂê¤Î¹Ô·¤¨¤Ï¡¢¥°¥é¥Õ¤ÎɽÂê¤Î¹Ô·¤¨¤ÈƱ¤¸¤â¤Î¤¬»È¤ï¤ì¤Þ¤¹¡£
set key ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢on, right, top, vertical, Right, noreverse, noinvert, samplen 4, spacing 1.25, title "", nobox ¤Ç¤¹¡£ÀâÌÀ¤ÎÏȤÎÀþ¼ï¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥°¥é¥ÕÉÁ²è¤Î³°ÏȤÈƱ¤¸¤â¤Î ¤¬»È¤ï¤ì¤Þ¤¹¡£set key default ¤È¤¹¤ë¤È¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ËÌá¤ê¤Þ¤¹¡£
ÀâÌÀ¤Ï¡¢1 ¹Ô¤Ë 1 ¶ÊÀþʬ¤º¤Ä¤Î¿ô¹Ô¤Î¤Þ¤È¤Þ¤ê¤È¤·¤Æ½ñ¤«¤ì¤Þ¤¹¡£³Æ¹Ô¤Î±¦ ¦¤Ë¤Ï (reverse ¤ò»È¤Ã¤Æ¤¤¤ì¤Ðº¸Â¦¤Ë¤Ï) ¤½¤Î¶ÊÀþ¤ÈƱ¤¸¼ïÎà¤ÎľÀþ¤Î¥µ ¥ó¥×¥ë¤¬°ú¤«¤ì¡¢Â¾¤Î¦¤Ë¤Ï plot ¥³¥Þ¥ó¥É¤«¤éÆÀ¤é¤ì¤ëʸ»úÎó (title) ¤¬ÃÖ¤«¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¹Ô¤Ï¡¢²Í¶õ¤ÎľÀþ¤¬ÀâÌÀ¤Îº¸Â¦¤È±¦Â¦¤òʬ¤±¤ë¤«¤Î¤è ¤¦¤Ë¿âľ¤ËÀ°Î󤵤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É set key ¤Ç»ØÄꤹ¤ëºÂɸ¤Ï¤³¤Î²Í¶õ¤Î Àþʬ¤Î¾å¤Îü¤ÎºÂɸ¤Ç¤¹¡£plot ¤Ç¤ÏľÀþ¤Î°ÌÃÖ¤ò»ØÄꤹ¤ë¤¿¤á¤Ë x ¤È y ¤À¤±¤¬»È¤ï¤ì¡¢splot ¤Ç¤Ï¡¢x, y, z ¤ÎÃÍÁ´¤Æ¤ò»È¤¤¡¢¥°¥é¥Õ¤ò 2 ¼¡¸µÌÌ ¤ØÅê±Æ¤¹¤ë¤Î¤ÈƱ¤¸ÊýË¡¤ò»È¤Ã¤Æ¡¢²Í¶õ¤ÎľÀþ¤Î 2 ¼¡¸µ²èÌ̤ǤΰÌÃÖ¤òÀ¸À® ¤·¤Þ¤¹¡£
TeX ¤ä¡¢À°·Á¾ðÊó¤¬Ê¸»úÎó¤ËËä¤á¹þ¤Þ¤ì¤ë½ÐÎϤò»È¤¦¾ì¹ç¤Ï¡¢gnuplot ¤ÏÀâ ÌÀ¤Î°ÌÃÖ¹ç¤ï¤»¤Î¤¿¤á¤Îʸ»úÎó¤ÎÉý¤òÀµ¤·¤¯É¾²Á¤¹¤ë¤³¤È¤·¤«¤Ç¤¤Þ¤»¤ó¡£¤è ¤Ã¤ÆÀâÌÀ¤òº¸¤ËÃÖ¤¯¾ì¹ç¤Ï set key left Left reverse ¤È¤¤¤¦Áȹ礻¤ò»È ¤¦¤Î¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£
splot ¤ÇÅù¹âÀþ¤ò½ñ¤¯¾ì¹ç¡¢ÀâÌÀ¤Ë¤ÏÅù¹âÀþ¤Î¥é¥Ù¥ë¤âɽ¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥é¥Ù¥ë¤ÎʤӶñ¹ç¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¡¢¤Þ¤¿¤ÏÊ̤ʰÌÃ֤˾®¿ôÅÀ¤ò ÃÖ¤¤¿¤¤¾ì¹ç¤Ï¤½¤Î¥é¥Ù¥ë¤Î½ñ¼°¤ò»ØÄê¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:set clabel (82.9)¡£
Îã:
°Ê²¼¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃÖ¤ËÀâÌÀ¤òɽ¼¨¤·¤Þ¤¹:
set key default
°Ê²¼¤ÏÀâÌÀ¤òɽ¼¨¤·¤Ê¤¯¤·¤Þ¤¹:
unset key
°Ê²¼¤Ï¥Ç¥Õ¥©¥ë¥È¤Î (Âè°ì¤Î) ºÂɸ·Ï¤Ç¤Î (2,3.5,2) ¤Î°ÌÃÖ¤ËÀâÌÀ¤òɽ¼¨
¤·¤Þ¤¹:
set key at 2,3.5,2
°Ê²¼¤ÏÀâÌÀ¤ò¥°¥é¥Õ¤Î²¼¤Ëɽ¼¨¤·¤Þ¤¹:
set key below
°Ê²¼¤ÏÀâÌÀ¤òº¸²¼³Ñ¤Ëɽ¼¨¤·¡¢¥Æ¥¥¹¥È¤Ïº¸¤Ë¹Ô·¤¨¤Ç¡¢¥¿¥¤¥È¥ë¤ò¤Ä¤±¡¢Àþ¼ï 3 ¤Î³°ÏȤò½ñ¤¤Þ¤¹:
set key left bottom Left title 'Legend' box 3
¥â¡¼¥É inside ¤Ç¤Ï¡¢key ¤Ï¥¡¼¥ï¡¼¥É 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 ¤Ç¤â¾å¤ÈƱÍͤ˼«Æ°Åª¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¤¬¡¢¥°¥é¥ÕÎΰè¤Î¶ ³¦¤ËÂФ·¤Æ¡¢¤È¤¤¤¦¤è¤ê¤â¤à¤·¤í¸«¤¿ÌܤËÂФ·¤Æ¡¢¤È¤¤¤¦¤Ù¤¤Ç¤·¤ç¤¦¡£¤¹¤Ê ¤ï¤Á¡¢¥°¥é¥Õ¤Î¶³¦¤Ï¡¢¥°¥é¥ÕÎΰè¤Î³°¤Î key ¤Î¾ì½ê¤òºî¤ë¤¿¤á¤Ë¡¢Æâ¦¤Ë °ÜÆ°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¾¤Î¥é¥Ù¥ë¤Î¼ÙËâ¤ò¤·¤Þ¤¹¤·¡¢¤â¤· ¤«¤·¤¿¤é½ÐÎϥǥХ¤¥¹¤Ë¤è¤Ã¤Æ¤Ï¥¨¥é¡¼¤ò°ú¤µ¯¤³¤¹¤«¤â¤·¤ì¤Þ¤»¤ó¡£key ¤Î ½ÐÎϤ˹ç¤ï¤»¤Æ¤É¤ÎÉÁ²è¶³¦¤¬°ÜÆ°¤¹¤ë¤«¤Ï¡¢¾å¤Ë½Ò¤Ù¤¿ key ¤Î°ÌÃÖ¡¢¤ª¤è ¤Ó½Å¤Í¾å¤²¤ÎÊý¸þ¤Ë°Í¸¤·¤Þ¤¹¡£4 Êý¸þ¤ÎÃ濴·¤¨¤Î¥ª¥×¥·¥ç¥ó (center) ¤Ë´Ø¤·¤Æ¤Ï¡¢¤É¤Î¶³¦¤¬Æ°¤¯¤Î¤«¤Ë´Ø¤¹¤ë¤¢¤¤¤Þ¤¤¤µ¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢³Ñ¤Ø¤Î ½ÐÎϤΥª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢½Å¤Í¾å¤²Êý¸þ¤¬ vertical ¤Î¾ì¹ç¤Ïº¸¤Þ¤¿¤Ï ±¦¤Î¶³¦¤¬¡¢horizontal ¤Î¾ì¹ç¤Ï¾å¤Þ¤¿¤Ï²¼¤Î¶³¦¤¬¡¢¤½¤ì¤¾¤ìÆ⦤ËŬ Àڤ˰ÜÆ°¤·¤Þ¤¹¡£
;Çò (margin) ¤Î½ñ¤Êý¤Ï¡¢½Å¤Í¾å¤²¤ÎÊý¸þ¤Ë¤«¤«¤ï¤Ê¤¤¼«Æ°Åª¤ÊÇÛÃÖ¤ò²Äǽ ¤Ë¤·¤Æ¤¤¤Þ¤¹¡£lmargin (lm), rmargin (rm), tmargin (tm), bmargin (bm) ¤Î¤¦¤Á¤Î°ì¤Ä¤ò¡¢Ì·½â¤·¤Ê¤¤ 1 Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤ÈÁȤ߹ç¤ï ¤»¤Æ»ÈÍѤ·¤¿¾ì¹ç¡¢°Ê²¼¤Î¿Þ¤Ë¼¨¤·¤¿¾ì½ê¤Ë key ¤¬ÇÛÃÖ¤µ¤ì¤Þ¤¹:
l/tm c/tm r/tm
t/lm t/rm
c/lm c/rm
b/lm b/rm
l/bm c/bm r/bm
¥¡¼¥ï¡¼¥É above ¤È over ¤Ï tmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À¤Î¤¿¤á¤Ë¡¢above ¤È over ¤Ï l/c/r ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤Ê¤·¤Ç»ÈÍѤ¹¤ë¤È¡¢center ¤Ç horizontal ¤ò»È¤¤¤Þ¤¹¡£¥¡¼¥ï ¡¼¥É below ¤È under ¤Ï bmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£¸ß´¹À¤Î¤¿¤á¤Ë¡¢ below ¤È under ¤Ï l/c/r ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤Ê¤·¤Ç»ÈÍѤ¹¤ë¤È center ¤Ç horizontal ¤ò»È¤¤¤Þ¤¹¡£¤µ¤é¤Ë¡¢outside ¤â¸ß´¹À¤Î¤¿¤á ¤Ë t/b/c ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥¡¼¥ï¡¼¥É¤¬¤Ê¤±¤ì¤Ð¡¢top, right, vertical (¤Ä¤Þ¤ê¾å¤Î t/rm ¤ÈƱ¤¸) ¤ò»ÈÍѤ·¤Þ¤¹¡£
ÀâÌÀ¤Î°ÌÃÖ (< position> ) ¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÈƱÍÍñ¤Ë x,y,z ¤ò»ØÄꤷ¤Æ¤â¤¤¤¤¤Ç¤¹¤¬¡¢¤½¤ÎºÇ½é¤Î¥µ¥ó¥×¥ë¹Ô¤ÎºÂɸ¤ÎºÂɽ·Ï¤òÁªÂò¤¹¤ë¤¿¤á¤Î 5¤Ä¤Î¥¡¼¥ï¡¼¥É (first, second, graph, screen, character) ¤ò Ƭ¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£< position> ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Î left, right, top, bottom, center ¤Î¸ú²Ì¤Ï¡¢ label ¥³¥Þ¥ó¥É¤ÇÇÛÃÖ¤µ¤ì¤ëʸ»úÎó¤Î¾ì¹ç¤ÈƱ¤¸¤è¤¦¤Ë´ð½à°ÌÃ֤ΰÌÃÖ¹ç¤ï¤» ¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢left ¤Ï key ¤¬ < position> ¤Î±¦¤ËÃÖ¤«¤ì¤Æº¸ ¹ç¤ï¤»¤Ç½ÐÎϤµ¤ì¤Þ¤¹¡£Â¾¤Î¾ì¹ç¤âƱÍͤǤ¹¡£
¥°¥é¥Õ¶ÊÀþ¤Î¥µ¥ó¥×¥ë¤ÎÀþʬ¤ÎŤµ¤Ï samplen ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ÎŤµ ¤ÏÌÜÀ¹¤ê¤ÎŤµ¤È¡¢< sample_length> *(ʸ»úÉý) ¤ÎϤȤ·¤Æ·×»»¤µ¤ì¤Þ¤¹¡£ sapmlen ¤Ï¡¢¥°¥é¥Õ¾å¤ÎÅÀ¤Î¥µ¥ó¥×¥ë¤Î°ÌÃ֤ˤâ (¤â¤·¥µ¥ó¥×¥ëÀþʬ¼«¿È¤¬ ½ñ¤«¤ì¤Ê¤¯¤Æ¤â) ±Æ¶Á¤òÍ¿¤¨¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤Ï¡¢ÅÀ¤Îµ¹æ¤Ï¥µ¥ó¥×¥ëÀþʬ¤ÎÃæ ±û¤Ë½ñ¤«¤ì¤ë¤¿¤á¤Ç¤¹¡£
¹Ô´Ö¤Î¿âľ¥¹¥Ú¡¼¥¹¤Ï¡¢spacing ¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ÎÉý¤Ï¡¢ÅÀ¤Î¥µ¥¤¥º (pointsize) ¤È¿âľ¤ÊÌÜÀ¹¤ê¤Î¥µ¥¤¥º¤È < vertical_spacing> ¤ÎÀѤˤʤê¤Þ¤¹¡£ ¤³¤Î¿âľ¥¹¥Ú¡¼¥¹¤Ï¡¢Ê¸»ú¤Î¹â¤µ¤è¤ê¤â¾®¤µ¤¯¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì¤Æ¤¤ ¤Þ¤¹¡£
< width_increment> ¤Ï¡¢Ê¸»úÎó¤ÎŤµ¤Ë²Ã¤¨¤¿¤ê¸º¤é¤·¤¿¤ê¤¹¤ëÉý (²¿Ê¸»úʬ ¤«) ¤òɽ¤¹¿ôÃͤǤ¹¡£¤³¤ì¤Ï¡¢ÀâÌÀ¤Ë³°ÏȤò½ñ¤¡¢Ê¸»úÎó¤ËÀ©¸æʸ»ú¤ò»È¤¦¾ì ¹ç¤Ë¤À¤±ÍÍѤǤ·¤ç¤¦¡£gnuplot ¤Ï³°ÏȤÎÉý¤ò·×»»¤¹¤ë¤È¤¤Ï¡¢¥é¥Ù¥ëʸ»ú Îó¤Îʸ»ú¿ô¤òñ½ã¤Ë¿ô¤¨¤ë¤À¤±¤Ê¤Î¤Ç¡¢¤½¤ì¤ò½¤Àµ¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£
½ñ¼°:
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>} unset label {<tag>} show label
°ÌÃÖ (< position> ) ¤Ï x,y ¤« x,y,z ¤Î¤É¤Á¤é¤«¤Ç»ØÄꤷ¡¢ºÂɸ·Ï¤òÁªÂò¤¹¤ë ¤Ë¤Ï¤½¤ÎºÂɸ¤ÎÁ°¤Ë first, second, graph, screen, character ¤ò¤Ä¤±¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£
¥¿¥° (< tag> ) ¤Ï¸«½Ð¤·¤ò¼±Ê̤¹¤ë¤¿¤á¤ÎÀ°¿ôÃͤǤ¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿ ¾ì¹ç̤»ÈÍѤΤâ¤Î¤ÇºÇ¤â¾®¤µ¤¤Ãͤ¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¸½ºß¤Î¸«½Ð¤· ¤òÊѹ¹¤¹¤ë¤È¤¤Ï¤½¤Î¥¿¥°¤ÈÊѹ¹¤·¤¿¤¤¹àÌܤò»ØÄꤷ¤Æ set label ¥³¥Þ¥ó ¥É¤ò»È¤¤¤Þ¤¹¡£
< label text> ¤Ïʸ»úÎóÄê¿ô¤Ç¤â¹½¤¤¤Þ¤»¤ó¤·¡¢Ê¸»úÎóÊÑ¿ô¡¢¤Þ¤¿¤Ïʸ»úÎó¤Î Ãͤò»ý¤Ä¼°¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£°Ê²¼»²¾È: strings (22), sprintf (14.1), gprintf (82.23.1)¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢»ØÄꤷ¤¿ÅÀ x,y,z ¤Ë¸«½Ð¤·¤Îʸ¾Ï¤Îº¸Ã¼¤¬Íè¤ë¤è¤¦¤ËÇÛÃÖ ¤µ¤ì¤Þ¤¹¡£x,y,z ¤ò¸«½Ð¤·¤Î¤É¤³¤Ë·¤¨¤ë¤«¤òÊѹ¹¤¹¤ë¤Ë¤ÏÊÑ¿ô < justification> ¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ì¤Ë¤Ï¡¢left, right, center ¤Î ¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤¡¢¤½¤ì¤¾¤ìʸ¾Ï¤Îº¸¡¢±¦¡¢¿¿Ã椬»ØÄꤷ¤¿ÅÀ¤ËÍè¤ë¤è¤¦ ¤ËÇÛÃÖ¤µ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ÉÁ²èÈϰϤγ°¤Ë¤Ï¤ß½Ð¤ë¤è¤¦¤Ê»ØÄê¤âµö¤µ¤ì¤Þ ¤¹¤¬¡¢ºÂɸ¼´¤Î¸«½Ð¤·¤ä¾¤Îʸ»úÎó¤È½Å¤Ê¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
rotate ¤ò»ØÄꤹ¤ë¤È¥é¥Ù¥ë¤Ï½Ä½ñ¤¤Ë¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó½ÐÎϥɥ饤¥Ð¤¬ Âбþ¤·¤Æ¤¤¤ì¤Ð¡¢¤Ç¤¹¤¬)¡£rotate by < degrees> ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½ ¤ì¤ËŬ¹ç¤·¤Æ¤¤¤ë½ÐÎϥɥ饤¥Ð¤Ï»ØÄꤵ¤ì¤¿³ÑÅÙ¤Çʸ»úÎó¤ò½ñ¤³¤¦¤È¤·¤Þ¤¹¤¬ ¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¿âľ¤Êʸ»úÎó¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£
¥Õ¥©¥ó¥È¤È¤½¤Î¥µ¥¤¥º¤Ï¡¢½ÐÎÏ·Á¼°¤¬¥Õ¥©¥ó¥È¤ÎÀßÄê¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð font "< name> {,< size> }" ¤ÇÌÀ¼¨Åª¤ËÁªÂò¤Ç¤¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¤Ç ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¤¬»È¤ï¤ì¤Þ¤¹¡£
Ä̾ï¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¡¢¥é¥Ù¥ëʸ»úÎó¤ÎÁ´¤Æ¤Îʸ»úÎó ¤Ë³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ noenhanced ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢ÆÃÄê¤Î¥é¥Ù¥ë¤ò³Èĥʸ»úÎó½èÍý¤«¤é³°¤¹¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥é¥Ù¥ë¤¬Î㤨¤Ð¥¢¥ó¥À¡¼¥¹¥³¥¢ (_) ¤ò´Þ¤ó¤Ç¤¤¤ë¾ì ¹ç¤Ê¤É¤ËÍÍѤǤ¹¡£°Ê²¼»²¾È: enhanced text (12)¡£
front ¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢¸«½Ð¤·¤Ï¥Ç¡¼¥¿¤Î¥°¥é¥Õ¤Î¾å¤Ë½ñ¤«¤ì¤Þ¤¹¡£back ¤¬Í¿¤¨¤é¤ì¤ë¤È (¥Ç¥Õ¥©¥ë¥È)¡¢¸«½Ð¤·¤Ï¥°¥é¥Õ¤Î²¼¤Ë½ñ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¦¤³¤È¤Ç¡¢Ì©¤Ê¥Ç¡¼¥¿¤Ë¤è¤Ã¤Æ¸«½Ð¤·¤¬±£¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤ë¤³¤È ¤¬½ÐÍè¤Þ¤¹¡£
textcolor <
colorspec>
¤Ï¸«½Ð¤·Ê¸»úÎó¤Î¿§¤òÊѹ¹¤·¤Þ¤¹¡£<
colorspec>
¤Ï
Àþ¼ï¡¢rgb ¿§¡¢¤Þ¤¿¤Ï¥Ñ¥ì¥Ã¥È¤Ø¤Î³äÅö¤Î¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤¤Þ¤¹¡£
°Ê²¼»²¾È: colorspec (17.1), palette (82.54)¡£textcolor ¤Ï¡¢tc ¤È¾Êά²Äǽ¤Ç¤¹¡£
`tc default` ¤Ï¡¢Ê¸»ú¿§¤ò¥Ç¥Õ¥©¥ë¥È¤Ë¤·¤Þ¤¹¡£ `tc lt <n>` ¤Ï¡¢Ê¸»ú¿§¤òÀþ¼ï <n> (line type)¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£ `tc ls <n>` ¤Ï¡¢Ê¸»ú¿§¤ò line style <n> ¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£ `tc palette z` ¤Ï¡¢¸«½Ð¤·¤Î z ¤Î°ÌÃÖ¤ËÂбþ¤·¤¿¥Ñ¥ì¥Ã¥È¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc palette cb <val>` ¤Ï¡¢¿§¸«ËÜ (colorbar) ¤Î <val> ¤Î¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc palette fraction <val>` (0<=val<=1) ¤Ï¡¢[0:1] ¤«¤é `palette` ¤Î ³¥¿§³¬Ä´/¥«¥é¡¼¤Ø¤Î¼ÌÁü¤ËÂбþ¤·¤¿¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ `tc rgb "#RRGGBB"` ¤Ï¡¢Ç¤°Õ¤Î 24-bit RGB ¿§¤òÁªÂò¤·¤Þ¤¹¡£
< pointstyle> ¤¬¥¡¼¥ï¡¼¥É lt, pt, ps ¤È¤È¤â¤ËÍ¿¤¨¤é¤ì¤ë¤È (°Ê²¼»²¾È: style (72.11))¡¢Í¿¤¨¤é¤ì¤¿¥¹¥¿¥¤¥ë¤È¡¢Í¿¤¨¤é¤ì¤¿Àþ¼ï¤Î¿§¤Ç¸«½Ð¤·°ÌÃÖ¤Ë ÅÀ (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 (10)¡£
¤â¤·°ì¤Ä (¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å¤Î) ¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¾ì¹ç¡¢ºÂɸ¤Ï timefmt ¤Î½ñ¼°¤Ë¤·¤¿¤¬¤Ã¤Æ°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ÇÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set xdata (82.91), set timefmt (82.75)¡£
EEPIC, Imagen, LaTeX, TPIC ¤Ç½ÐÎϤ¹¤ë¾ì¹ç¤Ï¡¢ \ \ ¤ò»È¤¦¤³¤È¤Ç¸«½Ð¤·¤ò ²þ¹Ô¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¥é¥Ù¥ë¤ÎºÂɸ¤Èʸ»úÎó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: labels (42))¡£
Îã:
(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
Î㤨¤Ð¡¢Àþ¼ï¤Î 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 ¤Î°ÊÁ°¤Î¥Ç¥Õ¥©¥ë¥È) ¤«ÂÀ¤¤ÀÄÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÀ¼Á¤Ï¡¢lt 1 ¤Ë´ð¤Å¤¤¤Æºî¤é¤ì¤¿°ì»þ Ū¤Ê¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ÎÄêµÁ¤Î¤è¤¦¤Ê¤â¤Î¤â´Þ¤ó¤Ç¤¤¤Þ¤¹¡£
Ãí°Õ: ¤³¤Î¥³¥Þ¥ó¥É¤Ï gnuplot ¥Ð¡¼¥¸¥ç¥ó 4.6 ¤Ç¿·¤¿¤ËƳÆþ¤µ¤ì¤¿¤â¤Î¤Ç¡¢ ¥Ð¡¼¥¸¥ç¥ó 4.2 ¤Î¤¢¤¤¤Þ¤¤¤Ê¥³¥Þ¥ó¥É "set style increment user" ¤ËÃÖ¤ ´¹¤ï¤ë¤â¤Î¤Ç¤¹¡£¸Å¤¤¥³¥Þ¥ó¥É¤Ï¸½ºß¤ÏÈó¿ä¾©¤Ç¤¹¡£
¤³¤Î»ÅÁȤߤϡ¢gnuplot ¤Ç»ÈÍѤ¹¤ëÀþ¼ïÎó¤ËÂФ¹¤ë¸Ä¿ÍŪ¤Ê¹¥¤ß¤òÀßÄꤹ¤ë¤Î ¤Ë¤â»È¤¨¤Þ¤¹¡£¤½¤ì¤ò¹Ô¤¦¤Ë¤Ï¡¢¼Â¹Ô»þ½é´ü²½¥Õ¥¡¥¤¥ë ~ /.gnuplot ¤Ë¡¢Î㤨 ¤Ð°Ê²¼¤Î¤è¤¦¤Ê¤½¤ìÍѤΥ³¥Þ¥ó¥ÉÎó¤òÄɲ乤뤳¤È¤ò¤ª´«¤á¤·¤Þ¤¹:
if ((GPVAL_VERSION < 4.5) \ || (!strstrt(GPVAL_COMPILE_OPTIONS,"+USER_LINETYPES"))) \ exit set linetype 1 lc rgb "dark-violet" lw 2 pt 0 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 ¤È¤Ê¤ê¤Þ¤¹¡£¤Ê¤ª¡¢¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤ÎºÇ½é¤Î 2,3 ¤Î¹Ô¤Ï¡¢¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¥¹¥¥Ã¥×¤µ¤»¤ë¤¿¤á¤ÎÊݸ±¤Ç¤¹¡£
ƱÍͤΥ¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤Ç¡¢¥Æ¡¼¥Þ¥Ù¡¼¥¹¤Î¿§ÁªÂò¤ÎÄêµÁ¤ò¹Ô¤Ã¤¿¤ê¡¢ÆÃÄê ¤ÎÉÁ²è¥¿¥¤¥×¡¢¤¢¤ë¤¤¤ÏÆÃÄê¤Î½ÐÎÏ·Á¼°ÍѤ˿§¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤ê¤¹¤ë¤³¤È ¤â²Äǽ¤Ç¤¹¡£
¥³¥Þ¥ó¥É set linetype cycle 8 ¤Ï¡¢Â礤ÊÈÖ¹æ¤ÎÀþ¼ï¤ËÂФ·¤Æ¤Ï¿§¤äÀþÉý ¤Ë´Ø¤¹¤ë¤³¤ì¤é¤ÎÄêµÁ¤òºÆÍøÍѤ¹¤ë¤³¤È¤ò gnuplot ¤ËÅÁ¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ Àþ¼ï (linetype) 9-16, 17-24 Åù¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤ÈƱ¤¸¿§¡¢Éý¤ÎÎó¤ò»ÈÍѤ· ¤Þ¤¹¡£¤¿¤À¤·¡¢ÅÀ¤Î°À (pointtype, pointsize, pointinterval) ¤Ï¡¢¤³¤Î ¥³¥Þ¥ó¥É¤Î±Æ¶Á¤Ï¼õ¤±¤Þ¤»¤ó¡£unset linetype cycle ¤Ï¤³¤Îµ¡Ç½¤ò̵¸ú¤Ë ¤·¤Þ¤¹¡£Â礤ÊÀþ¼ïÈÖ¹æ¤ÎÀþ¤Î°À¤òÌÀ¼¨Åª¤ËÄêµÁ¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï¾®¤µ¤¤ ÈÖ¹æ¤ÎÀþ¼ï¤Î°À¤ÎºÆÍøÍѤè¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£
½ñ¼°:
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 (82.17)¡£ ʸ»ú¥¨¥ó¥³¡¼¥É¤ò¸½ºß¤Î¥í¥«¡¼¥ë¤Î¤â¤Î¤ËÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È:set encoding (82.20)¡£
set logscale <axes> {<base>} unset logscale <axes> show logscale
¤³¤³¤Ç¡¢< axes> (¼´) ¤Ï¡¢x, x2, y, y2, z, cb, r ¤ÎǤ°Õ¤Î ½ç½ø¤ÎÁȤ߹礻¤¬²Äǽ¤Ç¤¹¡£< base> ¤Ï¡¢ÂпôÌÜÀ¹¤ê¤ÎÄì¤Ç¤¹ (¥Ç¥Õ¥©¥ë¥È¤Î Äì¤Ï 10)¡£¼´¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢r °Ê³°¤Î¤¹¤Ù¤Æ¤Î¼´¤¬ÂоݤȤʤê¤Þ¤¹¡£¥³¥Þ¥ó¥É unset logscale ¤Ï¡¢¤¹¤Ù¤Æ¤Î¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤·¤Þ¤¹¡£ Âпô¼´¤Ëºî¤é¤ì¤¿ÌÜÀ¹¤ê¤Î¹ï¤ß¤Ï°ìÍʹֳ֤ǤϤʤ¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: set xtics (82.96)¡£
Îã:
x, z ξ¼´¤Ë¤Ä¤¤¤ÆÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale xz
y ¼´¤Ë¤Ä¤¤¤ÆÄì 2 ¤È¤¹¤ëÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale y 2
pm3d plot ÍÑ¤Ë z ¤È¿§¤Î¼´¤ËÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:
set logscale zcb
z ¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤¹¤ë:
unset logscale z
½ñ¼°:
set macros
½ñ¼°:
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 ¤Ç¤Ï²¿¤â¤·¤Þ¤»¤ó¡£
½ñ¼°:
set bmargin {{at screen} <margin>} set lmargin {{at screen} <margin>} set rmargin {{at screen} <margin>} set tmargin {{at screen} <margin>} show margin
< margin> ¤Î¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì¤Ë¤Ï¡¢Å¬ÀڤȻפï¤ì¤ë¡¢Ê¸»ú¤Î¹â¤µ¤ÈÉý¤¬»È¤ï ¤ì¤Þ¤¹¡£Àµ¤ÎÃͤÏ;Çò¤ÎÀäÂÐŪ¤ÊÂ礤µ¤òÄêµÁ¤·¡¢Éé¤ÎÃÍ (¤Þ¤¿¤Ï̵»ØÄê) ¤Ï gnuplot ¤Ë¤è¤Ã¤Æ¼«Æ°·×»»¤µ¤ì¤ëÃͤò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ç¤Ï º¸¤Î;Çò (lmargin) ¤Î¤ß¤¬Ê¸»ú¤ÎÂ礤µ¤òñ°Ì¤È¤·¤ÆÀßÄê¤Ç¤¤Þ¤¹¡£
¥¡¼¥ï¡¼¥É at screen ¤Ï¡¢¤½¤Î;Çò¤Î»ØÄ꤬Á´ÂΤÎÉÁ²èÎΰè¤ËÂФ¹¤ë³ä¹ç ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Â¿½ÅÉÁ²è (multiplot) ¥â¡¼¥É¤Ç¤Î 2D, 3D ¥°¥é¥Õ¤Î³Ñ¤òÀµ³Î¤Ë·¤¨¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¤³¤ÎÇÛÃ֤ϸ½ºß¤Î set origin ¤ä ¤ä set size ¤ÎÃͤò̵»ë¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï¿½ÅÉÁ²èÆâ¤Î¥°¥é¥Õ ¤ÎÇÛÃÖ¤ÎÊ̤ÎÊýË¡¤È¤·¤Æ»È¤ï¤ì¤ë¤³¤È¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£
ÉÁ²è¤Î;Çò¤ÏÄ̾ïÌÜÀ¹¤ê¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¼´¤Î¸«½Ð¤·¡¢ÉÁ²è¤Î¥¿¥¤¥È¥ë¡¢ ÆüÉÕ¡¢¤½¤·¤Æ¶³¦¤Î³°¤Ë¤¢¤ë¾ì¹ç¤Î key (¥°¥é¥Õ¸«½Ð¤·) ¤Î¥µ¥¤¥ºÅù¤ò¸µ¤Ë·× »»¤µ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¤¬¶³¦¤Ç¤Ê¤¯¼´¤ÎÊý¤Ë¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç (Îã ¤¨¤Ð set xtics axis ¤Ë¤è¤Ã¤Æ)¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¼«¿È¤È¤½¤Î¸«½Ð¤·¤Ï;Çò¤Î ·×»»¤Ë¤Ï´Þ¤Þ¤ì¤Þ¤»¤ó¤·¡¢Í¾Çò¤Ë½ñ¤«¤ì¤ë¾¤Îʸ»úÎó¤Î°ÌÃ֤η׻»¤Ë¤â´Þ¤Þ¤ì ¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¼´¤È¶³¦¤¬Èó¾ï¤Ë¶á¤¤¾ì¹ç¡¢¼´¤Î¸«½Ð¤·¤¬Â¾¤Îʸ»úÎó¤ò¾å½ñ ¤¤¹¤ë²ÄǽÀ¤ò¼¨º¶¤·¤Þ¤¹¡£
¥Þ¥¦¥¹¥â¡¼¥É¤Ï 2 ¼ïÎàÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£2 ¼¡¸µ¥â¡¼¥É¤Ï¡¢plot ¥³¥Þ¥ó¥É ¤È splot ¤Î 2 ¼¡¸µ¼Í±Æ (¤¹¤Ê¤ï¤Á¡¢z ¤Î²óž³Ñ¤¬ 0, 90, 180, 270, 360 Å٤Πset view¡¢¤ª¤è¤Ó set view map) ¤ÇÆ°ºî¤·¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢ ¥Þ¥¦¥¹°ÌÃÖ¤¬ÄÉÀפµ¤ì¡¢¥Þ¥¦¥¹¥Ü¥¿¥ó¤äÌð°õ¥¡¼¤ò»È¤Ã¤Æ³ÈÂ礷¤¿¤ê»ëÅÀ°ÜÆ° ¤·¤¿¤ê¤Ç¤¤Þ¤¹¡£¥°¥é¥Õ¤ËÂбþ¤¹¤ë key ¥¿¥¤¥È¥ë¤äÊ̤ʥ¦¥£¥¸¥§¥Ã¥È¥¢¥¤¥³ ¥ó¤Ê¤É¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¡¢¸Ä¡¹¤Î¥°¥é¥Õ¤ÎÉÁ²è¤ò¥ª¥ó/¥ª¥Õ¤ËÀÚ¤êÂؤ¨¤ë ¤³¤È¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£
splot ¤Ë¤è¤ë 3 ¼¡¸µ¥°¥é¥Õ¤ËÂФ·¤Æ¤Ï¡¢¥°¥é¥Õ¤Î»ëÊý¸þ (view) ¤È½Ì¼Ü¤Î Êѹ¹¤¬¡¢¤½¤ì¤¾¤ì¥Þ¥¦¥¹¥Ü¥¿¥ó 1 ¤È 2 (¤Ë¤è¤ë¥É¥é¥Ã¥°) ¤Ç¹Ô¤¨¤Þ¤¹¡£¥Ü¥¿ ¥ó 2 ¤Î¿âľÊý¸þ¤Î¥É¥é¥Ã¥°¤ò shift ¥¡¼¤ÈƱ»þ¤Ë¹Ô¤¦¤È¡¢z ¼´¤Î°ìÈÖ²¼¤Î°Ì ÃÖ (xyplane) ¤ò¾å²¼¤·¤Þ¤¹¡£¤³¤ì¤é¤Î¥Ü¥¿¥ó¤Ë¤µ¤é¤Ë < ctrl> ¥¡¼¤ò²¡¤¹ ¤È¡¢ºÂɸ¼´¤Ïɽ¼¨¤µ¤ì¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¤Îɽ¼¨¤Ï¾Ã¤¨¤Þ¤¹¡£¤³¤ì¤ÏÂ礤ʥǡ¼¥¿ ¤ËÂФ·¤ÆÍÍѤǤ·¤ç¤¦¡£
¥Þ¥¦¥¹¤Ï¿½ÅÉÁ²è (multiplot) ¥â¡¼¥ÉÆâ¤Ç¤Ï̵¸ú¤Ç¤¹¤¬¡¢unset multiplot ¤Ç¿½ÅÉÁ²è¤¬´°·ë¤¹¤ì¤Ð¡¢¥Þ¥¦¥¹µ¡Ç½¤Ï ON ¤Ë¤Ê¤ê¤Þ¤¹¡£¤¿¤À¤·¡¢¤½¤ÎºîÍÑ¤Ï multiplot Æâ¤ÎºÇ¸å¤ÎÉÁ²è (replot ¤ÇÉÁ²è¤µ¤ì¤ë¤è¤¦¤Ê¤â¤Î) ¤ËÂФ·¤Æ¤Î¤ß ¤Ç¤¹¡£
½ñ¼°:
set mouse {doubleclick <ms>} {nodoubleclick} \ {{no}zoomcoordinates} \ {noruler | ruler {at x,y}} \ {polardistance{deg|tan} | nopolardistance} \ {format <string>} \ {clipboardformat <int>/<string>} \ {mouseformat <int>/<string>} \ {{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 pointstyle 1" ¤Ç¡¢¤³¤ì¤Ï¥é ¥Ù¥ë°ÌÃ֤˾®¤µ¤¤¥×¥é¥¹ (+) ¤òÉÁ²è¤·¤Þ¤¹¡£°ì»þŪ¤Ê¥é¥Ù¥ë¤Ï¡¢¤½¤Î¼¡¤Î replot¡¢¤Þ¤¿¤Ï¥Þ¥¦¥¹¥º¡¼¥àÁàºî¤Ç¤Ï¸½¤ì¤Þ¤»¤ó¡£±Ê³Ū¤Ê¥é¥Ù¥ë¤Ï¡¢¥é¥Ù ¥ë¤ÎÅÀ¤Î¾å¤Ç Ctrl ¥¡¼¤ò²¡¤·¤Æ¥Ü¥¿¥ó 2 ¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¾Ã¤¹¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£¼ÂºÝ¤Î¥é¥Ù¥ë¤Î°ÌÃ֤ˤɤì°Ì¶á¤¯¤Ç¥¯¥ê¥Ã¥¯¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤« ¤ÎïçÃͤâ pointsize ¤Ç·èÄꤵ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó verbose ¤¬ ON ¤Î¾ì¹ç¡¢¼Â¹Ô»þ¤ÎÊó¹ð¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 6 ¤òÂǤĤ³¤È¤Ç ON/OFF ¤¬¥¹¥¤ ¥Ã¥Á¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï verbose ¤Ï OFF ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 'h' ¤òÂǤĤȡ¢¥Þ¥¦¥¹¤È¥¡¼³äÅö¤Îû¤¤ÀâÌÀ¤¬É½¼¨ ¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î¥¡¼³äÅö¡¢¤¹¤Ê¤ï¤Á bind ¥³¥Þ¥ó¥É¤Ë¤è¤ë hotkeys (°Ê²¼»²¾È: bind (18.1)) ¤âɽ¼¨¤µ¤ì¤Þ¤¹¡£¥æ¡¼¥¶ÄêµÁ¤Î hotkeys ¤Ï ¥Ç¥Õ¥©¥ë¥È¤Î¥¡¼³äÅö¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ °Ê²¼¤â»²¾È: bind (18.1), label (82.31)¡£
set mouse clipboardformat ¤È set mouse mouseformat ¤Ï¡¢¥Ü¥¿¥ó 1 ¤È
¥Ü¥¿¥ó 2 ¤ÎºîÍÑ»þ (ºÂɸ¤ò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ø¥³¥Ô¡¼¤·¡¢¥Þ¥¦¥¹°ÌÃ֤˰ì»þŪ
¤ËÃí¼á¤ò¤Ä¤±¤ë) ¤Îʸ»úÎó¤Î½ñ¼°ÍѤ˻Ȥï¤ì¤Þ¤¹¡£°ú¿ô¤¬À°¿ô¤Î¾ì¹ç¡¢°Ê²¼¤Îɽ¤Ë¤¢¤ë½ñ¼°¥ª¥×¥·¥ç¥ó¤Î°ì¤Ä¤òÁªÂò¤·¤Þ¤¹¡£°ú¿ô¤¬Ê¸»úÎó¤Î¾ì¹ç¤Ï¡¢½ñ¼°¥ª
¥×¥·¥ç¥ó 6 ¤Î sprintf() ¤Î½ñ¼°Ê¸»úÎó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¤Î¤Ç¡¢2 ¤Ä¤Î¼Â¿ô¤Î»ØÄê»Ò¤ò´Þ¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£Îã:
`set mouse mouseformat "mouse x,y = %5.2g, %10.3f"`.
°Ê²¼¤Î½ñ¼°¤¬ÍøÍѲÄǽ¤Ç¤¹:
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` ¤Ë¤è¤ë½ñ¼°¡¢Îã: "mouse x,y = 1.23, 2.450"
¥ª¥×¥·¥ç¥ó 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>}} } 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 (82.49), set size (82.65)¡£
Îã:
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 (7)¡£ÉÁ²è¶³¦¤ò°ìÎó¤Ë·¤¨¤¿¤¤¤Ê¤é ¤Ð¡¢set margin ¥³¥Þ¥ó¥É¤Ç¡¢¶³¦¤Î³°¤Î;Çò¥µ¥¤¥º¤òƱ¤¸¥µ¥¤¥º¤Ë·¤¨¤ë ¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤½¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢°Ê²¼»²¾È: set margin (82.39)¡£Í¾Çò¥µ¥¤¥º ¤Ïʸ»ú¥µ¥¤¥ºÃ±°Ì¤ÎÀäÂÐŪ¤Ê¿ôÃÍñ°Ì¤ò»ÈÍѤ¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è ¤Ã¤Æ»Ä¤Ã¤¿¥¹¥Ú¡¼¥¹¤ËÉÁ¤«¤ì¤ë¥°¥é¥Õ¤Ïɽ¼¨¤¹¤ë¥Ç¥Ð¥¤¥¹¤Îɽ¼¨¥µ¥¤¥º¤Ë°Í¸ ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¥×¥ê¥ó¥¿¤È¥Ç¥£¥¹¥×¥ì¥¤¤Îɽ¼¨¤Ï¿ʬ°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤· ¤ç¤¦¡£
¥ª¥×¥·¥ç¥ó layout ¤Ë¤è¤ê¡¢³ÆÉÁ²è¤ÎÁ°¤Ë¤½¤ì¤¾¤ìÍ¿¤¨¤Æ¤¤¤¿ set size ¤ä set origin ¥³¥Þ¥ó¥É¤Ê¤·¤Ë¡¢Ã±½ã¤ÊÊ£¿ô¥°¥é¥Õ¤ÎÉÁ²è¤òºîÀ®¤Ç¤¤Þ¤¹¡£ ¤½¤ì¤é¤ÎÀßÄê¤Ï¼«Æ°Åª¤Ë¹Ô¤Ê¤ï¤ì¡¢¤¤¤Ä¤Ç¤â¤½¤ÎÀßÄê¤òÊѹ¹¤Ç¤¤Þ¤¹¡£ layout ¤Ç¤Ïɽ¼¨¤Ï < rows> ¹Ô¤È < cols> Îó¤Î³Ê»Ò¤Ëʬ³ä¤µ¤ì¡¢³Æ³Ê»Ò¤Ï¡¢ ¤½¤Î¸å¤Ë³¤¯Âбþ¤¹¤ë̾Á°¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¹Ô (rowsfirst)¡¢¤¢¤ë¤¤¤ÏÎó (columnsfirst) ¤¬Àè¤ËËä¤á¤é¤ì¤Æ¹Ô¤¤Þ¤¹¡£ÉÁ²è¥°¥é¥Õ¤ÎÀѤ߾夲¤Ï²¼Êý¸þ (downwards) ¤Ë¡¢¤Þ¤¿¤Ï¾åÊý¸þ (upwards) ¤Ë¿¤Ó¤ë¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ï rowsfirst ¤Ç downwards ¤Ç¤¹¡£
³ÆÉÁ²è¤Ï 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 ¤È¤Ê¤ê¤Þ¤¹¡£
°Ê²¼¤â»²¾È
multiplot ¤Î¥Ç¥â (multiplt.dem)
½ñ¼°:
set mxtics {<freq> | default} unset mxtics show mxtics
¤³¤ì¤é¤Î½ñ¼°¤Ï mytics, mztics, mx2tics, my2tics, mcbtics ¤Ë ÂФ·¤Æ¤âƱ¤¸¤Ç¤¹¡£
< freq> ¤ÏÂçÌÜÀ¹¤ê´Ö¤Î¡¢¾®ÌÜÀ¹¤ê¤Ë¤è¤Ã¤Æʬ³ä¤µ¤ì¤ë¶è´Ö¤Î¿ô (¾®ÌÜÀ¹¤ê¤Î ¿ô¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤Ç¤¹¡£Ä̾ï¤ÎÀþ·Á¼´¤ËÂФ·¤Æ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 2 ¤« 5 ¤Ç¡¢¤³¤ì¤ÏÂçÌÜÀ¹¤ê¤Ë¤è¤Ã¤ÆÊѲ½¤·¤Þ¤¹¡£¤è¤Ã¤ÆÂçÌÜÀ¹¤ê´Ö¤Ë 1 ¤Ä¡¢¤Þ¤¿¤Ï 4 ¤Ä¤Î¾®ÌÜÀ¹¤ê¤¬Æþ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£default ¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¾® ÌÜÀ¹¤ê¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌá¤ê¤Þ¤¹¡£
¼´¤¬Âпô¼´¤Ç¤¢¤ë¾ì¹ç¡¢Ê¬³ä¶è´Ö¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏͰդʿô¤Ë¥»¥Ã¥È¤µ¤ì ¤Þ¤¹ (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
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 (82.96)¡£
½ñ¼°:
set object <index> <object-type> <object-properties> {front|back|behind} {clip|noclip} {fc|fillcolor <colorspec>} {fs <fillstyle>} {default} {lw|linewidth <width>}
< object-type> ¤Ï¡¢rectangle, ellipse, circle, polygon ¤Î¤¤¤º¤ì ¤«¤Ç¤¹¡£¸Ä¡¹¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î·¿¤Ï¡¢¤½¤Î·¿¤ËÆÃͤÎÀ¼Á¤â¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤ ¤Þ¤¹¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤÎÁ° (¾å) ¤ËÉÁ²è¤µ
¤ì¤Þ¤¹¤¬¡¢front ¤È»ØÄꤵ¤ì¤¿¥é¥Ù¥ë¤è¤ê¤Ï¸å¤í (²¼) ¤Ë¤Ê¤ê¤Þ¤¹¡£back
¤ò»ØÄꤹ¤ë¤È¡¢¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁÇ¡¢¤¹¤Ù¤Æ¤Î¥é¥Ù¥ë¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¡£
behind ¤Ï¡¢¼´¤ä back ¤ÎĹÊý·Á¤ò´Þ¤à¤¹¤Ù¤Æ¤Î¤â¤Î¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ
¤¹¡£¤è¤Ã¤Æ¡¢
set object rectangle from screen 0,0 to screen 1,1 behind
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤ÎĺÅÀ¤¬¥¹¥¯¥ê¡¼¥óºÂɸ ¤ÇÍ¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥°¥é¥Õ¶³¦¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤µ¤ì¤Þ¤¹¡£noclip ¤È ÀßÄꤹ¤ë¤È¡¢¥°¥é¥Õ¶³¦¤Ç¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥¹¥¯¥ê¡¼¥ó¥µ ¥¤¥º¤ËÂФ¹¤ë¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï¹Ô¤ï¤ì¤Þ¤¹¡£
¥ª¥Ö¥¸¥§¥¯¥È¤ÎÅɤêÄÙ¤·¤Î¿§¤Ï < colorspec> ¤Ç»ØÄꤷ¤Þ¤¹¡£fillcolor ¤Ï fc ¤È¾Êά¤Ç¤¤Þ¤¹¡£ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Ï < fillstyle> ¤Ç»ØÄꤷ¤Þ¤¹¡£¾ÜºÙ ¤Ï¡¢°Ê²¼»²¾È: colorspec (17.1), fillstyle (82.66.4)¡£¥¡¼¥ï¡¼¥É default ¤ò»ØÄꤹ ¤ë¤È¡¢¤³¤ì¤é¤Î°À¤ÏÉÁ²è¤¬¼ÂºÝ¤Ë¹Ô¤ï¤ì¤ë¤È¤¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¼õ¤±·Ñ ¤®¤Þ¤¹¡£°Ê²¼»²¾È: set style rectangle (82.66.9)¡£
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 (10))¡£¥ª¥×¥·¥ç¥ó 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 (10))¡£ ¼ç¼´¤ÈÉû¼´¤ÎŤµ¤Ï¡¢¼´¤ÎºÂɸ¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Âʱߤθþ¤ (orientation) ¤Ï¡¢¿åÊ¿¼´¤ÈÂʱߤμ缴¤È¤Î´Ö¤Î³ÑÅ٤ǻØÄꤷ¤Þ¤¹¡£³ÑÅÙ¤òÍ¿ ¤¨¤Ê¤±¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÂʱߤθþ¤¤¬Âå¤ï¤ê¤Ë»È¤ï¤ì¤Þ¤¹ (°Ê²¼»²¾È:set style ellipse (82.66.10))¡£¥¡¼¥ï¡¼¥É 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>]} {<other-object-properties>}
±ß¤Î°ÌÃ֤ϡ¢Ãæ¿´¤ò»ØÄꤷ¡¢¤½¤Î¸å¤í¤ËȾ·Â¤ò»ØÄꤷ¤Þ¤¹¡£¥¡¼¥ï¡¼¥É at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£¤½¤Î°ÌÃÖ¤ÈȾ·Â¤Ë¤Ï¡¢x ¼´¤ÎºÂɸ¡¢¥°¥é¥ÕÎΰè Æâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ ¤Þ¤¹ (°Ê²¼»²¾È: coordinates (10))¡£¤½¤Î¤¤¤º¤ì¤Î¾ì¹ç¤Ç¤â¡¢È¾·Â¤Ï¼´¡¢¥°¥é¥Õ¡¢ ¥¹¥¯¥ê¡¼¥ó¤Î¿åÊ¿Êý¸þ¤Î½Ì¼Ü¤ËÂФ·¤Æ·×¤é¤ì¡¢¿åÊ¿Êý¸þ¤È¿âľÊý¸þ¤Î½Ì¼Ü¤Ë¤º ¤ì¤¬¤¢¤Ã¤Æ¤â¡¢·ë²Ì¤¬¾ï¤ËÀµ¤·¤¯±ß¤Ë¤Ê¤ë¤è¤¦¤Ëľ¤µ¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢´°Á´¤Ê±ß¤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó¤Î arc ¤Ë³«»Ï³Ñ¤È ½ªÎ»³Ñ¤òÅÙ¤òñ°Ì¤È¤·¤Æ»ØÄꤹ¤ë¤È±ß¸Ì¤òÉÁ²è¤·¤Þ¤¹¡£±ß¸Ì¤Ï¡¢¾ï¤ËÈ¿»þ·×²ó ¤ê¤ËÉÁ¤«¤ì¤Þ¤¹¡£
set object <index> polygon from <position> to <position> ... {to <position>}
from <position> rto <position> ... {rto <position>}
¿³Ñ·Á¤Î°ÌÃ֤ϡ¢ÄºÅÀ¤Î°ÌÃÖ¤ÎÎó¤òÍ¿¤¨¤ë¤³¤È¤Ç»ØÄê¤Ç¤¤Þ¤¹¡£¤½¤ì¤é¤Ï¡¢¼´ ¤ÎºÂɸ (first, second)¡¢¥°¥é¥ÕÎΰèÆâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê¡¼ ¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ¤Þ¤¹¡£ÁêÂÐŪ¤ÊºÂɸ (rto) ¤ò»ØÄê ¤¹¤ë¾ì¹ç¤Ï¡¢¤½¤ÎºÂɸ·Ï¤ÏÁ°¤ÎĺÅÀ¤ÈƱ¤¸ºÂɸ·Ï¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: coordinates (10)¡£
Îã:
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
½ñ¼°:
set offsets <left>, <right>, <top>, <bottom> unset offsets show offsets
³Æ¥ª¥Õ¥»¥Ã¥È¤ÏÄê¿ô¡¢¤Þ¤¿¤Ï¿ô¼°¤¬»È¤¨¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 0 ¤Ç¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢º¸±¦¤Î¥ª¥Õ¥»¥Ã¥È¤Ï x1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¡¢¾å²¼¤Î¥ª¥Õ ¥»¥Ã¥È¤Ï y1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¥¡¼¥ï¡¼¥É "graph" ¤òÍѤ¤¤ë¤³ ¤È¤Ç¼´¤ÎÁ´ÈϰϤËÂФ¹¤ë³ä¹ç¤È¤·¤Æ¥ª¥Õ¥»¥Ã¥È¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Àµ ¤Î¥ª¥Õ¥»¥Ã¥È¤ÎÃͤϡ¢¼´¤ÎÈϰϤò»ØÄꤵ¤ì¤¿Êý¸þ¤Ø¿¤Ð¤·¤Þ¤¹¡£Î㤨¤ÐÀµ¤Î²¼ Êý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤Ï y ¤ÎºÇ¾®Ãͤò¤è¤ê¾®¤µ¤ÊÃͤˤ·¤Þ¤¹¡£µö¤µ¤ì¤Æ¤¤¤ëÈÏ°Ï ¤Ç¤ÎÉé¤Î¥ª¥Õ¥»¥Ã¥È¤Ï¡¢¼«Æ°½Ì¼Ü¡¢¤¢¤ë¤¤¤Ï¥¯¥ê¥Ã¥Ô¥ó¥°¤È¤Î»×¤¤¤â¤è¤é¤Ì·ë ²Ì¤òÀ¸¤à²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£¼«Æ°½Ì¼Üµ¡Ç½¤«¤é¼´¤ÎÈϰϤÎÄ´Àá¤ò¼é¤ê¤¿¤¤¾ì¹ç ¤Ï¡¢"set auto fix" ¤â»ØÄꤹ¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£
Îã:
set auto fix set offsets graph 0.05, 0, 2, 2 plot sin(x)
¤³¤Î sin(x) ¤Î¥°¥é¥Õ¤Î y ¤ÎÈÏ°Ï¤Ï [-3:3] ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì¤Ï¡¢´Ø¿ô¤Î y ¤ÎÈÏ°Ï¤Ï [-1:1] ¤Ë¼«Æ°½Ì¼Ü¤µ¤ì¤Þ¤¹¤¬¡¢¿âľÊý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤¬¤½¤ì¤¾ ¤ì 2 ¤Ç¤¢¤ë¤¿¤á¤Ç¤¹¡£x ¤ÎÈÏ°Ï¤Ï [-11:10] ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ç¥Õ¥© ¥ë¥È¤¬ [-10:10] ¤Ç¤½¤ÎÁ´ÈϰϤ¬º¸¤Ë 0.05 ¤Î³ä¹ç¤À¤±¿¤Ð¤µ¤ì¤ë¤¿¤á¤Ç¤¹¡£
½ñ¼°:
set origin <x-origin>,<y-origin>
½ñ¼°:
set output {"<filename>"} show output
¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¥Õ¥¡¥¤¥ë̾¤¬¾Êά¤µ¤ì¤¿¾ì¹ç ¤Ï¡¢Ä¾Á°¤Î set output ¤Ç³«¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¥¯¥í¡¼¥º¤µ¤ì¡¢¿·¤¿¤Ê½ÐÎϤ¬ ɸ½à½ÐÎÏ (STDOUT) ¤ËÁ÷¤é¤ì¤Þ¤¹¡£(¤â¤·¡¢set output "STDOUT" ¤È¤¹¤ë¤È ½ÐÎÏ¤Ï "STDOUT" ¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤ËÁ÷¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó ! ["¤«¤â ¤·¤ì¤Ê¤¤" ¤È¤¤¤¦¤Î¤Ï¡¢Î㤨¤Ð x11 ¤ä wxt ¤Ê¤É¤Î terminal (½ÐÎÏ·Á¼°) ¤Ç¤Ï set output ¤¬Ìµ»ë¤µ¤ì¤ë¤«¤é¤Ç¤¹¡£])
set terminal ¤È set output ¤ÎξÊý¤ò»ØÄꤹ¤ë¾ì¹ç¡¢set terminal ¤ò Àè¤Ë»ØÄꤹ¤ëÊý¤¬°ÂÁ´¤Ç¤¹¡£¤½¤ì¤Ï¡¢¤¢¤ë¼ï¤Î terminal ¤Ç¤Ï¡¢OS ¤¬É¬Í×¤È ¤¹¤ë¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£Î㤨¤Ð¡¢OS ¤¬¥Õ¥¡¥¤¥ë¤ò³«¤¯ ¤È¤¤Ë (Îéµ·Îɤ¯) ¥Õ¥¡¥¤¥ë¤¬¥Õ¥©¡¼¥Þ¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤òÃΤëɬÍפ¬ ¤¢¤ë¤è¤¦¤Ê OS ¤Ê¤É¤¬¤½¤ì³ºÅö¤·¤Þ¤¹¡£
popen ´Ø¿ô¤ò»ý¤Ä¤è¤¦¤Ê¥Þ¥·¥ó (Unix Åù) ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤ÎºÇ½é¤ò '| ' ¤È ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢½ÐÎϤò¥·¥§¥ë¥³¥Þ¥ó¥É¤Ë¥Ñ¥¤¥×¤ÇÅϤ¹¤³¤È¤¬²Äǽ¤Ç¤¹¡£Î㤨 ¤Ð°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
set output "|lpr -Plaser filename" set output "|lp -dlaser filename"
MS-DOS ¤Ç¤Ï¡¢set output "PRN" ¤È¤¹¤ë¤Èɸ½à¤Î¥×¥ê¥ó¥¿¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£ VMS ¤Ç¤Ï½ÐÎϤÏǤ°Õ¤Î¥¹¥×¡¼¥ë²Äǽ¤Ê¥Ç¥Ð¥¤¥¹¤ËÁ÷¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£½ÐÎϤò DECnet Æ©²á¤Ê¥¿¥¹¥¯¤ËÁ÷¤ë¤³¤È¤â²Äǽ¤Ç¡¢¤½¤ì¤Ï¤¢¤ë¼ï¤Î½ÀÆðÀ¤òÍ¿¤¨¤Æ¤¯ ¤ì¤Þ¤¹¡£
½ñ¼°:
set parametric unset parametric show parametric
2 ¼¡¸µ¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¤Ï¡¢ÇÞ²ðÊÑ¿ôɽ¼¨´Ø¿ô¤Ï¤Ò¤È¤Ä¤ÎÇÞ²ðÊÑ¿ô¤ËÂФ¹¤ë 2 ¤Ä¤Î´Ø¿ô¤ÇÄê¤á¤é¤ì¤Þ¤¹¡£Îã¤È¤·¤Æ¤Ï plot sin(t),cos(t) ¤È¤¹¤ë¤³¤È¤Ë¤è¤Ã ¤Æ±ß¤¬ÉÁ¤±¤Þ¤¹ (¥¢¥¹¥Ú¥¯¥ÈÈ椬Àµ¤·¤¯ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡£°Ê²¼»²¾È:set size (82.65))¡£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] ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¾ÍèŪ¤Ë¤Ï¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¤â¤Ã¤ÈͰդʤâ¤Î¤ËÊѹ¹¤¹¤ëͽÄê¤Ç¤¹¡£
¤µ¤é¤Ë¥³¥Þ¥ó¥Éshow plot add2history ¤Ï¡¢¤³¤Î¸½ºß¤ÎÉÁ²è¥³¥Þ¥ó¥É¤ò history ¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢replot ¤ò»È¤Ã¤ÆľÁ°¤ÎÉÁ²è¥³¥Þ¥ó¥É ¤Ë¶ÊÀþ¤òÄɲä·¤¿¾ì¹ç¡¢¤½¤·¤Æ¥³¥Þ¥ó¥É¹ÔÁ´ÂΤò¤¹¤°¤ËÊÔ½¸¤·¤¿¤¤¾ì¹ç¤ËÊØÍø ¤Ç¤¹¡£
½ñ¼° (¥ª¥×¥·¥ç¥ó¤ÏǤ°Õ¤Î½ç¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹):
set pm3d set pm3d { { at <position> } { interpolate <steps/points in scan, between scans> } { scansautomatic | scansforward | scansbackward | depthorder } { flush { begin | center | end } } { ftriangles | noftriangles } { clip1in | clip4in } { corners2color { mean|geomean|median|min|max|c1|c2|c3|c4 } } { hidden3d {<linestyle>} | nohidden3d } { implicit | explicit } { map } } show pm3d unset pm3d
splot ¥³¥Þ¥ó¥É¤Ç with pm3d ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿¤ä´Ø¿ôÉÁ²è¥¹
¥¿¥¤¥ë (style) ¤¬Âç°èŪ¤Ë pm3d ¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¡¢
pm3d ¥â¡¼¥É¤¬ set pm3d implicit ¤È¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢pm3d ¤Î¥«¥é¡¼¶Ê
Ì̤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¸å¤Î 2 ¤Ä¤Î¾ì¹ç¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿¥¹¥¿¥¤¥ë¤Ç
À¸À®¤µ¤ì¤ëÌÖÌÜ¤Ë p3md ¶ÊÌ̤òÄɲ乤ë·Á¤ÇÉÁ²è¤·¤Þ¤¹¡£Î㤨¤Ð¡¢
splot 'fred.dat' with lines, 'lola.dat' with lines
splot 'fred.dat' with lines, 'lola.dat' with pm3d
gnuplot ¤Îµ¯Æ°»þ¤Ï¤½¤Î¥â¡¼¥É¤Ï explicit ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Îò»ËŪ¡¢¤½¤· ¤Æ¸ß´¹À¤Î¤¿¤á¤Ë¡¢¥³¥Þ¥ó¥É set pm3d; (¤¹¤Ê¤ï¤Á¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤ ¾ì¹ç) ¤È set pm3d at X ... (¤¹¤Ê¤ï¤Á at ¤¬ºÇ½é¤Î¥ª¥×¥·¥ç¥ó¤Î¾ì¹ç) ¤Ï¥â¡¼¥É¤ò implicit ¤ËÊѹ¹¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É set pm3d; ¤Ï¡¢¤½¤Î¾¤Î ¥ª¥×¥·¥ç¥ó¤ò¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿/´Ø¿ô¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò pm3d ¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢Î㤨¤Ð
set style data pm3d
¤¤¤¯¤Ä¤«¤ÎÉÁ²è¤Ë¤ª¤¤¤Æ¤Ï¡¢¤½¤ì¤é¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤ÇÍ¿¤¨¤é¤ì¤¿½ç¤ËÉÁ²è¤µ ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤ÏÆäˡ¢°ÊÁ°¤ÎÉÁ²è¤ò¾å½ñ¤¤·¤Æ¤½¤ì¤Ç¤½¤Î°ìÉô¤ò±£¤·¤Æ¤·¤Þ¤¦²ÄǽÀ¤¬¤¢¤ë¤è¤¦¤Ê¶ÊÌ̤ÎÅɤê¤Ä¤Ö¤·¤ÎºÝ¤Ë´Ø¿´¤ò»ý¤¿¤ì¤ë¤Ç¤·¤ç¤¦¡£
p3md ¤Î¿§ÉÕ¤±¤Ï¡¢3 ¤Ä¤Î°Û¤Ê¤ë°ÌÃÖ top, bottom, surface ¤Î¤¤¤º¤ì
¤«¡¢¤Þ¤¿¤Ï¤¹¤Ù¤Æ¤Ë¹Ô¤¨¤Þ¤¹¡£°Ê²¼»²¾È: pm3d position (82.53.2)¡£°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢°Û¤Ê¤Ã¤¿¹â¤µ¤Ç 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 (82.54), set cbrange (82.126), set colorbox (82.12)¡£¤½¤·¤Æ¤â¤Á¤í ¤ó¥Ç¥â¥Õ¥¡¥¤¥ë demo/pm3d.dem ¤â»²¹Í¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
¤Þ¤º¡¢ÃÏ¿Þ/¶ÊÌ̤¬¤É¤Î¤è¤¦¤ËÉÁ¤«¤ì¤ë¤Î¤«¤Ë¤Ä¤¤¤Æµ½Ò¤·¤Þ¤¹¡£ÆþÎϥǡ¼¥¿ ¤Ï¡¢´Ø¿ô¤òɾ²Á¤·¤ÆÆÀ¤é¤ì¤ë¤«¤Þ¤¿¤Ï splot data file ¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£ ¶ÊÌ̤ϡ¢Áöºº (¸ÉΩÀþ) ¤Î·«¤êÊÖ¤·¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ç¤Ï¡¢ ºÇ½é¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤È¡¢¼¡¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿Â¾¤Î 2 ÅÀ¤Î ´Ö¤ÎÎΰ褬¡¢¤³¤ì¤é 4 ÅÀ¤Î z ¤ÎÃÍ (¤Þ¤¿¤ÏÄɲ䵤줿 'color' ÍѤÎÎó¤ÎÃÍ¡¢ °Ê²¼»²¾È: using (72.3.8)) ¤Ë½¾¤Ã¤Æ³¥¿§¤Ç (¤Þ¤¿¤Ï ¥«¥é¡¼¤Ç) Åɤé¤ì¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤Ç¤Ï 4 ¤Ä¤Î³Ñ¤ÎÃͤÎÊ¿¶ÑÃͤ¬»È¤ï¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¥ª¥×¥·¥ç¥ó corners2color ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£¤½¤ì¤Ê¤ê¤Î¶ÊÌ̤òÉÁ¤¯¤¿¤á¤Ë¤Ï¡¢ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤ÎÁöºº¤¬¸òº¹¤·¤Æ¤Ï¤¤¤±¤Ê¤¯¤Æ¡¢¶áÀÜÅÀÁöººËè¤ÎÅÀ¤Î¿ô¤¬°ã¤¤¤¹¤®¤Æ¤Ï¤¤ ¤±¤Þ¤»¤ó¡£¤â¤Á¤í¤ó¡¢ºÇ¤âÎɤ¤¤Î¤ÏÁöºº¤ÎÅÀ¤Î¿ô¤¬Æ±¤¸¤³¤È¤Ç¤¹¡£Â¾¤Ë¤Ï²¿¤â ɬÍפǤϤ¢¤ê¤Þ¤»¤ó (Î㤨¤Ð¥Ç¡¼¥¿¤Ï³Ê»Ò¾õ¤Ç¤¢¤ëɬÍפâ¤Ê¤¤)¡£Â¾¤Ë¤â¤³¤Î pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢ÆþÎϤµ¤ì¤¿ (·×¬¤µ¤ì¤¿¡¢¤¢¤ë¤¤¤Ï·×»»¤µ¤ì¤¿) ÎÎ°è ¤Î³°¤Ë¤Ï²¿¤âÉÁ¤«¤Ê¤¤¡¢¤È¤¤¤¦Ä¹½ê¤¬¤¢¤ê¤Þ¤¹¡£
¶ÊÌ̤ο§¤Å¤±¤Ï¡¢°Ê²¼¤Î¤è¤¦¤ÊÆþÎϥǡ¼¥¿¤Ë´Ø¤·¤Æ¹Ô¤ï¤ì¤Þ¤¹:
1. ´Ø¿ô¡¢¤Þ¤¿¤Ï 1 ¤Ä¤« 3 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ¾å¤Ë½Ò¤Ù ¤¿»Í³Ñ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃÍ (¤Þ¤¿¤Ï corners2color) ¤«¤é¡¢³¥ ¿§¤ÎÈÏ°Ï [0:1] ¤òÍ¿¤¨¤ë zrange ¤Þ¤¿¤Ï cbrange ¤ÎÈÏ°Ï [min_color_z,max_color_z] ¤Ø¤ÎÂбþ¤Ë¤è¤ê¡¢³¥¿§/¥«¥é¡¼¤ÎÃͤ¬ÆÀ¤é¤ì¤Þ¤¹¡£ ¤³¤ÎÃͤϡ¢Ä¾Àܳ¥¿§¤Î¿§ÃÏ¿ÞÍѤγ¥¿§¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Àµµ¬²½ ¤µ¤ì¤¿³¥¿§¤ÎÃͤò¥«¥é¡¼¤ËÂбþ¤µ¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£´°Á´¤ÊÀâÌÀ¤Ï¡¢°Ê²¼»²¾È: set palette (82.54)¡£
2. 2 ¤Ä¤« 4 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ³¥¿§/¥«¥é¡¼¤ÎÃͤϡ¢z ¤ÎÃͤÎÂå¤ï¤ê¤ËºÇ¸å¤ÎÎó¤ÎºÂɸ¤ò»È¤Ã¤ÆÆÀ¤é¤ì¤Þ¤¹¤Î¤Ç¡¢¿§¤È z ºÂɸ¤¬ÆÈΩ ¤Ê¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï 4 ¼¡¸µ¥Ç¡¼¥¿¤ÎÉÁ²è¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¾¤ÎÃí°Õ:
1. ʪÍý³Ø¼Ô¤Î´Ö¤Ç¤Ï¡¢gnuplot ¤Îʸ½ñ¤ä¥½¡¼¥¹¤Ë¸½¤ï¤ì¤ë 'iso_curve' (¸É ΩÀþ) ¤È¤¤¤¦¸ÀÍÕ¤è¤ê¤â¡¢¾å¤Ç¸ÀµÚ¤·¤¿ 'Áöºº (scan)' ¤È¤¤¤¦¸ÀÍÕ¤ÎÊý¤¬»È ¤ï¤ì¤Æ¤¤¤Þ¤¹¡£1 ÅÙ¤ÎÁöºº¤È¾¤ÎÁöºº¤ÎµÏ¿¤Ë¤è¤ê¿§ÃÏ¿Þ¤òɾ²Á¤¹¤ë¡¢¤È¤¤¤¦ ¤Î¤Ï¤½¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¡£
2. 'gray' ¤ä 'color' ¤ÎÃÍ (scale) ¤Ï¡¢³ê¤é¤«¤ËÊѲ½¤¹¤ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø ¤Î¡¢Ï¢Â³¤ÊÊÑ¿ô¤ÎÀþ·Á¼ÌÁü¤Ç¤¹¡£¤½¤Î¼ÌÁü¤ÎÍͻҤÏÉÁ²è¥°¥é¥Õ¤ÎÎÙ¤ËĹÊý·Á¤Ç ɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤Îʸ½ñ¤Ç¤Ï¤½¤ì¤ò "¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox)" ¤È¸Æ¤Ó¡¢ ¤½¤ÎÊÑ¿ô¤ò¥«¥é¡¼¥Ü¥Ã¥¯¥¹¼´¤ÎÊÑ¿ô¤È¸Æ¤Ó¤Þ¤¹¡£°Ê²¼»²¾È: set colorbox (82.12),set cbrange (82.126)¡£
3. pm3d ¤Î¿§¤Å¤±¤ò 3 ¼¡¸µ¶ÊÌ̤ǤϤʤ¯ 2 ¼¡¸µÉÁ²è¤Ë»È¤¦¤Ë¤Ï¡¢ set view map ¤« set pm3d map ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
Åɤé¤ì¤¿»Í³Ñ·Á¤Ï¡¢¼¡¤«¤é¼¡¤Ø¤ÈÉÁ²è¤µ¤ì¤Æ¹Ô¤¤Þ¤¹¡£¶ÊÌ̤òÉÁ²è¤¹¤ë¾ì¹ç (at s)¡¢¸å¤Î»Í³Ñ·Á¤¬Á°¤Î¤â¤Î¤Ë½Å¤Ê¤ê (¾å½ñ¤¤·) ¤Þ¤¹ (gnuplot ¤ÏÅÉ¤é ¤ì¤¿Â¿³Ñ·Á¤ÎÌ֤νŤʤê¤ÎÁê¸ßºîÍѤò·×»»¤¹¤ë¤è¤¦¤Ê²¾ÁÛ¸½¼Â¥Ä¡¼¥ë¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó)¡£ ºÇ½é¤ËÁöºº¤µ¤ì¤ë¥Ç¡¼¥¿¤òºÇ½é¤ËÉÁ¤¯¤«ºÇ¸å¤ËÉÁ¤¯¤«¤òÀÚÂؤ¨¤ë¥¹ ¥¤¥Ã¥Á¥ª¥×¥·¥ç¥ó scansforward ¤È scansbackward ¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ï scansautomatic ¤Ç¡¢¤³¤ì¤Ï gnuplot ¼«¿È¤ËÁöºº¤Î½ç¤ò ¿ä¬¤µ¤»¤Þ¤¹¡£°ìÊý¤Ç¡¢¥ª¥×¥·¥ç¥ó depthorder ¤Ï»Í³Ñ·Á¤Î½ç½ø¤ò´°Á´¤ËºÆ ¹½À®¤·¤Þ¤¹¡£Åɤê¤Ä¤Ö¤·¤Ï¿¼¤µ½ç¤ËʤÓÊѤ¨¤µ¤ì¤¿¸å¤Ç¹Ô¤ï¤ì¡¢¤³¤ì¤Ë¤è¤ê¤« ¤Ê¤êÊ£»¨¤Ê¶ÊÌ̤Ǥâ»ë³ÐŪ¤Ê¤â¤Î¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:pm3d depthorder (82.53.3)¡£
2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢»Í³Ñ·Á¤ÎÅÀ¤Î¼è¤ê»Ï¤á¤ò¡¢ ξÊý¤ÎÁöºº¤ÎºÇ½é¤«¤é (flush begin) ¤Ë¤¹¤ë¤«¡¢ºÇ¸å¤«¤é (flush end) ¤Ë¤¹¤ë¤«¡¢¿¿Ã椫¤é (flush center) ¤Ë¤¹¤ë¤«¤ò·èÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ flush (center| end) ¤Ï scansautomatic ¤È¤ÏξΩ¤»¤º¡¢¤è¤Ã¤Æ flush center ¤Þ¤¿¤Ï flush end ¤ò»ØÄꤷ¤Æ scansautomatic ¤¬ÀßÄꤵ ¤ì¤¿¾ì¹ç¡¢¤½¤ì¤Ï̵¸À¤Ç scansforward ¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£
2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¸Ä¡¹¤ÎÁöºº¤ÇÅÀ¤¬Â¤ê¤Ê ¤¤¾ì¹ç¤Ë¡¢Áöºº¤ÎºÇ¸å¤Ë¿§»°³Ñ·Á¤òÉÁ¤¯¤«¤É¤¦¤«¤ò¥ª¥×¥·¥ç¥ó ftriangles ¤Ï»Ø¼¨¤·¤Þ¤¹¡£¤³¤ì¤Ï³ê¤é¤«¤Ê¿§ÃϿޤ泦¤òÉÁ¤¯¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£
gnuplot ¤Ï¡¢¶ÊÌ̤ÎÅɤêÄÙ¤·¤Ë¤ª¤¤¤Æ¤Ï¡¢ËÜÅö¤Î±£Ì̽èÍý¤Ï¹Ô¤¤¤Þ¤»¤ó¤¬¡¢¤¿
¤¤¤Æ¤¤¤Ï±ó¤¤Êý¤«¤é¶á¤¤Êý¤Ø½ç¤Ë»Í³Ñ·ÁÍ×ÁǤòÅɤêÄÙ¤¹¤³¤È¤Ç½½Ê¬¤Ê¤Ç¤¤¢¤¬
¤ê¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤ÇÁªÂò¤Ç¤¤Þ¤¹:
set pm3d depthorder hidden3d
¿§¤Å¤±¤ÎÀßÄê¤Ï¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ÎÉÁ²è¤ÈƱÍÍ¤Ë set palette ¤Ç·èÄꤵ¤ì¤Þ ¤¹¡£°ì¤Ä¤ÎÉÁ²è¤Ç¤Ï°ì¤Ä¤Î¥Ñ¥ì¥Ã¥È¤Î¤ß¤¬Â¸ºß¤·ÆÀ¤Þ¤¹¡£¤¤¤¯¤Ä¤â¤Î¶ÊÌ̤ò°Û ¤Ê¤ë¥Ñ¥ì¥Ã¥È¤ÇÉÁ²è¤¹¤ë¤Ë¤Ï¡¢origin ¤È size ¤ò¸ÇÄꤷ¤Æ mutiplot ¤ò»È¤¦¤³¤È¤Ç¹Ô¤¨¤Þ¤¹¡£½ÐÎϥɥ饤¥Ð¤¬ÍøÍѤǤ¤ë¿§¤ò»È¤¤¿Ô¤¯¤·¤Æ¤·¤Þ¤¦¾ì ¹ç¤Ë¤Ï set palette maxcolors ¤ò»È¤¦¤³¤È¤ò˺¤ì¤º¤Ë¡£
ÉÁ²è¤µ¤ì¤ë³Æ pm3d »Í³Ñ·Á¤Ë¤Ï°ì¤Ä¤Î³¥¿§/¥«¥é¡¼Ãͤ¬Âбþ¤·¤Þ¤¹ (4 ĺÅÀ´Ö ¤Ç³ê¤é¤«¤Ê¥«¥é¡¼ÊѲ½¤Ïµ¯¤³¤ê¤Þ¤»¤ó)¡£¤½¤ÎÃͤϡ¢corners2color < option> ¤Ë½¾¤Ã¤Æ¼þ°Ï¤Î³Ñ¤Î z ºÂɸ¤«¤é·×»»¤µ¤ì¤Þ¤¹¡£< option> ¤Ï 'mean' (¥Ç¥Õ¥© ¥ë¥È)¡¢'geomean', 'median' ¤Ç¡¢¶ÊÌ̤Υ«¥é¡¼¤ÎÊ¿³ê²½¤Ë´ö¤Ä¤«¤Î¼ïÎà¤òÍ¿ ¤¨¡¢'min','max' ¤Ï¤½¤ì¤¾¤ìºÇ¾®ÃÍ¡¢ºÇÂçÃͤòÁªÂò¤·¤Þ¤¹¡£¤³¤ì¤é¤Ï±ÔÉҤʡ¢ ¤¢¤ë¤¤¤ÏµÞ·ã¤Ê¥Ô¡¼¥¯Ãͤò»ý¤Ä¤è¤¦¤Ê¥Ô¥¯¥»¥ë¥¤¥á¡¼¥¸¤ä¿§ÃÏ¿Þ¤òºî¤ë¤È¤¤Ë ¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢¤à¤·¤í¥ª¥×¥·¥ç¥ó 'c1', 'c2', 'c3', 'c4' ¤ò»È¤Ã¤Æ¡¢»Í³Ñ·Á¤Î¿§¤Î³äÅö¤Ë¤¿¤À°ì¤Ä¤Î³Ñ¤Î z ºÂɸ¤ò»È¤¦¤è¤¦ ¤Ë¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£¤É¤Î³Ñ¤¬ 'c1' ¤ËÂбþ¤¹¤ë¤Î¤«¤òÃΤ뤿¤á¤Ë¤Ï²¿²ó¤« ¼Â¸³¤·¤Æ¤ß¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£¤½¤Î¸þ¤¤ÏÉÁ²è¤ÎÊý¸þ¤Ë°Í¸¤·¤Æ¤¤¤Þ¤¹¡£ pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¥«¥é¡¼¶ÊÌ̤òÆþÎϥǡ¼¥¿ÅÀ¤ÎÈϰϤγ°¤Ë¤ÏÉÁ¤«¤Ê¤¤¤Î ¤Ç¡¢¥ª¥×¥·¥ç¥ó 'c< j> ' ¤Ï¡¢³Ê»Ò¤Î 2 ¤Ä¤Î¤Ø¤ê¤Ë±è¤Ã¤¿¥Ô¥¯¥»¥ë¤¬¡¢¤É¤Î»Í ³Ñ·Á¤Î¿§¤Ë¤â´óÍ¿¤·¤Ê¤¤¡¢¤È¤¤¤¦·ë²Ì¤ò¤â¤¿¤é¤·¤Þ¤¹¡£Î㤨¤Ð¡¢pm3d ¥¢¥ë¥´ ¥ê¥º¥à¤ò 4x4 ¤Î¥Ç¡¼¥¿ÅÀ¤Î³Ê»Ò¤ËŬÍѤ¹¤ë¥¹¥¯¥ê¥×¥È demo/pm3d.dem (À§ È󸫤Ƥ¯¤À¤µ¤¤) ¤Ç¤Ï¡¢(4-1)x(4-1)=9 ¿§¤·¤«¤Ê¤¤Ä¹Êý·Á¤¬À¸À®¤µ¤ì¤Þ¤¹¡£
4 Îó¤Î¥Ç¡¼¥¿ (x,y,z,color) ¤Î¾ì¹ç:
4 ÎóÌܤ˥ǡ¼¥¿¤òÍ¿¤¨¤¿¾ì¹ç¡¢¤½¤ì¤òÄ̾ï¤ÏÊ̤˥ѥì¥Ã¥È¤Ë³ä¤êÅö¤Æ¤ë³¥¿§³¬ Ä´ÃͤȤߤʤ·¤Þ¤¹¡£¸Ä¡¹¤Î»Í³Ñ·Á¤ÎºÌ¿§¤Ï¾å¤ÈƱÍͤ˹Ԥ¤¤Þ¤¹¤¬¡¢¿§¤ÎÃÍ¤Ï z ¤ÎÃͤȤÏÀÚ¤êÎ¥¤µ¤ì¤Þ¤¹¡£Ê̤κ̿§¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢4 ÎóÌܤΥǡ¼¥¿¤Ë RGB ¿§¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È: rgbcolor variable (17.1.3)¡£¤³¤Î¾ì¹ç¡¢ÉÁ ²è¥³¥Þ¥ó¥É¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:
splot ... using 1:2:3:4 with pm3d lc rgb variable
Í¿¤¨¤é¤ì¤¿ÀáÅÀ¤ËÂФ·¤Æ¡¢¤½¤Î¼þ¤ê¤Î 4 ¤Ä¤ÎÀáÅÀ¤ÎÊ¿¶Ñ²½¤µ¤ì¤¿ (x,y) ºÂɸ ¤«¤é³Ñ¤òÆÀ¤Æ»Í³Ñ·Á¤òºî¤Ã¤Æ¡¢¤½¤Î»Í³Ñ·Á¤òÀáÅÀ¤Î¿§¤ÇÅɤ롢¤È¤¤¤Ã¤¿¤è¤¦¤Ê ¾¤ÎÉÁ²è¥¢¥ë¥´¥ê¥º¥à¤¬¾Íè¼ÂÁõ¤µ¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢¥¤¥á¡¼¥¸¤ÎÉÁ²è (2 ¼¡¸µ¤Î³Ê»Ò) ¤ËÂФ·¤Æ¤Ï image ¤È rgbimage ¥¹¥¿¥¤¥ë¤Ë¤è¤Ã¤Æ´û¤Ë¹Ô¤Ê¤ï¤ì¤Æ¤¤¤Þ¤¹¡£
z ¤ÎÃͤÎÈϰϤȶÊÌ̤理ÎÃͤÎÈϰϤϡ¢z ¤È cb ¤Ë´Ø¤¹¤ë set log ƱÍÍ¡¢ set zrange ¤È set cbrange ¤Ë¤è¤Ã¤ÆÆÈΩ¤ËÄ´À°¤·ÆÀ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ ¤¯¤À¤µ¤¤¡£¿§ÃÏ¿Þ¤Ï cb ¼´¤Î¤ß¤ÇÄ´Àᤵ¤ì¤Þ¤¹¡£°Ê²¼¤â»²¾È: set view map (82.82),set colorbox (82.12)¡£
set pm3d at s hidden3d depthorder unset hidden3d unset surf splot x*x+y*y linecolor rgb "black" linewidth 0.5
¥³¥Þ¥ó¥É set pm3d map ¤Ï°Ê²¼¤Î°ìÏ¢¤Î¤â¤Î¤ÈƱÃͤǤ¹: set pm3d at b;set view map; set style data pm3d; set style func pm3d;¡£¤³¤ì¤Ï set view map ¤¬¤Ê¤«¤Ã¤¿¤³¤í¤Îµì¥Ð¡¼¥¸¥ç¥ó¤Ø¤Î¸ß´¹¤Î¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£ ÆþÎϥǡ¼¥¿ÅÀ¤ò¥Õ¥£¥ë¥¿¤¹¤ë¤¿¤á¤Î zrange¡¢¤ª¤è¤Ó¿§¤ÎÈϰϤÎÊѹ¹ÍѤΠcbrange ¤òÃí°Õ¤·¤ÆŬÀڤ˻ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£set (no)surface ¤â ¸ú²Ì (ÉûºîÍÑ ?) ¤¬¤¢¤ë¤è¤¦¤Ç¤¹¡£
¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ï¡¢Â¿³Ñ·Á¤Î¿§¤ÎÅɤê¤Ä¤Ö¤·¤È³ê¤é¤«¤Ê¿§¤Î¥Ñ¥ì¥Ã¥È¤ò¥µ¥Ý¡¼ ¥È¤·¤¿½ÐÎÏ·Á¼°¤òɬÍפȤ·¡¢¤½¤ì¤Ï¸½ºß¡¢pm3d ¤Ç°ìÍ÷ɽ¼¨¤µ¤ì¤ë½ÐÎÏ·Á¼° ¤Ç»ÈÍѲÄǽ¤Ç¤¹¡£¿§¤ÎÃͤÎÈϰϤϡ¢set cbrange ¤È set log cb ¤ÇÆÈΩ¤Ë Ä´À°²Äǽ¤Ç¤¹¡£¥«¥é¡¼¥Ñ¥ì¥Ã¥ÈÁ´ÂÎ¤Ï colorbox Ãæ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
set palette set palette { { gray | color } { gamma <gamma> } { rgbformulae <r>,<g>,<b> | defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) } | file '<filename>' {datafile-modifiers} | functions <R>,<G>,<B> } { cubehelix {start <val>} {cycles <val>} {saturation <val>} } { model { RGB | HSV | CMY | YIQ | XYZ } } { positive | negative } { nops_allcF | ps_allcF } { maxcolors <maxcolors> } } show palette show palette palette <n> {{float | int}} show palette gradient show palette fit2rgbformulae show palette rgbformulae show colornames
set palette ¤Ï (¤¹¤Ê¤ï¤Á¥ª¥×¥·¥ç¥ó¤Ê¤·¤Ç¤Ï) ¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÀßÄꤷ¤Þ ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó¤ÏǤ°Õ¤Î½ç¤ËÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ show palette ¤Ï¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î°À¤òɽ¼¨¤·¤Þ¤¹¡£
show palette gradient ¤Ï¡¢¥Ñ¥ì¥Ã¥È¤Î¸ûÇÛ (gradient) ¤ÎÄêµÁ¤¬ (¤½¤ì¤¬ ŬÀڤǤ¢¤ì¤Ð) ɽ¼¨¤µ¤ì¤Þ¤¹¡£show palette rgbformulae ¤Ï¡¢ÄêµÁºÑ¤ÇÍø ÍѤǤ¤ë¡¢³¥¿§Ãͤ«¤é¥«¥é¡¼¤Ø¤ÎÊÑ´¹¸ø¼°¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ show colornames ¤Ï¡¢Ç§¼±¤Ç¤¤ë¿§Ì¾¤òɽ¼¨¤·¤Þ¤¹¡£
show palette palette < n> ¤Ï¡¢< n> ¸Ä¤ÎÎ¥»¶Åª¤Ê¿§¤ò»ý¤Ä¥Ñ¥ì¥Ã¥È¤Î¡¢¸½ ºß¤Î¥Ñ¥ì¥Ã¥È¤ÎÀßÄê¤Ë¤è¤Ã¤Æ·×»»¤µ¤ì¤ë RGB ¤ÎÃͤÎÁȤȥѥì¥Ã¥È¤Îɽ¤ò¡¢²è ÌÌ¡¢¤Þ¤¿¤Ï set print ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È ¤Î¹¤¤É½¤Ï¡¢ÄɲäΥª¥×¥·¥ç¥ó float ¤Þ¤¿¤Ï int ¤Ë¤è¤Ã¤Æ¡¢3 Îó¤Î [0..1] ¤Î¼Â¿ôÃͤÀ¤±¤Ë¤¹¤ë¤« [0..255] ¤ÎÀ°¿ôÃͤÀ¤±¤Ë¤¹¤ë¤«¤ò¤½¤ì¤¾¤ì»ØÄê¤Ç¤¤Þ ¤¹¡£¤³¤ÎÊýË¡¤Ç gnuplot ¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ò¡¢Octave ¤Î¤è¤¦¤Ê¾¤Î²èÁü¥¢¥× ¥ê¥±¡¼¥·¥ç¥ó¤ËÅϤ¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î¤è¤¦¤Ê¥Æ¥¥¹¥È·Á¼°¤Î RGB ¤Î°ìÍ÷ ɽ¤Ë²Ã¤¨¡¢test palette ¥³¥Þ¥ó¥É¤Ë¤è¤ê¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î R,G,B ¤Î¾õÂÖ ¤òÉÁ²è¤µ¤»¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¿§ÉÕ¤±¤Î°À¤ò·èÄꤷ¤Þ¤¹¡£
¤³¤Î¥Ñ¥ì¥Ã¥È¤ò»ÈÍѤ¹¤ë¿Þ¤Ï¡¢gray ¤« color ¤Ë¤Ê¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢ pm3d ¥«¥é¡¼¶ÊÌ̤Ǥϡ¢ÈÏ°Ï [min_z,max_z] ¤¬³¥¿§¤ÎÈÏ°Ï [0:1] ¤ËÂбþ¤· ¤Æ¤¤¤Æ¡¢Èù¾®¶ÊÌ̻ͳѷÁ¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃͤò¤³¤ÎÈϰϤÎÃæ¤ËÂбþ ¤µ¤»¤ë¤³¤È¤Ç³ÆÈù¾®Éôʬ¤Î³¥¿§¤ÎÃÍ (gray) ¤¬ÆÀ¤é¤ì¤Þ¤¹¡£¤³¤ÎÃͤϡ¢³¥¿§³¬ Ä´¤Î¿§ÃϿޤǤγ¥¿§¤ÎÃͤȤ·¤ÆľÀܻȤ¦¤³¤È¤¬¤Ç¤¤Þ¤¹¤·¡¢¥«¥é¡¼¤Î¿§ÃÏ¿Þ¤Ç ¤Ï¡¢¤½¤Î³¥¿§¤ÎÃͤ«¤é (R,G,B) ¤Ø¤ÎÊÑ´¹¡¢¤¹¤Ê¤ï¤Á [0:1] ¤«¤é ([0:1],[0:1],[0:1]) ¤Ø¤Î¼ÌÁü¤¬»È¤ï¤ì¤Þ¤¹¡£
´ðËÜŪ¤Ë¡¢2 ¼ïÎà¤Î°Û¤Ê¤ë¼ÌÁüÊý¼°¤¬ÍøÍѲÄǽ¤Ç¤¹: 1 ¤Ä¤Ï³¥¿§¤«¤é¥«¥é¡¼¤Ø ¤Î²òÀÏŪ¤Ê¸ø¼°¡¢¤â¤¦°ì¤Ä¤ÏÎ¥»¶Åª¤ÊÂбþɽ¤ÎÊä´Ö¤Ë¤è¤ë¤â¤Î¤Ç¤¹¡£ palette rgbformulae ¤È palette functions ¤¬²òÀÏŪ¤Ê¸ø¼°ÍѤǡ¢ palette defined ¤È palette file ¤¬Êä´ÖɽÍѤǤ¹¡£palette rgbformulae ¤Ï postscript ½ÐÎϤΥµ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¥³¥Þ¥ó¥É show palette fit2rgbformulae ¤Ï¡¢¸½ºß¤Î set palette ¤ËºÇ ¤âÎɤ¯Âбþ¤¹¤ë set palette rgbformulae ¤ò¸«¤Ä¤±½Ð¤·¤Þ¤¹¡£ÅöÁ³¡¢¤½¤ì ¤Ï rgbformulae ¥Ñ¥ì¥Ã¥È°Ê³°¤ËÂФ·¤Æ¤â°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¼ç ¤Ë¡¢¥Ñ¥ì¥Ã¥È¤Î rgbformulae ÄêµÁ¤¬ gnuplot ¤ÈƱ¤¸Êª¤ò»È¤Ã¤Æ¤¤¤ë³°Éô¥×¥í ¥°¥é¥à¡¢Î㤨¤Ð zimg ¤Ê¤É¤Ë¤È¤Ã¤ÆÍÍѤǤ¹ (
)¡£
set palette gray ¤Ï¡¢³¥¿§³¬Ä´¤Î¤ß¤Î¥Ñ¥ì¥Ã¥È¤Ë¤·¡¢ set palette rgbformulae, set palette defined, set palette file, set palette functions ¤Ï¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ë¤·¤Þ¤¹¡£³¥¿§¥Ñ¥ì¥Ã¥È¤«¤éľÁ° ¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø¡¢set palette color ¤Ç´Êñ¤ËÉüµ¢¤Ç¤¤Þ¤¹¡£
set palette gamma < gamma> ¤Ë¤è¤ë¼«Æ°Åª¤Ê¥¬¥ó¥ÞÊäÀµ¤Ï¡¢³¥¿§¤Î¥Ñ¥ì¥Ã¥È (set palette gray) ¤È¡¢cubehelix ¥«¥é¡¼¥Ñ¥ì¥Ã¥È·Á¼°¤Ë¹Ô¤ï¤ì¤Þ¤¹¡£ gamma = 1 ¤Î¾ì¹ç¤Ï¡¢Àþ·Á¤Î¸÷ÅÙ¸ûÇÛ¤òÀ¸À®¤·¤Þ¤¹¡£°Ê²¼»²¾È:test palette (87)¡£
½ÐÎÏ·Á¼°¤Î¿¤¯¤Ï¡¢Í¸Â¸Ä¤Î¿§¿ô¤·¤«¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó (Î㤨¤Ð gif ¤Ç ¤Ï 256 ¸Ä)¡£¥Ç¥Õ¥©¥ë¥È¤Î gnuplot ¤ÎÀþ¼ï¿§¤ò³ä¤êÅö¤Æ¤¿¸å¤Î»Ä¤ê¤Î͸ú¤Ê ¿§Îΰè¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï pm3d ÍѤËÊݸ¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ê£¿ô¤Î¥Ñ¥ì¥Ã¥È ¤ò»ÈÍѤ¹¤ë¤è¤¦¤Ê multiplot ¤Ï¡¢ºÇ½é¤Î¥Ñ¥ì¥Ã¥È¤¬¤¹¤Ù¤Æ¤Î͸ú¤Ê¿§¤ÎÇÛÃÖ ¤È¤·¤Æ»ÈÍѤµ¤ì¤Æ¤ë¤Î¤Ç¡¢¼ºÇÔ¤·¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£¤³¤Î¤è¤¦¤ÊÀ©¸Â¤Ï¡¢½½Ê¬ ¾®¤µ¤¤ÃÍ N ¤Ç set palette maxcolors < N> ¤ò»È¤¦¤³¤È¤Ç´ËϤǤ¤Þ¤¹¡£¤³ ¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢N ¸Ä¤ÎÎ¥»¶Åª¤Ê¿§¤ò¡¢Ï¢Â³Åª¤Ê¥Ñ¥ì¥Ã¥È¤«¤éÅù´Ö³Ö¤Ê¥µ¥ó¥× ¥ê¥ó¥°¤ÇÁªÂò¤·¤Þ¤¹¡£ÉÔÅù´Ö³Ö¤Ê N ¸Ä¤ÎÎ¥»¶¿§¤ò»È¤¤¤¿¤¤¾ì¹ç¤Ï¡¢°ì¤Ä¤ÎÏ¢ ³Ū¤Ê¥Ñ¥ì¥Ã¥È¤ÎÂå¤ï¤ê¤Ë set palette defined ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
RGB ¿§¶õ´Ö¤¬ºî¶È¤ò¹Ô¤¦¤Î¤Ë¾ï¤Ë¤â¤Ã¤È¤âÍÍѤʿ§¶õ´Ö¤Ç¤¢¤ë¤È¤Ï¸Â¤é¤Ê¤¤¡¢ ¤È¤¤¤¦Íýͳ¤Ç¡¢¿§¶õ´Ö¤Ï model ¤ò»È¤¦¤³¤È¤Ç¡¢RGB, HSV, CMY, YIQ, XYZ ¤Î¤¤¤º¤ì¤«¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£RGB °Ê³°¤Î¿§¶õ´Ö¤Ç¤Ïset palette defined ¤Îɽ¤Ç¿§Ì¾¤ò»È¤¦¤È¡¢¤½¤ì¤Ï¤ª¤«¤·¤Ê¿§¤Ë¤Ê¤ê¤Þ¤¹¡£ Á´¤Æ¤ÎÀâÌÀ¤Ï RGB ¿§¶õ´ÖÍѤ˽ñ¤¤¤Æ¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤¾¤ì¤Î¿§¶õ´Ö¤Ç¡¢Î㤨 ¤Ð R ¤Ï H, C, Y, X ¤Î¤³¤È¤ò°ÕÌ£¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (G, B ¤âƱÍÍ)¡£
Á´¤Æ¤Î¿§¶õ´Ö¤Ç¡¢Á´¤Æ¤ÎÃÍ¤Ï [0,1] ¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
RGB ¤ÏÀÖ¡¢ÎС¢ÀĤò¡¢CMY ¤Ï¿å¿§ (Cyan)¡¢»ç (Magenta)¡¢²« (Yellow) ¤ò¡¢ HSV ¤Ï¿§Áê (Hue)¡¢ºÌÅÙ (Saturation)¡¢ÌÀÅÙ (Value) ¤ò¤½¤ì¤¾¤ì°ÕÌ£¤·¤Þ¤¹¡£ YIQ ¤Ï Á´Êƾ¦¶È¥«¥é¡¼¥Æ¥ì¥ÓÊüÁ÷¶¨²ñ (the U.S. Commercial Color Television Broadcasting) ¤Î»È¤Ã¤¿¥«¥é¡¼¥â¥Ç¥ë¤Ç¡¢RGB µÏ¿Êý¼°¤ò¸µ¤Ë¤· ¤Æ¤¤¤Þ¤¹¤¬¡¢Çò¹õ¥Æ¥ì¥Ó¤ËÂФ¹¤ë¸åÊý¸ß´¹À¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£XYZ ¤Ï CIE ('Commission Internationale de l'Eclairage'; ¹ñºÝ¾ÈÌÀ°Ñ°÷²ñ) ¤¬ÄêµÁ¤· ¤¿¿§¥â¥Ç¥ë¤Î 3 ¤Ä¤Î¸¶»É·ãÃͤǤ¹¡£ ¿§¥â¥Ç¥ë¤Î¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤:
http://en.wikipedia.org/wiki/Color_space
RGB ¤Î¿§¶õ´Ö¤Ç¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÎɤ¤³ä¤êÅö¤Æ¸ø¼°¤¬¤¢¤ê¤Þ¤¹:
7,5,15 ... ÅÁÅýŪ pm3d (¹õ-ÀÄ-ÀÖ-²«) 3,11,6 ... ÎÐ-ÀÖ-»ç 23,28,3 ... ³¤ (ÎÐ-ÀÄ-Çò); ¾¤ÎÁȤ߹ç¤ï¤»¤â»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤ 21,22,23 ... ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò) 30,31,32 ... Çò¹õ¤Î¥«¥é¡¼É½¼¨²½ (¹õ-ÀÄ-»ç-²«-Çò) 33,13,10 ... Æú (ÀÄ-ÎÐ-²«-ÀÖ) 34,35,36 ... AFM ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò)
HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È:
3,2,2 ... ÀÖ-²«-ÎÐ-¿å¿§-ÀÄ-»ç-ÀÖ
rgbformulae ¤È¤¤¤¦Ì¾Á°¤Ç¸Æ¤Ð¤ì¤Æ¤¤¤Æ¤â¡¢Îã¤ÎÄ̤ꡢ¤½¤ì¤é¤Î´Ø¿ô¤Ï¼ÂºÝ ¤Ë¤Ï < H> ,< S> ,< V> ¤Þ¤¿¤Ï < X> ,< Y> ,< Z> , ... ¤È¤¤¤Ã¤¿¿§¤ÎÀ®Ê¬¤ò·èÄꤹ¤ë¤« ¤â¤·¤ì¤Ê¤¤¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¿Þ¤Î¿§¤òȿž¤µ¤»¤ë¤Ë¤Ï positive ¤ä negative ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¾¤Î¿§ÂηϤËÂФ¹¤ëºÇ¤âÎɤ¤ rgbformulae ¤Î½¸¹ç¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ç¸«¤Ä¤±¤ë¤³¤È¤¬¤Ç¤¤ë¤³¤È¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
show palette fit2rgbformulae
½ñ¼°:
set palette defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }
< grayX> ¤Ï [0,1] ¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¤Ù¤³¥¿§Ãͤǡ¢< colorX> ¤Ï¤½¤ì¤ËÂбþ¤¹ ¤ë RGB ¿§¤Ç¤¹¡£¥«¥é¡¼ÃÍ¤Ï 3 ¼ïÎà¤ÎÊýË¡¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
<color> := { <r> <g> <b> | '<color-name>' | '#rrggbb' }
ÀÖ¡¢ÎС¢ÀĤËÂбþ¤¹¤ë¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿ 3 ¤Ä¤ÎÃÍ (¤½¤ì¤¾¤ì [0,1] Æâ)¡¢°ú ÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿¿§Ì¾¡¢¤Þ¤¿¤Ï°úÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿ X ·Á¼°¤Î»ØÄêÊý¼°¡¢¤Î¤¤ ¤º¤ì¤«¤Ç¤¹¡£¸ûÇÛ¤ÎÄêµÁ¤Ç¤Ï¡¢¤³¤ì¤é¤Î 3 ¼ï¤Î·¿¤ò¼«Í³¤ËÁȤ߹ç¤ï¤»¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¤¬¡¢¿§¶õ´Ö¤È¤·¤Æ RGB ¤Ç¤Ê¤¤¤â¤Î¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¿§Ì¾ "red" ¤Ï ¾¯¤·°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£»ÈÍѤǤ¤ë¿§Ì¾¤Ï show colornames ¤Ç¤½ ¤Î°ìÍ÷¤ò¸«¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
< r> ¤È½ñ¤¤¤Æ¤â¡¢HSV ¿§¶õ´Ö¤Ç¤Ï¤½¤ì¤Ï < H> À®Ê¬¤ò¡¢CIE-XYZ ¶õ´Ö¤Ç¤Ï < X> ¤ò¡¢¤È¤¤¤Ã¤¿¤è¤¦¤ËÁªÂò¤µ¤ì¤¿¥«¥é¡¼¥â¥Ç¥ë¤Ë°Í¸¤·¤Æ°ÕÌ£¤¬°ã¤¦¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£
< gray> ¤ÎÃͤϼ¿ô¤Î¾º½ç¤Ëʤ٤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤½¤ÎÎó¤ÎÃͤϼ«Æ°Åª¤Ë [0,1] ¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£
¥«¥Ã¥³¤Ä¤¤Î¸ûÇÛ¤ÎÄêµÁ¤Ê¤·¤Ç set palette defined ¤È¤·¤¿¾ì¹ç¡¢RGB ¿§ ¶õ´Ö¤Ë¤·¡¢¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤¿¥Õ¥ë¥¹¥Ú¥¯¥È¥ë¿§¸ûÇÛ¤ò»ÈÍѤ·¤Þ¤¹¡£¸ûÇÛ¤ò ɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
³¥¿§¤Î¥Ñ¥ì¥Ã¥È (Ìò¤ËΩ¤¿¤Ê¤¤¤¬¶µ·±Åª¤Ê) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette model RGB set palette defined ( 0 "black", 1 "white" )
ÀIJ«À֤Υѥì¥Ã¥È (Á´¤Æ¤¬Åù²Á¤Î) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
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" )
Æú¤Î¤è¤¦¤Ê¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" )
HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥¹¥Ú¥¯¥È¥ë:
set palette model HSV set palette defined ( 0 0 1 1, 1 1 1 1 ) set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1)
MATLAB ¤Ç»È¤ï¤ì¤ë¥Ç¥Õ¥©¥ë¥È¥Ñ¥ì¥Ã¥È¤Î¶á»÷:
set pal defined (1 '#00008f', 8 '#0000ff', 24 '#00ffff', \ 40 '#ffff00', 56 '#ff0000', 64 '#800000')
Åù´Ö³Ö¤Ê¾¯¤·¤Î¿§¤À¤±¤Î¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:
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 model HSV functions gray, 1, 1
¹õ¤«¤é¶â¿§¤Ø¤ÎÎɤ¤¥Ñ¥ì¥Ã¥È:
set palette model XYZ functions gray**0.35, gray**0.5, gray**0.8
¥¬¥ó¥ÞÊäÀµ¤ÎÇò¹õ¤Î¥Ñ¥ì¥Ã¥È:
gamma = 2.2 color(gray) = gray**(1./gamma) set palette model RGB functions color(gray), color(gray), color(gray)
D A Green (2011) http://arxiv.org/abs/1108.5083
set palette cubehelix start 0.5 cycles -1.5 saturation 1 set palette gamma 1.5
Îã¤Ë¤è¤Ã¤Æ¡¢< filename> ¤¬ '-' ¤Î¾ì¹ç¤Ï¡¢¥Ç¡¼¥¿¤¬¥¤¥ó¥é¥¤¥ó·Á¼°¤Ç°ú¤ ³¤¤¤ÆÍ¿¤¨¤é¤ì¡¢°ì¤Ä¤Î e ¤Î¤ß¤Î¹Ô¤Ç¤½¤ì¤¬½ªÎ»¤¹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
¸ûÇÛ (gradient) ¤òɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»ÈÍѤ·¤Æ¤¯¤À ¤µ¤¤¡£
Îã:
RGB ¤Î¥Ñ¥ì¥Ã¥È¤ò [0,255] ¤ÎÈϰϤÇÆɤ߹þ¤à:
set palette file 'some-palette' using ($1/255):($2/255):($3/255)
Åùµ÷Î¥¤ÎÆú¿§ (ÀÄ-ÎÐ-²«-ÀÖ) ¥Ñ¥ì¥Ã¥È:
set palette model RGB file "-" 0 0 1 0 1 0 1 1 0 1 0 0 e
¥Ð¥¤¥Ê¥ê¥Ñ¥ì¥Ã¥È¥Õ¥¡¥¤¥ë¤âƱÍͤ˥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È:binary general (72.2.1)¡£R,G,B ¤Î double ¤Î¥Ç¡¼¥¿¤Î 64 ¸Ä¤Î 3 ¤ÄÁȤò¥Õ¥¡¥¤¥ë
palette.bin ¤Ë½ÐÎϤ·¡¢¤½¤ì¤òÆɤ߹þ¤àÎã:
set palette file "palette.bin" binary record=64 using 1:2:3
¥¬¥ó¥ÞÊäÀµ¤Ï¡¢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 )
¤Þ¤¿¤Ï¡¢Àþ·ÁÊä´Ö¤¬ "¥¬¥ó¥ÞÊäÀµ" ¤ÎÊä´Ö¤Ë½½Ê¬Îɤ¯Å¬¹ç¤¹¤ë¤Þ¤Ç¤è¤êÎɤ¤Ãæ ´Ö¤ÎÅÀ¤òõ¤·¤Æ¤¯¤À¤µ¤¤¡£
pm3d ¿§ÃÏ¿Þ¤¬¡¢³Ê»Ò¾õ¡¢¤¢¤ë¤¤¤Ï¤Û¤Üµ¬Â§Àµ¤·¤¤¥Ç¡¼¥¿¤«¤é postscript ¥Õ
¥¡¥¤¥ë¤È¤·¤ÆÉÁ²è¤µ¤ì¤¿¾ì¹ç¡¢gnuplot ¤ÈƱ»þ¤ËÇÛÉÛ¤µ¤ì¤ë awk ¥¹¥¯¥ê¥×¥È
pm3dCompress.awk ¤ò»È¤¦¤³¤È¤Ç¡¢¤³¤Î postscript ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤ò¤Û
¤Ü 50% °Ì¤Þ¤Ç¾®¤µ¤¯¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤òʸ½ñ¤Ë¼è¤ê¹þ¤à¾ì
¹ç¡¢¤¢¤ë¤¤¤ÏÄ㮤Υץê¥ó¥¿¤ËÂ礤ʥե¡¥¤¥ë¤ò°õºþ¤¹¤ëÁ°¤Ê¤É¤Ë¡¢¤³¤Îµ¡Ç½
¤Ë´Ø¿´¤ò»ý¤Ä¤³¤È¤Ç¤·¤ç¤¦¡£»ÈÍÑË¡¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
pm3d ¿§ÃÏ¿Þ¤¬»Í³Ñ·Á¤Î³Ê»Ò¾õ¥Ç¡¼¥¿¤«¤é postscript ¥Õ¥¡¥¤¥ë¤È¤·¤ÆÉÁ²è¤µ
¤ì¤¿¾ì¹ç¡¢Æ±»þ¤ËÇÛÉÛ¤µ¤ì¤ë awk ¥¹¥¯¥ê¥×¥È pm3dConvertToImage.awk ¤ò
»È¤¦¤³¤È¤Ç¡¢¤½¤Î¥µ¥¤¥º¤ò¹¹¤Ë¾®¤µ¤¯¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£»ÈÍÑË¡:
awk -f pm3dConvertToImage.awk <thefile.ps >smallerfile.ps
postscript ½ÐÎϤγ¥¿§³¬Ä´¤ò¥«¥é¡¼¤Ø¡¢¤Þ¤¿¤Ï¤½¤ÎµÕ¡¢¤½¤·¤Æ < maxcolors> ¤ÎÄêµÁ¤Ê¤É¤ò¡¢¼êÆ°¤ÇÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set pointsize <multiplier> show pointsize
¥Ç¥Õ¥©¥ë¥È¤Ï 1.0 ÇܤǤ¹¡£²èÁü¥Ç¡¼¥¿½ÐÎϤǤϡ¢Â礤¤¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÊý ¤¬¸«¤ä¤¹¤¤¤Ç¤·¤ç¤¦¡£
°ì¤Ä¤ÎÉÁ²è¤ËÂФ¹¤ë¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ï plot ¥³¥Þ¥ó¥É¤Î¾å¤Ç¤âÊѹ¹¤Ç¤¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: plot with (72.11)¡£
¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÀßÄê¤Ï¡¢É¬¤º¤·¤âÁ´¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤± ¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°:
set polar unset polar show polar
¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï¡¢²¾ÊÑ¿ô (t) ¤Ï³ÑÅÙ¤òɽ¤·¤Þ¤¹¡£t ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈÏ°Ï¤Ï [0:2*pi] ¤Ç¤¹¤¬¡¢Ã±°Ì¤È¤·¤ÆÅÙ¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ì¤Ð [0:360] ¤È¤Ê¤ê¤Þ¤¹ (°Ê²¼»²¾È: set angles (82.1))¡£
¥³¥Þ¥ó¥É unset polar ¤ÏÉÁ²èÊýË¡¤ò¥Ç¥Õ¥©¥ë¥È¤Î xy ľ¸òºÂɸ·Ï¤ËÌᤷ¤Þ ¤¹¡£
set polar ¥³¥Þ¥ó¥É¤Ï splot ¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£splot ¤Ë ÂФ¹¤ëƱÍͤε¡Ç½¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set mapping (82.38)¡£
¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï t ¤Î¿ô¼°¤Î°ÕÌ£¤Ï r=f(t) ¤È¤Ê¤ê¡¢t ¤Ï²óž³Ñ¤È¤Ê¤ê¤Þ¤¹¡£ trange ¤Ï´Ø¿ô¤ÎÄêµÁ°è (³ÑÅÙ) ¤òÀ©¸æ¤·¡¢rrange, xrange, yrange ¤Ï¤½¤ì¤¾ ¤ì¥°¥é¥Õ¤Î x,y Êý¸þ¤ÎÈϰϤòÀ©¸æ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÈÏ°Ï¤È rrange ¤Ï¼«Æ°Åª¤ËÀßÄꤵ¤ì¤ë¤«¡¢¤Þ¤¿¤ÏÌÀ¼¨Åª¤ËÀßÄê¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ë´Ø¤· ¤Æ¤Ï¡¢°Ê²¼»²¾È: set rrange (82.62), set xrange (82.95)¡£
Îã:
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] ¤ËÀ©¸Â¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
set size square ¤È¤¹¤ë¤È gnuplot ¤Ï¥¢¥¹¥Ú¥¯¥ÈÈæ (½Ä²£¤ÎÈæ) ¤ò 1 ¤Ë ¤¹¤ë¤Î¤Ç±ß¤¬ (ÂʱߤǤʤ¯) ±ß¤Ë¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ °Ê²¼¤â»²¾È
¤ª¤è¤Ó
¶ËºÂɸ¥Ç¡¼¥¿¤ÎÉÁ²è (poldat.dem)¡£
½ñ¼°:
set print set print "-" set print "<filename>" set print "<filename>" append set print "|<shell_command>"
"< filename> " ¤¬¤Ê¤¤¾ì¹ç¤Ï½ÐÎÏ¤Ï < STDERR> ¤Ë¤Ê¤ê¤Þ¤¹¡£"-" ¤È¤¤¤¦ < filename> ¤Ï < STDOUT> ¤ò°ÕÌ£¤·¤Þ¤¹¡£append ¥Õ¥é¥°¤Ï¥Õ¥¡¥¤¥ë¤òÄɲà (append) ¥â¡¼¥É¤Ç³«¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥×¥é¥Ã¥È¥Û ¡¼¥à¾å¤Ç¤Ï¡¢< filename> ¤¬ "| " ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤¿¤é¡¢< shell_command> ¤Ø¤Î¥Ñ ¥¤¥×¤¬³«¤«¤ì¤Þ¤¹¡£
1) `set psdir` ¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê 2) ´Ä¶ÊÑ¿ô GNUPLOT_PS_DIR ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê 3) ÁȤ߹þ¤Þ¤ì¤¿¥Ø¥Ã¥À¡¼¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥·¥¹¥Æ¥à¥Ç¥£¥ì¥¯¥È¥ê 4) `set loadpath` ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê
½ñ¼°:
set samples <samples_1> {,<samples_2>} show samples
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥µ¥ó¥×¥ë¿ô¤Ï 100 ÅÀ¤ÈÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÃͤòÁý¤ä¤¹¤È ¤è¤êÀµ³Î¤ÊÉÁ²è¤¬½ÐÍè¤Þ¤¹¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤ÎÉÁ²è¤Ë¤Ï²¿¤Î±Æ¶Á¤âÍ¿¤¨¤Þ¤»¤ó¤¬¡¢Êä´Ö/¶á»÷¤Î¥ª¥×¥·¥ç¥ó¤¬»È¤ï¤ì¤Æ¤¤¤ë ¾ì¹ç¤Ï¤½¤Î¸Â¤ê¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£2 ¼¡¸µÉÁ²è¤Ë¤Ä¤¤¤Æ¤Ï plot smooth ¤ò¡¢ 3 ¼¡¸µÉÁ²è¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set dgrid3d (82.18)¡£
2 ¼¡¸µ¤Î¥°¥é¥ÕÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤¤Ï < samples_1> ¤ÎÃͤΤߤ¬´Ø·¸¤·¤Þ¤¹¡£
±£Àþ½èÍý¤Ê¤·¤Ç¶ÊÌÌÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤¤Ï¡¢samples ¤ÎÃͤϸÉΩÀþËè¤Ëɾ²Á ¤µ¤ì¤ë¥µ¥ó¥×¥ë¿ô¤Î»ØÄê¤Ë¤Ê¤ê¤Þ¤¹¡£³Æ v-¸ÉΩÀþ¤Ï < samples_1> ¸Ä¤Î¥µ¥ó¥× ¥ëÅÀ¤ò»ý¤Á¡¢u-¸ÉΩÀþ¤Ï < samples_2> ¸Ä¤Î¥µ¥ó¥×¥ë¿ô¤ò»ý¤Á¤Þ¤¹¡£< samples_1> ¤Î¤ß»ØÄꤹ¤ë¤È¡¢< samples_2> ¤ÎÃÍ¤Ï < samples_1> ¤ÈƱ¤¸ÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ °Ê²¼¤â»²¾È: set isosamples (82.29)¡£
set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>} show size
< xscale> ¤È < yscale> ¤ÏÉÁ²èÁ´ÂΤγÈÂç¤ÎÇÜΨ¤Ç¡¢ÉÁ²èÁ´ÂΤȤϥ°¥é¥Õ¤È¥é ¥Ù¥ë¤È;Çò¤ÎÉôʬ¤ò´Þ¤ß¤Þ¤¹¡£
½ÅÍפÊÃí°Õ:
gnuplot ¤Î°ÊÁ°¤ÎÈǤǤϡ¢`set size` ¤ÎÃͤò¡¢½ÐÎϤ¹¤ëÉÁ²èÎΰè (¥¥ã¥ó¥Ð¥¹) ¤Î¥µ¥¤¥º¤òÀ©¸æ¤¹¤ë¤Î¤Ë¤â»È¤Ã¤Æ¤¤¤¿½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ ¤·¤¿¤¬¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤¬¤½¤¦¤À¤Ã¤¿¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ version 4.6 ¤Ç¤Ï¡¢¤Û¤È¤ó¤É¤Î½ÐÎÏ·Á¼°¤¬°Ê²¼¤Î¥ë¡¼¥ë¤Ë½¾¤¦¤è¤¦¤Ë¤Ê ¤ê¤Þ¤·¤¿:
set term < terminal_type> size < XX> , < YY> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¡¢ ¤Þ¤¿¤Ï "¥¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥µ¥¤¥º¥Ñ¥é¥á¡¼¥¿¤Î͸ú¤ÊÃÍ¤Ë ¤Ä¤¤¤Æ¤Ï¡¢¸Ä¡¹¤Î½ÐÎÏ·Á¼°¤Î¥Ø¥ë¥×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥° ¥é¥Õ¤Ï¤½¤Î¥¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£
set size < XX> , < YY> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤ÆÁêÂÐŪ¤Ë ¿½Ì¤µ¤»¤Þ¤¹¡£1 ¤è¤ê¾®¤µ¤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥¥ã¥ó¥Ð¥¹Á´ÂΤò Ëä¤á¤º¡¢1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß¤¬¥¥ã¥ó¥Ð¥¹ Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礤¤¿½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¤¢¤ë½ÐÎÏ ·Á¼°¤Ç¤ÏÌäÂ꤬µ¯¤³¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
ratio ¤Ï¡¢»ØÄꤷ¤¿ < xscale> , < yscale> ¤ÎÉÁ²èÈÏ°ÏÆâ¤Ç¡¢¥°¥é¥Õ¤Î¥¢¥¹¥Ú ¥¯¥ÈÈæ (½Ä²£Èæ) ¤ò < r> ¤Ë¤·¤Þ¤¹ (< r> ¤Ï x Êý¸þ¤ÎŤµ¤ËÂФ¹¤ë y Êý¸þ¤Î Ťµ¤ÎÈæ)¡£
< r> ¤ÎÃͤòÉé¤Ë¤¹¤ë¤È¤½¤Î°ÕÌ£¤Ï°ã¤Ã¤ÆÍè¤Þ¤¹¡£< r> =-1 ¤Î¤È¤¡¢x ¼´¡¢y ¼´ ¤ÎÁÐÊý¤Îñ°Ì (¤Ä¤Þ¤ê 1) ¤ÎÌÜÀ¹¤ÎŤµ¤¬Æ±°ì¤Ë¤Ê¤ë¤è¤¦ÀßÄꤵ¤ì¤Þ¤¹¡£¤³¤ì ¤Ï set view equal xy ¤ÈƱ¤¸¤Ç¤¹¡£°Ê²¼»²¾È: set view equal (82.82.1)¡£< r> =-2 ¤Î¤È¤¡¢y ¼´¤Îñ°ÌÌÜÀ¹¤ÎŤµ¤Ï x ¼´¤Îñ°ÌÌÜÀ¹¤ÎŤµ¤Î 2 ÇܤËÀßÄꤵ¤ì¤Þ ¤¹¡£< r> ¤¬Éé¤ÎÃͤ˴ؤ·¤Æ°Ê²¼Æ±ÍͤǤ¹¡£
gnuplot ¤¬»ØÄꤵ¤ì¤¿¥¢¥¹¥Ú¥¯¥ÈÈæ¤Î¥°¥é¥Õ¤ò¤Á¤ã¤ó¤È½ñ¤±¤ë¤«¤ÏÁªÂò¤µ¤ì ¤ë½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Þ¤¹¡£¥°¥é¥Õ¤ÎÎΰè¤Ï½ÐÎϤλØÄꤵ¤ì¤¿Éôʬ¤Ë¤Á¤ã¤ó¤È¼ý ¤Þ¤ê¡¢¥¢¥¹¥Ú¥¯¥ÈÈ椬 < r> ¤Ç¤¢¤ë¤è¤¦¤ÊºÇÂç¤ÎĹÊý·Á¤È¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó ŬÅö¤Ê;Çò¤â»Ä¤·¤Þ¤¹¤¬)¡£
square ¤Ï ratio 1 ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£
noratio ¤È nosquare ¤Ï¤¤¤º¤ì¤â¥°¥é¥Õ¤ò¤½¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç¤Î ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ËÌᤷ¤Þ¤¹¤¬¡¢< xscale> ¤È < yscale> ¤Ï¤½¤Î¥Ç¥Õ ¥©¥ë¥È¤ÎÃÍ (1.0) ¤Ë¤ÏÌᤷ¤Þ¤»¤ó¡£
ratio ¤È square ¤Ï 3 ¼¡¸µÉÁ²è¤Ç¤Ï°ÕÌ£¤ò»ý¤Á¤Þ¤»¤ó¤¬¡¢set view map ¤ò»ÈÍѤ·¤¿ 3 ¼¡¸µÉÁ²è¤Î 2 ¼¡¸µ¼Í±Æ¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ °Ê²¼¤â»²¾È:set view equal (82.82.1)¡£¤³¤ì¤Ï¡¢3 ¼¡¸µ¤Î x ¼´¤È y ¼´¤ò¶¯À©Åª¤ËƱ¤¸¥¹¥±¡¼¥ë¤Ë ¤·¤Þ¤¹¡£
Îã:
¥°¥é¥Õ¤¬¸½ºß¤Î¥¥ã¥ó¥Ð¥¹¤òËä¤á¤ë¤è¤¦¤ÊÂ礤µ¤ËÀßÄꤷ¤Þ¤¹:
set size 1,1
¥°¥é¥Õ¤òÄ̾ï¤ÎȾʬ¤ÎÂ礤µ¤ÇÀµÊý·Á¤Ë¤·¤Þ¤¹:
set size square 0.5,0.5
¥°¥é¥Õ¤Î¹â¤µ¤ò²£Éý¤Î 2 Çܤˤ·¤Þ¤¹:
set size ratio 2
½ñ¼°:
set style function <style> set style data <style> show style function show style data
»ØÄê¤Ç¤¤ëÉÁ²èÍ×ÁǤΥǥե©¥ë¥È¥¹¥¿¥¤¥ë¤âÀßÄê¤Ç¤¤Þ¤¹¡£
set style arrow <n> <arrowstyle> set style fill <fillstyle> set style histogram <histogram style options> set style line <n> <linestyle>
gnuplot ¤¬ object ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤â͸ú¤Ç¤¹:
½ñ¼°:
set style rectangle <object options> <linestyle> <fillstyle> set style circle radius <size> {clip|noclip} set style ellipse size <size> units {xy|xx|yy} {clip|noclip}
½ñ¼°:
set style arrow <index> default set style arrow <index> {nohead | head | heads} {size <length>,<angle>{,<backangle>}} {filled | empty | nofilled} {front | back} { {linestyle | ls <line_style>} | {linetype | lt <line_type>} {linewidth | lw <line_width} } unset style arrow show style arrow
< index> ¤ÏÀ°¿ô¤Ç¡¢¤½¤ì¤ÇÌð¤Î¥¹¥¿¥¤¥ë (arrowstyle) ¤òÆÃÄꤷ¤Þ¤¹¡£
default ¤ò»ØÄꤹ¤ë¤È¡¢Á´¤Æ¤Î arrow ¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤Ï¤½¤Î¥Ç¥Õ¥©¥ë ¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
< index> ¤Î arrowstyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£< index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
nohead ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÌðÀè¤Î¤Ê¤¤Ì𡢤¹¤Ê¤ï¤ÁÀþʬ¤ò½ñ¤¯¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¾å¤ËÀþʬ¤òÉÁ¤¯Ê̤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ¤Ä¤ÎÌðÀ褬¤Ä¤¤¤Æ¤¤¤Þ¤¹¡£heads ¤Î»ØÄê¤ÇÀþʬ¤Îξü¤ËÌðÀ褬ÉÁ¤«¤ì¤Þ¤¹¡£
ÌðÀè¤ÎÂ礤µ¤Ï size < length> ,< angle> ¤Þ¤¿¤Ï size < length> ,< angle> ,< backangle> ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£< length> ¤ÏÌðÀè ¤Î³Æ»Þ¤ÎŤµ¤Ç¡¢< angle> ¤ÏÌðÀè¤Î»Þ¤ÈÌð¼´¤¬¤Ê¤¹³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤Ç¤¹¡£ < length> ¤Îñ°Ì¤Ï x ¼´¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤½¤ì¤Ï < length> ¤ÎÁ°¤Ë first, second, graph, screen, character ¤ò¤Ä¤±¤ë¤³¤È¤ÇÊѹ¹¤Ç ¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£< backangle> ¤Ï¡¢filled ¤« ¤Þ¤¿¤Ï empty ¤¬¤È¤â¤Ë»È¤ï¤ì¤¿¾ì¹ç¤Î¤ß¸úÎϤò»ý¤Á¡¢¤½¤Î¾ì¹ç¡¢ < backangle> ¤ÏÌðÀè¤Î¸å¤í¤ÎÉôʬ¤ÎÌ𼴤ȤÎÀÚ¤ê³Ñ (< angle> ¤ÈƱ¤¸Êý¸þ; ñ°Ì¤ÏÅÙ) ¤Ë¤Ê¤ê¤Þ¤¹¡£½ÐÎÏ·Á¼° fig ¤Ï¡¢À©¸Â¤µ¤ì¤¿ÀÚ¤ê³Ñ´Ø¿ô¤ò»ý¤Ã¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï 3 ¤Ä¤Î°Û¤Ê¤ë·Á¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï 2 ¤Ä¤ÎïçÃͤǷèÄê ¤·¤Þ¤¹: 70 ÅṲ̀Ëþ¤Î¾ì¹ç¡¢ÌðÀè¤Ï¤Ø¤³¤ó¤ÀÀÚ¤ê³Ñ¤ò»ý¤Á¡¢110 ÅÙ¤òĶ¤¨¤ë¾ì ¹ç¡¢¸å¤í¤ÎÉôʬ¤ËÀí¤Ã¤¿³Ñ¤ò»ý¤Á¡¢¤½¤Î´Ö¤Î³Ñ¤Ç¤Ï¡¢ÌðÀè¤Î¸å¤í¤ÏľÀþ¤Ë¤Ê¤ê ¤Þ¤¹¡£
filled ¤ò»ØÄꤹ¤ë¤È¡¢Åɤê¤Ä¤Ö¤µ¤ì¤¿ÌðÀè¤òºî¤ê¤Þ¤¹ (heads ¤¬»È¤ï¤ì ¤Æ¤¤¤ë¾ì¹ç)¡£Åɤê¤Ä¤Ö¤·¤Ï¡¢Â¿³Ñ·Á¤ÎÅɤê¤Ä¤Ö¤·¤¬¹Ô¤¨¤ë¤è¤¦¤Ê½ÐÎÏ·Á¼°¤Ç ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Æ¡¢¤½¤Î¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: pm3d (82.53)¡£Â¾¤Î½ÐÎÏ·Á ¼°¤Ç¤ÏÌðÀè¤ÏÊĤ¸¤é¤ì¤Þ¤¹¤¬Åɤê¤Ä¤Ö¤µ¤ì¤Þ¤»¤ó¡£¤½¤ì¤ÈƱ¤¸¸ú²Ì (ÊĤ¸¤é¤ë ¤¬Åɤé¤ì¤Ê¤¤) ¤Ï¡¢empty ¤ò»ØÄꤷ¤Æ¤âÆÀ¤é¤ì¤Þ¤¹¡£¤Þ¤¿¡¢metafont, metapost, latex, tgif ¤Î¤è¤¦¤Ë¡¢Ìð¤ò¤½¤ì¤é¼«¿È¤ÎÆȼ«¤Î¥ë¡¼¥Á¥ó¤Ç ÉÁ¤¯¤è¤¦¤Ê½ÐÎÏ·Á¼°¤Ç¤Ï¡¢ÌðÀè¤ÎÅɤê¤Ä¤Ö¤·¤äÌðÀè¤ÎÏÈÀþÉÁ¤¤Ï¤â¤Á¤í¤ó¥µ¥Ý ¡¼¥È¤µ¤ì¤Þ¤»¤ó¡£
Àþ¼ï¤Ï¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤«¤éÁª¤Ö¤³¤È¤â¤Ç¤¤Þ¤¹¤· (°Ê²¼»²¾È: set style line (82.66.7))¡¢ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë < line_type> ¤ÎÃÍ (¥Ç¥Õ ¥©¥ë¥È¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤ÎÈÖ¹æ) ¤½¤·¤Æ < linewidth> (¥Ç¥Õ¥©¥ë¥È ¤ÎÉý¤ÎÇÜ¿ô) ¤ò»È¤Ã¤Æ¤³¤³¤ÇÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
¤·¤«¤·¡¢¥æ¡¼¥¶¡¼ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¡¢¤½¤Î°À (Àþ¼ï¡¢ Éý) ¤Ï¡¢Ã±¤Ë¾¤Î set style arrow ¥³¥Þ¥ó¥É¤ÇŬÅö¤ÊÈÖ¹æ¤ä lt, lw ¤Ê¤É¤ò»ØÄꤷ¤Æ¤â¡¢Êѹ¹¤Ï¤Ç¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£
front ¤ò»ØÄꤹ¤ë¤È¡¢Ìð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»Ø Äꤵ¤ì¤¿¾ì¹ç (¥Ç¥Õ¥©¥ë¥È) ¤ÏÌð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤ÇÌ𤬸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
ÌðÀ褬¤Ê¤¯¡¢ÇܤÎÉý¤¬Ìð¤òÉÁ¤¯¤Ë¤Ï:
set style arrow 1 nohead lw 2 set arrow arrowstyle 1
¤½¤Î¾¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set arrow (82.2)¡£
½ñ¼°:
set style boxplot {range <r> | fraction <f>} {{no}outliers} {pointtype <p>} {candlesticks | financebars} {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 ¤Ï¤³¤ì¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï boxplot ¤Ï candlesticks ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤·¤Þ¤¹¤¬¡¢ financebars ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤¹¤ë¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£
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 (28), candlesticks (30), financebars (35)¡£
½ñ¼°:
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 ¤Ï¡¢È¢¤òÅɤê¤Ä¤Ö¤·¤Þ¤»¤ó¤¬¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î border ¤Ï¡¢¸½ºß¤ÎÀþ¤Î¼ïÎà¤Î¼ÂÀþ¤ÇÈ¢¤Î¶³¦¤òÉÁ¤¤Þ¤¹¡£ border < colorspec> ¤Ç¶³¦¤Î¿§¤òÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£noborder ¤Ï ¶³¦¤ÎÀþ¤¬ÉÁ¤«¤ì¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
½ÐÎÏ·Á¼° | solid | pattern | pm3d |
gif | no | yes | no |
jpeg | yes | no | yes |
yes | yes | yes | |
png | TrueColor | index | yes |
post | no | yes | no |
svg | yes | no | yes |
win | yes | yes | yes |
wxt | yes | yes | yes |
x11 | no | yes | no |
Æ©ÌÀ¤ÊÅɤê¤Ä¤Ö¤·Îΰè¤ò´Þ¤à¥°¥é¥Õ¤ò¸«¤¿¤êºî¤Ã¤¿¤ê¤¹¤ë¤Î¤Ë¤Ï¡¢Ê̤ÊÀ©¸Â¤¬ ¤¢¤ê¤¦¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢png ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢"truecolor" ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÆ©ÌÀ²½¤ÎÅɤêÄÙ¤·¤¬ÍøÍѤǤ¤Þ¤¹¡£ PDF ¥Õ¥¡¥¤¥ë¤Ë¤ÏÆ©ÌÀ²½Îΰ褬Àµ¤·¤¯µ½Ò¤µ¤ì¤Æ¤¤¤Æ¤â¡¢PDF ¤Îɽ¼¨¥½¥Õ¥È¤Ë ¤è¤Ã¤Æ¤Ï¤½¤ì¤òÀµ¤·¤¯É½¼¨¤Ç¤¤Ê¤¤¤³¤È¤â¤¢¤ê¤¨¤Þ¤¹¡£¼ÂºÝ¤Ë PostScript ¥× ¥ê¥ó¥¿¤Ç¤ÏÌäÂê¤Ï¤Ê¤¤¤Î¤Ë¡¢Ghostscript/gv ¤Ç¤Ï¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·Îΰè¤ò Àµ¤·¤¯É½¼¨¤Ç¤¤Þ¤»¤ó¡£
½ñ¼°:
set style function <plotting-style> show style function
½ñ¼°:
set style increment {default|userstyles} show style increment
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Æ±¤¸¥°¥é¥Õ¾å¤Î¼¡¤ÎÉÁ²è¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤Ç¥Ç¥Õ¥©¥ë¥È¤Ç ÄêµÁ¤µ¤ì¤Æ¤¤¤ëÀþ¼ï¤Î¼¡¤Î¤â¤Î¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£ ¤·¤«¤·¡¢set style increment user ¤òÁªÂò¤¹¤ë¤È¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤Ç¤Ï ¤Ê¤¯¡¢¥æ¡¼¥¶ÄêµÁ¥é¥¤¥ó¥¹¥¿¥¤¥ëÈÖ¹æ¤Î¤â¤Î¤ò»ÈÍѤµ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
Îã:
set style line 1 lw 2 lc rgb "gold" set style line 2 lw 2 lc rgb "purple" set style line 4 lw 1 lc rgb "sea-green" set style increment user
plot f1(x), f2(x), f3(x), f4(x)
¤³¤ì¤Ï¡¢´Ø¿ô f1, f2, f4 ¤Ï¿·¤¿¤Ë¥æ¡¼¥¶ÄêµÁ¤µ¤ì¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤µ ¤ì¤Þ¤¹¡£¥æ¡¼¥¶ÄêµÁ¥é¥¤¥ó¥¹¥¿¥¤¥ë¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë¤½¤ì¤ËÂÐ ±þ¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤¬ÍøÍѤµ¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢¾å¤ÎÎã¤Ç¤Ï¡¢f3(x) ¤Ï¥Ç¥Õ ¥©¥ë¥È¤ÎÀþ¼ï 3 ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
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>} {palette} unset style line show style line
default ¤Ï¡¢Á´¤Æ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤ò¤½¤ì¤ÈƱ¤¸ index ¤ò»ý¤Ä Àþ¼ï (linetype) ¤ËÀßÄꤷ¤Þ¤¹¡£
< index> ¤Î linestyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£< index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
¤³¤Î¤è¤¦¤Ë¤Ä¤¯¤é¤ì¤ë¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î·¿ (Àþ¼ï, ÅÀ¼ï) ¤ò Ê̤ʤâ¤Î¤ËÃÖ¤´¹¤¨¤ë¤³¤È¤Ï¤·¤Ê¤¤¤Î¤Ç¡¢¥é¥¤¥ó¥¹¥¿¥¤¥ë¡¢¥Ç¥Õ¥©¥ë¥È¤Î·¿¡¢ ¤É¤Á¤é¤â»È¤¨¤Þ¤¹¡£¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Ï°ì»þŪ¤Ê¤â¤Î¤Ç¡¢¥³¥Þ¥ó¥É reset ¤ò ¼Â¹Ô¤¹¤ì¤Ð¤¤¤Ä¤Ç¤â¤½¤ì¤é¤Ï¾Ã¤¨µî¤ê¤Þ¤¹¡£Àþ¼ï¼«ÂΤòºÆÄêµÁ¤·¤¿¤¤¾ì¹ç¤Ï¡¢ °Ê²¼»²¾È: set linetype (82.32)¡£
Àþ¼ï¤ÈÅÀ¼ï¤Ï¡¢¤½¤Î index Ãͤò¥Ç¥Õ¥©¥ë¥È¤È¤·¤Þ¤¹¡£¤½¤Î index ÃͤËÂФ¹¤ë ¼ÂºÝ¤Îµ¹æ¤Î·Á¤Ï¡¢½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ°Û¤Ê¤êÆÀ¤Þ¤¹¡£
ÀþÉý¤ÈÅÀ¤ÎÂ礤µ¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉý¡¢Â礤µ¤ËÂФ¹¤ë¾è¿ô ¤Ç¤¹ (¤·¤«¤·¡¢¤³¤³¤Ç¤Î < point_size> ¤Ï¡¢¥³¥Þ¥ó¥É set pointsize ¤ÇÍ¿ ¤¨¤é¤ì¤ë¾è¿ô¤Ë¤Ï±Æ¶Á¤ò¼õ¤±¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤)¡£
pointinterval ¤Ï¡¢¥¹¥¿¥¤¥ë linespoints ¤Ç¥°¥é¥ÕÃæ¤ËÉÁ¤«¤ì¤ëÅÀ¤Î´Ö ³Ö¤òÀ©¸æ¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤¹ (¤¹¤Ù¤Æ¤ÎÅÀ¤¬ÉÁ²è¤µ¤ì¤ë)¡£Î㤨¤Ð¡¢ set style line N pi 3 ¤Ï¡¢ÅÀ¼ï¤¬ N¡¢ÅÀ¤ÎÂ礤µ¤ÈÀþÉý¤Ï¸½ºß¤Î½ÐÎÏ·Á¼° ¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¡¢with linespoints ¤Ç¤ÎÉÁ²è¤Ç¤ÏÅÀ¤Ï 3 ÈÖÌÜËè¤ËÉÁ²è¤µ¤ì ¤ë¤è¤¦¤Ê¥é¥¤¥ó¥¹¥¿¥¤¥ë¤òÄêµÁ¤·¤Þ¤¹¡£¤½¤Î´Ö³Ö¤òÉé¤ÎÃͤˤ¹¤ë¤È¡¢¤½¤ì¤Ï´Ö ³Ö¤ÏÀµ¤ÎÃͤξì¹ç¤ÈƱ¤¸¤Ç¤¹¤¬¡¢ÅÀ¤Îµ¹æ¤Î²¼¤Ë¤Ê¤ëÀþ¤ò½ñ¤«¤Ê¤¤¤è¤¦¤Ë¤·¤Þ ¤¹ (½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï)¡£
Á´¤Æ¤Î½ÐÎÏÁõÃÖ¤¬ linewidth ¤ä pointsize ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï ¤¢¤ê¤Þ¤»¤ó¡£¤â¤·¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¤½¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï̵»ë¤µ¤ì ¤Þ¤¹¡£
½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤¿§¤ò linecolor < colorspec> ¤« linetype < colorspec> (¾Êά·Á¤Ï lc, lt) ¤Î¤¤¤º¤ì¤«¤ò»È¤Ã¤Æ³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î ¾ì¹ç¡¢¿§¤Ï RGB ¤Î 3 ¤ÄÁȤÇÍ¿¤¨¤ë¤«¡¢gnuplot ¤Î»ý¤Ä¥Ñ¥ì¥Ã¥È¤Î¿§Ì¾¡¢¸½ºß ¤Î¥Ñ¥ì¥Ã¥È¤ËÂФ¹¤ë¾®¿ô»ØÄê¡¢¤Þ¤¿¤Ï cbrange ¤Ø¤Î¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤ÎÂбþ¤Ë ÂФ¹¤ëÄê¿ôÃÍ¡¢¤Î¤¤¤º¤ì¤«¤ÇÍ¿¤¨¤Þ¤¹¡£°Ê²¼»²¾È: colors (17), colorspec (17.1),set palette (82.54), colornames (82.13), cbrange (82.126)¡£
set style line < n> linetype < lt> ¤Ï¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤¿ÅÀÀþ/ÇËÀþ¤Î¥Ñ ¥¿¡¼¥ó¤È¿§¤ÎξÊý¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£set style line < n> linecolor < colorspec> ¤ä set style line < n> linetype < colorspec> ¤Ï¡¢¸½ºß¤ÎÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿ ¡¼¥ó¤òÊѹ¹¤»¤º¤Ë¿·¤·¤¤Àþ¿§¤òÀßÄꤷ¤Þ¤¹¡£
3 ¼¡¸µ¥â¡¼¥É(splot ¥³¥Þ¥ó¥É) ¤Ç¤Ï¡¢"linetype palette z" ¤Î¾Êά·Á¤È¤· ¤ÆÆÃÊ̤˥¡¼¥ï¡¼¥É palette ¤ò»È¤¦¤³¤È¤âµö¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤Î¿§¤ÎÃͤϡ¢ splot ¤Î z ºÂɸ (¹â¤µ) ¤ËÂбþ¤·¡¢¶ÊÀþ¡¢¤¢¤ë¤¤¤Ï¶ÊÌ̤˱è¤Ã¤Æ³ê¤é¤«¤ËÊÑ ²½¤·¤Þ¤¹¡£
Îã: °Ê²¼¤Ç¤Ï¡¢ÈÖ¹æ 1, 2, 3 ¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤ò¤½¤ì¤¾¤ìÀÖ¡¢ÎС¢ÀĤȤ·¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÅÀ¤Î·Á¤ò¤½¤ì¤¾¤ìÀµÊý·Á¡¢½½»ú¡¢»°³Ñ·Á¤Ç¤¢¤ë¤È¤·¤Þ¤¹¡£¤³¤Î¤È¤ °Ê²¼¤Î¥³¥Þ¥ó¥É
set style line 1 lt 2 lw 2 pt 3 ps 0.5
¤Ï¡¢¿·¤·¤¤¥é¥¤¥ó¥¹¥¿¥¤¥ë¤È¤·¤Æ¡¢ÎФǥǥե©¥ë¥È¤Î 2 ÇܤÎÉý¤ÎÀþ¡¢¤ª¤è¤Ó »°³Ñ·Á¤ÇȾʬ¤ÎÉý¤ÎÅÀ¤òÄêµÁ¤·¤Þ¤¹¡£¤Þ¤¿¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É
set style function lines plot f(x) lt 3, g(x) ls 1
¤Ï¡¢f(x) ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀÄÀþ¤Ç¡¢g(x) ¤Ï¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿ÎФÎÀþ¤ÇÉÁ²è¤·¤Þ ¤¹¡£Æ±Íͤˡ¢¥³¥Þ¥ó¥É
set style function linespoints plot p(x) lt 1 pt 3, q(x) ls 1
¤Ï¡¢p(x) ¤òÀÖ¤¤Àþ¤Ç·ë¤Ð¤ì¤¿¥Ç¥Õ¥©¥ë¥È¤Î»°³Ñ·Á¤Ç¡¢q(x) ¤ÏÎФÎÀþ¤Ç·ë¤Ð¤ì ¤¿¾®¤µ¤¤»°³Ñ·Á¤ÇÉÁ²è¤·¤Þ¤¹¡£
splot sin(sqrt(x*x+y*y))/sqrt(x*x+y*y) w l pal
¤Ï¡¢palette ¤Ë½¾¤Ã¤Æ³ê¤é¤«¤Ê¿§¤ò»È¤Ã¤Æ¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¤½¤ì¤ò ¥µ¥Ý¡¼¥È¤·¤¿½ÐÎÏ·Á¼°¤Ç¤·¤«¤Á¤ã¤ó¤È¤ÏÆ°ºî¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼¤â»²¾È: set palette (82.54), set pm3d (82.53)¡£
set style line 10 linetype 1 linecolor rgb "cyan"
¤Ï¡¢RGB ¥«¥é¡¼¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¡¢¥é¥¤¥ó¥¹¥¿¥¤¥ë 10 ¤Ë¼Â Àþ¤Î¿å¿§¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£
½ñ¼°:
set style circle {radius {graph|screen} <R>} {clip|noclip}
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë "with circles" ¤Ç»È¤ï¤ì¤ë¥Ç¥Õ¥©¥ë¥È¤ÎȾ·Â ¤òÀßÄꤷ¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿ÉÁ²è¤Ç 2 Îó¤Î¥Ç¡¼¥¿ (x,y) ¤·¤«Í¿¤¨¤Ê¤«¤Ã¤¿ ¾ì¹ç¡¢¤¢¤ë¤¤¤Ï´Ø¿ôÉÁ²è¤Î¤È¤¤ËŬÍѤµ¤ì¤Þ¤¹¡£ "noclip" ¤Ï¡¢¥°¥é¥Õ¤Î¶³¦¤Ç¤Î±ß¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï°Ê²¼¤ÎÄ̤ê: "set style circle radius graph 0.02 clip"¡£
¥³¥Þ¥ó¥É set object ¤ÇÄêµÁ¤µ¤ì¤¿Ä¹Êý·Á¤Ë¤ÏÊÌ¡¹¤Î¥¹¥¿¥¤¥ë¤òÀßÄê¤Ç¤¤Þ ¤¹¡£¤·¤«¤·¡¢¸ÄÊ̤Υ¹¥¿¥¤¥ë»ØÄê¤ò¤·¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¥³¥Þ¥ó¥É set style rectangle ¤Ë¤è¤ë¥Ç¥Õ¥©¥ë¥È¤ò¼õ¤±·Ñ¤®¤Þ¤¹¡£
½ñ¼°:
set style rectangle {front|back} {lw|linewidth <lw>} {fillcolor <colorspec>} {fs <fillstyle>}
°Ê²¼»²¾È: colorspec (17.1), fillstyle (82.66.4)¡£fillcolor ¤Ï fc ¤È¾Êά¤Ç¤¤Þ¤¹¡£
Îã:
set style rectangle back fc rgb "white" fs solid 1.0 border lt -1 set style rectangle fc linsestyle 3 fs pattern 2 noborder
¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ï¡¢ÇØ·Ê¿§¤Ç¤ÎÅɤêÄÙ¤·¤Ç¡¢¶³¦¤Ï¹õ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
½ñ¼°:
set style ellipse {units xx|xy|yy} {clip|noclip} {size {graph|screen} <a>, {{graph|screen} <b>}} {angle <angle>}
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢ÂʱߤÎľ·Â¤òƱ¤¸Ã±°Ì¤Ç·×»»¤¹¤ë¤«¤É¤¦¤«¤òÀ©¸æ¤·¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï xy ¤Ç¡¢¤³¤ì¤ÏÂʱߤμ缴 (Âè 1 ¼´) ¤Îľ·Â¤Ï x (¤Þ¤¿¤Ï x2) ¼´¤ÈƱ¤¸Ã±°Ì¤Ç·×»»¤·¡¢Éû¼´ (Âè 2 ¼´) ¤Îľ·Â¤Ï y (¤Þ¤¿¤Ï y2) ¼´¤Îñ°Ì¤Ç ·×»»¤·¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢ÂʱߤÎξ¼´¤ÎÈæ¤Ï¡¢ÉÁ²è¼´¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ë°Í ¸¤·¤Þ¤¹¡£xx ¤« yy ¤ËÀßÄꤹ¤ì¤Ð¡¢¤¹¤Ù¤Æ¤ÎÂʱߤÎξ¼´¤ÏƱ¤¸Ã±°Ì¤Ç·× »»¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÉÁ²è¤µ¤ì¤ëÂʱߤÎξ¼´¤ÎÈæ¤Ï¡¢²óž¤·¤Æ¤âÀµ¤·¤¤¤Þ¤Þ¤Ç ¤¹¤¬¡¢¿åÊ¿Êý¸þ¤«¿âľÊý¸þ¤Î°ìÊý¤Î½Ì¼Ü¤ÎÊѹ¹¤Ë¤è¤êÀµ¤·¤¯¤Ê¤¯¤Ê¤ë¤³¤È¤ò°Õ Ì£¤·¤Þ¤¹¡£
¤³¤ì¤Ï¡¢object ¤È¤·¤ÆÄêµÁ¤µ¤ì¤¿Âʱߡ¢¥³¥Þ¥ó¥É plot ¤Ë¤è¤Ã¤ÆÉÁ²è¤µ¤ì ¤ëÂʱߤÎξÊý¤Ë±Æ¶Á¤òÍ¿¤¨¤ëÁ´ÂÎŪ¤ÊÀßÄê¤Ç¤¹¤¬¡¢units ¤ÎÃͤϡ¢ÉÁ²èËè¡¢ ¥ª¥Ö¥¸¥§¥¯¥ÈËè¤ËÀßÄê¤òºÆÄêµÁ¤Ç¤¤Þ¤¹¡£
ÂʱߤΥǥե©¥ë¥È¤Î¥µ¥¤¥º¤â¡¢¥¡¼¥ï¡¼¥É size ¤ÇÀßÄê¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë ¥È¤Î¥µ¥¤¥º¤Ï¡¢2 Îó¤Î¤ß¤Î¥Ç¡¼¥¿¡¢¤Þ¤¿¤Ï´Ø¿ô¤Î plot Ì¿Îá¤ÇŬÍѤµ¤ì¤Þ¤¹¡£ 2 ¤Ä¤ÎÃͤϡ¢ÂʱߤΠ(2 ¤Ä¤Î¼ç¼´¡¢2 ¤Ä¤ÎÉû¼´¤Ë¸þ¤«¤¤¹ç¤¦) ¼ç¼´Ä¾·Â¤ÈÉû¼´ ľ·Â¤È¤·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ï¡¢"set style ellipse size graph 0.05,0.03" ¤Ç¤¹¡£
ºÇ¸å¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Î¸þ¤¤ò¥¡¼¥ï¡¼¥É angle ¤ÇÀßÄê¤â¤Ç¤¤Þ ¤¹¡£¸þ¤¤Ï¡¢Âʱߤμ缴¤È¥°¥é¥Õ¤Î x ¼´¤ÎÊý¸þ¤È¤Ê¤¹³Ñ¤Ç¡¢Ã±°Ì¤ÏÅÙ¤ÇÍ¿¤¨ ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
"noclip" ¤Ï¡¢¥°¥é¥Õ¤Î¶³¦¤Ç¤ÎÂʱߤΥ¯¥ê¥Ã¥Ô¥ó¥°¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
ÂʱߤΠobject ¤ÎÄêµÁ¤Ë´Ø¤·¤Æ¤Ï°Ê²¼¤â»²¾È: set object ellipse (82.47.2)¡£2 ¼¡¸µ ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë´Ø¤·¤Æ¤Ï°Ê²¼»²¾È: ellipses (32)¡£
½ñ¼°:
set surface unset surface show surface
¶ÊÌ̤ϥǡ¼¥¿¤ä´Ø¿ô¤ËÂФ·¤Æ¡¢with ¤Ç»ØÄꤵ¤ì¤¿¥¹¥¿¥¤¥ë¡¢¤¢¤ë¤¤¤Ï¾¤Î ŬÀڤʥ¹¥¿¥¤¥ë¤Ç½ñ¤«¤ì¤Þ¤¹¡£
unset surface ¤Ë¤è¤ê splot ¤Ï¡¢´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÅÀ¤ËÂФ¹¤ë¤É ¤ó¤ÊÅÀ¤äÀþ¤âÉÁ¤«¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£¸ÄÊ̤ˤ¢¤ë´Ø¿ô¤ä¤¢¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¶ÊÌÌ ÉÁ²è¤ò̵¸ú¤Ë¤·¤Æ¤½¤Î¾¤ò͸ú¤Ë¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢¥³¥Þ¥ó¥É splot ¤Î¥¡¼ ¥ï¡¼¥É nosurface ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤½¤Î¾ì¹ç¤Ç¤â set contour ¤ÎÀß Äê¤Ë¤è¤ê¶ÊÌ̤ÎÅù¹âÀþ¤Ï½ñ¤«¤ì¤Þ¤¹¡£unset surface; set contour base ¤Î ÁȤϡ¢Åù¹âÀþ¤ò³Ê»Ò¤ÎÅÚÂæ¤Ëɽ¼¨¤¹¤ëºÝ¤ËÊØÍø¤Ç¤¹¡£°Ê²¼¤â»²¾È:set contour (82.14)¡£
½ñ¼°:
set table {"outfile"} plot <whatever> unset table
ɽ·Á¼°¤Î½ÐÎϤϡ¢»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤µ¤ì¤Þ¤¹¤¬¡¢»ØÄ꤬¤Ê¤¤¾ì¹ç¤Ï ¸½ºß set output ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ëÃͤ˽ÐÎϤµ¤ì¤Þ¤¹¡£¸½ºß¤Î½ÐÎÏ·Á¼°¤Îɸ ½àŪ¤ÊÉÁ²è¤ËÌ᤹¤Ë¤Ï¡¢unset table ¤òÌÀ¼¨Åª¤Ë¹Ô¤Ê¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
½ñ¼°:
set terminal {<terminal-type> | push | pop} show terminal
< terminal-type> ¤¬¾Êά¤µ¤ì¤ë¤È gnuplot ¤ÏÍøÍѲÄǽ¤Ê½ÐÎÏ·Á¼°¤Î°ìÍ÷¤ò ɽ¼¨¤·¤Þ¤¹¡£< terminal-type> ¤Î»ØÄê¤Ë¤Ïû½Ì·Á¤¬»È¤¨¤Þ¤¹¡£
set terminal ¤È set output ¤ÎξÊý¤ò»È¤¦¾ì¹ç¡¢set terminal ¤òºÇ½é ¤Ë¤¹¤ëÊý¤¬°ÂÁ´¤Ç¤¹¡£¤½¤ì¤Ï¡¢OS ¤Ë¤è¤Ã¤Æ¤Ï¡¢¤½¤ì¤¬É¬ÍפȤ¹¤ë¥Õ¥é¥°¤ò¥» ¥Ã¥È¤¹¤ë½ÐÎÏ·Á¼°¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£
¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼°¤Ï¤¿¤¯¤µ¤ó¤ÎÄɲ媥ץ·¥ç¥ó¤ò»ý¤Á¤Þ¤¹¡£ ³Æ < term> ¤ËÂФ·¡¢Ä¾Á°¤Î set term < term> < options> ¤Ç»ÈÍѤµ¤ì¤¿¥ª ¥×¥·¥ç¥ó¤Ïµ²±¤µ¤ì¡¢¤½¤Î¸å¤Î set term < term> ¤¬¤½¤ì¤ò¥ê¥»¥Ã¥È¤¹¤ë¤³ ¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤ÏÎ㤨¤Ð°õºþ»þ¤ËÍÍѤǤ¹¡£´ö¤Ä¤«¤Î°Û¤Ê¤ë½ÐÎÏ·Á¼°¤ò ÀÚÂؤ¨¤ë¾ì¹ç¡¢Á°¤Î¥ª¥×¥·¥ç¥ó¤ò·«¤êÊÖ¤·¾§¤¨¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
¥³¥Þ¥ó¥É set term push ¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤È¤½¤ÎÀßÄê¤ò set term pop ¤Ë¤è¤Ã¤ÆÉüµ¢¤¹¤ë¤Þ¤Çµ²±¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï save term, load term ¤È ¤Û¤ÜƱÅù¤Ç¤¹¤¬¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ø¤Î¥¢¥¯¥»¥¹¤Ï¹Ô¤ï¤º¡¢¤è¤Ã¤ÆÎ㤨¤Ð¤³¤ì ¤Ï¡¢°õºþ¸å¤Ë¥×¥é¥Ã¥È¥Û¡¼¥à¤Ë°Í¸¤·¤Ê¤¤·Á¤Ç½ÐÎÏ·Á¼°¤òÉüµ¢¤¹¤ëÌÜŪ¤Ë»È¤¨ ¤Þ¤¹¡£gnuplot ¤Îµ¯Æ°¸å¡¢¥Ç¥Õ¥©¥ë¥È¡¢¤Þ¤¿¤Ï startup ¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì ¤¿½ÐÎÏ·Á¼°¤¬¼«Æ°Åª¤Ëµ²± (push) ¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ÌÀ¼¨Åª¤Ë½ÐÎÏ·Á¼°¤òµ ²±¤µ¤»¤ë¤³¤È¤Ê¤¯¡¢Ç¤°Õ¤Î¥×¥é¥Ã¥È¥Û¡¼¥à¾å¤Ç¥Ç¥Õ¥©¥ë¥È¤Î½ÐÎÏ·Á¼°¤ò set term pop ¤Ë¤è¤Ã¤ÆÉüµ¢¤µ¤»¤ë¡¢¤È¤¤¤¦Æ°ºî¤ò´üÂÔ¤·¤¿¥¹¥¯¥ê¥×¥È¤ò²Ä ÈÂÀ¤ò¼º¤ï¤º¤Ë½ñ¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: complete list of terminals (92)¡£
set termoption {no}enhanced set termoption font "<fontname>{,<fontsize>}" set termoption fontscale <scale> set termoption {solid|dashed} set termoption {linewidth <lw>}{lw <lw>}
Á´¤Æ¤Î¼´¤Î (¸«½Ð¤·¤Î¤Ä¤¯) ÂçÌÜÀ¹¤ê¤Ï ¥³¥Þ¥ó¥É set tics ¤Ç°ìÅÙ¤ËÀ©¸æ ¤Ç¤¤Þ¤¹¡£ÌÜÀ¹¤ê¤Ï unset tics ¤Ç¾Ã¤¨¡¢set tics ¤Ç (¥Ç¥Õ¥©¥ë¥È¤Î¾õ ÂÖ¤Î) ÌÜÀ¹¤ê¤¬¤Ä¤¤Þ¤¹¡£³Æñ°ì¼´¤ÎÂçÌÜÀ¹¤ê¤ÎÀ©¸æ¤ò¹Ô¤Ê¤¦Æ±ÍͤΥ³¥Þ¥ó¥É ¤¬¤¢¤ê¤Þ¤¹ (tics ¤ÎÁ°¤Ë¼´Ì¾¤ò¤Ä¤±¤¿¤â¤Î)¡£
½ñ¼°:
set tics {axis | border} {{no}mirror} {in | out} {scale {default | <major> {,<minor>}}} {{no}rotate {by <ang>}} {offset <offset> | nooffset} {left | right | center | autojustify} { format "formatstring" } { font "name{,<size>}" } { textcolor <colorspec> } set tics {front | back} unset tics show tics
¾å¤ÎºÇ½é¤Î½ñ¼°¤Î¤È¤³¤í¤Ë½ñ¤¤¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢¸Ä¡¹¤Î¼´¤Ë¤â¡¢¤Þ¤¿¤Ï¤¹¤Ù¤Æ ¤Î¼´ (x, y, z, x2, y2, cb) ¤Ë¤âŬÍѤǤ¤Þ¤¹¡£
tics ¤Î front ¤Þ¤¿¤Ï back ¤ÎÀßÄê¤Ï¡¢2D ÉÁ²è (splot ¤ÏÉÔ²Ä) ¤Ë¤Î¤ß ¤¹¤Ù¤Æ¤Î¼´¤Ë 1 ÅÙŬÍѤµ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÌÜÀ¹¤ÈÉÁ²èÍ×ÁǤ¬½Å¤Ê¤Ã¤¿¾ì¹ç¤Ë ÌÜÀ¹¤òÉÁ²èÍ×ÁǤÎÁ°Ì̤˽Ф¹¤«¡¢±ü¤ËÃÖ¤¯¤«¤òÀ©¸æ¤·¤Þ¤¹¡£
axis ¤È border ¤Ï gnuplot ¤ËÌÜÀ¹¤ê (ÌÜÀ¹¤ê¤Î¹ï¼«¿È¤È¤½¤Î¸«½Ð¤·) ¤ò¡¢¤½¤ì¤¾¤ì¼´¤Ë¤Ä¤±¤ë¤Î¤«¡¢¶³¦¤Ë¤Ä¤±¤ë¤Î¤«¤ò»Ø¼¨¤·¤Þ¤¹¡£¼´¤¬¶³¦¤Ë¤È ¤Æ¤â¶á¤¤¾ì¹ç¡¢axis ¤ò»ÈÍѤ¹¤ë¤È¶³¦¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ì¤Ð (°Ê²¼»²¾È:set border (82.7)) ÌÜÀ¹¤ê¤Î¸«½Ð¤·Ê¸»ú¤ò¶³¦¤Î³°¤Ë½Ð¤·¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£¤³¤Î ¾ì¹ç¼«Æ°Åª¤Ê¥ì¥¤¥¢¥¦¥È¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤ë;ÇòÀßÄê¤ÏÂçÄñ¤è¤¯¤Ê¤¤¤â¤Î¤È¤Ê ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
mirror ¤Ï gnuplot ¤ËÈ¿ÂЦ¤Î¶³¦¤ÎƱ¤¸°ÌÃ֤ˡ¢¸«½Ð¤·¤Î¤Ê¤¤ÌÜÀ¹¤ê¤ò ½ÐÎϤ¹¤ë¤è¤¦»Ø¼¨¤·¤Þ¤¹¡£nomirror ¤Ï¡¢¤¢¤Ê¤¿¤¬ÁÛÁü¤·¤Æ¤¤¤ëÄ̤ê¤Î¤³¤È ¤ò¹Ô¤Ê¤¤¤Þ¤¹¡£
in ¤È out ¤ÏÌÜÀ¹¤ê¤Î¹ï¤ß¤òÆ⦤ËÉÁ¤¯¤«³°Â¦¤ËÉÁ¤¯¤«¤òÀÚ¤êÊѤ¨¤Þ¤¹¡£
ÌÜÀ¹¤ê¤Î¹ï¤ß¤Î¥µ¥¤¥º¤Ï scale ¤ÇÄ´À°¤Ç¤¤Þ¤¹¡£< minor> ¤Î»ØÄ꤬¾Êά¤µ ¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï 0.5*< major> ¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢ÂçÌÜ À¹¤ê¤¬ 1.0 ¤Ç¾®ÌÜÀ¹¤ê¤¬ 0.5 ¤Ç¡¢¤³¤ì¤Ï scale default ¤Ç¸Æ¤Ó¤À¤»¤Þ¤¹¡£
rotate ¤Ï¡¢Ê¸»úÎó¤ò 90 Åٲ󞤵¤»¤Æ½ÐÎϤµ¤»¤è¤¦¤È¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Ê¸ »úÎó¤Î²óž¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë½ÐÎϥɥ饤¥Ð (terminal) ¤Ç¤Ï¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ norotate ¤Ï¤³¤ì¤ò¥¥ã¥ó¥»¥ë¤·¤Þ¤¹¡£rotate by < ang> ¤Ï³ÑÅÙ < ang> ¤Î ²óž¤ò¹Ô¤Ê¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì ¤Æ¤¤¤Þ¤¹¡£
x ¤È y ¼´¤ÎÂçÌÜÀ¹¤ê¤Î¥Ç¥Õ¥©¥ë¥È¤Ï border mirror norotate ¤Ç¡¢x2, y2 ¼´¤Ï border nomirror norotate ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£z ¼´¤Î¥Ç¥Õ¥©¥ë¥È¤Ï nomirror ¤Ç¤¹¡£
< offset> ¤Ï x,y ¤«¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç¤¹¤¬¡¢¤½¤ì¤ËºÂɸ·Ï¤òÁªÂò¤·¤Æ¡¢ ¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î¤¤¤º¤ì¤« ¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£< offset> ¤Ï¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·Ê¸»úÎó¤Î¥Ç¥Õ¥©¥ë¥È ¤Î°ÌÃÖ¤«¤é¤Î¤º¤é¤·°ÌÃ֤ǡ¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì·Ï¤Ï character ¤Ç¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£nooffset ¤Ï offset ¤ò OFF ¤Ë¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¸«½Ð¤·¥é¥Ù¥ë¤Ï¡¢Èþ¤·¤¤·ë²Ì¤òÀ¸¤à¤è¤¦¤Ë¡¢¼´¤È²óž³Ñ¤Ë°Í¸ ¤·¤¿°ÌÃ֤˼«Æ°Åª¤Ë°ÌÃÖ¹ç¤ï¤»¤µ¤ì¤Þ¤¹¡£¤½¤ì¤¬µ¤¤Ë¤¤¤é¤Ê¤±¤ì¤Ð¡¢ÌÀ¼¨Åª¤Ë left, right, center ¤Î¥¡¼¥ï¡¼¥É¤Ë¤è¤ê°ÌÃÖ¹ç¤ï¤»¤òÊѹ¹¤Ç¤¤Þ¤¹¡£ autojustify ¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤ËÉüµ¢¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤Ê¤·¤Î set tics ¤Ï¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¤òÆ⦤ˤ·¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î Á´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ÏľÁ°¤ÎÃͤòÊÝ»ý¤·¤Þ¤¹¡£
ÂçÌÜÀ¹¤ê (¥é¥Ù¥ë¤Î¤Ä¤¯) ¤Î¾¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set xtics (82.96)¡£ ¾®ÌÜÀ¹¤ê¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set mxtics (82.43)¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¡¢ ¤½¤ì¤¾¤ì¤Î¼´¤ËÂФ·¤ÆÊÌ¡¹¤Ë¼´¤ÎÀ©¸æ¤òÄ󶡤·¤Þ¤¹¡£
½ñ¼°:
set timestamp {"<format>"} {top|bottom} {{no}rotate} {offset <xoff>{,<yoff>}} {font "<fontspec>"} unset timestamp show timestamp
½ñ¼°Ê¸»úÎó (format) ¤ò»È¤Ã¤Æ¡¢½ñ¤«¤ì¤ëÆüÉդȻþ¹ï¤Î½ñ¼°¤òÁªÂò¤¹¤ë¤³¤È¤¬ ¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï asctime() ¤¬»ÈÍѤ¹¤ë "%a %b %d %H:%M:%S %Y" ¤Ç ¤¹ (ÍËÆü¡¢·î̾¡¢Æü¡¢»þ¡¢Ê¬¡¢Éá¢4 ·å¤ÎÀ¾Îñ)¡£top ¤È bottom ¤ò»È¤Ã ¤ÆÆüÉÕ¤òº¸¤Î;Çò¤Î¾å¤ËÇÛÃÖ¤¹¤ë¤«¡¢²¼¤ËÇÛÃÖ¤¹¤ë¤«¤òÁªÂò¤Ç¤¤Þ¤¹ (¥Ç¥Õ¥© ¥ë¥È¤Ï²¼)¡£rotate ¤Ï¡¢¤â¤·½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¤Ç¤¹¤¬¡¢ÆüÉÕ¤ò ¿âľÊý¸þ¤Îʸ»úÎó¤Ë¤·¤Þ¤¹¡£Äê¿ô < xoff> ¡¢< yoff> ¤Ï¤º¤ì (offset) ¤ò°ÕÌ£¤·¡¢ ¤³¤ì¤Ë¤è¤Ã¤Æ¤è¤êŬÀڤʰÌÃÖ¹ç¤ï¤»¤¬¹Ô¤¨¤Þ¤¹¡£< font> ¤ÏÆüÉÕ¤¬½ñ¤«¤ì¤ë¥Õ ¥©¥ó¥È¤ò»ØÄꤷ¤Þ¤¹¡£
timestamp ¤ÎÂå¤ï¤ê¤Ë¾Êά̾ time ¤ò»È¤Ã¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
Îã:
set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica"
ÆüÉդνñ¼°Ê¸»úÎó¤Ë´Ø¤¹¤ë¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set timefmt (82.75)¡£
½ñ¼°:
set timefmt "<format string>" show timefmt
ʸ»úÎó°ú¿ô (< format string> ) ¤Ï gnuplot ¤ËÆü»þ¥Ç¡¼¥¿¤ò¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤«¤é¤É¤Î¤è¤¦¤ËÆɤफ¤ò»Ø¼¨¤·¤Þ¤¹¡£Í¸ú¤Ê½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
»þ·ÏÎó¥Ç¡¼¥¿½ñ¼°»ØÄê»Ò | |
½ñ¼° | ÀâÌÀ |
%d |
²¿Æü, 1-31 |
%m |
²¿·î, 1-12 |
%y |
²¿Ç¯, 0-99 |
%Y |
²¿Ç¯, 4 ·å |
%j |
1 ǯ¤Î²¿ÆüÌÜ, 1-365 |
%H |
²¿»þ, 0-24 |
%M |
²¿Ê¬, 0-60 |
%s |
Unix epoch (1970-01-01, 00:00 UTC) ¤«¤é¤ÎÉÿô |
%S |
²¿Éà (½ÐÎÏ¤Ç¤Ï 0-60 ¤ÎÀ°¿ô¡¢ÆþÎϤǤϼ¿ô) |
%b |
·î̾ (±Ñ¸ì) ¤Î 3 ʸ»ú¾Êά·Á |
%B |
·î̾ (±Ñ¸ì) |
Ǥ°Õ¤Îʸ»ú¤òʸ»úÎóÃæ¤Ç»ÈÍѤǤ¤Þ¤¹¤¬¡¢µ¬Â§¤Ë½¾¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ \ t (¥¿¥Ö) ¤Ïǧ¼±¤µ¤ì¤Þ¤¹¡£¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å + 8 ¿Ê¿ôÎó ( \ nnn) ¤Ï¤½¤ì¤¬ ¼¨¤¹Ê¸»ú¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£Æü»þÍ×ÁǤÎÃæ¤ËʬΥʸ»ú¤¬¤Ê¤¤¾ì¹ç¡¢%d, %m, %y, %H, %M, %S ¤Ï¤½¤ì¤¾¤ì 2 ·å¤Î¿ô»ú¤òÆɤ߹þ¤ß¤Þ¤¹¡£%S ¤Ç¤ÎÆɤ߹þ¤ß¤Ç¾®¿ô ÅÀ¤¬¤½¤Î¥Õ¥£¡¼¥ë¥É¤Ë¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤Î¾®¿ôÅÀ¤Ä¤¤Î¿ô¤ò¾®¿ô¤ÎÉûØÄê ¤À¤È²ò¼á¤·¤Þ¤¹¡£%Y ¤Ï 4 ·å¡¢%j ¤Ï 3 ·å¤Î¿ô»ú¤òÆɤ߹þ¤ß¤Þ¤¹¡£%b ¤Ï 3 ʸ »ú¤ò¡¢%B ¤ÏɬÍפÊʬ¤À¤±¤Îʸ»ú¤òÍ׵ᤷ¤Þ¤¹¡£
¶õÇò (¥¹¥Ú¡¼¥¹) ¤Î°·¤¤¤Ï¤ä¤ä°ã¤¤¤Þ¤¹¡£½ñ¼°Ê¸»úÎóÃæ¤Î 1 ¤Ä¤Î¶õÇò¤Ï¡¢¥Õ¥¡¥¤¥ëÃæ¤Î 0 ¸Ä¡¢¤¢¤ë¤¤¤Ï 1 ¤Ä°Ê¾å¤Î¶õÇòʸ»úÎó¤òɽ¤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ "%H %M" ¤Ï "1220" ¤ä "12 20" ¤ò "12 20" ¤ÈƱ¤¸¤è¤¦¤ËÆɤߤޤ¹¡£
¥Ç¡¼¥¿Ãæ¤ÎÈó¶õÇòʸ»ú¤Î½¸¤Þ¤ê¤½¤ì¤¾¤ì¤Ï¡¢using n:n »ØÄê¤Î°ì¤Ä°ì¤Ä¤ÎÎó ¤È¥«¥¦¥ó¥È¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ 11:11 25/12/76 21.0 ¤Ï 3 Îó¤Î¥Ç¡¼¥¿¤Èǧ ¼±¤µ¤ì¤Þ¤¹¡£º®Íð¤òÈò¤±¤ë¤¿¤á¤Ë¡¢Æü»þ¥Ç¡¼¥¿¤¬´Þ¤Þ¤ì¤ë¾ì¹ç gnuplot ¤Ï¡¢ ¤¢¤Ê¤¿¤Î using »ØÄ꤬´°àú¤Ê¤â¤Î¤Ç¤¢¤ë¤È²¾Äꤷ¤Þ¤¹¡£
ÆüÉեǡ¼¥¿¤¬ÍËÆü¡¢·î¤Î̾Á°¤ò´Þ¤ó¤Ç¤¤¤ë¾ì¹ç¡¢½ñ¼°Ê¸»úÎó¤Ç¤½¤ì¤òÇÓ½ü¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¤¬¡¢"%a", "%A", "%b", "%B" ¤Ç¤½¤ì¤é¤òɽ¼¨¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£gnuplot ¤Ï¿ôÃͤ«¤é·î¤äÍËÆü¤òÀµ¤·¤¯µá¤á¤Þ¤¹¡£¤³¤ì¤é¡¢µÚ¤ÓÆü»þ ¥Ç¡¼¥¿¤Î½ÐÎϤξ¤Î¥ª¥×¥·¥ç¥ó¤Î¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set format (82.23)¡£
2 ·å¤ÎÀ¾Îñ¤ò %y ¤ÇÆɤà¾ì¹ç¡¢69-99 ¤Ï 2000 ǯ̤Ëþ¡¢00-68 ¤Ï 2000 ǯ°Ê¸å¤È¸«¤Ê¤·¤Þ¤¹¡£Ãí: ¤³¤ì¤Ï¡¢UNIX98 ¤Î»ÅÍͤ˹ç¤ï¤»¤¿¤â¤Î¤Ç¤¹¤¬¡¢¤³¤Î´·Î㠤Ϥ¢¤Á¤³¤Á¤Ç°ã¤¤¤¬¤¢¤ë¤Î¤Ç¡¢2 ·å¤ÎÀ¾ÎñÃͤÏËܼÁŪ¤Ë¤¢¤¤¤Þ¤¤¤Ç¤¹¡£
¾¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: set xdata (82.91), time/date (25)¡£
Îã:
set timefmt "%d/%m/%Y\t%H:%M"
»þ·ÏÎó¥Ç¡¼¥¿ (time data) ¥Ç¥â¡£
½ñ¼°:
set title {"<title-text>"} {offset <offset>} {font "<font>{,<size>}"} {{textcolor | tc} {<colorspec> | default}} {{no}enhanced} show title
< offset> ¤ò x,y ¤«¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¥¿¥¤¥È¥ë¤ÏÍ¿¤¨ ¤é¤ì¤¿ÃͤÀ¤±°ÜÆ°¤µ¤ì¤Þ¤¹¡£¤½¤ì¤ËºÂɸ·Ï¤òÁªÂò¤·¤Æ¡¢¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î¤¤¤º¤ì¤«¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï character ºÂɸ ·Ï¤¬»È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢"set title offset 0,-1" ¤Ï¥¿¥¤¥È¥ë¤Î y Êý¸þ ¤Î°ÌÃ֤ΤßÊѹ¹¤·¡¢Â礶¤Ã¤Ñ¤Ë¸À¤Ã¤Æ 1 ʸ»úʬ¤Î¹â¤µ¤À¤±¥¿¥¤¥È¥ë¤ò²¼¤Ë²¼ ¤²¤Þ¤¹¡£1 ʸ»ú¤ÎÂ礤µ¤Ï¡¢¥Õ¥©¥ó¥È¤È½ÐÎÏ·Á¼°¤ÎξÊý¤Ë°Í¸¤·¤Þ¤¹¡£
< font> ¤Ï¥¿¥¤¥È¥ë¤¬½ñ¤«¤ì¤ë¥Õ¥©¥ó¥È¤ò»ØÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£< size> ¤Î ñ°Ì¤Ï¡¢¤É¤Î½ÐÎÏ·Á¼° (terminal) ¤ò»È¤Ã¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£
textcolor < colorspec> ¤Ï¡¢Ê¸»ú¤Î¿§¤òÊѹ¹¤·¤Þ¤¹¡£< colorspec> ¤Ï¡¢Àþ ¼ï¡¢rgb ¿§¡¢¤Þ¤¿¤Ï¥Ñ¥ì¥Ã¥È¤Ø¤Î³äÅö¤Î¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤¤Þ¤¹¡£°Ê²¼»²¾È:colorspec (17.1), palette (82.54)¡£
noenhanced ¤Ï¡¢³Èĥʸ»úÎó½èÍý (enhanced text) ¥â¡¼¥É¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤ ¤ë¾ì¹ç¤Ç¤â¡¢¥¿¥¤¥È¥ë¤ò³Èĥʸ»úÎó½èÍý¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
set title ¤ò¥Ñ¥é¥á¡¼¥¿¤Ê¤·¤Ç»È¤¦¤È¥¿¥¤¥È¥ë¤ò¾Ãµî¤·¤Þ¤¹¡£
¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åʸ»úÎó¤ÎºîÍÑ¡¢µÚ¤Óʸ»úÎó¤ò°Ï¤àñ°ì°úÍÑÉä¤ÈÆó½Å°úÍÑÉä¤Î °ã¤¤¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: syntax (24)¡£
½ñ¼°:
show variables # GPVAL_ ¤Ç»Ï¤Þ¤ë¤â¤Î°Ê³°¤ÎÊÑ¿ô¤òɽ¼¨ show variables all # GPVAL_ ¤Ç»Ï¤Þ¤ë¤â¤Î¤â´Þ¤áÁ´¤Æ¤ÎÊÑ¿ô¤òɽ¼¨ show variables NAME # NAME ¤Ç»Ï¤Þ¤ëÊÑ¿ô¤Î¤ß¤òɽ¼¨
½ñ¼°:
show version {long}
long ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢¤µ¤é¤Ë¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¡¢gnuplot ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Î¥³¥ó¥Ñ¥¤¥ë¥ª¥×¥·¥ç¥ó¡¢¥Ø¥ë¥×¥Õ¥¡¥¤¥ë¤ÎÃÖ¤¾ì½ê¡¢¤½¤·¤Æ (ºÆ¤Ó) ÍÍѤʥ᡼¥ë¥¢¥É¥ì¥¹¤òɽ¼¨¤·¤Þ¤¹¡£
½ñ¼°:
set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}} set view map set view {no}equal {xy|xyz} show view
¤³¤³¤Ç < rot_x> ¤È < rot_z> ¤Ï¡¢²èÌ̤ËÅê±Æ¤µ¤ì¤ë²¾ÁÛŪ¤Ê 3 ¼¡¸µºÂɸ·Ï¤Î ²óž³Ñ (ñ°Ì¤ÏÅÙ) ¤ÎÀ©¸æ¤Ç¡¢ºÇ½é¤Ï (¤¹¤Ê¤ï¤Á²óž¤¬¹Ô¤Ê¤ï¤ì¤ëÁ°¤Ï) ²èÌÌÆâ¤Î¿åÊ¿¼´¤Ï x, ²èÌÌÆâ¤Î¿âľ¼´¤Ï y, ²èÌ̼«¿È¤Ë¿âľ¤Ê¼´¤¬ z ¤È¤Ê¤Ã ¤Æ¤¤¤Þ¤¹¡£ºÇ½é¤Ï x ¼´¤Î¼þ¤ê¤Ë < rot_x> ¤À¤±²óž¤µ¤ì¤Þ¤¹¡£¼¡¤Ë¡¢¿·¤·¤¤ z ¼´¤Î¼þ¤ê¤Ë < rot_z> ¤À¤±²óž¤µ¤ì¤Þ¤¹¡£
¥³¥Þ¥ó¥É set view map ¤Ï¡¢ÉÁ²è¤òÃϿޤȤ·¤Æɽ¼¨¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤³¤ì ¤ÏÅù¹âÀþ (contour) ¤ÎÉÁ²è¡¢¤ª¤è¤Ó¥«¥é¡¼É½¼¨ (pm3d) ¤Î¿§ÃϿޤ˻Ȥ¨ ¤Þ¤¹¡£¸å¼Ô¤Ë´Ø¤·¤Æ¤Ï¡¢ÆþÎϥǡ¼¥¿ÅÀ¤Î¥Õ¥£¥ë¥¿ÍѤΠzrange ¤ÎÀßÄê¡¢¤ª¤è ¤Ó¿§¤ÎÈϰϤν̼ܤ˴ؤ¹¤ë cbrange ¤ÎÀßÄê¤òŬÀڤ˹Ԥ¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£
< rot_x> ¤Ï [0:180] ¤ÎÈϰϤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Æ¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 60 Å٤Ǥ¹¡£ < rot_z> ¤Ï [0:360] ¤ÎÈϰϤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Æ¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 30 Å٤Ǥ¹¡£ < scale> ¤Ï splot Á´ÂΤο½ÌΨ¤òÀ©¸æ¤·¡¢< scale_z> ¤Ï z ¼´¤Î¿½Ì¤Î¤ß¤ò ¹Ô¤Ê¤¤¤Þ¤¹¡£¿½ÌΨ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¤É¤Á¤é¤â 1.0 ¤Ç¤¹¡£
Îã:
set view 60, 30, 1, 1 set view ,,0.5
ºÇ½é¤ÎÎã¤Ï 4 ¤Ä¤ÎÁ´¤Æ¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤˤ·¤Æ¤¤¤Þ¤¹¡£2 ¤Ä¤á¤ÎÎã¤Ï½Ì¾®Î¨ ¤Î¤ß¤ò 0.5 ¤ËÊѹ¹¤·¤Æ¤¤¤Þ¤¹¡£
°Ê²¼¤â»²¾È: set xyplane (82.97)¡£
½ñ¼°:
set xdata {time} show xdata
ydata, zdata, x2data, y2data, cbdata ¤Ë¤âƱ¤¸½ñ¼°¤¬Åö¤Æ¤Ï¤Þ ¤ê¤Þ¤¹¡£
time ¥ª¥×¥·¥ç¥ó¤Ï¥Ç¡¼¥¿¤¬Æü»þ¥Ç¡¼¥¿¤Ç¤¢¤ë¤³¤È¤òÅÁ¤¨¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó ¤ò¤Ä¤±¤Ê¤¤¾ì¹ç¡¢¥Ç¡¼¥¿·¿¤ÏÄ̾ï¤Î¤â¤Î¤ËÌá¤ê¤Þ¤¹¡£
gnuplot ¤Ë¤É¤Î¤è¤¦¤ËÆü»þ¥Ç¡¼¥¿¤òÆɤߤ³¤Þ¤»¤ë¤«¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:set timefmt (82.75)¡£Æü»þ¥Ç¡¼¥¿¤Ïº£À¤µª¤Î»Ï¤Þ¤ê (ÌõÃí: ¸·Ì©¤Ë¤Ï 2000 ǯ 1 ·î 1 Æü¤Î»Ï¤Þ¤ê) ¤«¤é¤ÎÉÿô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£»þ´Ö½ñ¼° (timefmt) ¤Ï¸½ºß¤Ï¤¿ ¤À°ì¤Ä¤À¤±¤·¤«»È¤¨¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢Á´¤Æ¤ÎÆü»þ¥Ç¡¼¥¿¹àÌܤ¬¤³¤Î½ñ¼°¤Ë°ìÃ× ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤Þ¤¿¡¢ÈϰϤλØÄê¤Ï¡¢Æü»þ»ØÄ꤬¿ô¼° ¤È²ò¼á¤µ¤ì¤ë¤Î¤òÈò¤±¤ë¤¿¤á¤Ë¡¢¤½¤Î½ñ¼°¤Ë½¾¤Ã¤¿Ê¸»úÎó¤ò°úÍÑÉä¤Ç°Ï¤ó¤Ç»Ø Äꤹ¤Ù¤¤Ç¤¹¡£
ÌÜÀ¹¤ê¹ï¤ß¤Î¸«½Ð¤· (label) ¤òɽ¼¨¤¹¤ë¤Î¤Ë¤Ï´Ø¿ô 'strftime' (unix ¤Ç¤½ ¤ì¤òÄ´¤Ù¤ë¤Ë¤Ï "man strftime" ¤È¥¿¥¤¥×¤·¤Æ¤¯¤À¤µ¤¤) ¤¬»È¤ï¤ì¤Þ¤¹¡£ set format x "string" ¤Ç¡¢10 ¿Ê¿ô¤Î½ñ¼°¤Ç¤Ï¤Ê¤µ¤½¤¦¤Ê¤â¤Î (2 ¤Ä°Ê¾å¤Î '%'¡¢¤Þ¤¿¤Ï %f ¤Ç¤â %g ¤Ç¤â¤Ê¤¤¤â¤Î) ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ gnuplot ¤Ï¤³¤ì¤òŬÅö¤Ë°ÕÌ£¤Î¤¢¤ë½ñ¼°¤Ç·×»»¤·¤Æɽ¼¨¤·¤Þ¤¹¡£
¾¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: time/date (25)¡£
½ñ¼°:
set xdtics unset xdtics show xdtics
ydtics, zdtics, x2dtics, y2dtics, cbdtics ¤Ë¤âƱ¤¸½ñ¼°¤¬Åö¤Æ ¤Ï¤Þ¤ê¤Þ¤¹¡£
°Ê²¼¤â»²¾È: set format (82.23)¡£
½ñ¼°:
set xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"} {textcolor <colorspec>} {{no}enhanced} {rotate by <degrees> | rotate parallel | norotate} show xlabel
Ʊ¤¸½ñ¼°¤¬ x2label, ylabel, y2label, zlabel, cblabel ¤Ë¤âŬ ÍѤµ¤ì¤Þ¤¹¡£
< offset> ¤ò x,y ¤«¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¸«½Ð¤·¤ÏÍ¿¤¨¤é ¤ì¤¿ÃͤÀ¤±°ÜÆ°¤µ¤ì¤Þ¤¹¡£¤½¤ì¤ËºÂɸ·Ï¤òÁªÂò¤·¤Æ¡¢¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î¤¤¤º¤ì¤«¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï character ºÂɸ ·Ï¤¬»È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢"set xlabel offset -1,0" ¤Ï¸«½Ð¤·¤Î x Êý¸þ¤Î °ÌÃ֤ΤßÊѹ¹¤·¡¢Â礶¤Ã¤Ñ¤Ë¸À¤Ã¤Æ 1 ʸ»úʬ¤ÎÉý¤À¤±¸«½Ð¤·¤òº¸¤Ë¤º¤é¤·¤Þ ¤¹¡£1 ʸ»ú¤ÎÂ礤µ¤Ï¡¢¥Õ¥©¥ó¥È¤È½ÐÎÏ·Á¼°¤ÎξÊý¤Ë°Í¸¤·¤Þ¤¹¡£
< font> ¤Ï¸«½Ð¤·¤¬½ñ¤«¤ì¤ë¥Õ¥©¥ó¥È¤ò»ØÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¥Õ¥©¥ó¥È¤Î < size> (Â礤µ) ¤Îñ°Ì¤Ï¡¢¤É¤ó¤Ê½ÐÎÏ·Á¼°¤ò»È¤¦¤«¤Ë°Í¸¤·¤Þ¤¹¡£
noenhanced ¤Ï¡¢³Èĥʸ»úÎó½èÍý (enhanced text) ¥â¡¼¥É¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤ ¤ë¾ì¹ç¤Ç¤â¡¢¥é¥Ù¥ëʸ»úÎó¤ò³Èĥʸ»úÎó½èÍý¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
¸«½Ð¤·¤ò¾Ãµî¤¹¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤º¤Ë¼Â¹Ô¤·¤Þ¤¹¡£Îã: "set y2label"
¼´¤Î¸«½Ð¤·¤Î¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃ֤ϰʲ¼¤ÎÄ̤ê¤Ç¤¹:
xlabel: x ¼´¤Î¸«½Ð¤·¤Ï¥°¥é¥Õ¤Î²¼¤Î¿¿Ãæ
ylabel: y ¼´¤Î¸«½Ð¤·¤Ï¥°¥é¥Õ¤Îº¸¤Î¿¿Ãæ¤Ç¡¢¿åÊ¿Êý¸þ¤Ë½ñ¤«¤ì¤ë¤«¿âľÊý¸þ ¤Ë¤Ê¤ë¤«¤Ï½ÐÎÏ·Á¼°°Í¸
zlabel: z ¼´¤Î¸«½Ð¤·¤Ï¼´¤Îɽ¼¨ÈϰϤè¤ê¾å¤Ç¡¢¸«½Ð¤·¤Î¿¿Ã椬 z ¼´¤Î¿¿¾å
cblabel: ¿§¸«ËÜ (color box) ¤Î¼´¤Î¸«½Ð¤·¤ÏÈ¢¤Ë±è¤Ã¤ÆÃæ±û·¤¨¤µ¤ì¡¢È¢¤Î ¸þ¤¤¬¿åÊ¿¤Ê¤é²¼¤Ë¡¢¿âľ¤Ê¤é±¦¤Ë
y2label: y2 ¼´¤Î¸«½Ð¤·¤Ï y2 ¼´¤Î±¦¡£¤½¤Î°ÌÃ֤ϡ¢½ÐÎÏ·Á¼°°Í¸¤Ç y ¼´¤È ƱÍͤε¬Â§¤Ç·èÄê¡£
x2label: x2 ¼´¤Î¸«½Ð¤·¤Ï¥°¥é¥Õ¤Î¾å¤Ç¡¢¥¿¥¤¥È¥ë¤è¤ê¤Ï²¼¡£¤³¤ì¤Ï¡¢ ²þ¹Ô ʸ»ú¤ò»È¤¨¤Ð¡¢¤½¤ì¤Ë¤è¤ëÊ£¿ô¤Î¹Ô¤«¤é¤Ê¤ëÉÁ²è¥¿¥¤¥È¥ë¤Ç x2 ¼´¤Î¸«½Ð¤·¤ò À¸À®¤¹¤ë¤³¤È¤â²Äǽ¡£Îã:
set title "This is the title\n\nThis is the x2label"
¤³¤ì¤ÏÆó½Å°úÍÑÉä¤ò»È¤¦¤Ù¤¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤Î¾ì¹ç¡¢¤â¤Á ¤í¤ó 2 ¤Ä¤Î¹Ô¤ÇƱ¤¸¥Õ¥©¥ó¥È¤¬»È¤ï¤ì¤Þ¤¹¡£
2 ¼¡¸µÉÁ²è¤Î¾ì¹ç¤Î x, x2, y, y2 ¼´¤Î¥é¥Ù¥ë¤ÎÊý¸þ (²óž³Ñ) ¤Ï¡¢ rotate by < ³ÑÅÙ> ¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Î x, y ¼´ ¤Î¥é¥Ù¥ë¤ÎÊý¸þ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¿åÊ¿Êý¸þ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢ rotate parallel ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¼´¤ËÊ¿¹Ô¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤â¤·¼´¤Î°ÌÃ֤Υǥե©¥ë¥È¤Î°ÌÃÖ¤¬µ¤¤ËÆþ¤é¤Ê¤¤¤Ê¤é¤Ð¡¢Âå¤ï¤ê¤Ë set label ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£¤³¤Î¥³¥Þ¥ó¥É¤Ïʸ»úÎó¤ò¤É¤³¤ËÇÛÃÖ¤¹¤ë¤«¤ò¤â¤Ã¤È¼«Í³¤Ë À©¸æ¤Ç¤¤Þ¤¹¡£
¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åʸ»úÎó¤ÎºîÍÑ¡¢µÚ¤Óʸ»úÎó¤ò°Ï¤àñ°ì°úÍÑÉä¤ÈÆó½Å°úÍÑÉä¤Î °ã¤¤¤Ë´Ø¤¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: syntax (24)¡£
½ñ¼°:
set xmtics unset xmtics show xmtics
x2mtics, ymtics, y2mtics, zmtics, cbmtics ¤Ë¤âƱ¤¸½ñ¼°¤¬Å¬ÍÑ ¤µ¤ì¤Þ¤¹¡£
°Ê²¼¤â»²¾È: ¥³¥Þ¥ó¥É set format (82.23)¡£
½ñ¼°:
set xrange { [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} } | restore show xrange
¤³¤³¤Ç < min> ¤È < max> ¤Ë¤ÏÄê¿ô¡¢¿ô¼°¡¢¤Þ¤¿¤Ï '*' ¤Ç¡¢'*' ¤Ï¼«Æ°½Ì¼Üµ¡ ǽ¤ò°ÕÌ£¤·¤Þ¤¹¡£¼«Æ°½Ì¼Üµ¡Ç½¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï²¼¤Ë½Ò¤Ù¤Þ¤¹¡£Æü»þ¥Ç¡¼¥¿¤Î¾ì ¹ç¡¢ÈÏ°Ï¤Ï set timefmt ¤Î½ñ¼°¤Ë½¾¤Ã¤¿Ê¸»úÎó¤ò°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ê ¤Þ¤¹¡£¾Êά¤µ¤ì¤¿ÃͤÏÊѹ¹¤µ¤ì¤Þ¤»¤ó¡£
yrange, zrange, x2range, y2range, cbrange, rrange, trange, urange, vrange ¤ÏƱ¤¸½ñ¼°¤ò»ÈÍѤ·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó reverse ¤Ï¼´¤ÎÊý¸þ¤òµÕ¤Ë¤·¤Þ¤¹¡£Î㤨¤Ð set xrange [0:1] reverse ¤Ï¡¢1 ¤¬º¸¡¢0 ¤¬±¦¤Ç¤¢¤ë¤è¤¦¤Ê¼´¤Ë¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¤â¤Á¤í¤ó set xrange [1:0] ¤ÈƱ¤¸¤Ç¤¹¤¬¡¢reverse ¤Ï¼ç¤Ë¼«Æ° ½Ì¼Ü (autoscale) ¤ÇÍѤ¤¤é¤ì¤ë¤³¤È¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£
¼«Æ°½Ì¼Üµ¡Ç½: <
min>
(ƱÍͤΤ³¤È¤¬ <
max>
¤Ë¤âŬÍѤµ¤ì¤Þ¤¹) ¤¬¥¢¥¹¥¿¥ê¥¹
¥¯ "*" ¤Î¾ì¹ç¤Ï¼«Æ°½Ì¼Üµ¡Ç½¤¬¥ª¥ó¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Î¤½¤ÎÃͤˡ¢²¼¸Â
<
lb>
¡¢¤Þ¤¿¤Ï¾å¸Â <
ub>
¡¢¤Þ¤¿¤Ï¤½¤ÎξÊý¤ÎÀ©¸Â¤òÍ¿¤¨¤é¤ì¤Þ¤¹¡£½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
{ <lb> < } * { < <ub> }
0 < * < 200
¥ª¥×¥·¥ç¥ó writeback ¤Ï¡¢set xrange ¤ÇÀê¤á¤é¤ì¤Æ¤¤¤ë¥Ð¥Ã¥Õ¥¡¤ÎÃæ¤Ë ¼«Æ°½Ì¼Üµ¡Ç½¤Ë¤è¤êºî¤é¤ì¤¿ÈϰϤòÊݸ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤¤¤¯¤Ä¤«¤Î´Ø¿ô¤òƱ »þ¤Ëɽ¼¨¤·¡¢¤·¤«¤·¤½¤ÎÈϰϤϤ½¤Î¤¦¤Á¤Î¤¤¤¯¤Ä¤«¤Î¤â¤Î¤«¤é·èÄꤵ¤»¤¿¤¤¾ì ¹ç¤ËÊØÍø¤Ç¤¹¡£writeback ¤ÎºîÍѤϡ¢plot ¤Î¼Â¹ÔÃæ¤Ëµ¡Ç½¤¹¤ë¤Î¤Ç¡¢¤½¤Î ¥³¥Þ¥ó¥É¤ÎÁ°¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ºÇ¸å¤ËÊݸ¤·¤¿¿åÊ¿Êý¸þ¤ÎÈÏ°Ï¤Ï set xrange restore ¤ÇÉü¸µ¤Ç¤¤Þ¤¹¡£Îã¤ò¾å¤²¤Þ¤¹¡£
set xrange [-10:10] set yrange [] writeback plot sin(x) set yrange restore replot x/2
¤³¤Î¾ì¹ç¡¢y ¤ÎÈÏ°Ï (yrange) ¤Ï sin(x) ¤ÎÃÍ°è¤È¤·¤Æºî¤é¤ì¤¿ [-1:1] ¤ÎÊý ¤Ë¤Ê¤ê¡¢x/2 ¤ÎÃÍ°è [-5:5] ¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¾åµ¤Î¤½¤ì¤¾¤ì¤Î¥³¥Þ¥ó¥É¤Î¸å ¤Ë show yrange ¤ò¼Â¹Ô¤¹¤ì¤Ð¡¢¾å¤Ç²¿¤¬¹Ô¤Ê¤ï¤ì¤Æ¤¤¤ë¤«¤òÍý²ò¤¹¤ë½õ¤± ¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
2 ¼¡¸µÉÁ²è¤Ë¤ª¤¤¤Æ¡¢xrange ¤È yrange ¤Ï¼´¤ÎÈϰϤò·èÄꤷ¡¢trange ¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤ÎÇÞ²ðÊÑ¿ô¤ÎÈÏ°Ï¡¢¤¢¤ë¤¤¤Ï¶ËºÂɸ¥â¡¼¥É¤Î³ÑÅÙ¤ÎÈϰϤò ·èÄꤷ¤Þ¤¹¡£Æ±ÍÍ¤Ë 3 ¼¡¸µÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï¡¢xrange, yrange, zrange ¤¬¼´¤ÎÈϰϤò´ÉÍý¤·¡¢urange ¤È yrange ¤¬ÇÞ²ðÊÑ¿ô¤ÎÈϰϤò´ÉÍý¤·¤Þ¤¹¡£
¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï¡¢rrange ¤ÏÉÁ²è¤µ¤ì¤ëÆ°·Â¤ÎÈϰϤò·èÄꤷ¤Þ¤¹¡£< rmin> ¤ÏÆ°·Â¤Ø¤ÎÄɲäÎÄê¿ô¤È¤·¤ÆºîÍѤ·¡¢°ìÊý < rmax> ¤ÏÆ°·Â¤òÀÚ¤ê¼Î¤Æ¤ë (clip) ¤è¤¦¤ËºîÍѤ·¡¢< rmax> ¤ò±Û¤¨¤¿Æ°·Â¤ËÂФ¹¤ëÅÀ¤ÏÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£xrange ¤È yrange ¤Ï±Æ¶Á¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÎÈϰϤϡ¢¥°¥é¥Õ¤¬ r(t)-rmin ¤Î¥°¥é ¥Õ¤Ç¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ë¤Ï¤½¤ì¤¾¤ì rmin ¤ò²Ã¤¨¤¿¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë¤«¤Î¤è¤¦ ¤Ë¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
Á´¤Æ¤ÎÈϰϤÏÉôʬŪ¤Ë¡¢¤Þ¤¿¤ÏÁ´ÂÎŪ¤Ë¼«Æ°½Ì¼Ü¤µ¤ì¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¤ÎÉÁ²è¤Ç ¤Ê¤±¤ì¤Ð¡¢¥Ñ¥é¥á¡¼¥¿ÊÑ¿ô¤Î¼«Æ°½Ì¼Üµ¡Ç½¤Ï°ÕÌ£¤¬¤Ê¤¤¤Ç¤·¤ç¤¦¡£
ÈÏ°Ï¤Ï plot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç¤â»ØÄê¤Ç¤¤Þ¤¹¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤ÇÍ¿ ¤¨¤é¤ì¤¿ÈϰϤÏñ¤Ë¤½¤Î plot ¥³¥Þ¥ó¥É¤Ç¤À¤±»È¤ï¤ì¡¢set ¥³¥Þ¥ó¥É¤ÇÀß Äꤵ¤ì¤¿ÈϰϤϤ½¤Î¸å¤ÎÉÁ²è¤Ç¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ÇÈϰϤò»ØÄꤷ¤Æ¤¤¤Ê¤¤¤â¤Î Á´¤Æ¤Ç»È¤ï¤ì¤Þ¤¹¡£¤³¤ì¤Ï splot ¤âƱ¤¸¤Ç¤¹¡£
Îã:
x ¤ÎÈϰϤò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤˤ·¤Þ¤¹:
set xrange [-10:10]
y ¤ÎÈϰϤ¬²¼Êý¤ØÁý²Ã¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹:
set yrange [10:-10]
z ¤ÎºÇ¾®ÃͤˤϱƶÁ¤òÍ¿¤¨¤º¤Ë (¼«Æ°½Ì¼Ü¤µ¤ì¤¿¤Þ¤Þ)¡¢ºÇÂçÃÍ¤Î¤ß 10 ¤ËÀß
Äꤷ¤Þ¤¹:
set zrange [:10]
x ¤ÎºÇ¾®Ãͤϼ«Æ°½Ì¼Ü¤È¤·¡¢ºÇÂçÃͤÏÊѹ¹¤·¤Þ¤»¤ó:
set xrange [*:]
x ¤ÎºÇ¾®Ãͤò¼«Æ°½Ì¼Ü¤È¤·¤Þ¤¹¤¬¡¢¤½¤ÎºÇ¾®ÃÍ¤Ï 0 °Ê¾å¤Ë¤·¤Þ¤¹¡£
set xrange [0<*:]
x ¤ÎÈϰϤò¼«Æ°½Ì¼Ü¤È¤·¤Þ¤¹¤¬¡¢¾®¤µ¤¯¤Æ¤â 10 ¤«¤é 50 ¤ÎÈϰϤòÊÝ»ý¤·¤Þ¤¹
(¼ÂºÝ¤Ï¤½¤ì¤è¤êÂ礤¯¤Ê¤ë¤Ç¤·¤ç¤¦):
set xrange [*<10:50<*]
¼«Æ°½Ì¼Ü¤ÇºÇÂçÈϰϤò -1000 ¤«¤é 1000¡¢¤¹¤Ê¤ï¤Á [-1000:1000] Æâ¤Ç¼«Æ°½Ì
¼Ü¤·¤Þ¤¹:
set xrange [-1000<*:*<1000]
x ¤ÎºÇ¾®Ãͤò -200 ¤«¤é 100 ¤Î´Ö¤Î¤É¤³¤«¤Ë¤·¤Þ¤¹:
set xrange [-200<*<100:]
½ñ¼°:
set xtics {axis | border} {{no}mirror} {in | out} {scale {default | <major> {,<minor>}}} {{no}rotate {by <ang>}} {offset <offset> | nooffset} {left | right | center | autojustify} {add} { autofreq | <incr> | <start>, <incr> {,<end>} | ({"<label>"} <pos> {<level>} {,{"<label>"}...) } { format "formatstring" } { font "name{,<size>}" } { rangelimited } { textcolor <colorspec> } unset xtics show xtics
Ʊ¤¸½ñ¼°¤¬ ytics, ztics, x2tics, y2tics, cbtics ¤Ë¤âŬÍѤµ¤ì ¤Þ¤¹¡£
axis ¤È border ¤Ï gnuplot ¤ËÌÜÀ¹¤ê (ÌÜÀ¹¤ê¤Î¹ï¼«¿È¤È¤½¤Î¸«½Ð¤·) ¤ò¡¢¤½¤ì¤¾¤ì¼´¤Ë¤Ä¤±¤ë¤Î¤«¡¢¶³¦¤Ë¤Ä¤±¤ë¤Î¤«¤ò»Ø¼¨¤·¤Þ¤¹¡£¼´¤¬¶³¦¤Ë¤È ¤Æ¤â¶á¤¤¾ì¹ç¡¢axis ¤ò»ÈÍѤ¹¤ë¤ÈÌÜÀ¹¤ê¤Î¸«½Ð¤·Ê¸»ú¤ò¶³¦¤Î³°¤Ë½Ð¤·¤Æ ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£¤³¤Î¾ì¹ç¼«Æ°Åª¤Ê¥ì¥¤¥¢¥¦¥È¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤ë;ÇòÀßÄê¤Ï ÂçÄñ¤è¤¯¤Ê¤¤¤â¤Î¤È¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
mirror ¤Ï gnuplot ¤ËÈ¿ÂЦ¤Î¶³¦¤ÎƱ¤¸°ÌÃ֤ˡ¢¸«½Ð¤·¤Î¤Ê¤¤ÌÜÀ¹¤ê¤ò ½ÐÎϤ¹¤ë¤è¤¦»Ø¼¨¤·¤Þ¤¹¡£nomirror ¤Ï¡¢¤¢¤Ê¤¿¤¬ÁÛÁü¤·¤Æ¤¤¤ëÄ̤ê¤Î¤³¤È ¤ò¹Ô¤Ê¤¤¤Þ¤¹¡£
in ¤È out ¤ÏÌÜÀ¹¤ê¤Î¹ï¤ß¤òÆ⦤ËÉÁ¤¯¤«³°Â¦¤ËÉÁ¤¯¤«¤òÀÚ¤êÊѤ¨¤Þ¤¹¡£
ÌÜÀ¹¤ê¤Î¹ï¤ß¤Î¥µ¥¤¥º¤Ï scale ¤ÇÄ´À°¤Ç¤¤Þ¤¹¡£< minor> ¤Î»ØÄ꤬¾Êά¤µ ¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï 0.5*< major> ¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢ÂçÌÜ À¹¤ê¤¬ 1.0 ¤Ç¾®ÌÜÀ¹¤ê¤¬ 0.5 ¤Ç¡¢¤³¤ì¤Ï scale default ¤Ç¸Æ¤Ó¤À¤»¤Þ¤¹¡£
rotate ¤Ï¡¢Ê¸»úÎó¤ò 90 Åٲ󞤵¤»¤Æ½ÐÎϤµ¤»¤è¤¦¤È¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Ê¸ »úÎó¤Î²óž¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë½ÐÎϥɥ饤¥Ð (terminal) ¤Ç¤Ï¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ norotate ¤Ï¤³¤ì¤ò¥¥ã¥ó¥»¥ë¤·¤Þ¤¹¡£rotate by < ang> ¤Ï³ÑÅÙ < ang> ¤Î ²óž¤ò¹Ô¤Ê¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì ¤Æ¤¤¤Þ¤¹¡£
x ¤È y ¼´¤ÎÂçÌÜÀ¹¤ê¤Î¥Ç¥Õ¥©¥ë¥È¤Ï border mirror norotate ¤Ç¡¢x2, y2 ¼´¤Ï border nomirror norotate ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£z ¼´¤Ë¤Ï¡¢ {axis | border} ¥ª¥×¥·¥ç¥ó¤Ï̵¸ú¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ï nomirror ¤Ç¤¹¡£z ¼´¤ÎÌÜÀ¹¤ê¤ò¥ß¥é¡¼²½¤·¤¿¤¤¤Ê¤é¡¢Â¿Ê¬ set border ¤Ç¤½¤Î¤¿¤á¤Î¶õ´Ö¤ò¤¢ ¤±¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£
< offset> ¤Ï x,y ¤«¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¤½¤ì¤ËºÂɸ·Ï¤òÁª Âò¤·¤Æ¡¢¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î ¤¤¤º¤ì¤«¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£< offset> ¤Ï¹ï¤ßʸ»ú¤Î¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃÖ ¤«¤é¤Î¤º¤ì¤òɽ¤·¡¢¥Ç¥Õ¥©¥ë¥È¤ÎºÂɸ·Ï¤Ï character ¤Ç¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (10)¡£nooffset ¤Ï¤º¤é¤·¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
Îã:
xtics ¤ò¤è¤êÉÁ²è¤Ë¶á¤Å¤±¤ë:
set xtics offset 0,graph 0.05
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¸«½Ð¤·¥é¥Ù¥ë¤Ï¡¢Èþ¤·¤¤·ë²Ì¤òÀ¸¤à¤è¤¦¤Ë¡¢¼´¤È²óž³Ñ¤Ë°Í¸ ¤·¤¿°ÌÃ֤˼«Æ°Åª¤Ë°ÌÃÖ¹ç¤ï¤»¤µ¤ì¤Þ¤¹¡£¤½¤ì¤¬µ¤¤Ë¤¤¤é¤Ê¤±¤ì¤Ð¡¢ÌÀ¼¨Åª¤Ë left, right, center ¤Î¥¡¼¥ï¡¼¥É¤Ë¤è¤ê°ÌÃÖ¹ç¤ï¤»¤òÊѹ¹¤Ç¤¤Þ¤¹¡£ autojustify ¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤ËÉüµ¢¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤Ê¤·¤Ç set xtics ¤ò¼Â¹Ô¤¹¤ë¤È¡¢ÌÜÀ¹¤ê¤¬É½¼¨¤µ¤ì¤ë¾õÂ֤Ǥ¢ ¤ì¤Ð¡¢¤½¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¶³¦¡¢¤Þ¤¿¤Ï¼´¤òÉü¸µ¤·¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð²¿¤â¤·¤Þ ¤»¤ó¡£¤½¤ÎÁ°¤Ë»ØÄꤷ¤¿ÌÜÀ¹¤ê¤Î´Ö³Ö¡¢°ÌÃÖ (¤È¸«½Ð¤·) ¤ÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£
ÌÜÀ¹¤ê¤Î°ÌÃ֤ϡ¢¥Ç¥Õ¥©¥ë¥È¡¢¤Þ¤¿¤Ï¥ª¥×¥·¥ç¥ó autofreq ¤¬»ØÄꤵ¤ì¤Æ¤¤ ¤ì¤Ð¼«Æ°Åª¤Ë·×»»¤µ¤ì¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢¼¡¤Î 2 ¤Ä¤Î·Á¼°¤Ç»ØÄꤵ¤ì¤Þ ¤¹:
°Å¼¨Åª¤Ê < start> , < incr> , < end> ·Á¼°¤Ï¡¢ÌÜÀ¹¤ê¤ÎÎó¤ò < start> ¤«¤é < end> ¤Î´Ö¤ò < incr> ¤Î´Ö³Ö¤Çɽ¼¨¤·¤Þ¤¹¡£< end> ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¤½¤ì¤Ï̵¸ÂÂç ¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£< incr> ¤ÏÉé¤ÎÃͤâ²Äǽ¤Ç¤¹¡£< start> ¤È < end> ¤ÎξÊý¤¬»Ø Äꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢< start> ¤Ï -¡ç¡¢< end> ¤Ï +¡ç¤È¤ß¤Ê¤µ¤ì¡¢ÌÜÀ¹¤ê¤Ï < incr> ¤ÎÀ°¿ôÇܤΰÌÃÖ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¼´¤¬Âпô¼´¤Î¾ì¹ç¡¢ÌÜÀ¹¤ê¤Î´Ö³Ö (Áýʬ) ¤Ï¡¢ÇÜ¿ô¤È¤·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£
Éé¤Î < start> ¤ä < incr> ¤ò¡¢¿ôÃͤθå¤í¤Ë»ØÄꤹ¤ë¤È (Î㤨¤Ð rotate by < angle> ¤È¤« offset < offset> ¤Î¸å¤í)¡¢gnuplot ¤Î¹½Ê¸²òÀÏ ´ï¤Ï¡¢¤½¤ÎÃͤ«¤é¤½¤ÎÉé¤Î < start> ¤ä < incr> ¤ÎÃͤΰú¤»»¤ò¹Ô¤ª¤¦¤È¤¹¤ë ´Ö°ã¤¤¤òÈȤ·¤Þ¤¹¡£¤³¤ì¤ò²óÈò¤¹¤ë¤Ë¤Ï¡¢¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¡¢0-< start> ¤ä 0-< incr> ¤Î¤è¤¦¤Ë»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set xtics border offset 0,0.5 -5,1,5
set xtics border offset 0,0.5 0-5,1,5
set xtics offset 0,0.5 border -5,1,5
set grid ¤Î¥ª¥×¥·¥ç¥ó 'front', 'back', 'layerdefault' ¤â¡¢x ¼´¤ÎÌÜÀ¹ ¤ê¤ÎÉÁ²è¤Î½ç½ø¤Ë±Æ¶Á¤·¤Þ¤¹¡£
Îã:
ÌÜÀ¹¤ê¤ò 0, 0.5, 1, 1.5, ..., 9.5, 10 ¤Î°ÌÃÖ¤ËÀ¸À®
set xtics 0,.5,10
ÌÜÀ¹¤ê¤ò ..., -10, -5, 0, 5, 10, ... ¤ËÀ¸À®
set xtics 5
ÌÜÀ¹¤ê¤ò 1, 100, 1e4, 1e6, 1e8 ¤ËÀ¸À®
set logscale x; set xtics 1,100,1e8
ÌÀ¼¨Åª¤Ê ("< label> " < pos> < level> , ...) ¤Î·Á¼°¤Ï¡¢Ç¤°Õ¤ÎÌÜÀ¹¤ê¤Î°ÌÃÖ¡¢ ¤¢¤ë¤¤¤Ï¿ô»ú¤Ç¤Ê¤¤¸«½Ð¤·¤ÎÀ¸À®¤â²Äǽ¤Ë¤·¤Þ¤¹¡£¤³¤Î·Á¼°¤Ç¤Ï¡¢ÌÜÀ¹¤ê¤Ï°Ì Ã֤οô»ú¤Î½ç¤ËÍ¿¤¨¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£³ÆÌÜÀ¹¤ê¤Ï°ÌÃÖ (pos) ¤È¸«½Ð¤· (label) ¤ò»ý¤Á¤Þ¤¹¤¬¡¢¸«½Ð¤·¤Ïɬ¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¸«½Ð¤·¤ÏÆó½Å°úÍÑÉä¤Ç °Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤Ï¡¢"hello" ¤Î¤è¤¦¤Ê¸Ç Äêʸ»úÎó¤Ç¤â¹½¤¤¤Þ¤»¤ó¤·¡¢"%3f clients" ¤Î¤è¤¦¤Ë¤½¤Î°ÌÃÖ¤ò¿ô»ú¤ËÊÑ´¹¤¹ ¤ë½ñ¼°Ê¸»úÎó¤ò´Þ¤ó¤Ç¤â¹½¤¤¤Þ¤»¤ó¤·¡¢¶õʸ»úÎó "" ¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£¤è¤ê¾Ü ¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set format (82.23)¡£¤â¤·¡¢Ê¸»úÎó¤¬Í¿¤¨¤é¤ì¤Ê¤± ¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î¿ô»ú¤Î¸«½Ð¤·¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£
ÌÀ¼¨Åª¤Ê·Á¼°¤Ç¤Ï 3 ¤ÄÌܤΥѥé¥á¡¼¥¿¤È¤·¤Æ "¥ì¥Ù¥ë" (level) ¤òÍ¿¤¨¤ë¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥ì¥Ù¥ë¤Ï 0 ¤Ç¡¢¤³¤ì¤ÏÂçÌÜÀ¹¤ê¤ò°ÕÌ£¤·¡¢¥ì¥Ù ¥ë¤¬ 1 ¤Î¾ì¹ç¾®ÌÜÀ¹¤ê¤¬À¸À®¤µ¤ì¤Þ¤¹¡£¥ì¥Ù¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¥é¥Ù¥ë¤âɬ ¤º»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
Îã:
set xtics ("low" 0, "medium" 50, "high" 100) set xtics (1,2,4,8,16,32,64,128,256,512,1024) set ytics ("bottom" 0, "" 10, "top" 20) set ytics ("bottom" 0, "" 10 1, "top" 20)
2 ÈÖÌܤÎÎã¤Ç¤Ï¡¢Á´¤Æ¤ÎÌÜÀ¹¤ê¤¬¸«½Ð¤·ÉÕ¤±¤µ¤ì¤Þ¤¹¡£3 ÈÖÌܤÎÎã¤Ç¤Ï¡¢Ã¼¤Î ¤â¤Î¤À¤±¤¬¸«½Ð¤·ÉÕ¤±¤µ¤ì¤Þ¤¹¡£4 ÈÖÌܤÎÎã¤Î¡¢¸«½Ð¤·¤Î¤Ê¤¤ÌÜÀ¹¤ê¤Ï¾®ÌÜÀ¹ ¤ê¤Ë¤Ê¤ê¤Þ¤¹¡£
Ä̾ïÌÀ¼¨Åª¤Ê (¼êÆ°¤Î) ÌÜÀ¹¤ê°ÌÃÖ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢¼«Æ°Åª¤ËÀ¸À®¤µ¤ì¤ëÌÜ À¹¤ê¤Ï»È¤ï¤ì¤Þ¤»¤ó¡£µÕ¤Ë¡¢set xtics auto ¤Î¤è¤¦¤Ê¤â¤Î¤¬»ØÄꤵ¤ì¤¿¾ì ¹ç¤Ï¡¢°ÊÁ°¤Ë¼êÆ°¤ÇÀßÄꤷ¤¿ÌÜÀ¹¤ê¤Ï¾Ã¤µ¤ì¤Æ¤·¤Þ¤·¤Þ¤¹¡£¤³¤Î¼êÆ°¤ÎÌÜÀ¹¤ê ¤È¼«Æ°Åª¤ÊÌÜÀ¹¤ê¤ò¶¦Â¸¤µ¤»¤ë¤Ë¤Ï¥¡¼¥ï¡¼¥É add ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤ÏÄɲ乤ëÌÜÀ¹¤ê¤Î¥¹¥¿¥¤¥ë¤ÎÁ°¤Ë½ñ¤«¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£
Îã:
set xtics 0,.5,10 set xtics add ("Pi" 3.14159)
¤³¤ì¤Ï¼«Æ°Åª¤ËÌÜÀ¹¤ê¤Î¹ï¤ß¤ò x ¼´¤Ë 0.5 ´Ö³Ö¤Ç¤Ä¤±¤Þ¤¹¤¬¡¢¦Ð¤Î¤È¤³¤í¤Ë ÌÀ¼¨Åª¤Ê¸«½Ð¤·¤âÄɲä·¤Þ¤¹¡£
¤·¤«¤·»ØÄꤷ¤Æ¤â¡¢É½¼¨¤µ¤ì¤ë¤Î¤Ï¤¢¤¯¤Þ¤ÇÉÁ²èÈϰϤΤâ¤Î¤À¤±¤Ç¤¹¡£
ÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Î½ñ¼° (¤Þ¤¿¤Ï¾Êά) ¤Ï set format ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£¤¿¤À ¤·¤½¤ì¤Ï set xtics (< label> ) ¤Î·Á¼°¤ÎÌÀ¼¨Åª¤Ê¸«½Ð¤·Ê¸»úÎó¤¬´Þ¤Þ¤ì ¤Æ¤¤¤Ê¤¤¾ì¹ç¤À¤±¤Ç¤¹¡£
(¸«½Ð¤·ÉÕ¤±¤µ¤ì¤Ê¤¤) ¾®ÌÜÀ¹¤ê¤Ï¡¢set mxtics ¥³¥Þ¥ó¥É¤Ç¼«Æ°Åª¤ËÄɲä¹ ¤ë¤«¡¢¤Þ¤¿¤Ï°ÌÃÖ¤ò¼êÆ°¤Ç set xtics ("" < pos> 1, ...) ¤Î·Á¼°¤ÇÍ¿¤¨¤ë ¤³¤È¤â¤Ç¤¤Þ¤¹¡£
Îã:
set xdata time set timefmt "%d/%m" set xtics format "%b %d" set xrange ["01/12":"06/12"] set xtics "01/12", 172800, "05/12"
set xdata time set timefmt "%d/%m" set xtics format "%b %d" set xrange ["01/12":"06/12"] set xtics ("01/12", "" "03/12", "05/12")
set border 3 set yrange [0:10] set ytics nomirror rangelimited plot "file.dat"
½ñ¼°:
set xyplane at <zvalue> set xyplane relative <frac> set ticslevel <frac> # set xyplane relative ¤ÈƱÅù show xyplane
set xyplane relative < frac> ¤Ï¡¢xy Ê¿Ì̤ò Z ¼´¤ÎÈϰϤΤɤ³¤ËÃÖ¤¯¤«¤ò ·èÄꤷ¤Þ¤¹¡£< frac> ¤Ë¤Ï¡¢xy Ê¿ÌÌ¤È z ¤Î°ìÈÖ²¼¤Î°ÌÃ֤Ȥκ¹¤Î¡¢z ¼´¤ÎÈÏ °ÏÁ´ÂΤËÂФ¹¤ë³ä¹ç¤òÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 0.5 ¤Ç¤¹¡£Éé¤ÎÃͤâµö¤µ ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤¦¤¹¤ë¤È 3 ¤Ä¤Î¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤¬½Å¤Ê¤ë²ÄǽÀ¤¬¤¢¤ê ¤Þ¤¹¡£Èó¿ä¾©¤Ç¤¹¤¬¡¢¸Å¤¤·Á¼° set ticslevel ¤â¸åÊý¸ß´¹À¤Î¤¿¤á¤Ë»Ä¤µ ¤ì¤Æ¤¤¤Þ¤¹¡£
xy Ê¿Ì̤ò z ¼´¤Î 'pos' ¤Î°ÌÃÖ¤ËÃÖ¤¯¤Ë¤Ï¡¢ticslevel ¤ÎÃͤò (pos - zmin) / (zmin - zmax) ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£¤·¤«¤·¡¢¤³¤Î°ÌÃÖ¤Ï z ¤ÎÈÏ °Ï (zrange) ¤òÊѹ¹¤·¤¿¾ì¹ç¤ÏÊѤï¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤â¤¦°ì¤Ä¤Î·Á¼°¤Ç¤¢¤ë set xyplane at < zvalue> ¤Ï¡¢¸½ºß¤Î z ¤ÎÈϰϤòµ¤ ¤Ë¤¹¤ë¤³¤È¤Ê¤¯¡¢»ØÄꤷ¤¿ z ¤ÎÃͤΰÌÃÖ¤Ë xy Ê¿Ì̤ò¸ÇÄꤷ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ x,y,z ¼´¤ò¶¦Ä̤θ¶ÅÀ¤òÄ̤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢set xyplane at 0 ¤È¤¹¤ì¤Ð ¤¤¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
°Ê²¼¤â»²¾È: set view (82.82), set zeroaxis (82.119)¡£
½ñ¼°:
set zero <expression> show zero
gnuplot ¤Ï¡¢(Ê£ÁÇ¿ôÃͤò»ý¤ÄÅÀ¤ÎÉÁ²è¤Ë¤ª¤¤¤Æ¤Ï) ¤½¤ÎÃͤεõ¿ôÉôʬ¤ÎÀä ÂÐÃͤ¬ zero ïçÃͤè¤êÂ礤¤¾ì¹ç (¤Ä¤Þ¤ê¼Â¿ô¤Ç¤Ê¤¤Ãͤò»ý¤ÄÅÀ) ¤Ï¡¢¤½¤Î ÅÀ¤òÉÁ²è¤·¤Þ¤»¤ó¡£¤³¤ÎïçÃÍ¤Ï gnuplot ¤Î¾¤ÎÍÍ¡¹¤ÊÉôʬ¤Ë¤ª¤¤¤Æ¤½¤Î (Âç¤Þ¤«¤Ê) ¿ôÃÍ¸íº¹¤ÎïçÃͤȤ·¤Æ¤â»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î zero ¤Î ÃÍ¤Ï 1e-8 ¤Ç¤¹¡£1e-3 (= ŵ·¿Åª¤Ê¥Ó¥Ã¥È¥Þ¥Ã¥×¥Ç¥£¥¹¥×¥ì¥¤¤Î²òÁüÅ٤εտô) ¤è¤êÂ礤¤ zero ¤ÎÃͤÏÀßÄꤹ¤Ù¤¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤¬¡¢zero ¤ò 0.0 ¤È ÀßÄꤹ¤ë¤Î¤Ï°ÕÌ£¤Î¤Ê¤¤¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
½ñ¼°:
set {x|x2|y|y2|z}zeroaxis { {linestyle | ls <line_style>} | { linetype | lt <line_type>} { linewidth | lw <line_width>}} unset {x|x2|y|y2|z}zeroaxis show {x|y|z}zeroaxis
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¥ª¥Õ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ÁªÂò¤µ¤ì¤¿ 0 ¤Î¼´¤Ï < line_type> ¤ÎÀþ¤Î·¿¤È< line_width> ¤ÎÀþ¤ÎÉý (¸½ºß»ÈÍѤ·¤Æ¤¤¤ë ½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð) ¤Ç¡¢¤¢¤ë¤¤¤Ï¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤¿ < line_style> ¤Î¥¹¥¿¥¤¥ë¤ÇÉÁ¤«¤ì¤Þ¤¹¡£
Àþ¤Î·¿¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¼´¤ÏÄ̾ï¤Î¼´¤ÎÀþ¤Î·¿ (·¿ 0) ¤ÇÉÁ¤«¤ì¤Þ¤¹¡£
set zeroaxis ¤Ï set xzeroaxis; set yzeroaxis ¤ÈƱÅù¤Ç¤¹¡£z ¼´¤Ï¡¢ set zzeroaxis ¤ò»È¤Ã¤ÆÆÈΩ¤ËÀßÄꤹ¤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
y=0 ¤Î¼´¤ò¸«¤¨¤ë¤è¤¦¤Ë´Êñ¤Ë½ñ¤¯¾ì¹ç:
set xzeroaxis
ÂÀ¤¤Àþ¤Ë¤·¤Æ¡¢°ã¤Ã¤¿¿§¡¢¤Þ¤¿¤ÏÅÀÀþ¥Ñ¥¿¡¼¥ó¤Ë¤·¤¿¤¤¾ì¹ç:
set xzeroaxis linetype 3 linewidth 2.5
¥«¥é¡¼¥Ü¥Ã¥¯¥¹¼´ (cb-¼´) ¤¬ splot ¤Ç¼«Æ°½Ì¼Ü¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤Î ¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ÎÈÏ°Ï¤Ï zrange ¤¬»È¤ï¤ì¤Þ¤¹¡£splot ... pm3d| palette ¤ÇÉÁ²è¤µ¤ì¤ëÅÀ¤Ï¡¢°Û¤Ê¤ë zrange ¤È cbrange ¤ò»È¤¦¤³¤È¤Ç¥Õ¥£¥ë¥¿¥ê ¥ó¥°¤Ç¤¤Þ¤¹¡£
set cbrange ¤Î½ñ¼°¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set xrange (82.95)¡£°Ê²¼¤â»²¾È:set palette (82.54), set colorbox (82.12)¡£
¥·¥§¥ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÊýË¡¤Ï 2 ¤Ä¤¢¤ê¤Þ¤¹: ¥³¥Þ¥ó¥É system ¤ò»È¤¦ ¤« ! (VMS ¤Ç¤Ï $) ¤ò»È¤¦¤«¡£Á°¼Ô¤Ï¡¢¥³¥Þ¥ó¥Éʸ»úÎó¤ò¥Ñ¥é¥á¡¼¥¿¤È¤·¤Æ ¼è¤ë¤Î¤Ç¡¢Â¾¤Î gnuplot ¥³¥Þ¥ó¥É¤Î¤É¤³¤Ç¤â»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬¡¢¸å¼Ô¤Î ½ñ¼°¤Ï¡¢¤½¤Î¹Ô¤Ë¤½¤Î¥³¥Þ¥ó¥É¤¿¤À°ì¤Ä¤Ç¤¢¤ë¤³¤È¤òÍ׵ᤷ¤Þ¤¹¡£¤³¤ì¤é¤Î¾ì ¹ç¥³¥Þ¥ó¥É¤¬½ªÎ»¤¹¤ë¤È¤¹¤°¤ËÀ©¸æ¤Ï gnuplot ¤ËÌá¤Ã¤Æ¤¤Þ¤¹¡£Î㤨¤Ð MS-DOS, OS/2 ¤Ç¤Ï¡¢
! dir
system "dir"
¤È¤¹¤ë¤È¥Ç¥£¥ì¥¯¥È¥ê¤Î°ìÍ÷¤òɽ¼¨¤·¤Æ gnuplot ¤ËÌá¤Ã¤Æ¤¤Þ¤¹¡£
system ¤ò»È¤¦Â¾¤ÎÎã:
system "date"; set time; plot "a.dat" print=1; if (print) replot; set out; system "lpr x.ps"
2 ¼¡¸µ¤È 3 ¼¡¸µÉÁ²è¤ÎξÊý¤Ç»È¤¨¤ë¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È:plot (72)¡£
½ñ¼°:
splot {<ranges>} {<iteration>} <function> | "<datafile>" {datafile-modifiers}} {<title-spec>} {with <style>} {, {definitions{,}} <function> ...}
¤³¤³¤Ç¡¢´Ø¿ô < function> ¡¢¤Þ¤¿¤Ï¥¯¥©¡¼¥È¤Ç¤¯¤¯¤é¤ì¤¿¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë̾¤Î ¤É¤Á¤é¤«¤¬É¬ÍפǤ¹¡£´Ø¿ô¤Ï¡¢°ìËܤοô¼°¡¢¤¢¤ë¤¤¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï 3 ¤Ä¤Î¿ô¼°¤ÎÁȤǤ¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢splot ¤ÏÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤Î²¼¤Ë´°Á´¤Ê xy Ì̤òÉÁ¤¤Þ¤¹¡£ z ¤Î°ìÈÖ²¼¤ÎÌÜÀ¹¤ê¤È xy Ê¿Ì̤ΰÌÃÖ´Ø·¸¤Ï set xyplane ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ splot ¤Î¼Í±Æ¤Î¸þ¤¤Ï set view ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:set view (82.82), set xyplane (82.97)¡£
splot ¥³¥Þ¥ó¥É¤ÎÈϰϤλØÄê¤Î½ñ¼°¤Ï plot ¤Î¾ì¹ç¤ÈƱ¤¸¤Ç¤¹¡£ÇÞ²ðÊÑ¿ô ¥â¡¼¥É¤Ç¤Ê¤±¤ì¤ÐÈÏ°Ï¤Ï xrange, yrange, zrange ¤Î½ç¤Ç¤¢¤ê¡¢ÇÞ²ðÊÑ ¿ô¥â¡¼¥É¤Ç¤Ï urange, vrange, xrange, yrange, zrange ¤Î½ç¤Ç¤¹¡£
title ¥ª¥×¥·¥ç¥ó¤â plot ¤ÈƱ¤¸¤Ç¤¹¡£with ¤â plot ¤È¤Û¤ÜƱ¤¸ ¤Ç¤¹¤¬¡¢splot ¤Ç¤ÏÍøÍѲÄǽ¤ÊÉÁ²è¥¹¥¿¥¤¥ë¤Ï lines, points, linespoints, dots, impulses ¤Ë¸Â¤é¤ì¤Æ¤¤¤Þ¤¹¡£plot ¤Ç»È¤¨¤ë ¥¨¥é¡¼¥Ð¡¼¤Îµ¡Ç½¤Ï splot ¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¡£
datafile ¥ª¥×¥·¥ç¥ó¤Ë¤Ï¤µ¤é¤Ë°ã¤¤¤¬¤¢¤ê¤Þ¤¹¡£
°Ê²¼¤â»²¾È: show plot (82.52)¡£
½ñ¼°:
splot '<file_name>' {binary <binary list>} {{nonuniform} matrix} {index <index list>} {every <every list>} {using <using list>}
"" ¤ä "-" ¤È¤¤¤Ã¤¿ÆÃÊ̤ʥե¡¥¤¥ë̾¤â plot ¤ÈƱÍͤ˵ö¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: special-filenames (72.3.6)¡£
¼êû¤Ë¤¤¤¦¤È¡¢binary ¤ä matrix ¤Ï¤½¤Î¥Ç¡¼¥¿¤¬ÆÃÊ̤ʷÁ¤Ç¤¢¤ë¤³¤È¤ò¡¢ index ¤Ï¿½Å¥Ç¡¼¥¿½¸¹ç¥Õ¥¡¥¤¥ë¤«¤é¤É¤Î¥Ç¡¼¥¿½¸¹ç¤òÁª¤ó¤ÇÉÁ²è¤¹¤ë¤«¤ò¡¢ every ¤Ï³Æ¥Ç¡¼¥¿½¸¹ç¤«¤é¤É¤Î¥Ç¡¼¥¿¹Ô (Éôʬ½¸¹ç) ¤òÁª¤ó¤ÇÉÁ²è¤¹¤ë¤«¤ò¡¢ using ¤Ï³Æ¥Ç¡¼¥¿¹Ô¤«¤é¤É¤Î¤è¤¦¤ËÎó¤òÁª¤Ö¤«¤ò»ØÄꤷ¤Þ¤¹¡£
index ¤È every ¥ª¥×¥·¥ç¥ó¤Ï plot ¤Î¾ì¹ç¤ÈƱ¤¸¤è¤¦¤Ë¿¶Éñ¤¤¤Þ¤¹¡£ using ¤â¡¢using ¤Î¥ê¥¹¥È¤¬ 2 ¤Ä¤Ç¤Ê¤¯ 3 ¤ÄɬÍפǤ¢¤ë¤È¤¤¤¦¤³¤È¤ò ½ü¤¤¤Æ¤ÏƱÍͤǤ¹¡£
thru ¤ä smooth ¤È¤¤¤Ã¤¿ plot ¤Î¥ª¥×¥·¥ç¥ó¤Ï splot ¤Ç¤ÏÍøÍѤǤ ¤Þ¤»¤ó¡£¤·¤«¤·¡¢cntrparam ¤ä dgrid3d ¤¬¡¢À©¸Â¤µ¤ì¤Æ¤Ï¤¤¤Þ¤¹¤¬Ê¿³ê²½ ¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î·Á¼°¤Ï¡¢³ÆÅÀ¤¬ (x,y,z) ¤Î 3 ¤ÄÁȤǤ¢¤ë°Ê³°¤Ï¡¢ËܼÁŪ¤Ëplot ¤ÈƱ¤¸¤Ç¤¹¡£¤â¤·°ì¤Ä¤ÎÃͤÀ¤±¤¬Í¿¤¨¤é¤ì¤ì¤Ð¡¢¤½¤ì¤Ï z ¤È¤·¤Æ»È¤ï¤ì¡¢ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Èֹ椬 y ¤È¤·¤Æ¡¢¤½¤·¤Æ x ¤Ï¤½¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Æâ¤Ç¤ÎÈֹ椬 »È¤ï¤ì¤Þ¤¹¡£¤â¤· 2 ¤Ä¡¢¤¢¤ë¤¤¤Ï 4 ¤Ä¤ÎÃͤ¬Í¿¤¨¤é¤ì¤ì¤Ð¡¢gnuplot ¤Ï¤½¤Î ºÇ¸å¤ÎÃͤò pm3d plot ¤Ç¤Î¿§¤Î·×»»¤Ë»È¤¤¤Þ¤¹¡£3 ¤Ä¤ÎÃÍ¤Ï (x,y,z) ¤ÎÁȤȸ« ¤Ê¤µ¤ì¤Þ¤¹¡£Â¾¤ËÃͤ¬¤¢¤ì¤Ð¡¢¤½¤ì¤Ï°ìÈÌ¤Ë¸íº¹¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¤½¤ì¤Ï fit ¤Ç»È¤¦¤³¤È¤¬²Äǽ¤Ç¤¹¡£
splot ¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ç¤Ï¡¢1 ¹Ô¤Î¶õ¹Ô¤Ï¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎʬΥ»Ò¤Ç¤¹¡£ splot ¤Ï¸Ä¡¹¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ò¡¢´Ø¿ô¤Î y-¸ÉΩÀþ¤ÈƱ¤¸¤â¤Î¤È¤·¤Æ°·¤¤ ¤Þ¤¹¡£1 ¹Ô¤Î¶õ¹Ô¤ÇʬΥ¤µ¤ì¤Æ¤¤¤ëÅÀƱ»Î¤ÏÀþʬ¤Ç·ë¤Ð¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£ Á´¤Æ¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤¬Á´¤¯Æ±¤¸ÅÀ¤Î¿ô¤ò»ý¤Ä¾ì¹ç¡¢gnuplot ¤Ï¥Ç¡¼¥¿ ¥Ö¥í¥Ã¥¯¤ò²£ÃǤ·¡¢Âбþ¤¹¤ëÅÀƱ»Î¤ò·ë¤Ö¸ÉΩÀþ¤òÉÁ¤¤Þ¤¹¡£¤³¤ì¤Ï "grid data" ¤È¸Æ¤Ð¤ì¡¢¶ÊÌ̤ÎÉÁ²è¡¢Åù¹âÀþ¤ÎÉÁ²è (set contour)¡¢±£Àþ½èÍý (set hidden3d) ¤Ç¤Ï¡¢¤³¤Î·Á¤Î¥Ç¡¼¥¿¤Ç¤¢¤ë¤³¤È¤¬É¬ÍפȤʤê¤Þ¤¹¡£°Ê²¼¤â»²¾È: splot grid_data (84.2)¡£
3 Îó¤Î splot ¥Ç¡¼¥¿¤Ë¤ª¤¤¤Æ¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤ò»ØÄê ¤¹¤ë¤³¤È¤Ï¤â¤Ï¤äÉÔÍפǤ¹¡£
splot 'file' matrix using 1:2:3 # ASCII ¥Ç¡¼¥¿ splot 'file' binary general using 1:2:3 # ¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿
°ìÍͤʳʻҤΠmatrix ¥Ç¡¼¥¿¤Ç¤Ï¡¢³Æ¥Ö¥í¥Ã¥¯¤Î z ¤ÎÃͤϰì¹Ô¤Ç°ìÅÙ¤ËÆɤÞ
¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢
z11 z12 z13 z14 ... z21 z22 z23 z24 ... z31 z32 z33 z34 ...
ASCII ÆþÎϤǤϡ¢¶õ¹Ô¤ä¥³¥á¥ó¥È¹Ô¤ÏÇÛÎó¥Ç¡¼¥¿¤ò½ªÎ»¤µ¤»¡¢¿·¤¿¤Ê¶ÊÌ̤ÎÌÖ
(mesh) ¤ò³«»Ï¤·¤Þ¤¹¡£¤¤¤Ä¤â¤Î¤³¤È¤Ç¤¹¤¬¡¢splot ¥³¥Þ¥ó¥É ¤Î index
¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¥Õ¥¡¥¤¥ëÆâ¤ÎÌÖ¤ò¼«Í³¤ËÁªÂò¤Ç¤¤Þ¤¹¡£
2 ¤ÄÌܤηÁ¼°¤Ï¡¢Èó°ìÍͤʳʻҤǡ¢x, y ºÂɸ¤ÏÌÀ¼¨¤·¤Æ¤¤¤ë¤È²¾Äꤹ¤ë¤â¤Î
¤Ç¡¢ÆþÎϥǡ¼¥¿¤ÎºÇ½é¤Î¹Ô¤ò y ºÂɸ¡¢ºÇ½é¤ÎÎó¤ò x ºÂɸ¤È¤ß¤Ê¤·¤Þ¤¹¡£
¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢1 ¹ÔÌܤκǽé¤ÎÍ×ÁǤϡ¢¥Ç¡¼¥¿Îó¿ô¤Ç¤Ê¤±¤ì¤Ð¤¤
¤±¤Þ¤»¤ó (ASCII ¥Ç¡¼¥¿¤Ç¤Ï¤½¤Î¿ô¤Ï̵»ë¤µ¤ì¤Þ¤¹)¡£ºÂɸ¤È¥Ç¡¼¥¿Ãͤϡ¢
¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ç¤ÏñÀºÅÙÉâÆ°¾®¿ôÃͤȤߤʤµ¤ì¤Þ¤¹¡£
Èó°ìÍÍ¤Ê matrix ¥Ç¡¼¥¿¤òÉÁ²è¤¹¤ë¥³¥Þ¥ó¥É¤ÎÎã:
splot 'file' nonuniform matrix using 1:2:3 # ASCII ¥Ç¡¼¥¿ splot 'file' binary matrix using 1:2:3 # ¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿
¤è¤Ã¤Æ¡¢Èó°ìÍÍ¤Ê matrix ¥Ç¡¼¥¿¤Î¹½Â¤¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹:
<N+1> <y0> <y1> <y2> ... <yN> <x0> <z0,0> <z0,1> <z0,2> ... <z0,N> <x1> <z1,0> <z1,1> <z1,2> ... <z1,N> : : : : ... :
¤³¤ì¤é¤Ï°Ê²¼¤Î¤è¤¦¤Ê 3 ¤Ä¤Î¿ô»ú¤ÎÁȤËÊÑ´¹¤µ¤ì¤Þ¤¹:
<x0> <y0> <z0,0> <x0> <y1> <z0,1> <x0> <y2> <z0,2> : : : <x0> <yN> <z0,N>
<x1> <y0> <z1,0> <x1> <y1> <z1,1> : : :
¤½¤·¤Æ¡¢¤³¤ì¤é¤Î 3 ¤Ä¤Î¿ô»ú¤ÎÁÈ¤Ï gnuplot ¤Î¸ÉΩÀþ¤ËÊÑ´¹¤µ¤ì¡¢¤½¤Î¸å gnuplot ¤¬Ä̾ï¤ÎÊýË¡¤ÇÉÁ²è¤Î»Ä¤ê¤ò¹Ô¤¤¤Þ¤¹¡£
¹ÔÎó¤ä¥Ù¥¯¥È¥ë¤ÎÁàºî¤Î¥µ¥Ö¥ë¡¼¥Á¥ó (C ¤Ë¤è¤ë) ¤¬ binary.c ¤ËÍÑ°Õ¤µ¤ì ¤Æ¤¤¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤ò½ñ¤¯¥ë¡¼¥Á¥ó¤Ï
int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)
¤Ç¤¹¡£¤³¤ì¤é¤Î¥µ¥Ö¥ë¡¼¥Á¥ó¤ò»È¤¦Î㤬 bf_test.c ¤È¤·¤ÆÍÑ°Õ¤µ¤ì¤Æ¤¤¤Æ¡¢ ¤³¤ì¤Ï¥Ç¥â¥Õ¥¡¥¤¥ë demo/binary.dem ÍѤËÊ£¿ô¤Î¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤òÀ¸À® ¤·¤Þ¤¹¡£
plot ¤Ç¤Î»ÈÍÑË¡:
plot `a.dat` matrix plot `a.dat` matrix using 1:3 plot 'a.gpbin' {matrix} binary using 1:3
Îã - ASCII ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÇÛÎó¤Î¼´¤Î³ÈÂç:
splot `a.dat` matrix using (1+$1):(1+$2*10):3
Îã - ASCII ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÇÛÎó¤ÎÂè 3 ¹Ô¤ÎÉÁ²è:
plot 'a.dat' matrix using 1:3 every 1:999:1:2
Gnuplot ¤Ï¡¢array, record, format, filetype ¤Ê¤É¤Î general ¥Ð ¥¤¥Ê¥ê·Á¼°¤òÆÃÄꤹ¤ë¤è¤¦¤Ê¥¡¼¥ï¡¼¥É¤ò¤Ä¤±¤º¤Ë¥ª¥×¥·¥ç¥ó binary ¤ò»È ¤¦¤³¤È¤Ç¡¢matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤½¤Î¾¤ÎÊÑ´¹ ÍѤΠgeneral ¥Ð¥¤¥Ê¥ê¥¡¼¥ï¡¼¥É¤Ï¡¢matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤âŬÍѤǤ ¤ë¤Ç¤·¤ç¤¦¡£(¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: binary general (72.2.1)¡£)
splot 'datafile.dat'
¤³¤³¤Ç¡¢"datafile.dat" ¤Ï°Ê²¼¤ò´Þ¤à¤È¤·¤Þ¤¹:
# The valley of the Gnu. 0 0 10 0 1 10 0 2 10
1 0 10 1 1 5 1 2 10
2 0 10 2 1 1 2 2 10
3 0 10 3 1 0 3 2 10
¤³¤Î "datafile.dat" ¤Ï 4*3 ¤Î³Ê»Ò (¤½¤ì¤¾¤ì 3 ÅÀ¤«¤é¤Ê¤ë¥Ö¥í¥Ã¥¯¤Î 4 ¤Ä¤Î¹Ô) ¤òÄêµÁ¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£¹Ô (¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯) ¤Ï 1 ¹Ô¤Î ¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤Þ¤¹¡£
x ¤ÎÃͤϤ½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÃæ¤ÇÄê¿ô¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ²¼ ¤µ¤¤¡£¤â¤· y ¤òÄê¿ô¤ÎÃͤȤ·¡¢±£Àþ½èÍý¤¬Í¸ú¤Ê¾õÂÖ¤ÇÉÁ²è¤¹¤ë¤È¡¢¤½¤Î¶ÊÌÌ¤Ï Î¢ÊÖ¤·¤Ç½ñ¤«¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
³Ê»Ò¾õ¥Ç¡¼¥¿ (grid data) ¤ËÂФ·¤Æ¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Æâ¤Ç x ¤ÎÃͤòÄê ¿ô¤È¤·¤Æ¤ª¤¯É¬ÍפϤ¢¤ê¤Þ¤»¤ó¤·¡¢Æ±¤¸¾ì½ê¤Î y ¤ÎÃͤòƱ¤¸ÃͤË·¤¨¤Æ¤ª¤¯ ɬÍפ⤢¤ê¤Þ¤»¤ó¡£gnuplot ¤Ï¸Ä¡¹¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Æâ¤ÎÅÀ¤Î¿ô¤¬Åù¤·¤¤¤È ¤¤¤¦¤³¤È¤òɬÍפȤ·¤Æ¤¤¤ë¤À¤±¤Ç¤¹¡£¤·¤«¤·¡¢Åù¹âÀþ¤òƳ¤¯¤Î¤ËÍѤ¤¤é¤ì¤ë¶Ê Ì̤ÎÌÖÌܤϡ¢Âбþ¤¹¤ëÅÀ¤òÎóŪ¤ËÁª¤ó¤Ç·ë¤Ö¤¿¤á¡¢ÉÔ·¤¤¤Î³Ê»Ò¥Ç¡¼¥¿¤ËÂФ¹ ¤ë¶ÊÌ̤ÎÉÁ²è¤Ø¤Î±Æ¶Á¤ÏͽÁۤǤ¤Þ¤»¤ó¡£¤½¤ì¤Ï¥±¡¼¥¹¥Ð¥¤¥±¡¼¥¹¤Î¸¶Íý¤Ç¥Æ ¥¹¥È¤¹¤Ù¤¤Ç¤·¤ç¤¦¡£
¤·¤«¤·¡¢gnuplot ¤Ï¤½¤Î¤è¤¦¤Ê·Á¼°¤òɬ¤º¤·¤âɬÍפȤϤ·¤Þ¤»¤ó¡£Î㤨¤Ð ´Ø¿ô¤Î¾ì¹ç¤Ï¡¢samples ¤Ï isosamples ¤È°ã¤Ã¤Æ¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£ ¤¹¤Ê¤ï¤Á¡¢x-¸ÉΩÀþ¤Î¤¦¤Á¡¢1 ËܤΠy-¸ÉΩÀþ¤È¸ò¤ï¤Ê¤¤¤â¤Î¤¬¤¤¤¯¤Ä¤«¤¢¤ë ¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Î¤Ð¤é¤Ä¤¤ ¤¿ÅÀ¤Î¸Ä¿ô¤¬Á´¤ÆƱ¤¸¤Ç¤¢¤ì¤Ð¡¢"¸ÉΩÀþ¤Ï" ¤Ï¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÅÀ¤ò·ë¤Ó¡¢ "²£ÃǸÉΩÀþ" ¤Ï³Æ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÂбþ¤¹¤ëÅÀƱ»Î¤ò·ë¤Ó¡¢"¶ÊÌÌ" ¤òºî¤í¤¦ ¤È¤·¤Þ¤¹¡£¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â¡¢Åù¹âÀþ¡¢¤ª¤è¤Ó±£Àþ½èÍý¥â¡¼¥É¤ÏÅÀ¤¬°Õ¿Þ¤·¤¿ ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤¢¤Ã¤¿¾ì¹ç¤È¤Ï°ã¤Ã¤¿ÉÁ²è¤òÍ¿¤¨¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Ð¤é¤Ä¤ ¤Î¤¢¤ë¥Ç¡¼¥¿¤Ï set dgrid3d ¤Ë¤è¤Ã¤Æ{°Û¤Ê¤ë}³Ê»Ò¾õ¥Ç¡¼¥¿¤ËÊÑ´¹¤¹¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£
Åù¹âÀþ¤Ë´Ø¤¹¤ë¥³¡¼¥É¤Ï¡¢y-¸ÉΩÀþ¤ÎÅÀ¤È¡¢¤½¤ì¤ËÂбþ¤¹¤ëÎ٤Πy-¸ÉΩÀþ¾å
¤ÎÅÀ¤Î´Ö¤ÎÀþʬ¤Ë±è¤Ã¤Æ¤Î z ¤ÎÄ¥ÎϤò·×¬¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢x-¸ÉΩÀþ¤Ë¡¢
y-¸ÉΩÀþ¤È¤Î¸òÅÀ¤È¤Ï¤Ê¤é¤Ê¤¤¤è¤¦¤ÊɸËÜÅÀ¤¬¤¢¤ë¤è¤¦¤Ê¶ÊÌ̤ËÂФ·¤Æ¤Ï¡¢
splot ¤ÎÅù¹âÀþ¤Ï¤½¤Î¤è¤¦¤ÊɸËÜÅÀ¤ò̵»ë¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼¤ò»î¤·¤Æ¤ß¤Æ²¼¤µ¤¤:
set xrange [-pi/2:pi/2]; set yrange [-pi/2:pi/2] set style function lp set contour set isosamples 10,10; set samples 10,10; splot cos(x)*cos(y) set samples 4,10; replot set samples 10,4; replot
¤µ¤é¤Ë¡¢³Ê»Ò¾õ¤Î¥Ç¡¼¥¿ÅÀ¤ËÂФ·¤Æ¤Ï¡¢splot ¤ÏƱ¤¸¹â¤µ¤ò»ý¤ÄÅÀ¤òÊä´Ö¤¹ ¤ë¤³¤È¤¬¤Ç¤ (°Ê²¼»²¾È: set contour (82.14))¡¢¤½¤·¤Æ¤½¤ì¤é¤ò·ë¤ó¤ÇÅù¹âÀþ¤òÉÁ ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤µ¤é¤Ë¡¢¤½¤Î·ë¤ÓÊý¤Ë¤Ï¿¿Ä¾¤ÊÀþʬ¤ä³ê¤é¤«¤ÊÀþ¤ò»È¤¦¤³ ¤È¤¬¤Ç¤¤Þ¤¹ (°Ê²¼»²¾È: set cntrparam (82.11))¡£´Ø¿ô¤Ï¡¢¾ï¤Ë set isosamples ¤È set samples ¤Ç·èÄꤵ¤ì¤ë³Ê»Ò¾õ¥Ç¡¼¥¿¤È¤·¤Æɾ²Á¤µ¤ì¤Þ¤¹¡£°ìÊý¡¢¥Õ ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤Ï¡¢data-file ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤Ê³Ê»Ò¾õ¥Ç¡¼¥¿¥Õ¥©¡¼¥Þ ¥Ã¥È¤Ë¤¹¤ë¤«¡¢¤¢¤ë¤¤¤Ï³Ê»Ò¥Ç¡¼¥¿¤òÀ¸À®¤¹¤ë (°Ê²¼»²¾È: set dgrid3d (82.18)) ¤È¤¤¤¦¤³¤È¤ò¤·¤Ê¤±¤ì¤Ð¤½¤¦¤Ï¤Ê¤ê¤Þ¤»¤ó¡£
Åù¹âÀþ¤Ï¶ÊÌ̤ξå¤Ëɽ¼¨¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢ÄìÌ̤˼ͱƤ¹¤ë¤³¤È¤â¤Ç¤¤Þ ¤¹¡£ÄìÌ̤ؤμͱƤϡ¢¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹¤³¤È¤â¤Ç¤¡¢¤½¤·¤Æ¤½¤ì¤ò plot ¤ÇºÆ¤ÓÆɤ߹þ¤ó¤Ç plot ¤Î¤è¤ê¶¯¤¤À°·ÁǽÎϤòÀ¸¤«¤¹¤³¤È¤â¤Ç¤¤Þ¤¹¡£
stats 'filename' [using N[:M]] [name 'prefix'] [[no]output]]
²èÌ̽ÐÎϤ˲䨡¢gnuplot ¤Ï¸Ä¡¹¤ÎÅý·×¾ðÊó¤ò 3 ¤Ä¤ÎÊÑ¿ô¥°¥ë¡¼¥×¤ËÊݸ¤·
¤Þ¤¹¡£
1 ÈÖÌܤÎÊÑ¿ô¥°¥ë¡¼¥×¤Ï¡¢¤É¤ó¤Ê¥Ç¡¼¥¿¤¬Ê¤ó¤Ç¤¤¤ë¤«¤ò¼¨¤·¤Þ¤¹:
STATS_records # ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿¹Ô¤ÎÁí¿ô STATS_outofrange # Èϰϳ°¤È¤·¤Æ½ü¤«¤ì¤¿¹Ô¿ô STATS_invalid # ̵¸ú/ÉÔ´°Á´/·ç»¥Ç¡¼¥¿¹Ô¤ÎÁí¿ô STATS_blank # ¶õ¹Ô¤ÎÁí¿ô STATS_blocks # ¥Õ¥¡¥¤¥ëÆâ¤Î index ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¿ô
2 ÈÖÌܤÎÊÑ¿ô¥°¥ë¡¼¥×¤Ï¡¢1 ¤Ä¤ÎÎó¤Î¡¢ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿¤ÎÀ¼Á¤ò¼¨¤·¤Þ¤¹¡£ÂÐ
±þ¤¹¤ë¼´ (1 ¤ÄÌܤÎÎó¤Ë¤Ï x ¼´¡¢ÄɲäΠ2 ¤ÄÌܤÎÎó¤Ë¤Ï y ¼´) ¤¬¼«Æ°½Ì¼Ü
¤Î¾ì¹ç¤Ï¡¢ÈϰϤËÀ©¸Â¤Ï¤¢¤ê¤Þ¤»¤ó¡£2 ¤Ä¤ÎÎó¤ò 1 ²ó¤Î stats ¥³¥Þ¥ó¥É¤Ç
²òÀϤ¹¤ë¾ì¹ç¤Ï¡¢³ÆÊÑ¿ô̾¤Ë¤Ï "_x", "_y" ¤È¤¤¤¦ÀÜÈø¼¤¬Äɲ䵤ì¤Þ¤¹¡£Îã
¤¨¤Ð STATS_mix_x ¤Ï¡¢1 ¤ÄÌܤÎÎó¤Î¥Ç¡¼¥¿¤ÎºÇ¾®Ãͤǡ¢STATS_min_y ¤Ï 2 ¤Ä
ÌܤÎÎó¤Î¥Ç¡¼¥¿¤ÎºÇ¾®Ãͤò°ÕÌ£¤·¤Þ¤¹¡£
STATS_min # ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿ÅÀ¤ÎºÇ¾®ÃÍ STATS_max # ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿ÅÀ¤ÎºÇÂçÃÍ STATS_index_min # data[i] == STATS_min ¤È¤Ê¤ëź»ú i STATS_index_max # data[i] == STATS_max ¤È¤Ê¤ëź»ú i STATS_lo_quartile # Âè°ì (²¼¤Î) »Íʬ°Ì¶³¦ÃÍ STATS_median # ¥á¥¸¥¢¥óÃÍ (ÂèÆó»Íʬ°Ì¶³¦ÃÍ) STATS_up_quartile # Âè»° (¾å¤Î) »Íʬ°Ì¶³¦ÃÍ STATS_mean # ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿ÅÀ¤ÎÊ¿¶ÑÃÍ STATS_stddev # ÈÏ°ÏÆâ¤Î¥Ç¡¼¥¿ÅÀ¤Îɸ½àÊк¹ STATS_sum # Ï STATS_sumsq # Ê¿ÊýÏÂ
3 ÈÖÌܤÎÊÑ¿ô¥°¥ë¡¼¥×¤Ï¡¢2 ¤Ä¤ÎÎó¤Î¥Ç¡¼¥¿¤Î²òÀÏÀìÍѤǤ¹¡£
STATS_correlation # x ¤È y ¤ÎÁê´Ø·¸¿ô STATS_slope # ²óµ¢Ä¾Àþ y = Ax + B ¤Î·¸¿ô A STATS_intercept # ²óµ¢Ä¾Àþ y = Ax + B ¤Î·¸¿ô B STATS_sumxy # ÀÑÏ (x*y ¤ÎÏÂ) STATS_pos_min_y # y ¤ÎºÇ¾®ÃͤòÍ¿¤¨¤ë x ºÂɸ STATS_pos_max_y # y ¤ÎºÇÂçÃͤòÍ¿¤¨¤ë x ºÂɸ
Ʊ»þ¤Ë 2 ¤Ä°Ê¾å¤Î¥Õ¥¡¥¤¥ë¤«¤é¤ÎÅý·×¾ðÊó¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ì¤ÐÊØÍø¤Ç¤·¤ç¤¦¤«¤é¡¢ÊÑ¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀÜƬ¼¤Ç¤¢¤ë "STATS" ¤ò¥ª¥×¥·¥ç¥ó name ¤Ç¥æ¡¼¥¶¤¬»ØÄꤹ¤ëʸ»úÎó¤ËÃÖ¤´¹¤¨¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Î㤨
¤Ð¡¢°Û¤Ê¤ë 2 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤Î¤½¤ì¤¾¤ì¤Î 2 ÎóÌܤΥǡ¼¥¿¤ÎÊ¿¶ÑÃͤϰʲ¼¤Î¤è¤¦¤Ë¤·¤ÆÈæ³Ó¤Ç¤¤Þ¤¹:
stats "file1.dat" using 2 name "A" stats "file2.dat" using 2 name "B" if (A_mean < B_mean) {...}
STATS_index_xxx ¤Ç¼¨¤µ¤ì¤ëź»ú¤ÎÃͤϡ¢plot ¥³¥Þ¥ó¥É¤ÎÂè 0 µ¿»÷Îó ($0) ¤ÎÃͤËÂбþ¤·¡¢ºÇ½é¤ÎÅÀ¤Ïź»ú¤Ï 0¡¢ºÇ¸å¤ÎÅÀ¤Îź»ú¤Ï N-1 ¤È¤Ê¤ê¤Þ¤¹¡£
¥á¥¸¥¢¥ó¤È»Íʬ°Ì¶³¦Ãͤòõ¤¹ºÝ¤Ï¥Ç¡¼¥¿¤ÎÃͤò¥½¡¼¥È¤·¡¢ÅÀ¤ÎÁí¿ô N ¤¬´ñ ¿ô¤Î¾ì¹ç¤Ï¡¢¤½¤Î (N+1)/2 ÈÖÌܤÎÃͤò¥á¥¸¥¢¥óÃͤȤ·¡¢N ¤¬¶ö¿ô¤Î¾ì¹ç¤Ï¡¢ N/2 ÈÖÌÜ¤È (N+2)/2 ÈÖÌܤÎÃͤÎÊ¿¶ÑÃͤò¥á¥¸¥¢¥óÃͤȤ·¤Þ¤¹¡£»Íʬ°Ì¶³¦ÃÍ ¤âƱÍͤ˽èÍý¤·¤Þ¤¹¡£
¤½¤Î¸å¤ÎÉÁ²è¤ËÃí¼á¤ò¤Ä¤±¤ë¤¿¤á¤Ë¥³¥Þ¥ó¥É stats ¤òÍøÍѤ·¤¿Îã¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¸½ºß¤Î¼ÂÁõ¤Ç¤Ï¡¢X ¼´¤È Y ¼´¤Î°ìÊý¤¬Âпô¼´¤Î¾ì¹ç¤Ï²òÀϤǤ¤Þ¤»¤ó¡£¤³¤Î À©¸Â¤Ïº£¸å¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï²ò¾Ã¤µ¤ì¤ë¤Ç¤·¤ç¤¦¡£
¤³¤ì¤Ï¡¢gnuplot ¥¹¥¯¥ê¥×¥ÈÆâ¤Ë³°Éô´Ø¿ô¤ò¼è¤ê¹þ¤à¤Î¤Ë»È¤¨¤Þ¤¹:
f(x) = real(system(sprintf("somecommand %f", x)))
½ñ¼°:
test {terminal | palette [rgb|rbg|grb|gbr|brg|bgr]}
test ¤Þ¤¿¤Ï test terminal ¤Ï¡¢¸½ºß»ÈÍÑÃæ¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç »È¤¨¤ëÀþ¤Î¼ïÎà¡¢ÅÀ¤Î¼ïÎà¡¢¤Þ¤¿¤ÏÍÍѤʤ½¤·¤ÆÍøÍѲÄǽ¤Ê¤½¤Î¾¤ÎÉÁ²è¤òÀ¸ À®¤·¤Þ¤¹¡£
test palette ¤Ï¡¢R(z),G(z),B(z) (0< =z< =1) ¤Î¾õÂÖ¤òÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤é ¤Ï¸½ºß¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È (palette) ¤Î RGB À®Ê¬¤ò¼¨¤·¤Þ¤¹¡£¤Þ¤¿¡¢RGB ¤ò ³¥¿§³¬Ä´¤Ë¼ÌÁü¤¹¤ë NTSC ·¸¿ô¤òÍѤ¤¤Æ·×»»¤µ¤ì¤¿»ë¸÷ÅÙ¤âÉÁ²è¤·¤Þ¤¹¡£Äɲà ¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¡¢r,g,b ¤Îʸ»ú¤ÎÁȹ礻¤Ç¡¢¤½¤ì¤Ë¤è¤êÉÁ²è¤¹¤ë½çÈÖ¤¬·èÄꤵ ¤ì¤Þ¤¹¡£
ÊÑ¿ô̾¤Ë¤Ï¡¢ºÇ¸å¤Îʸ»ú¤È¤·¤Æ¥ï¥¤¥ë¥É¥«¡¼¥Éʸ»ú * ¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ ¤¹¡£¥ï¥¤¥ë¥É¥«¡¼¥Éʸ»ú¤¬¸«¤Ä¤«¤ë¤È¡¢¤½¤ì¤è¤êÁ°¤ÎÉôʬ¤Ç»Ï¤Þ¤ë¤¹¤Ù¤Æ¤ÎÊÑ ¿ô¤òºï½ü¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¶¦Ä̤ÎÀÜƬ¸ì¤ò»È¤Ã¤Æ¤¤¤ëÊ£¿ô¤ÎÊÑ¿ô¤òºï½ü¤¹¤ë¤Î ¤ËÊØÍø¤Ç¤·¤ç¤¦¡£¤¿¤À¤·¡¢¥ï¥¤¥ë¥É¥«¡¼¥Éʸ»ú¤ÏÊÑ¿ô̾¤ÎºÇ¸å¤Ë¤·¤«»È¤¨¤Ê¤¤ ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£undefine ¤Ë¥ï¥¤¥ë¥É¥«¡¼¥Éʸ»ú¤Î¤ß¤ò°ú¿ô¤È¤· ¤ÆÍ¿¤¨¤¿¾ì¹ç¤Ï²¿¤â¤·¤Þ¤»¤ó¡£
Îã:
undefine foo foo1 foo2 if (!exists("foo")) load "initialize.gp"
bar = 1; bar1 = 2; bar2 = 3 undefine bar* # 3 ¤Ä¤ÎÊÑ¿ô¤òÁ´Éôºï½ü
Îã:
set xtics mirror rotate by -45 0,10,100 ... unset xtics
# ÈÖ¹æ 100 ¤«¤é 200 ¤Þ¤Ç¤Î¥é¥Ù¥ë¤ò unset unset for [i=100:200] label i
½ñ¼°:
update <filename> {<filename>}
2 ÈÖÌܤΥե¡¥¤¥ë̾¤ò»ØÄꤹ¤ë¤È¡¢¸µ¤Î¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤ÏÊѹ¹¤»¤º¤Ë 2 ÈÖÌܤΥե¡¥¤¥ë¤ÎÊý¤Ë¹¹¿·¤µ¤ì¤¿Ãͤò½ñ¤½Ð¤·¤Þ¤¹¡£
¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ì¤Ð gnuplot ¤Ï¤½¤Î¥Õ¥¡¥¤¥ë ̾¤Ë .old ¤ò¤Ä¤±¤Æ¥Õ¥¡¥¤¥ë̾¤òÊѹ¹¤·¡¢»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë̾¤Î¥Õ¥¡¥¤¥ë¤ò ¿·¤¿¤Ë³«¤Ä¾¤·¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢"update 'fred'" ¤È¤¹¤ë¤È¡¢¤½¤ì¤Ï "!rename fred fred.old; update 'fred.old' 'fred'" ¤È¤·¤¿¤³¤È¤ÈƱ¤¸¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¡£["filename.ext" ¤Î 12 ʸ»ú¤·¤«»È¤¨¤Ê¤¤ MS-DOS ¤ä¾¤Î¥·¥¹ ¥Æ¥à¤Ç¤Ï¡¢"ext" ¤¬ "old" ¤Ë¤Ê¤Ã¤Æ "filename" ¤ÏºÇ½é¤Î¥Õ¥¡¥¤¥ë¤Ë´Ø·¸ ¤¹¤ë¤â¤Î (¿ʬ¤É¤ì¤«¤¬¤¹¤°¤Ëʬ¤«¤ë¤Ç¤·¤ç¤¦) ¤¬»È¤ï¤ì¤Þ¤¹¡£VMS ¤Ç¤Ï¡¢¥Õ ¥¡¥¤¥ë¤Î¥Ð¡¼¥¸¥ç¥ó´ÉÍý¥·¥¹¥Æ¥à¤¬»È¤ï¤ì¤ë¤¿¤á¡¢Ì¾Á°¤ÎÊѹ¹¤Ï¹Ô¤Ê¤ï¤ì¤Þ¤» ¤ó¡£]
¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: fit (64)¡£
while (<expr>) { <commands> }
¤³¤Îʸ½ñ¤Ï¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¾å¤Ç½é´üÀßÄꤪ¤è¤Ó¥¤¥ó¥¹¥È¡¼¥ë¤¬¤Ê¤µ¤ì¤Ê¤« ¤Ã¤¿¤¿¤á¤ËÍøÍѤǤ¤Ê¤¤½ÐÎÏ·Á¼°¤Ë¤Ä¤¤¤Æ¤âµ½Ò¤µ¤ì¤Æ¤¤¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£ ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¸Ä¡¹¤Î gnuplot ¤Ç¡¢¤É¤Î½ÐÎÏ·Á¼°¤¬Í¸ú¤Ê¤Î¤«¤Î°ìÍ÷¤ò ¸«¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó¤ò²¿¤â¤Ä¤±¤º¤Ë 'set terminal' ¤ÈÂǤäƤ¯¤À¤µ¤¤¡£
(ÌõÃí: ¤³¤ÎÆüËܸìÌõ¤Ë´Þ¤Þ¤ì¤ë terminal ¤Î¥Þ¥Ë¥å¥¢¥ë¤Ï¡¢¤½¤Î°ìÍ÷¤Ë¤Ï¤Ê ¤¤½ÐÎÏ·Á¼°¤Î¤â¤Î¤â´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢µÕ¤Ë¤½¤Î°ìÍ÷Æâ¤Î½ÐÎÏ·Á ¼°¤Ç¥Þ¥Ë¥å¥¢¥ë¤¬¤Ê¤¤¤â¤Î¤â¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£)
Ãí°Õ: »þÂåÃÙ¤ì¤Î½ÐÎÏ·Á¼°¡¢¸µ¡¹¤Ï Adobe Illustrator 3.0+ ÍÑ¡£Adobe Illustrator ¤Ï¥ì¥Ù¥ë 1 ¤Î PostScript¥Õ¥¡¥¤¥ë¤òľÀÜǧ¼±¤¹¤ë¤Î¤Ç¡¢¤³¤ì¤Î Âå¤ï¤ê¤Ë set terminal post level1 »È¤¦¤Ù¤¤Ç¤·¤ç¤¦¡£
½ñ¼°:
set terminal aifm {color|monochrome} {"<fontname>"} {<fontsize>}
½ñ¼°:
set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>} {font "<fontname>{,<fontsize>}"} {{no}enhanced} {solid|dashed} {dl <dashlength>}}
< n> ¤ÏÉÁ²è¤¹¤ë¥¦¥£¥ó¥É¥¦¤ÎÈÖ¹æ (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 0) < wintitle> ¤Ï¥¿¥¤¥È¥ë¥Ð¡¼¤Ëɽ¼¨¤µ¤ì¤ë̾Á° (¥Ç¥Õ¥©¥ë¥È¤Ï "Figure < n> "), < x> < y> ¤ÏÉÁ²è¥µ¥¤¥º (¥Ç¥Õ¥©¥ë¥È¤Ï 846x594 pt = 11.75x8.25 ¥¤¥ó¥Á) ¤Ç¤¹¡£
»ÈÍѤ¹¤ë¥Õ¥©¥ó¥È¤Ï < fontname> ¤Ç»ØÄꤷ (¥Ç¥Õ¥©¥ë¥È¤Ï "Times-Roman")¡¢ ¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï < fontsize> ¤Ç»ØÄꤷ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤Ï 14.0 pt)¡£
aqua ½ÐÎÏ·Á¼°¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode; °Ê²¼»²¾È:enhanced (12)) ¤ò¡¢½Å¤Í½ñ¤°Ê³°¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤Þ¤¹¡£¥Õ¥©¥ó¥È¤Î»ÈÍѤϥ·¥¹¥Æ ¥à¤Ç͸ú¤Ê¥Õ¥©¥ó¥È¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£Ê¸»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ï¡¢ set encoding ¤ÇÁªÂò¤Ç¤¤Þ¤¹¤¬¡¢¸½ºß¤Ï iso_latin_1, iso_latin_2, cp1250 ¤È UTF8 (default) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
¶ÊÀþ¤Ï¡¢¼ÂÀþ¤«ÅÀÀþ (¥Ç¥Õ¥©¥ë¥È¤Ï¼ÂÀþ) ¤Î¤¤¤º¤ì¤«¤ÇÉÁ²è¤Ç¤¡¢ÅÀÀþ¤Î´Ö³Ö¤Ï ÇÜΨ < dashlength> (> 0) ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal be {reset} {<n>}
Ê£¿ô¤Î¥°¥é¥ÕÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£set terminal be < n> ¤ÏÈÖ¹æ n ¤Î¥¦¥£¥ó¥É¥¦¤Ë½ÐÎϤ·¤Þ¤¹¡£n> 0 ¤Î¾ì¹ç¡¢¤½¤ÎÈÖ¹æ¤Ï¥¦¥£¥ó¥É¥¦¥¿ ¥¤¥È¥ë¤È¥¢¥¤¥³¥ó̾¤Ë gplt < n> ¤È¤·¤ÆÉÕ¤±¤é¤ì¤Þ¤¹¡£¸½ºß¤Î¥¦¥£¥ó¥É¥¦¤Ï ¥«¡¼¥½¥ëµ¹æ¤ÎÊѲ½¤Ç¶èÊ̤Ǥ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¥«¡¼¥½¥ë¤«¤é½½»ú¥«¡¼¥½¥ë¤Ø)¡£
gnuplot ¥É¥é¥¤¥Ð¤¬Ê̤ʽÐÎϥɥ饤¥Ð¤ËÊѹ¹¤µ¤ì¤Æ¤â¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï³« ¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤Ë¥«¡¼¥½¥ë¤òÃÖ¤¤¤Æ ʸ»ú q ¤ò²¡¤¹¤«¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Î¥á¥Ë¥å¡¼¤Î close ¤òÁªÂò¤¹¤ì¤Ð ÊĤ¸¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£reset ¤ò¼Â¹Ô¤¹¤ì¤ÐÁ´¤Æ¤Î¥¦¥£¥ó¥É¥¦¤ò°ìÅÙ¤ËÊĤ¸ ¤ì¤Þ¤¹¡£¤½¤ì¤Ï¼ÂºÝ¤Ë¥¦¥£¥ó¥É¥¦¤ò´ÉÍý¤·¤Æ¤¤¤ë»Ò¥×¥í¥»¥¹¤ò½ªÎ»¤·¤Þ¤¹ (¤â ¤· -persist ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð)¡£
ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï -persisit ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÂÐÏäΠ½ªÎ»»þ¤Ë¼«Æ°Åª¤ËÊĤ¸¤é¤ì¤Þ¤¹¡£
ÉÁ²è¥µ¥¤¥º¤È¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ï¡¢gnuplot ¤Î¥¦¥£¥ó¥É¥¦¤ò¥ê¥µ¥¤¥º¤¹¤ë¤³¤È¤Ç ¤âÊѹ¹¤Ç¤¤Þ¤¹¡£
Àþ¤ÎÉý¤ÈÅÀ¤Î¥µ¥¤¥º¤Ï gnuplot ¤Î set linestyle ¤ÇÊѹ¹²Äǽ¤Ç¤¹¡£
½ÐÎϥɥ饤¥Ð be ¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Ï (µ¯Æ°»þ¤Ë)¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¡¢ ¤Þ¤¿¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤«¤é¡¢geometry ¤ä font, name ¤Ê¤É¤ÎÄ̾ï¤Î X Toolkit ¥ª¥×¥·¥ç¥ó¤ä¥ê¥½¡¼¥¹¤Î»ØÄê¤ò¼õ¤±ÉÕ¤±¤Þ¤¹¡£¤½¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï X(1) ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸ (¤ä¤½¤ì¤ÈƱÅù¤Î¤â¤Î) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¾¤Ë¤â be ½ÐÎÏ·Á¼°ÍѤο¤¯¤Î gnuplot ¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì ¤é¤Ï gnuplot ¤ò¸Æ¤Ö¤È¤¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤È¤·¤Æ»ØÄꤹ¤ë¤«¡¢ ¤Þ¤¿¤ÏÀßÄê¥Õ¥¡¥¤¥ë ".Xdefaults" ¤Î¥ê¥½¡¼¥¹¤È¤·¤Æ»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤ì¤é¤Ï µ¯Æ°»þ¤ËÀßÄꤵ¤ì¤ë¤Î¤Ç¡¢gnuplot ¼Â¹Ô»þ¤Ë¤ÏÊѹ¹¤Ç¤¤Þ¤»¤ó¡£
`-mono` | ¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¾å¤Ç¶¯À©Åª¤ËÇò¹õÉÁ²è |
`-gray` | ¥°¥ì¥¤¥¹¥±¡¼¥ë¤Þ¤¿¤Ï¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¾å¤Ç¤Î¥°¥ì¥¤¥¹¥±¡¼¥ëÉÁ²è |
(¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥°¥ì¥¤¥¹¥±¡¼¥ë¥Ç¥£¥¹¥×¥ì¥¤¤ÏÇò¹õÉÁ²è¤ò¼õ¤±ÉÕ¤±¤ë) | |
`-clear` | ¿·¤·¤¤ÉÁ²è¤òɽ¼¨¤¹¤ëÁ°¤Ë (½Ö´ÖŪ¤Ë) ²èÌ̤ò¾Ãµî |
`-raise` | ³ÆÉÁ²è¸å¤ËÉÁ²è¥¦¥£¥ó¥É¥¦¤òºÇÁ°Ì̤ؽФ¹ |
`-noraise` | ³ÆÉÁ²è¸å¤ËÉÁ²è¥¦¥£¥ó¥É¥¦¤òºÇÁ°Ì̤ؽФ¹¤³¤È¤Ï¤·¤Ê¤¤ |
`-persist` | gnuplot ¥×¥í¥°¥é¥à½ªÎ»¸å¤âÉÁ²è¥¦¥£¥ó¥É¥¦¤ò»Ä¤¹ |
Îã:
gnuplot*gray: on
gnuplot ¤ÏÉÁ²è¥¹¥¿¥¤¥ë points ¤ÇÉÁ²è¤¹¤ëÅÀ¤Î¥µ¥¤¥º¤ÎÀ©¸æ¤Ë¤â¡¢¥³¥Þ¥ó¥É ¥é¥¤¥ó¥ª¥×¥·¥ç¥ó (-pointsize < v> ) ¤È¥ê¥½¡¼¥¹ (gnuplot*pointsize: < v> ) ¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£ÃÍ v ¤ÏÅÀ¤Î¥µ¥¤¥º¤Î³ÈÂçΨ¤È¤·¤Æ»È¤ï¤ì¤ë¼Â¿ôÃÍ (0 < v < = 10) ¤Ç¡¢Î㤨¤Ð -pointsize 2 ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º¤Î 2 ÇÜ¡¢ -pointsize 0.5 ¤ÏÉáÄ̤Υµ¥¤¥º¤ÎȾʬ¤ÎÅÀ¤¬»È¤ï¤ì¤Þ¤¹¡£
gnuplot*background: white | |
gnuplot*textColor: black | |
gnuplot*borderColor: black | |
gnuplot*axisColor: black | |
gnuplot*line1Color: red | |
gnuplot*line2Color: green | |
gnuplot*line3Color: blue | |
gnuplot*line4Color: magenta | |
gnuplot*line5Color: cyan | |
gnuplot*line6Color: sienna | |
gnuplot*line7Color: orange | |
gnuplot*line8Color: coral |
¤³¤ì¤é¤Ë´Ø¤¹¤ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î½ñ¼°¤Ï¡¢Î㤨¤Ð°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
Îã:
gnuplot -background coral
gnuplot*background: black | |
gnuplot*textGray: white | |
gnuplot*borderGray: gray50 | |
gnuplot*axisGray: gray50 | |
gnuplot*line1Gray: gray100 | |
gnuplot*line2Gray: gray60 | |
gnuplot*line3Gray: gray80 | |
gnuplot*line4Gray: gray40 | |
gnuplot*line5Gray: gray90 | |
gnuplot*line6Gray: gray50 | |
gnuplot*line7Gray: gray70 | |
gnuplot*line8Gray: gray30 |
gnuplot*borderWidth: 2 | |
gnuplot*axisWidth: 0 | |
gnuplot*line1Width: 0 | |
gnuplot*line2Width: 0 | |
gnuplot*line3Width: 0 | |
gnuplot*line4Width: 0 | |
gnuplot*line5Width: 0 | |
gnuplot*line6Width: 0 | |
gnuplot*line7Width: 0 | |
gnuplot*line8Width: 0 |
gnuplot ¤ÏÀþÉÁ²è¤Ç»ÈÍѤ¹¤ëÅÀÀþ¤Î·Á¼°¤ÎÀßÄêÍѤ˰ʲ¼¤Î¥ê¥½¡¼¥¹¤ò»²¾È¤·¤Þ¤¹¡£0 ¤Ï¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£2 ·å¤Î 10 ¿Ê¿ô jk (j ¤È k ¤Ï 1 ¤«¤é 9 ¤Þ¤Ç¤ÎÃÍ) ¤Ï¡¢j ¸Ä¤Î¥Ô¥¯¥»¥ë¤ÎÉÁ²è¤Ë k ¸Ä¤Î¶õÇò¤Î¥Ô¥¯¥»¥ë¤¬Â³¤¯ ¥Ñ¥¿¡¼¥ó¤Î·«¤êÊÖ¤·¤«¤é¤Ê¤ëÅÀÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£Î㤨¤Ð '16' ¤Ï 1 ¸Ä¤Î¥Ô¥¯ ¥»¥ë¤Î¸å¤Ë 6 ¤Ä¤Î¶õÇò¤¬Â³¤¯¥Ñ¥¿¡¼¥ó¤ÎÅÀÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£¤µ¤é¤Ë¡¢4 ·å¤Î 10 ¿Ê¿ô¤Ç¤è¤ê¾ÜºÙ¤Ê¥Ô¥¯¥»¥ë¤È¶õÇò¤ÎÎó¤Î¥Ñ¥¿¡¼¥ó¤ò»ØÄê¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢ '4441' ¤Ï 4 ¤Ä¤Î¥Ô¥¯¥»¥ë¡¢4 ¤Ä¤Î¶õÇò¡¢4 ¤Ä¤Î¥Ô¥¯¥»¥ë¡¢1 ¤Ä¤Î¶õÇò¤Î¥Ñ¥¿ ¡¼¥ó¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥½¡¼¥¹Ãͤϡ¢Çò¹õ¥Ç¥£¥¹¥×¥ì¥¤¡¢¤¢¤ë¤¤¤Ï¥«¥é¡¼¤äÇò¹õ³¬Ä´ (grayscale) ¥Ç¥£¥¹¥×¥ì¥¤¾å¤ÎÇò¹õÉÁ²è¤Ë¤ª¤±¤ëÃÍ ¤Ç¤¹¡£¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¤Ç¤Ï¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϤۤȤó¤É 0 (¼ÂÀþ) ¤Ç¡¢axisDashes ¤Î¤ß¤¬¥Ç¥Õ¥©¥ë¥È¤Ç '16' ¤ÎÅÀÀþ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
gnuplot*borderDashes: 0 | |
gnuplot*axisDashes: 16 | |
gnuplot*line1Dashes: 0 | |
gnuplot*line2Dashes: 42 | |
gnuplot*line3Dashes: 13 | |
gnuplot*line4Dashes: 44 | |
gnuplot*line5Dashes: 15 | |
gnuplot*line6Dashes: 4441 | |
gnuplot*line7Dashes: 42 | |
gnuplot*line8Dashes: 13 |
½ñ¼°:
set terminal cairolatex {eps | pdf} {standalone | input} {blacktext | colortext | colourtext} {header <header> | noheader} {mono|color} {solid|dashed} {{no}transparent} {{no}crop} {background <rgbcolor>} {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded|butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}}
cairolatex ½ÐÎÏ·Á¼°¤Ï¡¢epscairo ½ÐÎÏ·Á¼° (termnal epscairo) ¤ä pdfcairo ½ÐÎÏ·Á¼° (terminal pdfcairo) ¤ÈƱÅù¤Î¥°¥é¥Õ¤ò½ÐÎϤ·¤Þ¤¹¤¬¡¢ ¥Æ¥¥¹¥Èʸ»úÎó¤Ï¥°¥é¥Õ¤ÎÃæ¤ËÆþ¤ì¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢LaTeX ¤ËÅϤ·¤Þ¤¹¡£°Ê²¼¤Ç¿¨¤ì¤Ê¤¤¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: pdfcairo (92.47)¡£
eps ¤È pdf ¤Ï¡¢¥°¥é¥Õ½ÐÎϤηÁ¼°¤òÁªÂò¤·¤Þ¤¹¡£latex/dvips ÍÑ¤Ë¤Ï eps ¤ò¡¢pdflatex ÍÑ¤Ë¤Ï pdf ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
blacktext ¤Ï¡¢¥«¥é¡¼¥â¡¼¥É¤Ç¤â¤¹¤Ù¤Æ¤Îʸ»úÎó¤ò¹õ¤Ç½ñ¤¯¤è¤¦¤Ë¤·¤Þ¤¹¡£
cairolatex ½ÐÎϥɥ饤¥Ð¤Ï¡¢Ê¸»úÎó¤Î°ÌÃÖ¤ÎÆÃÊ̤ÊÀ©¸æÊýË¡¤òÄ󶡤·¤Þ¤¹:
(a) '{' ¤Ç»Ï¤Þ¤ë¤¹¤Ù¤Æ¤Îʸ»úÎó¤Ï¡¢'}' ¤â¤½¤Îʸ»úÎó¤ÎºÇ¸å¤ËɬÍפǤ¹¤¬¡¢
¤½¤Îʸ»úÎóÁ´ÂΤò LaTeX ¤Ç²£¤Ë¤â½Ä¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤·¤Þ¤¹¡£
(b) '[' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢¤½¤Î¼¡¤Ë°ÌÃÖ»ØÄêʸ»ú (t,b,l,r,c ¤Î¤¦¤Á 2 ¤Ä¤Þ
¤Ç)¡¢']{'¡¢ÂоÝʸ»úÎ󡢤ȳ¤ºÇ¸å¤Ë '}' ¤ÇÊĤ¸¤Þ¤¹¤¬¡¢¤³¤Îʸ»úÎó¤Ï¡¢
LaTeX ¤¬ LR-box ¤È¤·¤Æ½èÍý¤Ç¤¤ë¤â¤Î¤Ê¤é¤Ê¤ó¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£°ÌÃÖ¹ç¤ï¤»
¤ò´°Á´¤Ë¹Ô¤¦¤Ë¤Ï¡¢
\
rule{}{} ¤âÍÍѤǤ·¤ç¤¦¡£°Ê²¼¤â»²¾È: pslatex (92.52)¡£
Ê£¿ô¹Ô¤ËÅϤë¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¾ì¹ç¡¢
\
shortstack ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£Îã:
set ylabel '[r]{\shortstack{first line \\ second line}}'
¥³¥Þ¥ó¥É set label ¤Î¥ª¥×¥·¥ç¥ó back ¤Ï¡¢Â¾¤Î½ÐÎÏ·Á¼°¤È¤Ï¤ä¤ä°Û¤Ê¤ë ÊýË¡¤Ç½èÍý¤·¤Þ¤¹¡£back ¤ò»ÈÍѤ·¤¿¥é¥Ù¥ë¤Ï¡¢Â¾¤Î¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤθå¤í ¤Ë°õ»ú¤·¡¢front ¤ò»ÈÍѤ·¤¿¥é¥Ù¥ë¤Ï¡¢Â¾¤Î¤¹¤Ù¤Æ¤Î¾å¤Ë°õ»ú¤·¤Þ¤¹¡£
¤³¤Î¥É¥é¥¤¥Ð¤Ï 2 ¤Ä¤Î°Û¤Ê¤ë¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£°ì¤Ä¤Ï¿Þ¤Î eps ¤«¤Þ¤¿ ¤Ï pdf Éôʬ¤Ç¡¢¤â¤¦°ì¤Ä¤Ï LaTeX Éôʬ¤Ç¤¹¡£¤½¤Î LaTeX ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¡¢ ¥³¥Þ¥ó¥É set output ¤Î¤â¤Î¤ò»ÈÍѤ·¡¢eps/pdf ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¡¢¤½¤Î³È Ä¥»Ò (Ä̾ï¤Ï '.tex') ¤ò '.eps' ¤« '.pdf' ¤ËÃÖ¤´¹¤¨¤¿¤â¤Î¤ò»ÈÍѤ·¤Þ¤¹¡£ ½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢LaTeX ½ÐÎϤϤ·¤Þ¤»¤ó¡£multiplot ¥â¡¼¥É°Ê³°¤Ç¤Ï¡¢¼¡¤Î plot ¤ò¹Ô¤¦Á°¤Ë½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÊĤ¸¤ë¤Î¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
¤³¤Î²èÁü¤ò¤¢¤Ê¤¿¤Î LaTeX ʸ½ñ¤Ë¼è¤ê¹þ¤à¤Ë¤Ï¡¢' \ input{filename}' ¤ò»ÈÍÑ ¤·¤Æ¤¯¤À¤µ¤¤¡£'.eps' ¤ä '.pdf' ¥Õ¥¡¥¤¥ë¤Ï¡¢ \ includegraphics{...} ¥³¥Þ ¥ó¥É¤Ç¼è¤ê¹þ¤à¤Î¤Ç¡¢LaTeX ʸ½ñ¤Î¥×¥ê¥¢¥ó¥Ö¥ë¤Ë \ usepackage{graphicx} ¤òÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¿§ÉÕ¤¤Îʸ»ú (¥ª¥×¥·¥ç¥ó colourtext) ¤ò»ÈÍÑ ¤¹¤ë¾ì¹ç¤Ï¡¢¥×¥ê¥¢¥ó¥Ö¥ë¤Ë \ usepackage{color} ¤âÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥Õ¥©¥ó¥ÈÁªÂò¤Ë´Ø¤¹¤ëµóÆ°¤Ï¡¢¥Ø¥Ã¥À¡¼¥â¡¼¥É¤Ë°Í¸¤·¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç¤Ç ¤â¡¢Í¿¤¨¤é¤ì¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤ÏŬÀÚ¤ÊÂ礤µ¤ò·×»»¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£ standalone ¥â¡¼¥É¤ò»È¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤ì¤òÆɤߤ³¤ó¤À¤È¤³¤í¤Ç¼ÂºÝ¤Ë LaTeX ¤¬»ÈÍѤ·¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤È¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬»È¤ï¤ì¤ë¤Î¤Ç¡¢¥Õ¥©¥ó¥È¤ò Êѹ¹¤¹¤ë¤Ë¤Ï LaTeX ¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£LaTeX ʸ½ñ¤ÎÊý¤Ç 12pt ¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»È¤Ã¤Æ¤¤¤ì¤Ð¡¢¥ª¥×¥·¥ç¥ó¤È¤·¤Æ '", 12"' ¤ò»ØÄꤷ¤Æ ¤¯¤À¤µ¤¤¡£¥Õ¥©¥ó¥È̾¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£'standalone' ¤Î¾ì¹ç¤Ï¡¢Í¿¤¨¤é¤ì¤¿¥Õ ¥©¥ó¥È¤È¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»ÈÍѤ·¤Þ¤¹¡£¾ÜºÙ¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
ʸ»úÎó¤ò¿§ÉÕ¤±¤·¤Æ°õ»ú¤¹¤ë¤«¤É¤¦¤«¤Ï¡¢TeX ¤Î¥Ö¡¼¥ëÊÑ¿ô
\
ifGPcolor ¤È
\
ifGPblacktext ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£
\
ifGPcolor ¤¬ true ¤Ç
\
ifGPblacktext
¤¬ false ¤Î¤È¤¤Î¤ßʸ»úÎ󤬿§ÉÕ¤±¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÎÊѹ¹¤Ï¡¢À¸À®¤µ¤ì¤¿
TeX ¥Õ¥¡¥¤¥ëÃæ¤Ç¹Ô¤¦¤«¡¢¤Þ¤¿¤ÏÂç°èŪ¤Ë¤¢¤Ê¤¿¤Î TeX ¥Õ¥¡¥¤¥ë¤Î¥×¥ê¥¢¥ó¥Ö
¥ë¤Ç¡¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë¤·¤ÆÀßÄê¤Ç¤¤Þ¤¹:
\newif\ifGPblacktext \GPblacktexttrue
½ÐÎÏ·Á¼° cairolatex ¤ò»È¤¦¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É set output ¤Ç TeX ¥Õ¥¡¥¤¥ë ÀßÄꤹ¤ëºÝ¤Ë¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò (Ä̾ï¤Ï ",tex") ¤ò¤Ä¤±¤Æ¤¯¤À¤µ¤¤¡£ ¥°¥é¥Õ¤Î¥Õ¥¡¥¤¥ë̾¤Ï¡¢¤½¤Î³ÈÄ¥»Ò¤òÃÖ¤¤«¤¨¤ë¤³¤È¤Çºî¤é¤ì¤Þ¤¹¡£
standalone ¥â¡¼¥É¤ò»È¤¦¾ì¹ç¡¢LaTeX ¥Õ¥¡¥¤¥ë¤Ë´°Á´¤Ê LaTeX ¤Î¥Ø¥Ã¥À¤¬ Äɲ䵤졢¥°¥é¥Õ¥Õ¥¡¥¤¥ë¤Î¥Õ¥¡¥¤¥ë̾¤Ë¤Ï "-inc" ¤¬Äɲ䵤ì¤Þ¤¹¡£ standalone ¥â¡¼¥É¤Ï¡¢dvips, pdfTeX, VTeX ¤ò»È¤¦¾ì¹ç¤ËÀµ¤·¤¤¥µ¥¤¥º¤Î½Ð ÎϤòºî¤ë TeX ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï input ¤Ç¡¢¤³¤ì¤Ï LaTeX ʸ½ñ¤«¤é \ input ¥³¥Þ¥ó¥É¤Ç¼è¤ê¹þ¤Þ¤ì¤ëɬÍפ¬¤¢¤ë¥Õ¥¡¥¤¥ë¤òÀ¸À®¤· ¤Þ¤¹¡£
"" ¤ä "default" °Ê³°¤Î¥Õ¥©¥ó¥È¤òÍ¿¤¨¤¿¾ì¹ç¡¢¤½¤ì¤Ï LaTeX ¤Î¥Õ¥©¥ó¥È̾¤Ç¤¢¤ë¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¤½¤ì¤Ï ',' ¶èÀÚ¤ê¤ÇºÇÂç 3 ¤Ä¤ÎÉôʬ¤«¤é¤Ê¤ë¡¢ 'fontname,fontseries,fontshape' ¤Î·Á¼°¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î fontshape ¤ä fontseries ¤ò»È¤¤¤¿¤¤¾ì¹ç¤Ï¡¢¤½¤ì¤é¤Ï¾Êά¤Ç¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥Õ¥©¥ó¥È̾¤Î ¼ÂºÝ¤Î½ñ¼°¤Ï¡¢'{fontname}{,fontseries}{,fontshape}' ¤È¤Ê¤ê¤Þ¤¹¡£(ÌõÃí: ¤è¤ê gnuplot É÷¤Ë¸À¤¨¤Ð '{< fontname> }{,{< fontseries> }{,< fontshape> }}') ̾Á°¤Î³ÆÉôʬ¤Î»ØÄêË¡¤Ï¡¢LaTeX ¤Î¥Õ¥©¥ó¥È·Ï¤Î´·½¬¤Ë½¾¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£ ¥Õ¥©¥ó¥È̾ (fontname) ¤Ï 3 ¤«¤é 4 ʸ»ú¤ÎŤµ¤Ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹: ºÇ½é¤Îʸ»ú¤Ï¥Õ¥©¥ó¥È¤Î¶¡µë¼Ô¡¢¼¡¤Î 2 ¤Ä¤Îʸ»ú¤Ï¥Õ¥©¥ó¥È̾ÍÑ¡¢¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÆÃÊ̤ʥե©¥ó¥ÈÍÑ¤Ë 1 ʸ»úÄɲäǤ¤Þ¤¹¡£Î㤨¤Ð¡¢'j' ¤Ï¸Å¤¤¥¹¥¿ ¥¤¥ë¤Î¿ô»úÍѤΥե©¥ó¥È¡¢'x' ¤Ï¥¨¥¥¹¥Ñ¡¼¥È¥Õ¥©¥ó¥ÈÍѤǤ¹¡£Â¿¤¯¤Î¥Õ¥©¥ó ¥È̾¤¬°Ê²¼¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹:
http://www.tug.org/fontname/fontname.pdf
Î㤨¤Ð¡¢'cmr' ¤Ï Computer Modern Roman ¤ò¡¢'ptm' ¤Ï Times-Roman, 'phv' ¤Ï Helvetica ¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£font series ¤Ï¡¢¥°¥ê¥Õ¤ÎÂÀ¤µ¤òɽ¤·¡¢Â¿¤¯ ¤Î¾ì¹ç¤Ï¡¢'m' ¤¬É¸½à ("medium")¡¢'bx' ¤« 'b' ¤¬ÂÀ»ú (bold) ¤Î¥Õ¥©¥ó¥È ¤ò°ÕÌ£¤·¤Þ¤¹¡£font shape ¤Ï¡¢°ìÈÌŪ¤Ë¤Ï 'n' ¤¬Î©ÂÎ (upright)¡¢'it' ¤¬¥¤ ¥¿¥ê¥Ã¥¯ (italic)¡¢'sl' ¤¬¼ÐÂÎ (slanted)¡¢'sc' ¤¬¥¹¥â¡¼¥ë¥¥ã¥Ô¥¿¥ë (small caps) ¤ò°ÕÌ£¤·¤Þ¤¹¡£°Û¤Ê¤ë series ¤ä shapes ¤òÄ󶡤¹¤ë¥Õ¥©¥ó¥È¤â ¤¢¤ê¤Þ¤¹¡£
Îã:
Times-Roman ¤Î¥Ü¡¼¥ë¥ÉÂÎ (¼þ¤ê¤Îʸ»úÎó¤ÈƱ¤¸·Á¾õ) ¤ò»È¤¦¤Ë¤Ï:
set terminal cairolatex font 'ptm,bx'
set terminal cairolatex font 'phv,bx,it'
set terminal cairolatex font ',,sl'
set terminal cairolatex font ',,sc'
¤³¤ÎÊýË¡¤Ç¤Ï¡¢¥Æ¥¥¹¥È¥Õ¥©¥ó¥È¤À¤±¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£¿ô¼°¥Õ¥©¥ó¥È¤âÊѹ¹¤· ¤¿¤¤¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë "gnuplot.cfg" ¤«¡¢¤Þ¤¿¤Ï°Ê²¼¤ÇÀâÌÀ¤¹¤ë¥ª¥×¥·¥ç¥óheader ¤ò»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
standalone ¥â¡¼¥É¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï¥³¥Þ¥ó¥É set terminal ¤Ç»ØÄê ¤·¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò¼è¤ê¤Þ¤¹¡£»ØÄꤷ¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»È¤¦¤¿¤á¤Ë¤Ï¥Õ¥¡ ¥¤¥ë "size< size> .clo" ¤¬ LaTeX ¤Î¸¡º÷¥Ñ¥¹¤Ë¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤Ç¤Ï 10pt, 11pt, 12pt ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£¥Ñ¥Ã¥±¡¼¥¸ "extsizes" ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢8pt, 9pt, 14pt, 17pt, 20pt ¤âÄɲ䵤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó header ¤Ï°ì¤Ä¤Îʸ»úÎó¤ò°ú¿ô¤È¤·¤Æ¼è¤ê¡¢¤½¤Îʸ»úÎó¤òÀ¸À®¤¹ ¤ë LaTeX ¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£standalone ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤ì¤Ï¥×¥ê¥¢ ¥ó¥Ö¥ë¤Î \ begin{document} ¤ÎľÁ°¤Ë½ñ¤¤Þ¤¹¤¬¡¢input ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤ì ¤Ï¥°¥é¥Õ¤Ë´Ø¤¹¤ë¤¹¤Ù¤Æ¤ÎÀßÄê¤ò¶É½ê²½¤¹¤ë¤¿¤á¤Î \ begingroup ¥³¥Þ¥ó¥É¤Î ¤Îľ¸å¤Ë½ñ¤¤Þ¤¹¡£
Îã:
T1 ¥Õ¥©¥ó¥È¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò»È¤¤¡¢¥Æ¥¥¹¥È¥Õ¥©¥ó¥È¤È¿ô¼°¥Õ¥©¥ó¥È¤ò
Times-Roman ¤Ë¡¢sans-serif ¥Õ¥©¥ó¥È¤ò Helvetica ¤ËÊѤ¨¤ë¤Ë¤Ï:
set terminal cairolatex standalone header \ "\\usepackage[T1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}"
set terminal cairolatex input header "\\bfseries"
LaTeX ¤¬¥Õ¥¡¥¤¥ë "gnuplot.cfg" ¤ò¸«¤Ä¤±¤ë¤È¡¢standalone ¥â¡¼¥É¤Ç¤Ï
¤½¤ì¤ò¥×¥ê¥¢¥ó¥Ö¥ë¤Ë¼è¤ê¹þ¤ß¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤µ¤é¤ËÀßÄê¤òÄɲ乤ë¤Î¤Ë»È¤¨
¤Þ¤¹¡£Îã: ʸ½ñ¤Î¥Õ¥©¥ó¥È¤ò¡¢¿ô¼°¥Õ¥©¥ó¥È ("mathptmx.sty" ¤¬½èÍý) ¤â¹ç
¤ï¤»¤Æ Times-Roman, Helvetica, Courier ¤Ë¤¹¤ë¤Ë¤Ï:
\usepackage{mathptmx} \usepackage[scaled=0.92]{helvet} \usepackage{courier}
½ÐÎÏ·Á¼° canvas ¤Ï¡¢HTML5 ¤Î canvas Í×ÁǾå¤ËÉÁ²è¤¹¤ë javascript ¥³¥Þ
¥ó¥É¤Î½¸¹ç¤òÀ¸À®¤·¤Þ¤¹¡£
½ñ¼°:
set terminal canvas {size <xsize>, <ysize>} {background <rgb_color>} {font {<fontname>}{,<fontsize>}} | {fsize <fontsize>} {{no}enhanced} {linewidth <lw>} {rounded | butt} {solid | dashed {dashlength <dl>}} {standalone {mousing} | name '<funcname>'} {jsdir 'URL/for/javascripts'} {title '<some string>'}
< xsize> ¤È < ysize> ¤ÏÉÁ²èÎΰè¤Î¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î¥µ¥¤¥º¤òÀßÄꤷ¤Þ¤¹¡£ standalone ¥â¡¼¥É¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢600x400 ¥Ô¥¯¥»¥ë¤Ç¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï 10 ¤Ç¤¹¡£
Ãí: ¥Õ¥¡¥¤¥ë canvastext.js ¤ÇÄ󶡤·¤Æ¤¤¤ë Hershey simplex Roman ¥Õ¥©¥ó ¥È¤Î¥¢¥¹¥¡¼Éôʬ¤Î¥Õ¥©¥ó¥È°ì¤Ä¤À¤±¤¬ÍøÍѤǤ¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Õ¥¡¥¤¥ë canvasmath.js ¤ÇÃÖ¤´¹¤¨¤ë¤³¤È¤â¤Ç¤¡¢¤½¤³¤Ë¤Ï UTF-8 ¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿ Hershey simplex Greek ¤È math symbols ¤â´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£Â¾¤Î½ÐÎÏ·Á¼°¤Ë ¹ç¤ï¤»¤Æ¡¢font "name,size" ¤Î·Á¼°¤â»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£º£¤Î ¤È¤³¤í name ¤Î¥Õ¥©¥ó¥È̾Éôʬ¤Ï̵»ë¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤Î¤¦¤Á¤Ë¥Ö¥é¥¦¥¶¤¬Ì¾ Á°ÉÕ¤¥Õ¥©¥ó¥È¤ò¥µ¥Ý¡¼¥È¤·¤À¤¹¤Ç¤·¤ç¤¦¡£
¥Ç¥Õ¥©¥ë¥È¤Î standalone ¥â¡¼¥É¤Ï¡¢HTML 5 ¤Î canvas Í×ÁǤò»ÈÍѤ·¤Æ¥° ¥é¥Õ¤òÉÁ²è¤¹¤ë¤è¤¦¤Ê javascript ¥³¡¼¥É¤ò´Þ¤à HTML ¥Ú¡¼¥¸¤òÀ¸À®¤·¤Þ¤¹¡£ ¤½¤Î HTML ¥Ú¡¼¥¸¤Ï¡¢2 ¤Ä¤ÎɬÍ×¤Ê javascript ¥Õ¥¡¥¤¥ë 'canvastext.js'¡¢ 'gnuplot_common.js' ¤Ë¥ê¥ó¥¯¤·¤Þ¤¹¡£ÅÀÀþ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤Ë¤Ï¤µ¤é¤ËÄÉ ²Ã¥Õ¥¡¥¤¥ë 'gnuplot_dashedlines.js' ¤¬É¬ÍפǤ¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤é¤Ï ¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯¤Ç¡¢Unix ¸ß´¹¤Î¥·¥¹¥Æ¥à¤Ç¤ÏÄ̾ï¤Ï¤½¤ì¤é¥Ç¥£ ¥ì¥¯¥È¥ê /usr/local/share/gnuplot/< version> /js ¤Ë¤¢¤ê¤Þ¤¹¡£Â¾¤Î´Ä¶¤Ë ¤Ä¤¤¤Æ¤Ï¡¢¥¤¥ó¥¹¥È¡¼¥ë¤Ë´Ø¤¹¤ëÃí°Õ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÀßÄê¤Ï¡¢¥ª¥× ¥·¥ç¥ó jsdir ¤ËÊÌ¤Î¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¡¢¤¢¤ë¤¤¤Ï°ìÈÌŪ¤Ê URL ¤ò»ØÄê ¤¹¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£¥°¥é¥Õ¤ò¥ê¥â¡¼¥È¥¯¥é¥¤¥¢¥ó¥È¤Î¥Þ¥·¥ó¤Ç¸«¤ì¤ë¤è ¤¦¤Ë¤¹¤ë¾ì¹ç¤Ï¡¢Ä̾ï¤Ï¸å¼Ô¤ÎÀßÄ꤬ŬÀڤǤ·¤ç¤¦¡£
canvas ½ÐÎÏ·Á¼°¤ÇÀ¸À®¤µ¤ì¤ëÉÁ²è¤Ï¤¹¤Ù¤Æ¥Þ¥¦¥¹Áàºî²Äǽ¤Ç¤¹¡£¥¡¼¥ï¡¼¥É mousing ¤òÄɲ乤ë¤È¡¢standalone ¥â¡¼¥É¤Î¥°¥é¥Õ¤Î²¼¤Ë¥Þ¥¦¥¹¥È¥é¥Ã ¥¥ó¥°¥Ü¥Ã¥¯¥¹¤ò¤Ä¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢canvastext.js ¤¬ÃÖ¤«¤ì¤Æ¤¤¤ë¤Î¤ÈƱ ¤¸¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¡¢¤Þ¤¿¤Ï URL Æâ¤Î¡¢'gnuplot_mouse.js' ¤È¤¤¤¦ javascript ¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯¤È 'gnuplot_mouse.css' ¤È¤¤¤¦¥Þ¥¦¥¹¥Ü¥Ã¥¯ ¥¹¤Ë´Ø¤¹¤ë¥¹¥¿¥¤¥ë¥·¡¼¥È¤âÄɲä·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó name ¤Ï¡¢javascript ¤Î¤ß¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤ò°ì¤ÄÀ¸À®¤·¤Þ¤¹¡£
¤½¤ì¤¬´Þ¤à javascript ´Ø¿ô¤È¡¢¤½¤ì¤¬ÉÁ²è¤¹¤ë canvas Í×ÁǤΠid ¤ÎξÊý¤Ï¡¢
°Ê²¼¤Îʸ»úÎó¥Ñ¥é¥á¡¼¥¿¤«¤é¼è¤é¤ì¤Þ¤¹¡£Î㤨¤Ð°Ê²¼¤Î¥³¥Þ¥ó¥É
set term canvas name 'fishplot' set output 'fishplot.js'
<html> <head> <script src="canvastext.js"></script> <script src="gnuplot_common.js"></script> </head> <body onload="fishplot();"> <script src="fishplot.js"></script> <canvas id="fishplot" width=600 height=400> <div id="err_msg">No support for HTML 5 canvas element</div> </canvas> </body> </html>
¤³¤Î¥¥ã¥ó¥Ð¥¹¾å¤ËÉÁ¤«¤ì¤ë¤½¤ì¤¾¤ì¤Î¥°¥é¥Õ¤Î̾Á°¤Ï¡¢fishplot_plot_1, fishplot_plot_2 Åù¤È¤Ê¤ê¤Þ¤¹¡£³°Éô¤Î javascript ¥ë¡¼¥Á¥ó¤Ç¤½¤ì¤é¤ò»²¾È ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£Îã: gnuplot.toggle_visibility("fishplot_plot_2")
½ñ¼°:
set terminal cgm {color | monochrome} {solid | dashed} {{no}rotate} {<mode>} {width <plot_width>} {linewidth <line_width>} {font "<fontname>,<fontsize>"} {background <rgb_color>} [deprecated] {<color0> <color1> <color2> ...}
solid ¤ÏÁ´¤Æ¤Î¶ÊÀþ¤ò¼ÂÀþ¤ÇÉÁ¤¡¢¤É¤ó¤ÊÅÀÀþ¥Ñ¥¿¡¼¥ó¤âÅɤê¤Ä¤Ö¤·¤Þ¤¹; < mode> ¤Ï landscape, portrait, default ¤Î¤¤¤º¤ì¤«; < plot_width> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥°¥é¥Õ¤Î²¾Äꤵ¤ì¤Æ¤¤¤ëÉý; < line_width> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤ÎÀþÉý (¥Ç¥Õ¥©¥ë¥È¤Ï 1); < fontname> ¤Ï¥Õ¥©¥ó¥È¤Î̾Á° (°Ê²¼¤Î¥Õ¥©¥ó¥È°ìÍ÷»²¾È); ¤½¤·¤Æ < fontsize> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º (¥Ç¥Õ¥©¥ë¥È¤Ï 12) ¤Ç¤¹¡£
ºÇ½é¤Î 6 ¤Ä¤Î¥ª¥×¥·¥ç¥ó¤Ï¤É¤Î½çÈ֤ǻØÄꤷ¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£default ¤ò ÁªÂò¤¹¤ë¤È¡¢Á´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ò¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤˤ·¤Þ¤¹¡£
Àþ¤Î¿§¤ò set term ¥³¥Þ¥ó¥É¤ÇÀßÄꤹ¤ë»ÅÁȤߤϡ¢º£¤ÏÈó¿ä¾©¤Ç¤¹¡£Âå¤ï¤ê ¤Ë¡¢ÇØ·Ê¿§¤ÏʬΥ¤µ¤ì¤¿¥¡¼¥ï¡¼¥É background ¤Ç¡¢Àþ¤Î¿§¤Ï set linetype ¤ÇÀßÄꤹ¤Ù¤¤Ç¤·¤ç¤¦¡£¤³¤ÎÈó¿ä¾©¤Î»ÅÁȤߤǤϿ§¤Ï 'xrrggbb' ¤Î·Á¼°¤Ç¼õ¤± ¤Ä¤±¤Þ¤¹¤¬¡¢x ¤Ïʸ»ú 'x' ¤½¤Î¤â¤Î¡¢'rrggbb' ¤Ï 16 ¿Ê¿ô¤Ç¤ÎÀÖ¡¢ÎС¢ÀĤΠÀ®Ê¬¤Ç¤¹¡£ºÇ½é¤Î¿§¤òÇØ·Ê¿§¤È¤·¤Æ»È¤¤¡¢¤½¤Î¸å¤Ë³¤¯¿§»ØÄê¤ò½ç¼¡Àþ¤Î¿§¤È ¤È¤·¤Æ³ä¤êÅö¤Æ¤Æ¤¤¤Þ¤·¤¿¡£
Îã:
set terminal cgm landscape color rotate dashed width 432 \ linewidth 1 'Helvetica Bold' 12 # ¥Ç¥Õ¥©¥ë¥È set terminal cgm linewidth 2 14 # ¤ä¤ä¹¤¤Àþ¤È¤ä¤äÂ礤¤¥Õ¥©¥ó¥È set terminal cgm portrait "Times Italic" 12 set terminal cgm color solid # ÌÌÅݤÊÅÀÀþ¤Ê¤É¾Ã¤¨¤Æ¤·¤Þ¤¨ !
CGM fonts | ||
Helvetica | Hershey/Cartographic_Roman | |
Helvetica Bold | Hershey/Cartographic_Greek | |
Helvetica Oblique | Hershey/Simplex_Roman | |
Helvetica Bold Oblique | Hershey/Simplex_Greek | |
Times Roman | Hershey/Simplex_Script | |
Times Bold | Hershey/Complex_Roman | |
Times Italic | Hershey/Complex_Greek | |
Times Bold Italic | Hershey/Complex_Italic | |
Courier | Hershey/Complex_Cyrillic | |
Courier Bold | Hershey/Duplex_Roman | |
Courier Oblique | Hershey/Triplex_Roman | |
Courier Bold Oblique | Hershey/Triplex_Italic | |
Symbol | Hershey/Gothic_German | |
ZapfDingbats | Hershey/Gothic_English | |
Script | Hershey/Gothic_Italian | |
15 | Hershey/Symbol_Set_1 | |
Hershey/Symbol_Set_2 | ||
Hershey/Symbol_Math |
C:\Program Files\Microsoft Office\Office\Cgmimp32.hlp
C:\Program Files\Common Files\Microsoft Shared\Grphflt\Cgmimp32.cfg
set term ¥³¥Þ¥ó¥É¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥ê¥¹¥È¤Ë¤Ê¤¤¥Õ¥©¥ó¥È̾¤ò»ØÄê ¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤½¤Î¾ì¹ç¡¢¤½¤Î»ØÄꤷ¤¿¥Õ¥©¥ó¥È¤¬ºÇ½é¤Ë¸½¤ï¤ì¤ë¿· ¤·¤¤¥Õ¥©¥ó¥È¥ê¥¹¥È¤¬ºî¤é¤ì¤Þ¤¹¡£¤½¤Î¥Õ¥©¥ó¥È̾¤Ë´Ø¤·¤Æ¡¢¥¹¥Ú¥ë¡¢Ã±¸ì ¤ÎÀèƬ¤ÎÂçʸ»ú²½¤ä¤É¤³¤Ë¥¹¥Ú¡¼¥¹¤¬Æþ¤ë¤«¤Ê¤É¤¬¡¢ºî¤é¤ì¤ë CGM ¥Õ¥¡¥¤¥ë ¤òÆɤॢ¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤È¤Ã¤ÆŬÀڤʤâ¤Î¤Ç¤¢¤ë¤«¤ò¤Á¤ã¤ó¤È³Îǧ¤¹¤ëɬÍ× ¤¬¤¢¤ê¤Þ¤¹¡£(gnuplot ¤ÈǤ°Õ¤Î MIL-D-28003A ½àµò¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¡¢¥Õ ¥©¥ó¥È̾¤ÎÂçʸ»ú¾®Ê¸»ú¤Î°ã¤¤¤Ï̵»ë¤·¤Þ¤¹¡£) ¿·¤·¤¤¥Õ¥©¥ó¥È¤ò¤¤¤¯¤Ä¤âÄÉ ²Ã¤·¤¿¤¤¾ì¹ç¤Ï¡¢set term ¥³¥Þ¥ó¥É¤ò·«¤êÊÖ¤·»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set terminal cgm 'Old English' set terminal cgm 'Tengwar' set terminal cgm 'Arabic' set output 'myfile.cgm' plot ... set output
set label ¥³¥Þ¥ó¥É¤Ç¤Ï¿·¤·¤¤¥Õ¥©¥ó¥È¤òƳÆþ¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
Îã:
set terminal cgm width 432 # ¥Ç¥Õ¥©¥ë¥È set terminal cgm width 6*72 # ¾å¤ÈƱ¤¸ÃÍ set terminal cgm width 10/2.54*72 # 10 cm ¤ÎÉý
ConTeXt + gnuplot ¥â¥¸¥å¡¼¥ë¤ÎÊ¿¶ÑŪ¤Ê¥æ¡¼¥¶¤Ë¤Ï¡¢¤³¤Î¥Ú¡¼¥¸¤òÆɤà¤è¤ê ¤â¡¢Using ConTeXt ¤ò»²¾È¤¹¤ë¤«¡¢ConTeXt ¤Î gnuplot ¥â¥¸¥å¡¼¥ë¤Î¥Þ¥Ë¥å ¥¢¥ë¤ò»²¾È¤¹¤ë¤³¤È¤ò¿ä¾©¤·¤Þ¤¹¡£
½ÐÎÏ·Á¼° context ¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:
½ñ¼°:
set term context {default} {defaultsize | size <scale> | size <xsize>{in|cm}, <ysize>{in|cm}} {input | standalone} {timestamp | notimestamp} {noheader | header "<header>"} {color | colour | monochrome} {rounded | mitered | beveled} {round | butt | squared} {dashed | solid} {dashlength | dl <dl>} {linewidth | lw <lw>} {fontscale <fontscale>} {mppoints | texpoints} {inlineimages | externalimages} {defaultfont | font "{<fontname>}{,<fontsize>}"}
standalone ¤Ç¤Ê¤¤¥°¥é¥Õ (input) ¤Ç¤Ï¡¢¥ª¥×¥·¥ç¥ó¤Ï¥°¥é¥Õ¥µ¥¤¥º¤òÁªÂò ¤¹¤ë size¡¢¤¹¤Ù¤Æ¤Î¥é¥Ù¥ë¤òÇÜΨ < fontscale> ¤Ç¿½Ì¤¹¤ë fontscasle¡¢ ¤ª¤è¤Ó font ¥µ¥¤¥º¤Î¤ß°ÕÌ£¤ò»ý¤Á¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤Ï·Ù¹ð¤Ê¤¯Ìµ»ë¤µ¤ì¤ë¤Î ¤ß¤Ç¡¢¤½¤ì¤é¤Ï¤½¤Î¥°¥é¥Õ¥£¥Ã¥¯¤òÆɤ߹þ¤à .tex ¥Õ¥¡¥¤¥ë¤ÎÊý¤ÇÀßÄꤷ¤Æ¤¯ ¤À¤µ¤¤¡£¸µ¤Îʸ½ñ¤Î¥Õ¥©¥ó¥È¤¬ 12pt ¤Ç¤Ï¤Ê¤¤¾ì¹ç¤Ï¡¢Å¬Àڤʥե©¥ó¥È¥µ¥¤¥º ¤ò»ØÄꤹ¤ë¤³¤È¤ò¶¯¤¯¿ä¾©¤·¤Þ¤¹¡£¤½¤ì¤Ë¤è¤ê¡¢gnuplot ¤¬¥é¥Ù¥ëÍѤˤɤ줯 ¤é¤¤¤ÎÂ礤µ¤Î¥¹¥Ú¡¼¥¹¤ò³ÎÊݤ¹¤ì¤Ð¤¤¤¤¤«¤òÃΤ뤳¤È¤¬¤Ç¤¤Þ¤º¡£
default ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ˥ꥻ¥Ã¥È¤·¤Þ¤¹¡£
defaultsize ¤Ï¡¢ÉÁ²è¥µ¥¤¥º¤ò 5in x 3in ¤ËÀßÄꤷ¤Þ¤¹¡£ size < scale> ¤Ï¡¢ÉÁ²è¥µ¥¤¥º¤ò¥Ç¥Õ¥©¥ë¥È¥µ¥¤¥º¤Î < scale> Çܤˤ·¤Þ¤¹¤¬ °ú¿ô¤ò ',' ¶èÀÚ¤ê¤Ç 2 ¤ÄÍ¿¤¨¤¿¾ì¹ç¤Ï¡¢ºÇ½é¤Î¤â¤Î¤Ï²£¤Î¥µ¥¤¥º¤ò¡¢2 ¤ÄÌÜ ¤Î¤â¤Î¤Ï¿âľ¥µ¥¤¥º¤òÀßÄꤷ¤Þ¤¹¡£¤½¤ì¤é¤Î¥µ¥¤¥º¤Ë¤Ï¡¢Ã±°Ì¤È¤·¤Æ¥¤¥ó¥Á ('in'), ¥»¥ó¥Á ('cm') ¤¬»È¤¨¤Þ¤¹¤¬¡¢¾Êά¤·¤¿¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥ÈÃͤËÂФ¹¤ë Èæ¤Ç¤¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£
input (¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢Â¾¤Î ConTeXt ʸ½ñ¤«¤é¼è¤ê¹þ¤á¤ë¥°¥é¥Õ¤òÀ¸À®¤· ¤Þ¤¹¡£ standalone ¤Ï¡¢¤½¤ì¤Ë¿ô¹ÔÄɲä·¡¢¤½¤ì¼«¿È¤¬¤½¤Î¤Þ¤Þ¥³¥ó¥Ñ¥¤¥ë¤Ç¤¤ë¤è ¤¦¤Ë¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢header ¥ª¥×¥·¥ç¥ó¤¬É¬Íפˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£
standalone ¤Î¥°¥é¥Õ¤ËÀßÄê/ÄêµÁ/¥Þ¥¯¥í¤òÄɲä·¤¿¤¤¾ì¹ç¤Ï header ¤ò»ÈÍÑ ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ï noheader ¤Ç¤¹¡£
notimestamp ¤Ï¡¢¥³¥á¥ó¥ÈÉôʬ¤ÎÆü»þ¤Î½ÐÎϤòÍÞÀ©¤·¤Þ¤¹ (¥Ð¡¼¥¸¥ç¥ó´ÉÍý ¥·¥¹¥Æ¥à¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢ÆüÉÕ¤À¤±°ã¤¦¤â¤Î¤ò¿·¤·¤¤¥Ð¡¼¥¸¥ç¥ó¤È¤·¤ÆÅÐÏ¿ ¤·¤¿¤¯¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦)¡£
color (¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢¥«¥é¡¼ÉÁ²è¤òÀ¸À®¤·¤Þ¤¹¤¬¡¢monochrome ¤Ï°ìÀÚ special ¤òÆþ¤ì¤Þ¤»¤ó¡£Çò¹õ¥×¥ê¥ó¥¿ÍѤˤϡ¢¤½¤ÎµóÆ°¤ò¤³¤ó¤ÊÉ÷¤ËÊѤ¨¤¿Êý ¤¬¤â¤Ã¤ÈÎɤ¯¤Ê¤ë¤È¤¤¤¦¥¢¥¤¥Ç¥¢¤ò»ý¤Ã¤Æ¤¤¤ë¿Í¤Ï¡¢À§ÈóÄó°Æ¤·¤Æ¤¯¤À¤µ¤¤¡£
rounded (¥Ç¥Õ¥©¥ë¥È) ¤È mitered, beveled ¤Ï¡¢Àþʬ¤ÎÀܹçÉô¤Î·Á¾õ¤ò À©¸æ¤·¡¢round (default) ¤È butt, squared ¤Ï¡¢Àþʬ¤Îü¤Î·Á¾õ¤òÀ©¸æ ¤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢PostScript ¤« PDF ¤Î¥ê¥Õ¥¡¥ì¥ó¥¹¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯ ¤À¤µ¤¤¡£·ã¤·¤¯ÊѲ½¤¹¤ë´Ø¿ô¤ÈÂÀ¤¤ÀþÍѤˤϡ¢Àþʬ¤ÎÀܹçÉô¤Ç¤ÎÀí¤Ã¤¿³Ñ¤òÈò ¤±¤ë¤è¤¦¤Ërounded ¤È round ¤ò»È¤¦¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£ (¤³¤ì¤Ë´Ø¤¹¤ë°ìÈÌŪ¤Ê»ÅÁȤߤϡ¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ò³ÆÉÁ²è¥¹¥¿¥¤¥ëËè¤ËÊÌ¡¹¤Ë »ØÄê¤Ç¤¤ë¤è¤¦ gnuplot ¤¬¥µ¥Ý¡¼¥È¤¹¤Ù¤¤À¤È»×¤¤¤Þ¤¹¡£)
dashed (¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢°Û¤Ê¤ëÀþ¼ï¤Ë°Û¤Ê¤ëÅÀÀþ¥Ñ¥¿¡¼¥ó¤ò»È¤¤¡¢solid ¤Ï¡¢¤¹¤Ù¤Æ¤ÎÉÁ²è¤Ë¼ÂÀþ¤ò»ÈÍѤ·¤Þ¤¹¡£
dashlength (¤Þ¤¿¤Ï dl) ¤Ï¡¢ÅÀÀþ¤ÎÀþʬ¤ÎŤµ¤ò < dl> Çܤ·¤Þ¤¹¡£ linewidth (¤Þ¤¿¤Ï lw) ¤Ï¡¢¤¹¤Ù¤Æ¤ÎÀþÉý¤ò < lw> Çܤ·¤Þ¤¹¡£ (lw 1 ¤Ï 0.5bp ¤ò°ÕÌ£¤·¡¢¤³¤ì¤Ï Metapost ¤ÎÉÁ²è¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀþÉý¤Ç¤¹) fontscale ¤Ï¡¢¥Æ¥¥¹¥È¥é¥Ù¥ë¤ò¥Ç¥Õ¥©¥ë¥È¤Îʸ½ñ¥Õ¥©¥ó¥È¤Î < fontscale> Çܤ˳ÈÂ礷¤Þ¤¹¡£
mppoints ¤Ï¡¢Metapost ¤ÇÉÁ²è¤µ¤ì¤¿ÄêµÁºÑ¤ß¤ÎÅÀ¤Î·Á¾õ¤ò»ÈÍѤ·¤Þ¤¹¡£
texpoints ¤Ï¡¢´Êñ¤ËÀßÄê¤Ç¤¤ëµ¹æ¥»¥Ã¥È¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ ConTeXt ¤ÇÄêµÁ¤Ç¤¤Þ¤¹:
\defineconversion[my own points][+,{\ss x},\mathematics{\circ}] \setupGNUPLOTterminal[context][points=tex,pointset=my own points]
inlineimages ¤Ï¡¢¥Ð¥¤¥Ê¥ê²èÁü¤òʸ»úÎó¤È¤·¤Æ½ñ¤½Ð¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï ConTeXt MKIV ¤Î¤ß¤Çµ¡Ç½¤·¤Þ¤¹¡£ externalimages ¤Ï¡¢PNG ¥Õ¥¡¥¤¥ë¤ò³°Éô½ÐÎϤ·¡¢¤³¤ì¤Ï ConTeXt MKII ¤Çµ¡ ǽ¤·¤Þ¤¹¡£¤³¤ì¤¬Æ°ºî¤¹¤ë¤¿¤á¤Ë¤Ï¡¢gnuplot ¤¬ PNG ²èÁü½ÐÎϤò¥µ¥Ý¡¼¥È¤·¤Æ ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
standalone ¤Î¥°¥é¥Õ¤Ç¤Ï¡¢font ¤Ç¥Õ¥©¥ó¥È̾¤È¥µ¥¤¥º¤òÀßÄê¤Ç¤¤Þ¤¹¡£
standalone ¤Ç¤Ê¤¤¥â¡¼¥É (input) ¤Ç¤Ï¡¢¥Æ¥¥¹¥È¥é¥Ù¥ë¤Ë½½Ê¬¤Ê¥¹¥Ú¡¼¥¹
¤ò³ä¤êÅö¤Æ¤ë¤¿¤á¤Ë¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î¤ß¤¬°ÕÌ£¤ò»ý¤Á¤Þ¤¹
¥³¥Þ¥ó¥É
set term context font "myfont,ss,10"
\setupbodyfont[myfont,ss,10pt]
set label ... font "myfont,12"
ŬÅö¤Ê¥¿¥¤¥×¥¹¥¯¥ê¥×¥È¥Õ¥©¥ó¥È (¤È¥Ø¥Ã¥À¡¼) ¤òÍÑ°Õ¤¹¤ë¤Î¤Ï¼«Ê¬¤Ç¹Ô¤Ã¤Æ
¤µ¤â¤Ê¤¯¤Ð¥Õ¥©¥ó¥È¤ÎÀÚ¤êÂؤ¨¤Ï¸ú²Ì¤ò»ý¤Á¤Þ¤»¤ó¡£ConTeXt MKII (pdfTeX)
¤Îɸ½à¥Õ¥©¥ó¥È¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ»È¤¨¤Þ¤¹:
set terminal context standalone header '\usetypescript[iwona][ec]' \ font "iwona,ss,11"
Îã:
set terminal context size 10cm, 5cm # 10cm, 5cm set terminal context size 4in, 3in # 4in, 3in
set terminal context standalone header '\enableregime[utf-8]'
http://ctan.org/pkg/context-gnuplot
¤È¡¢ºÇ¿·¤Î ConTeXt ¤¬É¬ÍפǤ¹¡£ ¤½¤³¤«¤é gnuplot ¤ò¸Æ¤Ó½Ð¤¹¤Ë¤Ï¡¢write18 ¤ò²Äǽ¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤Û¤È¤ó¤É¤Î TeX ÇÛÉÕʪ¤Ç¤Ï¡¢¤³¤ì¤Ï texmf.cnf ¤Ç shell_escape=t ¤È¤¹¤ë¤³ ¤È¤ÇÀßÄê¤Ç¤¤Þ¤¹¡£
¤³¤Î½ÐÎÏ·Á¼°¤È¤è¤ê¾Ü¤·¤¤¥Ø¥ë¥×¤ÈÎã¤Ë´Ø¤·¤Æ¤Ï°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤:
http://wiki.contextgarden.net/Gnuplot
\usemodule[gnuplot] \starttext \title{How to draw nice plots with {\sc gnuplot}?} \startGNUPLOTscript[sin] set format y "%.1f" plot sin(x) t '$\sin(x)$' \stopGNUPLOTscript \useGNUPLOTgraphic[sin] \stoptext
½ñ¼°:
set terminal corel { default | {monochrome | color {"<font>" {<fontsize> {<xsize> <ysize> {<linewidth> }}}}}
¤³¤³¤Ç¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º (fontsize) ¤ÈÀþÉý (linewidth) ¤Ï¥Ý¥¤¥ó¥Èñ °Ì¡¢²£Éý (xsize) ¤È½ÄÉý (ysize) ¤Ï¥¤¥ó¥Áñ°Ì¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï ¤½¤ì¤¾¤ì¡¢monochrome, "SwitzerlandLight", 22, 8.2, 10, 1.2 ¤Ç¤¹¡£
½ñ¼°:
set terminal dumb {size <xchars>,<ychars>} {[no]feed} {[no]enhanced}
< xchars> , < ychars> ¤Ï¥Æ¥¥¹¥ÈÎΰè¤Î¥µ¥¤¥º¤òÀßÄꤷ¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 79 x 24 ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ºÇ¸å¤Î²þ¹Ô¤Ï¡¢feed ¥ª¥×¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ß ½ÐÎϤµ¤ì¤Þ¤¹¡£
Îã:
set term dumb size 60,15 plot [-5:6.5] sin(x) with impulse
1 +-------------------------------------------------+ 0.8 +|||++ ++||||++ sin(x) +----+ | 0.6 +|||||+ ++|||||||+ | 0.4 +||||||+ ++|||||||||+ | 0.2 +|||||||+ ++|||||||||||+ +| 0 ++++++++++++++++++++++++++++++++++++++++++++++++++| -0.2 + +|||||||||||+ +|||||||||||+ | -0.4 + +|||||||||+ +|||||||||+ | -0.6 + +|||||||+ +|||||||+ | -0.8 + + ++||||+ + + ++||||+ + | -1 +---+--------+--------+-------+--------+--------+-+ -4 -2 0 2 4 6
¤³¤Î¥É¥é¥¤¥Ð¤Ë¤è¤ë½ÐÎϤϡ¢LaTeX ÍѤΠ"eepic.sty" ¥Þ¥¯¥í¥Ñ¥Ã¥±¡¼¥¸¤È¶¦ ¤Ë»È¤ï¤ì¤ë¤³¤È¤ò²¾Äꤷ¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤ò»È¤¦¤Ë¤Ï¡¢"eepic.sty" ¤È "epic.sty"¡¢¤ª¤è¤Ó "tpic" \ special Ì¿Îá·²¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥×¥ê¥ó¥¿¥É¥é¥¤ ¥Ð¤¬É¬ÍפǤ¹¡£¤â¤·¡¢¤¢¤Ê¤¿¤Î»È¤¦¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤¬¤½¤ì¤é¤Î "tpic" \ special Ì¿Îá¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤â¡¢"eepicemu.sty" ¤ò»È¤¦¤³¤È¤Ç ¤½¤ì¤é¤Î¤¦¤Á¤Î¤¤¤¯¤Ä¤«¤ò»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ dvips ¤È dvipdfm ¤Ï "tpic" \ special ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
½ñ¼°:
set terminal eepic {default} {color|dashed} {rotate} {size XX,YY} {small|tiny|<fontsize>}
¥ª¥×¥·¥ç¥ó: ¥ª¥×¥·¥ç¥ó¤ÏǤ°Õ¤Î½çÈÖ¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ 'color' ¤Ï gnuplot ¤Ë \ color{...} ¥³¥Þ¥ó¥É¤òÀ¸À®¤µ¤»¡¢¤½¤ì¤Ë¤è¤ê¥°¥é¥Õ ¤ò¥«¥é¡¼¤Ë¤·¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë¾ì¹ç¤Ï¡¢latex ʸ½ñ¤Î¥×¥ê¥¢¥ó ¥Ö¥ë¤Ë \ usepackage{color} ¤òÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ 'dashed' ¤ÏÀþ¼ï¤ËÅÀÀþ¤ò»ÈÍѤ¹¤ë¤³¤È¤òµö²Ä¤·¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄê ¤·¤Ê¤¤¤È¡¢¿§¡¹¤ÊÂÀ¤µ¤Î¼ÂÀþ¤Î¤ß¤¬»È¤ï¤ì¤Þ¤¹¡£ 'dashed' ¤È 'color' ¤Ï°ìÊý¤Î¤ß¤¬°ÕÌ£¤ò»ý¤Á¡¢'color' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢ 'dashed' ¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£ 'rotate' ¤ÏËÜÅö¤Ë²óž (90 ÅÙ) ¤µ¤ì¤¿Ê¸»úÎó¤ò»ÈÍѤ¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£»Ø Äꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢1 ʸ»ú 1 ʸ»ú¡¢¾å¤ËÀѤ߾夲¤Æ¤¤¤¯ÊýË¡¤Ç²óž¤µ¤ì¤¿Ê¸»ú Îó¤òºî¤ê¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¾ì¹ç¤Ï¡¢ \ usepackage{graphicx} ¤ò¥×¥ê ¥¢¥ó¥Ö¥ë¤ËÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ 'small' ¤Ï point ¥¹¥¿¥¤¥ë¤Ç¤Î¥°¥é¥ÕÉÁ²è¤Î°õ¤È¤·¤Æ \ scriptsize ¤Îµ¹æ¤ò »ÈÍѤ·¤Þ¤¹ (¿ʬ¤³¤ì¤Ï TeX ¤Ç¤Ï¤À¤á¤Ç¡¢LaTeX2e ¤Ç¤·¤«»È¤¨¤Ê¤¤¤Ç¤·¤ç¤¦)¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ïɸ½à¤Î¿ô¼°¤Î¥µ¥¤¥º¤ò»ÈÍѤ·¤Þ¤¹¡£ 'tiny' ¤Ï¡¢¤½¤ì¤Ë \ scriptscriptstyle ¤Îµ¹æ¤ò»ÈÍѤ·¤Þ¤¹¡£ 'default' ¤ÏÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ˥ꥻ¥Ã¥È¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë ¥È¤Ï¡¢color ¤Ï¤Ê¤·¡¢dashed line ¤Ï¤Ê¤·¡¢µ¿»÷²óž (ÀѤ߾夲) ʸ»úÎó¤Î»È ÍÑ¡¢Â礤ʥµ¥¤¥º¤Îµ¹æ¤Î»ÈÍÑ¡¢¤Ç¤¹¡£ < fontsize> ¤Ï picture ´Ä¶Æâ¤Ç¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»ØÄꤹ¤ë¿ô»ú¤Ç¤¹¡£Ã±°Ì ¤Ï pt (¥Ý¥¤¥ó¥È) ¤Ç¡¢10 pt ¤Ï¤Û¤Ü 3.5 mm ¤Ç¤¹¡£¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»ØÄꤷ ¤Ê¤¤¾ì¹ç¡¢Á´¤Æ¤Î¥°¥é¥ÕÆâ¤Îʸ»ú¤Ï \ footnotesize ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
Ãí°Õ: ʸ»ú # (¤ª¤è¤Ó¤½¤Î¾ (La)TeX ¤ÇÆÃÊ̤ʰÕÌ£¤ò»ý¤Ä¤½¤Î¾¤Îʸ»ú) ¤ò \ \ (¥Ð ¥Ã¥¯¥¹¥é¥Ã¥·¥å 2 ¤Ä) ¤Ç¥¨¥¹¥±¡¼¥×¤¹¤ë¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£ ¥°¥é¥Õ¤Î³Ñ¤¬¶á¤¹¤®¤ë¤ÈÅÀÀþ¤Ï¼ÂÀþ¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£(¤³¤ì¤¬ tpic specials ¤Î°ìÈÌŪ¤ÊÌäÂê¤Ê¤Î¤«¡¢eepic.sty ¤ä dvips/dvipdfm ¤Î¥Ð¥°¤¬¸¶°ø¤Ê¤Î¤«¤Ï»ä ¤Ë¤Ï¤ï¤«¤ê¤Þ¤»¤ó¡£) ¥Ç¥Õ¥©¥ë¥È¤Î eepic ¥°¥é¥Õ¤ÎÂ礤µ¤Ï 5x3 ¥¤¥ó¥Á¤Ç¡¢¤³¤ì¤Ï teminal ¥ª¥×¥· ¥ç¥ó¤Î size ¤ÇÊѹ¹²Äǽ¤Ç¤¹¡£ ¿ô¤¢¤ëÃæ¤Ç¡¢ÅÀ (point) ¤Ï¡¢LaTeX ¤Î¥³¥Þ¥ó¥É " \ Diamond", " \ Box" ¤Ê¤É¤ò »È¤Ã¤ÆÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¸½ºß¤Ï LaTeX2e ¤Î¥³¥¢¤Ë¤Ï¸ºß¤»¤º latexsym ¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Î¥Ñ¥Ã¥±¡¼¥¸´ðËÜÇÛÉۤΰìÉô¤Ç ¤¢¤ê¡¢¤è¤Ã¤Æ¿¤¯¤Î LaTeX ¤Î¥·¥¹¥Æ¥à¤Î°ìÉô¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥Ñ¥Ã¥±¡¼ ¥¸¤ò»È¤¦¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£latexsym ¤ÎÂå¤ï¤ê¤Ë amssymb ¥Ñ¥Ã¥±¡¼ ¥¸¤ò»È¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£ LaTeX ¤Ë´Ø¤¹¤ëÁ´¤Æ¤Î¥É¥é¥¤¥Ð¤Ïʸ»úÎó¤ÎÇÛÃÖ¤ÎÀ©¸æ¤ËÆÃÊ̤ÊÊýË¡¤òÄ󶡤·¤Þ ¤¹: '{' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢'}' ¤ÇÊĤ¸¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Îʸ»úÎóÁ´ÂÎ ¤¬¿åÊ¿Êý¸þ¤Ë¤â¿âľÊý¸þ¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£'[' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Î¾ì ¹ç¤Ï¡¢°ÌÃ֤λØÄê¤ò¤¹¤ëʸ»úÎó (t,b,l,r ¤Î¤¦¤Á 2 ¤Ä¤Þ¤Ç) ¤¬Â³¤¡¢¼¡¤Ë ']{'¡¢Ê¸»úÎóËÜÂΡ¢¤ÇºÇ¸å¤Ë '}' ¤È¤·¤Þ¤¹¤¬¡¢¤³¤Îʸ»úÎó¤Ï LaTeX ¤¬ LR-box ¤È¤·¤ÆÀ°·Á¤·¤Þ¤¹¡£' \ rule{}{}' ¤ò»È¤¨¤Ð¤µ¤é¤ËÎɤ¤°ÌÃÖ¹ç¤ï¤»¤¬²Äǽ¤Ç¤·¤ç ¤¦¡£
Îã:
set term eepic
¤Ï¡¢¥°¥é¥Õ¤ò picture ´Ä¶¤Ë´Þ¤Þ¤ì¤¿ eepic ¥Þ¥¯¥í¤È¤·¤Æ½ÐÎϤ·¤Þ¤¹¡£ ¤½¤Î¥Õ¥¡¥¤¥ë¤ò LaTeX ʸ½ñ¤Ë \input ¤Ç¼è¤ê¹þ¤ó¤Ç¤¯¤À¤µ¤¤¡£
eepic ¥Þ¥¯¥í¤ò \color ¥Þ¥¯¥í¡¢point °õ¤Ï \scripscriptsize ¤ÎÂ礤µ¡¢ ËÜÅö¤Ë²óž¤µ¤ì¤¿Ê¸»ú¤Î»ÈÍÑ¡¢¤ª¤è¤ÓÁ´¤Æ¤Îʸ»ú¤ò 8pt ¤Ë¥»¥Ã¥È¤·¤Æ½ÐÎÏ ¤·¤Þ¤¹¡£
¸«½Ð¤·¤Î°ÌÃÖ¹ç¤ï¤»¤Ë´Ø¤·¤Æ:
gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È (ÂçÄñ¤½¤ì¤Ê¤ê¤Ë¤Ê¤ë¤¬¡¢¤½¤¦¤Ç¤Ê¤¤¤³¤È¤â¤¢¤ë):
set title '\LaTeX\ -- $ \gamma $'
set label '{\LaTeX\ -- $ \gamma $}' at 0,0
set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'
½ñ¼°:
set terminal emf {color | monochrome} {solid | dashed} {enhanced {noproportional}} {rounded | butt} {linewidth <LW>} {dashlength <DL>} {size XX,YY} {background <rgb_color>} {font "<fontname>{,<fontsize>}"} {fontscale <scale>}
monochorome ¥â¡¼¥É¤ÏÀÞ¤ìÀþ¤òÅÀÀþ¤Î¥Ñ¥¿¡¼¥ó¤ò½Û´Ä¤µ¤»¤ÆÂǤÁ½Ð¤·¤Þ¤¹¡£ color ¥â¡¼¥É¤ÏÀÞ¤ìÀþ¤ò¤¤¤¯¤Ä¤«¤Î¿§¤ÇÂǤÁ½Ð¤·¡¢¤¹¤Ù¤Æ¤Î 8 ¤Ä¤Î¥Ç¥Õ¥© ¥ë¥È¿§¤ò»È¤¤¤Ä¤¯¤·¤¿¸å¤Ë¤Î¤ßÅÀÀþ¥Ñ¥¿¡¼¥ó¤òÊѲ½¤µ¤»¤Þ¤¹¡£ solid ¤ÏÁ´¤Æ¤ÎÀþ¤ò¼ÂÀþ¤Ç½ñ¤¡¢ÅÀÀþ¤Î¥Ñ¥¿¡¼¥ó¤ÏÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£ linewidth < factor> ¤ÏÁ´¤Æ¤ÎÀþÉý¤ò¤³¤³¤Ç»ØÄꤹ¤ëÃÍÇܤˤ·¤Þ¤¹¡£ dashlength < factor> ¤Ï¡¢ÂÀ¤¤Àþ¤Ë¤ÏÊØÍø¤Ç¤·¤ç¤¦¡£ < fontname> ¤Ï¥Õ¥©¥ó¥È̾¡¢ < fontsize> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤ÎÂ礤µ¤Ç¤¹¡£
½ÐÎϲèÁü¤Î·Á¼°Åª¤Ê (̾¤Ð¤«¤ê¤Î) ¥µ¥¤¥º¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏŬÅö¤Êñ°Ì¤Ç¤Î 1024x768 ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó size ¤ò»È¤Ã¤ÆÊ̤ʷÁ¼°Åª¤Ê¥µ¥¤¥º ¤ò»ØÄê¤Ç¤¤Þ¤¹¡£
³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤Ï¡¢¥×¥í¥Ý¡¼¥·¥ç¥Ê¥ëʸ»ú´Ö³Ö ¤ò¶á»÷¤·¤è¤¦¤È¤·¤Þ¤¹¡£¥â¥Î¥¹¥Ú¡¼¥¹¥Õ¥©¥ó¥È¤ò»È¤¦¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¤³¤Î¶á»÷ ¤ò¹¥¤Þ¤Ê¤¤¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó noproportional ¤ò»È¤¦¤³¤È¤Ç¤³¤ÎÊäÀµ¤ò¥ª¥Õ ¤Ë¤Ç¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ï¡¢color solid font "Arial,12" size 1024,768 ¤Ç¡¢ default ¤òÁªÂò¤¹¤ë¤ÈÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤¬¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£
Îã:
set terminal emf 'Times Roman Italic, 12' set terminal emf dashed # ¤³¤¦¤·¤Ê¤¤¤ÈÀþʬ¤Ï¤¹¤Ù¤Æ¼ÂÀþ¤Ç¤¹¡£
½ñ¼°:
set terminal emxvga set terminal emxvesa {vesa-mode} set terminal vgal
Í£°ì¤Î¥ª¥×¥·¥ç¥ó¤Ï emxvesa ¤ËÂФ¹¤ë vesa ¤Î¥â¡¼¥É¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï ¤½¤ì¤Ï G640x480x256 ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¾ÜºÙ¤Ï¡¢pdfcairo ½ÐÎÏ·Á¼°¤Î¥Ø¥ë¥×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
½ñ¼°:
set terminal epslatex {default} set terminal epslatex {standalone | input} {oldstyle | newstyle} {level1 | leveldefault} {color | colour | monochrome} {background <rgbcolor> | nobackground} {solid | dashed} {dashlength | dl <DL>} {linewidth | lw <LW>} {rounded | butt} {clip | noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {header <header> | noheader} {blacktext | colortext | colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} {fontscale <scale>}
epslatex ½ÐÎÏ·Á¼°¤Ï¡¢Ê¸»úÎó¤ò PostScript ¥³¡¼¥É¤Ë´Þ¤Þ¤»¤ëÂå¤ï¤ê¤Ë LaTeX ¥Õ¥¡¥¤¥ë¤Ë°Ü¤¹¤³¤È¤ò½ü¤±¤Ð terminal postscript eps ƱÍͤËÉÁ²è¤·¤Þ¤¹¡£ ¤è¤Ã¤Æ¡¢postscript terminal ¤È¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤¬¶¦Ä̤Ǥ¹¡£
version 4.0 ¤«¤é 4.2 ¤Î´Ö¤Ë¡¢postscript ½ÐÎÏ·Á¼°¤È¤Î¤è¤êÎɤ¤¸ß´¹À¤Î ¤¿¤á¤Ë epslatex ½ÐÎϤÏÊѹ¹¤µ¤ì¤Þ¤·¤¿¡£ÉÁ²è¥µ¥¤¥º¤Ï 5 x 3 ¥¤¥ó¥Á¤«¤é 5 x 3.5 ¥¤¥ó¥Á¤Ø¤ÈÊѹ¹¤µ¤ì¡¢Ê¸»úÉý¤Ï½¾Íè¤Ï¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î 50% ¤È¸« ¤Ê¤·¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï 60% ¤Èɾ²Á¤·¤Æ¤¤¤Þ¤¹¡£¤è¤ê¿¤¯¤Î Postscript ¤ÎÀþ¼ï¤äµ¹æ¤â»È¤ï¤ì¤Þ¤¹¡£°ÊÁ°¤Î¾õÂ֤ˤۤÜÅù¤·¤¤¾õÂ֤ˤ¹¤ë¤Ë¤Ï¥ª¥×¥·¥ç¥ó oldstyle ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£(¼ÂºÝ¤Ë¤Ï¤´¤¯¤ï¤º¤«¤Ê°ã¤¤¤¬»Ä¤ê¤Þ¤¹: µ¹æ¤Î¥µ¥¤¥º¤¬¤ï¤º¤«¤Ë°ã¤¤¡¢ÌÜÀ¹¹ï¤ß (tics) ¤Ï½¾Íè¤ÎȾʬ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹ ¤¬¤½¤ì¤Ï set tics scale ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£¤½¤·¤ÆÌð (arrow) ¤Ë´Ø¤·¤Æ¤Ï postscript ½ÐÎÏ·Á¼°¤Ç»È¤¨¤ëÁ´¤Æ¤Îµ¡Ç½¤¬ÍøÍѤǤ¤Þ¤¹¡£)
°Ê²¼¤Î¤è¤¦¤Ê¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½Ð¤¿¾ì¹ç:
"Can't find PostScript prologue file ... "
¥ª¥×¥·¥ç¥ó color ¤Ï¥«¥é¡¼¤ò͸ú¤Ë¤·¡¢monochrome ¤Ï³ÆÍ×ÁǤò¹õ¤ÈÇò ÉÁ²è¤·¤Þ¤¹¡£¤µ¤é¤Ë¡¢monochrome ¤Ï³¥¿§¤Î palette ¤â»ÈÍѤ·¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ï¡¢ÌÀ¼¨Åª¤Ë colorspec ¤Ç»ØÄꤵ¤ì¤¿ÉôÉʤ理òÊѹ¹¤·¤Þ¤»¤ó¡£
solid ¤ÏÁ´¤Æ¤Î¥°¥é¥Õ¤ÎÅÀÀþ¤Î¥Ñ¥¿¡¼¥ó¤ò¼ÂÀþ¤Ç¾å½ñ¤¤·¤Þ¤¹¡£ dashlength ¤Þ¤¿¤Ï dl ¤ÏÅÀÀþ¤ÎÀþʬ¤ÎŤµ¤ò < DL> (0 ¤è¤êÂ礤¤¼Â¿ô) ¤ËÀßÄꤷ¡¢ linewidth ¤Þ¤¿¤Ï lw ¤ÏÁ´¤Æ¤ÎÀþ¤ÎÉý¤ò < LW> ¤ËÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢À¸À®¤µ¤ì¤ë PostScript ¥³¡¼¥É¤Ï¡¢Æä˥ե£¥ë¥¿¥ê¥ó¥°¤ä filledcurves ¤Î¤è¤¦¤Ê¤Ç¤³¤Ü¤³¤ÊÎΰè¤Î¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·¤Ë¤ª¤¤¤Æ¡¢ PostScript Level 2 ¤È¤·¤Æ¾Ò²ð¤µ¤ì¤Æ¤¤¤ë¸À¸ìµ¡Ç½¤ò»È¤¤¤Þ¤¹¡£PostScript Level 2 ¤Îµ¡Ç½¤Ï¾ò·ïŪ¤ËÊݸ¤ì¤Æ¤¤¤Æ¡¢PostScript Level 1 ¤Î¥¤¥ó¥¿¡¼ ¥×¥ê¥¿¤¬¥¨¥é¡¼¤ò½Ð¤µ¤º¡¢¤à¤·¤í¥á¥Ã¥»¡¼¥¸¤« PostScript Level 1 ¤Ë¤è¤ë ¶á»÷¤Ç¤¢¤ë¤³¤È¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£level1 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³ ¤ì¤é¤Îµ¡Ç½¤ò¶á»÷¤¹¤ë PostScript Level1 ¤ÇÂåÍѤ·¡¢PostScript Level 2 ¥³¡¼¥É¤ò°ìÀÚ»ÈÍѤ·¤Þ¤»¤ó¡£¤³¤ì¤Ï¸Å¤¤¥×¥ê¥ó¥¿¤ä¡¢Adobe Illustrator ¤Î ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Ê¤É¤ÇɬÍפˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£¤³¤Î¥Õ¥é¥° level1 ¤Ï ½ÐÎϤµ¤ì¤¿ PostScript ¥Õ¥¡¥¤¥ë¤Î¤¢¤ë°ì¹Ô¤ò¼ê¤ÇÊÔ½¸¤¹¤ë¤³¤È¤Ç¡¢¸å¤«¤é ¶¯À©Åª¤Ë PostScript Level 1 µ¡Ç½¤ò ON/OFF ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£level 2 ¤Î¥³¡¼¥É¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¾å¤Îµ¡Ç½¤Ï¸½¤ï¤ì¤Ê¤¤¤«¡¢¤³¤Î¥Õ¥é¥°¤¬¥» ¥Ã¥È¤µ¤ì¤¿¾ì¹ç¡¢¤¢¤ë¤¤¤Ï PostScript ¥¤¥ó¥¿¥×¥ê¥¿¥×¥í¥°¥é¥à¤¬ level 2 °Ê¾å¤Î PostScript ¤ò²ò¼á¤¹¤ë¤È¤Ï¸À¤ï¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë·Ù¹ðʸ¤ËÃÖ¤´¹¤ï¤ê¤Þ¤¹¡£
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
clip ¤Ï¡¢PostScript ¤Ë¤¹¤Ù¤Æ¤Î½ÐÎϤò BoundingBox (PostScript ¤Î³°ÏÈ) ¤Ç¥¯¥ê¥Ã¥×¤¹¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ç¥Õ¥©¥ë¥È¤Ï noclip ¤Ç¤¹¡£
palfuncparam ¤Ï set palette functions ¤«¤é½ÐÎϤη¹¤¤ò¤É¤Î¤è¤¦¤Ë¥³ ¡¼¥É²½¤¹¤ë¤«¤òÀ©¸æ¤·¤Þ¤¹¡£²òÀÏŪ¤Ê¿§¤ÎÀ®Ê¬´Ø¿ô (set palatte functions ¤ÇÀßÄꤵ¤ì¤ë) ¤Ï¡¢postscript ½ÐÎϤǤϷ¹¤¤ÎÀþ·ÁÊä´°¤òÍѤ¤¤Æ¥³¡¼¥É²½¤µ ¤ì¤Þ¤¹: ¤Þ¤º¿§¤ÎÀ®Ê¬´Ø¿ô¤¬ < samples> ¸Ä¤ÎÅÀ¤ÇɸËܲ½¤µ¤ì¡¢¤½¤·¤Æ¤½¤ì¤é ¤ÎÅÀ¤Ï¡¢·ë²Ì¤È¤·¤ÆÀþ·ÁÊä´°¤È¤ÎÊк¹¤¬ < maxdeviation> °ÊÆâ¤Ë¼ý¤Þ¤ë¤è¤¦¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£¤Û¤È¤ó¤ÉÁ´¤Æ¤Î͸ú¤Ê¥Ñ¥ì¥Ã¥È¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Î < samples> =2000 ¤È < maxdeviation> =0.003 ¤ÎÃͤò¤½¤Î¤Þ¤Þ»È¤¦¤Î¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£
PostScript ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 10 ¥¤¥ó¥Á x 7 ¥¤¥ó¥Á¤Ç¤¹¡£EPS ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 5 x 3.5 ¥¤¥ó¥Á¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï ¤³¤ì¤é¤ò¥æ¡¼¥¶¤¬»ØÄꤷ¤¿¤â¤Î¤ËÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï X ¤È Y ¤Î¥µ ¥¤¥º¤Îñ°Ì¤Ï¥¤¥ó¥Á¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¤¬¡¢Â¾¤Îñ°Ì (¸½ºß¤Ï cm ¤Î¤ß) ¤â»È¤¦ ¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£ÉÁ²è¤Î BoundingBox (PostScript ¥Õ¥¡¥¤¥ë¤Î³°ÏÈ) ¤Ï¡¢ ¥µ¥¤¥º¤¬Êѹ¹¤µ¤ì¤¿²èÁü¤òÃúÅÙ´Þ¤à¤è¤¦¤ËÀµ¤·¤¯ÀßÄꤵ¤ì¤Þ¤¹¡£ ¥¹¥¯¥ê¡¼¥óºÂɸ¤Ï¡¢¥ª¥×¥·¥ç¥ó size ¤Ç»ØÄꤵ¤ì¤¿ÉÁ²èÏȤÎÁ´ÂΤ¬ 0.0 ¤«¤é 1.0 ¤Ë¤Ê¤ê¤Þ¤¹¡£ Ãí°Õ: ¤³¤ì¤Ï¡¢°ÊÁ°¤Ï¡¢½ÐÎÏ·Á¼°¤Ç¤ÎÀßÄê¤è¤ê¤â¡¢¥³¥Þ¥ó¥É set size ¤ÇÀßÄꤷ¤¿Êý¤¬¤¤¤¤¡¢¤È¸À¤Ã¤Æ¤¤¤¿¤³¤È¤ÎÊѹ¹¤ò°ÕÌ£¤·¤Þ¤¹¡£°ÊÁ°¤ÎÊýË¡¤Ç¤Ï BoundingBox ¤ÏÊѹ¹¤µ¤ì¤º¤Ë»Ä¤Ã¤Æ¤·¤Þ¤¤¡¢¥¹¥¯¥ê¡¼¥óºÂɸ¤¬¼ÂºÝ¤ÎÉÁ²è¤Î¸Â³¦¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
blacktext ¤Ï¡¢¤¿¤È¤¨¥«¥é¡¼¥â¡¼¥É¤Ç¤âÁ´¤Æ¤Îʸ»úÎó¤ò¹õ¤Ç½ñ¤¤Þ¤¹¡£
epslatex ¥É¥é¥¤¥Ð¤Ïʸ»úÎó¤ÎÇÛÃÖ¤ÎÀ©¸æ¤ËÆÃÊ̤ÊÊýË¡¤òÄ󶡤·¤Þ¤¹:
(a) '{' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢'}' ¤ÇÊĤ¸¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Îʸ»úÎóÁ´ÂÎ
¤¬ LaTeX ¤Ë¤è¤Ã¤Æ¿åÊ¿Êý¸þ¤Ë¤â¿âľÊý¸þ¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£
(b) '[' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Î¾ì¹ç¤Ï¡¢°ÌÃ֤λØÄê¤ò¤¹¤ëʸ»úÎó (t,b,l,r,c ¤Î¤¦
¤Á 2 ¤Ä¤Þ¤Ç) ¤¬Â³¤¡¢¼¡¤Ë ']{'¡¢Ê¸»úÎóËÜÂΡ¢¤ÇºÇ¸å¤Ë '}' ¤È¤·¤Þ¤¹¤¬¡¢
¤³¤Îʸ»úÎó¤Ï LaTeX ¤¬ LR-box ¤È¤·¤ÆÀ°·Á¤·¤Þ¤¹¡£
\
rule{}{} ¤ò»È¤¨¤Ð¤µ
¤é¤ËÎɤ¤°ÌÃÖ¹ç¤ï¤»¤¬²Äǽ¤Ç¤·¤ç¤¦¡£°Ê²¼¤â»²¾È: ¥É¥é¥¤¥Ð pslatex (92.52) ¤Ë´Ø¤¹¤ëÀâÌÀ¡£
Ê£¿ô¹Ô¤Î¸«½Ð¤·¤òºîÀ®¤¹¤ë¤Ë¤Ï
\
shortstack ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢
set ylabel '[r]{\shortstack{first line \\ second line}}'
set label ¥³¥Þ¥ó¥É¤Î¥ª¥×¥·¥ç¥ó back ¤Ï»È¤¨¤Þ¤¹¤¬¡¢Â¾¤Î½ÐÎÏ·Á¼°¤Î¤â ¤Î¤È¤Ï¾¯¤·°ã¤Ã¤Æ¤¤¤Þ¤¹¡£front ¤Î¾ì¹ç¤Î¸«½Ð¤·¤¬Â¾¤ÎÁ´¤Æ¤ÎÍ×ÁǤξå¤Ë½Ð ÎϤµ¤ì¤ë¤Î¤ËÂФ·¤Æ¡¢back ¤ò»È¤Ã¤¿¸«½Ð¤·¤Ï¾¤ÎÁ´¤Æ¤ÎÍ×ÁǤβ¼¤Ë½ÐÎϤµ¤ì ¤Þ¤¹¡£
¤³¤Î¥É¥é¥¤¥Ð¤Ï 2 ¤Ä¤ÎÊ̤Υե¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£1 ¤Ä¤Ï¿Þ¤Î eps ¤ÎÉôʬ¤Ç¡¢ ¤â¤¦°ì¤Ä¤Ï LaTeX ¤ÎÉôʬ¤Ç¤¹¡£LaTeX ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¡¢set output ¥³¥Þ ¥ó¥É¤Î¤â¤Î¤¬»È¤ï¤ì¡¢eps ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¤½¤Î³ÈÄ¥»Ò (Ä̾ï .tex) ¤ò .eps ¤ËÃÖ¤´¹¤¨¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£ ½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð LaTeX ½ÐÎϤϹԤʤï¤ì¤Þ¤»¤ó ! multiplot ¥â¡¼¥É°Ê³°¤Ç¤Ï¡¢¼¡¤ÎÉÁ²è¤ò¹Ô¤Ê¤¦Á°¤Ë¤½¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¤Î¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
LaTeX ¤Îʸ½ñ¤Ç¿Þ¤ò¼è¤ê¹þ¤à¤Ë¤Ï ' \ input{filename}' ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£ .eps ¥Õ¥¡¥¤¥ë¤Ï \ includegraphics{...} ¥³¥Þ¥ó¥É¤Ç¼è¤ê¹þ¤à¤Î¤Ç¡¢¤è¤Ã¤Æ LaTeX ¤Î¥×¥ê¥¢¥ó¥Ö¥ë¤Ë \ usepackage{graphicx} ¤âÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ textcolour ¥ª¥×¥·¥ç¥ó¤Ç¿§ÉÕ¤¤Îʸ»úÎó¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢LaTeX ¤Î ¥×¥ê¥¢¥ó¥Ö¥ë¤Ë \ usepackage{color} ¤âÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤Î eps ¥Õ¥¡¥¤¥ë¤«¤é 'epstopdf' ¤ò»È¤Ã¤Æ pdf ¥Õ¥¡¥¤¥ë¤òºî¤ë¤³¤È¤â¤Ç¤ ¤Þ¤¹¡£graphics ¥Ñ¥Ã¥±¡¼¥¸¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î LaTeX ¤Î¥Õ¥¡ ¥¤¥ë¤Ï¡¢Êѹ¹¤Ê¤·¤Ë pdflatex ¤Ë¤è¤Ã¤Æ¤â½èÍý¤Ç¤¡¢¤½¤Î¾ì¹ç eps ¥Õ¥¡¥¤¥ë ¤ÎÂå¤ï¤ê¤Ë pdf ¥Õ¥¡¥¤¥ë¤¬¼è¤ê¹þ¤Þ¤ì¤Þ¤¹¡£
¥Õ¥©¥ó¥È¤ÎÁªÂò¤Ë´Ø¤¹¤ëµóÆ°¤Ï¥Ø¥Ã¥À¡¼¥â¡¼¥É¤Ë°Í¸¤·¤Þ¤¹¡£ ¤É¤Î¾ì¹ç¤Ç¤â¡¢Í¿¤¨¤é¤ì¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï¥¹¥Ú¡¼¥¹¤Î·×»»¤Ë¤Á¤ã¤ó¤È»ÈÍѤµ ¤ì¤Þ¤¹¡£standalone ¥â¡¼¥É¤¬»È¤ï¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢include ¤µ¤ì¤ë¾ì½ê¤Ç ¤Î¼ÂºÝ¤Î LaTeX ¥Õ¥©¥ó¥È¤È¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬»È¤ï¤ì¤ë¤Î¤Ç¡¢¤è¤Ã¤Æ¥Õ¥©¥ó¥È¤Î Êѹ¹¤Ë¤Ï LaTeX ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¥Õ¥©¥ó¥È¥µ¥¤¥º¤È¤·¤Æ LaTeX ʸ½ñÃæ¤Ç 12pt ¤ò»È¤¦¾ì¹ç¤Ï¡¢¥ª¥×¥·¥ç¥ó '"" 12' ¤ò»È¤¤¤Þ¤¹¡£¤³¤Î ¾ì¹ç¥Õ¥©¥ó¥È̾¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£standalone ¤ò»È¤¦¾ì¹ç¤Ï¡¢Í¿¤¨¤é¤ì¤¿¥Õ¥© ¥ó¥È¤È¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬»È¤ï¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï²¼µ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
ʸ»úÎ󤬥«¥é¡¼¤Çɽ¼¨¤µ¤ì¤ë¤«¤É¤¦¤«¤Ï TeX ¤Î Bool ÃÍÊÑ¿ô
\
ifGPcolor ¤È
\
ifGPblacktext ¤ÇÀ©¸æ¤·¤Þ¤¹¡£
\
ifGPcolor ¤¬ true ¤Ç
\
ifGPblacktext ¤¬
false ¤Î¾ì¹ç¤Î¤ßʸ»úÎó¤Ï¥«¥é¡¼¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£¤½¤ì¤é¤ÏÀ¸À®¤µ¤ì¤ë TeX ¥Õ
¥¡¥¤¥ë¤òÊѹ¹¤¹¤ë¤«¡¢¤Þ¤¿¤Ï¤¢¤Ê¤¿¤Î TeX ¥Õ¥¡¥¤¥ë¤ÇÂç°èŪ¤ËÍ¿¤¨¤Æ¤¯¤À¤µ¤¤¡£
Î㤨¤Ð
\newif\ifGPblacktext \GPblacktexttrue
epslatex ½ÐÎÏ·Á¼°¤ò»È¤¦¾ì¹ç¡¢set output ¥³¥Þ¥ó¥É¤Ç TeX ¥Õ¥¡¥¤¥ë¤Î̾Á° ¤ò³ÈÄ¥»ÒÉÕ¤ (Ä̾ï ".tex") ¤ÇÍ¿¤¨¤Æ¤¯¤À¤µ¤¤¡£eps ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¤½¤Î ³ÈÄ¥»Ò¤ò ".eps" ¤ËÃÖ¤´¹¤¨¤¿Ì¾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£
standalone ¥â¡¼¥É¤ò»È¤¦¾ì¹ç¡¢¤½¤Î LaTeX ¥Õ¥¡¥¤¥ë¤Ë´°Á´¤Ê LaTeX ¤Î¥Ø¥Ã
¥À¤¬Éղ䵤졢eps ¥Õ¥¡¥¤¥ë¤Î¥Õ¥¡¥¤¥ë̾¤Ë¤Ï "-inc" ¤¬Äɲ䵤ì¤Þ¤¹¡£
standalone ¥â¡¼¥É¤Ï¡¢dvips, pdfTeX, VTeX ¤ò»È¤¦¾ì¹ç¤ËÀµ¤·¤¤¥µ¥¤¥º¤Ç½Ð
ÎϤµ¤ì¤ë¤è¤¦¤Ê TeX ¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ï input ¥â¡¼¥É¤Ç¡¢¤³¤ì¤Ï
\
input ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¡¢Ê̤Î
LaTeX ¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤Þ¤ì¤ë¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Þ¤¹¡£
"" ¤« "default" °Ê³°¤Î¥Õ¥©¥ó¥È̾¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢¤½¤ì¤Ï LaTeX ¤Î¥Õ¥©¥ó¥È̾¤È²ò¼á¤µ¤ì¤Þ¤¹¡£¤½¤ì¤Ï¡¢'fontname,fontseries,fontshape' ¤Î¡¢¥³ ¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿ 3 ¤Ä°Ê²¼¤ÎÉôʬ¤«¤é¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥·¥§¥¤ ¥×¡¢¥Õ¥©¥ó¥È¥·¥ê¡¼¥º¤¬»È¤¤¤¿¤¤¾ì¹ç¤Ï¤½¤ì¤é¤Ï¾Êά¤Ç¤¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢¥Õ¥© ¥ó¥È̾¤ËÂФ¹¤ëÀµ¼°¤Ê½ñ¼°¤Ï¡¢'[fontname][,fontseries][,fontshape]' ¤È¤Ê ¤ê¤Þ¤¹¡£¤½¤Î¤¤¤º¤ì¤ÎÉôʬ¤â̾Á°¤Ë´Ø¤·¤Æ¤Ï LaTeX ¤Î¥Õ¥©¥ó¥ÈÂηϤδ·½¬¤Ë½¾ ¤¤¤Þ¤¹¡£fontname ¤Ï 3 ¤«¤é 4 ʸ»ú¤ÎŤµ¤Ç¡¢¼¡¤Î¤è¤¦¤Êµ¬Â§¤Çºî¤é¤ì¤Æ¤¤¤Þ ¤¹: 1 ¤ÄÌܤ¬¥Õ¥©¥ó¥È¤ÎÀ½Â¤¸µ¤òɽ¤·¡¢¼¡¤Î 2 ¤Ä¤¬¥Õ¥©¥ó¥È̾¡¢¥ª¥×¥·¥ç¥ó¤Ç Äɲ䵤ì¤ë 1 ¤Ä¤ÏÆÃÊ̤ʥե©¥ó¥È¤ò°ÕÌ£¤·¡¢Î㤨¤Ð 'j' ¤Ïµì¼°¤Î¿ô»ú¤ò»ý¤Ä ¥Õ¥©¥ó¥È¡¢'x' ¤Ï expert ¥Õ¥©¥ó¥ÈÅù¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£°Ê²¼¤Ë¤Ï¡¢Â¿¤¯¤Î¥Õ¥©¥ó¥È¤Î̾Á°¤Ë¤Ä¤¤¤Æ½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£
http://www.tug.org/fontname/fontname.pdf
Î㤨¤Ð 'cmr' ¤Ï Computer Modern Roman ¥Õ¥©¥ó¥È¡¢'ptm' ¤Ï Times-Roman, 'phv' ¤Ï Helvetica Åù¤òɽ¤·¤Þ¤¹¡£¥Õ¥©¥ó¥È¥·¥ê¡¼¥º¤Ïʸ»ú¤ÎÀþ¤ÎÂÀ¤µ¤ò°ÕÌ£ ¤·¡¢ÂçȾ¤Ï 'm' ¤ÇÉáÄÌ ("medium")¡¢'bx' ¤Þ¤¿¤Ï 'b' ¤¬ÂÀ»ú (bold) ¥Õ¥© ¥ó¥È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Õ¥©¥ó¥È¥·¥§¥¤¥×¤Ï°ìÈÌ¤Ë 'n' ¤¬Î©ÂÎ (upright)¡¢'it' ¤Ï¥¤¥¿¥ê¥Ã¥¯¡¢'sl' ¤Ï¼ÐÂÎ (slanted)¡¢'sc' ¤Ï¾®¤µ¤¤Âçʸ»ú (small caps) ¤È¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é¤È¤Ï°Û¤Ê¤ë¥Õ¥©¥ó¥È¥·¥ê¡¼¥º¤ä¥Õ¥©¥ó¥È¥·¥§¥¤¥×¤ÇÍ¿¤¨¤é ¤ì¤ë¥Õ¥©¥ó¥È¤â¸ºß¤·¤Þ¤¹¡£
Îã:
Times-Roman ¤ÇÂÀ»ú (¥·¥§¥¤¥×¤Ï¼þ¤ê¤Îʸ»úÎó¤ÈƱ¤¸¤â¤Î) ¤ò»È¤¦¾ì¹ç:
set terminal epslatex 'ptm,bx'
set terminal epslatex 'phv,bx,it'
set terminal epslatex ',,sl'
set terminal epslatex ',,sc'
¤³¤ÎÊýË¡¤Ç¤Ïʸ»úÎó¤Î¥Õ¥©¥ó¥È¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£¿ô¼°¤Î¥Õ¥©¥ó¥È¤âÊѹ¹¤· ¤¿¤¤¾ì¹ç¤Ï¡¢"gnuplot.cfg" ¥Õ¥¡¥¤¥ë¤«¤Þ¤¿¤Ï header ¥ª¥×¥·¥ç¥ó¤ò»È¤¦ ɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼¤Ë½ñ¤¤Þ¤¹¡£
standalone ¥â¡¼¥É¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï set terminal ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤é ¤ì¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬»È¤ï¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬»È¤¨¤ë¤¿¤á¤Ë¤Ï LaTeX ¤Î¸¡º÷¥Ñ¥¹¤Ë "size< size> .clo" ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¤Ê ¤ê¤Þ¤»¤ó¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 10pt, 11pt, 12pt ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Ñ¥Ã ¥±¡¼¥¸ "extsizes" ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢8pt, 9pt, 14pt, 17pt, 20pt ¤âÄɲ䵤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó header ¤Ïʸ»úÎó°ú¿ô¤ò¼è¤ê¤Þ¤¹¡£¤½¤Îʸ»úÎó¤Ï¡¢À¸À®¤µ¤ì¤ë LaTeX ¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤Þ¤ì¤Þ¤¹¡£standalone ¥â¡¼¥É¤ò»È¤¦¾ì¹ç¡¢¤½¤Îʸ»ú Îó¤Ï¥×¥ê¥¢¥ó¥Ö¥ë¤Î \ begin{document} ¥³¥Þ¥ó¥É¤ÎľÁ°¤Ë½ñ¤¹þ¤Þ¤ì¤Þ¤¹¡£ input ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤Îʸ»úÎó¤Ï \ begingroup ¥³¥Þ¥ó¥É¤Îľ¸å¤ËÃÖ¤«¤ì¡¢ ÉÁ²è¤Ø¤ÎÀßÄ꤬¤¹¤Ù¤Æ¶É½êŪ¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
Îã:
T1 ¥Õ¥©¥ó¥È¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò»È¤¤¡¢Ê¸»úÎ󡢿ô¼°¥Õ¥©¥ó¥È¤ò Times-Roman
¤È¤·¡¢¥µ¥ó¥»¥ê¥Õ¥Õ¥©¥ó¥È¤ò Helvetica ¤ÈÊѹ¹¤¹¤ë¾ì¹ç:
set terminal epslatex standalone header \ "\\usepackage[T1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}"
set terminal epslatex input header "\\bfseries"
¥Õ¥¡¥¤¥ë "gnuplot.cfg" ¤¬ LaTeX ¤Ë¤è¤Ã¤Æ¸«¤Ä¤±¤é¤ì¤ë¤È¡¢standalone
¥â¡¼¥É¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤ÏÀ¸À®¤µ¤ì¤ë LaTeX ʸ½ñ¤Î¥×¥ê¥¢¥ó¥Ö¥ë¤Ë¼è
¤ê¹þ¤Þ¤ì¤Þ¤¹¡£¤½¤ì¤ÏÄɲäÎÀßÄê¤ò¹Ô¤Ê¤¦¤Î¤Ë»È¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢Ê¸½ñ¤Î¥Õ¥©
¥ó¥È¤ò TImes-Roman, Helvetica, Courier ¤ÈÊѹ¹¤·¡¢("mathptmx.sty" ¤Ç°·
¤ï¤ì¤Æ¤¤¤ë) ¿ô¼°¥Õ¥©¥ó¥È¤òÆþ¤ì¤ë¾ì¹ç:
\usepackage{mathptmx} \usepackage[scaled=0.92]{helvet} \usepackage{courier}
epson_180dpi ¤È epson_60dpi ¤Ï¤½¤ì¤¾¤ì 180dpi (¥É¥Ã¥È/¥¤¥ó¥Á), 60dpi ¤Î²òÁüÅ٤ΠEpson LQ ·¿ 24 ¥Ô¥ó¥×¥ê¥ó¥¿ÍѤΥɥ饤¥Ð¤Ç¤¹¡£
epson_lx800 ¤Ï Epson LX-800, Star ¤Î NL-10 ¤ä NX-1000, PROPRINTER ¤Ê ¤É¤ÎŬÅö¤Ê¥×¥ê¥ó¥¿¤ËήÍѤǤ¤ë¡¢°ìÈÌŪ¤Ê 9 ¥Ô¥ó¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤Ç¤¹¡£
nec_cp6 ¤Ï NEC CP6 ¤ä Epson LQ-800 ¤Ê¤É¤Î¥×¥ê¥ó¥¿¤Ç»È¤¨¤ë¡¢°ìÈÌŪ¤Ê 24 ¥Ô¥ó¥×¥ê¥ó¥¿ÍѤΥɥ饤¥Ð¤Ç¤¹¡£
okidata ¥É¥é¥¤¥Ð¤Ï 9 ¥Ô¥ó¤Î OKIDATA 320/321 ɸ½à¥×¥ê¥ó¥¿¤ò¥µ¥Ý¡¼¥È¤· ¤Þ¤¹¡£
starc ¥É¥é¥¤¥Ð¤Ï Star ¥«¥é¡¼¥×¥ê¥ó¥¿ÍѤǤ¹¡£
tandy_60dpi ¥É¥é¥¤¥Ð¤Ï 9 ¥Ô¥ó 60dpi ¤Î Tandy DMP-130 ¥·¥ê¡¼¥ºÍѤǤ¹¡£
dpu414 ¥É¥é¥¤¥Ð¤Ï Seiko DPU-414 ´¶Ç®¥×¥ê¥ó¥¿ÍѤǤ¹¡£
nec_cp6 ¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹:
½ñ¼°:
set terminal nec_cp6 {monochrome | colour | draft}
¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÇò¹õ (monochrome) ¤Ç¤¹¡£
dpu414 ¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹:
½ñ¼°:
set terminal dpu414 {small | medium | large} {normal | draft}
¥Ç¥Õ¥©¥ë¥È¤Ï medium (= ¥Õ¥©¥ó¥È¥µ¥¤¥º) ¤Ç normal ¤Ç¤¹¡£ ¤ª¤¹¤¹¤á¤ÎÁȤ߹ç¤ï¤»¤Ï¡¢medium normal ¤« small draft ¤Ç¤¹¡£
½ñ¼°:
set terminal fig {monochrome | color} {landscape | portrait} {small | big | size <xsize> <ysize>} {metric | inches} {pointsmax <max_points>} {solid | dashed} {font "<fontname>{,<fontsize>}"} {textnormal | {textspecial texthidden textrigid}} {{thickness|linewidth} <units>} {depth <layer>} {version <number>}
monochrome ¤È color ¤Ï ²èÁü¤òÇò¹õ¤Ë¤¹¤ë¤« color ¤Ë¤¹¤ë¤«¤ò·èÄꤷ ¤Þ¤¹¡£small ¤È big ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î landscape ¥â¡¼¥É¤Ç¤Ï¥°¥é¥Õ¤ò 5x3 ¥¤¥ó¥Á¤Ë¤¹¤ë¤« 8x5 ¥¤¥ó¥Á¤Ë¤¹¤ë¤«¡¢portrait ¥â¡¼¥É¤Ç¤Ï 3x5 ¥¤¥ó ¥Á¤Ë¤¹¤ë¤« 5x8 ¥¤¥ó¥Á¤Ë¤¹¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£size ¤ÏÉÁ²èÈϰϤò < xsize> *< ysize> ¤ËÀßÄê (Êѹ¹) ¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¤Îñ°Ì¤Ï¡¢inches ¤« metric ¤«¤ÎÀßÄê¤Ë¤è¤Ã¤Æ¤½¤ì¤¾¤ì¥¤¥ó¥Á¤«¥»¥ó¥Á¥á¡¼¥È¥ë¤«¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ÎÀßÄê¤Ï "xfig" ¤Ç¤ÎÊÔ½¸¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì¤È¤·¤Æ¤â»È¤ï¤ì¤Þ¤¹¡£
pointsmax < max_points> ¤ÏÀÞ¤ìÀþ¤ÎºÇÂçÅÀ¿ô¤òÀßÄꤷ¤Þ¤¹¡£
solid ¤Ï¡¢¼ÂÀþ (solid) ¤Î linestyle ¤¬Á´Éô»È¤ï¤ì¤Æ¤·¤Þ¤Ã¤¿¸å¤Ç¼«Æ°Åª ¤Ë»È¤ï¤ì¤ëÅÀÀþ¤Î»ÈÍѤòÍÞÀ©¤·¡¢Ê̤ʷÁ¤Çɽ¼¨¤·¤Þ¤¹¡£
font ¤Ï¡¢¥Æ¥¥¹¥È¥Õ¥©¥ó¥È¥Õ¥§¡¼¥¹Ì¾¤ò < fontname> ¤Ë¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò < fontsize> ¥Ý¥¤¥ó¥È¤ËÀßÄꤷ¤Þ¤¹¡£textnormal ¤Ï¥Æ¥¥¹¥È¥Õ¥é¥°¤ÎÀßÄê¤ò ¥ê¥»¥Ã¥È¤·¤Æ postscript ¥Õ¥©¥ó¥È¤òÁªÂò¤·¡¢textspecial ¤Ï¥Æ¥¥¹¥È¥Õ¥é ¥°¤ò LaTeX special ¤ËÀßÄꤷ¡¢texthidden, textrigid ¤Ï¤½¤ì¤¾¤ì̵ɽ¼¨ ¤Î¥Æ¥¥¹¥È¡¢¥¹¥±¡¼¥ê¥ó¥°¤µ¤ì¤Ê¤¤¥Æ¥¥¹¥ÈÍѤΥե饰¤òÀßÄꤷ¤Þ¤¹¡£
depth ¤ÏÁ´¤Æ¤ÎÀþ¤Èʸ»úÎó¤ËÂФ¹¤ë¡¢½Å¤Ê¤ê¤Ë´Ø¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î¿¼¤µ (depth layer) ¤òÀßÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¿¼¤µ¤Ï 10 ¤Ç¡¢"xfig" ¤Ç¥°¥é¥Õ ¤Î¾å¤Ë²¿¤«¤ò¾å½ñ¤¤¹¤ë¤¿¤á¤Î;ÃϤò»Ä¤·¤Æ¤¤¤Þ¤¹¡£
version ¤ÏÀ¸À®¤µ¤ì¤ë fig ½ÐÎϤνñ¼°¥Ð¡¼¥¸¥ç¥ó¤òÀßÄꤷ¤Þ¤¹¡£¸½ºß¤Ï¡¢ ¥Ð¡¼¥¸¥ç¥ó 3.1 ¤È 3.2 ¤Î¤ß¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
thickness ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¤ÎÂÀ¤µ¤òÀßÄꤷ¡¢»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð 1 ¤Ë¤Ê¤ê¤Þ ¤¹¡£ÂÀ¤µ¤ÎÊѹ¹¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Î linetype ¤ÎÃÍ¤Ë 100 Çܤοô¤ò²Ã¤¨ ¤ë¤³¤È¤Ç¼Â¸½¤Ç¤¤Þ¤¹¡£Æ±Íͤˡ¢(¥Ç¥Õ¥©¥ë¥È¤Î¿¼¤µ¤ËÂФ¹¤ë) ³ÆÉÁ²èÍ×ÁǤΠ¿¼¤µ¤ÎÃÍ¤Ï < linetype> ¤Ë 1000 Çܤοô¤ò²Ã¤¨¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£¤è¤Ã¤Æ ¤½¤Î¿¼¤µ¤Ï < layer> +< linetype> /1000 ¤Ë¤Ê¤ê¡¢Àþ¤ÎÂÀ¤µ¤Ï (< linetype> %1000) /100 ¤È¤Ê¤ê¤Þ¤¹¤¬¡¢¤½¤ÎÃͤ¬ 0 ¤Î¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¤ÎÂÀ¤µ¤Ë¤Ê¤ê¤Þ¤¹¡£ linewidth ¤Ï thickness ¤ÈƱµÁ¤Ç¤¹¡£
plot ¥³¥Þ¥ó¥É¤Î point ¥¹¥¿¥¤¥ë¤Ë¤è¤ëÉÁ²è¤ÎºÝ¤Îµ¹æ¤ò fig ¥É¥é¥¤
¥Ð¤ÇÄɲ乤뤳¤È¤â¤Ç¤¤Þ¤¹¡£µ¹æ¤Î»ØÄê¤Ï (pointtype ¤ÎÃÍ) % 100 ¤Î
50 °Ê¾å¤ÎÃͤ¬»È¤ï¤ì¡¢¤½¤ÎÅɤê¤Ä¤Ö¤·¤ÎÇ»¤µ¤Ï <
pointtype>
% 5 ¤ÎÃͤÇÀ©¸æ¤·¡¢¤½¤ÎÎسԤϹõ (<
pointtype>
% 10 <
5 ¤Î¾ì¹ç) ¤Þ¤¿¤Ï¸½ºß¤Î¿§¤Ç½ñ¤«¤ì
¤Þ¤¹¡£ÍøÍѲÄǽ¤Êµ¹æ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
50 - 59: ±ß 60 - 69: ÀµÊý·Á 70 - 79: ¤Ò¤··Á 80 - 89: ¾å¸þ¤¤Î»°³Ñ·Á 90 - 99: ²¼¸þ¤¤Î»°³Ñ·Á
͸ú¤ÊÅɤê¤Ä¤Ö¤·¿§ (1 ¤«¤é 9) ¤Ï¡¢¹õ¡¢ÀÄ¡¢ÎС¢¿å¿§¡¢ÀÖ¡¢»ç¡¢²«¡¢Çò¡¢°Å ¤¤ÀÄ (Çò¹õ¥â¡¼¥É¤Ç¤Ï 1 ¤«¤é 6 ¤Þ¤Ç¤Ï¹õ¤Ç 7 ¤«¤é 9 ¤Þ¤Ç¤ÏÇò) ¤Ç¤¹¡£
< linetype> ¤È < pointtype> ¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plot with (72.11)¡£
big ¥ª¥×¥·¥ç¥ó¤Ï°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î bfig ¥É¥é¥¤¥Ð¤ÎÂåÍÑÉʤǤ¹¤¬¡¢¤³¤Î¥É¥é¥¤¥Ð¤Ïº£¤Ï¤â¤¦¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
Îã:
set terminal fig monochrome small pointsmax 1000 # ¥Ç¥Õ¥©¥ë¥È
plot 'file.dat' with points linetype 102 pointtype 759
plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 554
±ß¤Î¾å¤Ë¥¨¥é¡¼¥Ð¡¼¤ò½ñ¤¯¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 2554
½ñ¼°:
set terminal ggi [acceleration <integer>] [[mode] {mode}]
X ¤Ç¤Ï¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Îµ¡Ç½¤ò»È¤Ã¤Æ¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë
¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¤¬¡¢¥â¡¼¥É¤ò mode ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¡¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤ËÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
- V1024x768 - V800x600 - V640x480 - V320x200
bash> export GGI_DISPLAY=DGA csh> setenv GGI_DISPLAY DGA
acceleration ¤Ï¡¢ÁêÂÐŪ¤Ê¥Ý¥¤¥ó¥¿Æ°ºî¥¤¥Ù¥ó¥È¤òȯÀ¸¤¹¤ë¥¿¡¼¥²¥Ã¥È (Î㤨¤Ð DGA) ¤Ç¤Î¤ß»ÈÍѤµ¤ì¡¢Àµ¤ÎÀ°¿ô¤ÇÁêÂÐŪ¤Êµ÷Î¥¤ËÂФ¹¤ëÇÜΨ (ÀÑ°ø »Ò) ¤òɽ¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î acceleration ¤Ï 7 ¤Ç¤¹¡£
Îã:
set term ggi acc 10 set term ggi acc 1 mode V1024x768 set term ggi V1024x768
set terminal gif {{no}enhanced} {{no}transparent} {rounded|butt} {linewidth <lw>} {dashlength <dl>} {tiny | small | medium | large | giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {animate {delay <d>} {loop <n>} {{no}optimize}} {background <rgb_color>}
PNG, JPEG, GIF ²èÁü¤Ï¡¢³°Éô¥é¥¤¥Ö¥é¥ê libgd ¤ò»È¤Ã¤ÆÀ¸À®¤µ¤ì¤Þ¤¹¡£GIF
¤ÎÉÁ²è¤Ï¡¢ImageMagick ¥Ñ¥Ã¥±¡¼¥¸¤Î¥½¥Õ¥È 'display' ¤Ë¤½¤Î½ÐÎϤò°Ê²¼¤Î¤è¤¦¤Ë¥Ñ¥¤¥×¤ÇÅϤ¹¤³¤È¤ÇÂÐÏÃŪ¤Ëɽ¼¨¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
set term gif set output '| display gif:-'
transparent ¤Ï¡¢¥É¥é¥¤¥Ð¤ËÇØ·Ê¿§¤ÎÆ©ÌÀ²½ (transparent) ¤ò¹Ô¤¦¤è¤¦»Ø ¼¨¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï notransparent ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó linewidth ¤È dashlength ¤Ï³ÈÂçΨ¤Ç¡¢ÉÁ²è¤µ¤ì¤ë¤¹¤Ù¤Æ¤Î Àþ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ì¤é¤ÏÍÍ¡¹¤ÊÉÁ²è¥³¥Þ¥ó¥É¤ÇÍ׵ᤵ¤ì¤ëÃÍ ¤Ë³Ý»»¤µ¤ì¤Þ¤¹¡£
butt ¤ÏÀþʬ¤ÎÉÁ²è¤Ç¡¢¤½¤Îü¤ÎÅÀ¤Ç¤Î¤Ï¤ß¤À¤·¤òµ¯¤³¤µ¤Ê¤¤ÉÁ²è¥á¥½¥Ã¥É ¤ò»È¤¦¤è¤¦¥É¥é¥¤¥Ð¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢ÀþÉý¤¬ 1 ¤è¤êÂ礤¤¾ì¹ç¤Ë ¤Î¤ß͸ú¤Ç¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢¿åÊ¿Àþ¡¢¿âľÀþ¤ÎÉÁ²è¤Î¾ì¹ç¤ËÍÍѤǤ·¤ç¤¦¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï rounded (´Ý¤á) ¤Ç¤¹¡£
¥Õ¥©¥ó¥È¤ÎÁªÂò¤Î¾ÜºÙ¤Ï¡¢¤ä¤äÊ£»¨¤Ç¤¹¡£
°Ê²¼¤ËƱ¤¸°ÕÌ£¤ò»ý¤Ä´Êñ¤ÊÎã¤ò¼¨¤·¤Þ¤¹:
set term gif font arial 11 set term gif font "arial,11"
¥ª¥×¥·¥ç¥ó animate ¤Ï¤¢¤Ê¤¿¤Î¼ê¸µ¤Ë¤¢¤ë gd ¥é¥¤¥Ö¥é¥ê¤¬¥¢¥Ë¥á¡¼¥·¥ç ¥ó gif ¤ÎºîÀ®¤ò¥µ¥Ý¡¼¥È¤¹¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¹¡£ºîÀ®¤µ¤ì¤ë²èÁü¤Îɽ¼¨´Ö ³Ö¤Ï¡¢1/100 ÉÃñ°Ì¤Ç»ØÄê¤Ç¤¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤Ï 5)¡£¤¿¤À¤·¼ÂºÝ¤Îɽ¼¨´Ö ³Ö¤Ï¡¢»ÈÍѤ¹¤ëɽ¼¨¥½¥Õ¥È¤Ë¤è¤Ã¤ÆÊѲ½¤·¤Þ¤¹¡£ ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î·«¤êÊÖ¤·²ó¿ô¤â»ØÄê¤Ç¤¤Þ¤¹¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤½¤ì¤Ï ̵¸Â¤Î·«¤êÊÖ¤·¤ò°ÕÌ£¤·¤Þ¤¹¡£ ¥¢¥Ë¥á¡¼¥·¥ç¥ó²èÁüÎó¤Ï¡¢¼¡¤Î set output ¤« set term ¥³¥Þ¥ó¥É¤Ë¤è¤Ã ¤Æ½ªÎ»¤·¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó optimize ¤Ï¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Ë´Ø¤¹¤ë 2 ¤Ä¤Î ¸ú²Ì¤ò»ý¤Á¤Þ¤¹¡£
1) ¥¢¥Ë¥á¡¼¥·¥ç¥óÁ´ÂΤòÄ̤¸¤Æñ°ì¤Î¥«¥é¡¼¥Þ¥Ã¥×¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤³¤ì¤Ï ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÁ´¤Æ¤Î¥Õ¥ì¡¼¥à¤Ç»ÈÍѤµ¤ì¤ëÁ´¤Æ¤Î¿§¤¬ºÇ½é¤Î¥Õ¥ì¡¼¥à¤Ç ÄêµÁ¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
2) ²Äǽ¤Ê¤é¤Ð¡¢¸Ä¡¹¤Î¥Õ¥ì¡¼¥à¤Ç°ì¤ÄÁ°¤Î¥Õ¥ì¡¼¥à¤È°ã¤¦Éôʬ¤Î¤ß¤¬¥¢¥Ë¥á ¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÊݸ¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ò¾®¤µ¤¯¤·¤Æ¤¯¤ì ¤Þ¤¹¤¬¡¢Æ©ÌÀ²½µ¡Ç½¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤ÏƯ¤«¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
¤³¤ì¤éξÊý¤ÎºÇŬ²½¤Ï¤è¤ê¾®¤µ¤¤¥µ¥¤¥º¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤òºî¤í¤¦¤È¤¹¤ë¤â¤Î ¤Ç¤¹¤¬¡¢Â¿Ê¬¤½¤Î¸º¾¯Î̤ϡ¢Ä¹¤¤¥¢¥Ë¥á¡¼¥·¥ç¥ó¤«¤Þ¤¿¤Ï¥Õ¥ì¡¼¥à¥µ¥¤¥º¤¬ ¤È¤Æ¤â¾®¤µ¤Ê¾ì¹ç¤Ë¤Î¤ß°ÕÌ£¤¬¤¢¤ëÄøÅ٤Ǥ·¤ç¤¦¡£ ¥ª¥×¥·¥ç¥ó nooptimize ¤Ï¤³¤ì¤é¤Î¸ú²Ì¤ò¤¤¤º¤ì¤â̵¸ú¤Ë¤·¤Þ¤¹¡£³Æ¥Õ¥ì ¡¼¥à¤Ï¡¢¸Ä¡¹¤Î¥«¥é¡¼¥Þ¥Ã¥× (¥×¥é¥¤¥Ù¡¼¥È¥«¥é¡¼¥Þ¥Ã¥×) ¤ò»È¤¤¡¢´Ý¤´¤È Êݸ¤µ¤ì¤Æ¤¤¤¤Þ¤¹¡£°ì¤ÄÃí°Õ¤·¤Æ¤ª¤¤Þ¤¹¤¬¡¢ºÇŬ²½¤µ¤ì¤Æ¤¤¤Ê¤¤¥¢¥Ë¥á ¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ï³°Éô¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò»È¤Ã¤Æ¸å½èÍý¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹ ¤·¡¢¤½¤Î¸å½èÍý¤Ë¤è¤Ã¤Æ gnuplot ¤ÎºÇŬ²½¤è¤ê¤â¾®¤µ¤Ê¥Õ¥¡¥¤¥ë¤¬ºî¤é¤ì ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï nooptimize ¤Ç¤¹¡£
½ÐÎÏÉÁ²è¥µ¥¤¥º < x,y> ¤Ï¥Ô¥¯¥»¥ëñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 640x480 ¤Ç ¤¹¡£°Ê²¼¤â»²¾È: canvas (7), set size (82.65)¡£ ÉÁ²è½ªÎ»¸å¤Îü¤Î;Çò¤Ï¡¢¥ª¥×¥·¥ç¥ó crop ¤Ç¼è¤ê½ü¤¯¤³¤È¤¬¤Ç¤¡¢¤½¤Î·ë ²Ì¤È¤·¤Æ¤½¤Î²èÁü¥µ¥¤¥º¤Ï¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï nocrop ¤Ç¤¹¡£
set terminal gif medium size 640,480 background '#ffffff'
¤³¤ÎÎã¤Ï medium ¥µ¥¤¥º¤Î¡¢Â礤µÊѹ¹ÉÔǽ¤Ç²óž¤Ç¤¤Ê¤¤ÁȤ߹þ¤ß¥Õ¥©¥ó¥È ¤ò»ÈÍѤ·¡¢Æ©ÌÀ²½¤µ¤ì¤Ê¤¤ÇØ·Ê¿§¤È¤·¤ÆÇò (16 ¿Ê¿ô¤Î 24bit RGB) ¤ò»ÈÍѤ·¤Þ ¤¹¡£
set terminal gif font arial 14 enhanced
¤³¤ì¤Ï¡¢'arial' ¤È¤¤¤¦¥Õ¥§¡¼¥¹Ì¾¤Î¥¹¥±¡¼¥é¥Ö¥ë¥Õ¥©¥ó¥È¤ò¸¡º÷¤·¡¢¥Õ¥©¥ó ¥È¥µ¥¤¥º¤ò 14pt ¤ËÀßÄꤷ¤Þ¤¹¡£¥Õ¥©¥ó¥È¤Î¸¡º÷¤¬¤É¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¤«¤Ë¤Ä ¤¤¤Æ¤Ï°Ê²¼»²¾È: fonts (15)¡£¤³¤ì¤Ï¥¹¥±¡¼¥é¥Ö¥ë¥Õ¥©¥ó¥È¤Ê¤Î¤Ç¡¢³Èĥʸ»úÎó ½èÍý¥â¡¼¥É¤¬»ÈÍѤǤ¤Þ¤¹¡£
set term gif animate transparent opt delay 10 size 200,200 load "animate2.dem"
¤³¤ì¤Ï¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó GIF ¥Õ¥¡¥¤¥ë¤ÎºîÀ®ÍÑ¤Ë gif ½ÐÎÏ·Á¼°¤ò³«¤¤Þ¤¹¡£ ¥¢¥Ë¥á¡¼¥·¥ç¥óÎó¤Î¸Ä¡¹¤Î¥Õ¥ì¡¼¥à¤Ï¡¢É¸½à¥Ç¥â¥Õ¥¡¥¤¥ë½¸¤Ë¤¢¤ë¥¹¥¯¥ê¥×¥È ¥Õ¥¡¥¤¥ë animate2.dem ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤Þ¤¹¡£
½ñ¼°:
set terminal gpic {<x> <y>}
¤³¤³¤Ç x ¤È y ¤Îñ°Ì¤Ï¥¤¥ó¥Á¤Ç¤¹¡£
ñ½ã¤Ê¥°¥é¥Õ¤òÀ°·Á¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£
groff -p -mpic -Tps file.pic > file.ps
pic ¤«¤é¤Î½ÐÎϤϥѥ¤¥×¤Ç eqn ¤ËÅϤ¹¤³¤È¤â¤Ç¤¤ë¤Î¤Ç¡¢'set label' ¤È set {x/y}label ¥³¥Þ¥ó¥É¤Ç¥°¥é¥Õ¤ËÊ£»¨¤Ê´Ø¿ô¤Î¼°¤òÆþ¤ì¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£Î㤨¤Ð¡¢
set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
¤È¤¹¤ì¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ y ¼´¤ËåºÎï¤ÊÀÑʬ¤¬¸«½Ð¤·ÉÕ¤±¤µ¤ì¤Þ¤¹¡£
gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps > filename.ps
¤³¤Î¤è¤¦¤Ë¤·¤Æºî¤é¤ì¤¿¿Þ¤Ïʸ½ñ¤ËåºÎï¤ËÅö¤Æ¤Ï¤Þ¤ë¤è¤¦¤Ë¿½Ì¤¹¤ë¤³¤È¤¬¤Ç ¤¤Þ¤¹¡£pic ¸À¸ì¤Ï´Êñ¤ËÍý²ò¤Ç¤¤ë¤Î¤Ç¡¢É¬ÍפʤéÍưפ˥°¥é¥Õ¤òľÀÜÊÔ½¸ ¤Ç¤¤Þ¤¹¡£gnuplot ¤Çºî¤é¤ì¤ë pic ¥Õ¥¡¥¤¥ë¤ÎÁ´¤Æ¤ÎºÂɸ¤Ï x+gnuplotx, y+gnuploty ¤Î·Á¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï x, y ¤ÎÃÍ¤Ï 0 ¤Ç¤¹¡£¤¤¤¯ ¤Ä¤«¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤½¤Î x,y ¤ò 0 ¤ÈÀßÄꤷ¤Æ¤¤¤ë¹Ô¤òºï½ü¤¹¤ì¤Ð¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤ÆÊ£¿ô¤Î¥°¥é¥Õ¤ò°ì¤Ä¤Î¿Þ¤ÎÃæ¤ËÆþ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤â¤Ç¤¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤ÎÂ礤µ¤Ï 5.0x3.0 ¥¤¥ó¥Á):
.PS 8.0 x=0;y=3 copy "figa.pic" x=5;y=3 copy "figb.pic" x=0;y=0 copy "figc.pic" x=5;y=0 copy "figd.pic" .PE
¤³¤ì¤Ï¡¢²£¤Ë 2 ¤Ä¡¢½Ä¤Ë 2 ¤Ä¤º¤Äʤó¤À 4 ¤Ä¤Î¥°¥é¥Õ¤«¤é¤Ê¤ë¡¢8 ¥¤¥ó¥Á ¤Î¹¤µ¤Î¿Þ¤òÀ¸À®¤·¤Þ¤¹¡£
°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ç¤âƱ¤¸¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
set terminal gpic x y
¤³¤ì¤òÎ㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë»È¤¤¤Þ¤¹¡£
.PS 6.0 copy "trig.pic" .PE
½ñ¼°:
set terminal hp500c {<res>} {<comp>}
¤³¤³¤Ç res ¤Ï 75, 100, 150, 300 ¤Î¤¤¤º¤ì¤«¤Î²òÁüÅÙ (DPI; dots per inch) ¤Ç¡¢comp ¤Ï "rle" ¤« "tiff" ¤Ç¤¹¡£Â¾¤ÎÀßÄê¤ò¤¹¤ë¤È¤½¤ì¤Ï¥Ç¥Õ¥© ¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 75 dpi ¤Ç°µ½Ì¤Ï¤Ê¤·¤Ç¤¹¡£¹â²òÁüÅ٤ǤΠ¥é¥¹¥¿¥é¥¤¥º¤Ï¤¿¤¯¤µ¤ó¤Î¥á¥â¥ê¤òɬÍפȤ·¤Þ¤¹¡£
¹ñºÝŪʸ»ú¥»¥Ã¥È ISO-8859-1 ¤È CP850 ¤ò set encoding iso_8859_1 ¤ä set encoding cp850 ¤Çǧ¼±¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:set encoding (82.20))¡£
½ñ¼°:
set terminal hpgl {<number_of_pens>} {eject}
°Ê²¼¤ÎÀßÄê
set terminal hpgl 8 eject
¤Ï¡¢°ÊÁ°¤Î hp7550 ¥É¥é¥¤¥Ð¤ÈƱÅù¤Ç¡¢ÀßÄê
set terminal hpgl 4
¤Ï¡¢°ÊÁ°¤Î hp7580b ¥É¥é¥¤¥Ð¤ÈƱÅù¤Ç¤¹¡£
pcl5 ¥É¥é¥¤¥Ð¤Ï¡¢Hewlett-Packard Designjet 750C¡¢Hewlett-Packard Laserjet III, Hewlett-Packard Laserjet IV ¤Î¤è¤¦¤Ê¥×¥í¥Ã¥¿¤ò¥µ¥Ý¡¼¥È¤· ¤Þ¤¹¡£¤³¤ì¤Ï¼ÂºÝ¤Ë¤Ï HPGL-2 ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢ÁõÃÖ´Ö¤Ç̾Á°¤Î¾×ÆÍ ¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¥É¥é¥¤¥Ð¤Ë¤Ï¤¤¤¯¤Ä¤«¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Ï °Ê²¼¤Ë¼¨¤·¤¿½ç½ø¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó:
½ñ¼°:
set terminal pcl5 {mode <mode>} {<plotsize>} {{color {<number_of_pens>}} | monochrome} {solid | dashed} {font <font>} {size <fontsize>} {pspoints | nopspoints}
< mode> ¤Ï landscape ¤« portrait ¤Ç¤¹¡£< plotsize> ¤Ï¥°¥é¥Õ¤ÎʪÍýŪ ¤ÊÉÁ²è¥µ¥¤¥º¤Ç¡¢¤½¤ì¤Ï°Ê²¼¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¹: letter ¤Ïɸ½à¤Î(8 1/2" X 11") ½ÐÎÏ¡¢legal ¤Ï (8 1/2" X 14") ½ÐÎÏ¡¢noextended ¤Ï (36" X 48") ½ÐÎÏ (letter ¥µ¥¤¥ºÈæ)¡¢extended ¤Ï (36" X 55") ½ÐÎÏ (¤Û¤Ü legal ¥µ¥¤¥ºÈæ)¡£color ¤ÏÊ£¿ô¤Î¥Ú¥ó (¤¹¤Ê¤ï¤Á¥«¥é¡¼) ÉÁ²èÍÑ¤Ç < number_of_pens> ¤Ï¥«¥é¡¼½ÐÎϤǻÈÍѤµ¤ì¤ë¥Ú¥ó¤ÎËÜ¿ô (¤¹¤Ê¤ï¤Á¿§¿ô) ¤Ç ¤¹¡£monochrome ¤Ï 1 ËܤΥڥó (Î㤨¤Ð¹õ) ¤ÎÉÁ²è¤Ç¤¹¡£solid ¤ÏÁ´¤Æ¤Î Àþ¤ò¼ÂÀþ¤ÇÉÁ¤¡¢dashed ¤Ï°Û¤Ê¤ëÅÀÀþ¤äº¿Àþ¥Ñ¥¿¡¼¥ó¤ÇÀþ¤òÉÁ¤Ê¬¤±¤Þ¤¹¡£ < font> ¤Ï stick, univers, cg_times, zapf_dingbats, antique_olive, arial, courier, garamond_antigua, letter_gothic, cg_omega, albertus, times_new_roman, clarendon, coronet, marigold, truetype_symbols, wingdings ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£< fontsize> ¤Ï¥Ý¥¤¥ó¥È ñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤ÎÂ礤µ¤Ç¤¹¡£ÅÀ¤Î¼ïÎà (point type) ¤Ï¡¢nopspoints ¤ò »ØÄꤹ¤ë¤³¤È¤Çɸ½àŪ¤Ê¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄ꤫¤éÁªÂò¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢ pspoints ¤ò»ØÄꤹ¤ë¤È postscript terminal ¤ÈƱ¤¸ÅÀ¤Î¼ïÎà¤ÎÀßÄ꤫¤é ÁªÂò¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Î¤¤¤¯¤Ä¤«¤ÎÁȤ߹þ¤Þ¤ì¤¿¥µ¥Ý¡¼¥È¤Ï¡¢¥×¥ê¥ó¥¿¤Ë°Í¸¤¹ ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤ÐÁ´¤Æ¤Î¥Õ¥©¥ó¥È¤Ï¶²¤é¤¯ HP Laserjet IV ¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¤¬¡¢HP Laserjet III ¤È Designjet 750C ¤Ç ¤Ï 2,3 (Î㤨¤Ð univers, stick) ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤Î¤ß¤Ç¤·¤ç¤¦¡£ ¤Þ¤¿¡¢laserjet ¤ÏÇò¹õ¤Î½ÐÎÏÁõÃ֤ʤΤǡ¢¤½¤ì¤é¤Ç¤Ï¥«¥é¡¼¤âÌÀ¤é¤«¤Ë»È¤¨ ¤Þ¤»¤ó¡£
¥Ç¥Õ¥©¥ë¥È: landscape, noextended, color (6 pens), solid, univers, 12
point, nopspoints
pcl5 ¤Ç¤Ï¹ñºÝŪʸ»ú¥»¥Ã¥È¤Ï¥×¥ê¥ó¥¿¤Ç°·¤ï¤ì¤Þ¤¹¤Î¤Ç¡¢¥Æ¥¥¹¥Èʸ»úÎó ¤ËŬÀÚ¤Ê 8-bit ʸ»ú¥³¡¼¥É¤òÆþ¤ì¤ë¤À¤±¤Ç¡¢¤ï¤¶¤ï¤¶ set encoding ¤Ç¼Ù Ëâ¤ò¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
HPGL ¥°¥é¥Õ¥£¥Ã¥¯¤Ï¿¤¯¤Î¥½¥Õ¥È¥¦¥§¥¢¥Ñ¥Ã¥±¡¼¥¸¤Ç¼è¤ê¹þ¤à¤³¤È¤¬²Äǽ¤Ç ¤¹¡£
½ñ¼°:
set terminal hpljii | hpdj {<res>}
¤³¤³¤Ç res ¤Ï 75, 100, 150, 300 ¤Î¤¤¤º¤ì¤«¤Î²òÁüÅÙ (DPI; dots per inch) ¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 75 ¤Ç¤¹¡£¹â²òÁüÅ٤ǤΥ饹¥¿¥é¥¤¥º¤Ï¤¿¤¯¤µ¤ó¤Î¥á ¥â¥ê¤òɬÍפȤ·¤Þ¤¹¡£
hp500c ¥É¥é¥¤¥Ð¤Ï hpdj ¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢hp500c ¤Ï²Ã¤¨¤Æ¥«¥é¡¼¤È °µ½Ì¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
½ñ¼°:
set terminal hppj {FNT5X9 | FNT9X17 | FNT13X25}
Ãæ´Ö¥µ¥¤¥º¥Õ¥©¥ó¥È (FNT9X17) ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
½ñ¼°:
set terminal imagen {<fontsize>} {portrait | landscape} {[<horiz>,<vert>]}
fontsize ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 12 ¥Ý¥¤¥ó¥È¤Ç¡¢¥ì¥¤¥¢¥¦¥È¤Î¥Ç¥Õ¥©¥ë¥È¤Ï landscape ¤Ç¤¹¡£< horiz> ¤È < vert> ¤Ï¥°¥é¥Õ¤ò²£Êý¸þ¤È½ÄÊý¸þ¤Ë²¿Îó ÃÖ¤¯¤«¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¤Ç¤¹¡£
Îã:
set terminal imagen portrait [2,3]
¤³¤ì¤Ï¡¢1 ¥Ú¡¼¥¸¤Ë 6 ¤Ä¤Î¥°¥é¥Õ¤ò²£¤Ë 2 Îó¡¢½Ä¤Ë 3 Îó¡¢½ÄÃÖ¤ (portrait) ¤ÇÇÛÃÖ¤·¤Þ¤¹¡£
set terminal jpeg {{no}enhanced} {{no}interlace} {linewidth <lw>} {dashlength <dl>} {rounded|butt} {tiny | small | medium | large | giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {background <rgb_color>}
PNG, JPEG, GIF ²èÁü¤Ï¡¢³°Éô¥é¥¤¥Ö¥é¥ê libgd ¤ò»È¤Ã¤ÆÀ¸À®¤µ¤ì¤Þ¤¹¡£ÂçÄñ ¤Î¾ì¹ç¡¢Ã±°ì¤ÎÉÁ²è¤Ê¤é PNG ¤ÎÊý¤¬¸þ¤¤¤Æ¤¤¤Æ¡¢GIF ¤Ï¥¢¥Ë¥á¡¼¥·¥ç¥óÍÑ¤Ç ¤¹¡£¤½¤ì¤é¤Ï»¼º¤Î¾¯¤Ê¤¤²èÁü·Á¼°¤Ç¡¢Â»¼º¤Î¤¢¤ë JPEG ·Á¼°¤è¤ê¤â¾å¼Á¤Î²è Áü¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Æä˥٥¿ÅɤêÄÙ¤·¤¿ÇطʤǤΥ«¥é¡¼¤Î¼ÂÀþ¡¢¤Ä¤Þ¤ê ¤Þ¤µ¤Ë gnuplot ¤¬À¸À®¤¹¤ëŵ·¿Åª¤Ê²èÁü¤ËÂФ·¤Æ¤ÏÃí°Õ¤¹¤Ù¤¤³¤È¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó interlace ¤Ï¡¢¥×¥í¥°¥ì¥Ã¥·¥Ö JPEG ²èÁü¤òÀ¸À®¤·¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ï nointerlace ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó linewidth ¤È dashlength ¤Ï³ÈÂçΨ¤Ç¡¢ÉÁ²è¤µ¤ì¤ë¤¹¤Ù¤Æ¤Î Àþ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ì¤é¤ÏÍÍ¡¹¤ÊÉÁ²è¥³¥Þ¥ó¥É¤ÇÍ׵ᤵ¤ì¤ëÃÍ ¤Ë³Ý»»¤µ¤ì¤Þ¤¹¡£
butt ¤ÏÀþʬ¤ÎÉÁ²è¤Ç¡¢¤½¤Îü¤ÎÅÀ¤Ç¤Î¤Ï¤ß¤À¤·¤òµ¯¤³¤µ¤Ê¤¤ÉÁ²è¥á¥½¥Ã¥É ¤ò»È¤¦¤è¤¦¥É¥é¥¤¥Ð¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢ÀþÉý¤¬ 1 ¤è¤êÂ礤¤¾ì¹ç¤Ë ¤Î¤ß͸ú¤Ç¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢¿åÊ¿Àþ¡¢¿âľÀþ¤ÎÉÁ²è¤Î¾ì¹ç¤ËÍÍѤǤ·¤ç¤¦¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï rounded (´Ý¤á) ¤Ç¤¹¡£
¥Õ¥©¥ó¥È¤ÎÁªÂò¤Î¾ÜºÙ¤Ï¡¢¤ä¤äÊ£»¨¤Ç¤¹¡£
°Ê²¼¤ËƱ¤¸°ÕÌ£¤ò»ý¤Ä´Êñ¤ÊÎã¤ò¼¨¤·¤Þ¤¹:
set term jpeg font arial 11 set term jpeg font "arial,11"
½ÐÎÏÉÁ²è¥µ¥¤¥º < x,y> ¤Ï¥Ô¥¯¥»¥ëñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 640x480 ¤Ç ¤¹¡£°Ê²¼¤â»²¾È: canvas (7), set size (82.65)¡£ ÉÁ²è½ªÎ»¸å¤Îü¤Î;Çò¤Ï¡¢¥ª¥×¥·¥ç¥ó crop ¤Ç¼è¤ê½ü¤¯¤³¤È¤¬¤Ç¤¡¢¤½¤Î·ë ²Ì¤È¤·¤Æ¤½¤Î²èÁü¥µ¥¤¥º¤Ï¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï nocrop ¤Ç¤¹¡£
set terminal {latex | emtex} {default | {courier|roman} {<fontsize>}} {size <XX>{unit}, <YY>{unit}} {rotate | norotate}
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤ì¤òËä¤á¹þ¤àʸ½ñ¤Î¥Õ¥©¥ó¥È¤ÎÀßÄê¤ò°ú¤·Ñ¤®¤Þ¤¹¤¬¡¢Âå ¤ï¤ê¤Ë Courier (cmtt) ¤« Roman (cmr) ¥Õ¥©¥ó¥È¤Î¤¤¤º¤ì¤«¤Ë¤¹¤ë¥ª¥×¥·¥ç ¥ó¤¬»È¤¨¤Þ¤¹¡£¤½¤ÎºÝ¤Ï¥Õ¥©¥ó¥È¥µ¥¤¥º¤â»ØÄê¤Ç¤¤Þ¤¹¡£ ¤¢¤Ê¤¿¤Î DVI ¥É¥é¥¤¥Ð¤¬Ç¤°Õ¤Î¥µ¥¤¥º¤Î¥Õ¥©¥ó¥È¤òºî¤ê½Ð¤¹¤³¤È¤¬¤Ç¤¤Ê¤¤ ¾ì¹ç (Î㤨¤Ð dvips)¡¢É¸½àŪ¤Ê 10, 11, 12 ¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ç¤Ê¤ó¤È¤«¤·¤Î ¤¤¤Ç¤¯¤À¤µ¤¤¡£
METAFONT ¥æ¡¼¥¶¤Ø¤Î·Ù¹ð: METAFONT ¤Ï̯¤Ê¥µ¥¤¥º¤Ï¹¥¤ß¤Þ¤»¤ó¡£
LaTeX ¤Ë´Ø¤¹¤ëÁ´¤Æ¤Î¥É¥é¥¤¥Ð¤Ïʸ»úÎó¤ÎÇÛÃÖ¤ÎÀ©¸æ¤ËÆÃÊ̤ÊÊýË¡¤òÄ󶡤·¤Þ ¤¹: '{' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢'}' ¤ÇÊĤ¸¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Îʸ»úÎóÁ´ÂÎ ¤¬¿åÊ¿Êý¸þ¤Ë¤â¿âľÊý¸þ¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£'[' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Î¾ì ¹ç¤Ï¡¢°ÌÃ֤λØÄê¤ò¤¹¤ëʸ»úÎó (t,b,l,r ¤Î¤¦¤Á 2 ¤Ä¤Þ¤Ç) ¤¬Â³¤¡¢¼¡¤Ë ']{'¡¢Ê¸»úÎóËÜÂΡ¢¤ÇºÇ¸å¤Ë '}' ¤È¤·¤Þ¤¹¤¬¡¢¤³¤Îʸ»úÎó¤Ï LaTeX ¤¬ LR-box ¤È¤·¤ÆÀ°·Á¤·¤Þ¤¹¡£' \ rule{}{}' ¤ò»È¤¨¤Ð¤µ¤é¤ËÎɤ¤°ÌÃÖ¹ç¤ï¤»¤¬²Äǽ¤Ç¤·¤ç ¤¦¡£
¿ô¤¢¤ëÃæ¤Ç¡¢ÅÀ (point) ¤Ï¡¢LaTeX ¤Î¥³¥Þ¥ó¥É " \ Diamond" ¤È " \ Box" ¤ò»È ¤Ã¤ÆÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¸½ºß¤Ï LaTeX2e ¤Î¥³¥¢¤Ë¤Ï¸ºß¤»¤º¡¢ latexsym ¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Î¥Ñ¥Ã¥±¡¼¥¸´ðËÜÇÛÉۤΰìÉô¤Ç ¤¢¤ê¡¢¤è¤Ã¤Æ¿¤¯¤Î LaTeX ¤Î¥·¥¹¥Æ¥à¤Î°ìÉô¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥Ñ¥Ã¥±¡¼ ¥¸¤ò»È¤¦¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£ ¾¤ÎÅÀ¼ï¤Ï¡¢amssymb ¥Ñ¥Ã¥±¡¼¥¸¤Îµ¹æ¤ò»ÈÍѤ·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥µ¥¤¥º¤Ï 5 inch ¡ß 3 inch ¤Ç¤¹¤¬¡¢¥ª¥×¥·¥ç¥ó size ¤Ç ¤³¤ì¤ò¥æ¡¼¥¶¤Î´õ˾¤¹¤ë¤â¤Î¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£¤Þ¤¿¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï X ¤È Y ¤Î¥µ¥¤¥º¤Îñ°Ì¤Ï inch ¤Ç¤¹¤¬¡¢Â¾¤Îñ°Ì¤ò»È¤¦¤³¤È¤â²Äǽ¤Ç¤¹ (¸½ºß¤Ï cm ¤Î¤ß)¡£
'rotate' ¤ò»ØÄꤹ¤ë¤È¡¢Ê¸»úÎó¤Î²óž¡¢ÆÃ¤Ë y ¼´¤Î¥é¥Ù¥ë¤Î²óž¤¬²Äǽ¤Ë¤Ê ¤ê¤Þ¤¹ (graphics ¤« graphicx ¥Ñ¥Ã¥±¡¼¥¸¤¬É¬Í×)¡£¤½¤Î¾ì¹ç¡¢y ¼´¥é¥Ù¥ë¤ò 'ÀѤ߾夲·¿' ¤Ë¤¹¤ë»ÅÁȤߤÏÄä»ß¤µ¤ì¤Þ¤¹¡£
Îã:
¸«½Ð¤·¤Î°ÌÃÖ¹ç¤ï¤»¤Ë´Ø¤·¤Æ:
gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È (ÂçÄñ¤½¤ì¤Ê¤ê¤Ë¤Ê¤ë¤¬¡¢¤½¤¦¤Ç¤Ê¤¤¤³¤È¤â¤¢¤ë):
set title '\LaTeX\ -- $ \gamma $'
set label '{\LaTeX\ -- $ \gamma $}' at 0,0
set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'
Lua ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï¡¢http://www.lua.org ¤Ç»²¾È¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal lua <target name> | "<file name>" {<script_args> ...} {help}
¥¹¥¯¥ê¥×¥ÈÍÑ¤Ë 'target name'¡¢¤Þ¤¿¤Ï°úÍÑÉäÉÕ¤¤Î 'file name' ¤¬É¬¿Ü¤Ç ¤¹¡£¥¹¥¯¥ê¥×¥È¤Î 'target name' ¤òÍ¿¤¨¤¿¾ì¹ç¤Ï¡¢¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢ "gnuplot-< target name> .lua" ¤ò¤Þ¤º¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¤Çõ¤·¡¢¤½¤ì¤Ë ¼ºÇÔ¤¹¤ë¤È´Ä¶ÊÑ¿ô GNUPLOT_LUA_DIR ¤òõ¤·¤Þ¤¹¡£
¤½¤Î¾¤Î¤¹¤Ù¤Æ¤Î°ú¿ô¤Ï¡¢ÁªÂò¤·¤¿¥¹¥¯¥ê¥×¥È¤Ëɾ²Á¤µ¤»¤ë¤è¤¦¤ËÍ¿¤¨¤é¤ì¤Þ ¤¹¡£Î㤨¤Ð¡¢'set term lua tikz help' ¤Ï¡¢¥¹¥¯¥ê¥×¥È¤½¤ì¼«¿È¤Ë¡¢¥¹¥¯¥ê ¥×¥ÈÍѤΥª¥×¥·¥ç¥ó¤ÈÁªÂò¤Ë´Ø¤¹¤ëÄɲäΥإë¥×¤òɽ¼¨¤µ¤»¤Þ¤¹¡£
½ñ¼°:
set terminal lua tikz
{latex | tex | context} {color | monochrome} {dashed | solid} {nooriginreset | originreset} {nogparrows | gparrows} {nogppoints | gppoints} {picenvironment | nopicenvironment} {noclip | clip} {notightboundingbox | tightboundingbox} {background "<colorpec>"} {size <x>{unit},<y>{unit}} {scale <x>,<y>} {plotsize <x>{unit},<y>{unit}} {charsize <x>{unit},<y>{unit}} {font "<fontdesc>"} {{fontscale | textscale} <scale>} {nofulldoc | nostandalone | fulldoc | standalone} {{preamble | header} "<preamble_string>"} {tikzplot <ltn>,...} {notikzarrows | tikzarrows} {rgbimages | cmykimages} {noexternalimages|externalimages} {bitmap | nobitmap} {providevars <var name>,...} {createstyle} {help}
°ú¿ô¤È¤·¤ÆŤµ¤òɬÍפȤ¹¤ë¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢Ã±°Ì¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤± ¤ì¤Ð¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 'cm' ¤È¤Ê¤ê¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎŤµ¤Ë¤Ï¡¢°Ê²¼¤Îñ°Ì¤ò»ÈÍѤǤ¤Þ¤¹: 'cm', 'mm', 'in' ¤Þ¤¿¤Ï 'inch', 'pt', 'pc', 'bp', 'dd','cc' (ÌõÃí: in ¤Ï¥¤¥ó¥Á (1in=2.54cm), pt ¤Ï¥Ý¥¤¥ó¥È (72.27pt=1in), pc ¤Ï¥Ñ¥¤¥« (1pc=12pt), bp ¤Ï¥Ó¥Ã¥°¥Ý¥¤¥ó¥È (72bp=1in), dd ¤Ï Didot ¥Ý¥¤ ¥ó¥È (26.6dd=1cm), cc ¤Ï Cicero (1cc=12dd))¡£¿ôÃͤÈñ°Ì¤Î´Ö¤Ë¶õÇò¤òÆþ ¤ì¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£
'monochrome' ¤Ï¡¢Àþ¤Î¿§ÉÕ¤±¤ò̵¸ú¤Ë¤·¡¢ÅɤêÄÙ¤·¤ò³¥¿§³¬Ä´¤ËÀÚ¤êÂؤ¨¤Þ ¤¹¡£
'solid' ¤Ï¡¢¼ÂÀþ¤Î¤ß¤ò»ÈÍѤ·¤Þ¤¹¡£
'originreset' ¤Ï¡¢TikZ ²è¤Î¸¶ÅÀ¤ò¡¢ÉÁ²è¤Îº¸²¼³Ñ¤Ø°ÜÆ°¤·¤Þ¤¹¡£¤³¤ì¤Ï¤¤ ¤¯¤Ä¤«¤ÎÉÁ²è¤ò°ì¤Ä¤Î tikzpicture ´Ä¶Æâ¤ËÀ°Î󤹤ë¤Î¤Ë»ÈÍѤǤ¤Þ¤¹¡£¤³ ¤ì¤Ï¡¢multiplot¡¢pm3d ÉÁ²è¤Ç¤Ï½½Ê¬¤Ë¤Ï¥Æ¥¹¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
'gparrows' ¤Ï¡¢TikZ ¤¬Ä󶡤¹¤ëÌð (arrow) ¤ÎÂå¤ï¤ê¤Ë¡¢gnuplot ÆâÉô¤ÎÌð (arrow) ¤ÎÉÁ²è´Ø¿ô¤ò»ÈÍѤ·¤Þ¤¹¡£
'gppoints' ¤Ï¡¢TikZ ¤¬Ä󶡤¹¤ëÉÁ²èµ¹æ¤ÎÂå¤ï¤ê¤Ë¡¢gnuplot ÆâÉô¤Îµ¹æÉÁ ²è´Ø¿ô¤ò»ÈÍѤ·¤Þ¤¹¡£
'nopicenvironment' ¤Ï¡¢'tikzpicture' ´Ä¶¤ÎÀë¸À¤ò¼êÆ°¤Ç¹Ô¤¦¤è¤¦¤Ë¤¹¤ë ¤¿¤á¤Ë¤½¤ì¤ò¾Êά¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢ÉÁ²è¤ÎÁ°¸å¤Ë¡¢¤¢¤ë PGF/TikZ ¥³¡¼¥É ¤òľÀÜÆþ¤ì¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
'clip' ¤Ï¡¢ÉÁ²è¤òÄêµÁ¤µ¤ì¤¿¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤Ï 'noclip' ¤Ç¡¢¤³¤ì¤Ï¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤ò´Þ¤àºÇ¾®¤Î¶ë·Á³°ÏȤΤߤòÀß Äꤷ¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó 'plotsize' ¤« 'tightboundingbox' ¤ò»ÈÍѤ·¤¿¾ì¹ç¤Ï ¶ë·Á³°ÏȤ⥯¥ê¥Ã¥Ô¥ó¥°¤ÎÈ¢¤â¤¤¤º¤ì¤âÀßÄꤷ¤Þ¤»¤ó¡£
'tightboundingbox' ¤ò¥»¥Ã¥È¤¹¤ë¤È¡¢¥ª¥×¥·¥ç¥ó 'clip' ¤Ï̵»ë¤µ¤ì¡¢ºÇ½ªÅª ¤Ê¶ë·Á³°ÏÈ¤Ï tikz ¤¬·×»»¤¹¤ë¼«Á³¤Ê¶ë·Á³°ÏȤˤʤê¤Þ¤¹¡£
'background' ¤Ï¡¢ÇØ·Ê¿§¤ò°ú¿ô < colorspec> ¤Ç»ØÄꤷ¤¿ÃͤËÀßÄꤷ¤Þ¤¹¡£ < colorspec> ¤Ï͸ú¤Ê¿§Ì¾¤«¡¢'#' ¤Î¸å¤Ë 16 ¿Ê¿ô¤òÃÖ¤¯ 3 ¥Ð¥¤¥È¤Î RGB ¥³ ¡¼¥É (Î㤨¤Ð '#ff0000' ¤Ï¿¿ÀÖ) ¤Î¤¤¤º¤ì¤«¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¾Êά¤·¤¿ ¾ì¹ç¤ÏÇطʤÏÆ©ÌÀ¤Ë¤Ê¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'size' ¤Ï¡¢¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤Î 2 ¤Ä¤ÎŤµ < x> , < y> ¤òɬÍ×¤È ¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤Ï 12.5cm x 8.75cm ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó 'scale' ¤Ï¡¢¥ª¥×¥·¥ç¥ó 'size' ¤ÈƱÅù¤Îµ¡Ç½¤Ç¤¹¤¬¡¢¤³¤Î < x> , < y> ¤ÏŤµ¤Ç¤Ï¤Ê¤¯¡¢³ÈÂçΨ¤Ë¤Ê¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'plotsize' ¤Ï¡¢¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤ÎÂå¤ï¤ê¤ËÉÁ²èÎΰè¤Î¥µ¥¤¥º¤Î ÀßÄê¤ò¹Ô¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤¬Ä̾ï¤Î gnuplot ¤ÎµóÆ°¤Ç¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È ÍѤ¹¤ë¤È¡¢¤ï¤º¤«¤ËÈóÂоΤʹï¤ßÉý¤òºî¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£'originreset' ¤Î ¤è¤¦¤Ë¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ò multiplot ¤ä pm3d ÉÁ²è¤Ç»ÈÍѤ¹¤ë¤È¡¢ÉÔÅÔ¹ç¤Ê ·ë²Ì¤ò¾·¤¯¶²¤ì¤¬¤¢¤ê¤Þ¤¹¡£¤½¤ì¤ËÂå¤ï¤ëÊýË¡¤È¤·¤Æ¡¢¤¹¤Ù¤Æ¤Î margin ¤ò 0 ¤ÈÀßÄꤷ¤¿¾å¤Ç¥ª¥×¥·¥ç¥ó 'noclip' ¤ò»ÈÍѤ¹¤ë¡¢¤È¤¤¤¦¼ê¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î ¾ì¹ç¤Ï¡¢ÉÁ²èÎΰè¤ÏÍ¿¤¨¤¿¥¥ã¥ó¥Ð¥¹¥µ¥¤¥º¤ÎÂ礤µ¤Ë¤Ê¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'charsize' ¤Ï¡¢»ÈÍѤ¹¤ë¥Õ¥©¥ó¥È¤Î¿åÊ¿¥µ¥¤¥º¤È¿âľ¥µ¥¤¥º¤ÎÊ¿ ¶ÑÃͤòɬÍפȤ·¤Þ¤¹¡£¤¢¤Ê¤¿¤Î TeX ʸ½ñÆâ¤Ç¤³¤ì¤ò¤É¤Î¤è¤¦¤Ë»ÈÍѤ¹¤ë¤«¤Ë ¤Ä¤¤¤Æ¤Ï¡¢¥µ¥ó¥×¥ë¤È¤·¤ÆÀ¸À®¤µ¤ì¤ë¥¹¥¿¥¤¥ë¥Õ¥¡¥¤¥ë¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
¥ª¥×¥·¥ç¥ó 'fontscale', 'textscale' ¤Ë¤Ï¡¢½Ì¼ÜÈæ¥Ñ¥é¥á¡¼¥¿¤¬É¬ÍפǤ¹¡£ ¥°¥é¥ÕÆâ¤Î¤¹¤Ù¤Æ¤Îʸ»úÎ󤬤½¤Î½Ì¼ÜÈæ¤Ç¿½Ì¤µ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'tex', 'latex', 'context' ¤Ï¡¢TeX ½ÐÎÏ·Á¼°¤ÎÁªÂò¤Ç¤¹¡£¥Ç¥Õ¥©
¥ë¥È¤Ï LaTeX ¤Ç¤¹¡£¤½¤Î¥¹¥¿¥¤¥ë¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¤Ë¤Ï¡¢¤¢¤Ê¤¿¤Îʸ½ñ¥Õ¥¡
¥¤¥ë¤ÎÀèƬ¤ËÂбþ¤¹¤ë¹Ô¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤:
\input gnuplot-lua-tikz.tex % (plain TeX ¤Î¾ì¹ç) \usepackage{gnuplot-lua-tikz} % (LaTeX ¤Î¾ì¹ç) \usemodule[gnuplot-lua-tikz] % (ConTeXt ¤Î¾ì¹ç)
'createstyle' ¤Ï¡¢¤½¤Î¥¹¥¯¥ê¥×¥È¤«¤é TeX/LaTeX/ConTeXt ¥¹¥¿¥¤¥ë¥Õ¥¡¥¤¥ë ¤òƳ¤½Ð¤·¡¢¤½¤ì¤é¤òŬÀڤʥե¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£
'fulldoc' ¤Þ¤¿¤Ï 'standalone' ¤Ï¡¢¤½¤Î¤Þ¤Þ¥³¥ó¥Ñ¥¤¥ë¤Ç¤¤ë¤è¤¦¤Ê´°Á´¤Ê LaTeX ʸ½ñ¤òÀ¸À®¤·¤Þ¤¹¡£
'preamble' ¤Þ¤¿¤Ï 'header' ¤Ï¡¢standalone ¥â¡¼¥É¤Î¥É¥¥å¥á¥ó¥È¤Î¥×¥ê¥¢ ¥ó¥Ö¥ë¤ËÄɲà LaTeX ¥³¡¼¥É¤ò½ÐÎϤ¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'tikzplot' ¤Ç¤Ï¡¢¥³¥Þ¥ó¥É ' \ path' ¤ÎÂå¤ï¤ê¤Ë ' \ path plot' ¤ò»ÈÍѤ·¤Þ¤¹¡£¤½¤ì¤Ë³¤¯Àþ¼ï (linetype) ¤Î¿ôÃͤΥꥹ¥È (< ltn> ,...) ¤Ï ¤½¤ì¤Ë±Æ¶Á¤µ¤ì¤ëÉÁ²èÀþ¤òÄêµÁ¤·¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎÀþ¼ï¤ËÂФ·¡¢°ì¤Ä¤ÎÉÁ²è¥¹¥¿ ¥¤¥ë¤¬Â¸ºß¤·¤Þ¤¹¡£1 °Ê¾å¤Î¤¹¤Ù¤Æ¤ÎÀþ¼ï¤ËÂФ·¤Æ¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï 'smooth' ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó 'tikzarrows' ¤ò»ÈÍѤ¹¤ë¤È¡¢¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿ gnuplot ¤ÎÌð (arrow) ¤Î¥¹¥¿¥¤¥ë¤ò TikZ ¤ÎÌð¤Î¥¹¥¿¥¤¥ë¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¤³¤ì¤Ï¡¢Ìð¤ÎÄê µÁ¤Î³Ñ¤ÎÃͤò '¸í¤Ã¤Æ»ÈÍѤ¹¤ë' ¤³¤È¤Ç¤Ê¤µ¤ì¤Æ¤¤¤Þ¤¹¡£Î㤨¤Ð¡¢³Ñ '7' ¤Ë ¤è¤ëÌð¤Î¥¹¥¿¥¤¥ë¤Ï TikZ ¥¹¥¿¥¤¥ë 'gp arrow 7' ¤Ë³ä¤êÅö¤Æ¤é¤ì¡¢Â¾¤ËÍ¿¤¨ ¤é¤ì¤¿ÃͤϤ¹¤Ù¤Æ̵»ë¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢TikZ ½ÐÎÏ·Á¼°¤Ï¤¹¤Ù¤Æ¤Î Ìð¤ËÂФ·¤Æ¥¹¥Æ¥ë¥¹·Á¤ÎÌðÀè¤ò»ÈÍѤ·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î gnuplot ¤Î¤è¤¦¤Ë ¤¹¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó 'gparrows' ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
'cmykimages' ¤Ç¤Ï¡¢¥¤¥ó¥é¥¤¥ó²èÁü¥Ç¡¼¥¿¤ËÂФ·¤Æ RGB ¥«¥é¡¼¥â¥Ç¥ë¤ÎÂå¤ï ¤ê¤Ë CMYK ¥â¥Ç¥ë¤ò»ÈÍѤ·¤Þ¤¹¤¬¡¢Â¾¤Î¤¹¤Ù¤Æ¤Î¿§ (Àþ¤Î¿§¤Ê¤É) ¤Ï¡¢¤½¤ì¤é ¤¬¡¢Î㤨¤Ð xcolors ¥Ñ¥Ã¥±¡¼¥¸¤Ç½èÍý¤µ¤ì¤ë¤Î¤Ç¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Î±Æ¶Á¤ò¼õ ¤±¤Þ¤»¤ó¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢²èÁü¤¬¥¤¥ó¥é¥¤¥ó²èÁü¤Ç¤Ê¤¯³°Éô¥Ç¡¼¥¿¤Ç¤¢¤ë ¾ì¹ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'externalimages' ¤ò»ÈÍѤ¹¤ë¤È¡¢¤¹¤Ù¤Æ¤Î¥Ó¥Ã¥È¥Þ¥Ã¥×²èÁü¤ò³° Éô¤Î PNG ²èÁü¤È¤·¤Æ½ñ¤½Ð¤·¡¢¤½¤ì¤é¤¬Ê¸½ñ¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤ËÆɤ߹þ¤Þ¤ì¤ë¤è ¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£DVI ¥Õ¥¡¥¤¥ë¡¢¤ª¤è¤Ó¤½¤Î¸å¤Î PostScript ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹ ¤ë¤Ë¤Ï¡¢PNG ¥Õ¥¡¥¤¥ë¤ò EPS ¥Õ¥¡¥¤¥ë¤Ë¡¢Ê̤ËÊÑ´¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì ¤ÏÎ㤨¤Ð ImageMagick ¤Î convert ¤Ç¹Ô¤¨¤Þ¤¹¡£Æ©ÌÀ²½¥Ó¥Ã¥È¥Þ¥Ã¥×²èÁü¤Ï ¾ï¤Ë³°Éô PNG ²èÁü¤È¤·¤ÆÀ¸À®¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'nobitmap' ¤Ï¡¢¥Í¥¤¥Æ¥£¥Ö¤Î PS, PDF ¥¤¥ó¥é¥¤¥ó²èÁü·Á¼°¤ÎÂå ¤ï¤ê¤Ë¡¢²èÁü¤òÅɤêÄÙ¤µ¤ì¤¿Ä¹Êý·Á¤È¤·¤Æ¥ì¥ó¥À¥ê¥ó¥°¤·¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç ¥ó¤Ï¡¢²èÁü¤¬¥¤¥ó¥é¥¤¥ó²èÁü¤Ç¤Ê¤¯³°Éô¥Ç¡¼¥¿¤Ç¤¢¤ë¾ì¹ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó 'providevars' ¤Ï¡¢gnuplot ¤ÎÆâÉôÊÑ¿ô¡¢¥æ¡¼¥¶ÊÑ¿ô¤ò¡¢TeX ¥¹ ¥¯¥ê¥×¥ÈÆâ¤Ç¤â¥³¥Þ¥ó¥É ' \ gpgetvar{< var name> }' ¤ò»ÈÍѤ¹¤ë¤³¤È¤ÇÍøÍÑ²Ä Ç½¤Ë¤µ¤»¤Þ¤¹¡£ÍøÍѤǤ¤ëÊÑ¿ô¤Î°ìÍ÷¤ò¸«¤ë¤Ë¤Ï¡¢'show variables all' ¥³ ¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
ʸ»úÎó < fontdesc> ¤Ë¤Ï¡¢Î㤨¤Ð ' \ small' ¤Î¤è¤¦¤Ê TeX/LaTeX/ConTeXt ¤Ç ͸ú¤Ê¥Õ¥©¥ó¥È¥³¥Þ¥ó¥É¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤¡¢¤½¤ì¤Ï¡¢"font=< fontdesc> " ¤Î·Á¼°¤Î¥Î¡¼¥É¥Ñ¥é¥á¡¼¥¿¤È¤·¤ÆľÀÜÅϤµ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤¢¤ë¥Î¡¼¥É¤Ë¥³¡¼ ¥É¤òÄɲ乤ë¤Î¤Ë¡Ö¤ï¤¶¤È´Ö°ã¤¨¤Æ¡×»È¤¨¤Þ¤¹¡£Î㤨¤Ð ' \ small,yshift=1ex' ¤â͸ú¤Ç¤¹¤¬¡¢',yshift=1ex' ¤â͸ú¤Ç¡¢¤³¤Á¤é¤Ï¸½ºß¤Î¥Õ¥©¥ó¥ÈÀßÄê¤òÊѹ¹ ¤·¤Þ¤»¤ó¡£¤·¤«¤·¥ê¥¹¥È¤ÎÂè 2 °ú¿ô¤ÏÎã³°¤Ç¤¹¡£¤½¤ì¤¬ < ¿ôÃÍ> {ñ°Ì} ¤Î·Á¼° ¤Î¿ôÃͤξì¹ç¡¢¤½¤ì¤Ï¾¤Î½ÐÎÏ·Á¼°¤Ç¤½¤¦¤Ç¤¢¤ë¤è¤¦¤Ë¥Õ¥©¥ó¥È¥µ¥¤¥º¤È²ò¼á ¤µ¤ì¡¢Âè 1 °ú¿ô¤ËÄɲ䵤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£Ã±°Ì¤¬¾Êά¤µ¤ì¤¿ÃÍ¤Ï 'pt' ñ°Ì¤È ²ò¼á¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢' \ sffamily,12,fill=red' ¤Ï¡¢ÇØ·Ê¿§¤¬ÀÖ¤Ç 12pt ¤Î LaTeX sans serif ¥Õ¥©¥ó¥È¤òÀßÄꤷ¤Þ¤¹¡£ Ʊ¤¸¤³¤È¤¬ ConTeXt ¤Ë¤â¸À¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢' \ switchtobodyfont[iwona],10' ¤Ï¥Õ¥©¥ó¥È¤ò 10pt ¥µ¥¤¥º¤Î Iwona ¤ËÊѹ¹¤·¤Þ¤¹¡£ Plain TeX ¥æ¡¼¥¶¤Ï¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤ÎÊѹ¹¤ÏºÇ½é¤Î°ú¿ô¤ÇÌÀ¼¨Åª¤Ë¹Ô¤ï¤Ê¤± ¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤Î½Ì¼Ü¤òÀµ¤·¤¯¼èÆÀ¤¹¤ë¤è¤¦¡¢2 ¤ÄÌܤâƱ ¤¸ÃͤËÀßÄꤹ¤Ù¤¤Ç¤¹¡£
ʸ»úÎó¤Ïñ°ì¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤ËÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Æó½Å°úÍÑÉä¤Ç ¤¯¤¯¤é¤ì¤¿Ê¸»úÎó¤Ë¤Ï¡¢²þ¹Ô¤Î ' \ n' ¤Ê¤É¤ÎÆÃÊ̤Êʸ»ú¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£
set terminal macintosh {singlewin | multiwin} {vertical | novertical} {size <width>, <height> | default}
'singlewin' ¤Ïñ°ì¥¦¥£¥ó¥É¥¦¤Ø¤ÎÀ©¸Â¤Ç¤¢¤ê¡¢¥¢¥Ë¥á¡¼¥·¥ç¥óÍѤËÍÍѤǤ¹¡£ 'multiwin' ¤ÏÊ£¿ô¤Î¥¦¥£¥ó¥É¥¦¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ 'vertical' ¤Ï gx ¥ª¥×¥·¥ç¥ó¤Î¸µ¤Ç¤Î¤ß͸ú¤Ç¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ç¤Ï²óž ¤·¤¿Ê¸»úÎó¤ò¿âľÊý¸þ¤Ë½ñ¤¤Þ¤¹¡£novertical ¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó¤ò̵¸ú¤Ë¤· ¤Þ¤¹¡£ size < width> , < height> ¤Ï preferences dialog ¤ÇÀßÄꤵ¤ì¤¿¥°¥é¥Õ¥µ¥¤¥º ¤ò½ñ¤´¹¤¨¡¢'set term mac size default' ¤« 'set term mac default' ¤¬»Ø Äꤵ¤ì¤ë¤Þ¤Ç¤½¤ÎÃͤÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£
'set term mac size default' ¤Ï¥¦¥£¥ó¥É¥¦¥µ¥¤¥º¤ÎÀßÄê¤ò preferences dialog ¤ÇÀßÄꤷ¤¿¤â¤Î¤Ë¤·¤Þ¤¹¡£
'set term mac default' ¤ÏÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÀßÄꤷ¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï nogx, multiwin, novertical ¤Ç¤¹¡£
multiwin ¥ª¥×¥·¥ç¥ó¤Î¸µ¤Ç¥°¥é¥Õ¤òºîÀ®¤·¡¢¤½¤Î¸å singlewin ¤Ë¥¹¥¤¥Ã¥Á¤· ¤¿¾ì¹ç¡¢¼¡¤Î plot ¥³¥Þ¥ó¥É¤Ç¤Ï¹¹¤Ë°ì¤Ä¥¦¥£¥ó¥É¥¦¤¬ºî¤é¤ì¡¢¤³¤Î¿·¤·¤¤¥¦ ¥£¥ó¥É¥¦¤Ç¤Ï singlewin ¤¬Í¸ú¤Ê´Ö»ÈÍѤµ¤ì¤Þ¤¹¡£¤½¤·¤Æ multiwin ¤ËÌá¤ê¡¢ ¤¤¤¯¤Ä¤«¤Î¥°¥é¥Õ¤òÀ¸À®¤·¡¢¤Þ¤¿ºÆ¤Ó singlewin ¤Ë¥¹¥¤¥Ã¥Á¤¹¤ë¤È¡¢¤â¤·¸µ ¤Î 'singlewin' ¥¦¥£¥ó¥É¥¦¤¬¤Þ¤À³«¤¤¤Æ¤¤¤ì¤Ð¤½¤ì¤¬»È¤ï¤ì¡¢¤½¤¦¤Ç¤Ê¤±¤ì ¤Ð¿·¤·¤¤ 'singlewin' ¥¦¥£¥ó¥É¥¦¤¬ºî¤é¤ì¤Þ¤¹¡£'singlewin' ¥¦¥£¥ó¥É¥¦¤Ï ÈÖ¹æÉÕ¤±¤Ï¤µ¤ì¤Þ¤»¤ó¡£
ʸ½ñÃæ¤Ç¿Þ¤ò»È¤¦¤Ë¤Ï¡¢gnuplot ¤Î½ÐÎϤ¹¤ë¥Õ¥¡¥¤¥ë¤òÆþÎϤȤ·¤Æ METAFONT ¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥æ¡¼¥¶¤Ï¥Õ¥©¥ó¥È¤¬ºî¤é¤ì¤ë ¥×¥í¥»¥¹¤È¿·¤·¤¯ºî¤Ã¤¿¥Õ¥©¥ó¥È¤ò¥É¥¥å¥á¥ó¥È¤Ë¼è¤ê¹þ¤à¤¿¤á¤Î´ðÁÃÃ챤¬ ɬÍפȤʤê¤Þ¤¹¡£¤·¤«¤·¡¢»ÈÍѤ¹¤ë¥µ¥¤¥È¤Ç METAFONT ¥×¥í¥°¥é¥à¤¬Å¬ÀÚ¤ËÀß Äꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢·Ð¸³¤Î¤Ê¤¤¥æ¡¼¥¶¤Ç¤â¤½¤¦ÌäÂê¤Ê¤¯Áàºî¤Ï¤Ç¤¤ë¤Ç¤·¤ç¤¦¡£
¥°¥é¥ÕÃæ¤Îʸ»ú¤Ï METAFONT ¤Îʸ»ú¥»¥Ã¥È¤Ë´ð¤Å¤¤¤Æ¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£¸½¾õ ¤Ç¤Ï Computer Modern Roman ¥Õ¥©¥ó¥È¥»¥Ã¥È¤¬ÆþÎϤǤ¹¤¬¡¢¥æ¡¼¥¶¤ÏɬÍ×¤Ê ¥Õ¥©¥ó¥È¤ò²¿¤Ç¤â¼«Í³¤ËÁª¤Ö¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤¿¤À¤·¤½¤ÎÁª¤ó¤À¥Õ¥©¥ó¥È¤Î METAFONT ¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤¬»È¤¨¤ë¾õÂ֤ˤʤäƤ¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¸Ä¡¹¤Î ʸ»ú¤Ï METAFONT ¤ÎÃæ¤ÇÊÌ¡¹¤Î¥Ô¥¯¥Á¥ã¡¼ÊÑ¿ô¤ËÊݸ¤µ¤ì¡¢Ê¸»ú¤¬É¬Íפˤʤà ¤¿¤È¤¤Ë¤³¤ì¤é¤ÎÊÑ¿ô¤¬Áàºî (²óž¡¢¿½ÌÅù) ¤µ¤ì¤Þ¤¹¡£·çÅÀ¤Ï¡¢METAFONT ¥×¥í¥°¥é¥à¤¬²ò¼á¤ËÍפ¹¤ë»þ´Ö¤Ç¤¹¡£¤¢¤ë·×»»µ¡ (¤Ä¤Þ¤ê PC) ¤Ç¤Ï¡¢¥Ô¥¯¥Á ¥ã¡¼ÊÑ¿ô¤ò¤¿¤¯¤µ¤ó»ÈÍѤ·¤¹¤®¤ë¤³¤È¤Ç¡¢»È¤¨¤ë¥á¥â¥ê¤ÎÎ̤賦¤¬ÌäÂê¤òµ¯ ¤³¤¹¤³¤È¤â¤¢¤ê¤Þ¤¹¡£
mf ¥É¥é¥¤¥Ð¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤Ï¤¢¤ê¤Þ¤»¤ó¡£
- ½ÐÎÏ·Á¼° (terminal) ¤ò METAFONT ¤Ë¥»¥Ã¥È:
set terminal mf
set output "myfigures.mf"
- gnuplot ¤ò½ªÎ»
- gnuplot ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ METAFONT ¤ò¼Â¹Ô¤·¡¢TFM ¥Õ¥¡¥¤¥ë¤È GF ¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹¡£¥°¥é¥Õ¤Ï³ä¤ÈÂ礤¤ (5x3 ¥¤¥ó¥Á) ¤Î¤Ç¡¢memmax ¤ÎÃͤ¬ ¾¯¤Ê¤¯¤È¤â 150000 ¤Ç¤¢¤ë METAFONT ¤ò»È¤¦É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£Unix ¤Ç¤Ï¡¢ ¤½¤ì¤ÏÄ̾ï bigmf ¤È¤¤¤¦Ì¾Á°¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼¤Ç¤Ï¡¢virmf ¥³¥Þ¥ó¥É¤¬ big ÈǤΠMETAFONT ¤Ç¤¢¤ë¤È²¾Äꤷ¡¢¼Â¹ÔÎã¤ò¼¨¤·¤Þ¤¹:
- METAFONT ¤ÎΩ¤Á¾å¤²:
virmf '&plain'
\mode:=CanonCX; % ¤¢¤Ê¤¿¤Î»ÈÍѤ¹¤ë¥×¥ê¥ó¥¿¤ò»ØÄê
mag:=1; % ¤¢¤Ê¤¿¤Î¹¥¤ß¤ÎÃͤò»ØÄê
input myfigures.mf
- gftopk ¤ò»È¤Ã¤Æ GF ¥Õ¥¡¥¤¥ë¤«¤é PK ¥Õ¥¡¥¤¥ë¤òÀ¸À®:
gftopk myfigures.300gf myfigures.300pk
- ʸ½ñ¤Ë¤½¤Î¥°¥é¥Õ¤òÆþ¤ì¤ë¤¿¤á¤Ë TeX ¤Ë¤½¤Î¥Õ¥©¥ó¥È̾¤ò»Ø¼¨:
\font\gnufigs=myfigures
\centerline{\gnufigs\char0} \centerline{\gnufigs\char1}
¤³¤Î¤ä¤êÊý¤Ï¡¢°ìÅÙ¥Õ¥©¥ó¥È¤òÀ¸À®¤·¤Æ¤·¤Þ¤¨¤Ð¡¢ÂçÉý¤Ë»þ´Ö¤ÎÀáÌó¤Ë¤Ê¤ê¤Þ ¤¹: TeX ¤Ï¥°¥é¥Õ¤òʸ»ú¤È¤·¤Æ»È¤¤¡¢¤½¤ì¤òÇÛÃÖ¤¹¤ë¤Ë¤Ï¤´¤¯¾¯¤Ê¤¤»þ´Ö¤·¤« »ÈÍѤ·¤Þ¤»¤ó¤·¡¢¥°¥é¥Õ¤è¤ê¤âʸ½ñ¤ÎÊý¤¬½¤Àµ¤¹¤ë¤³¤È¤¬Â¿¤¤¤Ç¤·¤ç¤¦¤«¤é¡£ ¤½¤·¤Æ¤³¤ì¤Ï TeX ¤Î¥á¥â¥ê¤ÎÀáÌó¤Ë¤â¤Ê¤ê¤Þ¤¹¡£METAFONT ¥É¥é¥¤¥Ð¤ò»È¤¦¤â ¤¦ºÇ¸å¤Î°ì¤Ä¤ÎÍøÅÀ¤Ï¡¢À¸À®¤µ¤ì¤ë DVI ¥Õ¥¡¥¤¥ë¤¬ËÜÍè¤Î¥Ç¥Ð¥¤¥¹Èó°Í¸¤Ê ·Á¤Ë¤Ê¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£¤½¤ì¤Ï eepic ¤ä tpic ¥É¥é¥¤¥Ð¤Î¤è¤¦¤Ê \ special ¥³¥Þ¥ó¥É¤òÁ´¤¯»È¤ï¤Ê¤¤¤«¤é¤Ç¤¹¡£
MIF 3.00 ¥É¥é¥¤¥Ð¤Ç¤Ï¤¤¤¯¤Ä¤«¤Î¥ª¥×¥·¥ç¥ó¤¬ÀßÄê¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal mif {color | colour | monochrome} {polyline | vectors} {help | ?}
colour ¤ÏÀþ¼ï (line type) > = 0 ¤ÎÀþ¤ò¥«¥é¡¼ (MIF separation 2-7) ¤Ç¡¢ monochrome ¤ÏÁ´¤Æ¤ÎÀþ¤ò¹õ (MIF separation 0) ¤ÇÉÁ²è¤·¤Þ¤¹¡£ polyline ¤Ï¶ÊÀþ¤òϢ³¶ÊÀþ¤È¤·¤ÆÉÁ²è¤·¡¢vectors ¤Ï¶ÊÀþ¤ò¥Ù¥¯¥È¥ë¤Î ½¸¤Þ¤ê¤È¤·¤ÆÉÁ²è¤·¤Þ¤¹¡£ help ¤È ? ¤Ï¥ª¥ó¥é¥¤¥ó¥Ø¥ë¥×¤òɸ½à¥¨¥é¡¼½ÐÎϤËɽ¼¨¤·¤Þ¤¹¡£Î¾¼Ô¤Ï¤½ ¤Î»ÈÍÑË¡¤Îû¤¤ÀâÌÀ¤ò½ÐÎϤ·¡¢help ¤Ï¹¹¤Ë¥ª¥×¥·¥ç¥ó¤âɽ¼¨¤·¤Þ¤¹¡£
Îã:
set term mif colour polylines # ¥Ç¥Õ¥©¥ë¥È set term mif # ¥Ç¥Õ¥©¥ë¥È set term mif vectors set term mif help
mp ¥É¥é¥¤¥Ð¤Ï Metapost ¥×¥í¥°¥é¥à¤ØÆþÎϤ¹¤ë¤³¤È¤ò°Õ¿Þ¤·¤¿½ÐÎϤòÀ¸À® ¤·¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ Metapost ¤ò¼Â¹Ô¤¹¤ë¤È¥°¥é¥Õ¤ò´Þ¤à EPS ¥Õ¥¡¥¤ ¥ë¤¬ºî¤é¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï Metapost ¤ÏÁ´¤Æ¤Îʸ»úÎó¤ò TeX ¤ËÄ̤·¤Þ ¤¹¡£¤³¤ì¤Ï¥¿¥¤¥È¥ë¤ä¸«½Ð¤·¤ËǤ°Õ¤Î TeX ¤Îµ¹æ¤òËܼÁŪ¤Ë»È¤¦¤³¤È¤¬¤Ç¤ ¤ë¡¢¤È¤¤¤¦ÍøÅÀ¤ò»ý¤Ä¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
½ñ¼°:
set term mp {color | colour | monochrome} {solid | dashed} {notex | tex | latex} {magnification <magsize>} {psnfss | psnfss-version7 | nopsnfss} {prologues <value>} {a4paper} {amstex} {"<fontname> {,<fontsize>}"}
¥ª¥×¥·¥ç¥ó color ¤ÏÀþ¤ò¥«¥é¡¼¤Ç½ñ¤¯¤³¤È¤ò°ÕÌ£¤· (¤½¤ì¤ò¥µ¥Ý¡¼¥È¤¹¤ë ¥×¥ê¥ó¥¿¤ä¥Ç¥£¥¹¥×¥ì¥¤¾å¤Ç)¡¢monochrome (¤Þ¤¿¤Ï²¿¤â»ØÄꤷ¤Ê¤¤¾ì¹ç) ¤Ï¹õ¤ÎÀþ¤¬ÁªÂò¤µ¤ì¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó solid ¤ÏÀþ¤ò¼ÂÀþ¤ÇÉÁ¤¡¢dashed (¤Þ¤¿¤Ï̵»ØÄê) ¤ÏÀþ¤ò°Û¤Ê¤ë¥Ñ¥¿¡¼¥ó¤ÎÅÀÀþ¤ÇÉÁ¤Ê¬¤±¤Þ¤¹¡£solid ¤¬»Ø Äꤵ¤ì¤Æ¤«¤Ä color ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤Û¤È¤ó¤ÉÁ´¤Æ¤ÎÀþ¤¬Æ±¤¸¤â ¤Î¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤â²¿¤«¤Î¾ì¹ç¤Ë¤ÏÍÍѤǤ·¤ç¤¦¤«¤éǧ¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó notex ¤Ï´°Á´¤Ë TeX ¤ò±ª²ó¤·¤Þ¤¹¤Î¤Ç¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Î¸µ¤Ç ¤Ï¸«½Ð¤·¤Ë¤Ï TeX ¤Î¥³¡¼¥É¤Ï»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¸Å¤¤¥°¥é¥Õ¥Õ ¥¡¥¤¥ë¡¢¤¢¤ë¤¤¤Ï TeX ¤Ç¤ÏÆü쵹æ¤È¤·¤Æ²ò¼á¤µ¤ì¤Æ¤·¤Þ¤¦ $ ¤ä % ¤Î ¤è¤¦¤Ê°ìÈÌŪ¤Êʸ»ú¤ò¤¿¤¯¤µ¤ó»È¤¦¥Õ¥¡¥¤¥ë¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó tex ¤Ï¡¢TeX ¤Ç½èÍý¤¹¤ëʸ»úÎó¤ò½ÐÎϤ¹¤ë¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó latex ¤Ï¡¢LaTeX ¤Ç½èÍý¤¹¤ëʸ»úÎó¤ò½ÐÎϤ¹¤ë¤è¤¦¤ËÀßÄꤷ¤Þ ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤Æ TeX ¤Ç¤Ï»È¤¨¤Ê¤¤¤±¤ì¤É LaTeX ¤Ç¤Ï»È¤¨¤ë¤â¤Î¡¢Î㤨¤Ðʬ ¿ô¤ò \ frac ¤Ç½ñ¤¤¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¾ì¹ç¤Ï¡¢ ´Ä¶ÊÑ¿ô TEX ¤Ë LaTeX ¤Î¼Â¹Ô¥×¥í¥°¥é¥à̾ (Ä̾ï¤Ï latex) ¤òÀßÄꤹ¤ë¤«¡¢ ¤¢¤ë¤¤¤Ï mpost -tex=< LaTeX ¤Î¼Â¹Ô¥×¥í¥°¥é¥à̾> ... ¤È¤¹¤ë¤³¤È¤ò˺¤ì ¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£¤½¤¦¤Ç¤Ê¤¤¤È metapost ¤Ï¥Æ¥¥¹¥È¤Î½èÍý¤Ë TeX ¤ò»È¤ª¤¦ ¤È¤·¤Æ¼ºÇÔ¤·¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£
TeX ¤Ë¤ª¤±¤ë¥Õ¥©¥ó¥È¥µ¥¤¥º¤ÎÊѹ¹¤Ï¿ô¼°¤Ë¤Ï¸ú²Ì¤¬¤Ê¤¯¡¢¤½¤Î¤è¤¦¤ÊÊѹ¹¤ò ¹Ô¤Ê¤¦¤È¤Æ¤â´Êñ¤ÊÊýË¡¤Ï¡¢Âç°èŪ¤Ë³ÈÂçΨ (magnification factor) ¤òÀßÄê ¤¹¤ë°Ê³°¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤½¤ì¤¬¥ª¥×¥·¥ç¥ó magnification ¤Î°ÕÌ£¤Ç¤¹¡£ ¤½¤Î¾ì¹ç¤Ï³ÈÂçΨ¤ò¸å¤í¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Á´¤Æ¤Îʸ»ú (¥°¥é¥Õ¤Ç¤Ï ¤Ê¤¯) ¤Ï¤³¤ÎΨ¤Ç³ÈÂ礵¤ì¤Þ¤¹¡£¿ô¼°¤ò¥Ç¥Õ¥©¥ë¥È¤Î 10pt °Ê³°¤Î¾¤Î¥µ¥¤¥º¤Ç½ñ¤¤¿¤¤¾ì¹ç¤Ï¤³¤ì¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À»ÄÇ°¤Ê¤³¤È¤ËÁ´¤Æ¤Î¿ô¼°¤¬Æ± ¤¸¥µ¥¤¥º¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬¡¢¤·¤«¤·¡¢°Ê²¼¤Î MP ½ÐÎϤÎÊÔ½¸¤Ë´Ø¤¹¤ëÀâÌÀ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£mag ¤Ï notex ¤Î¸µ¤Ç¤âƯ¤¤Þ¤¹¤¬¡¢¤½¤ì¤ò¹Ô¤Ê¤¦ °ÕÌ£¤¬¤Ê¤¤¤¯¤é¤¤ (°Ê²¼¤Ë½Ò¤Ù¤ë) ¥Õ¥©¥ó¥È¥µ¥¤¥º¥ª¥×¥·¥ç¥ó¤Ï¤¦¤Þ¤¯Æ¯¤¤Þ ¤¹¡£
¥ª¥×¥·¥ç¥ó psnfss ¤Ï postscript ¥Õ¥©¥ó¥È¤ò LaTeX ¤ÈÁȤ߹ç¤ï¤»¤Æ»ÈÍÑ ¤·¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï LaTeX ¤¬»È¤ï¤ì¤ë¾ì¹ç¤Î¤ß°ÕÌ£¤ò»ý¤Á¤Þ¤¹¤Î¤Ç¡¢ ¼«Æ°Åª¤Ë latex ¥ª¥×¥·¥ç¥ó¤¬ÁªÂò¤µ¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎLaTeX ¥Ñ¥Ã¥±¡¼¥¸¤ò»ÈÍѤ·¤Þ¤¹:inputenc(latin1), fontenc(T1), mathptmx, helvet(scaled=09.2), courier, latexsym, textcomp
¥ª¥×¥·¥ç¥ó psnfss-version7 ¤â postscript ¥Õ¥©¥ó¥È¤ò LaTeX ¤ÈÁȤ߹ç¤ï ¤»¤Æ»ÈÍѤ·¤Þ¤¹ (latex ¤¬¼«Æ°Åª¤ËÁªÂò¤µ¤ì¤Þ¤¹) ¤¬¡¢°Ê²¼¤Î LaTeX ¥Ñ¥Ã¥±¡¼¥¸¤ò»ÈÍѤ·¤Þ¤¹:inputenc(latin1), fontenc(T1), times, mathptmx, helvet, courier
¥ª¥×¥·¥ç¥ó nopsnfss ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¡¢É¸½àŪ¤Ê¥Õ¥©¥ó¥È (²¿¤â»ØÄꤵ¤ì¤Æ ¤¤¤Ê¤±¤ì¤Ð cmr10) ¤¬»È¤ï¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó prologues ¤ÏÄɲäÎÃͤò°ú¿ô¤Ë»ý¤Á¡¢metapost ¥Õ¥¡¥¤¥ë¤Ë prologues:=< ¤½¤ÎÃÍ> ¤È¤¤¤¦¹Ô¤òÄɲä·¤Þ¤¹¡£ÃͤȤ·¤Æ 2 ¤ò»ØÄꤹ¤ë¤È metapost ¤Ï eps ¥Õ¥¡¥¤¥ë¤òºî¤ë¤è¤¦¤Ë postscript ¥Õ¥©¥ó¥È¤ò»ÈÍѤ·¡¢¤½¤ì ¤Ë¤è¤ê¤½¤Î·ë²Ì¤ÏÎ㤨¤Ð ghostscript ¤Ê¤É¤Ç»²¾È¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£É¸ ½à¤Ç¤Ï metapost ¤Ï TeX ¤Î¥Õ¥©¥ó¥È¤ò»ÈÍѤ·¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤ò»²¾È¤¹¤ë¤Ë¤Ï (La)TeX ¤Î¥Õ¥¡¥¤¥ë¤Ë¼è¤ê¹þ¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó noprologues ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¡¢prologue ¤Ç»ØÄꤷ¤¿¤¤¤«¤Ê¤ë¹Ô ¤âÄɲ䵤ì¤Þ¤»¤ó¡£
¥ª¥×¥·¥ç¥ó a4paper ¤Ï [a4paper] ¤ò documentclass ¤ËÄɲä·¤Þ¤¹¡£É¸ ½à¤Ç¤Ï letter ÍÑ»æ (¥Ç¥Õ¥©¥ë¥È) ¤¬»È¤ï¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï LaTeX ¤Ç¤Î¤ß»È¤ï¤ì¤Þ¤¹¤Î¤Ç¡¢¼«Æ°Åª¤Ë latex ¥ª¥×¥·¥ç¥ó¤¬ÁªÂò¤µ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó amstex ¤Ï¡¢¼«Æ°Åª¤Ë latex ¥ª¥×¥·¥ç¥ó¤òÁªÂò¤·¡¢°Ê²¼¤ÎLaTeX ¥Ñ¥Ã¥±¡¼¥¸¤ò»ÈÍѤ·¤Þ¤¹: amsfonts, amsmath(intlimits)¡£¥Ç¥Õ¥©¥ë¥È ¤Ç¤Ï¤³¤ì¤é¤Ï»ÈÍѤµ¤ì¤Þ¤»¤ó¡£
°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ì¾Á°¤Ï¥Õ¥©¥ó¥È̾¤òɽ¤·¡¢set label ¤ä set title ¤Ç ÌÀ¼¨Åª¤Ë¥Õ¥©¥ó¥È¤¬Í¿¤¨¤é¤ì¤Ê¤¤¾ì¹ç¤Ï¤³¤Î¥Õ¥©¥ó¥È¤¬»È¤ï¤ì¤Þ¤¹¡£¥Õ¥©¥ó¥È ¤Ï TeX ¤¬Ç§¼±¤Ç¤¤ë (TFM ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë) ¤â¤Î¤ò»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï notex ¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð "cmr10" ¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì ¤Ð "pcrr8r" (Courier) ¤¬»È¤ï¤ì¤Þ¤¹¡£notex ¤Î¸µ¤Ç¤â¡¢Metapost ¤Ë¤Ï TFM ¥Õ¥¡¥¤¥ë¤ÏɬÍפǤ¹¡£pcrr8r.tfm ¤Ï LaTeX psnfss ¥Ñ¥Ã¥±¡¼¥¸¤Î Courier ¥Õ¥©¥ó¥È̾¤È¤·¤ÆÍ¿¤¨¤é¤ì¤Æ¤¤¤Þ¤¹¡£notex ¤Î¥Ç¥Õ¥©¥ë¥È¤«¤é¥Õ¥© ¥ó¥È¤òÊѹ¹¤¹¤ë¾ì¹ç¤Ï¡¢¾¯¤Ê¤¯¤È¤â 32-126 ¤Î¥³¡¼¥ÉÈÏ°Ï¤Ï ASCII ¥¨¥ó¥³¡¼ ¥Ç¥£¥ó¥°¤Ë°ìÃפ¹¤ë¤â¤Î¤òÁª¤ó¤Ç¤¯¤À¤µ¤¤¡£cmtt10 ¤â¤Û¤Ü»È¤¨¤Þ¤¹¤¬¡¢¤· ¤«¤·¤³¤ì¤Ï¥³¡¼¥É 32 (¥¹¥Ú¡¼¥¹) ¤Ë¥¹¥Ú¡¼¥¹¤Ç¤Ï¤Ê¤¤Ê¸»ú¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¡£
¥µ¥¤¥º¤Ï 5.0 ¤«¤é 99.99 ¤Î´Ö¤ÎǤ°Õ¤Î¿ô»ú¤ò»ØÄê¤Ç¤¡¢¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï 10.0 ¤¬»È¤ï¤ì¤Þ¤¹¡£¤Ê¤ë¤Ù¤¯ magstep ¥µ¥¤¥º¡¢¤Ä¤Þ¤ê 1.2 ¤ÎÀ°¿ô¤«¤Þ¤¿ ¤Ï 0.5 ¾è¤Î 10 Çܤò¾®¿ô°Ê²¼ 2 ·å̤Ëþ¤ò´Ý¤á¤¿Ãͤò»ÈÍѤ¹¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡£¤½¤ì¤Ï¤½¤ì¤¬ TeX ¤Î¥·¥¹¥Æ¥à¤ÇºÇ¤â¤è¤¯»È¤ï¤ì¤ë¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º ¤À¤«¤é¤Ç¤¹¡£
Á´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤Ï¾Êά²Äǽ¤Ç¤¹¡£¥Õ¥©¥ó¥È¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¤½¤ì¤Ï (ɬÍ×¤Ê ¤é¥µ¥¤¥º¤â¤Ä¤±¤Æ) °ìÈֺǸå¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Õ¥©¥ó¥È̾¤Ë¤½¤Î¥µ ¥¤¥º¾ðÊ󤬴ޤޤì¤Æ¤¤¤¿¤È¤·¤Æ¤â¡¢¥µ¥¤¥º¤òÊѤ¨¤ë¤Ë¤Ï¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò»ØÄê ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð set term mp "cmtt12" ¤Ï cmtt12 ¤ò¥Ç¥Õ¥©¥ë ¥È¤Î¥µ¥¤¥º¤Ç¤¢¤ë 10 ¤Ë½Ì¤á¤Æ»È¤¤¤Þ¤¹¡£¤½¤ì¤Ï¿ʬ˾¤Þ¤Ê¤¤¤³¤È¤Ç¤·¤ç¤¦¤· cmtt10 ¤ò»È¤¦Êý¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£
°Ê²¼¤Î ascii ʸ»ú¤Ï¡¢TeX ¤Ç¤ÏÆÃÊ̤˰·¤ï¤ì¤Þ¤¹:
$, &, #, %, _; |, <, >; ^, ~, \, {, }
¸«½Ð¤·¤òÆó½Å°úÍÑÉä¤Ç°Ï¤à¾ì¹ç¡¢TeX ¥³¡¼¥É¤Î¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤Ï¥¨¥¹¥±¡¼¥× ¤¹¤ë (2 ¤Ä½ñ¤¯) ɬÍפ¬¤¢¤ê¤Þ¤¹¡£Ã±°ì°úÍÑÉä¤ò»È¤¨¤Ð¤½¤ì¤òÈò¤±¤ë¤³¤È¤Ï¤Ç ¤¤Þ¤¹¤¬¡¢º£Å٤ϲþ¹Ô¤È¤·¤Æ \ n ¤ò»È¤¨¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤ò½ñ¤¤¤Æ¤¤¤ë¸½ ºß¡¢gnuplot 3.7 ¤Ï plot ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤é¤ì¤¿¥¿¥¤¥È¥ë¤Ï¡¢Ê̤ʾì½ê¤ÇÍ¿ ¤¨¤é¤ì¤¿¾ì¹ç¤È¤Ï°Û¤Ê¤ë½èÍý¤ò¤·¤Þ¤¹¤·¡¢°úÍÑÉä¤Î¥¹¥¿¥¤¥ë¤Ë¤«¤«¤ï¤é¤º TeX ¥³¥Þ¥ó¥É¤Î¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤ÏÆó½Å²½¤·¤¿Êý¤¬Îɤµ¤½¤¦¤Ç¤¹¡£
Metapost ¤Î²èÁü¤Ï TeX ¤Îʸ½ñÆâ¤Ç°ìÈ̤˻Ȥï¤ì¤Æ¤¤¤Þ¤¹¡£Metapost ¤Ï¥Õ¥© ¥ó¥È¤ò TeX ¤¬¹Ô¤Ê¤¦¤Î¤ÈÁ´¤¯Æ±¤¸ÊýË¡¤Ç°·¤¤¡¢¤½¤ì¤Ï¾¤ÎÂçÄñ¤Îʸ½ñÀ°·Á¥× ¥í¥°¥é¥à¤È¤Ï°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥°¥é¥Õ¤¬ LaTeX ¤Îʸ½ñ¤Ë graphics ¥Ñ¥Ã¥±¡¼ ¥¸¤Ç¼è¤ê¹þ¤Þ¤ì¡¢¤¢¤ë¤¤¤Ï epsf.tex ¤ò»È¤Ã¤Æ plainTeX ¤Ë¼è¤ê¹þ¤Þ¤ì¡¢¤½¤· ¤Æ dvips (¤Þ¤¿¤Ï¾¤Î dvi ¤«¤é ps ¤Ø¤ÎÊÑ´¹¥½¥Õ¥È) ¤Ç PostScript ¤ËÊÑ´¹ ¤µ¤ì¤ë¾ì¹ç¡¢¤½¤Î¥°¥é¥ÕÆâ¤Îʸ»ú¤ÏÂçÄñ¤ÏÀµ¤·¤¯°·¤ï¤ì¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¡£¤·¤« ¤·¡¢Metapost ½ÐÎϤò¤½¤Î¤Þ¤Þ PostScript ¥¤¥ó¥¿¥×¥ê¥¿¤ËÁ÷¤Ã¤Æ¤â¡¢¥°¥é¥Õ Æâ¤Îʸ»ú¤Ï½ÐÎϤµ¤ì¤Ê¤¤¤Ç¤·¤ç¤¦¡£
- ¤Þ¤º terminal ¥É¥é¥¤¥Ð¤ò Metapost ¤ËÀßÄê¡¢Î㤨¤Ð:
set terminal mp mono "cmtt12" 12
- ½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÁªÂò¡¢Î㤨¤Ð:
set output "figure.mp"
- ¥°¥é¥Õ¤òºîÀ®¡£³Æ plot (¤Þ¤¿¤Ï multiplot ¤Î³Æ¥°¥ë¡¼¥×) ¤Ï¤½¤ì¤¾¤ìÊÌ¤Ê Metapost beginfig...endfig ¥°¥ë¡¼¥×¤Ëʬ¤±¤é¤ì¤Þ¤¹¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥µ ¥¤¥º¤Ï 5x3 ¥¤¥ó¥Á¤Ç¤¹¤¬¡¢¤½¤ì¤Ï set size 0.5,0.5 ¤È¤«¡¢¤½¤¦¤·¤¿¤¤¤È »×¤¦Å¬Åö¤Ê³ä¹ç¤ò¤½¤Î¤è¤¦¤Ë»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
- gnuplot ¤ò½ªÎ»¡£
- gnuplot ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ Metapost ¤ò¼Â¹Ô¤·¤Æ EPS ¥Õ¥¡¥¤¥ë¤òºî
À®:
mpost figure.mp OR mp figure.mp
- ¤½¤Î¥°¥é¥Õ¤òʸ½ñ¤Ë¼è¤ê¹þ¤à¤Ë¤Ï LaTeX graphics ¥Ñ¥Ã¥±¡¼¥¸¤ä¡¢plainTeX
¤Ç¤Ï epsf.tex ¤ò»ÈÍÑ:
\usepackage{graphics} % LaTeX \input epsf.tex % plainTeX
\DeclareGraphicsRule{*}{eps}{*}{}
\includegraphics{figure.2} % LaTeX \epsfbox{figure.2} % plainTeX
mp ¥É¥é¥¤¥Ð¤Î postscript ¥É¥é¥¤¥Ð¤ËÂå¤ï¤ëÍøÅÀ¤Ï¡¢¤â¤·¤¢¤ë¤È¤¹¤ì¤Ð¡¢¤½ ¤ì¤ÏÊÔ½¸²Äǽ¤Ê½ÐÎϤǤ¢¤ë¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¡£¤³¤Î½ÐÎϤò²Äǽ¤Ê¸Â¤êåºÎï¤Ë ¤¹¤ë¤¿¤á¤Î¡¢¤«¤Ê¤ê¤ÎÅØÎϤ¬Ê§¤ï¤ì¤Þ¤·¤¿¡£Metapost ¸À¸ì¤Ë´Ø¤¹¤ë¤½¤¦¤¤¤Ã ¤¿Ãμ±¤Î¤ª¤«¤²¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤ä¿§¤ÏÇÛÎó lt[] ¤ä col[] ¤òÊÔ½¸ ¤¹¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¼ÂÀþ/ÅÀÀþ¡¢¥«¥é¡¼/Çò¹õ¤È¤¤¤Ã¤¿Áª Âò¤â¡¢¿¿µ¶ÃͤȤ·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ë dashedlines ¤ä colorlines ¤òÊѹ¹ ¤¹¤ë¤³¤È¤Ç¹Ô¤Ê¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î tex ¥ª¥×¥·¥ç¥ó¤¬Í¸ú¤Ê¾ì¹ç¡¢¥Ö¥í ¥Ã¥¯ vebatimtex...etex ¤òÊÔ½¸¤¹¤ë¤³¤È¤Ç¡¢¥é¥Ù¥ëʸ»ú¥Õ¥©¥ó¥È¤ËÂФ¹¤ë Âç°èŪ¤ÊÊѹ¹¤¬¹Ô¤Ê¤¨¤Þ¤¹¡£Æäˡ¢¤â¤·Ë¾¤à¤Ê¤é LaTeX ¤Î¥×¥ê¥¢¥ó¥Ö¥ë¤òÄÉ ²Ã¤¹¤ë¤³¤È¤â¤Ç¤¡¢¤½¤Î¾ì¹ç LaTeX ¤Î»ý¤Ä¥µ¥¤¥ºÊѹ¹¥³¥Þ¥ó¥É¤ò»È¤¨¤ë¤Î¤Ç ºÇÂç¤Î½ÀÆðÀ¤òȯ´ø¤Ç¤¤ë¤Ç¤·¤ç¤¦¡£¤¿¤À¤·¡¢Metapost ¤Ë plainTeX ¤Ç¤Ê¤¯ LaTeX ¤ò¼Â¹Ô¤µ¤»¤ë¤è¤¦¡¢Å¬ÀÚ¤Ê MP ÀßÄêÊÑ¿ô¤òÀßÄꤹ¤ë¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯ ¤À¤µ¤¤¡£
½ñ¼°:
set terminal next {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"}
< mode> ¤Ï default ¤Î¤ß»ØÄê¤Ç¤¡¢¤½¤Î¾ì¹çÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È ¤Ë¤Ê¤ê¤Þ¤¹¡£< type> ¤Ï new ¤« old ¤Ç¡¢old ¤Ï¸Å¤¤Ã±°ì¥¦¥£¥ó¥É¥¦¤ò Í׵ᤷ¤Þ¤¹¡£< color> ¤Ï color (¥«¥é¡¼) ¤« monochrome (Çò¹õ)¡¢ < dashed> ¤Ï solid (¼ÂÀþ¤Î¤ß) ¤« dashed (ÅÀÀþ¤¬Í¸ú)¡¢"< fontname> " ¤Ï͸ú¤Ê PostScript ¥Õ¥©¥ó¥È¤Î̾Á°¤ò¡¢< fontsize> ¤Ï PostScript ¥Ý¥¤¥ó ¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º¤ò¡¢< title> ¤Ï GnuTerm ¥¦¥£¥ó¥É¥¦¤Î¥¿¥¤¥È¥ë ¤ò¤½¤ì¤¾¤ìÀßÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï new, monochrome, dashed, "Helvetica", 14pt ¤Ç¤¹¡£
Îã:
set term next default set term next 22 set term next color "Times-Roman" 14 set term next color "Helvetica" 12 title "MyPlot" set term next old
ÅÀ¤ÎÂ礤µ¤Ï set linestyle ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal openstep {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"}
< mode> ¤Ï default ¤Î¤ß»ØÄê¤Ç¤¡¢¤½¤Î¾ì¹çÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤¬¥Ç¥Õ¥©¥ë¥È ¤Ë¤Ê¤ê¤Þ¤¹¡£< type> ¤Ï new ¤« old ¤Ç¡¢old ¤Ï¸Å¤¤Ã±°ì¥¦¥£¥ó¥É¥¦¤ò Í׵ᤷ¤Þ¤¹¡£< color> ¤Ï color (¥«¥é¡¼) ¤« monochrome (Çò¹õ)¡¢ < dashed> ¤Ï solid (¼ÂÀþ¤Î¤ß) ¤« dashed (ÅÀÀþ¤¬Í¸ú)¡¢"< fontname> " ¤Ï͸ú¤Ê PostScript ¥Õ¥©¥ó¥È¤Î̾Á°¤ò¡¢< fontsize> ¤Ï PostScript ¥Ý¥¤¥ó ¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º¤ò¡¢< title> ¤Ï GnuTerm ¥¦¥£¥ó¥É¥¦¤Î¥¿¥¤¥È¥ë ¤ò¤½¤ì¤¾¤ìÀßÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï new, monochrome, dashed, "Helvetica", 14pt ¤Ç¤¹¡£
Îã:
set term openstep default set term openstep 22 set term openstep color "Times-Roman" 14 set term openstep color "Helvetica" 12 title "MyPlot" set term openstep old
ÅÀ¤ÎÂ礤µ¤Ï set linestyle ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
set terminal pbm {<fontsize>} {<mode>} {size <x>,<y>}
< fontsize> ¤Ï small ¤« medium ¤« large ¤Ç¡¢< mode> ¤Ï monochrome ¤« gray ¤« color ¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥µ¥¤¥º¤Ï 640 ¥Ô¥¯¥»¥ë¤ÎÉý¤Ç 480 ¥Ô¥¯¥»¥ë¤Î¹â¤µ¤Ç¤¹¡£½ÐÎÏ¥µ¥¤¥º¤Ï¡¢x ¤È y ¤ÎξÊý¤ò 8 ¥Ô¥¯¥»¥ëÇܤ·¤¿ ¤â¤Î¤ËºÇ¤â¶á¤¯¤Ê¤ë¤è¤¦¤Ë¶õÇò¤¬Äɲ䵤ì¤Þ¤¹¡£É¬ÍפǤ¢¤ì¤Ð¡¢¤³¤Î¶õÇòÉôʬ ¤Ï¸å¤Ç¼è¤ê½ü¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
pbm ¥É¥é¥¤¥Ð¤Î½ÐÎÏ¤Ï < mode> ¤Ë¤è¤ê¤Þ¤¹: monochrome ¤Ï portable bitmap (PBM; 1 ¥Ô¥¯¥»¥ë 1 ¥Ó¥Ã¥È) ¤ò¡¢gray ¤Ï portable graymap (PGM; 1 ¥Ô¥¯¥»¥ë 3 bit) ¤ò¡¢color ¤Ï portable pixmap (PPM; 1 ¥Ô¥¯¥»¥ë 4 ¥Ó ¥Ã¥È) ¤ò½ÐÎϤ·¤Þ¤¹¡£
¤³¤Î¥É¥é¥¤¥Ð¤Î½ÐÎϤϡ¢NETPBM ¤Ë¤è¤Ã¤ÆÄ󶡤µ¤ì¤ëÍÍ¡¹¤Ê²èÁüÊÑ´¹¡¢²èÁü½è Íý¥Ä¡¼¥ë¤Ç»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ Jef Poskanzer ¤Î PBMPLUS ¥Ñ¥Ã¥±¡¼¥¸¤Ë´ð ¤Å¤¯ NETPBM ¤Ï¡¢¾åµ¤Î PBM ·Á¼°¤«¤é GIF, TIFF, MacPaint, Macintosh PICT, PCX, X11 ¥Ó¥Ã¥È¥Þ¥Ã¥×¡¢¤½¤Î¾¿¤¯¤Î·Á¼°¤ËÊÑ´¹¤¹¤ë¥×¥í¥°¥é¥à¤òÄó ¶¡¤·¤Þ¤¹¡£´°Á´¤Ê¾ðÊó¤Ï http://netpbm.sourceforge.net/ ¤Ë¤¢¤ê¤Þ¤¹¡£
Îã:
set terminal pbm small monochrome # ¥Ç¥Õ¥©¥ë¥È set terminal pbm color medium size 800,600 set output '| pnmrotate 45 | pnmtopng > tilted.png' # NETPBM ¤òÍøÍÑ
½ñ¼°:
set terminal pdf {monochrome|color|colour} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {font "<fontname>{,<fontsize>}"} {fontscale <scale>} {linewidth <lw>} {rounded|butt} {solid|dashed} {dl <dashlength>}} {size <XX>{unit},<YY>{unit}}
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¸Ä¡¹¤ÎÀþ¼ï¤ËÂФ·¤Æ°Û¤Ê¤ë¿§¤òÍѤ¤¤Þ¤¹¡£monochrome ¤òÁª Âò¤¹¤ë¤ÈÁ´¤Æ¤ÎÀþ¼ï¤ò¹õ¤ÇÉÁ¤¤Þ¤¹¤Î¤Ç¡¢Àþ¼ï¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë dashed ¤ò »È¤¦¤ÈÎɤ¤¤Ç¤·¤ç¤¦¡£¥â¥Î¥¯¥í¥â¡¼¥É¤Ç¤âÅɤê¤Ä¤Ö¤·Îΰè¤ä¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Ç ¤ÏÌÀ¼¨Åª¤Ë¿§¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
< font> ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç»È¤ï¤ì¤ë¥Õ¥©¥ó¥È̾ (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï Helvetica) ¤Ç < fontsize> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 12) ¤Ç¤¹¡£ ¤É¤Î¤è¤¦¤Ê¥Õ¥©¥ó¥È¤¬»È¤¨¤Æ¡¢¿·¤·¤¤¥Õ¥©¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Ë¤Ï¡¢¤È¤¤ ¤Ã¤¿¤³¤È¤Ë´Ø¤·¤Æ¤Ï¡¢¥í¡¼¥«¥ë¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë pdflib ¤Î¥É¥¥å¥á ¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¥ª¥×¥·¥ç¥ó enhanced ¤Ï¡¢³Èĥʸ»úÎó½èÍýµ¡Ç½ (²¼Éդʸ»ú¡¢¾åÉդʸ»ú¡¢ ¤ª¤è¤ÓÊ£¿ô¤Î¥Õ¥©¥ó¥È¤ÎÍøÍÑ) ¤ò͸ú¤Ë¤·¤Þ¤¹¡£°Ê²¼»²¾È: enhanced (12)¡£
ÉÁ²è¤Ë¤ª¤±¤ëÁ´¤Æ¤ÎÀþ¤ÎÉý¤Ï linewidth ¤Ç»ØÄꤹ¤ë°ø»Ò < n> ¤ÇÁý²Ã¤¹¤ë¤³ ¤È¤¬¤Ç¤¤Þ¤¹¡£Æ±Íͤˡ¢dashlength ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÅÀÀþ¤Î¶õÇòÉôʬ¤ËÂФ¹¤ë ÀÑ°ø»Ò¤Ç¤¹¡£
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
PDF ½ÐÎϤΥǥե©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢5inch x 3inch ¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï¡¢¤³¤ì¤ò¥æ¡¼¥¶¤Î»ØÄꤹ¤ë¤â¤Î¤ØÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î X, Y ¥µ¥¤¥º¤Î ñ°Ì¤Ï¥¤¥ó¥Á¤Ç¤¹¤¬¡¢Â¾¤Îñ°Ì¤â»ÈÍѲÄǽ¤Ç¤¹ (¸½ºß¤Ï cm ¤Î¤ß)¡£
½ñ¼°:
set term pdfcairo {{no}enhanced} {mono|color} {solid|dashed} {background <rgbcolor> {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded|butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}}
¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤ò¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤Æ¡¢¥Õ¥©¥ó¥È¤ä½ñ¼°¥³¥Þ¥ó¥É (¾åÉÕ¡¢²¼ÉդʤÉ) ¤ò¥é¥Ù¥ë¤ä¾¤Îʸ»úÎó¤Ë Ëä¤á¹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£³Èĥʸ»úÎó½èÍý¥â¡¼¥É¤Î½ñ¼°¤Ï¾¤Î gnuplot ¤Î½Ð ÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£
ÉÁ²è¤Ë¤ª¤±¤ëÁ´¤Æ¤ÎÀþ¤ÎÉý¤Ï¡¢linewidth ¤Ç»ØÄꤹ¤ë°ø»Ò < lw> ¤ÇÊѹ¹¤Ç¤ ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÀþÉý¤Ï 0.25 ¥Ý¥¤¥ó¥È¤Ç¤¹¡£(1 "PostScript" ¥Ý¥¤¥ó¥È = 1/72 ¥¤¥ó¥Á = 0.353 mm)
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
PDF ½ÐÎϤΥǥե©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢5inch x 3inch ¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï¡¢¤³¤ì¤ò¥æ¡¼¥¶¤Î»ØÄꤹ¤ë¤â¤Î¤ØÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î X, Y ¥µ¥¤¥º¤Î ñ°Ì¤Ï¥¤¥ó¥Á¤Ç¤¹¤¬¡¢Â¾¤Îñ°Ì¤â»ÈÍѲÄǽ¤Ç¤¹ (¸½ºß¤Ï cm ¤Î¤ß)¡£size ¥ª ¥×¥·¥ç¥ó¤Ç»ØÄꤵ¤ì¤¿¤³¤È¤Ë¤è¤ëÉÁ²è¤Îü¤«¤éü¤Þ¤Ç¤ÎÎΰè¤Ï¡¢¾ï¤Ë¥¹¥¯¥ê¡¼ ¥óºÂɸ¤Î 0.0 ¤«¤é 1.0 ¤ËÂбþ¤·¤Þ¤¹¡£
<
font>
¤Ï¡¢"FontFace,FontSize" ¤Î½ñ¼°¡¢¤Ä¤Þ¤ê¥Õ¥©¥ó¥È̾¤È¥µ¥¤¥º¤ò¥«
¥ó¥Þ¤Ç¶èÀڤä¿°ì¤Ä¤Îʸ»úÎó¤È¤·¤Æɽµ¤·¤Þ¤¹¡£FontFace ¤Ï¡¢'Arial' ¤Î
¤è¤¦¤ÊÄ̾ï¤Î¥Õ¥©¥ó¥È̾¤Ç¤¹¡£¥Õ¥©¥ó¥È̾¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¡¢pdfcairo ½ÐÎÏ·Á
¼°¤Ç¤Ï'Sans' ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£FontSize ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¥µ¥¤
¥º¤Ç¤¹¡£»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢pdfcairo ½ÐÎÏ·Á¼°¤Ç¤Ï 12 ¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Îɸ
½à¥Õ¥©¥ó¥È¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤Î½ÐÎÏ·Á¼°¤Î¥Ñ¥é¥á¡¼¥¿ fontscale
¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 0.5 ¤Ê¤Î¤Ç¡¢¸«¤«¤±¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï¡¢PDF ½ÐÎϤò¥Õ¥ë¥µ
¥¤¥º¤Ç¸«¤¿¾ì¹ç¤è¤ê¤â¾®¤µ¤¯¤Ê¤ë¤Ç¤·¤ç¤¦¡£
Îã : set term pdfcairo font "Arial,12" set term pdfcairo font "Arial" # ¥Õ¥©¥ó¥È̾¤Î¤ßÊѹ¹ set term pdfcairo font ",12" # ¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î¤ßÊѹ¹ set term pdfcairo font "" # ¥Õ¥©¥ó¥È̾¤È¥µ¥¤¥º¤ò¥ê¥»¥Ã¥È
¥Õ¥©¥ó¥È¤Ï¡¢Ä̾ï¤Î¥Õ¥©¥ó¥È½èÍýµ¡¹½¤Ë¤è¤ê¼èÆÀ¤µ¤ì¤Þ¤¹¡£Windows ¤Ç¤Ï¡¢¥Õ ¥©¥ó¥È¤Ï¥³¥ó¥È¥í¡¼¥ë¥Ñ¥Í¥ë¤Î "¥Õ¥©¥ó¥È" ¤Î¹àÌܤǹ½À®¤µ¤ì¸«¤Ä¤±¤é¤ì¤ë ¤â¤Î¤Ç¡¢UNIX ¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¤Ï "fontconfig" ¤Ç½èÍý¤µ¤ì¤Þ¤¹¡£
ʸ»úÎó¤Î¥ì¥¤¥¢¥¦¥È¤Ë»ÈÍѤµ¤ì¤ë¥é¥¤¥Ö¥é¥ê Pango ¤Ï¡¢utf-8 ¤Ë´ð¤Å¤¤¤Æ¤¤ ¤Þ¤¹¤Î¤Ç¡¢pdfcairo ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢Ê¸»ú¥³¡¼¥É¤ò utf-8 ¤ËÊÑ´¹¤¹¤ëɬÍפ¬¤¢ ¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÆþÎÏʸ»ú¥³¡¼¥É¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ·¤Æ¤¤¤ë 'locale' ¤Ë´ð¤Å¤¤Þ¤¹¡£Â¾¤Îʸ»ú¥³¡¼¥É¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢¤¢¤Ê¤¿¤¬¤É¤Îʸ»ú¥³¡¼¥É¤ò»È ¤Ã¤Æ¤¤¤ë¤Î¤«¤ò³Î¼Â¤Ë gnuplot ¤¬¤ï¤«¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: encoding (82.20)¡£
pango ¤Ï¡¢unicode ¥Þ¥Ã¥Ô¥ó¥°¤Ç¤Ê¤¤¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ïͽ´ü¤»¤Ì·ë²Ì¤òÍ¿¤¨ ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£Î㤨¤Ð Symbol ¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ï¡¢pdfcairo ½ÐÎÏ·Á¼° ¤Ï¡¢Ê¸»ú¥³¡¼¥É¤ò unicode ¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë http://www.unicode.org/ ¤ÇÄó ¶¡¤µ¤ì¤ë¥Þ¥Ã¥Ô¥ó¥°¤òÍøÍѤ·¤Þ¤¹¡£¤Ê¤ª¡¢"the Symbol font" ¤Ï¡¢Acrobat Reader ¤È°ì½ï¤Ë "SY______.PFB" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë Adobe Symbol ¥Õ ¥©¥ó¥È¤Ç¤¢¤ë¤È²ò¼á¤µ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÂå¤ï¤ê¤Ë¡¢ OpenOffice.org ¤È°ì½ï¤Ë "opens___.ttf" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤ë OpenSymbol ¥Õ¥©¥ó¥È¤¬Æ±¤¸Ê¸»ú¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£Microsoft ¤â Symbol ¥Õ¥©¥ó¥È ("symbol.ttf") ¤òÇÛÉÛ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï°Û¤Ê¤ëʸ»ú¥»¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤ ¤Æ¡¢¤¤¤¯¤Ä¤«¤Ï·ç¤±¤Æ¤¤¤Þ¤¹¤·¡¢¤¤¤¯¤Ä¤«¤Ï¿ô¼°µ¹æ¤ËÊѤï¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤Þ ¤¹¡£¤¢¤Ê¤¿¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç¤Ê¤ó¤é¤«¤ÎÌäÂ꤬µ¯¤¤¿¾ì¹ç (Î㤨¤Ð¥Ç¥â¥¹ ¥¯¥ê¥×¥È enhancedtext.dem ¤¬¤Á¤ã¤ó¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤È¤¤¤Ã¤¿¾ì¹ç) ¤Ï¡¢ Adobe ¤« OpenOffice ¤Î Symbol ¥Õ¥©¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢Microsoft ¤Î Symbol ¥Õ¥©¥ó¥È¤òºï½ü¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£"windings" ¤Î¤è ¤¦¤Ê¾¤ÎÈóɸ½à¤Î¥Õ¥©¥ó¥È¤Ç¤âÆ°ºî¤¹¤ë¤³¤È¤¬Êó¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
ÉÁ²è¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢º£¤Î¤È¤³¤íÊѹ¹¤Ç¤¤Þ¤»¤ó¡£½ÐÎϤò¤è¤êÎɤ¯¤¹¤ë¤¿¤á ¤Ë¤³¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¡¢¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Î 2 ¤Ä¤Î µ¡¹½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ï¡¢¿åÊ¿¤ä¿âľ¤Ç¤Ê¤¤Àþ¤ò³ê¤é¤«¤Ëɽ¼¨¤·¤Þ¤¹¡£ ¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤ÈÁȤǥԥ¯¥»¥ë¤è¤ê¤â¾®¤µ¤¤¥µ¥¤ ¥º¤Ç¤ÎÀºÅÙ¤òÄ󶡤·¡¢gnuplot ¤¬ÈóÀ°¿ôºÂɸ¤ÎľÀþ¤ò½ñ¤±¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÂгÑÊý¸þ¤ÎľÀþ (Î㤨¤Ð 'plot x') ¤¬º¸±¦¤ËÍɤì¤ë¤Î¤òÈò¤±¤Þ¤¹¡£
½ñ¼°:
set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"}
persist ¤ò»ØÄꤹ¤ë¤È¡¢³Æ¥°¥é¥Õ¤Ï¤½¤ì¤¾¤ì¼«¿È¤Î¥¦¥£¥ó¥É¥¦¤ò»ý¤Á¡¢¤½¤Î ¤¹¤Ù¤Æ¤Î¥¦¥£¥ó¥É¥¦¤Ï gnuplot ¤¬½ªÎ»¤·¤¿¸å¤â³«¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹¡£ server ¤ò»ØÄꤹ¤ë¤È¡¢Á´¤Æ¤Î¥°¥é¥Õ¤ÏƱ¤¸¥¦¥£¥ó¥É¥¦Æâ¤Ë¸½¤ï¤ì¡¢¤½¤ì¤Ï gnuplot ½ªÎ»¸å¤â³«¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤µ¤é¤ËÄɲäΠ¿ô°ú¿ô¤ò¼è¤ê¡¢¤½¤Î¿ô»ú¤Ï¥µ¡¼¥Ð¥×¥í¥»¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ë¤Ê¤ê¤Þ¤¹¡£¤è¤Ã¤Æ Ʊ»þ¤ËÊ£¿ô¤Î¥µ¡¼¥Ð¥¦¥£¥ó¥É¥¦¤ò»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
widelines ¤ò»ØÄꤹ¤ë¤È¡¢Á´¤Æ¤Î¥°¥é¥Õ¤ÏÉý¤Î¹¤¤Àþ¤ÇÉÁ¤«¤ì¤Þ¤¹¡£ enhanced ¤ò»ØÄꤹ¤ë¤È¡¢¾åÉդʸ»ú¤ä²¼Éդʸ»ú¡¢Ê£¿ô¤Î¥Õ¥©¥ó¥È¤ò»È¤¦ ¤³¤È¤¬¤Ç¤¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced text (12))¡£¥³¥¢ PostScript ¥Õ ¥©¥ó¥È¤Î¥Õ¥©¥ó¥È̾¤Ï 1 ʸ»ú¤Ë¾Êά¤Ç¤¤Þ¤¹ (T/H/C/S ¤Ï¤½¤ì¤¾¤ì Times/Helvetica/Courier/Symbol ¤ò°ÕÌ£¤·¤Þ¤¹)¡£
title ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤ÏÉÁ²è¥¦¥£¥ó¥É¥¦¤Î¥¿¥¤¥È¥ë¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£ ¤½¤ì¤Ï¥µ¡¼¥Ð¥¤¥ó¥¹¥¿¥ó¥¹Ì¾¤È¤·¤Æ¤â»È¤ï¤ì¡¢¤½¤ì¤ÏÄɲäοô°ú¿ô¤ò¾å½ñ¤¤· ¤Þ¤¹¡£
Àþ¤ÎÉý¤Ï set linestyle ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
set terminal png {{no}enhanced} {{no}transparent} {{no}interlace} {{no}truecolor} {rounded|butt} {linewidth <lw>} {dashlength <dl>} {tiny | small | medium | large | giant} {font "<face> {,<pointsize>}"} {fontscale <scale>} {size <x>,<y>} {{no}crop} {background <rgb_color>}
PNG, JPEG, GIF ²èÁü¤Ï¡¢³°Éô¥é¥¤¥Ö¥é¥ê libgd ¤ò»È¤Ã¤ÆÀ¸À®¤µ¤ì¤Þ¤¹¡£PNG
¤ÎÉÁ²è¤Ï¡¢ImageMagick ¥Ñ¥Ã¥±¡¼¥¸¤Î¥½¥Õ¥È 'display' ¤Ë¤½¤Î½ÐÎϤò°Ê²¼¤Î¤è¤¦¤Ë¥Ñ¥¤¥×¤ÇÅϤ¹¤³¤È¤ÇÂÐÏÃŪ¤Ëɽ¼¨¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
set term png set output '| display png:-'
transparent ¤Ï¡¢¥É¥é¥¤¥Ð¤ËÇØ·Ê¿§¤ÎÆ©ÌÀ²½ (transparent) ¤ò¹Ô¤¦¤è¤¦»Ø ¼¨¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï notransparent ¤Ç¤¹¡£
interlace ¤Ï¡¢¥É¥é¥¤¥Ð¤Ë¥¤¥ó¥¿¡¼¥ì¡¼¥¹ GIF ¤òÀ¸À®¤¹¤ë¤è¤¦»Ø¼¨¤·¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï nointerlace ¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó linewidth ¤È dashlength ¤Ï³ÈÂçΨ¤Ç¡¢ÉÁ²è¤µ¤ì¤ë¤¹¤Ù¤Æ¤Î Àþ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ì¤é¤ÏÍÍ¡¹¤ÊÉÁ²è¥³¥Þ¥ó¥É¤ÇÍ׵ᤵ¤ì¤ëÃÍ ¤Ë³Ý»»¤µ¤ì¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢½ÐÎϤµ¤ì¤ë PNG ²èÁü¤Ï 256 ¸Ä¤ËÈÖ¹æÉÕ¤±¤é¤ì¤¿¿§¤ò»ÈÍѤ· ¤Þ¤¹¡£Âå¤ï¤ê¤Ë¥ª¥×¥·¥ç¥ó truecolor ¤ò»È¤¨¤Ð¡¢24 ¥Ó¥Ã¥È/¥Ô¥¯¥»¥ë¤Î¿§ ¾ðÊó¤ò»ý¤Ä TrueColor ²èÁü¤¬À¸À®¤µ¤ì¤Þ¤¹¡£Æ©ÌÀ²½Åɤê¤Ä¤Ö¤· (transparent fill) ¤ò»ÈÍѤ¹¤ë¤È¤¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó truecolor ¤¬É¬Íפˤʤê¤Þ¤¹¡£ °Ê²¼»²¾È: fillstyle (82.66.4)¡£ÇطʤÎÆ©ÌÀ²½¤Ï¡¢ÈÖ¹æÉÕ¤±²èÁü¤« TrueColor ²èÁü¤Ç ²Äǽ¤Ç¤¹¡£
butt ¤ÏÀþʬ¤ÎÉÁ²è¤Ç¡¢¤½¤Îü¤ÎÅÀ¤Ç¤Î¤Ï¤ß¤À¤·¤òµ¯¤³¤µ¤Ê¤¤ÉÁ²è¥á¥½¥Ã¥É ¤ò»È¤¦¤è¤¦¥É¥é¥¤¥Ð¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢ÀþÉý¤¬ 1 ¤è¤êÂ礤¤¾ì¹ç¤Ë ¤Î¤ß͸ú¤Ç¤¹¡£¤³¤ÎÀßÄê¤Ï¡¢¿åÊ¿Àþ¡¢¿âľÀþ¤ÎÉÁ²è¤Î¾ì¹ç¤ËÍÍѤǤ·¤ç¤¦¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï rounded (´Ý¤á) ¤Ç¤¹¡£
¥Õ¥©¥ó¥È¤ÎÁªÂò¤Î¾ÜºÙ¤Ï¡¢¤ä¤äÊ£»¨¤Ç¤¹¡£
°Ê²¼¤ËƱ¤¸°ÕÌ£¤ò»ý¤Ä´Êñ¤ÊÎã¤ò¼¨¤·¤Þ¤¹:
set term png font arial 11 set term png font "arial,11"
½ÐÎÏÉÁ²è¥µ¥¤¥º < x,y> ¤Ï¥Ô¥¯¥»¥ëñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 640x480 ¤Ç ¤¹¡£°Ê²¼¤â»²¾È: canvas (7), set size (82.65)¡£ ÉÁ²è½ªÎ»¸å¤Îü¤Î;Çò¤Ï¡¢¥ª¥×¥·¥ç¥ó crop ¤Ç¼è¤ê½ü¤¯¤³¤È¤¬¤Ç¤¡¢¤½¤Î·ë ²Ì¤È¤·¤Æ¤½¤Î²èÁü¥µ¥¤¥º¤Ï¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï nocrop ¤Ç¤¹¡£
set terminal png medium size 640,480 background '#ffffff'
¤³¤ÎÎã¤Ï medium ¥µ¥¤¥º¤Î¡¢Â礤µÊѹ¹ÉÔǽ¤Ç²óž¤Ç¤¤Ê¤¤ÁȤ߹þ¤ß¥Õ¥©¥ó¥È ¤ò»ÈÍѤ·¡¢Æ©ÌÀ²½¤µ¤ì¤Ê¤¤ÇØ·Ê¿§¤È¤·¤ÆÇò (16 ¿Ê¿ô¤Î 24bit RGB) ¤ò»ÈÍѤ·¤Þ ¤¹¡£
set terminal png font arial 14 size 800,600
¤³¤ì¤Ï¡¢'arial' ¤È¤¤¤¦¥Õ¥§¡¼¥¹Ì¾¤Î¥¹¥±¡¼¥é¥Ö¥ë¥Õ¥©¥ó¥È¤ò¸¡º÷¤·¡¢¥Õ¥©¥ó ¥È¥µ¥¤¥º¤ò 14pt ¤ËÀßÄꤷ¤Þ¤¹¡£¥Õ¥©¥ó¥È¤Î¸¡º÷¤¬¤É¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¤«¤Ë¤Ä ¤¤¤Æ¤Ï°Ê²¼»²¾È: fonts (15)¡£
set terminal png transparent truecolor enhanced
¤³¤ì¤Ï¡¢24 ¥Ó¥Ã¥È/¥Ô¥¯¥»¥ë¤Î¿§¾ðÊó¤ò»ÈÍѤ·¡¢ÇطʤòÆ©ÌÀ²½¤·¤Þ¤¹¡£¤½¤·¤Æ ɽ¼¨¤µ¤ì¤ëʸ»úÎó¤ÎÇÛÃÖÀ©¸æ¤È¤·¤Æ enhanced text ¥â¡¼¥É¤ò»ÈÍѤ·¤Þ¤¹¡£
½ñ¼°:
set term pngcairo {{no}enhanced} {mono|color} {solid|dashed} {{no}transparent} {{no}crop} {background <rgbcolor> {font <font>} {fontscale <scale>} {linewidth <lw>} {rounded|butt} {dashlength <dl>} {size <XX>{unit},<YY>{unit}}
¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤ò¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤Æ¡¢¥Õ¥©¥ó¥È¤ä½ñ¼°¥³¥Þ¥ó¥É (¾åÉÕ¡¢²¼ÉդʤÉ) ¤ò¥é¥Ù¥ë¤ä¾¤Îʸ»úÎó¤Ë Ëä¤á¹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£³Èĥʸ»úÎó½èÍý¥â¡¼¥É¤Î½ñ¼°¤Ï¾¤Î gnuplot ¤Î½Ð ÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£
ÉÁ²è¤Ë¤ª¤±¤ëÁ´¤Æ¤ÎÀþ¤ÎÉý¤Ï¡¢°ø»Ò < lw> ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
PNG ½ÐÎϤΥǥե©¥ë¥È¤Î¥µ¥¤¥º¤Ï¡¢640 x 480 ¥Ô¥¯¥»¥ë¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï¡¢¤³¤ì¤ò¥æ¡¼¥¶¤Î»ØÄꤹ¤ë¤â¤Î¤ØÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î X, Y ¥µ¥¤¥º¤Îñ°Ì¤Ï¥Ô¥¯¥»¥ë¤Ç¤¹¤¬¡¢Â¾¤Îñ°Ì¤â»ÈÍѲÄǽ¤Ç¤¹ (¸½ºß¤Ï cm ¤È¥¤¥ó ¥Á)¡£¥µ¥¤¥º¤ò cm ¤«¥¤¥ó¥Á¤ÇÍ¿¤¨¤ë¤È¤½¤ì¤Ï¡¢²òÁüÅÙ 72 dpi ¤Ç¤Î¥Ô¥¯¥»¥ë ¿ô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£size ¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤵ¤ì¤¿¤³¤È¤Ë¤è¤ëÉÁ²è¤Îü¤«¤é ü¤Þ¤Ç¤ÎÎΰè¤Ï¡¢¾ï¤Ë¥¹¥¯¥ê¡¼¥óºÂɸ¤Î 0.0 ¤«¤é 1.0 ¤ËÂбþ¤·¤Þ¤¹¡£
<
font>
¤Ï¡¢"FontFace,FontSize" ¤Î½ñ¼°¡¢¤Ä¤Þ¤ê¥Õ¥©¥ó¥È̾¤È¥µ¥¤¥º¤ò¥«
¥ó¥Þ¤Ç¶èÀڤä¿°ì¤Ä¤Îʸ»úÎó¤È¤·¤Æɽµ¤·¤Þ¤¹¡£FontFace ¤Ï¡¢'Arial' ¤Î
¤è¤¦¤ÊÄ̾ï¤Î¥Õ¥©¥ó¥È̾¤Ç¤¹¡£¥Õ¥©¥ó¥È̾¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¡¢pngcairo ½ÐÎÏ·Á
¼°¤Ç¤Ï'Sans' ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£FontSize ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¥µ¥¤
¥º¤Ç¤¹¡£»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢pngcairo ½ÐÎÏ·Á¼°¤Ç¤Ï 12 ¥Ý¥¤¥ó¥È¤Î¥µ¥¤¥º¤¬
»ÈÍѤµ¤ì¤Þ¤¹¡£
Îã : set term pngcairo font "Arial,12" set term pngcairo font "Arial" # ¥Õ¥©¥ó¥È̾¤Î¤ßÊѹ¹ set term pngcairo font ",12" # ¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î¤ßÊѹ¹ set term pngcairo font "" # ¥Õ¥©¥ó¥È̾¤È¥µ¥¤¥º¤ò¥ê¥»¥Ã¥È
¥Õ¥©¥ó¥È¤Ï¡¢Ä̾ï¤Î¥Õ¥©¥ó¥È½èÍýµ¡¹½¤Ë¤è¤ê¼èÆÀ¤µ¤ì¤Þ¤¹¡£Windows ¤Ç¤Ï¡¢¥Õ ¥©¥ó¥È¤Ï¥³¥ó¥È¥í¡¼¥ë¥Ñ¥Í¥ë¤Î "¥Õ¥©¥ó¥È" ¤Î¹àÌܤǹ½À®¤µ¤ì¸«¤Ä¤±¤é¤ì¤ë ¤â¤Î¤Ç¡¢UNIX ¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¤Ï "fontconfig" ¤Ç½èÍý¤µ¤ì¤Þ¤¹¡£
ʸ»úÎó¤Î¥ì¥¤¥¢¥¦¥È¤Ë»ÈÍѤµ¤ì¤ë¥é¥¤¥Ö¥é¥ê Pango ¤Ï¡¢utf-8 ¤Ë´ð¤Å¤¤¤Æ¤¤ ¤Þ¤¹¤Î¤Ç¡¢pngcairo ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢Ê¸»ú¥³¡¼¥É¤ò utf-8 ¤ËÊÑ´¹¤¹¤ëɬÍפ¬¤¢ ¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÆþÎÏʸ»ú¥³¡¼¥É¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ·¤Æ¤¤¤ë 'locale' ¤Ë´ð¤Å¤¤Þ¤¹¡£Â¾¤Îʸ»ú¥³¡¼¥É¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢¤¢¤Ê¤¿¤¬¤É¤Îʸ»ú¥³¡¼¥É¤ò»È ¤Ã¤Æ¤¤¤ë¤Î¤«¤ò³Î¼Â¤Ë gnuplot ¤¬¤ï¤«¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: encoding (82.20)¡£
pango ¤Ï¡¢unicode ¥Þ¥Ã¥Ô¥ó¥°¤Ç¤Ê¤¤¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ïͽ´ü¤»¤Ì·ë²Ì¤òÍ¿¤¨ ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£Î㤨¤Ð Symbol ¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ï¡¢pngcairo ½ÐÎÏ·Á¼° ¤Ï¡¢Ê¸»ú¥³¡¼¥É¤ò unicode ¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë http://www.unicode.org/ ¤ÇÄó ¶¡¤µ¤ì¤ë¥Þ¥Ã¥Ô¥ó¥°¤òÍøÍѤ·¤Þ¤¹¡£¤Ê¤ª¡¢"the Symbol font" ¤Ï¡¢Acrobat Reader ¤È°ì½ï¤Ë "SY______.PFB" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë Adobe Symbol ¥Õ ¥©¥ó¥È¤Ç¤¢¤ë¤È²ò¼á¤µ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÂå¤ï¤ê¤Ë¡¢ OpenOffice.org ¤È°ì½ï¤Ë "opens___.ttf" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤ë OpenSymbol ¥Õ¥©¥ó¥È¤¬Æ±¤¸Ê¸»ú¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£Microsoft ¤â Symbol ¥Õ¥©¥ó¥È ("symbol.ttf") ¤òÇÛÉÛ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï°Û¤Ê¤ëʸ»ú¥»¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤ ¤Æ¡¢¤¤¤¯¤Ä¤«¤Ï·ç¤±¤Æ¤¤¤Þ¤¹¤·¡¢¤¤¤¯¤Ä¤«¤Ï¿ô¼°µ¹æ¤ËÊѤï¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤Þ ¤¹¡£¤¢¤Ê¤¿¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç¤Ê¤ó¤é¤«¤ÎÌäÂ꤬µ¯¤¤¿¾ì¹ç (Î㤨¤Ð¥Ç¥â¥¹ ¥¯¥ê¥×¥È enhancedtext.dem ¤¬¤Á¤ã¤ó¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤È¤¤¤Ã¤¿¾ì¹ç) ¤Ï¡¢ Adobe ¤« OpenOffice ¤Î Symbol ¥Õ¥©¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢Microsoft ¤Î Symbol ¥Õ¥©¥ó¥È¤òºï½ü¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£"windings" ¤Î¤è ¤¦¤Ê¾¤ÎÈóɸ½à¤Î¥Õ¥©¥ó¥È¤Ç¤âÆ°ºî¤¹¤ë¤³¤È¤¬Êó¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
ÉÁ²è¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢º£¤Î¤È¤³¤íÊѹ¹¤Ç¤¤Þ¤»¤ó¡£½ÐÎϤò¤è¤êÎɤ¯¤¹¤ë¤¿¤á ¤Ë¤³¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¡¢¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Î 2 ¤Ä¤Î µ¡¹½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ï¡¢¿åÊ¿¤ä¿âľ¤Ç¤Ê¤¤Àþ¤ò³ê¤é¤«¤Ëɽ¼¨¤·¤Þ¤¹¡£ ¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤ÈÁȤǥԥ¯¥»¥ë¤è¤ê¤â¾®¤µ¤¤¥µ¥¤ ¥º¤Ç¤ÎÀºÅÙ¤òÄ󶡤·¡¢gnuplot ¤¬ÈóÀ°¿ôºÂɸ¤ÎľÀþ¤ò½ñ¤±¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÂгÑÊý¸þ¤ÎľÀþ (Î㤨¤Ð 'plot x') ¤¬º¸±¦¤ËÍɤì¤ë¤Î¤òÈò¤±¤Þ¤¹¡£
½ñ¼°:
set terminal postscript {default} set terminal postscript {landscape | portrait | eps} {enhanced | noenhanced} {defaultplex | simplex | duplex} {fontfile [add | delete] "<filename>" | nofontfiles} {{no}adobeglyphnames} {level1 | leveldefault} {color | colour | monochrome} {background <rgbcolor> | nobackground} {solid | dashed} {dashlength | dl <DL>} {linewidth | lw <LW>} {rounded | butt} {clip | noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {blacktext | colortext | colourtext} {{font} "fontname{,fontsize}" {<fontsize>}} {fontscale <scale>}
"Can't find PostScript prologue file ... "
landscape ¤È portrait ¤Ï½ÐÎϤ¬²£ÃÖ¤«¡¢½ÄÃÖ¤«¤òÁªÂò¤·¤Þ¤¹¡£ eps ¥â¡¼¥É¤Ï EPS (Encapsulated PostScript) ½ÐÎϤòÀ¸À®¤·¤Þ¤¹¤¬¡¢¤³¤ì ¤ÏÄ̾ï¤Î PostScript ¤Ë¡¢¤½¤ì¤ò¾¤Î¿¤¯¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¼è¤ê¹þ¤à¤³¤È ¤¬¤Ç¤¤ë¤è¤¦¤Ë¤¤¤¯¤Ä¤«¤Î¹Ô¤òÄɲä·¤¿¤â¤Î¤Ç¤¹ (Äɲ䵤ì¤ë¹Ô¤Ï PostScript ¤Î¥³¥á¥ó¥È¹Ô¤Ê¤Î¤Ç¡¢¤è¤Ã¤Æ¤½¤ì¼«¿È¤â¤Á¤ã¤ó¤È°õºþ¤Ç¤¤Þ¤¹)¡£EPS ½ÐÎϤò ÆÀ¤ë¤Ë¤Ï eps ¥â¡¼¥É¤ò»ÈÍѤ·¡¢1 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï 1 ¤Ä¤Î¥°¥é¥Õ¤Î¤ß¡¢¤È ¤·¤Æ¤¯¤À¤µ¤¤¡£eps ¥â¡¼¥É¤Ç¤Ï¥Õ¥©¥ó¥È¤â´Þ¤á¤Æ¥°¥é¥ÕÁ´ÂΤ¬¥Ç¥Õ¥©¥ë¥È¤Î Â礤µ¤ÎȾʬ¤Ë½Ì¤á¤é¤ì¤Þ¤¹¡£
enhanced ¤Ï³Èĥʸ»úÎó½èÍý¥â¡¼¥É (¾åÉդʸ»ú¡¢²¼Éդʸ»ú¡¢¤ª¤è¤ÓÊ£¿ô ¤Î¥Õ¥©¥ó¥È¤ÎÍøÍÑ) ¤Îµ¡Ç½¤ò͸ú¤Ë¤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£ blacktext ¤Ï¡¢¤¿¤È¤¨¥«¥é¡¼¥â¡¼¥É¤Ç¤âÁ´¤Æ¤Îʸ»úÎó¤ò¹õ¤Ç½ñ¤¤Þ¤¹¡£
PostScript ¤ÎξÌÌ°õºþÌ¿Îá (duplex) ¤Ï¡¢¥×¥ê¥ó¥¿¤Ç 1 Ëç¤Î»æ¤ËξÌÌ°õºþ¤¹ ¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£defaultplex ¤Ï¥×¥ê¥ó¥¿¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò»ÈÍÑ ¤·¡¢simplex ¤Ï»æ¤ÎÊÒÌ̤Τ߰õºþ¡¢duplex ¤Ï ξÌÌ°õºþ¤ò¹Ô¤Ê¤¤¤Þ¤¹ (¤¢ ¤Ê¤¿¤Î¥×¥ê¥ó¥¿¤¬¤½¤ì¤ò¹Ô¤Ê¤¨¤Ê¤¤¤Ê¤é̵»ë¤µ¤ì¤Þ¤¹)¡£
"< fontname> " ¤Ï͸ú¤Ê PostScript ¥Õ¥©¥ó¥È¤Î̾Á°¤Ç¡¢< fontsize> ¤Ï PostScript ¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤ÎÂ礤µ¤Ç¤¹¡£ ɸ½àŪ¤Ê postscript ¥Õ¥©¥ó¥È°Ê³°¤Ë¡¢¿ô¼°¤òɽ¸½¤¹¤ë¤Î¤ËÊØÍø¤Ê obliqueSymbol ¥Õ¥©¥ó¥È ("Symbol-Oblique") ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
default ¤ÏÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤ò°Ê²¼¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÀßÄꤷ¤Þ¤¹:landscape, monochrome, dashed, dl 1.0, lw 1.0, defaultplex,noenhanced, "Helvetica", 14pt¡£PostScript ¤Î¥°¥é¥Õ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÂç¤ ¤µ¤Ï¡¢10 ¥¤¥ó¥Á¤ÎÉý¤Ç 7 ¥¤¥ó¥Á¤Î¹â¤µ¤Ç¤¹¡£ ¥ª¥×¥·¥ç¥ó color ¤Ï¥«¥é¡¼¤ò͸ú¤Ë¤·¡¢monochrome ¤Ï³ÆÍ×ÁǤò¹õ¤ÈÇò ÉÁ²è¤·¤Þ¤¹¡£¤µ¤é¤Ë¡¢monochrome ¤Ï³¥¿§¤Î palette ¤â»ÈÍѤ·¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ï¡¢ÌÀ¼¨Åª¤Ë colorspec ¤Ç»ØÄꤵ¤ì¤¿ÉôÉʤ理òÊѹ¹¤·¤Þ¤»¤ó¡£
solid ¤ÏÁ´¤Æ¤Î¥°¥é¥Õ¤ÎÅÀÀþ¤Î¥Ñ¥¿¡¼¥ó¤ò¼ÂÀþ¤Ç¾å½ñ¤¤·¤Þ¤¹¡£ dashlength ¤Þ¤¿¤Ï dl ¤ÏÅÀÀþ¤ÎÀþʬ¤ÎŤµ¤ò < DL> (0 ¤è¤êÂ礤¤¼Â¿ô) ¤ËÀßÄꤷ¡¢ linewidth ¤Þ¤¿¤Ï lw ¤ÏÁ´¤Æ¤ÎÀþ¤ÎÉý¤ò < LW> ¤ËÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢À¸À®¤µ¤ì¤ë PostScript ¥³¡¼¥É¤Ï¡¢Æä˥ե£¥ë¥¿¥ê¥ó¥°¤ä filledcurves ¤Î¤è¤¦¤Ê¤Ç¤³¤Ü¤³¤ÊÎΰè¤Î¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·¤Ë¤ª¤¤¤Æ¡¢ PostScript Level 2 ¤È¤·¤Æ¾Ò²ð¤µ¤ì¤Æ¤¤¤ë¸À¸ìµ¡Ç½¤ò»È¤¤¤Þ¤¹¡£PostScript Level 2 ¤Îµ¡Ç½¤Ï¾ò·ïŪ¤ËÊݸ¤ì¤Æ¤¤¤Æ¡¢PostScript Level 1 ¤Î¥¤¥ó¥¿¡¼ ¥×¥ê¥¿¤¬¥¨¥é¡¼¤ò½Ð¤µ¤º¡¢¤à¤·¤í¥á¥Ã¥»¡¼¥¸¤« PostScript Level 1 ¤Ë¤è¤ë ¶á»÷¤Ç¤¢¤ë¤³¤È¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£level1 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³ ¤ì¤é¤Îµ¡Ç½¤ò¶á»÷¤¹¤ë PostScript Level1 ¤ÇÂåÍѤ·¡¢PostScript Level 2 ¥³¡¼¥É¤ò°ìÀÚ»ÈÍѤ·¤Þ¤»¤ó¡£¤³¤ì¤Ï¸Å¤¤¥×¥ê¥ó¥¿¤ä¡¢Adobe Illustrator ¤Î ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Ê¤É¤ÇɬÍפˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£¤³¤Î¥Õ¥é¥° level1 ¤Ï ½ÐÎϤµ¤ì¤¿ PostScript ¥Õ¥¡¥¤¥ë¤Î¤¢¤ë°ì¹Ô¤ò¼ê¤ÇÊÔ½¸¤¹¤ë¤³¤È¤Ç¡¢¸å¤«¤é ¶¯À©Åª¤Ë PostScript Level 1 µ¡Ç½¤ò ON/OFF ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£level 2 ¤Î¥³¡¼¥É¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¾å¤Îµ¡Ç½¤Ï¸½¤ï¤ì¤Ê¤¤¤«¡¢¤³¤Î¥Õ¥é¥°¤¬¥» ¥Ã¥È¤µ¤ì¤¿¾ì¹ç¡¢¤¢¤ë¤¤¤Ï PostScript ¥¤¥ó¥¿¥×¥ê¥¿¥×¥í¥°¥é¥à¤¬ level 2 °Ê¾å¤Î PostScript ¤ò²ò¼á¤¹¤ë¤È¤Ï¸À¤ï¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë·Ù¹ðʸ¤ËÃÖ¤´¹¤ï¤ê¤Þ¤¹¡£
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
clip ¤Ï¡¢PostScript ¤Ë¤¹¤Ù¤Æ¤Î½ÐÎϤò BoundingBox (PostScript ¤Î³°ÏÈ) ¤Ç¥¯¥ê¥Ã¥×¤¹¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ç¥Õ¥©¥ë¥È¤Ï noclip ¤Ç¤¹¡£
palfuncparam ¤Ï set palette functions ¤«¤é½ÐÎϤη¹¤¤ò¤É¤Î¤è¤¦¤Ë¥³ ¡¼¥É²½¤¹¤ë¤«¤òÀ©¸æ¤·¤Þ¤¹¡£²òÀÏŪ¤Ê¿§¤ÎÀ®Ê¬´Ø¿ô (set palatte functions ¤ÇÀßÄꤵ¤ì¤ë) ¤Ï¡¢postscript ½ÐÎϤǤϷ¹¤¤ÎÀþ·ÁÊä´°¤òÍѤ¤¤Æ¥³¡¼¥É²½¤µ ¤ì¤Þ¤¹: ¤Þ¤º¿§¤ÎÀ®Ê¬´Ø¿ô¤¬ < samples> ¸Ä¤ÎÅÀ¤ÇɸËܲ½¤µ¤ì¡¢¤½¤·¤Æ¤½¤ì¤é ¤ÎÅÀ¤Ï¡¢·ë²Ì¤È¤·¤ÆÀþ·ÁÊä´°¤È¤ÎÊк¹¤¬ < maxdeviation> °ÊÆâ¤Ë¼ý¤Þ¤ë¤è¤¦¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£¤Û¤È¤ó¤ÉÁ´¤Æ¤Î͸ú¤Ê¥Ñ¥ì¥Ã¥È¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Î < samples> =2000 ¤È < maxdeviation> =0.003 ¤ÎÃͤò¤½¤Î¤Þ¤Þ»È¤¦¤Î¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£
PostScript ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 10 ¥¤¥ó¥Á x 7 ¥¤¥ó¥Á¤Ç¤¹¡£EPS ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 5 x 3.5 ¥¤¥ó¥Á¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï ¤³¤ì¤é¤ò¥æ¡¼¥¶¤¬»ØÄꤷ¤¿¤â¤Î¤ËÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï X ¤È Y ¤Î¥µ ¥¤¥º¤Îñ°Ì¤Ï¥¤¥ó¥Á¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¤¬¡¢Â¾¤Îñ°Ì (¸½ºß¤Ï cm ¤Î¤ß) ¤â»È¤¦ ¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£ÉÁ²è¤Î BoundingBox (PostScript ¥Õ¥¡¥¤¥ë¤Î³°ÏÈ) ¤Ï¡¢ ¥µ¥¤¥º¤¬Êѹ¹¤µ¤ì¤¿²èÁü¤òÃúÅÙ´Þ¤à¤è¤¦¤ËÀµ¤·¤¯ÀßÄꤵ¤ì¤Þ¤¹¡£ ¥¹¥¯¥ê¡¼¥óºÂɸ¤Ï¡¢¥ª¥×¥·¥ç¥ó size ¤Ç»ØÄꤵ¤ì¤¿ÉÁ²èÏȤÎÁ´ÂΤ¬ 0.0 ¤«¤é 1.0 ¤Ë¤Ê¤ê¤Þ¤¹¡£ Ãí°Õ: ¤³¤ì¤Ï¡¢°ÊÁ°¤Ï¡¢½ÐÎÏ·Á¼°¤Ç¤ÎÀßÄê¤è¤ê¤â¡¢¥³¥Þ¥ó¥É set size ¤ÇÀßÄꤷ¤¿Êý¤¬¤¤¤¤¡¢¤È¸À¤Ã¤Æ¤¤¤¿¤³¤È¤ÎÊѹ¹¤ò°ÕÌ£¤·¤Þ¤¹¡£°ÊÁ°¤ÎÊýË¡¤Ç¤Ï BoundingBox ¤ÏÊѹ¹¤µ¤ì¤º¤Ë»Ä¤Ã¤Æ¤·¤Þ¤¤¡¢¥¹¥¯¥ê¡¼¥óºÂɸ¤¬¼ÂºÝ¤ÎÉÁ²è¤Î¸Â³¦¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
fontfile ¤ä fontfile add ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥©¥ó¥È¤Ï¡¢¤½¤Î¥Õ¥©¥ó¥È¤Î¥Õ ¥©¥ó¥ÈÄêµÁ¤òľÀÜ postscript Type 1, TrueType ¥Õ¥©¥ó¥È¤«¤é gnuplot ¤Î postscript ½ÐÎϤÎÃæ¤Ë¥«¥×¥»¥ë²½¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤ÎËä¤á¹þ¤Þ¤ì¤¿¥Õ¥©¥ó ¥È¤Ï¸«½Ð¤·¡¢¥¿¥¤¥È¥ë¤Ê¤É¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È:postscript fontfile (92.51.2)¡£fontfile delete ¤Ë¤è¤Ã¤Æ¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òËä ¤á¹þ¤Þ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤«¤é¼è¤ê½ü¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ nofontfiles ¤ÏËä¤á¹þ¤ß¥Õ¥©¥ó¥È¤Î¥ê¥¹¥È¤ò¥¯¥ê¥¢¤·¤Þ¤¹¡£
Îã:
set terminal postscript default # °ÊÁ°¤Î postscript set terminal postscript enhanced # °ÊÁ°¤Î enhpost set terminal postscript landscape 22 # °ÊÁ°¤Î psbig set terminal postscript eps 14 # °ÊÁ°¤Î epsf1 set terminal postscript eps 22 # °ÊÁ°¤Î epsf2 set size 0.7,1.4; set term post portrait color "Times-Roman" 14 set term post "VAGRoundedBT_Regular" 14 fontfile "bvrr8a.pfa"
Àþ¤ÎÉý¤ÈÅÀ¤ÎÂ礤µ¤Ï set style line ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
postscript ¥É¥é¥¤¥Ð¤ÏÌó 70 ¼ïÎà¤Î°Û¤Ê¤ëÅÀ¼ï¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤³¤ì ¤Ï plot ¤ä set style line ¤Î pointtype ¥ª¥×¥·¥ç¥ó¤ÇÁªÂò¤Ç¤¤Þ¤¹¡£
gnuplot ¤È Postscript ¤Ë´Ø¤¹¤ë¿ʬÍÍѤȻפï¤ì¤ë¥Õ¥¡¥¤¥ë¤¬ gnuplot ¤ÎÇÛÉÛʪ¡¢¤Þ¤¿¤Ï¤½¤ÎÇÛÉÛ¥µ¥¤¥È¤Î /docs/psdos ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë¤¤¤¯ ¤Ä¤«´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤³¤Ë¤Ï "ps_symbols.gpi" (¼Â¹Ô¤¹¤ë¤È postscript ¥É¥é¥¤¥Ð¤Ç»È¤¨¤ëÁ´¤Æ¤Îµ¹æ¤ò¾Ò²ð¤¹¤ë "ps_symbols.ps" ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤òÀ¸ À®¤¹¤ë gnuplot ¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë)¡¢"ps_guide.ps" (³ÈÄ¥¤µ¤ì¤¿½ñ¼°¤Ë ´Ø¤¹¤ëÍ×Ìó¤È¡¢Ê¸»úÎóÆâ¤Ç 8 ¿Ê¥³¡¼¥É¤ÇÀ¸À®¤µ¤ì¤ë¤â¤Î¡¢symbol ¥Õ¥©¥ó¥ÈÅù ¤ò´Þ¤à PostScript ¥Õ¥¡¥¤¥ë)¡¢"ps_file.doc" (gnuplot ¤Çºî¤é¤ì¤ë PostScript ¥Õ¥¡¥¤¥ë¤Î¹½Â¤¤ÎÀâÌÀ¤ò´Þ¤à¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë)¡¢ "ps_fontfile_doc.tex" (¿ô¼°¥Õ¥©¥ó¥È¤Îʸ»ú¤Î°ìÍ÷¤È LaTeX ¤Î¥Õ¥©¥ó¥È¤ÎËä ¤á¹þ¤ß¤Ë´Ø¤¹¤ëû¤¤ÀâÌÀ¤ò´Þ¤à LaTeX ¥Õ¥¡¥¤¥ë) ¤¬¤¢¤ê¤Þ¤¹¡£
PostScript ¥Õ¥¡¥¤¥ë¤ÏÊÔ½¸²Äǽ¤Ç¡¢°ìÅÙ gnuplot ¤Ç¤½¤ì¤òºî¤ì¤Ð¡¢¤½¤ì¤ò ˾¤à¤è¤¦¤Ë½¤Àµ¤¹¤ë¤³¤È¤Ï¼«Í³¤Ë¹Ô¤Ê¤¨¤Þ¤¹¡£¤½¤Î¤¿¤á¤Î¥Ò¥ó¥È¤òÆÀ¤ë¤Ë¤Ï¡¢ °Ê²¼»²¾È: editing postscript (92.51.1) ¤ÎÀá¡£
Î㤨¤Ð¡¢PostScript ¤Îʸ "/Color true def" (set terminal postscript color ¥³¥Þ¥ó¥É¤ËÅú¤¨¤Æ¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤Þ¤ì¤Þ¤¹) ¤òÊѹ¹¤·¤Æ¡¢¤½¤ÎÉÁ²è¤òÇò¹õ¤Î ¤â¤Î¤Ë¤¹¤ëÊýË¡¤Ï¤ª¤ï¤«¤ê¤Ç¤·¤ç¤¦¡£Æ±Íͤˡ¢Àþ¤Î¿§¡¢Ê¸»ú¤Î¿§¡¢Àþ¤ÎÂÀ¤µ (weight)¡¢µ¹æ¤Î¥µ¥¤¥º¤â¡¢ËÜÅö¤Ë´Êñ¤Ë½ñ¤´¹¤¨¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£¥¿¥¤¥È¥ë ¤ä¸«½Ð¤·¤Ê¤É¤Îʸ»úÎó¤Î¸í¿¢¤ä¡¢¥Õ¥©¥ó¥È¤ÎÊѹ¹¤âÊÔ½¸²Äǽ¤Ç¤·¤ç¤¦¡£Ç¤°Õ¤Î ¤â¤Î¤ÎÇÛÃÖ¤âÊѹ¹¤Ç¤¤Þ¤¹¤·¡¢¤â¤Á¤í¤ó¡¢Ç¤°Õ¤Î¤â¤Î¤òÄɲä·¤¿¤ê¡¢ºï½ü¤·¤¿ ¤ê¤â¤Ç¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Î½¤Àµ¤Ï PostScript ¸À¸ì¤Î¿¼¤¤Ã챤¬É¬ÍפǤ·¤ç¤¦¡£
gnuplot ¤Ë¤è¤Ã¤Æºî¤é¤ì¤ë PostScript ¥Õ¥¡¥¤¥ë¤Î¹½À®¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Î¥½¡¼¥¹ÇÛÉÛʪÆâ¤Î docs/ps ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë "ps_file.doc" ¤Ë½Ò¤Ù¤é¤ì¤Æ¤¤¤Þ¤¹¡£
postscript ½ÐÎϥɥ饤¥Ð¤Ï¤¤¤¯¤Ä¤«¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë·Á¼°¤òǧ¼±¤·¤Þ¤¹: ASCII ·Á¼°¤Î Type 1 ¥Õ¥©¥ó¥È (³ÈÄ¥»Ò ".pfa")¡¢¥Ð¥¤¥Ê¥ê·Á¼°¤Î Type 1 ¥Õ ¥©¥ó¥È (³ÈÄ¥»Ò ".pfb")¡¢TrueType ¥Õ¥©¥ó¥È (³ÈÄ¥»Ò ".ttf")¡£pfa ¥Õ¥¡¥¤ ¥ë¤ÏľÀÜǧ¼±¤µ¤ì¤Þ¤¹¤¬¡¢pfb ¤È ttf ¥Õ¥¡¥¤¥ë¤Ï gnuplot ¤Î¼Â¹ÔÃæ¤ËʹԤ· ¤ÆÊÑ´¹¤µ¤ì¡¢¤½¤Î¤¿¤á¤ËŬÀÚ¤ÊÊÑ´¹¥Ä¡¼¥ë (²¼µ»²¾È) ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Õ¥¡¥¤¥ë̾¤Ï³ÈÄ¥»Ò¤â´Þ¤á¤Æ´°Á´¤Ê·Á¤Ç»ØÄꤹ¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£³Æ fontfile ¥ª¥×¥·¥ç¥ó¤Ï¤Á¤ç¤¦¤É°ì¤Ä¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë̾¤Ë Âбþ¤·¤Þ¤¹¤Î¤Ç¡¢Ê£¿ô¤Î¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤òËä¤á¹þ¤à¤¿¤á¤Ë¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó ¤òÊ£¿ô²ó»È¤Ã¤Æ²¼¤µ¤¤¡£
¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Ï¡¢ºî¶È¥Ç¥£¥ì¥¯¥È¥ê¡¢¤½¤·¤Æ set fontpath ¤ÇÍ¿¤¨¤é¤ì ¤ë¥Õ¥©¥ó¥È¥Ñ¥¹°ìÍ÷¤ÎÁ´¤Æ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¸¡º÷¤µ¤ì¤Þ¤¹¡£¤µ¤é¤Ë¡¢´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤Ç¥Õ¥©¥ó¥È¥Ñ¥¹¤òÀßÄꤹ¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£¤½¤ì¤¬ÀßÄꤵ ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¸¡º÷¥ê¥¹¥È¤¬»È¤ï¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥·¥¹¥Æ¥à¤Ë °Í¸¤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set fontpath (82.22)¡£
Ëä¤á¹þ¤Þ¤ì¤¿¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤ò»È¤¦¤Ë¤Ï¡¢¥Õ¥©¥ó¥È̾ (Ä̾ï¥Õ¥¡¥¤¥ë̾¤ÈƱ
¤¸¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ÂÐÏå⡼¥É¤Ç fontfile ¥ª
¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¥Õ¥©¥ó¥È¤òËä¤á¹þ¤ó¤À¾ì¹ç¡¢¥Õ¥©¥ó¥È̾¤Ï¥¹¥¯¥ê¡¼¥ó¤Ëɽ¼¨
¤µ¤ì¤Þ¤¹¡£Îã:
Font file 'p052004l.pfb' contains the font 'URWPalladioL-Bold'. Location: /usr/lib/X11/fonts/URW/p052004l.pfb
pfa ¤ä pfb ¥Õ¥©¥ó¥È¤Ç¤Ï¡¢¥Õ¥©¥ó¥È̾¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ëÆâ¤Ë¸«¤Ä¤±¤ë¤³¤È ¤¬¤Ç¤¤Þ¤¹¡£¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ëÃæ¤Ë "/FontName /URWPalladioL-Bold def" ¤Î ¤è¤¦¤Ê¹Ô¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤Î¿¿Ãæ¤Îʪ¤«¤é / ¤ò½ü¤¤¤¿¤â¤Î¤¬¥Õ¥©¥ó¥È̾¤Ç¤¹¡£ ¤³¤ÎÎã¤Î¾ì¹ç¤Ï "URWPalladioL-Bold" ¤È¤Ê¤ê¤Þ¤¹¡£ TrueType ¥Õ¥©¥ó¥È¤Ç¤Ï¡¢¥Õ¥©¥ó¥È̾¤Ï¥Ð¥¤¥Ê¥ê·Á¼°¤ÇÊݸ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¸« ¤Ä¤±¤ë¤Î¤ÏÍưפǤϤ¢¤ê¤Þ¤»¤ó¡£¤µ¤é¤Ë¡¢¤½¤Î̾Á°¤Ï¿¤¯¤Î¾ì¹ç¡¢Type 1 ¥Õ ¥©¥ó¥È (¼Â¹ÔÃæ¤Ë TrueType ¤¬ÊÑ´¹¤µ¤ì¤ë·Á¼°¤Ç¤¢¤ë) ¤Ç¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤ ¤Ê¤¤¡¢¥¹¥Ú¡¼¥¹¤ò´Þ¤ó¤À·Á¼°¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢¥Õ¥©¥ó¥È̾¤Ï¤½¤³¤« ¤é¥¹¥Ú¡¼¥¹¤ò¼è¤ê½ü¤¤¤¿·Á¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£gnuplot ¤Ç»È¤¦¤¿¤á¤ËÀ¸À®¤µ¤ì¤¿ ¥Õ¥©¥ó¥È̾¤¬²¿¤Ç¤¢¤ë¤«¤òÃΤëºÇ¤â´Êñ¤ÊÊýË¡¤Ï¡¢gnuplot ¤òÂÐÏå⡼¥É¤Çµ¯ Æ°¤·¤Æ¡¢°Ê²¼¤Î¤è¤¦¤ËÆþÎϤ¹¤ë¤³¤È¤Ç¤¹:"set terminal postscript fontfile '< filename.ttf> '".
¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë (ttf, pfb) ¤ò pfa ·Á¼°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë¡¢¥Õ¥©¥ó¥È¥Õ¥¡ ¥¤¥ë¤òÆɤó¤Ç¡¢¤½¤·¤ÆÊÑ´¹·ë²Ì¤òɸ½à½ÐÎϤËÅǤ½Ð¤¹ÊÑ´¹¥Ä¡¼¥ë¤¬É¬Í×¤Ë¤Ê¤ê ¤Þ¤¹¡£¤½¤Î½ÐÎϤòɸ½à½ÐÎϤ˽ñ¤½Ð¤¹¤³¤È¤¬¤Ç¤¤Ê¤¤¾ì¹ç¡¢¼Â¹ÔÃæ¤ÎÊÑ´¹¤Ï¤Ç ¤¤Þ¤»¤ó¡£
pfb ¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤Ï¡¢Î㤨¤Ð "pfbtops" ¤¬»È¤¨¤Þ¤¹¡£¤½¤ì¤¬¥·¥¹¥Æ¥à ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¼Â¹ÔÃæ¤ÎÊÑ´¹¤Ï¤¦¤Þ¤¯¹Ô¤¯¤Ï¤º¤Ç¤¹¡£pfb ¥Õ¥¡ ¥¤¥ë¤Î¥«¥×¥»¥ë²½¤ò¤Á¤ç¤Ã¤È¤ä¤Ã¤Æ¤ß¤Þ¤·¤ç¤¦¡£¤â¤·¥×¥í¥°¥é¥à¤ÎÊÑ´¹»þ¤ËÀµ ¤·¤¯¥Ä¡¼¥ë¤ò¸Æ¤Ó½Ð¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¤É¤Î¤è¤¦¤Ë¥Ä¡¼¥ë¤ò¸Æ¤Ó½Ð¤·¤¿¤éÎɤ¤ ¤«¤ò´Ä¶ÊÑ¿ô GNUPLOT_PFBTOPFA ¤Ë¡¢Î㤨¤Ð "pfbtops %s" ¤Î¤è¤¦¤ËÄêµÁ¤· ¤Æ²¼¤µ¤¤¡£%s ¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë̾¤ËÃÖ¤´¹¤¨¤é¤ì¤Þ¤¹¤Î¤Ç¡¢¤³¤ì¤Ï¤½¤Î ʸ»úÎó¤Ëɬ¤ºÉ¬ÍפǤ¹¡£
¼Â¹ÔÃæ¤ÎÊÑ´¹¤ò¤·¤¿¤¯¤Ê¤¯¤Æ¡¢¤±¤ì¤É¤â pfa ·Á¼°¤Î¥Õ¥¡¥¤¥ë¤ÏɬÍפǤ¢¤ë¾ì ¹ç¡¢"pfb2pfa" ¤È¤¤¤¦ C ¤Ç½ñ¤«¤ì¤¿´Êñ¤Ê¥Ä¡¼¥ë¤ò»È¤¨¤ÐÎɤ¤¤Ç¤·¤ç¤¦¡£¤³ ¤ì¤ÏÂçÄñ¤Î C ¥³¥ó¥Ñ¥¤¥é¤Ç¥³¥ó¥Ñ¥¤¥ë¤Ç¤¡¢¤¿¤¯¤µ¤ó¤Î ftp ¥µ¡¼¥Ð¤ËÃÖ¤¤¤Æ ¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð
ftp://ftp.dante.de/tex-archive/fonts/utilities/ps2mf/
¼ÂºÝ¤Ë "pfbtopfa" ¤È "pfb2ps" ¤ÏƱ¤¸ºî¶È¤ò¹Ô¤¤¤Þ¤¹¡£"pfbtops" ¤Ï·ë²Ì¤Î pfa ¥³¡¼¥É¤òɸ½à½ÐÎϤ˽ÐÎϤ·¤Þ¤¹¤¬¡¢"pfbtopfa" ¤Ï¥Õ¥¡¥¤¥ë¤Ë½ÐÎϤ·¤Þ¤¹¡£
TrueType ¥Õ¥©¥ó¥È¤Ï¡¢Î㤨¤Ð "ttf2pt1" ¤È¤¤¤¦¥Ä¡¼¥ë¤ò»È¤Ã¤Æ Type 1 pfa ¥Õ¥©¡¼¥Þ¥Ã¥È¤ËÊÑ´¹¤Ç¤¤Þ¤¹¡£¤³¤ì¤Ï°Ê²¼¤Ë¤¢¤ê¤Þ¤¹:
http://ttf2pt1.sourceforge.net/
¤â¤· gnuplot ¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ëÊÑ´¹¼ê½ç¤¬¤¦¤Þ¤¯¹Ô¤«¤Ê¤¤¾ì¹ç¡¢ÊÑ´¹¥³¥Þ ¥ó¥É¤Ï´Ä¶ÊÑ¿ô GNUPLOT_TTFTOPFA ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£ttf2pt1 ¤ò»È¤¦¾ì¹ç¤Ï¡¢ ¤½¤ì¤ò "ttf2pt1 -a -e -W 0 %s - " ¤Î¤è¤¦¤ËÀßÄꤷ¤Æ²¼¤µ¤¤¡£¤³¤³¤Ç¤â %s ¤Ï¥Õ¥¡¥¤¥ë̾¤ò°ÕÌ£¤·¤Þ¤¹¡£
Æüì¤ÊÍÑÅӤΤ¿¤á¤Ë¡¢¥Ñ¥¤¥×¤â»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹ (¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È ¤·¤Æ¤¤¤ë OS ¾å¤Ç)¡£¥Õ¥¡¥¤¥ë̾¤ò "< " ¤Ç»Ï¤á¡¢¤½¤Î¸å¤Ë¥×¥í¥°¥é¥à¸Æ¤Ó½Ð¤· ¤òÄɲä·¤Þ¤¹¡£¤½¤Î¥×¥í¥°¥é¥à½ÐÎϤÏɸ½à½ÐÎϤؤΠpfa ¥Ç¡¼¥¿¤Ç¤Ê¤±¤ì¤Ð¤¤ ¤±¤Þ¤»¤ó¡£·ë²Ì¤È¤·¤Æ pfa ¥Õ¥¡¥¤¥ë¤ò¡¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¥¢¥¯¥»¥¹¤Ç¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹: set fontfile "< cat garamond.pfa"¡£
Type 1 ¥Õ¥©¥ó¥È¤ò¼è¤ê¹þ¤à¤³¤È¤Ï¡¢Î㤨¤Ð LaTeX ʸ½ñÃæ¤Ë postscript ¥Õ¥¡ ¥¤¥ë¤ò¼è¤ê¹þ¤à¾ì¹ç¤Ë»È¤¨¤Þ¤¹¡£pfb ·Á¼°¤Î "european computer modern" ¥Õ ¥©¥ó¥È ("computer modern" ¥Õ¥©¥ó¥È¤Î°ì¼ï) ¤¬³ÆÃϤΠCTAN ¥µ¡¼¥Ð¤ËÃÖ¤«¤ì ¤Æ¤¤¤Þ¤¹¡£
ftp://ftp.dante.de/tex-archive/fonts/ps-type1/cm-super/
Î㤨¤Ð¡¢¥Õ¥¡¥¤¥ë "sfrm1000.pfb" ¤Ï¡¢ÃæÂÀ¡¢¥»¥ê¥ÕÉÕ¤¡¢Î©ÂΤΠ10 ¥Ý¥¤¥ó ¥È¤Î¥Õ¥©¥ó¥È (¥Õ¥©¥ó¥È̾ "SFRM1000") ¤Ç¤¹¡£computer modern ¥Õ¥©¥ó¥È¤Ï º£¤Ç¤â¿ô¼°¤ò½ñ¤¯¤Î¤ËɬÍפǤ¹¤¬¡¢¤½¤ì¤Ï°Ê²¼¤Ë¤¢¤ê¤Þ¤¹:
ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky
¤³¤ì¤é¤Ë¤è¤Ã¤Æ¡¢TeX ÍѤÎǤ°Õ¤Îʸ»ú¤â»È¤¨¤Þ¤¹¡£¤·¤«¤·¡¢computer modern ¥Õ¥©¥ó¥È¤Ï¾¯¤·¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬¤ª¤«¤·¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹ (¤³¤Î¤¿¤á¡¢Ê¸»úÎó ¤Ë¤Ï cmr10.pfb ¤ÎÂå¤ï¤ê¤Ë sfrm1000.pfb ¤ò»È¤¦¤Ù¤¤Ç¤¹)¡£ TeX ¥Õ¥©¥ó¥È¤Î»ÈÍÑË¡¤Ï¤¤¤¯¤Ä¤«¤Î¥Ç¥â¤Î°ì¤Ä¤ÇÃΤ뤳¤È¤¬¤Ç¤¤Þ¤¹¡£ gnuplot ¤Î¥½¡¼¥¹ÇÛÉÛʪ¤Î /docs/psdoc ¤Ë´Þ¤Þ¤ì¤ë¥Õ¥¡¥¤¥ë "ps_fontfile_doc.tex" ¤Ë TeX ¿ô³Ø¥Õ¥©¥ó¥È¤Îʸ»ú¤Î°ìÍ÷ɽ¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ ¤¹¡£
¥Õ¥©¥ó¥È "CMEX10" (¥Õ¥¡¥¤¥ë "cmex10.pfb") ¤òËä¤á¹þ¤à¤È¡¢gnuplot ¤Ï Äɲåե©¥ó¥È "CMEX10-Baseline" ¤âÄêµÁ¤·¤Þ¤¹¡£¤½¤ì¤Ï¡¢Â¾¤Îʸ»ú¤Ë¤¢¤¦¤è ¤¦¤Ë¿âľÊý¸þ¤Ë¤º¤é¤µ¤ì¤¿¤â¤Î¤Ç¤¹ (CMEX10 ¤Ï¡¢µ¹æ¤ÎÅ·Êդ˥١¼¥¹¥é¥¤¥ó ¤¬¤¢¤ê¤Þ¤¹)¡£
½ñ¼°:
set terminal [pslatex | pstex] {default} set terminal [pslatex | pstex] {rotate | norotate} {oldstyle | newstyle} {auxfile | noauxfile} {level1 | leveldefault} {color | colour | monochrome} {background <rgbcolor> | nobackground} {solid | dashed} {dashlength | dl <DL>} {linewidth | lw <LW>} {rounded | butt} {clip | noclip} {palfuncparam <samples>{,<maxdeviation>}} {size <XX>{unit},<YY>{unit}} {<font_size>}
°Ê²¼¤Î¤è¤¦¤Ê¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½Ð¤¿¾ì¹ç:
"Can't find PostScript prologue file ... "
¥ª¥×¥·¥ç¥ó color ¤Ï¥«¥é¡¼¤ò͸ú¤Ë¤·¡¢monochrome ¤Ï³ÆÍ×ÁǤò¹õ¤ÈÇò ÉÁ²è¤·¤Þ¤¹¡£¤µ¤é¤Ë¡¢monochrome ¤Ï³¥¿§¤Î palette ¤â»ÈÍѤ·¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ï¡¢ÌÀ¼¨Åª¤Ë colorspec ¤Ç»ØÄꤵ¤ì¤¿ÉôÉʤ理òÊѹ¹¤·¤Þ¤»¤ó¡£
solid ¤ÏÁ´¤Æ¤Î¥°¥é¥Õ¤ÎÅÀÀþ¤Î¥Ñ¥¿¡¼¥ó¤ò¼ÂÀþ¤Ç¾å½ñ¤¤·¤Þ¤¹¡£ dashlength ¤Þ¤¿¤Ï dl ¤ÏÅÀÀþ¤ÎÀþʬ¤ÎŤµ¤ò < DL> (0 ¤è¤êÂ礤¤¼Â¿ô) ¤ËÀßÄꤷ¡¢ linewidth ¤Þ¤¿¤Ï lw ¤ÏÁ´¤Æ¤ÎÀþ¤ÎÉý¤ò < LW> ¤ËÀßÄꤷ¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢À¸À®¤µ¤ì¤ë PostScript ¥³¡¼¥É¤Ï¡¢Æä˥ե£¥ë¥¿¥ê¥ó¥°¤ä filledcurves ¤Î¤è¤¦¤Ê¤Ç¤³¤Ü¤³¤ÊÎΰè¤Î¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·¤Ë¤ª¤¤¤Æ¡¢ PostScript Level 2 ¤È¤·¤Æ¾Ò²ð¤µ¤ì¤Æ¤¤¤ë¸À¸ìµ¡Ç½¤ò»È¤¤¤Þ¤¹¡£PostScript Level 2 ¤Îµ¡Ç½¤Ï¾ò·ïŪ¤ËÊݸ¤ì¤Æ¤¤¤Æ¡¢PostScript Level 1 ¤Î¥¤¥ó¥¿¡¼ ¥×¥ê¥¿¤¬¥¨¥é¡¼¤ò½Ð¤µ¤º¡¢¤à¤·¤í¥á¥Ã¥»¡¼¥¸¤« PostScript Level 1 ¤Ë¤è¤ë ¶á»÷¤Ç¤¢¤ë¤³¤È¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£level1 ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³ ¤ì¤é¤Îµ¡Ç½¤ò¶á»÷¤¹¤ë PostScript Level1 ¤ÇÂåÍѤ·¡¢PostScript Level 2 ¥³¡¼¥É¤ò°ìÀÚ»ÈÍѤ·¤Þ¤»¤ó¡£¤³¤ì¤Ï¸Å¤¤¥×¥ê¥ó¥¿¤ä¡¢Adobe Illustrator ¤Î ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Ê¤É¤ÇɬÍפˤʤ뤫¤â¤·¤ì¤Þ¤»¤ó¡£¤³¤Î¥Õ¥é¥° level1 ¤Ï ½ÐÎϤµ¤ì¤¿ PostScript ¥Õ¥¡¥¤¥ë¤Î¤¢¤ë°ì¹Ô¤ò¼ê¤ÇÊÔ½¸¤¹¤ë¤³¤È¤Ç¡¢¸å¤«¤é ¶¯À©Åª¤Ë PostScript Level 1 µ¡Ç½¤ò ON/OFF ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£level 2 ¤Î¥³¡¼¥É¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¾å¤Îµ¡Ç½¤Ï¸½¤ï¤ì¤Ê¤¤¤«¡¢¤³¤Î¥Õ¥é¥°¤¬¥» ¥Ã¥È¤µ¤ì¤¿¾ì¹ç¡¢¤¢¤ë¤¤¤Ï PostScript ¥¤¥ó¥¿¥×¥ê¥¿¥×¥í¥°¥é¥à¤¬ level 2 °Ê¾å¤Î PostScript ¤ò²ò¼á¤¹¤ë¤È¤Ï¸À¤ï¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë·Ù¹ðʸ¤ËÃÖ¤´¹¤ï¤ê¤Þ¤¹¡£
rounded ¤Ï¡¢Àþ¤Îü¤äÀܹçÉô¤ò´Ý¤¯¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î butt ¤ÏÀí¤Ã¤¿Ã¼¤È ³ÑÄ¥¤Ã¤¿ÀܹçÉô¤ò»ÈÍѤ·¤Þ¤¹¡£
clip ¤Ï¡¢PostScript ¤Ë¤¹¤Ù¤Æ¤Î½ÐÎϤò BoundingBox (PostScript ¤Î³°ÏÈ) ¤Ç¥¯¥ê¥Ã¥×¤¹¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ç¥Õ¥©¥ë¥È¤Ï noclip ¤Ç¤¹¡£
palfuncparam ¤Ï set palette functions ¤«¤é½ÐÎϤη¹¤¤ò¤É¤Î¤è¤¦¤Ë¥³ ¡¼¥É²½¤¹¤ë¤«¤òÀ©¸æ¤·¤Þ¤¹¡£²òÀÏŪ¤Ê¿§¤ÎÀ®Ê¬´Ø¿ô (set palatte functions ¤ÇÀßÄꤵ¤ì¤ë) ¤Ï¡¢postscript ½ÐÎϤǤϷ¹¤¤ÎÀþ·ÁÊä´°¤òÍѤ¤¤Æ¥³¡¼¥É²½¤µ ¤ì¤Þ¤¹: ¤Þ¤º¿§¤ÎÀ®Ê¬´Ø¿ô¤¬ < samples> ¸Ä¤ÎÅÀ¤ÇɸËܲ½¤µ¤ì¡¢¤½¤·¤Æ¤½¤ì¤é ¤ÎÅÀ¤Ï¡¢·ë²Ì¤È¤·¤ÆÀþ·ÁÊä´°¤È¤ÎÊк¹¤¬ < maxdeviation> °ÊÆâ¤Ë¼ý¤Þ¤ë¤è¤¦¤Ëºï½ü¤µ¤ì¤Þ¤¹¡£¤Û¤È¤ó¤ÉÁ´¤Æ¤Î͸ú¤Ê¥Ñ¥ì¥Ã¥È¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Î < samples> =2000 ¤È < maxdeviation> =0.003 ¤ÎÃͤò¤½¤Î¤Þ¤Þ»È¤¦¤Î¤¬Îɤ¤¤Ç¤·¤ç¤¦¡£
PostScript ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 10 ¥¤¥ó¥Á x 7 ¥¤¥ó¥Á¤Ç¤¹¡£EPS ½ÐÎϤΥǥե©¥ë¥È¤ÎÂ礤µ¤Ï 5 x 3.5 ¥¤¥ó¥Á¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó size ¤Ï ¤³¤ì¤é¤ò¥æ¡¼¥¶¤¬»ØÄꤷ¤¿¤â¤Î¤ËÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï X ¤È Y ¤Î¥µ ¥¤¥º¤Îñ°Ì¤Ï¥¤¥ó¥Á¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¤¬¡¢Â¾¤Îñ°Ì (¸½ºß¤Ï cm ¤Î¤ß) ¤â»È¤¦ ¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£ÉÁ²è¤Î BoundingBox (PostScript ¥Õ¥¡¥¤¥ë¤Î³°ÏÈ) ¤Ï¡¢ ¥µ¥¤¥º¤¬Êѹ¹¤µ¤ì¤¿²èÁü¤òÃúÅÙ´Þ¤à¤è¤¦¤ËÀµ¤·¤¯ÀßÄꤵ¤ì¤Þ¤¹¡£ ¥¹¥¯¥ê¡¼¥óºÂɸ¤Ï¡¢¥ª¥×¥·¥ç¥ó size ¤Ç»ØÄꤵ¤ì¤¿ÉÁ²èÏȤÎÁ´ÂΤ¬ 0.0 ¤«¤é 1.0 ¤Ë¤Ê¤ê¤Þ¤¹¡£ Ãí°Õ: ¤³¤ì¤Ï¡¢°ÊÁ°¤Ï¡¢½ÐÎÏ·Á¼°¤Ç¤ÎÀßÄê¤è¤ê¤â¡¢¥³¥Þ¥ó¥É set size ¤ÇÀßÄꤷ¤¿Êý¤¬¤¤¤¤¡¢¤È¸À¤Ã¤Æ¤¤¤¿¤³¤È¤ÎÊѹ¹¤ò°ÕÌ£¤·¤Þ¤¹¡£°ÊÁ°¤ÎÊýË¡¤Ç¤Ï BoundingBox ¤ÏÊѹ¹¤µ¤ì¤º¤Ë»Ä¤Ã¤Æ¤·¤Þ¤¤¡¢¥¹¥¯¥ê¡¼¥óºÂɸ¤¬¼ÂºÝ¤ÎÉÁ²è¤Î¸Â³¦¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
rotate ¤¬»ØÄꤵ¤ì¤ë¤È y ¼´¤Î¸«½Ð¤·¤¬²óž¤µ¤ì¤Þ¤¹¡£ < font_size> ¤Ï´õ˾¤¹¤ë¥Õ¥©¥ó¥È¤Î (¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î) Â礤µ¤Ç¤¹¡£
auxfile ¤¬»ØÄꤵ¤ì¤ë¤È¡¢¥É¥é¥¤¥Ð¤Ï PostScript ¥³¥Þ¥ó¥É¤ò¡¢LaTeX ¥Õ¥¡ ¥¤¥ë¤ËľÀܽÐÎϤ¹¤ëÂå¤ï¤ê¤Ë¡¢Êä½õ¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤¹¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì ¤Ï¡¢dvips ¤¬¤½¤ì¤ò°·¤¨¤Ê¤¤¤¯¤é¤¤Â礤¤¥°¥é¥Õ¤Ç¤¢¤ë¾ì¹ç¤ËÍÍѤǤ¹¡£Êä½õ PostScript ¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ï¡¢set output ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤é¤ì¤ë TeX ¥Õ ¥¡¥¤¥ë¤Î̾Á°¤«¤éƳ¤«¤ì¤ë¤â¤Î¤Ç¡¢¤½¤ì¤Ï¤½¤ÎºÇ¸å¤Î .tex ¤ÎÉôʬ (¼ÂºÝ¤Î ¥Õ¥¡¥¤¥ë̾¤ÎºÇ¸å¤Î³ÈÄ¥»Ò¤ÎÉôʬ) ¤ò .ps ¤ÇÃÖ¤´¹¤¨¤¿¤â¤Î¡¢¤Þ¤¿¤Ï¡¢TeX ¥Õ¥¡¥¤¥ë¤Ë³ÈÄ¥»Ò¤¬¤Ê¤¤¤Ê¤é¤Ð .ps ¤òºÇ¸å¤ËÉÕ¤±Â¤·¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£ .ps ¥Õ¥¡¥¤¥ë¤Ï \ special{psfile=...} ¤È¤¤¤¦Ì¿Îá¤Ç .tex ¥Õ¥¡¥¤¥ë¤Ë ¼è¤ê¹þ¤Þ¤ì¤Þ¤¹¡£multiplot ¥â¡¼¥É°Ê³°¤Ç¤Ï¡¢¼¡¤ÎÉÁ²è¤ò¹Ô¤Ê¤¦Á°¤Ë¤½¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¤Î¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
version 4.2 ¤è¤êÁ°¤Î gnuplot ¤Ï ps(la)tex ½ÐÎÏ·Á¼°¤Ç¤Ï 5 x 3 ¥¤¥ó¥Á¤Î ½ÐÎϤǤ·¤¿¤¬¡¢¸½ºß¤Ç¤Ï 5 x 3.5 ¥¤¥ó¥Á¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï postscript eps ½ÐÎÏ·Á¼°¤Ë¹ç¤ï¤»¤¿Êѹ¹¤Ç¤¹¡£²Ã¤¨¤Æ¡¢Ê¸»úÉý¤Ï¡¢°ÊÁ°¤Î epslatex ½ÐÎÏ·Á¼°¤Ï¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î 50% ¤È¸«¤Ê¤·¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï 60% ¤Èɾ²Á¤·¤Æ¤¤¤Þ¤¹¡£½¾Íè¤Î·Á¼°¤ËÌ᤹¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó oldstyle ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
pslatex ¥É¥é¥¤¥Ð¤Ïʸ»úÎó¤ÎÇÛÃÖ¤ÎÀ©¸æ¤ËÆÃÊ̤ÊÊýË¡¤òÄ󶡤·¤Þ¤¹: (a) '{' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢'}' ¤ÇÊĤ¸¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Îʸ»úÎóÁ´ÂÎ ¤¬ LaTeX ¤Ë¤è¤Ã¤Æ¿åÊ¿Êý¸þ¤Ë¤â¿âľÊý¸þ¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£ (b) '[' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Î¾ì¹ç¤Ï¡¢°ÌÃ֤λØÄê¤ò¤¹¤ëʸ»úÎó (t,b,l,r ¤Î¤¦¤Á 2 ¤Ä¤Þ¤Ç) ¤¬Â³¤¡¢¼¡¤Ë ']{'¡¢Ê¸»úÎóËÜÂΡ¢¤ÇºÇ¸å¤Ë '}' ¤È¤·¤Þ¤¹¤¬¡¢¤³¤Î ʸ»úÎó¤Ï LaTeX ¤¬ LR-box ¤È¤·¤ÆÀ°·Á¤·¤Þ¤¹¡£ \ rule{}{} ¤ò»È¤¨¤Ð¤µ¤é¤ËÎÉ ¤¤°ÌÃÖ¹ç¤ï¤»¤¬²Äǽ¤Ç¤·¤ç¤¦¡£
¤³¤³¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤Ê¤¤¥ª¥×¥·¥ç¥ó¤Ï Postscript terminal ¤Î¤â¤Î¤ÈƱ°ì¤Ç ¤¹¤Î¤Ç¡¢¤½¤ì¤é¤¬²¿¤ò¹Ô¤Ê¤¦¤Î¤«¤òÃΤꤿ¤±¤ì¤Ð¤½¤Á¤é¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
Îã:
set term pslatex monochrome dashed rotate # ¥Ç¥Õ¥©¥ë¥È¤ËÀßÄê
set term pslatex auxfile set output "foo.tex"; plot ...; set output
set title '\LaTeX\ -- $ \gamma $'
set label '{\LaTeX\ -- $ \gamma $}' at 0,0
set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'
ÀþÉý¤ÈÅÀ¤ÎÂ礤µ¤Ï set style line ¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
PSTricks ¤Ï anonymous ftp ¤Ç Princeton.EDU ¤Î /pub ¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¼è ÆÀ¤Ç¤¤Þ¤¹¡£¤³¤Î¥É¥é¥¤¥Ð¤Ï¡¢PSTricks ¥Ñ¥Ã¥±¡¼¥¸¤ÎÁ´¤Æ¤ÎǽÎϤò»È¤ª¤¦¤È ¤Ê¤É¤È¤ÏÁ´¤¯¹Í¤¨¤Æ¤Ï¤¤¤Þ¤»¤ó¡£
½ñ¼°:
set terminal pstricks {hacktext | nohacktext} {unit | nounit}
ºÇ½é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤¢¤Þ¤êåºÎï¤Ç¤Ï¤Ê¤¤ÊýË¡¤Ç¿ô»ú¤Î¤è¤êÎɤ¤½ÐÎϤòÀ¸À®¤¹ ¤ë¤â¤Î¤Ç¡¢2 ¤ÄÌܤΥª¥×¥·¥ç¥ó¤Ï¥°¥é¥Õ¤ò¿½Ì¤¹¤ëºÝ¤Ë¤ÏɬÍפǤ¹¡£¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï hacktext ¤È nounit ¤Ç¤¹¡£
½ñ¼°:
set term qt {<n>} {size <width>,<height>} {{no}enhanced} {font <font>} {title "title"} {{no}persist} {{no}raise} {{no}ctrl} {close} {widget <id>}
Ê£¿ô¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢set terminal qt < n> ¤È¤¹¤ì¤Ð ÈÖ¹æ n ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Ø½ÐÎϤ·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥¦¥£¥ó¥É¥¦¥¿¥¤¥È¥ë¤Ï¡¢¤³¤Î¥¦¥£¥ó¥É¥¦ÈÖ¹æ¤Ë´ð¤Å¤¤¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¥¿¥¤¥È¥ë¤Ï¥¡¼¥ï¡¼¥É "title" ¤Ç¤â»ØÄê¤Ç¤¤Þ¤¹¡£
ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢gnuplot ¤Î½ÐÎÏ·Á¼°¤òÊ̤ʤâ¤Î¤ËÊѹ¹¤·¤¿¸å¤Ç¤â³«¤¤¤¿ ¤Þ¤Þ»Ä¤ê¤Þ¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤¬ÆþÎÏ¥Õ¥©¡¼¥«¥¹¤ò»ý¤Ã¤Æ ¤¤¤ë¾õÂÖ¤Çʸ»ú 'q' ¤òÂǤĤ«¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¥á¥Ë¥å¡¼¤Ç close ¤ò ÁªÂò¤¹¤ë¤«¡¢¤Þ¤¿¤Ï set term qt < n> close ¤È¤¹¤ë¤³¤È¤ÇÊĤ¸¤ë¤³¤È¤¬¤Ç¤ ¤Þ¤¹¡£
ÉÁ²èÎΰè¤Î¥µ¥¤¥º¤Ï¥Ô¥¯¥»¥ëñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 640x480 ¤Ç¤¹¡£ ¤½¤ì¤Ë²Ã¤¨¤Æ¡¢¥¦¥£¥ó¥É¥¦¤Î¼ÂºÝ¤Î¥µ¥¤¥º¤Ë¤Ï¡¢¥Ä¡¼¥ë¥Ð¡¼¤ä¥¹¥Æ¡¼¥¿¥¹¥Ð¡¼ ÍѤΥ¹¥Ú¡¼¥¹¤âÄɲ䵤ì¤Þ¤¹¡£ ¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¤È¡¢ÉÁ²è¥°¥é¥Õ¤â¥¦¥£¥ó¥É¥¦¤Î¿·¤·¤¤¥µ¥¤¥º¤Ë ¤Ô¤Ã¤¿¤ê¹ç¤¦¤è¤¦¤Ë¤¹¤°¤Ë¿½Ì¤µ¤ì¤Þ¤¹¡£qt ½ÐÎÏ·Á¼°¤Ï¥Õ¥©¥ó¥È¡¢ÀþÉý¤â´Þ ¤á¤ÆÉÁ²èÁ´ÂΤò¿½Ì¤·¤Þ¤¹¤¬¡¢Á´ÂΤΥ¢¥¹¥Ú¥¯¥ÈÈæ¤Ï°ìÄê¤ËÊݤÁ¤Þ¤¹¡£ ¤½¤Î¸å replot ¤È¥¿¥¤¥×¤¹¤ë¤«¡¢¥¿¡¼¥ß¥Ê¥ë¥Ä¡¼¥ë¥Ð¡¼¤Î replot ¥¢¥¤¥³ ¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤«¡¢¿·¤¿¤Ë plot ¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤È¡¢¤½¤Î¿·¤·¤¤ÉÁ²è ¤Ç¤Ï´°Á´¤Ë¤½¤Î¥¦¥£¥ó¥É¥¦¤Ë¹ç¤ï¤»¤é¤ì¤Þ¤¹¤¬¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤äÀþÉý¤Ï¤½¤ì ¤¾¤ì¤Î¥Ç¥Õ¥©¥ë¥È¤Ë¥ê¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
¸½ºß¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦ (set term qt < n> ¤ÇÁªÂò¤µ¤ì¤¿¤â¤Î) ¤ÏÂÐÏ÷¿¤Ç¡¢ ¤½¤ÎµóÆ°¤Ï¡¢Â¾¤Î½ÐÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: mouse (82.40)¡£¤½¤ì¤Ë¤Ï ÄɲäΥ¢¥¤¥³¥ó¤â¤¤¤¯¤Ä¤«¤Ä¤¤¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Ï¤½¤ì¼«ÂΤ¬ÀâÌÀŪ¤Ê¤â¤Î ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£
¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤ò¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤Æ¡¢¥Õ¥©¥ó¥È¤ä½ñ¼°¥³¥Þ¥ó¥É (¾åÉÕ¡¢²¼ÉդʤÉ) ¤ò¥é¥Ù¥ë¤ä¾¤Îʸ»úÎó¤Ë Ëä¤á¹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£³Èĥʸ»úÎó½èÍý¥â¡¼¥É¤Î½ñ¼°¤Ï¡¢gnuplot ¤Î¾¤Î½Ð ÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£
<
font>
¤Ï "FontFace,FontSize" ¤Î·Á¼°¤Ç¡¢FontFace ¤È FontSize ¤È¤ò¥³
¥ó¥Þ¤ÇʬΥ¤·¤Æ°ì¤Ä¤Îʸ»úÎó¤È¤·¤Æ½ñ¤¤Þ¤¹¡£FontFace ¤Ï¡¢'Arial' ¤Î¤è
¤¦¤ÊÄ̾ï¤Î¥Õ¥©¥ó¥È̾¤Ç¤¹¡£FontFace ¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢qt ½ÐÎÏ·Á¼°¤Ï
'Sans' ¤ò»ÈÍѤ·¤Þ¤¹¡£FontSize ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ç¤¹¡£
FontSize ¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢qt ½ÐÎÏ·Á¼°¤Ï 9 ¥Ý¥¤¥ó¥È¤ò»ÈÍѤ·¤Þ¤¹¡£
Îã : set term qt font "Arial,12" set term qt font "Arial" # ¥Õ¥©¥ó¥È̾¤Î¤ßÊѹ¹ set term qt font ",12" # ¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î¤ßÊѹ¹ set term qt font "" # ¥Õ¥©¥ó¥È̾¡¢¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò¥ê¥»¥Ã¥È
Qt ¤Î¥ì¥ó¥À¥ê¥ó¥°Â®Å٤ϡ¢»ÈÍѤ¹¤ë¥ì¥ó¥À¥ê¥ó¥°¥â¡¼¥É¤Ë¤è¤Ã¤ÆÂ礤¯ÊѤï¤ê ¤Þ¤¹¡£Qt ¥Ð¡¼¥¸¥ç¥ó 4.7 °Ê¹ß¤Ç¤Ï¡¢¤³¤ì¤Ï´Ä¶ÊÑ¿ô QT_GRAPHICSSYSTEM ¤ÇÀ©¸æ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£»ØÄꤹ¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¥ì¥ó¥À¥ê¥ó¥°Â®ÅÙ¤Îî¯ ¤¤½ç¤Ë¡¢"native", "raster", "opengl" ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£½¾Íè¤Î Qt ¤Î ÈǤǤϡ¢¤³¤Î½ÐÎÏ·Á¼°¤Ç¤Ï¥Ç¥Õ¥©¥ë¥È¤ò "raster" ¤Ë¤·¤Þ¤¹¡£
²Äǽ¤Ê¸Â¤êºÇ¤âÎɤ¤½ÐÎϤòÀ¸À®¤¹¤ë¤¿¤á¤Ë¡¢¤³¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¥¢¥ó¥Á¥¢¥ê¥¢ ¥¹¡¢¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¡¢¥Ò¥ó¥Á¥ó¥°¤Î 3 ¤Ä¤Îµ¡¹½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤ÈÁȤǥԥ¯¥»¥ë¤è¤ê¤â¾®¤µ¤¤¥µ¥¤ ¥º¤Ç¤ÎÀºÅÙ¤òÄ󶡤·¡¢gnuplot ¤¬ÈóÀ°¿ôºÂɸ¤ÎľÀþ¤ò½ñ¤±¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÂгÑÊý¸þ¤ÎľÀþ (Î㤨¤Ð 'plot x') ¤¬º¸±¦¤ËÍɤì¤ë¤Î¤òÈò¤±¤Þ¤¹¡£ ¥Ò¥ó¥Æ¥£¥ó¥°¤Ï¡¢¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ë¤è¤Ã¤Æ°ú¤µ¯¤³¤µ¤ì¤ë¿åÊ¿¡¢¿âľÊý ¸þ¤ÎÀþʬ¤Î¤Ü¤«¤·¤òÈò¤±¤Þ¤¹¡£¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢¤³¤ì¤é¤ÎľÀþ¤òÀ°¿ôºÂɸ¤Ë· ¤¨¡¢¤½¤ì¤Ë¤è¤ê¡¢1 ¥Ô¥¯¥»¥ëÉý¤ÎľÀþ¤ÏËÜÅö¤Ë 1 ¤Ä (1 ¤Ä¤è¤ê¿¤¯¤â¾¯¤Ê¤¯ ¤â¤Ê¤¤) ¤Î¥Ô¥¯¥»¥ë¤ÇÉÁ²è¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÉÁ²è¤¬¹Ô¤ï¤ì¤¿¤È¤¤Ë¥¦¥£¥ó¥É¥¦¤Ï¥Ç¥¹¥¯¥È¥Ã¥×¤Î°ìÈÖ¾å (ºÇÁ°ÌÌ) ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¡¼¥ï¡¼¥É "raise" ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£ ¥¡¼¥ï¡¼¥É "persist" ¤Ï¡¢¤¹¤Ù¤Æ¤ÎÉÁ²è¥¦¥¤¥ó¥É¥¦¤òÌÀ¼¨Åª¤ËÊĤ¸¤Ê¤¤´Ö ¤Ï¡¢gnuplot ¤¬½ªÎ»¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£ ºÇ¸å¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï < space> ¥¡¼¤Ï gnuplot ¥³¥ó¥½¡¼¥ë¥¦¥£¥ó¥É¥¦¤ò¾å ¤Ë¾å¤²¡¢'q' ¤ÏÉÁ²è¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤Þ¤¹¡£¥¡¼¥ï¡¼¥É "ctrl" ¤Ï¡¢¤½¤ì¤é ¤Î¥¡¼³ä¤êÅö¤Æ¤ò¡¢¤½¤ì¤¾¤ì < ctrl> +< space> ¤È < ctrl> +'q' ¤ËÊѹ¹¤·¤Þ¤¹¡£
¥×¥í¥°¥é¥à¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤ËÁªÂò¤·¤¿¾ì½ê¤Ë¡¢gnuplot ¤Î³°Éô¥É¥é¥¤¥Ð gnuplot_qt ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¤¬¡¢´Ä¶ÊÑ¿ô GNUPLOT_DRIVER_DIR ¤òÊÌ ¤Ê¾ì½ê¤ËÀßÄꤹ¤ë¤³¤È¤ÇÃÖ¤¾ì½ê¤òÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal regis {4 | 16}
½ñ¼°:
set terminal svg {size <x>,<y> {|fixed|dynamic}} {{no}enhanced} {fname "<font>"} {fsize <fontsize>} {mouse} {standalone | jsdir <dirname>} {name <plotname>} {font "<fontname>{,<fontsize>}"} {fontfile <filename>} {rounded|butt} {solid|dashed} {linewidth <lw>} {background <rgb_color>}
¤³¤³¤Ç < x> ¤È < y> ¤ÏÀ¸À®¤µ¤ì¤ë SVG ¥°¥é¥Õ¤Î¥µ¥¤¥º¤Ç¤¹¤¬¡¢dynamic ¤Ï svg ¥Ó¥å¡¼¥ï¤ËÉÁ²è¤Î¥ê¥µ¥¤¥º¤òµö¤·¡¢fixed ¤ÏÀäÂÐ¥µ¥¤¥º¤òÍ׵ᤷ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È)¡£
linewidth < w> ¤Ï¿Þ¤ÎÃæ¤Ç»ÈÍѤµ¤ì¤ëÁ´¤Æ¤ÎÀþ¤ÎÉý¤ò°ø»Ò < w> ¤À¤±Áý²Ã¤µ ¤»¤Þ¤¹¡£
< font> ¤Ï¥Ç¥Õ¥©¥ë¥È¤È¤·¤Æ»È¤ï¤ì¤ë¥Õ¥©¥ó¥È̾ (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï Arial)¡¢ < fontsize> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º (¥Ç¥Õ¥©¥ë¥È¤Ï 12) ¤Ç¤¹¡£ svg ¥Ó¥å¡¼¥ï¥½¥Õ¥È¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Îɽ¼¨¤ÎºÝ¤Ë¤ÏÊ̤ÎÂåÍÑ¥Õ¥©¥ó¥È¤ò»È¤¦ ¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
svg ½ÐÎÏ·Á¼°¤Ï³Èĥʸ»úÎó½èÍýµ¡Ç½ (enhanced) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì ¤Ï¡¢¥Õ¥©¥ó¥È»ØÄê¤ä¾¤Î½ñ¼°Ì¿Îá¤ò¥é¥Ù¥ë¤ä¾¤Îʸ»úÎóÆâ¤ËËä¤á¹þ¤à¤³¤È¤ò²Ä ǽ¤Ë¤·¤Þ¤¹¡£³Èĥʸ»úÎó½èÍý¥â¡¼¥É¤Î½ñ¼°»ØÄê¤Ï¾¤Î½ÐÎÏ·Á¼°¤Î¾ì¹ç¤ÈƱ¤¸¤Ç ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£
¥ª¥×¥·¥ç¥ó mouse ¤Ï¡¢¥Þ¥¦¥¹¥È¥é¥Ã¥¥ó¥°µ¡Ç½¤È¡¢Âбþ¤¹¤ë key ¾å¤Ç¥¯¥ê ¥Ã¥¯¤¹¤ë¤³¤È¤Ç¤½¤ì¤¾¤ì¤Î¥°¥é¥Õ¤ÎÉÁ²è¤ò On/Off ¤Ë¤¹¤ëµ¡Ç½¤ò¥µ¥Ý¡¼¥È¤òÄÉ ²Ã¤¹¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥í¡¼¥«¥ë¥Ç¥£¥ì¥¯¥È¥ê¡¢ Ä̾ï¤Ï /usr/local/share/gnuplot/< version> /js Æâ¤Î¤¢¤ë¥¹¥¯¥ê¥×¥È¤ò»Ø¤¹¥ê ¥ó¥¯¤ò¼è¤ê¹þ¤à¤³¤È¤Ç¹Ô¤ï¤ì¤Þ¤¹¤¬¡¢¥ª¥×¥·¥ç¥ó jsdir ¤ËÊÌ¤Î¥í¡¼¥«¥ë¥Ç¥£ ¥ì¥¯¥È¥ê¤«¡¢Ä̾ï¤Î URL ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¤³¤ì¤ÏÊѹ¹¤Ç¤¤Þ¤¹¡£SVG ²èÁü¤ò Web ¥Ú¡¼¥¸¤ËÆþ¤ì¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢ÉáÄ̤ϸå¼Ô¤Î URL ¤ÎÊý¤ò»ØÄꤷ¤Þ¤¹¡£°ìÊý¤Ç ¥ª¥×¥·¥ç¥ó standalone ¤Ï¡¢¥Þ¥¦¥¹Áàºî¥×¥í¥°¥é¥à¤ò SVG ʸ½ñ¼«ÂΤËËä¤á¹þ ¤ß¡¢³°Éô¥ê¥½¡¼¥¹¤Ø¤Î¥ê¥ó¥¯¤Ï¹Ô¤¤¤Þ¤»¤ó¡£
SVG ¥Õ¥¡¥¤¥ë¤ò²¿¤«¤Î³°Éô¥Õ¥¡¥¤¥ë¤ÈÁȤ߹ç¤ï¤»¤ÆÍøÍѤ·¤¿¤¤¾ì¹ç¡¢Î㤨¤Ð¤½ ¤ì¤¬ PNG ²èÁü¤òÆâÉô¤Ë»ý¤Ã¤Æ¤¤¤¿¤ê¡¢¤¢¤ë Web ¥Ú¡¼¥¸¤ä¤½¤ì¤¬Ëä¤á¹þ¤ó¤Ç¤¤ ¤ëʸ½ñ¤Î javascript¥³¡¼¥É¤«¤é»²¾È¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ê¾ì¹ç¡¢Â¾¤Î SVG ¥°¥é¥Õ ¤Ø¤Î»²¾È¤È¤Î¾×ÆͤòÈò¤±¤ë¤¿¤á¤Ë°ì°ÕŪ¤Ê̾Á°¤¬É¬Íפˤʤê¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Ï ¥ª¥×¥·¥ç¥ó name ¤ò»È¤Ã¤Æ¸ÇͤÎ̾Á°¤ò³ÎÊݤ·¤Æ¤¯¤À¤µ¤¤¡£
SVG ¤Ç¤Ï¡¢SVG ʸ½ñÃæ¤Ë¥Õ¥©¥ó¥È¤òľÀÜËä¤á¹þ¤à¤³¤È¤â¤Ç¤¤Þ¤¹¤·¡¢¹¥¤¤Ê¥Õ ¥©¥ó¥È¤Ø¤Î¥Ï¥¤¥Ñ¡¼¥ê¥ó¥¯¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£fontfile ¥ª¥×¥·¥ç¥ó ¤Ë¤Ï¡¢·ë²Ì¤È¤·¤Æ½ÐÎϤµ¤ì¤ë SVG ¥Õ¥¡¥¤¥ë¤Î < defs> ¥»¥¯¥·¥ç¥ó¤ÎÃæ¤Ë¥³¥Ô ¡¼¤µ¤ì¤ë¥í¡¼¥«¥ë¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¤½¤ì¼«¿È¤¬¥Õ¥© ¥ó¥È¤ò´Þ¤ó¤Ç¤¤¤ë¤«¡¢¤Þ¤¿¤Ï´üÂÔ¤¹¤ë¥Õ¥©¥ó¥È¤ò»²¾È¤¹¤ë¥Ï¥¤¥Ñ¡¼¥ê¥ó¥¯¤òÀ¸ À®¤¹¤ë¤¿¤á¤Î¹Ô¤ò´Þ¤à¤â¤Î¤Î¤É¤Á¤é¤«¤Ç¤¹¡£gnuplot ¤Ï¡¢´Ä¶ÊÑ¿ô GNUPLOT_FONTPATH ¤Î¥Ç¥£¥ì¥¯¥È¥ê¥ê¥¹¥È¤«¤éÍ׵ᤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¡£ Ãí: TrueType ¤ä PostScript ¥Õ¥©¥ó¥È¤Ç¤Ï¤Ê¤¤ svg ¥Õ¥©¥ó¥È¤òËä¤á¹þ¤àɬÍ× ¤¬¤¢¤ê¤Þ¤¹¡£
½ñ¼°:
set terminal svga {"<fontname>"}
¿ô¤¢¤ëÃæ¤Ç¡¢ÅÀ (point) ¤Ï¡¢LaTeX ¤Î¥³¥Þ¥ó¥É " \ Diamond", " \ Box" ¤Ê¤É¤ò »È¤Ã¤ÆÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¸½ºß¤Ï LaTeX2e ¤Î¥³¥¢¤Ë¤Ï¸ºß¤»¤º latexsym ¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Î¥Ñ¥Ã¥±¡¼¥¸´ðËÜÇÛÉۤΰìÉô¤Ç ¤¢¤ê¡¢¤è¤Ã¤Æ¿¤¯¤Î LaTeX ¤Î¥·¥¹¥Æ¥à¤Î°ìÉô¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥Ñ¥Ã¥±¡¼ ¥¸¤ò»È¤¦¤³¤È¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
¥ª¥×¥·¥ç¥ó¤Ï¤¢¤ê¤Þ¤»¤ó¡£
tgif ¥É¥é¥¤¥Ð¤ÏÊ£¿ô¤ÎÅÀ¤ÎÂ礤µ (set pointsize ¤Ç)¡¢Ê£¿ô¤Î¸«½Ð¤·ÍÑ ¤Î¥Õ¥©¥ó¥È¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º (Î㤨¤Ð set label "Hallo" at x,y font "Helvetica,34")¡¢¤½¤·¤Æ 1 ¥Ú¡¼¥¸Æâ¤ÎÊ£¿ô¤Î¥°¥é¥ÕÉÁ²è¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£ ¼´¤ÎÈæΨ¤ÏÊѹ¹¤µ¤ì¤Þ¤»¤ó¡£
½ñ¼°:
set terminal tgif {portrait | landscape | default} {<[x,y]>} {monochrome | color} {{linewidth | lw} <LW>} {solid | dashed} {font "<fontname>{,<fontsize>}"}
< [x,y]> ¤Ë¤Ï¤½¤Î¥Ú¡¼¥¸Æâ¤Î x Êý¸þ¡¢y Êý¸þ¤Î¥°¥é¥Õ¤Î¿ô¤ò»ØÄꤷ¡¢ color ¤Ï¥«¥é¡¼µ¡Ç½¤ò͸ú¤Ë¤·¡¢linewidth ¤ÏÁ´¤Æ¤ÎÀþÉý¤ò < LW> Çܤ·¡¢ "< fontname> " ¤Ë¤Ï͸ú¤Ê PostScript ¥Õ¥©¥ó¥È̾¡¢< fontsize> ¤Ï¤½¤Î PostScript ¥Õ¥©¥ó¥È¤ÎÂ礤µ¤ò»ØÄꤷ¤Þ¤¹¡£defaults ¤ÏÁ´¤Æ¤Î¥ª¥×¥·¥ç¥ó ¤ÎÃͤò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ˥»¥Ã¥È¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï portrait, [1,1], color, linewidth 1.0, dashed, "Helvetica,18" ¤Ç¤¹¡£
solid ¥ª¥×¥·¥ç¥ó¤Ï¡¢ÊÔ½¸ºî¶ÈÃæ¤Ë¤½¤¦¤Ç¤¢¤ë¤è¤¦¤Ë¡¢Àþ¤¬¥«¥é¡¼¤Ç¤¢¤ë¾ì ¹ç¤ËÉáÄ̻Ȥï¤ì¤Þ¤¹¡£¥Ï¡¼¥É¥³¥Ô¡¼¤ÏÇò¹õ¤Ë¤Ê¤ë¤³¤È¤¬Â¿¤¤¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï dashed ¤òÁªÂò¤¹¤Ù¤¤Ç¤·¤ç¤¦¡£
¿½ÅÉÁ²è (multiplot) ¤Ï 2 ¼ïÎà¤ÎÊýË¡¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤½¤Î°ì¤Ä¤Ï¡¢É¸½àŪ¤Ê gnuplot ¤Î¿½ÅÉÁ²è¤Î¤ä¤êÊý¤Ç¤¹:
set terminal tgif set output "file.obj" set multiplot set origin x01,y01 set size xs,ys plot ... ... set origin x02,y02 plot ... unset multiplot
¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set multiplot (82.41)¡£
¤â¤¦°ì¤Ä¤ÎÊýË¡¤Ï¥É¥é¥¤¥Ð¤Î [x,y] ¥ª¥×¥·¥ç¥ó¤Ç¤¹¡£¤³¤ÎÊýË¡¤ÎĹ½ê¤Ï¡¢¸¶ ÅÀ (origin) ¤äÂ礤µ (size) ¤ÎÀßÄê¤ò¤·¤Ê¤¯¤Æ¤âÁ´¤Æ¤Î¥°¥é¥Õ¤¬¼«Æ°Åª¤Ë½Ì ¼Ü¤µ¤ìÇÛÃÖ¤µ¤ì¤ë¤³¤È¤Ç¤¹¡£¥°¥é¥Õ¤ÎÈæ x/y ¤Ï¡¢¼«Á³¤ÊÈæ 3/2 (¤Þ¤¿¤Ï set size ¤ÇÀßÄꤵ¤ì¤¿¤â¤Î) ¤¬ÊÝ»ý¤µ¤ì¤Þ¤¹¡£
ξÊý¤Î¿½ÅÉÁ²è¤Î¼ÂÁõ¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¡¢É¸½àŪ¤Ê¤ä¤êÊý¤ÎÊý¤¬ÁªÂò¤µ¤ì¡¢·Ù ¹ð¤Î¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
ñ°ìÉÁ²è (¤Þ¤¿¤Ïɸ½àŪ¤Ê¿½ÅÉÁ²è) ¤ÎÎã:
set terminal tgif # ¥Ç¥Õ¥©¥ë¥È set terminal tgif "Times-Roman,24" set terminal tgif landscape set terminal tgif landscape solid
¥É¥é¥¤¥Ð¤Î»ý¤Ä¿½ÅÉÁ²è¤Î»ÅÁȤߤòÍøÍѤ¹¤ëÎã:
set terminal tgif portrait [2,4] # ½ÄÃÖ¡¢x-Êý¸þ¤Ë 2 ¤Ä¡¢y-Êý¸þ # ¤Ë 4 ¤Ä¤Î¥°¥é¥ÕÉÁ²è set terminal tgif [1,2] # ½ÄÃÖ¡¢x-Êý¸þ¤Ë 1 ¤Ä¡¢y-Êý¸þ # ¤Ë 2 ¤Ä¤Î¥°¥é¥ÕÉÁ²è set terminal tgif landscape [3,3] # ²£ÃÖ¡¢Î¾Êý¤ÎÊý¸þ¤Ë 3 ¤Ä¤Î¥° # ¥é¥ÕÉÁ²è
gnuplot> set term tkcanvas {perltk} {interactive} gnuplot> set output 'plot.file'
¤½¤·¤Æ "wish" ¤òµ¯Æ°¤·¤¿¸å¤Ç¡¢°Ê²¼¤Î Tcl/Tk ¥³¥Þ¥ó¥ÉÎó¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤:
% source plot.file % canvas .c % pack .c % gnuplot .c
Perl/Tk ¤Î¾ì¹ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤³¤Î¥×¥í¥°¥é¥à¤ò»È¤¤¤Þ¤¹:
use Tk; my $top = MainWindow->new; my $c = $top->Canvas->pack; my $gnuplot = do "plot.pl"; $gnuplot->($c); MainLoop;
gnuplot ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¥³¡¼¥É¤Ï "gnuplot" ¤È¸Æ¤Ð¤ì¤ë¼ê³¤¤òºî¤ê¡¢ ¤½¤ì¤Ï¤½¤Î°ú¿ô¤ò canvas ¤Î̾Á°¤È¤·¤Þ¤¹¡£¤½¤Î¼ê³¤¤¬¸Æ¤Ð¤ì¤ë¤È¡¢¤½¤ì¤Ï canvas ¤ò¥¯¥ê¥¢¤·¡¢canvas ¤Î¥µ¥¤¥º¤ò¸«¤Ä¤±¡¢¤½¤ÎÃæ¤ËÃúÅÙ¼ý¤Þ¤ë¤è¤¦¤Ë¥° ¥é¥Õ¤ò½ñ¤¤Þ¤¹¡£
2 ¼¡¸µ¤ÎÉÁ²è (plot) ¤Ç¤Ï 2 ¤Ä¤Î¼ê³¤¤¬Äɲ䵤ì¤ÆÄêµÁ¤µ¤ì¤Þ¤¹: "gnuplot_plotarea" ¤ÏÉÁ²èÈϰϤ泦¤ò´Þ¤à¥ê¥¹¥È "xleft, xright, ytop, ybot" ¤ò canvas ¥¹¥¯¥ê¡¼¥óºÂɸ¤ÇÊÖ¤·¡¢2 ¤Ä¤ÎÂФμ´¤ÎÉÁ²èºÂɸ¤Ç¤ÎÈÏ°Ï "x1min, x1max, y1min, y1max, x2min, x2max, y2min, y2max" ¤Ï¼ê³¤ "gnuplot_axisranges" ¤ò¸Æ¤Ù¤ÐÆÀ¤é¤ì¤Þ¤¹¡£"interactive" ¥ª¥×¥·¥ç¥ó¤ò»Ø Äꤹ¤ë¤È¡¢canvas ¤ÎÀþʬ¾å¤Ç¥Þ¥¦¥¹¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤½¤ÎÀþʬ¤ÎÃæÅÀ¤ÎºÂɸ ¤¬É¸½à½ÐÎϤ˽ÐÎϤµ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤µ¤é¤Ë¡¢"user_gnuplot_coordinates" ¤È¤¤¤¦¼ê³¤¤òÄêµÁ¤¹¤ë¤³¤È¤Ç¡¢¤½¤ì¤ËÂå¤ï¤ë¿·¤¿¤ÊÆ°ºî¤òµ¯¤³¤¹¤³¤È¤â²Äǽ ¤Ç¤¹¡£¤½¤Î¼ê³¤¤Ë¤Ï°Ê²¼¤Î°ú¿ô¤¬ÅϤµ¤ì¤Þ¤¹: "win id x1s y1s x2s y2sx1e y1e x2e y2e x1m y1m x2m y2m"¡¢¤³¤ì¤é¤Ï¡¢canvas ¤Î̾Á°¡¢Àþʬ¤Î id¡¢2 ¤Ä¤ÎºÂɸ·Ï¤Ç¤Î¤½¤ÎÀþʬ¤Î³«»ÏÅÀ¤ÎºÂɸ¡¢½ªÎ»ÅÀ¤ÎºÂɸ¡¢¤½¤·¤ÆÃæÅÀ¤ÎºÂɸ¤Ç¤¹¡£ÃæÅÀ¤ÎºÂɸ¤ÏÂпô¼´¤ËÂФ·¤Æ¤Î¤ßÍ¿¤¨¤é¤ì¤Þ¤¹¡£
tkcanvas ¤Î¸½ºß¤ÎÈÇ¤Ç¤Ï multiplot ¤â replot ¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤» ¤ó¡£
½ñ¼°:
set terminal tpic <pointsize> <linewidth> <interval>
pointsize ¤È linewidth ¤ÏÀ°¿ô¤Ç¥ß¥ê¥¤¥ó¥Áñ°Ì¡¢interval ¤Ï¼Â¿ô¤Ç ñ°Ì¤Ï¥¤¥ó¥Á¤Ç¤¹¡£Àµ¤Ç¤Ê¤¤Ãͤò»ØÄꤹ¤ë¤È¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬»È¤ï¤ì¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï pointsize = 40, linewidth = 6, interval = 0.1 ¤Ç¤¹¡£
LaTeX ¤Ë´Ø¤¹¤ëÁ´¤Æ¤Î¥É¥é¥¤¥Ð¤Ïʸ»úÎó¤ÎÇÛÃÖ¤ÎÀ©¸æ¤ËÆÃÊ̤ÊÊýË¡¤òÄ󶡤·¤Þ ¤¹: '{' ¤Ç»Ï¤Þ¤ëʸ»úÎó¤Ï¡¢'}' ¤ÇÊĤ¸¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Îʸ»úÎóÁ´ÂÎ ¤¬ LaTeX ¤Ë¤è¤Ã¤Æ¿åÊ¿Êý¸þ¤Ë¤â¿âľÊý¸þ¤Ë¤â¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£'[' ¤Ç »Ï¤Þ¤ëʸ»úÎó¤Î¾ì¹ç¤Ï¡¢°ÌÃ֤λØÄê¤ò¤¹¤ëʸ»úÎó (t,b,l,r ¤Î¤¦¤Á 2 ¤Ä¤Þ¤Ç) ¤¬Â³¤¡¢¼¡¤Ë ']{'¡¢Ê¸»úÎóËÜÂΡ¢¤ÇºÇ¸å¤Ë '}' ¤È¤·¤Þ¤¹¤¬¡¢¤³¤Îʸ»úÎó¤Ï LaTeX ¤¬ LR-box ¤È¤·¤ÆÀ°·Á¤·¤Þ¤¹¡£ \ rule{}{} ¤ò»È¤¨¤Ð¤µ¤é¤ËÎɤ¤°ÌÃÖ¹ç¤ï ¤»¤¬²Äǽ¤Ç¤·¤ç¤¦¡£
Îã:
¸«½Ð¤·¤Î°ÌÃÖ¹ç¤ï¤»¤Ë´Ø¤·¤Æ:
gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È (ÂçÄñ¤½¤ì¤Ê¤ê¤Ë¤Ê¤ë¤¬¡¢¤½¤¦¤Ç¤Ê¤¤¤³¤È¤â¤¢¤ë):
set title '\LaTeX\ -- $ \gamma $'
set label '{\LaTeX\ -- $ \gamma $}' at 0,0
set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'
½ñ¼°:
set terminal vgagl \ background [red] [[green] [blue]] \ [uniform | interpolate] \ [mode]
¥«¥é¡¼¥â¡¼¥É¤Ï mode ¥ª¥×¥·¥ç¥ó¤ÇÍ¿¤¨¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£G1024x768x256 ¤Î ¤è¤¦¤Êµ¹æŪ̾¾Î¤äÀ°¿ô¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó background ¤Ï [0, 255] ¤ÎÈϰϤÎÀ°¿ô 1 ¤Ä¡¢¤Þ¤¿¤Ï 3 ¤Ä¤ÎÁȤò¼è¤ê¤Þ¤¹¡£À°¿ô 1 ¤Ä¤Î ¾ì¹ç¤Ï¤½¤ì¤ÏÇطʤγ¥¿§¤ÎÃͤȸ«¤Ê¤µ¤ì¡¢3 ¤Ä¤ÎÁȤξì¹ç¤Ï¤½¤ì¤ËÂбþ¤·¤¿¿§ ¤¬Çطʤ˼è¤é¤ì¤Þ¤¹¡£ Áê¸ß¤ËÇÓ¾Ū¤Ê¥ª¥×¥·¥ç¥ó interpolate ¤È uniform ¤Ï¡¢»°³Ñ·Á¤ÎÅɤê¤Ä ¤Ö¤·¤ÎºÝ¤Ë¿§¤ÎÊä´Ö¤¬¹Ô¤¦¤«¤É¤¦¤« (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï ON) ¤òÀ©¸æ¤·¤Þ¤¹¡£
¹â²òÁüÅ٥⡼¥É¤òÆÀ¤ë¤Ë¤Ï¡¢Â¿Ê¬ libvga ¤ÎÀßÄê¥Õ¥¡¥¤¥ë (Ä̾ï /etc/vga/libvga.conf) ¤ò½¤Àµ¤¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£VESA fb ¤ò»È¤¦¤Î¤Ï Îɤ¤ÁªÂò¤Ç¤¹¤¬¡¢¤½¤ì¤Ï¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤¬É¬ÍפǤ¹¡£
vgagl ¥É¥é¥¤¥Ð¤Ï¡¢°Ê²¼¤Î¥ê¥¹¥È¤Î¤¦¤Á¤Î *͸ú¤Ê* vga ¥â¡¼¥É¤ÎºÇ½é¤Î¤â¤Î¤ò»ÈÍѤ·¤Þ¤¹¡£
- vgagl ¤ÎÀßÄê»þ¤ËÍ¿¤¨¤é¤ì¤ë¥â¡¼¥É¡¢Î㤨¤Ð `set term vgagl G1024x768x256` ¤ÏºÇ½é¤Ë G1024x768x256 ¥â¡¼¥É¤¬Í¸ú¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£ - ´Ä¶ÊÑ¿ô SVGALIB_DEFAULT_MODE - G1024x768x256 - G800x600x256 - G640x480x256 - G320x200x256 - G1280x1024x256 - G1152x864x256 - G1360x768x256 - G1600x1200x256
½ñ¼°:
set terminal windows {<n>} {color | monochrome} {solid | dashed} {enhanced | noenhanced} {font <fontspec>} {linewdith <scale>} {fontscale <scale>} {linewdith <scale>} {background <rgb color>} {title "Plot Window Title"} {size <width>,<height>} {position <x>,<y>} {close}
Ê£¿ô¤Î¥¦¥£¥ó¥É¥¦ÉÁ²è¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹: set terminal win < n> ¤Ç ½ÐÎϤ¬ÈÖ¹æ n ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ËÁ÷¤é¤ì¤Þ¤¹¡£
color, monochrome ¤Ï¡¢¥«¥é¡¼½ÐÎϤ«Çò¹õ½ÐÎϤ«¤ÎÁªÂò¤Ç¡¢ dashed ¤È solid ¤Ï¡¢ÅÀÀþ¤È¼ÂÀþ¤ÎÁªÂò¤Ç¤¹¡£color ¤Ç¤Ï solid ¤¬ ¥Ç¥Õ¥©¥ë¥È¤Ç¡¢monochrome ¤Ç¤Ï dashed ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£ enhanced ¤Ï³Èĥʸ»úÎó½èÍý (enhanced text mode) ¤Îµ¡Ç½ (¾åÉÕ¡¢²¼ÉÕʸ»ú ¤ä¥Õ¥©¥ó¥È¤Îº®ºß) ¤ò͸ú¤Ë¤·¤Þ¤¹¡£¾ÜºÙ¤Ï°Ê²¼»²¾È: enhanced text (12)¡£ < fontspec> ¤Ï "< fontface> ,< fontsize> " ¤Î·Á¼°¤Ç¡¢"< fontface> " ¤ÏÍ ¸ú¤Ê Windows ¤Î¥Õ¥©¥ó¥È̾¤Ç¡¢< fontsize> ¤Ï¥Ý¥¤¥ó¥Èñ°Ì¤Ç¤Î¥Õ¥©¥ó¥È¤Î Â礤µ¤Ç¤¹¡£¤³¤ÎξÍ×ÁǤϤ¤¤º¤ì¤â¾Êά²Äǽ¤Ç¤¹¡£ °ÊÁ°¤ÎÈǤΠgnuplot ¤Ç¤Ï¡¢font ¥¡¼¥ï¡¼¥É¤Ï¾Êά²Äǽ¤Ç¡¢< fontsize> ¤Ï°úÍÑÉä¤Ê¤·¤Î¿ôÃͤÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï¤½¤Î·Á¼°¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ linewidth ¤È fontscale ¤ÇÀþ¤ÎÉý¤Èʸ»ú¥µ¥¤¥º¤ò¿½Ì¤Ç¤¤Þ¤¹¡£ title ¤Ï¡¢¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤Î¥¿¥¤¥È¥ë¤òÊѹ¹¤·¤Þ¤¹¡£ size ¤Ï¥¦¥£¥ó¥É¥¦¤Î¥Ô¥¯¥»¥ëñ°Ì¤Ç¤ÎÉý¤È¹â¤µ¤ò¡¢position ¤Ï¥¦¥£¥ó¥É ¥¦¤Î¸¶ÅÀ¡¢¤¹¤Ê¤ï¤Áº¸¾å³Ñ¤Î¥¹¥¯¥ê¡¼¥ó¾å¤Î¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î°ÌÃÖ¤òÄêµÁ¤·¤Þ ¤¹¡£¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥Õ¥¡¥¤¥ë wgnuplot.ini ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò ¾å½ñ¤¤·¤Þ¤¹¡£
¾¤Î¥ª¥×¥·¥ç¥ó¤â¥°¥é¥Õ¥á¥Ë¥å¡¼¤ä½é´ü²½¥Õ¥¡¥¤¥ë wgnuplot.ini ¤ÇÊѹ¹¤Ç ¤¤Þ¤¹¡£
Windows ÈǤϡ¢ÈóÂÐÏ÷¿¥â¡¼¥É¤Ç¤ÏÄ̾¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÍ¿¤¨¤¿¥Õ¥¡¥¤¥ë ¤ÎºÇ¸å¤Ë㤹¤ë¤Èľ¤Á¤Ë½ªÎ»¤·¤Þ¤¹¤¬¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ÎºÇ¸å¤Ë - ¤ò»ØÄê ¤·¤¿¾ì¹ç¤ÏÊ̤Ǥ¹¡£¤Þ¤¿¡¢¤³¤Î¥â¡¼¥É¤Ç¤Ï¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤Ïɽ¼¨¤»¤º¡¢¥° ¥é¥Õ¤Î¤ß¤Îɽ¼¨¤È¤Ê¤ê¤Þ¤¹¤¬¡¢¥ª¥×¥·¥ç¥ó¤È¤·¤Æ -persist (x11 ÈǤΠgnuplot ¤ÈƱ¤¸¥ª¥×¥·¥ç¥ó; ½¾Íè¤Î Windows ¤Î¤ß¤Î¥ª¥×¥·¥ç¥ó /noend ¤ä -noend ¤ò»È¤¦¤³¤È¤â¤Ç¤¤Þ¤¹) ¤ò»ØÄꤹ¤ë¤È gnuplot ¤Ï½ªÎ»¤·¤Ê¤¯¤Ê¤ê¤Þ ¤¹¡£¤³¤Î¾ì¹ç¾¤Î OS ¤Ç¤Î gnuplot ¤ÎµóÆ°¤È¤Ï°Û¤Ê¤ê¡¢-persist ¥ª¥×¥·¥ç¥ó ¸å¤â gnuplot ¤ÎÂÐÏ÷¿¥³¥Þ¥ó¥É¥é¥¤¥ó¤ò¼õ¤±ÉÕ¤±¤Þ¤¹¡£
¥³¥Þ¥ó¥É set term ¤Ç gnuplot ¤Î½ÐÎÏ·Á¼°¤òÊѹ¹¤·¤¿¾ì¹ç¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦ ¤Ï¤½¤Î¤Þ¤Þ»Ä¤ê¤Þ¤¹¤¬¡¢set term windows close ¤ÇÉÁ²è¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤ë ¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
gnuplot ¤Ï¡¢Windows ¾å¤Ç¤Î½ÐÎϤÎÀ¸À®¤Î¤¿¤á¤Î¤¤¤¯¤Ä¤«¤ÎÊýË¡¤ò¥µ¥Ý¡¼¥È ¤·¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: windows printing (92.70.2)¡£windows ½ÐÎÏ·Á¼°¤Ï¡¢¥¯¥ê¥Ã¥× ¥Ü¡¼¥É¤ä EMF ¥Õ¥¡¥¤¥ë¤òÄ̤·¤Æ¾¤Î¥×¥í¥°¥é¥à¤È¤Î¥Ç¡¼¥¿¤Î¸ò´¹¤ò¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: graph-menu (92.70.1)¡£EMF ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¤Ë¤Ï¡¢emf ½Ð ÎÏ·Á¼°¤ò»È¤¦¤³¤È¤â¤Ç¤¤Þ¤¹¡£
Copy to Clipboard ¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ë¥Ó¥Ã¥È¥Þ¥Ã¥×¤ä EMF ²èÁü¤ò¥³¥Ô¡¼
Save as EMF... ¸½ºß¤Î¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤ò EMF ¥Õ¥¡¥¤¥ë¤È¤·¤ÆÊݸ
Print... ¥°¥é¥Õ¥£¥Ã¥¯¥¦¥£¥ó¥É¥¦¤ò Windows ¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤Ç¥×¥ê¥ó¥È ¥¢¥¦¥È¡£¥×¥ê¥ó¥¿¤È³ÈÂçΨ¤ÎÁªÂò¤¬²Äǽ¤Ç¤¹¤¬¡¢¤³¤Î Print ¥ª¥×¥·¥ç¥ó¤Ë ¤è¤ë°õºþ·ë²Ì¤Ï gnuplot ¤Î»ý¤Ä¥×¥ê¥ó¥¿¥É¥é¥¤¥Ð¤Ë¤è¤ë¤â¤ÎÄøÎɤ¯¤Ï¤¢¤ê ¤Þ¤»¤ó¡£°Ê²¼¤â»²¾È: windows printing (92.70.2)¡£
Bring to Top ¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¤È¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤ò¾¤ÎÁ´¤Æ¤ÎÉÁ²è¥¦¥£¥ó ¥É¥¦¤Î¼êÁ°¤Ëɽ¼¨
Color ¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¤È¥«¥é¡¼¤ÎÀþ¼ï¤¬Í¸ú¡¢¥Á¥§¥Ã¥¯Ìµ¤·¤Ç¤ÏÇò¹õ
Double buffer ¥°¥é¥Õ¤ò¥¹¥¯¥ê¡¼¥ó¤Ë¼Ì¤¹Á°¤Ë¥á¥â¥ê¥Ð¥Ã¥Õ¥¡¤ËÉÁ²è¤¹¤ë¤³ ¤È¤ò͸ú¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Î㤨¤Ð¥¢¥Ë¥á¡¼¥·¥ç¥ó»þ¤ä 3 ¼¡¸µ¥°¥é¥Õ¤Î²óž»þ ¤Î¤Á¤é¤Á¤é (¥Õ¥ê¥Ã¥«¡¼) ¤ò²óÈò¤·¤Þ¤¹¡£°Ê²¼»²¾È: mouse (82.40), scrolling (82.40.3)¡£
Oversampling ²¾ÁÛ¥¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤òÇܤˤ·¤Þ¤¹¡£¥¹¥¯¥ê¡¼¥ó¤Ë¼Ì¤¹ºÝ¤Ë ¤ÏºÆ¤ÓȾʬ¤Ë½Ì¾®¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¥°¥é¥Õ¥£¥Ã¥¯¤Ï¤è¤ê³ê¤é¤«¤Ë¤Ê¤ê¤Þ ¤¹¤¬¡¢¤·¤«¤·¥á¥â¥ê¤ä·×»»»þ´Ö¤¬¤è¤êɬÍפǤ¹¡£¤³¤ì¤Ï double buffer ¤âɬ ÍפǤ¹¡£
Antialiasing ÀÞ¤ìÀþ¤äÀþ¤Îü¤ÎÊ¿³ê²½¤òÁªÂò¤·¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤ò¯¤¹¤ë ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
Background... ¥¦¥£¥ó¥É¥¦ÇØ·Ê¿§¤ÎÀßÄê
Choose Font... ¥°¥é¥Õ¥£¥Ã¥¯¥¦¥£¥ó¥É¥¦¤Ç»È¤¦¥Õ¥©¥ó¥È¤ÎÁªÂò
Line Styles... Àþ¤Î¿§¤ä¼ïÎà¤Î¥«¥¹¥¿¥Þ¥¤¥º
Update wgnuplot.ini ¸½ºß¤Î¥¦¥£¥ó¥É¥¦¤Î°ÌÃÖ¡¢¥¦¥£¥ó¥É¥¦¤ÎÂ礤µ¡¢¥Æ¥ ¥¹¥È¥¦¥£¥ó¥É¥¦¤Î¥Õ¥©¥ó¥È¤È¤½¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¡¢¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤Î¥Õ¥©¥ó ¥È¤È¤½¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¡¢ÇØ·Ê¿§¡¢Àþ¼ï¤ò½é´ü²½¥Õ¥¡¥¤¥ë wgnuplot.ini ¤Ë Êݸ
(*) ¤³¤Î¥á¥Ë¥å¡¼¤Ï¡¢unset mouse ¤Ë¤è¤Ã¤Æ±¦¥Þ¥¦¥¹¥Ü¥¿¥ó²¡¤·¤·¤«»È¤¨¤Ê ¤¯¤Ê¤ë¤Î¤ÇÃí°Õ¡£
1. gnuplot ¤Î¥³¥Þ¥ó¥É set terminal ¤Ç¥×¥ê¥ó¥¿¤òÁªÂò¤·¡¢set output ¤Ç½ÐÎϤò¥Õ¥¡¥¤¥ë¤Ë¥ê¥À¥¤¥ì¥¯¥È
2. gnuplot graph ¥¦¥£¥ó¥É¥¦¤«¤é Print... ¥³¥Þ¥ó¥É¤òÁªÂò¡£¥Æ¥¥¹ ¥È¥¦¥£¥ó¥É¥¦¤«¤é¤³¤ì¤ò¹Ô¤Ê¤¦ÆÃÊ̤ʥ³¥Þ¥ó¥É screendump ¤â¤¢¤ë¡£
3. set output "PRN" ¤È¤¹¤ë¤È½ÐÎϤϰì»þ¥Õ¥¡¥¤¥ë¤Ë½ÐÎϤµ¤ì¡¢gnuplot ¤ò½ªÎ»¤¹¤ë¤«¤Þ¤¿¤Ï set output ¥³¥Þ¥ó¥É¤Ç½ÐÎϤò¾¤Î¤â¤Î¤ØÊѹ¹¤¹¤ë¤È¡¢ ¥À¥¤¥¢¥í¥° (ÂÐÏÃ) ¥Ü¥Ã¥¯¥¹¤¬¸½¤ï¤ì¡¢¤½¤³¤Ç¥×¥ê¥ó¥¿¥Ý¡¼¥È¤òÁªÂò¡£¤½¤³¤Ç OK ¤òÁªÂò¤¹¤ë¤È¡¢½ÐÎϤϥץê¥ó¥È¥Þ¥Í¡¼¥¸¥ã¤Ç¤Ï²Ã¹©¤µ¤ì¤º¤Ë¤½¤Î¤Þ¤ÞÁªÂò ¤µ¤ì¤¿¥Ý¡¼¥È¤Ç¥×¥ê¥ó¥È¥¢¥¦¥È¤µ¤ì¤ë¡£¤³¤ì¤Ï¶öÁ³ (¤Þ¤¿¤Ï¸Î°Õ) ¤Ë¡¢¤¢¤ë¥× ¥ê¥ó¥¿ÍѤνÐÎϤò¡¢¤½¤ì¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¥×¥ê¥ó¥¿¤ËÁ÷¤êÆÀ¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
Copy to Clipboard ¥Þ¡¼¥¯¤·¤¿¥Æ¥¥¹¥È¤ò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ë¥³¥Ô¡¼
Paste ÂǤÁ¹þ¤ó¤À¤Î¤ÈƱ¤¸¤è¤¦¤Ë¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤«¤é¥Æ¥¥¹¥È¤ò¥³¥Ô¡¼
Choose Font... ¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤Ç»È¤¦¥Õ¥©¥ó¥È¤ÎÁªÂò
System Colors ÁªÂò¤¹¤ë¤È¥³¥ó¥È¥í¡¼¥ë¥Ñ¥Í¥ë¤ÇÀßÄꤷ¤¿¥·¥¹¥Æ¥à¥«¥é¡¼¤ò ¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤ËÍ¿¤¨¤ë¡£ÁªÂò¤·¤Ê¤±¤ì¤ÐÇòÇطʤÇʸ»ú¤Ï¹õ¤«ÀÄ¡£
Wrap long lines ÁªÂò¤¹¤ë¤È¸½ºß¤Î¥¦¥£¥ó¥É¥¦Éý¤è¤ê¤âŤ¤¹Ô¤òÀÞ¤êÊÖ¤¹
Update wgnuplot.ini ¸½ºß¤ÎÀßÄê¤ò¡¢¥æ¡¼¥¶¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥Ç¡¼¥¿¥Ç¥£ ¥ì¥¯¥È¥ê¤Ë¤¢¤ë½é´ü²½¥Õ¥¡¥¤¥ë wgnuplot.ini ¤ËÊݸ
[Menu] ¼¡¤Î¹Ô¤Î̾Á°¤Ç¿·¤·¤¤¥á¥Ë¥å¡¼¤ò³«»Ï [EndMenu] ¸½ºß¤Î¥á¥Ë¥å¡¼¤ò½ªÎ» [--] ¿åÊ¿¤Ê¥á¥Ë¥å¡¼¤Î»ÅÀÚ¤ê¤òÆþ¤ì¤ë [|] ¿âľ¤Ê¥á¥Ë¥å¡¼¤Î»ÅÀÚ¤ê¤òÆþ¤ì¤ë [Button] ¥á¥Ë¥å¡¼¤Ë²¡¤·¥Ü¥¿¥ó¤òÆþ¤ì¡¢¤½¤ì¤Ë¼¡¤Î¥Þ¥¯¥í¤ò³ä¤êÅö¤Æ¤ë
¥Þ¥¯¥í¤Ï 2 ¹Ô¤Ç½ñ¤¡¢ºÇ½é¤Î¹Ô¤Ï¥Þ¥¯¥í̾ (¥á¥Ë¥å¡¼¤Î¸«½Ð¤·)¡¢2 ¹ÔÌܤ¬¥Þ ¥¯¥íËÜÂΤǤ¹¡£ÀèƬ¤Î¶õÇòÎó¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¥Þ¥¯¥í¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÄ̤ê:
[INPUT] [EOS] ¤« {ENTER} ¤Þ¤Ç¤ò¥×¥í¥ó¥×¥È¤È¤·¤Æ½ÐÎϤ·Ê¸»úÎó¤òÆþÎÏ
[EOS] ʸ»úÎó¤Î½ª¤ê (End Of String)¡£²¿¤â½ÐÎϤ·¤Ê¤¤
[OPEN] ³«¤¯¥Õ¥¡¥¤¥ë̾¤ò¼èÆÀ¡£ºÇ½é¤Î [EOS] ¤Þ¤Ç¤¬ÂÐÏÃ¥¦¥£¥ó¥É¥¦¤Î¥¿
¥¤¥È¥ë¡¢¤½¤³¤«¤é¼¡¤Î [EOS] ¤« {ENTER} ¤Þ¤Ç¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Õ ¥¡¥¤¥ë̾
¤Î¥¿¥¤¥È¥ë
{ENTER} Éüµ¢ '\r' {TAB} ¥¿¥Ö '\011' {ESC} ¥¨¥¹¥±¡¼¥× '\033' {^A} '\001' ... {^_} '\031'
¥Þ¥¯¥í¤ÏŸ³«¸å¤Îʸ»ú¿ô¤¬ºÇÂç 256 ʸ»ú¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
[WGNUPLOT] TextOrigin=0 0 TextSize=640 150 TextFont=Terminal,9 TextWrap=1 TextLines=400 SysColors=0 GraphOrigin=0 150 GraphSize=640 330 GraphFont=Arial,10 GraphColor=1 GraphToTop=1 GraphDoublebuffer=1 GraphOversampling=0 GraphAntialiasing=1 GraphBackground=255 255 255 Border=0 0 0 0 0 Axis=192 192 192 2 2 Line1=0 0 255 0 0 Line2=0 255 0 0 1 Line3=255 0 0 0 2 Line4=255 0 255 0 3 Line5=0 0 128 0 4
°Ê²¼¤ÎÀßÄê¤Ï wgnuplot ¤Î¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤Î¤ß¤ËŬÍѤµ¤ì¤Þ¤¹¡£
TextOrigin ¤È TextSize ¤Ï¡¢¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤Î°ÌÃ֤ȥµ¥¤¥º¤Î»ØÄê ¤Ç¤¹¡£
TextFont ¤Ï¡¢¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤Î¥Õ¥©¥ó¥È¤È¥µ¥¤¥º¤Î»ØÄê¤Ç¤¹¡£
TextWrap ¤Ï¡¢Ä¹¤¤¥Æ¥¥¹¥È¹Ô¤ÎÀÞ¤êÊÖ¤·¤òÁªÂò¤·¤Þ¤¹¡£
TextLines ¤Ï¡¢¥Æ¥¥¹¥È¥¦¥£¥ó¥É¥¦¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤Ë²¿¹Ô (ÀÞ¤êÊÖ¤·¤Ê¤·) ÊÝ»ý¤¹¤ë¤«¤ò»ØÄꤷ¤Þ¤¹¡£¸½ºß¤Ï¡¢¤³¤ÎÃͤò wgnuplot Æ⤫¤é¤ÏÊѹ¹¤Ç¤¤Þ¤» ¤ó¡£
°Ê²¼»²¾È: text-menu (92.70.3)¡£
GraphFont ¤Ï¡¢¥Õ¥©¥ó¥È̾¤È¥Ý¥¤¥ó¥Èñ°Ì¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î»ØÄê¤Ç¤¹¡£
Border, Axis, Line ¤Ë¤Ï¡¢À֤ζ¯ÅÙ (0-255)¡¢ÎФζ¯ÅÙ¡¢ÀĤζ¯ÅÙ¡¢ ¥«¥é¡¼¤ÎÀþ¼ï¡¢Çò¹õ¤ÎÀþ¼ï¤Î 5 ¤Ä¤Î¿ô»ú¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ÎÀþ¼ï (linestyle) ¤Ï¡¢0=¼ÂÀþ¡¢1=º¿Àþ¡¢2=ÅÀÀþ¡¢3=°ìÅÀº¿Àþ¡¢4=ÆóÅÀº¿Àþ¡¢¤È¤Ê ¤Ã¤Æ¤¤¤Þ¤¹¡£¾å¤ÎÎã¤Î wgnuplot.ini ¤Ç¤Ï¡¢Line 2 ¤Ï¥«¥é¡¼¥â¡¼¥É¤Ç¤ÏÎФΠ¼ÂÀþ¤Ç¡¢Çò¹õ¥â¡¼¥É¤Ç¤Ïº¿Àþ¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÀþÉý¤Ï 1 ¥Ô¥¯¥»¥ë¤Ç¤¹¡£ Àþ¼ï¤¬Éé¤ÎÃͤξì¹ç¡¢¤½¤ÎÀäÂÐÃͤ¬¥Ô¥¯¥»¥ëñ°Ì¤Ç¤ÎÀþÉý¤Ç¤¢¤ë¼ÂÀþ¤ò°ÕÌ£¤· ¤Þ¤¹¡£Line1 ¤È points ¥¹¥¿¥¤¥ë¤Ç»È¤ï¤ì¤ëÀþ¼ï¤Ï 1 ¥Ô¥¯¥»¥ëÉý¤Î¼ÂÀþ¤Ç¤Ê ¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
°Ê²¼»²¾È: graph-menu (92.70.1)¡£
½ñ¼°:
set term wxt {<n>} {size <width>,<height>} {background <rgb_color>} {{no}enhanced} {font <font>} {fontscale <scale>} {title "title"} {dashed|solid} {dashlength <dl>} {{no}persist} {{no}raise} {{no}ctrl} {close}
Ê£¿ô¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢set terminal wxt < n> ¤È¤¹¤ì¤Ð ÈÖ¹æ n ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Ø½ÐÎϤ·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î¥¦¥£¥ó¥É¥¦¥¿¥¤¥È¥ë¤Ï¡¢¤³¤Î¥¦¥£¥ó¥É¥¦ÈÖ¹æ¤Ë´ð¤Å¤¤¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¥¿¥¤¥È¥ë¤Ï "title" ¥¡¼¥ï¡¼¥É¤Ç¤â»ØÄê¤Ç¤¤Þ¤¹¡£
ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢gnuplot ¤Î½ÐÎÏ·Á¼°¤òÊ̤ʤâ¤Î¤ËÊѹ¹¤·¤Æ¤â»Ä¤Ã¤¿¤Þ¤Þ ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì¤òÊĤ¸¤ë¤Ë¤Ï¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤ËÆþÎÏ¥Õ¥©¡¼¥«¥¹¤¬¤¢¤ë¾õÂÖ ¤Ç 'q' ¤òÆþÎϤ¹¤ë¤«¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Î¥á¥Ë¥å¡¼¤Ç close ¤òÁªÂò¤¹ ¤ë¤«¡¢set term wxt < n> close ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£
ÉÁ²èÎΰè¤Î¥µ¥¤¥º¤Ï¥Ô¥¯¥»¥ëñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 640x384 ¤Ç¤¹¡£ ¤½¤ì¤Ë²Ã¤¨¤Æ¡¢¥¦¥£¥ó¥É¥¦¤Î¼ÂºÝ¤Î¥µ¥¤¥º¤Ë¤Ï¡¢¥Ä¡¼¥ë¥Ð¡¼¤ä¥¹¥Æ¡¼¥¿¥¹¥Ð¡¼ ÍѤΥ¹¥Ú¡¼¥¹¤âÄɲ䵤ì¤Þ¤¹¡£ ¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¤È¡¢ÉÁ²è¥°¥é¥Õ¤â¥¦¥£¥ó¥É¥¦¤Î¿·¤·¤¤¥µ¥¤¥º¤Ë ¤Ô¤Ã¤¿¤ê¹ç¤¦¤è¤¦¤Ë¤¹¤°¤Ë¿½Ì¤µ¤ì¤Þ¤¹¡£Â¾¤ÎÂÐÏ÷¿½ÐÎÏ·Á¼°¤È°ã¤¤¡¢wxt ½ÐÎÏ·Á¼°¤Ï¥Õ¥©¥ó¥È¡¢ÀþÉý¤â´Þ¤á¤ÆÉÁ²èÁ´ÂΤò¿½Ì¤·¤Þ¤¹¤¬¡¢Á´ÂΤΥ¢¥¹¥Ú¥¯ ¥ÈÈæ¤Ï°ìÄê¤ËÊݤäơ¢¶õ¤¤¤¿¥¹¥Ú¡¼¥¹¤Ï³¥¿§¤ÇÅɤêÄÙ¤·¤Þ¤¹¡£¤½¤Î¸å replot ¤È¥¿¥¤¥×¤¹¤ë¤«¥¿¡¼¥ß¥Ê¥ë¥Ä¡¼¥ë¥Ð¡¼¤Î replot ¥¢¥¤¥³¥ó¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤« ¿·¤¿¤Ë plot ¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤È¡¢¤½¤Î¿·¤·¤¤ÉÁ²è¤Ç¤Ï´°Á´¤Ë¤½¤Î¥¦¥£¥ó ¥É¥¦¤Ë¹ç¤ï¤»¤é¤ì¤Þ¤¹¤¬¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤äÀþÉý¤Ï¤½¤ì¤¾¤ì¤Î¥Ç¥Õ¥©¥ë¥È¤Ë¥ê ¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
¸½ºß¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦ (set term wxt < n> ¤ÇÁªÂò¤µ¤ì¤¿¤â¤Î) ¤ÏÂÐÏÃŪ¤Ç ¤½¤ÎµóÆ°¤Ï¡¢Â¾¤Î½ÐÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: mouse (82.40)¡£¤½¤ì¤Ë ¤ÏÄɲäΥ¢¥¤¥³¥ó¤â¤¤¤¯¤Ä¤«¤Ä¤¤¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Ï¤½¤ì¼«ÂΤ¬ÀâÌÀŪ¤Ê¤â ¤Î¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£
¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤ò¥µ¥Ý¡¼¥È¤· ¤Æ¤¤¤Æ¡¢¥Õ¥©¥ó¥È¤ä½ñ¼°¥³¥Þ¥ó¥É (¾åÉÕ¡¢²¼ÉդʤÉ) ¤ò¥é¥Ù¥ë¤ä¾¤Îʸ»úÎó¤Ë Ëä¤á¹þ¤à¤³¤È¤¬¤Ç¤¤Þ¤¹¡£³Èĥʸ»úÎó½èÍý¥â¡¼¥É¤Î½ñ¼°¤Ï¾¤Î gnuplot ¤Î½Ð ÎÏ·Á¼°¤È¶¦Ä̤Ǥ¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: enhanced (12)¡£
<
font>
¤Ï "FontFace,FontSize" ¤Î·Á¼°¤Ç¡¢FontFace ¤È FontSize ¤È¤ò¥³
¥ó¥Þ¤ÇʬΥ¤·¤Æ°ì¤Ä¤Îʸ»úÎó¤È¤·¤Æ½ñ¤¤Þ¤¹¡£FontFace ¤Ï¡¢'Arial' ¤Î¤è
¤¦¤ÊÄ̾ï¤Î¥Õ¥©¥ó¥È̾¤Ç¤¹¡£FontFace ¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢wxt ½ÐÎÏ·Á¼°¤Ï
'Sans' ¤ò»ÈÍѤ·¤Þ¤¹¡£FontSize ¤Ï¡¢¥Ý¥¤¥ó¥Èñ°Ì¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ç¤¹¡£
FontSize ¤òÍ¿¤¨¤Ê¤¤¾ì¹ç¤Ï¡¢wxt ½ÐÎÏ·Á¼°¤Ï 10 ¥Ý¥¤¥ó¥È¤ò»ÈÍѤ·¤Þ¤¹¡£
Îã: set term wxt font "Arial,12" set term wxt font "Arial" # ¥Õ¥©¥ó¥È̾¤Î¤ßÊѹ¹ set term wxt font ",12" # ¥Õ¥©¥ó¥È¥µ¥¤¥º¤Î¤ßÊѹ¹ set term wxt font "" # ¥Õ¥©¥ó¥È̾¡¢¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò¥ê¥»¥Ã¥È
¥Õ¥©¥ó¥È¤ÏÄ̾ï¤Î¥Õ¥©¥ó¥È¥µ¥Ö¥·¥¹¥Æ¥à¤«¤é¼èÆÀ¤·¤Þ¤¹¡£MS-Windows ¾å¤Ç¤Ï ¥³¥ó¥È¥í¡¼¥ë¥Ñ¥Í¥ë¤Î "Fonts" ¥¨¥ó¥È¥ê¤Ç¸¡º÷¤µ¤ì¤ë¤Î¤Ç¡¢¤½¤³¤ËÀßÄꤷ ¤Þ¤¹¡£Unix ¾å¤Ç¤Ï¡¢¥Õ¥©¥ó¥È¤Ï "fontconfig" ¤¬½èÍý¤·¤Þ¤¹¡£
ʸ»úÎó¤Î¥ì¥¤¥¢¥¦¥È¤Ë»ÈÍѤµ¤ì¤ë pango ¥é¥¤¥Ö¥é¥ê¤Ï utf-8 ¤ò´ðËܤȤ·¤Æ¤¤ ¤Þ¤¹¤Î¤Ç¡¢wxt ½ÐÎÏ·Á¼°¤Ç¤Ï¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò utf-8 ¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÆþÎÏ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ï¡¢¥·¥¹¥Æ¥à¤Î 'locale' ¤Ë¤è¤ê¤Þ ¤¹¡£Â¾¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò»ÈÍѤ·¤¿¤¤¾ì¹ç¤Ï¡¢¤½¤ì¤ò gnuplot ¤ËÃΤ餻¤ë ɬÍפ¬¤¢¤ê¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: encoding (82.20)¡£
pango ¤Ï¡¢unicode ¥Þ¥Ã¥Ô¥ó¥°¤Ç¤Ê¤¤¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ïͽ´ü¤»¤Ì·ë²Ì¤òÍ¿¤¨ ¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£Î㤨¤Ð Symbol ¥Õ¥©¥ó¥È¤ËÂФ·¤Æ¤Ï¡¢wxt ½ÐÎÏ·Á¼°¤Ï¡¢Ê¸ »ú¥³¡¼¥É¤ò unicode ¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë http://www.unicode.org/ ¤ÇÄ󶡤µ¤ì ¤ë¥Þ¥Ã¥Ô¥ó¥°¤òÍøÍѤ·¤Þ¤¹¡£pango ¤Ï¡¢¤½¤Îʸ»ú¤ò´Þ¤à¥Õ¥©¥ó¥È¤ò¸«¤Ä¤±¤ë¤¿ ¤á¤Ë¤¢¤Ê¤¿¤Î Symbol ¥Õ¥©¥ó¥È¤ò¸¡º÷¤·¡¢¤½¤·¤Æ DejaVu ¥Õ¥©¥ó¥È¤Î¤è¤¦¤Ë¡¢ Éý¹¤¯ unicode ¤ò¥«¥Ð¡¼¤¹¤ë¾¤Î¥Õ¥©¥ó¥È¤òõ¤¹¡¢¤È¤¤¤Ã¤¿ºÇÁ±¤Îºî¶È¤ò¹Ô ¤ª¤¦¤È¤·¤Þ¤¹¡£¤Ê¤ª¡¢"the Symbol font" ¤Ï¡¢Acrobat Reader ¤È°ì½ï¤Ë "SY______.PFB" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë Adobe Symbol ¥Õ¥©¥ó¥È¤Ç¤¢¤ë¤È²ò ¼á¤µ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÂå¤ï¤ê¤Ë¡¢OpenOffice.org ¤È°ì½ï¤Ë "opens___.ttf" ¤È¤·¤ÆÇÛÉÛ¤µ¤ì¤ë OpenSymbol ¥Õ¥©¥ó¥È¤¬Æ±¤¸Ê¸»ú¤òÄó¶¡ ¤·¤Æ¤¤¤Þ¤¹¡£Microsoft ¤â Symbol ¥Õ¥©¥ó¥È ("symbol.ttf") ¤òÇÛÉÛ¤·¤Æ¤¤ ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï°Û¤Ê¤ëʸ»ú¥»¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢¤¤¤¯¤Ä¤«¤Ï·ç¤±¤Æ¤¤¤Þ¤¹¤·¡¢ ¤¤¤¯¤Ä¤«¤Ï¿ô¼°µ¹æ¤ËÊѤï¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤Þ¤¹¡£¤¢¤Ê¤¿¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç ¤Ê¤ó¤é¤«¤ÎÌäÂ꤬µ¯¤¤¿¾ì¹ç (Î㤨¤Ð¥Ç¥â¥¹¥¯¥ê¥×¥È enhancedtext.dem ¤¬¤Á ¤ã¤ó¤Èɽ¼¨¤µ¤ì¤Ê¤¤¤È¤¤¤Ã¤¿¾ì¹ç) ¤Ï¡¢Adobe ¤« OpenOffice ¤Î Symbol ¥Õ¥© ¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢Microsoft ¤Î Symbol ¥Õ¥©¥ó¥È¤òºï½ü¤·¤Ê¤¤¤È¤¤¤± ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ "windings" ¤Î¤è¤¦¤Ê¾¤ÎÈóɸ½à¤Î¥Õ¥©¥ó¥È¤Ç¤âÆ°ºî¤¹¤ë¤³¤È¤¬Êó¹ð¤µ¤ì¤Æ ¤¤¤Þ¤¹¡£
ÉÁ²è¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢¥Ä¡¼¥ë¥Ð¡¼¤ÇÂÐÏÃŪ¤ËÊѹ¹¤Ç¤¤Þ¤¹¡£²Äǽ¤Ê¸Â¤êºÇ¤â Îɤ¤½ÐÎϤòÀ¸À®¤¹¤ë¤¿¤á¤Ë¤³¤Î¥ì¥ó¥À¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¡¢¥ª¡¼¥Ð¡¼ ¥µ¥ó¥×¥ê¥ó¥°¡¢¥Ò¥ó¥Æ¥£¥ó¥°¤Î 3 ¤Ä¤Îµ¡¹½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ï¡¢¿åÊ¿¤ä¿âľ¤Ç¤Ê¤¤Àþ¤Î³ê¤é¤«¤Êɽ¼¨¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ ¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ï¡¢¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤ÈÁȤǥԥ¯¥»¥ë¤è¤ê¤â¾®¤µ¤¤¥µ¥¤ ¥º¤Ç¤ÎÀºÅÙ¤òÄ󶡤·¡¢gnuplot ¤¬ÈóÀ°¿ôºÂɸ¤ÎľÀþ¤ò½ñ¤±¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÂгÑÊý¸þ¤ÎľÀþ (Î㤨¤Ð 'plot x') ¤¬º¸±¦¤ËÍɤì¤ë¤Î¤òÈò¤±¤Þ¤¹¡£ ¥Ò¥ó¥Æ¥£¥ó¥°¤Ï¡¢¥ª¡¼¥Ð¡¼¥µ¥ó¥×¥ê¥ó¥°¤Ë¤è¤Ã¤Æ°ú¤µ¯¤³¤µ¤ì¤ë¿åÊ¿¡¢¿âľÊý ¸þ¤ÎÀþʬ¤Î¤Ü¤«¤·¤òÈò¤±¤Þ¤¹¡£¤³¤Î½ÐÎÏ·Á¼°¤Ï¡¢¤³¤ì¤é¤ÎľÀþ¤òÀ°¿ôºÂɸ¤Ë· ¤¨¡¢¤½¤ì¤Ë¤è¤ê¡¢1 ¥Ô¥¯¥»¥ëÉý¤ÎľÀþ¤ÏËÜÅö¤Ë 1 ¤Ä (1 ¤Ä¤è¤ê¿¤¯¤â¾¯¤Ê¤¯ ¤â¤Ê¤¤) ¤Î¥Ô¥¯¥»¥ë¤ÇÉÁ²è¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÉÁ²è¤¬¹Ô¤ï¤ì¤¿¤È¤¤Ë¥¦¥£¥ó¥É¥¦¤Ï¥Ç¥¹¥¯¥È¥Ã¥×¤Î°ìÈÖ¾å (ºÇÁ°ÌÌ) ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¡¼¥ï¡¼¥É "raise" ¤ÇÀ©¸æ¤Ç¤¤Þ¤¹¡£ ¥¡¼¥ï¡¼¥É "persist" ¤Ï¡¢¤¹¤Ù¤Æ¤ÎÉÁ²è¥¦¥¤¥ó¥É¥¦¤òÌÀ¼¨Åª¤ËÊĤ¸¤Ê¤¤´Ö ¤Ï¡¢gnuplot ¤¬½ªÎ»¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£ ºÇ¸å¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï < space> ¥¡¼¤Ï gnuplot ¥³¥ó¥½¡¼¥ë¥¦¥£¥ó¥É¥¦¤ò¾å ¤Ë¾å¤²¡¢'q' ¤ÏÉÁ²è¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤Þ¤¹¡£¥¡¼¥ï¡¼¥É "ctrl" ¤Ï¡¢¤½¤ì¤é ¤Î¥¡¼³ä¤êÅö¤Æ¤ò¡¢¤½¤ì¤¾¤ì < ctrl> +< space> ¤È < ctrl> +'q' ¤ËÊѹ¹¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Î 3 ¤Ä¤Î¥¡¼¥ï¡¼¥É (raise, persist, ctrl) ¤Ï¡¢ÀßÄê¥À¥¤¥¢¥í¥°¾å ¤Î¤ä¤ê¤È¤ê¤Ç¤âÀßÄꤷ¡¢µ²±¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
½ñ¼°:
set terminal x11 {<n> | window "<string>"} {title "<string>"} {{no}enhanced} {font <fontspec>} {linewidth LW} {solid|dashed} {{no}persist} {{no}raise} {{no}ctrlq} {close} {size XX,YY} {position XX,YY} set terminal x11 {reset}
Ê£¿ô¤Î¥°¥é¥ÕÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£set terminal x11 < n> ¤ÏÈÖ¹æ n ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Ë½ÐÎϤ·¤Þ¤¹¡£n ¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢¥¿¥¤¥È¥ë¤¬ÌÀ ¼¨Åª¤Ë»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤½¤ÎÈֹ椬¥¦¥£¥ó¥É¥¦¥¿¥¤¥È¥ë¤È¤·¤Æ¤Ä¤±¤é¤ì¡¢ ¥¢¥¤¥³¥ó¤Ë¤Ï Gnuplot < n> ¤È¥é¥Ù¥ëÉÕ¤±¤µ¤ì¤Þ¤¹¡£¸½ºß͸ú¤Ê¥¦¥£¥ó¥É¥¦ ¤Ï¥«¡¼¥½¥ëµ¹æ¤ÎÊѲ½¤Ç¶èÊ̤Ǥ¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¥«¡¼¥½¥ë¤«¤é½½»ú¥«¡¼¥½¥ë ¤Ø)¡£
x11 ½ÐÎÏ·Á¼°¤Ï¡¢³°Éô¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤Æ¤¤¤ë X ¤Î¥¦¥£ ¥ó¥É¥¦¤Î X ID (16 ¿Êɽµ) ¤ò¥ª¥×¥·¥ç¥ó window ¤Î¸å¤Ëʸ»úÎó¤È¤·¤Æ»ØÄê ¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤ÈÀܳ¤Ç¤¤Þ¤¹¡£X ¤ÏÊ£¿ô¤Î¥¯¥é¥¤¥¢¥ó¥È¤Ë¥¤¥Ù ¥ó¥È ButtonPress ¤ÎÁªÂò¤òǧ¤á¤Ê¤¤¤¿¤á¡¢gnuplot ¤½¤Î³°Éô¥¦¥£¥ó¥É¥¦¤ò¥³¥ó ¥Æ¥Ê¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£¤³¤ÎÊýË¡¤Ë¤è¤ê¡¢gnuplot ¤Î¥Þ¥¦¥¹µ¡Ç½¤Ï¤È¤ê¤³¤Þ¤ì ¤¿ÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç¤âºîÆ°¤·¤Þ¤¹¡£
set term x11 window "220001e"
x11 ½ÐÎÏ·Á¼°¤Ï¡¢ÍøÍѲÄǽ¤Ê¥Õ¥©¥ó¥È¤Î¸µ¤Ç³Èĥʸ»úÎó½èÍý¥â¡¼¥É (°Ê²¼»²¾È:enhanced (12)) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£Ê¸»úÎó¤ËËä¤á¹þ¤Þ¤ì¡¢ÍÍ¡¹¤Ê¸ú²Ì¤òÍ¿¤¨ ¤ë¥Õ¥©¥ó¥È¥µ¥¤¥ºÌ¿Îá¤Î¤¿¤á¤Ë¡¢¥Ç¥Õ¥©¥ë¥È¤Î x11 ¥Õ¥©¥ó¥È¤¬¥¹¥±¡¼¥é¥Ö¥ë ¥Õ¥©¥ó¥È¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°Ê²¼¤ÎºÇ½é¤ÎÎã¤Ï¤¦¤Þ¤¯¤¤¤¯¤Ç¤·¤ç¤¦¤¬¡¢2 ÈÖÌܤΤâ¤Î¤Ï¤½¤¦¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¡£
set term x11 enhanced font "arial,15" set title '{/=20 Big} Medium {/=5 Small}'
set term x11 enhanced font "terminal-14" set title '{/=20 Big} Medium {/=5 Small}'
gnuplot ¥É¥é¥¤¥Ð¤¬Ê̤ʽÐÎϥɥ饤¥Ð¤ËÊѹ¹¤µ¤ì¤Æ¤â¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï³« ¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï¡¢¤½¤Î¥¦¥£¥ó¥É¥¦¤Ë¥«¡¼¥½¥ë¤òÃÖ¤¤¤Æ ʸ»ú q ¤ò²¡¤¹¤«¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Î¥á¥Ë¥å¡¼¤Î close ¤òÁªÂò¤¹¤ì¤Ð ÊĤ¸¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£reset ¤ò¼Â¹Ô¤¹¤ì¤ÐÁ´¤Æ¤Î¥¦¥£¥ó¥É¥¦¤ò°ìÅÙ¤ËÊĤ¸ ¤ì¤Þ¤¹¡£¤½¤ì¤Ï¼ÂºÝ¤Ë¥¦¥£¥ó¥É¥¦¤ò´ÉÍý¤·¤Æ¤¤¤ë»Ò¥×¥í¥»¥¹¤ò½ªÎ»¤·¤Þ¤¹ (¤â ¤· -persist ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð)¡£¥³¥Þ¥ó¥É close ¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è ¥¦¥£¥ó¥É¥¦¤òÈÖ¹æ¤ò»ØÄꤷ¤ÆÊĤ¸¤ë¤Î¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤·¤«¤·¡¢persist ¤Î¤¿¤á¤Ë»Ä¤Ã¤Æ¤¤¤ë¤è¤¦¤ÊÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï close ¥³¥Þ¥ó¥É¤Ç¤ÏÊĤ¸¤ë¤³¤È ¤Ï¤Ç¤¤Þ¤»¤ó¡£ÈÖ¹æ¤ò¾Êά¤·¤Æ close ¤·¤¿¾ì¹ç¤Ë¤Ï¸½ºß͸ú¤ÊÉÁ²è¥¦¥£¥ó¥É ¥¦¤òÊĤ¸¤Þ¤¹¡£
gnuplot ¤Î³°¤Ë¤¢¤ë¥É¥é¥¤¥Ð gnuplot_x11 ¤Ï¡¢¥×¥í¥°¥é¥à¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤Ë ÁªÂò¤µ¤ì¤¿¥Ç¥Õ¥©¥ë¥È¤Î¾ì½ê¤¬¸¡º÷¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï´Ä¶ÊÑ¿ô GNUPLOT_DRIVER_DIR ¤ò°Û¤Ê¤ë¾ì½ê¤ÈÄêµÁ¤¹¤ë¤³¤È¤ÇÊѹ¹¤Ç¤¤Þ¤¹¡£
ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ï -persisit ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ÂÐÏäΠ½ªÎ»»þ¤Ë¼«Æ°Åª¤ËÊĤ¸¤é¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó persist ¤È raise ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¤¬¡¢ ¤½¤ì¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ (persist == no ¤Ç raise == yes) ¤«¡¢¥³¥Þ¥ó¥É¥é ¥¤¥ó¥ª¥×¥·¥ç¥ó -persist / -raise ¤Î»ØÄ꤫¡¢¤Þ¤¿¤Ï X ¤Î¥ê¥½¡¼¥¹Ãͤ¬»È¤ï ¤ì¤ë¡¢¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£[no]persist ¤« [no]raise ¤¬»ØÄꤵ¤ì¤ë¤È ¤½¤ì¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ä X ¥ê¥½¡¼¥¹¤ÎÀßÄê¤è¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Ïľ¤Á¤Ë¸úÎϤò»ý¤Á¤Þ¤¹¤Î¤Ç¡¢´û¤Ëµ¯Æ°¤·¤Æ¤¤¤ë¥É ¥é¥¤¥Ð¤ÎµóÆ°¤ÏÊѹ¹¤µ¤ì¤Þ¤¹¡£¥¦¥£¥ó¥É¥¦¤òÁ°Ì̤˽Ф»¤Ê¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È:raise (76)¡£
¥ª¥×¥·¥ç¥ó title "< title name> " ¤Ï¸½ºß¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤Ë¡¢¤Þ¤¿¤ÏÈÖ¹æ ¤ò»ØÄꤹ¤ì¤Ð¤½¤ÎÈÖ¹æ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ËÂФ¹¤ë¥¦¥£¥ó¥É¥¦¥¿¥¤¥È¥ë̾¤ò¤Ä¤± ¤Þ¤¹¡£¤½¤Î¥¿¥¤¥È¥ë¤¬É½¼¨¤µ¤ì¤ë¾ì½ê¡¢¤Þ¤¿¤Ïɽ¼¨¤µ¤ì¤ë¤«¤É¤¦¤«¤Ï¡¢»È¤Ã¤Æ ¤¤¤ë X ¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Ë°Í¸¤·¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó size ¤Ï¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÀßÄꤹ¤ë¤Î¤Ë»ÈÍѤǤ¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤Î¸å¤ËÀ¸À®¤¹¤ë¥¦¥£¥ó¥É¥¦¤Î¤ß¤ËŬÍѤµ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó position ¤Ï¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤Î°ÌÃÖ¤òÀßÄꤹ¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤Î¸å¤ËÀ¸À®¤¹¤ë¥¦¥£¥ó¥É¥¦¤Î¤ß¤ËŬÍѤµ¤ì¤Þ¤¹¡£
ÉÁ²è¥µ¥¤¥º¤È¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ï¡¢gnuplot ¤Î¥¦¥£¥ó¥É¥¦¤ò¥ê¥µ¥¤¥º¤¹¤ë¤³¤È¤Ç ¤âÊѹ¹¤Ç¤¤Þ¤¹¡£
Àþ¤ÎÉý¤ÈÅÀ¤Î¥µ¥¤¥º¤Ï gnuplot ¤Î set linestyle ¤ÇÊѹ¹²Äǽ¤Ç¤¹¡£
½ÐÎϥɥ饤¥Ð x11 ¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Ï (µ¯Æ°»þ¤Ë)¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¡¢ ¤Þ¤¿¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤«¤é¡¢geometry ¤ä font, name ¤Ê¤É¤ÎÄ̾ï¤Î X Toolkit ¥ª¥×¥·¥ç¥ó¤ä¥ê¥½¡¼¥¹¤Î»ØÄê¤ò¼õ¤±ÉÕ¤±¤Þ¤¹¡£¤½¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï X(1) ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸ (¤ä¤½¤ì¤ÈƱÅù¤Î¤â¤Î) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
¾¤Ë¤â x11 ½ÐÎÏ·Á¼°ÍѤο¤¯¤Î gnuplot ¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì ¤é¤Ï gnuplot ¤ò¸Æ¤Ö¤È¤¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤È¤·¤Æ»ØÄꤹ¤ë¤«¡¢ ¤Þ¤¿¤ÏÀßÄê¥Õ¥¡¥¤¥ë ".Xdefaults" ¤Î¥ê¥½¡¼¥¹¤È¤·¤Æ»ØÄê¤Ç¤¤Þ¤¹¡£¤³¤ì¤é ¤Ïµ¯Æ°»þ¤ËÀßÄꤵ¤ì¤ë¤Î¤Ç¡¢gnuplot ¼Â¹Ô»þ¤Ë¤ÏÊѹ¹¤Ç¤¤Þ¤»¤ó (persist ¤È raise °Ê³°¤Ï)¡£
Îã:
gnuplot*font: lucidasans-bold-12
`set term x11 font "<fontspec>"`
-*-<font>-<weight>-<s>-*-*-<size>-*-*-*-*-*-<encoding>
<font> ¤Ï¥Õ¥©¥ó¥È¤Î´ðËÜ̾ (base name) (Îã: Times, Symbol) <size> ¤Ï¥Ý¥¤¥ó¥È¥µ¥¤¥º (»ØÄ꤬¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤Ï 12) <s> ¤Ï <slant>=="italic" ¤Ê¤é `i`, <slant>=="oblique" ¤Ê¤é `o`, ¤½¤Î¾¤Ï `r` <weight> ¤ÏÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤ì¤Ð `medium` ¤« `bold`¡¢¤½¤Î¾¤Ï `*` <encoding> ¤Ï¸½ºß¤Îʸ»ú½¸¹ç¤Ë´ð¤Å¤¤¤ÆÀßÄê (°Ê²¼»²¾È: `set encoding`)
gnuplot*encoding: iso8859-15
¤¢¤Ê¤¿¤Î gnuplot ¤¬ configure ¤Î -enable-x11-mbfonts ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤± ¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¤â¤Î¤Ê¤é¡¢¥Õ¥©¥ó¥È̾¤ÎÁ°¤Ë "mbfont:" ¤ò¤Ä¤±¤ë¤³ ¤È¤Ç¥Þ¥ë¥Á¥Ð¥¤¥È¥Õ¥©¥ó¥È¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Õ¥©¥ó¥È̾¤òÊ£¿ô»ØÄê ¤¹¤ë¸Ä¤È¤â¤Ç¤¤Þ¤¹¤¬¡¢¤½¤Î¾ì¹ç¤Ï¥»¥ß¥³¥í¥ó¤Ç¶èÀÚ¤ê¤Þ¤¹¡£¥Þ¥ë¥Á¥Ð¥¤¥È¥Õ ¥©¥ó¥È¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ï locale ¤ÎÀßÄê¤Ë½¾¤¤¤Þ¤¹¤Î¤Ç¡¢´Ä¶ÊÑ¿ô LC_CTYPE ¤òŬÀÚ¤ÊÃÍ (Î㤨¤Ð ja_JP.eucJP, ko_KR.EUC, zh_CN.EUC ¤Ê¤É) ¤Ë ¤ËÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
Îã:
set term x11 font 'mbfont:kana14;k14' # 'kana14' ¤È 'k14' ¤ÏÆüËܸì¤Î X11 font ¥¨¥¤¥ê¥¢¥¹Ì¾¡¢';' # ¤Ï¥Õ¥©¥ó¥È̾¤Î¶èÀÚ¤ê¤Ç¤¹¡£ set term x11 font 'mbfont:fixed,16,r,medium' # <font>,<size>,<slant>,<weight> ·Á¼°¤â»ÈÍѤǤ¤Þ¤¹¡£ set title '(mb strings)' font 'mbfont:*-fixed-medium-r-normal--14-*'
Ʊ¤¸½ñ¼°¤Ï X ¤Î¥ê¥½¡¼¥¹¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¥Õ¥©¥ó¥È¤ÎÀßÄê¤Ç¤â͸ú¤Ç¤¹¡£Îã:
gnuplot*font: \ mbfont:-misc-fixed-medium-r-normal--14-*-*-*-c-*-jisx0208.1983-0
gnuplot ¤¬ -enable-x11-mbfonts ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¾ì¹ç¡¢"mbfont:" ¤ò¤Ä¤±¤Ê¤¯¤Æ¤â 2 ¤Ä¤ÎÆÃÊÌ¤Ê PostScript ¥Õ¥©¥ó¥È̾ 'Ryumin-Light-*', 'GothicBBB-Medium-*' (ɸ½àŪ¤ÊÆüËܸì PS ¥Õ¥©¥ó¥È) ¤ò»È¤¦¤³¤È¤â¤Ç¤¤Þ¤¹¡£
`-mono` | ¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¾å¤Ç¶¯À©Åª¤ËÇò¹õÉÁ²è |
`-gray` | ¥°¥ì¥¤¥¹¥±¡¼¥ë¤Þ¤¿¤Ï¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¾å¤Ç¤Î¥°¥ì¥¤¥¹¥±¡¼¥ëÉÁ²è |
(¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥°¥ì¥¤¥¹¥±¡¼¥ë¥Ç¥£¥¹¥×¥ì¥¤¤ÏÇò¹õÉÁ²è¤ò¼õ¤±ÉÕ¤±¤ë) | |
`-clear` | ¿·¤·¤¤ÉÁ²è¤òɽ¼¨¤¹¤ëÁ°¤Ë (½Ö´ÖŪ¤Ë) ²èÌ̤ò¾Ãµî |
`-tvtwm` | geometry ¥ª¥×¥·¥ç¥ó¤Ë¤è¤ë°ÌÃ֤λØÄê¤ò¡¢²¾Áۥ롼¥È¥¦¥£¥ó¥É¥¦Ãæ¤Î |
¸½ºß¤Îɽ¼¨Éôʬ¤ËÂФ¹¤ëÁêÂÐŪ¤Ê°ÌÃ֤ˤ¹¤ë | |
`-raise` | ³ÆÉÁ²è¸å¤ËÉÁ²è¥¦¥£¥ó¥É¥¦¤òºÇÁ°Ì̤ؽФ¹ |
`-noraise` | ³ÆÉÁ²è¸å¤ËÉÁ²è¥¦¥£¥ó¥É¥¦¤òºÇÁ°Ì̤ؽФ¹¤³¤È¤Ï¤·¤Ê¤¤ |
`-noevents` | ¥Þ¥¦¥¹¡¢¥¡¼¤ÎÆþÎϤò½èÍý¤·¤Ê¤¤ |
`-persist` | gnuplot ¥×¥í¥°¥é¥à½ªÎ»¸å¤âÉÁ²è¥¦¥£¥ó¥É¥¦¤ò»Ä¤¹ |
Îã:
gnuplot*gray: on gnuplot*ctrlq: on
gnuplot ¤ÏÉÁ²è¥¹¥¿¥¤¥ë points ¤ÇÉÁ²è¤¹¤ëÅÀ¤Î¥µ¥¤¥º¤ÎÀ©¸æ¤Ë¤â¡¢¥³¥Þ¥ó¥É ¥é¥¤¥ó¥ª¥×¥·¥ç¥ó (-pointsize < v> ) ¤È¥ê¥½¡¼¥¹ (gnuplot*pointsize: < v> ) ¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£ÃÍ v ¤ÏÅÀ¤Î¥µ¥¤¥º¤Î³ÈÂçΨ¤È¤·¤Æ»È¤ï¤ì¤ë¼Â¿ôÃÍ (0 < v < = 10) ¤Ç¡¢Î㤨¤Ð -pointsize 2 ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º¤Î 2 ÇÜ¡¢ -pointsize 0.5 ¤ÏÉáÄ̤Υµ¥¤¥º¤ÎȾʬ¤ÎÅÀ¤¬»È¤ï¤ì¤Þ¤¹¡£
-noevents ¤Ï¥Þ¥¦¥¹¡¢¥¡¼¤ÎÁ´¤Æ¤ÎÆþÎϤνèÍý¤ò̵¸ú¤Ë¤·¤Þ¤¹ (q ¤È < space> ¤Ë¤è¤ë¥¦¥£¥ó¥É¥¦¤Î½ªÎ»¤ò½ü¤¤¤Æ)¡£¤³¤ì¤Ï¡¢gnuplot ¤Î¥á¥¤¥ó¥× ¥í¥°¥é¥à¤È¤ÏÆÈΩ¤·¤¿·Á¤Ç x11 ¥É¥é¥¤¥Ð¤òÍøÍѤ¹¤ë¥×¥í¥°¥é¥à¤ËÍÍѤǤ¹¡£
-ctrlq ¥¹¥£¥Ã¥Á¤Ï¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦¤òÊĤ¸¤ë¥Û¥Ã¥È¥¡¼¤ò q ¤«¤é < ctrl> q ¤ËÊѹ¹¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢pause mouse keystroke ¤Ë¤è¤ë¥¡¼¥¹¥È ¥í¡¼¥¯¤ÎÊݸµ¡Ç½¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢Â¾¤Î¥¢¥ë¥Õ¥¡¥Ù¥Ã¥Èʸ»ú¤ÈƱÍÍ¤Ë q ¤òÊݸ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ë¤Î¤ÇÍÍѤǤ·¤ç¤¦¡£Æ±¤¸Íýͳ¤Ç¡¢-ctrlq ¥¹¥£ ¥Ã¥Á¤Ï < space> ¥Û¥Ã¥È¥¡¼¤â < ctrl> < space> ¤ËÃÖ¤´¹¤¨¤Þ¤¹¡£
gnuplot*background: white | |
gnuplot*textColor: black | |
gnuplot*borderColor: black | |
gnuplot*axisColor: black | |
gnuplot*line1Color: red | |
gnuplot*line2Color: green | |
gnuplot*line3Color: blue | |
gnuplot*line4Color: magenta | |
gnuplot*line5Color: cyan | |
gnuplot*line6Color: sienna | |
gnuplot*line7Color: orange | |
gnuplot*line8Color: coral |
¤³¤ì¤é¤Ë´Ø¤¹¤ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î½ñ¼°¤Ï¡¢ÇØ·Ê (bacground) ¤Ë´Ø¤·¤Æ¤Ïñ½ã¤Ç Ä̾ï¤Î X11 toolkit ¥ª¥×¥·¥ç¥ó¤Î "-bg" ¤ËľÀÜÂбþ¤·¤Þ¤¹¡£Â¾¤Î¤â¤Î¤â¡¢ Á´¤Æ°ìÈÌŪ¤Ê¥ê¥½¡¼¥¹¤Î¾å½ñ¤¥ª¥×¥·¥ç¥ó "-xrm" ¤ò»È¤¦¤³¤È¤ÇÀßÄê¤Ç¤¤Þ ¤¹¡£
Îã:
ÇØ·Ê¿§¤òÊѹ¹¤¹¤ë¤Ë¤Ï
gnuplot -background coral
Àþ¼ï 1 ÈÖÌܤ理ò½ñ¤´¹¤¨¤ë¤Ë¤Ï
gnuplot -xrm 'gnuplot*line1Color:blue'
gnuplot*background: black | |
gnuplot*textGray: white | |
gnuplot*borderGray: gray50 | |
gnuplot*axisGray: gray50 | |
gnuplot*line1Gray: gray100 | |
gnuplot*line2Gray: gray60 | |
gnuplot*line3Gray: gray80 | |
gnuplot*line4Gray: gray40 | |
gnuplot*line5Gray: gray90 | |
gnuplot*line6Gray: gray50 | |
gnuplot*line7Gray: gray70 | |
gnuplot*line8Gray: gray30 |
gnuplot*borderWidth: 2 | |
gnuplot*axisWidth: 0 | |
gnuplot*line1Width: 0 | |
gnuplot*line2Width: 0 | |
gnuplot*line3Width: 0 | |
gnuplot*line4Width: 0 | |
gnuplot*line5Width: 0 | |
gnuplot*line6Width: 0 | |
gnuplot*line7Width: 0 | |
gnuplot*line8Width: 0 |
gnuplot ¤ÏÀþÉÁ²è¤Ç»ÈÍѤ¹¤ëÅÀÀþ¤Î·Á¼°¤ÎÀßÄêÍѤ˰ʲ¼¤Î¥ê¥½¡¼¥¹¤ò»²¾È¤·¤Þ¤¹¡£0 ¤Ï¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£2 ·å¤Î 10 ¿Ê¿ô jk (j ¤È k ¤Ï 1 ¤«¤é 9 ¤Þ¤Ç¤ÎÃÍ) ¤Ï¡¢j ¸Ä¤Î¥Ô¥¯¥»¥ë¤ÎÉÁ²è¤Ë k ¸Ä¤Î¶õÇò¤Î¥Ô¥¯¥»¥ë¤¬Â³¤¯ ¥Ñ¥¿¡¼¥ó¤Î·«¤êÊÖ¤·¤«¤é¤Ê¤ëÅÀÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£Î㤨¤Ð '16' ¤Ï 1 ¸Ä¤Î¥Ô¥¯ ¥»¥ë¤Î¸å¤Ë 6 ¤Ä¤Î¶õÇò¤¬Â³¤¯¥Ñ¥¿¡¼¥ó¤ÎÅÀÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£¤µ¤é¤Ë¡¢4 ·å¤Î 10 ¿Ê¿ô¤Ç¤è¤ê¾ÜºÙ¤Ê¥Ô¥¯¥»¥ë¤È¶õÇò¤ÎÎó¤Î¥Ñ¥¿¡¼¥ó¤ò»ØÄê¤Ç¤¤Þ¤¹¡£Î㤨¤Ð¡¢ '4441' ¤Ï 4 ¤Ä¤Î¥Ô¥¯¥»¥ë¡¢4 ¤Ä¤Î¶õÇò¡¢4 ¤Ä¤Î¥Ô¥¯¥»¥ë¡¢1 ¤Ä¤Î¶õÇò¤Î¥Ñ¥¿ ¡¼¥ó¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥½¡¼¥¹Ãͤϡ¢Çò¹õ¥Ç¥£¥¹¥×¥ì¥¤¡¢¤¢¤ë¤¤¤Ï¥«¥é¡¼¤äÇò¹õ³¬Ä´ (grayscale) ¥Ç¥£¥¹¥×¥ì¥¤¾å¤ÎÇò¹õÉÁ²è¤Ë¤ª¤±¤ëÃÍ ¤Ç¤¹¡£ ¥«¥é¡¼¥Ç¥£¥¹¥×¥ì¥¤¤Ç¤Ï dashed:off ¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
gnuplot*dashed: off | |
gnuplot*borderDashes: 0 | |
gnuplot*axisDashes: 16 | |
gnuplot*line1Dashes: 0 | |
gnuplot*line2Dashes: 42 | |
gnuplot*line3Dashes: 13 | |
gnuplot*line4Dashes: 44 | |
gnuplot*line5Dashes: 15 | |
gnuplot*line6Dashes: 4441 | |
gnuplot*line7Dashes: 42 | |
gnuplot*line8Dashes: 13 |
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï gnuplot ¤Ï¤½¤Î¥¹¥¯¥ê¡¼¥ó¤Î¥Ç¥Õ¥©¥ë¥È¤Î visual ¤ò»ÈÍÑ ¤·¤Þ¤¹¡£³ä¤êÅö¤Æ¤ë¤³¤È¤Î¤Ç¤¤ë¿§¿ô¤ÏÁªÂò¤µ¤ì¤¿ visual ¥¯¥é¥¹¤Ë¤è¤Ã¤ÆÊÑ ¤ï¤ê¤Þ¤¹¡£12bit ¤òĶ¤¨¤ë¿¼ÅÙ¤ò»ý¤Ä visual ¥¯¥é¥¹¾å¤Ç¤Ï¡¢gnuplot ¤ÏºÇÂç ¿§¿ô¤Ç¤¢¤ë 0x200 (=512) ¿§¤Çµ¯Æ°¤·¤Þ¤¹¡£8bit ¤òĶ¤¨¤ë (12bit °Ê²¼¤Ç) ¿¼Å٤Πvisual ¥¯¥é¥¹¤Ç¤ÏºÇÂ翧¿ô¤Ï 0x100 (=256) ¿§¡¢8bit °Ê²¼¤Î¥Ç¥£¥¹¥×¥ì¥¤¤Ç¤ÏºÇÂ翧¤Ï 240 (16 ¿§¤Ï¶ÊÀþ¤Î¿§ÍѤ˼è¤é¤ì¤ë) ¤Ë¤Ê¤ê¤Þ¤¹¡£
gnuplot ¤ÏºÇ½é¤Ë¡¢¾å¤Ë½Ò¤Ù¤¿¤è¤¦¤ÊºÇÂ翧¤ò³ä¤êÅö¤Æ¤è¤¦¤Èµ¯Æ°¤·¤Þ¤¹¡£¤³ ¤ì¤Ë¼ºÇÔ¤¹¤ë¤È¤½¤Î¿§¿ô¤Ï¡¢gnuplot ¤¬¤½¤ÎÁ´Éô¤ò³ä¤êÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤ë¤Þ ¤Ç¡¢1/2 ¤º¤Ä¸º¤é¤µ¤ì¤Þ¤¹¡£maxcolors ¤ò·«¤êÊÖ¤· 2 ¤Ç³ä¤Ã¤¿·ë²Ì¡¢ mincolors ¤è¤ê¤â¾®¤µ¤¤¿ô»ú¤Ë¤Ê¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï private ¥«¥é¡¼ ¥Þ¥Ã¥×¤ò»È¤ª¤¦¤È¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Ï¡¢¥Ý¥¤¥ó¥¿¤¬ X11 ¥É¥é¥¤¥Ð¤Î¥¦¥£¥ó¥É¥¦¤ËÆþ¤ë¤«½Ð¤ë¤«¤Ç¥«¥é¡¼¥Þ¥Ã¥×¤òÂàÈò (swapping) ¤µ¤»¤ëÀÕǤ¤ò»ý¤Ä¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£
mincolors ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï maxcolors / (num_colormaps > 1 ? 2 : 8) ¤Ç¡¢num_colormaps ¤Ï gnuplot ¤¬¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥«¥é¡¼¥Þ¥Ã¥×¤Î¿ô¤Ç¡¢¤³ ¤ì¤Ï¡¢x11 ¤Î¥¦¥£¥ó¥É¥¦¤¬ 1 ¤Ä¤À¤±³«¤¤¤Æ¤¤¤ë¤è¤¦¤ÊÄ̾ï¤Î¾ì¹ç¤Ï 1 ¤Ç¤¹¡£
Ê£¿ô¤Î (°Û¤Ê¤ë) visual ¥¯¥é¥¹¤ò¡¢°ì¤Ä¤Î¥¹¥¯¥ê¡¼¥ó¾å¤Ç¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦ ¤Ê¥·¥¹¥Æ¥à¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î¤è¤¦¤Ê¥·¥¹¥Æ¥à¤Ç¤Ï¡¢gnuplot ¤Ë»ØÄꤷ¤¿ visual ¥¯¥é¥¹¤ò¶¯À©Åª¤Ë»È¤ï¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î visual ¤¬ 8bit PseudoColor ¤À¤±¤ì¤É¤â¥¹¥¯¥ê¡¼¥ó¤Ï 24bit TrueColor ¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¤à¤·¤í¤³¤Á¤é¤ÎÊý¤òÁªÂò¤¹¤Ù¤¤Ç¤¢¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤¹¡£
X ¥µ¡¼¥Ð¤ÎǽÎϤ˴ؤ¹¤ë¾ðÊó¤Ï¥×¥í¥°¥é¥à xdpyinfo ¤Ç¼èÆÀ¤Ç¤¤Þ¤¹¡£ visual ̾¤Ï¼¡¤Î¤¦¤Á¤Î°ì¤Ä¤¬ÁªÂò¤Ç¤¤Þ¤¹: StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, DirectColor¡£¤½¤Î X ¥µ¡¼¥Ð¤¬Í×µá ¤µ¤ì¤¿ visual ·¿¤Î°Û¤Ê¤ëÊ£¿ô¤Î¿¼ÅÙ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢gnuplot ¤Ï ºÇ¤âÂ礤¤ (ºÇ¿¼¤Î) ¿¼Å٤Πvisual ¥¯¥é¥¹¤òÁªÂò¤·¤Þ¤¹¡£Í׵ᤵ¤ì¤¿ visual ¥¯¥é¥¹¤¬¥Ç¥Õ¥©¥ë¥È¤Î visual ¤È¤¢¤Ã¤Æ¤¤¤Æ¡¢¤½¤Î·¿¤ÎÊ£¿ô¤Î¥¯¥é¥¹ ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î visual ¤¬ÁªÂò¤µ¤ì¤Þ¤¹¡£
Îã: 8bit PseudoColor ¤Î visual ¾å¤Ç¤Ï¡¢gnuplot*maxcolors: 240¡¢µÚ¤Ó gnuplot*mincolors: 240 ¤È»ØÄꤹ¤ë¤³¤È¤Ç¶¯À©Åª¤Ë private ¥«¥é¡¼¥Þ¥Ã¥× ¤ò»È¤¦¤è¤¦¤Ë¤Ç¤¤Þ¤¹¡£
gnuplot*maxcolors: À°¿ô | |
gnuplot*mincolors: À°¿ô | |
gnuplot*visual: visual ̾ |
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Ê¸»ú¤Î²óž¤Ï®¤¯¤½¤ì¤ò¹Ô¤Ê¤¦ÊýË¡¤¬»È¤ï¤ì¤Þ¤¹¤¬¡¢ÇØ·Ê¿§ ¤Ë¤è¤Ã¤Æ¤Ï¤½¤ÎÉն᤬±ø¤ì¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤¬µ¯¤³¤ë¾ì¹ç¤Ï¡¢¥ê¥½¡¼¥¹ 'gnuplot.fastrotate' ¤ò 'off' ¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
gnuplot*exportselection: off | |
gnuplot*fastrotate: on | |
gnuplot*ctrlq: off |
¥°¥é¥Õ¤Î key ¤ÎʤÙÊý¤È°ÌÃ֤ϡ¢key ʸ»úÎó¤È¤·¤Æ¾åÉÕ¤¡¢²¼Éդʸ»ú¤¬»È ¤ï¤ì¤¿¤ê¡¢ÌÀ¼¨Åª¤Ê¥Õ¥©¥ó¥È»ØÄ꤬¹Ô¤ï¤ì¤ë¤ÈÉÔÀµ³Î¤Ë¤Ê¤ê¤Þ¤¹ (4.7 ¤Ç¤Ï½¤ ÀµºÑ¤ß)¡£
ÉâÆ°¾®¿ô·×»»Îã³° (ÉâÆ°¾®¿ôÃͤ¬Â礤¹¤®¤ë (¤Þ¤¿¤Ï¾®¤µ¤¹¤®¤ë) ¾ì¹ç¡¢0 ¤Ç ³ä»»¤·¤¿¾ì¹ç¤Ê¤É) ¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ë¤ª¤¤¤Æ»þÀÞȯÀ¸¤·¤Þ¤¹¡£Æäˡ¢¤¤¤¯ ¤Ä¤«¤Î¥Ç¥â¤Ç¡¢ÉâÆ°¾®¿ô¤ÎÈϰϤò±Û¤¨¤ë¿ôÃͤòÀ¸À®¤¹¤ë¤³¤È¤¬µ¯¤³¤ë¤è¤¦¤Ç¤¹¡£ ¥·¥¹¥Æ¥à¤¬¤½¤Î¤è¤¦¤ÊÎã³°¤ò̵»ë¤¹¤ë (gnuplot ¤Ï¤½¤Î¤è¤¦¤ÊÅÀ¤òÄêµÁ¤Ç¤ ¤Ê¤¤¤â¤Î¡¢¤È¸«¤Ê¤·¤Þ¤¹) ¤«¡¢¤Þ¤¿¤Ï gnuplot ¤Î¼Â¹Ô¤òÃæ»ß¤¹¤ë¤«¤Ï¡¢¥³ ¥ó¥Ñ¥¤¥ë»þ (¤¢¤ë¤¤¤Ï¼Â¹Ô»þ) ¤Î´Ä¶¤Ë¤è¤ê¤Þ¤¹¡£
¥¬¥ó¥Þ´Ø¿ô¤È¥Ù¥Ã¥»¥ë´Ø¿ô¡¢erf ´Ø¿ô¤ÏÊ£ÁÇ¿ô°ú¿ô¤ËÂФ·¤Æ¤ÏÆ°ºî¤·¤Þ¤»¤ó¡£
"»þ¹ï" ¤È¤·¤Æ»ØÄꤵ¤ì¤¿ºÂɸ¤Ï 24 »þ¤ÇÀÞ¤êÊÖ¤·¤Þ¤¹¡£
nohidden3d ¤Ï¡¢Á´ÂÎŪ¤ÊÀßÄê¤Ç¤¢¤ë set hidden3d ¤ò¡¢¸Ä¡¹¤ÎÉÁ²è¤ËÂÐ ¤·¤ÆÌȽü¤¹¤ë¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤Ç¤¹¤¬¡¢¤³¤ì¤ÏÇÞ²ðÊÑ¿ô¤Î¶ÊÀþ (parametric) ¤ËÂФ·¤Æ¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£
X11 ½ÐÎÏ·Á¼°: UTF-8 ¥Õ¥©¥ó¥È¤ÎÁªÂò¤¬º¤Æñ¤Ç¤¹¡£¥×¥í¥°¥é¥à¤Ï¡¢x11 ½ÐÎÏ¥¦ ¥£¥ó¥É¥¦¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ÎÀµ¤·¤µ¤òÄɵᤷ¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢"set size ratio" ¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤¬Àµ¾ï¤Ëµ¡Ç½¤¹¤ë¤¿¤á¤Ë¤Ï¡¢x11 ¥¦¥£¥ó¥É¥¦¼«ÂΤ¬Åù¤·¤¤¹â ¤µ¤ÈÉý¤ò»ý¤¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤«¤é¤Ç¤¹¡£ ¤¹¤Ù¤Æ¤Î x11 ÉÁ²è¥¦¥£¥ó¥É¥¦¤ËÂÐ ¤·¤Æ¡¢°ìÅÙ¤Ë 1 ¤Ä¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Î¤ß¤¬Í¸ú¤Ç¤¹¡£¤³¤ì¤Ï¡¢°Û¤Ê¤ë¥Ñ¥ì¥Ã ¥È¤ò»ÈÍѤ¹¤ëÉÁ²è¤ò´Þ¤ó¤À multiplot ¤Ç¤Ï x11 ¾å¤Ç¤ÏÀµ¤·¤¯É½¼¨¤µ¤ì¤Ê¤¤¡¢ ¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
Qt ½ÐÎÏ·Á¼°: ¥³¥ó¥Ñ¥¤¥ë»þ¤Ë»ÈÍѤµ¤ì¤ë qt ´Ä¶¤¬¥ì¥ó¥À¥ê¥ó¥°¥â¡¼¥É¤È¤· ¤Æ "opengl" ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¿³Ñ·Á¤È¶ÊÌÌɽ¼¨¤Ï¤«¤Ê¤ê¯¤Ê¤ë²Ä ǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
³°Éô¥é¥¤¥Ö¥é¥ê PDFlib (PDF ¥É¥é¥¤¥Ð¤Ç»ÈÍÑ): gnuplot ¤Ï libpdf ¤Î¥Ð¡¼¥¸¥ç¥ó 4, 5, 6 ¤Î¤¤¤º¤ì¤«¤ò¥ê¥ó¥¯¤Ç¤¤Þ¤¹¡£¤· ¤«¤·¡¢¤³¤ì¤é¤Ï¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤Ã¤Æ¥Ñ¥¤¥×¤µ¤ì¤¿Æþ½ÐÎϤνèÍý¤¬°ã¤Ã¤Æ¤¤¤Þ¤¹ ¤Î¤Ç¡¢¥Ñ¥¤¥×¤ò»È¤Ã¤Æ PDF ¤ò½ÐÎϤ¹¤ë gnuplot ¥¹¥¯¥ê¥×¥È¤Ï¡¢PDFlib ¤Î¤¢ ¤ë¥Ð¡¼¥¸¥ç¥ó¤Ç¤À¤±¤·¤«¤Á¤ã¤ó¤ÈÆ°¤«¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£
³°Éô¥é¥¤¥Ö¥é¥ê svgalib (linux, vgadl ¥É¥é¥¤¥Ð¤Ç»ÈÍÑ): ¤³¤ì¤Ï gnuplot ¤¬ root ¤Ë setuid (·ù!) ¤µ¤ì¤ë¤³¤È¤òÍ׵ᤷ¤Þ¤¹¤·¡¢¥Ó¥Ç ¥ª¥«¡¼¥É¤ä X11 ¤Ç»ÈÍѤµ¤ì¤ë¥°¥é¥Õ¥£¥Ã¥¯¥É¥é¥¤¥Ð¤ËÆÃͤο¤¯¤Î¥Ð¥°¤¬¤¢ ¤ê¤Þ¤¹¡£
¹ñºÝ²½ (¥í¥±¡¼¥ë¤ÎÀßÄê): gnuplot ¤Ï¡¢Æþ½ÐÎϤοô¡¢»þ¹ï¡¢ÆüÉÕʸ»úÎó¤Î¥í¥±¡¼¥ë¤Ë°Í¸¤·¤¿½ñ¼°¤ÎÀ©¸æ ¤ò¡¢C ¥é¥ó¥¿¥¤¥à¥é¥¤¥Ö¥é¥ê¤Ë´Þ¤Þ¤ì¤ë setlocale() ¤òÍѤ¤¤Æ¹Ô¤¦¤Î¤Ç¡¢¥í ¥±¡¼¥ë¤Î͸úÀ¤ä¡¢¥í¥±¡¼¥ëµ¡Ç½¤Î¥µ¥Ý¡¼¥È¤Î¥ì¥Ù¥ë (Î㤨¤Ð¿ô»ú¤Î 3 ·åËè ¤Î¶èÀÚ¤êʸ»ú¤Ê¤É) ¤Ê¤É¤Ï¡¢¤¢¤Ê¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿¤¬Ä󶡤¹¤ë¹ñºÝ²½¤Î¥µ¥Ý¡¼ ¥È¤ÎÅٹ礤¤Ë°Í¸¤·¤Þ¤¹¡£
¤³¤Îʸ½ñ¤ÏLaTeX2HTML ËÝÌõ¥×¥í¥°¥é¥à Version 2008 (1.71)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds,
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
¤òÆüËܸ첽¤·¤¿¤â¤Î( 2008 (1.71) JA patch-2.1beta1.13 ÈÇ)
Copyright © 1998, 1999,
Kenshi Muto,
Debian Project.
Copyright © 2001-2011,
Shige TAKENO,
Niigata Inst.Tech.
¤òÍѤ¤¤ÆÀ¸À®¤µ¤ì¤Þ¤·¤¿¡£
¥³¥Þ¥ó¥É¹Ô¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤·¤¿¡£:
latex2html -image_type gif -split 0 -show_section_numbers -dir gnuplot-ja -html_version 4.0,math -nonavigation gnuplot-ja-ref.tex.
ËÝÌõ¤Ï ÃÝÌîÌм£ ¤Ë¤è¤Ã¤Æ 2015ǯ6·î19Æü ¤Ë¼Â¹Ô¤µ¤ì¤Þ¤·¤¿¡£