gnuplot 6.1




An Interactive Plotting Program




Thomas Williams & Colin Kelley




Version 6.1 organized by: Ethan A Merritt and many others




Major contributors (alphabetic order):

Christoph Bersch, Hans-Bernhard Bröker,
John Campbell, Robert Cunningham,
David Denholm, Gershon Elber,
Roger Fearick, Carsten Grammes,
Lucas Hart, Lars Hecking, Péter Juhász,
Thomas Koenig, David Kotz, Ed Kubaitis,
Russell Lang, Timothée Lecomte,
Alexander Lehmann, Jérôme Lodewyck,
Alexander Mai, Bastian Märkisch, Tatsuro Matsuoka,
Ethan A Merritt, Petr Mikulík, Hiroki Motoyoshi,
Daniel Sebald, Carsten Steger, Shigeharu Takeno,
Tom Tkacik, Jos Van der Woude,
James R. Van Zandt, Alex Woo, Johannes Zellner
Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley
Copyright 2004 - 2023 various authors




Mailing list for comments: gnuplot-info@lists.sourceforge.net
Web site and issue trackers: http://sourceforge.net/projects/gnuplot

This manual was originally prepared by Dick Crawford.




Version 6.1 (January 2024))


Ìܼ¡


1 Gnuplot

1 Ãøºî¸¢ (Copyright)


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

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

Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version. Permission to distribute binaries produced by compiling modified sources is granted, provided you


 1. distribute the corresponding source modifications from the
  released version in the form of a patch file along with the binaries,
 2. add special version identification to distinguish your version
  in addition to the base release version number,
 3. provide your name and address as the primary contact for the
  support of your modified version, and
 4. retain our contact information in regard to use of the base software.

Permission to distribute the released version of the source code along with corresponding source modifications in the form of a patch file is granted with same provisions 2 through 4 for binary distributions.

This software is provided "as is" without express or implied warranty to the extent permitted by applicable law.


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

(°Ê²¼¤ª¤ª¤Þ¤«¤ÊÌõ; Ìõ¤ÏÀµ¤·¤¯¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¤Î¤Ç¾Ü¤·¤¯¤Ï¾åµ­¤Î¸¶Ê¸ ¤òÅö¤¿¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ìõ¼Ô¤ÏÀÕǤ¤ò»ý¤Á¤Þ¤»¤ó¡£)


   Copyright (C) 1986 - 1993, 1998, 2004, 2007  Thomas Williams, Colin Kelley
   Copyright (C) 2004-2023  ¿¤¯¤ÎÃø¼Ô

¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤È¤½¤ÎÉÕ°ʸ½ñ¤Î»ÈÍÑ¡¢Ê£À½¡¢ÇÛÉۤεö²Ä¤Ï¡¢¾åµ­¤ÎÃøºî¸¢ (copyright) ɽ¼¨¤¬¡¢Á´¤Æ¤ÎÊ£À½Êª¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¡¢¤ª¤è¤ÓÃøºî¸¢É½¼¨¤È ¤³¤ÎµöÂúʸ¤ÎξÊý¤¬¤½¤Î»Ù±çʸ½ñ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤³¤È¤ò¾ò·ï¤È¤·¤¿¾å¤Ç¡¢¤³¤Î ʸ½ñ¤Ë¤è¤êÊݾڤµ¤ì¤Þ¤¹¡£

¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤Î½¤Àµ¤âǧ¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢½¤Àµ¤ò´Þ¤àÁ´¥½¡¼¥¹¥³ ¡¼¥É¤ÎÇÛÉۤθ¢Íø¤Ïǧ¤á¤é¤ì¤Þ¤»¤ó¡£½¤Àµ¤Ï¥ê¥ê¡¼¥¹ÈǤËÂФ¹¤ë¥Ñ¥Ã¥Á¤Î·Á¤Ç ÇÛÉÛ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£½¤Àµ¤µ¤ì¤¿¥½¡¼¥¹¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æºî¤é¤ì¤¿¥Ð¥¤ ¥Ê¥ê¤ÎÇÛÉۤϡ¢°Ê²¼¤Î¾ò·ï¤Î¸µ¤Çǧ¤á¤é¤ì¤Þ¤¹:


 1. ¥ê¥ê¡¼¥¹ÈǤ«¤é¤Î¥½¡¼¥¹¤Î½¤ÀµÉôʬ¤ò¡¢¥Ñ¥Ã¥Á¤Î·Á¤Ç¥Ð¥¤¥Ê¥ê¤È¶¦¤ËÇÛ
    ÉÛ¤¹¤ë¤³¤È
 2. ¥Ù¡¼¥¹¤È¤Ê¤ë¥ê¥ê¡¼¥¹ÈǤȶèÊ̤¹¤ë¤¿¤á¤Ë¡¢¤½¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ËÆÃÊÌ
    ¤Ê¥Ð¡¼¥¸¥ç¥ó»ØÄê»Ò¤òÉղ乤뤳¤È
 3. ¤½¤Î½¤ÀµÈǤΥµ¥Ý¡¼¥ÈÍѤˡ¢¤¢¤Ê¤¿¤Î̾Á°¤È¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¤È
    ¤òÄ󶡤¹¤ë¤³¤È
 4. ¥Ù¡¼¥¹¤È¤Ê¤ë¥½¥Õ¥È¥¦¥§¥¢¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢²æ¡¹¤ÎÏ¢Íí¾ðÊó¤òÊÝ»ý¤·
    ³¤±¤ë¤³¤È

¥ê¥ê¡¼¥¹ÈǤΥ½¡¼¥¹¥³¡¼¥É¤ò¡¢¥Ñ¥Ã¥Á¤Î·Á¤Ç¤Î¥½¡¼¥¹¤Î½¤Àµ¤È°ì½ï¤ËÇÛÉÛ¤¹¤ë ¤³¤È¤Ï¡¢¥Ð¥¤¥Ê¥êÇÛÉۤ˴ؤ¹¤ë¾ò¹à 2 ¤«¤é 4 ¤Þ¤Ç¤Î¾ò·ï¤Î¸µ¤Çµö¤µ¤ì¤Þ¤¹¡£

¤³¤Î¥½¥Õ¥È¥¦¥§¥¢¤Ï "¤¢¤ë¤¬¤Þ¤Þ" Ä󶡤µ¤ì¡¢Å¬ÍѲÄǽ¤ÊˡΧ¤Çµö¤á¤é¤ì¤ëÈÏ °Ï¤ÎÊݾڤòɽÌÀ¤¢¤ë¤¤¤Ï°Å¼¨¤·¤Æ¤¤¤Ï¤¤¤Þ¤»¤ó¡£


     Ãø¼Ô
             ¥ª¥ê¥¸¥Ê¥ë¥½¥Õ¥È¥¦¥§¥¢:
                Thomas Williams,  Colin Kelley.
             Gnuplot 2.0 ÄɲÃ:
                Russell Lang, Dave Kotz, John Campbell.
             Gnuplot 3.0 ÄɲÃ:
                Gershon Elber ¤È¤½¤Î¾¤Î¿Í¡¹¡£
             Gnuplot 4.0 ¤ª¤è¤Ó¤½¤ì°Ê¹ß¤Î¥ê¥ê¡¼¥¹:
                ¤³¤Îʸ½ñ¤ÎÀèƬ¤Î´óÍ¿¼Ô (contributors) ¤Î°ìÍ÷»²¾È¡£

2 ¤Ï¤¸¤á¤Ë (Introduction)

gnuplot ¤Ï¡¢¥Ý¡¼¥¿¥Ö¥ë¤Ê¥³¥Þ¥ó¥ÉÆþÎÏÊý¼°¤Î¥°¥é¥Õ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ç¡¢ Linux, OS/2, MS Windows, macOS, ¤½¤Î¾¿¤¯¤Î¥×¥é¥Ã¥È¥Û¡¼¥à¾å¤ÇÆ°ºî¤·¤Þ ¤¹¡£¥½¡¼¥¹¥³¡¼¥É¤Ë¤ÏÃøºî¸¢¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ÌµÎÁ¤ÇÇÛÉÛ¤µ¤ì¤Æ¤¤¤Þ¤¹ (¤¹¤Ê¤ï ¤Á¡¢¤½¤ì¤ËÂвÁ¤ò»Ùʧ¤¦É¬ÍפϤ¢¤ê¤Þ¤»¤ó)¡£¸µ¤Ï¡¢²Ê³Ø¼Ô¤ä³ØÀ¸¤¬¿ô³Ø´Ø¿ô ¤ä¥Ç¡¼¥¿¤Ê¤É¤òÂÐÏÃŪ¤Ëɽ¼¨¤Ç¤­¤ë¤è¤¦ºî¤é¤ì¤¿¤Î¤Ç¤¹¤¬¡¢¸½ºß¤Þ¤Ç¤ËÎ㤨¤Ð Web ¥¹¥¯¥ê¥×¥È¤Ê¤É¡¢Â¿¤¯¤ÎÈóÂÐÏ÷¿¤ÎÍøÍѤ⥵¥Ý¡¼¥È¤¹¤ë¤è¤¦¤ËÀ®Ä¹¤·¤Æ¤¤ ¤Þ¤¹¡£¤³¤ì¤Ï¡¢Î㤨¤Ð Octave ¤Î¤è¤¦¤Ë¥µ¡¼¥É¥Ñ¡¼¥Æ¥£¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î ÉÁ²è¥¨¥ó¥¸¥ó¤È¤·¤Æ¤â»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£gnuplot ¤Ï¡¢1986 ¤è¤ê¥µ¥Ý¡¼¥È¤È³è ȯ¤Ê³«È¯¤¬¹Ô¤ï¤ì¤Æ¤¤¤Þ¤¹¡£

gnuplot ¤Ï¡¢2 ¼¡¸µ¡¢¤Þ¤¿¤Ï 3 ¼¡¸µ¤Î¿¤¯¤Î¼ïÎà¤Î¥°¥é¥Õ¤òÀ¸À®¤Ç¤­¤Þ¤¹¡£ ¤¤¤Þ¤¹: ÀÞÀþ¥°¥é¥Õ¡¢ÅÀ¥°¥é¥Õ¡¢ËÀ¥°¥é¥Õ¡¢Åù¹âÀþ¡¢¥Ù¥¯¥È¥ë¾ìÉÁ²è¡¢²èÁü¤Î ¼è¤ê¹þ¤ß¡¢¶ÊÌÌ¡¢¤½¤·¤Æ¤½¤ì¤é¤Ë´ØÏ¢¤¹¤ë¤µ¤Þ¤¶¤Þ¤Êʸ»úÎóÅù¡£¤½¤·¤Æ¤µ¤é¤Ë ¤¤¤¯¤Ä¤«¤ÎÆÃÊ̤ʥ°¥é¥Õ¡¢Î㤨¤Ð²¹ÅÙʬÉÛ¿Þ (heatmap)¡¢ÃØéá¤ÎÁ㥰¥é¥Õ (¥ì ¡¼¥À¡¼¥Á¥ã¡¼¥È, spiderplot)¡¢¶Ë¼Í±Æ (polar projection)¡¢¥Ò¥¹¥È¥°¥é¥à (histograms)¡¢È¢¤Ò¤²¿Þ (boxplot)¡¢¥Ó¡¼¥¹¥¦¥©¡¼¥à¥°¥é¥Õ (bee swarm)¡¢ ÈóÀþ·Á¼´¤Ê¤É¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

gnuplot ¤Ï¿¤¯¤Î°Û¤Ê¤ë½ÐÎϤò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹: ÂÐÏ÷¿¥¹¥¯¥ê¡¼¥ó½ÐÎÏ·Á ¼° (¥Þ¥¦¥¹¤ä¥Û¥Ã¥È¥­¡¼ÆþÎϤâ²Äǽ)¡¢¥Ú¥ó¥×¥í¥Ã¥¿¤ä¸½ºß¤Î¥×¥ê¥ó¥¿¤Ø¤Îľ ÀܽÐÎÏ¡¢¤Þ¤¿¤Ï¿¤¯¤Î¥Õ¥¡¥¤¥ë·Á¼°¤Ø¤Î½ÐÎÏ (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, ...)¡£gnuplot ¤Ï¡¢Íưפ˿·¤·¤¤½ÐÎÏ·Á¼°¤òÄɲä¹¤ë ¤è¤¦³ÈÄ¥¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ºÇ¶á¤Ç¤ÏÎ㤨¤Ð webp ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬¥µ¥Ý¡¼ ¥È¤µ¤ì¤Þ¤·¤¿¡£svg ¤ä HTML5 canvas ½ÐÎÏ·Á¼°¤òÍøÍѤ¹¤ì¤Ð¡¢¥°¥é¥Õ¤ò Web ¥Ú¡¼¥¸Æâ¤Ë¥Þ¥¦¥¹ÍøÍѲÄǽ¤Ê·Á¤ÇËä¤á¹þ¤ó¤À½ÐÎϤòÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

gnuplot ¤Î¥³¥Þ¥ó¥É¸À¸ì¤ÏÂçʸ»ú¾®Ê¸»ú¤ò¶èÊ̤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¾®Ê¸»ú¤Ç ½ñ¤«¤ì¤¿¥³¥Þ¥ó¥É¤ä´Ø¿ô̾¤Ï¡¢¤½¤ì¤é¤òÂçʸ»ú¤Ç½ñ¤¤¤¿¤â¤Î¤È¤ÏƱ¤¸¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó¡£¤¤¤º¤ì¤Î¥³¥Þ¥ó¥É¤â¡¢¤¢¤¤¤Þ¤¤¤µ¤Î̵¤¤¸Â¤ê¤Ë¤ª¤¤¤Æ¾Êά¤¹¤ë¤³¤È¤¬ ¤Ç¤­¤Þ¤¹¡£1 ¹ÔÃæ¤Ë¤Ï¥»¥ß¥³¥í¥ó (;) ¤Ç¶èÀڤäÆÊ£¿ô¤Î¥³¥Þ¥ó¥É¤ò½ñ¤¯¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£Ê¸»úÎó¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉä¤Î¤É¤Á¤é¤«¤Ç½ñ¤­»Ï¤á ¤Þ¤¹¤¬¡¢Î¾¼Ô¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ê¤Þ¤¹ (¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: syntax (30))¡£Îã:


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

¥³¥Þ¥ó¥É¤Ï¡¢Ê£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Ï¡¢ºÇ½ª¹Ô°Ê³°¤Î Á´¤Æ¤Î¹Ô¤Î¹ÔËö¤Ë¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤ò½ñ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¥Ð¥Ã¥¯¥¹¥é ¥Ã¥·¥å¤Ïɬ¤º³Æ¹Ô *ºÇ¸å* ¤Îʸ»ú¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤½¤Î·ë²Ì¤È¤·¤Æ¥Ð¥Ã ¥¯¥¹¥é¥Ã¥·¥å¤È¡¢¤½¤ì¤Ë³¤¯²þ¹Ôʸ»ú¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤«¤Î¤è¤¦¤Ë°·¤ï¤ì¤Þ¤¹¡£ ¤Ä¤Þ¤ê¡¢²þ¹Ôʸ»ú¤¬¥¹¥Ú¡¼¥¹¤ÎÌò¤ò¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¤·¡¢²þ¹Ô¤Ë¤è¤Ã¤Æ¥³ ¥á¥ó¥È¤¬½ªÎ»¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤»¤ó¡£¤Ç¤¹¤«¤éÊ£¿ô¹Ô¤Ë¤Þ¤¿¤¬¤ë¹Ô¤ÎÀèƬ¤ò¥³ ¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤È¡¢¤½¤Î¥³¥Þ¥ó¥ÉÁ´ÂΤ¬¥³¥á¥ó¥È¥¢¥¦¥È¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ ¤¹ (°Ê²¼»²¾È: comments (10))¡£¤Ê¤ªÃí°Õ¤·¤Þ¤¹¤¬¡¢¤â¤·¡¢Ê£¿ô¹Ô¤Î¥³¥Þ¥ó¥É¤Î ¤É¤³¤«¤Ç¥¨¥é¡¼¤¬µ¯¤­¤¿¤È¤­¡¢¥Ñ¡¼¥µ¤Ï¤½¤Î¾ì½ê¤òÀµ³Î¤Ë¤Ï»Ø¼¨¤¹¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤»¤ó¤·¡¢¤Þ¤¿¡¢Àµ¤·¤¤¹Ô¤Ë»Ø¼¨¤¹¤ëɬÍפâ¤Ê¤¤¤Ç¤·¤ç¤¦¡£

¤³¤Î¥É¥­¥å¥á¥ó¥È¤Ë¤ª¤¤¤Æ¡¢Ãæ³ç¸Ì ({}) ¤Ï¾Êά²Äǽ¤Ê°ú¿ô¤òɽ¤¹¤â¤Î¤È¤·¡¢ ½ÄËÀ (|) ¤Ï¡¢¸ß¤¤¤ËÇÓ¾Ū¤Ê°ú¿ô¤ò¶èÀÚ¤ë¤â¤Î¤È¤·¤Þ¤¹¡£gnuplot ¤Î¥­¡¼ ¥ï¡¼¥É¤ä help ¤Ë¤ª¤±¤ë¹àÌÜ̾¤Ï¡¢µÕ°úÍÑÉä (¡®)¡¢¤Þ¤¿¤Ï²Äǽ¤Ê¾ì¹ç¤Ë¤Ï boldface (ÂÀ»ú) ¤Çɽ¤·¤Þ¤¹¡£³Ñ³ç¸Ì (<>) ¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¤â¤Î¤ËÃÖ¤­ ´¹¤¨¤é¤ì¤ë¤Ù¤­¤â¤Î¤òɽ¤·¤Þ¤¹¡£Â¿¤¯¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó¤Î°ú¿ô¤Ë¤Ï¡¢¤½¤ì¤¬ ¾Êά¤µ¤ì¤ë¤È¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤é¤Î¾ì¹ç¡¢É¬¤º¤· ¤â³Ñ³ç¸Ì¤¬Ãæ³ç¸Ì¤Ç°Ï¤Þ¤ì¤Æ½ñ¤«¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

¤¢¤ë¹àÌܤˤĤ¤¤Æ¤Î¥Ø¥ë¥×¤¬É¬ÍפʤȤ­¤Ë¤Ï¡¢help ¤Ë³¤±¤Æ¤½¤Î¹àÌÜ̾¤ò ÆþÎϤ·¤Æ²¼¤µ¤¤¡£¤Þ¤¿¤Ïñ¤Ë help ? ¤Ç¤â¥Ø¥ë¥×¤Î¹àÌܤΥá¥Ë¥å¡¼¤¬¸½¤ï¤ì ¤Þ¤¹¡£

ÂçÎ̤Υ°¥é¥Õ¥µ¥ó¥×¥ë¤¬¡¢°Ê²¼¤Î Web ¥Ú¡¼¥¸¤Ë¤¢¤ê¤Þ¤¹¡£ http://www.gnuplot.info/demo/

¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éµ¯Æ°¤¹¤ë¤È¤­¤Ï¡¢°Ê²¼¤Î½ñ¼°¤¬»È¤¨¤Þ¤¹¡£


     gnuplot {OPTIONS} file1 file2 ...

¤³¤³¤Ç file1, file2 Åù¤Ï¡¢local ¥³¥Þ¥ó¥É¤Ç¼è¤ê¹þ¤à¤Î¤ÈƱÅù¤ÎÆþÎÏ¥Õ¥¡ ¥¤¥ë (¥¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë) ¤Ç¤¹¡£ gnuplot ¤ËÍ¿¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¥³¥Þ¥ó¥É¹Ô¤Î¤É¤³¤ËÃÖ¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£¥Õ ¥¡¥¤¥ë¤Ï»ØÄꤷ¤¿½ç¤Ë¼Â¹Ô¤µ¤ì¡¢Æ±ÍÍ¤Ë -e ¥ª¥×¥·¥ç¥ó¤ÇǤ°Õ¤Î¥³¥Þ¥ó¥É¤òÍ¿ ¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Îã:


     gnuplot   file1.in   -e "reset"   file2.in

ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ï¡¢É¸½àÆþÎϤ«¤éÆɤޤ»¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£gnuplot ¤ÏºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò½èÍý¤·½ª¤ï¤ë¤È½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡¥¤¥ë¤ò°ì¤Ä ¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎϤ«¤é¤ÎÂÐÏÃÆþÎϤò¼è¤ê¤Þ¤¹¡£¾ÜºÙ ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤Î¾ÜºÙ¤Ï°Ê²¼»²¾È: command-line-options (7.1)¡£¤Þ¤¿ ¤Ï°Ê²¼¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£


     gnuplot --help

ÂÐÏ÷¿ÉÁ²è¥¦¥£¥ó¥É¥¦¤Ç¤Îºî¶ÈÃæ¤Ï¡¢'h' ¤òÂǤĤȥۥåȥ­¡¼ (hotkeys) ¤È¥Þ¥¦¥¹µ¡Ç½ (mousing) ¤Ë´Ø¤¹¤ë¥Ø¥ë¥×¤ò¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

3 õ¤·½Ð¤¹¼ê½õ¤±/¥Ð¥° (Seeking-assistance / Bugs)

¸ø¼°¤Î gnuplot ¥Û¡¼¥à¥Ú¡¼¥¸¤Ï°Ê²¼¤Ë¤¢¤ê¤Þ¤¹¡£ http://www.gnuplot.info

½õ¤±¤òµá¤á¤ëÁ°¤Ë¡¢¥Õ¥¡¥¤¥ë FAQ.pdf ¤«¡¢¤Þ¤¿¤Ï¾å¤Î Web ¥µ¥¤¥È¤Î FAQ (ÅÙ¡¹Ê¹¤«¤ì¤ë¼ÁÌä; Frequently Asked Questions) ¤Î°ìÍ÷

¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£

¾¤Ë¡¢(¥Ð¥°°Ê³°¤Î) ÆÃÄê¤Î¥°¥é¥ÕÉÁ²è¤ÎÌäÂê¤Ë´Ø¤¹¤ë½õ¸À¤Ï°Ê²¼¤Ç¤âÆÀ¤é¤ì ¤Þ¤¹¡£


         https://stackoverflow.com/questions/tagged/gnuplot

¥Ð¥°¤ÎÊó¹ð¤È¡¢µ¡Ç½¤Î¥ê¥¯¥¨¥¹¥È¤Ï¡¢°Ê²¼¤Î¥È¥é¥Ã¥­¥ó¥°¥·¥¹¥Æ¥à¤Ë¤¢¤²¤Æ¤¯ ¤À¤µ¤¤¡£


         https://sourceforge.net/p/gnuplot/_list/tickets

¤¿¤À¤·¡¢¤¢¤Ê¤¿¤¬Êó¹ð¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥Ð¥°¤¬¡¢¤è¤ê¿·¤·¤¤ÈǤǴû¤Ë½¤Àµ¤µ¤ì ¤Æ¤¤¤Ê¤¤¤«¡¢°ÊÁ°¤ÎÊó¹ð¤ò¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£

¥Ð¥°¤ÎÊó¹ð¤ä¼ÁÌä¤òÅê¹Æ¤¹¤ë¤È¤­¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ·¤Æ¤¤¤ë gnuplot ¤Î¥Ð¡¼ ¥¸¥ç¥ó¡¢½ÐÎÏ·Á¼° (terminal)¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¡¢¤È¤¤¤Ã¤¿¾ðÊó¤ò ¤¹¤Ù¤ÆÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£ÌäÂê¤òºÆ¸½¤¹¤ë¼«¸Ê´°·ë·¿¤Îû¤¤¥¹¥¯¥ê¥×¥È¤òÄ󼨤¹ ¤ë¤È¤Ê¤ªÎɤ¤¤Ç¤·¤ç¤¦¡£

gnuplot ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ø¤ÎÅê¹Æ¤ÎÊýË¡¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Î³«È¯ Web ¥µ¥¤¥È http://sourceforge.net/projects/gnuplot

¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

gnuplot ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ë¥á¡¼¥ë¤ò½ñ¤¯Á°¤Ë¡¢ºÇ½é¤Ë¤½¤Î¥á¡¼¥ê¥ó¥°¥ê¥¹¥È ¤Ë»²²Ã¤¹¤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢¥¹¥Ñ¥à¤ÎÎ̤ò¸º¤é¤¹ ¤¿¤á¤ËɬÍפǤ¹¡£

¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¥á¥ó¥Ð¡¼¤Ø¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹:


         gnuplot-info@lists.sourceforge.net

³«È¯ÈǤ˴ؤ¹¤ë¥á¡¼¥ê¥ó¥°¥ê¥¹¥È:


         gnuplot-beta@lists.sourceforge.net

4 ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ç¤Î¿·¤·¤¤µ¡Ç½ (New features in version 6)

¥Ð¡¼¥¸¥ç¥ó 6 ¤Ï¡¢Á̤뤳¤È 1986 ǯ¤«¤é¤Î gnuplot ³«È¯¤Ç¤ÎºÇ¿·¥á¥¸¥ã¡¼¥ê ¥ê¡¼¥¹¤Ç¤¹¡£¤½¤ì¤Ï¡¢¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó 5 (2015)¡¢¤½¤·¤Æ¤½¤Î¸å¤Î¥Þ¥¤¥Ê ¡¼¥ê¥ê¡¼¥¹ 5.2 (2017), 5.4 (2020) ¤Ë³¤¯¤â¤Î¤Ç¤¹¡£³«È¯¤Ï¡¢SouceForge ¾å¤Î git ¥ê¥Ý¥¸¥È¥ê¥×¥í¥¸¥§¥¯¥ÈÆâ¤Î¡¢Àµ¼°ÈǤȤÏÊ̤ʥ֥é¥ó¥Á¤Ç³¤±¤é¤ì ¤Æ¤¤¤Þ¤¹¡£

¤³¤Î¥É¥­¥å¥á¥ó¥È¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ëµ¡Ç½¤ÎÃæ¤Ë¤Ï¡¢gnuplot ¤ò¥½¡¼¥¹¤«¤é¥³¥ó ¥Ñ¥¤¥ë¤¹¤ëºÝ¤Ë¤½¤ì¤òÁªÂò¤·¤ÆÀßÄꤷ¤Æ¤¤¤ë¾ì¹ç¤À¤±»È¤¨¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£ ¤¢¤Ê¤¿¤¬¼Â¹Ô¤·¤Æ¤¤¤ëÆÃÄê¤Î gnuplot ¤¬¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¤É¤Î¤è¤¦¤Ê¥ª¥×¥· ¥ç¥ó¤òÀßÄꤷ¤Æºî¤é¤ì¤¿¤«¤òÃΤë¤Ë¤Ï¡¢show version long ¤È¥¿¥¤¥×¤·¤Æ¤¯ ¤À¤µ¤¤¡£

4.1 ´Ø¿ô¥Ö¥í¥Ã¥¯¤È¶É½êÊÑ¿ô (Function blocks and scoped variables)

¤³¤ÎÈǤΠgnuplot ¤Ç¤Ï¡¢É¸½àŪ¤Ê gnuplot ¥³¥Þ¥ó¥É¤Î¥Ö¥í¥Ã¥¯¤ò¸Æ¤Ó½Ð¤·¤Æ ´Ø¿ô¤È¤·¤Æ»È¤¨¤ëµ¡Ç½¤òƳÆþ¤·¤Æ¤¤¤Þ¤¹¡£´Ø¿ô¥Ö¥í¥Ã¥¯¤Ï¡¢0 ¤«¤é 9 ¸Ä¤Î°ú ¿ô¤ò»È¤¨¤Æ¡¢°ì¤Ä¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£´Ø¿ô¥Ö¥í¥Ã¥¯¤Ï¡¢·×»»¤·¤¿¿·¤·¤¤ÃͤòÊÑ¿ô ¤Ë³ä¤êÅö¤Æ¤¿¤ê¡¢°Û¤Ê¤ë´Ø¿ô¤ä±é»»»Ò¤ò·ë¹ç¤·¤¿¤ê¡¢Í¿¤¨¤é¤ì¤¿¥Ç¡¼¥¿¤ËÂФ¹ ¤ë·«¤êÊÖ¤·¤Îºî¶È¤ò¹Ô¤Ã¤¿¤ê¤¹¤ë¤Î¤Ë»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤˤϡ¢3 ¤Ä¤ÎÍ×ÁǤ¬¤¢¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: local (96), scope (26), function blocks (89), return (110)¡£

¤³¤Î»ÅÁȤߤò»È¤Ã¤Æ¡¢Ã±½ã¤Ê°ì¹Ô¤Î´Ø¿ôÄêµÁ f(x) = ... ¤è¤ê¤â¤Ã¤ÈÊ£»¨¤Ç ¼«ÌÀ¤Ç¤Ï¤Ê¤¤´Ø¿ô¤òÄêµÁ¤·¡¢ÉÁ²è¤¹¤ëÎã¤È¤·¤Æ¡¢function_block.dem ¤ò»² ¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

4.2 Æüì´Ø¿ô¤ÈÊ£ÁÇ¿ôÃÍ´Ø¿ô (Special and complex-valued functions)

gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ï¡¢ËÄÂç¤ÊÊ£ÁÇ¿ôÃÍ´Ø¿ô·²¤È¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤¢ ¤Ã¤¿´Ø¿ô¤Î²þÎÉÈǤò¤¤¤¯¤Ä¤«Ä󶡤·¤Þ¤¹¡£

¥Ó¥ë¥É»þ¤ËŬÀڤʳ°Éô¥é¥¤¥Ö¥é¥ê¤¬¤¢¤ì¤Ð¡¢¤µ¤é¤Ë¤¤¤¯¤Ä¤«¤ÎÆüì´Ø¿ô¤ò¥µ¥Ý ¡¼¥È¤·¤Þ¤¹¡£°Ê²¼»²¾È: special_functions (15.3.15)¡£

4.3 ¿·¤·¤¤ÉÁ²è¥¹¥¿¥¤¥ë (New plot styles)

4.4 ÆÌÊñ¤È¥Þ¥¹¥¯¤ÈÊ¿³ê²½ (Hulls, masks, and smoothing)

4.5 ̾Á°ÉÕ¤­¥Ñ¥ì¥Ã¥È (Named palettes)

4.6 ¿·¤·¤¤¥Ç¡¼¥¿·Á¼° (New data formats)

4.7 ¿·¤·¤¤ÁȤ߹þ¤ß´Ø¿ô¤ÈÇÛÎóÁàºî (New built-in functions and array operations)

4.8 ¥×¥í¥°¥é¥à¤Îή¤ì¤ÎÀ©¸æ (Program control flow)

4.9 ¿½ÅÉÁ²è¥â¡¼¥É (Multiplots)

¸½ºß¤Ï¡¢Â¿½ÅÉÁ²è¥°¥é¥Õ (multiplot) ¤ÎÀ¸À®»þ¤Ë¼Â¹Ô¤·¤¿¥³¥Þ¥ó¥É¤ò¡¢¥Ç¡¼ ¥¿¥Ö¥í¥Ã¥¯ $GPVAL_LAST_MULTIPLOT ¤ËÊݸ¤·¤Þ¤¹¡£¤½¤·¤Æ¤³¤ì¤Ï¡¢¿·¤·¤¤¥³ ¥Þ¥ó¥É remultiplot ¤ÇºÆ¼Â¹Ô¤Ç¤­¤Þ¤¹¡£Êݸ¤·¤¿¥³¥Þ¥ó¥É¤Î¤¦¤ÁºÆ¼Â¹Ô¤Ë ÌäÂ꤬¤¢¤ë¥³¥Þ¥ó¥É¤Ï¡¢ºÆ¼Â¹Ô¤Ï¤µ¤ì¤Þ¤»¤ó¡£ºÆÀ¸À®¤·¤¿Â¿½ÅÉÁ²è¥°¥é¥Õ¤Ï¡¢ ¤½¤Î´Ö¤Ë¥°¥é¥Õ¤ÎÀßÄê (¼´¤ÎÈϰϤäÂпô¼´ÀßÄêÅù) ¤¬Êѹ¹¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¸µ¤Î ¤â¤Î¤È´°Á´¤Ë°ìÃפ¹¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£

°Ê²¼¤Î¥³¥Þ¥ó¥ÉÎó¤Ï¡¢¸µ¤Î¥°¥é¥Õ¤Î¾õÂÖ¤È multiplot ¥³¥Þ¥ó¥É¤ÎξÊý¤ò¥¹¥¯ ¥ê¥×¥È¥Õ¥¡¥¤¥ë¤ËÊݸ¤·¡¢¸å¤ÇºÆÆɤ߹þ¤ß¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£


    save "my_multiplot.gp"
    set multiplot
    ... (¥°¥é¥ÕÍ×ÁǤòÀ¸À®¤¹¤ë¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤¬Ê¤Ö) ...
    unset multiplot
    set print "my_multiplot.gp" append
    print $GPVAL_LAST_MULTIPLOT
    unset print

4.10 ¿·¤·¤¤½ÐÎÏ·Á¼°¤È¥ª¥×¥·¥ç¥ó (New terminals and terminal options)

4.11 ¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È (Watchpoints)

¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢¥°¥é¥ÕÆâ¤Î¸Ä¡¹¤Î¶ÊÀþ¤Ë´ØÏ¢¤¹¤ëÂоÝÃͤǤ¹¡£¶ÊÀþ¤¬ÉÁ ²è¤µ¤ì¤ë¤È¤­¡¢³ÆÀþʬÍ×ÁǤ¬¡¢¤½¤ÎξüÅÀ¤Î´Ö¤Ë¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥ÈºÂɸ (x, y ¤« z) ¤«´Ø¿ô f(x,y) ¤ÎÂоÝÃͤò´Þ¤ó¤Ç¤¤¤ë¤«¤ò³Îǧ¤·¤Þ¤¹¡£¤½¤ì¤¬¸«¤Ä¤«¤Ã ¤¿¾ì¹ç¡¢¤½¤Î¥Þ¥Ã¥Á¤¹¤ëÅÀ¤ÎºÂɸ [x,y] ¤ò¸å¤Ç»ÈÍѤ¹¤ë¤¿¤á¤ËÊݸ¤·¤Þ¤¹¡£ °Ê²¼»²¾È: watchpoints (32)¡£

4.12 ½µÍËÆü¤Î¥µ¥Ý¡¼¥È (Week-date time support)

2020-2021 ǯ¤Ëµ¯¤­¤¿¿··¿¥³¥í¥Ê¥¦¥£¥ë¥¹ (Covid-19) ¤ÎÁûÆ°¤Ç¤Ï¡¢±Ö³ØŪ¥Ç ¡¼¥¿¤Î¥°¥é¥Õ²½¤Î´Ø¿´¤¬¹â¤Þ¤ê¤Þ¤·¤¿¤¬¡¢¤½¤³¤Ç¤ÏÊó¹ð¤Î´·½¬¤È¤·¤Æ¡¢¤è¤¯ ¡Ö½µÍËÆü¡×¤ò»È¤Ã¤¿É½¤¬¼¨¤µ¤ì¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î´·½¬¤ËÂФ¹¤ë gnuplot ¤Î¥µ ¥Ý¡¼¥È¤ÎÉÔ­¤Ï²þÁ±¤·¡¢½µÍËÆü¤â¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë³ÈÄ¥¤·¤Æ¤¢¤ê¤Þ¤¹¡£

4.13 ¤½¤Î¾¤Î¿·¤·¤¤µ¡Ç½

4.14 ¥Ð¡¼¥¸¥ç¥ó 5 ¤ÇƳÆþ¤µ¤ì¤¿µ¡Ç½¤ÎÍ×Ìó (3 Brief summary of features introduced in version 5)

4.14.1 5.4 ¤ÇƳÆþ¤µ¤ì¤¿µ¡Ç½ (Features introduced in 5.4)

4.14.2 5.2 ¤ÇƳÆþ¤µ¤ì¤¿µ¡Ç½ (Features introduced in 5.2)

4.14.3 5.0 ¤ÇƳÆþ¤µ¤ì¤¿µ¡Ç½ (Features introduced in 5.0)

5 ¥Ð¡¼¥¸¥ç¥ó 5 ¤È 6 ¤È¤Î°ã¤¤ (2 Differences between versions 5 and 6)

¥Ð¡¼¥¸¥ç¥ó 5 ¤ÇƳÆþ¤·¤¿¤¤¤¯¤Ä¤«¤ÎÊѹ¹¤Ï¡¢gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥óÍÑ ¤Î¥¹¥¯¥ê¥×¥È¤ò¼ºÇÔ¤µ¤»¤ë¡¢¤Þ¤¿¤Ï°Û¤Ê¤ë¿¶Éñ¤¤¤ò¤µ¤»¤ë¤³¤È¤¬¤¢¤ê¤Þ¤·¤¿¡£ ¥Ð¡¼¥¸¥ç¥ó 6 ¤ÇƳÆþ¤·¤¿Êѹ¹¤Ç¤Ï¡¢¤½¤¦¤¤¤¦¤³¤È¤Ï¤È¤Æ¤â¾¯¤Ê¤¤¤Ç¤¹¡£

5.1 Èó¿ä¾©¤Ê½ñ¼° (Deprecated syntax)

¥Ð¡¼¥¸¥ç¥ó 5.4 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü:


     # ·«¤êÊÖ¤·¤ò¹Ô¤¦¤¿¤á¤Ë `reread` ¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤ò»ÈÍÑ
     N = 0;  load "file-containing-reread";
     file content:
         N = N+1
         plot func(N,x)
         pause -1
         if (N<5) reread

¸½ºß¤ÎƱÅù¤Îµ¡Ç½:


     do for [N=1:5] {
         plot func(N, x)
         pause -1
     }

¥Ð¡¼¥¸¥ç¥ó 5.4 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü


     set dgrid3d ,,foo     # foo ¤¬°ÕÌ£¤¹¤ë»Ø¼¨¤Î¥­¡¼¥ï¡¼¥É¤¬¤Ê¤¤

¸½ºß¤Ï°Ê²¼¤ÈƱÅù


     set dgrid3d qnorm foo # (Îã¤Î¤ß¡¢qnorm ¤ÏñÆȤΥª¥×¥·¥ç¥ó¤Ç¤Ê¤¤)

¥Ð¡¼¥¸¥ç¥ó 5.0 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü


     set style increment user

¸½ºß¤Ï°Ê²¼¤ÈƱÅù


     ɬÍפÊÈϰϤÎÀþ¼ï¤ò "set linetype" ¤ò»ÈÍѤ·¤ÆºÆÄêµÁ

¥Ð¡¼¥¸¥ç¥ó 5.0 ¤Ç¤ÏÈó¿ä¾©¡¢6.0 ¤Ç¤Ïºï½ü


     show palette fit2rgbformulae

6 ¥Ç¥â¡¢¥Í¥Ã¥È¾å¤Î¥µ¥ó¥×¥ë (Demos and Online Examples)

gnuplot ¤ÎÇÛÉÛʪ¤Î demo ¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë¤Ï¡¢Â¿¤¯¤Î¥µ¥ó¥×¥ë¤¬¼ý¤á¤é ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Î¥µ¥ó¥×¥ë¤Î png, svg, canvas ½ÐÎÏ·Á¼°¤Ë¤è¤ë½ÐÎϤò¡¢ °Ê²¼¤Î¥Í¥Ã¥È¾å¤Ç¸«¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹: http://gnuplot.info/demos

¤½¤³¤Ç¤Ï¡¢³Æ¥Ç¥â¤òºîÀ®¤¹¤ë¥³¥Þ¥ó¥É¤¬¥°¥é¥Õ¤ÎÎÙ¤ê¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¤·¡¢¤½¤Î gnuplot ¥¹¥¯¥ê¥×¥È¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤òÊݸ¤·Æ± ÍͤΥ°¥é¥Õ¤òºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

7 ¥Ð¥Ã¥Á/ÂÐÏ÷¿Áàºî (Batch/Interactive)

gnuplot ¤Ï¡¢¥Ð¥Ã¥Á½èÍý·Á¼°¡¢¤¢¤ë¤¤¤ÏÂÐÏ÷¿¤Î¤É¤Á¤é¤Î·Á¼°¤Ç¤â¼Â¹Ô¤Ç¤­¡¢ ¤½¤ì¤é¤òÁȤ߹ç¤ï¤»¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£

¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¤Ï¡¢¥×¥í¥°¥é¥à¤Ø¤Î¥ª¥×¥·¥ç¥ó¤«¡¢gnuplot ¥³¥Þ¥ó¥É¤ò ´Þ¤à¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ç¤¢¤ë¤È²ò¼á¤·¤Þ¤¹¡£ ³Æ¥Õ¥¡¥¤¥ë¤È¥³¥Þ¥ó¥Éʸ»úÎó¤Ï¡¢»ØÄꤷ¤¿½ç¤Ë¼Â¹Ô¤·¤Þ¤¹¡£ ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ï¡¢¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤éÆɹþ¤à¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ ºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¸å¤Ë gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£Æɤ߹þ¤Þ¤»¤ë¥Õ¥¡ ¥¤¥ë¡¢¤ª¤è¤Ó¥³¥Þ¥ó¥Éʸ»úÎó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ïɸ½àÆþÎÏ ¤«¤é¤ÎÂÐÏ÷¿¤ÎÆþÎϤò¼õ¤±ÉÕ¤±¤Þ¤¹¡£

7.1 ¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó (command line options)

gnuplot ¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò¼õ¤±¤Ä¤±¤Þ¤¹:


    -V, --version
    -h, --help
    -p, --persist
    -d, --default-settings
    -s, --slow
    -e  "command1; command2; ..."
    -c  scriptfile ARG1 ARG2 ...

-p ¤Ï¡¢¥×¥í¥°¥é¥à¤Î½ªÎ»»þ¤Ë¡¢»Ä¤Ã¤Æ¤¤¤ëÂÐÏ÷¿¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¤ò°ìÀÚÊÄ ¤¸¤Ê¤¤¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£

-d ¤Ï¡¢³Æ¥æ¡¼¥¶ÍÑ¡¢¤ª¤è¤Ó¥·¥¹¥Æ¥àÍѤνé´ü²½ (°Ê²¼»²¾È: initialization (27)) ¤ò°ìÀÚ¹Ô¤ï¤Ê¤¤¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£

-s ¤Ï¡¢µ¯Æ°»þ¤Î¥Õ¥©¥ó¥È¤Î½é´ü²½¤ò¤æ¤Ã¤¯¤êÂԤĤ褦¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤½¤¦¤Ç ¤Ê¤¤¤È¡¢¥¨¥é¡¼¤òɽ¼¨¤·¡¢ÉÔÀµ¤Ê¥Õ¥©¥ó¥È¥µ¥¤¥º¾ðÊó¤ÇÆ°ºî¤ò·Ñ³¤·¤Þ¤¹¡£

-e "command" ¤Ï¡¢¼¡¤Ë¿Ê¤àÁ°¤Ë»ØÄꤷ¤¿Ã±°ì¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£

-c ¤Ï¡¢-e "call scriptfile ARG1 ARG2 ..." ¤ÈƱÅù¤Ç¤¹¡£°Ê²¼»²¾È: call (82)¡£

7.2 Îã (Examples)

ÂÐÏäò³«»Ï¤¹¤ë:


     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

8 ¥­¥ã¥ó¥Ð¥¹¥µ¥¤¥º (Canvas size)

¤³¤³¤Îʸ½ñ¤Ç»ÈÍѤ¹¤ë "canvas" ¤È¤¤¤¦ÍѸì¤Ï¡¢¥°¥é¥Õ¤ä¤½¤ì¤Ë´ØÏ¢¤¹¤ë¥é¥Ù ¥ë¤ä¥¿¥¤¥È¥ë¡¢ËÞÎã¤Ê¤É¤òÇÛÃÖ¤¹¤ë¤Î¤ËÍøÍѲÄǽ¤ÊÉÁ²èÎΰèÁ´ÂΤò°ÕÌ£¤·¤Þ¤¹¡£ Ãí°Õ: HTML5 canvas ½ÐÎÏ·Á¼°¤Ë´Ø¤¹¤ë¾ðÊó¤òÃΤꤿ¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set term canvas (127.4)¡£

set term <terminal_type> size <XX>, <YY> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¡¢ ¤Þ¤¿¤Ï "¥­¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥°¥é¥Õ¤Ï¤½¤Î ¥­¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£

set size <XX>, <YY> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥­¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤ÆÁêÂÐŪ¤Ë ¿­½Ì¤µ¤»¤Þ¤¹¡£1 ¤è¤ê¾®¤µ¤¤¿­½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥­¥ã¥ó¥Ð¥¹Á´ÂΤò Ëä¤á¤º¡¢1 ¤è¤êÂ礭¤¤¿­½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß¤¬¥­¥ã¥ó¥Ð¥¹ Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礭¤¤¿­½ÌÃͤò»ØÄꤹ¤ë¤È¡¢ÌäÂ꤬µ¯ ¤³¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

Îã:


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

¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢Éý 600 ¥Ô¥¯¥»¥ë¡¢¹â¤µ 400 ¥Ô¥¯¥»¥ë¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë "figure.png" ¤òÀ¸À®¤·¤Þ¤¹¡£¥°¥é¥Õ¤Ï¥­¥ã¥ó¥Ð¥¹¤ÎÃæ¤Îº¸²¼¤ËÃÖ¤«¤ì¤Þ¤¹¡£

Ãí°Õ: gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢set size ¤ò½ÐÎÏ¥­¥ã¥ó¥Ð¥¹¤Î¥µ ¥¤¥º¼«ÂΤòÀ©¸æ¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë½ÐÎÏ·Á¼°¤¬¤¢¤ê¤Þ¤·¤¿¤¬¡¢¤½¤ì¤Ï¥Ð¡¼¥¸¥ç¥ó 4 ¤ÇÈó¿ä¾©¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

9 ¥³¥Þ¥ó¥É¥é¥¤¥óÊÔ½¸ (Command-line-editing)

¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤ÎÊÔ½¸µ¡Ç½¤È¥³¥Þ¥ó¥É¥Ò¥¹¥È¥ê¤Îµ¡Ç½¤Ï¡¢³°Éô¤Î GNU readline ¥é¥¤¥Ö¥é¥ê¤«³°Éô¤Î BSD libedit ¥é¥¤¥Ö¥é¥ê¡¢¤Þ¤¿¤ÏÁȤ߹þ¤Þ¤ì¤Æ ¤¤¤ëƱÅù¤Î¤â¤Î¤Î¤¤¤º¤ì¤«¤ò»È¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÁªÂò¤Ï¡¢ gnuplot ¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤Î configure ¤Î¥ª¥×¥·¥ç¥ó¤Ç¹Ô¤¤¤Þ¤¹¡£

ÁȤ߹þ¤ß¤Î readline ÈǤξì¹ç¤ÎÊÔ½¸¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¤¬¡¢DEL ¥­¡¼ ¤Ë´Ø¤¹¤ëÆ°ºî¤Ï¥·¥¹¥Æ¥à¤Ë°Í¸¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£GNU readline ¥é¥¤¥Ö¥é¥ê¤È BSD libedit ¥é¥¤¥Ö¥é¥ê¤Ë´Ø¤·¤Æ¤Ï¡¢¤½¤ì¼«¿È¤Î¥É¥­¥å¥á¥ó¥È ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¥³¥Þ¥ó¥É¹ÔÊÔ½¸¥³¥Þ¥ó¥É
ʸ»ú µ¡Ç½
  ¹ÔÊÔ½¸
^B 1 ʸ»úÁ°¤ØÌ᤹
^F 1 ʸ»úÀè¤Ø¿Ê¤á¤ë
^A ¹Ô¤ÎÀèƬ¤Ø°ÜÆ°
^E ¹Ô¤ÎºÇ¸å¤Ø°ÜÆ°
^H ľÁ°¤Îʸ»ú¤òºï½ü
DEL ¸½ºß¤Îʸ»ú¤òºï½ü
^D ¸½ºß°ÌÃÖ¤Îʸ»ú¤òºï½ü¡¢¶õ¹Ô¤Ê¤é EOF
^K ¸½ºß°ÌÃÖ¤«¤é¹ÔËö¤Þ¤Çºï½ü
^L ²õ¤ì¤¿É½¼¨¤Î¹Ô¤òºÆɽ¼¨
^U ¹ÔÁ´ÂΤκï½ü
^W ľÁ°¤Îñ¸ì¤òºï½ü
^V ¤³¤Î¼¡¤Î¥­¡¼¤òÊÔ½¸¥³¥Þ¥ó¥É¤È¸«¤Ê¤µ¤Ê¤¤
TAB ¥Õ¥¡¥¤¥ë̾Êä´°Æ°ºî
  ÍúÎò
^P Á°¤ÎÍúÎò¤Ø°ÜÆ°
^N ¼¡¤ÎÍúÎò¤Ø°ÜÆ°
^R ¸åÊý¸¡º÷¤ò³«»Ï

10 ¥³¥á¥ó¥È (Comments)

¥³¥á¥ó¥Èµ­¹æ # ¤Ï¡¢¥³¥Þ¥ó¥É¹ÔÃæ¤Î¤Û¤È¤ó¤É¤É¤³¤Ë¤Ç¤â½ñ¤¯¤³¤È¤¬¤Ç¤­¤Þ ¤¹¡£¤³¤Î¤È¤­ gnuplot ¤Ï¡¢¤½¤Î¹Ô¤Î»Ä¤ê¤ÎÉôʬ¤ò̵»ë¤·¤Þ¤¹¡£¤¿¤À¤·¡¢µ­ ¹æ # ¤Ï°úÍÑÉäÆâ¤Ç¤Ï¤³¤Î¸ú²Ì¤¬¤¢¤ê¤Þ¤»¤ó¡£¥³¥á¥ó¥È¹Ô¤¬ ' \' ¤Ç½ª¤ï¤Ã¤Æ ¤¤¤ë¾ì¹ç¡¢¼¡¤Î¹Ô¤â¥³¥á¥ó¥È¤Î°ìÉô¤È¤·¤Æ°·¤ï¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ë¥³¥á¥ó¥Èʸ»ú¤Î»ØÄê¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set datafile commentschars (112.23.6)¡£

11 ºÂɸ·Ï (Coordinates)

¥³¥Þ¥ó¥É set arrow, set key, set label, set object ¤Ï¥°¥é¥Õ¾å ¤ÎǤ°Õ¤Î°ÌÃÖ¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£¤½¤Î°ÌÃ֤ϰʲ¼¤Î½ñ¼°¤Ç»ØÄꤷ¤Þ¤¹:


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

³ÆºÂɸ·Ï»ØÄê <system> ¤Ë¤Ï¡¢first, second, polar, graph, screen, character ¤Î¤¤¤º¤ì¤«¤¬Æþ¤ê¤Þ¤¹¡£

first ¤Ïº¸¤È²¼¤Î¼´¤ÇÄêµÁ¤µ¤ì¤ë x,y (3D ¤Î¾ì¹ç¤Ï z ¤â) ¤ÎºÂɸ·Ï¤ò»ÈÍÑ ¤·¤Þ¤¹¡£second ¤Ï x2, y2 ¼´ (¾å¤È±¦¤Î¼´) ¤ò»ÈÍѤ·¤Þ¤¹¡£graph ¤Ï¥° ¥é¥ÕÉÁ²èÎΰèÆâ¤ÎÁêÂÐŪ°ÌÃÖ¤ò»ØÄꤷ¡¢º¸²¼¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 (splot ¤Î ¾ì¹ç¤Ï¥°¥é¥ÕÉÁ²èÎΰèÆâ¤Îº¸²¼¤¬ 0,0,0 ¤Ç¡¢ÅÚÂæ¤Î°ÌÃÖ¤ÏÉé¤Î z ¤ÎÃͤò»ÈÍÑ ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set xyplane (112.124)) ¤È¤Ê¤ê¤Þ¤¹¡£screen ¤Ïɽ¼¨ÈÏ°ÏÆâ (ÈÏ °ÏÁ´ÂΤǤ¢¤ê¡¢set size ¤ÇÁªÂò¤µ¤ì¤ë°ìÉôʬ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó) ¤ò»ØÄꤷ¡¢ º¸²¼¤¬ 0,0 ¤Ç ±¦¾å¤¬ 1,1 ¤È¤Ê¤ê¤Þ¤¹¡£character ºÂɸ¤Ï¼ç¤Ë¤º¤ì¤ò»ØÄê ¤¹¤ë¤Î¤Ë»ÈÍѤ·¡¢ÀäÂÐŪ¤Ê°ÌÃÖ¤ò¼¨¤¹¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£character ¤Î¿å Ê¿¡¢¿âľ¥µ¥¤¥º¤Ï¡¢¸½ºß»ÈÍѤ·¤Æ¤¤¤ë¥Õ¥©¥ó¥È¤Ë°Í¸¤·¤Þ¤¹¡£

polar ¤Ï¡¢ºÇ½é¤Î 2 ¤Ä¤ÎÃͤò¡¢x, y ¤Ç¤Ï¤Ê¤¯¡¢³Ñ theta ¤ÈȾ·Â r ¤Ç¤¢¤ë ¤È²ò¼á¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Î㤨¤Ð 2 ¼¡¸µ¤Î¶ËºÂɸ¡¢¤¢¤ë¤¤¤Ï 3 ¼¡¸µ±ßÃìºÂɸ¤Ç ¤Î¥°¥é¥Õ¤Ë¥é¥Ù¥ë¤òÇÛÃÖ¤¹¤ë¤Î¤ËÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£

x ¤ÎºÂɸ·Ï¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï first ¤¬»È¤ï¤ì¤Þ¤¹¡£y ¤ÎºÂɸ·Ï¤¬ »ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï x ¤ËÂФ¹¤ëºÂɸ·Ï¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£

Í¿¤¨¤ëºÂɸ¤¬ÀäÂÐŪ¤Ê°ÌÃ֤ǤϤʤ¯¤ÆÁêÂÐŪ¤ÊÃͤǤ¢¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹ (Î㤨 ¤Ð set arrow ... rto ¤Î 2 ÈÖÌܤοôÃÍ)¡£¤½¤Î¤Û¤È¤ó¤É¤¬¡¢Í¿¤¨¤é¤ì¤¿ ¿ôÃͤòºÇ½é¤Î°ÌÃÖ¤ËÂФ¹¤ëº¹¤È¤·¤Æ»È¤¤¤Þ¤¹¡£Í¿¤¨¤é¤ì¤¿ºÂɸ¤¬Âпô¼´Æâ¤Ë¤¢ ¤ë¾ì¹ç¤Ï¡¢¤½¤ÎÁêÂÐŪ¤ÊÃͤÏÇÜΨ¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð


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

¤Ï¡¢x ¼´¤¬Âпô¼´¤Ç y ¼´¤¬Àþ·Á¤Î¼´¤Ê¤Î¤Ç¡¢100,5 ¤Î°ÌÃÖ¤«¤é 1000,7 ¤Î°Ì Ã֤ؤÎÌð°õ¤ò½ñ¤¯¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

°ì¤Ä (¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å) ¤Î¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¾ì¹ç¡¢timefmt ¤Î½ñ¼°Ê¸»úÎó ¤Ë½¾¤Ã¤Æ¡¢°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿»þ´Öʸ»úÎó¤ÇŬÀڤʺÂɸ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: set xdata (112.118), set timefmt (112.96)¡£¤Þ¤¿¡¢gnuplot ¤ÏÀ°¿ôɽµ­¤â ǧ¤á¤Æ¤¤¤Æ¡¢¤½¤Î¾ì¹ç¤½¤ÎÀ°¿ô¤Ï 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤È²ò¼á¤µ¤ì¤Þ ¤¹¡£

12 ʸ»úÎó¥Ç¡¼¥¿ (Datastrings)

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (¶õÇò¤ä¥¿¥Ö) ¤ò´Þ¤Þ¤Ê¤¤Ç¤°Õ¤Î°õ»ú ²Äǽ¤Êʸ»úÎ󡢤¢¤ë¤¤¤Ï 2 ½Å°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ç¤°Õ¤Îʸ»úÎó (¥Û¥ï¥¤¥È¥¹¥Ú ¡¼¥¹¤¬´Þ¤Þ¤ì¤Æ¤âÎɤ¤)¡¢¤Î¤¤¤º¤ì¤«¤Î·Á¤«¤é¤Ê¤ëʸ»úÎó¥Ç¡¼¥¿¤ò»ý¤¿¤»¤ë¤³ ¤È¤â²Äǽ¤Ç¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¼¡¤Î¤è¤¦¤Ê¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï 4 ¤Ä¤ÎÎó¤ò´Þ¤ß¡¢3 ÎóÌܤ¬¥Æ¥­¥¹¥ÈÉôʬ¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹:


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

¥Æ¥­¥¹¥ÈÉôʬ¤Ï 2 ¼¡¸µ¤ä 3 ¼¡¸µÉÁ²èÆâ¤ÇÎ㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë»ÈÍѤµ¤ì¤Þ¤¹:


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

¥Æ¥­¥¹¥ÈÉôʬ¤ÎÎó¥Ç¡¼¥¿¤Ï 1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤ÎÉÁ²è¼´¤ÎÌÜÀ¹¤ê¤Î¥é¥Ù¥ë¤È¤· ¤Æ»ÈÍѤǤ­¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢ÆþÎϥǡ¼¥¿¤Î 3 ÎóÌÜ¤È 4 ÎóÌܤò (X,Y) ºÂɸ¤È ¤·¤Æ¼è¤ê½Ð¤·¡¢¤½¤ì¤é¤ÎÅÀ¤ÎÎó¤ò·ë¤ÖÀþʬ¤òÉÁ²è¤·¤Þ¤¹¡£¤·¤«¤·¤³¤Î¾ì¹ç gnuplot ¤Ï¡¢x ¼´¤Ë±è¤Ã¤Æɸ½àŪ¤Ë´Ö¤Î¶õ¤¤¤¿¿ô»ú¥é¥Ù¥ë¤Î¤Ä¤¤¤¿ÌÜÀ¹¤ê¹ï¤ß ¤ò¤Ä¤±¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Î 1 ¹ÔÌܤΠX ºÂɸ¤Î°ÌÃ֤ˡ¢ÌÜÀ¹ ¤ê¹ï¤ß¤Èʸ»úÎó¤ò x ¼´¤Ë±è¤Ã¤Æ¤Ä¤±¤Æ¹Ô¤­¤Þ¤¹¡£


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

ÆþÎϥǡ¼¥¿¤ÎÎó¤ÎºÇ½é¤Î¥¨¥ó¥È¥ê (¤¹¤Ê¤ï¤ÁÎó¤Î¸«½Ð¤·) ¤ò¥Æ¥­¥¹¥ÈÉôʬ¤È²ò ¼á¤¹¤ë¤â¤¦°ì¤Ä¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¡¢¤½¤ì¤Ï¥Æ¥­¥¹¥ÈÉôʬ¤ò¡¢¤½¤ÎÉÁ²è¤·¤¿Îó ¤Î¥Ç¡¼¥¿¤ÎËÞÎã (key) ¤Î¥¿¥¤¥È¥ëÉôʬ¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢ÀèƬ¤Î ¹Ô¤Î 2 ÎóÌܤÎÉôʬ¤òËÞÎã¥Ü¥Ã¥¯¥¹Æâ¤Î¥¿¥¤¥È¥ë¤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤ·¡¢¤½¤Î ¸å¤ÎÎó¤Î 2,4 ÎóÌܤÏÍ׵ᤵ¤ì¤¿¶ÊÀþ¤òÉÁ²è¤¹¤ë¤Î¤Ë½èÍý¤µ¤ì¤Þ¤¹:


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

Ê̤ÎÎã:


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

¤³¤ÎÎó¤ÎÀèƬ¤ò»ÈÍѤ¹¤ëÊýË¡¤Ï¡¢set datafile columnheaders ¤« set key autotitle columnhead ¤Ç¼«Æ°²½¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: labels (54), using xticlabels (99.3.11.6), plot title (99.9), using (99.3.11), key autotitle (112.39.4)¡£

13 ³Èĥʸ»úÎó½èÍý¥â¡¼¥É (Enhanced text mode)

¿¤¯¤Î½ÐÎÏ·Á¼°¤¬¡¢³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤ò¥µ¥Ý¡¼¥È ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢Ê¸»úÎó¤ËÄɲäνñ¼°¾ðÊó¤òËä¤á¤³¤ß¤Þ¤¹¡£Î㤨¤Ð "x^2" ¤Ï x ¤Î¼«¾è¤ò¡¢Ä̾ï²æ¡¹¤¬¸«¤ë¾åÉÕ¤­¤Î 2 ¤¬¤Ä¤¤¤¿·Á¤Ç½ñ¤­½Ð¤·¤Þ¤¹¡£¤³¤Î ¥â¡¼¥É¤Ï¡¢½ÐÎÏ·Á¼°¤ÎÀßÄê»þ¤Ë¥Ç¥Õ¥©¥ë¥È¤È¤·¤ÆÁªÂò¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤Î¸å¤Ç set termoption [no]enhanced ¤ò»È¤Ã¤Æ¤½¤Îµ¡Ç½¤òÍ­¸ú/̵¸ú¤Ë¤â¤Ç¤­¤Þ¤¹ ¤·¡¢set label "x_2" noenhanced ¤Î¤è¤¦¤Ë¸ÄÊ̤Îʸ»úÎó¤ËÂФ·¤Æ̵¸ú¤Ë¤¹ ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

Ãí°Õ: TeX ¥Ù¡¼¥¹¤Î½ÐÎÏ·Á¼° (Î㤨¤Ð cairolatex, pict2e, pslatex, tikz) ¤Î½ÐÎϤǤϡ¢¤¹¤Ù¤Æ¤Î¥Æ¥­¥¹¥Èʸ»úÎó¤Ë¤Ï¡¢¤³¤ì¤ÎÂå¤ï¤ê¤Ë TeX/LaTeX ¤Î½ñ ¼°¤ò»ÈÍѤ¹¤Ù¤­¤Ç¤¹¡£°Ê²¼»²¾È: latex ([*])¡£

³Èĥʸ»úÎóÀ©¸æµ­¹æ
À©¸æµ­¹æ Îã ·ë²Ì ÀâÌÀ
^ a^x ax ¾åÉÕ¤­Ê¸»ú
_ a_x ax ²¼ÉÕ¤­Ê¸»ú
@ a@^b_{cd} abcd ¶õ¥Ü¥Ã¥¯¥¹ (Éý¤¬¤Ê¤¤)
& d&{space}b d b »ØÄꤷ¤¿Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òÁÞÆþ
~ ~a{.8-} $\tilde{{a}}$ 'a' ¤Î¾å¤Ë '-' ¤ò¡¢¸½ºß¤Î¥Õ¥©¥ó¥È¥µ
   ¥¤¥º¤Î .8 ÇÜ»ý¤Á¾å¤²¤¿°ÌÃ֤˽Ťͽñ¤­
{/Times abc} abc Times ¥Õ¥©¥ó¥È¡¢º£¤Î¥µ¥¤¥º¤Ç abc ¤ò½ÐÎÏ
{/Times*2 abc} abc Times ¥Õ¥©¥ó¥È¡¢º£¤ÎÇܤΥµ¥¤¥º¤Ç abc
{/Times:Italic abc} abc Times ¥Õ¥©¥ó¥È¡¢¥¤¥¿¥ê¥Ã¥¯ÂÎ¤Ç abc
{/Arial:Bold=20 abc} abc Arial ¥Õ¥©¥ó¥È¡¢ÂÀ»ú¡¢¥µ¥¤¥º 20 ¤Ç abc
\U+ \U+221E $\infty$ Unicode ¥³¡¼¥É¥Ý¥¤¥ó¥È U+221E ̵¸ÂÂç

½ñ¼°À©¸æʸ»ú¤Ï¡¢¤½¤ì¤Ë³¤¯ 1 ʸ»ú¡¢¤Þ¤¿¤ÏÃ楫¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿¤â¤Î¤ËŬÍÑ ¤µ¤ì¤Þ¤¹¡£Ã楫¥Ã¥³Æâ¤Ë¤Ï¡¢Î㤨¤Ð 2^{10} ¤Î¤è¤¦¤ÊÄɲäνñ¼°Ê¸»úÎó¤Î¤Ê¤¤ ʸ»úÎ󤫡¢¤Þ¤¿¤Ï¥Õ¥©¥ó¥È¤Î°À­¤òÊѹ¹¤¹¤ëÄɲÃÀ©¸æʸ»úÎó¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£¥Õ¥©¥ó¥È»ØÄê¤Ï¡¢³«¤­Ã楫¥Ã¥³ '{' ¤Îľ¸å¤Ë³¤¯ '/' ¤Î¤¹¤°¼¡¤Ë½ñ ¤«¤Ê¤±¤ì¤Ð¡Ö¤¤¤±¤Þ¤»¤ó¡×¡£¥Õ¥©¥ó¥È̾¤Ë¥¹¥Ú¡¼¥¹¤¬´Þ¤Þ¤ì¤ë¾ì¹ç¡¢¤½¤ì¤òñ °ì¡¢¤Þ¤¿¤ÏÆó½Å°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£

Îã: ºÇ½é¤ÎÎã¤Ï¤½¤ÎÃ楫¥Ã¥³¤ÎÆþ¤ì»Ò¤ò¼¨¤·¤Æ¤¤¤Æ¡¢¥Ü¡¼¥ë¥ÉÂΤΠA ¤Ë¥¤¥¿ ¥ê¥Ã¥¯ÂΤβ¼ÉÕ¤­¤Îź»ú i ¤¬¤Ä¤¤¤¿¤â¤Î¤¬¡¢¤¤¤º¤ì¤â¸½ºß¤Î¥Õ¥©¥ó¥È¤ÇÉÁ¤« ¤ì¤Þ¤¹¡£¤³¤ÎÎã¤Î :Normal ¤ò¼è¤ë¤È¡¢²¼ÉÕ¤­¤Îź»ú¤Ï¥Ü¡¼¥ë¥ÉÂΤǤ«¤Ä¥¤¥¿ ¥ê¥Ã¥¯ÂΤˤʤê¤Þ¤¹¡£2 ¤ÄÌܤÎÎã¤ÏƱ¤¸½ñ¼°À©¸æ¤ò 20 ¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Î "Times New Roman" ¥Õ¥©¥ó¥È¤ËŬÍѤ·¤¿¤â¤Î¤Ç¤¹¡£


    {/:Bold A_{/:Normal{/:Italic i}}}
    {/"Times New Roman":Bold=20 A_{/:Normal{/:Italic i}}}

¶õ¥Ü¥Ã¥¯¥¹ (phantom box) ¤Ï a@^b_c ¤Î¾åÉÕ¤­Ê¸»ú¤È²¼ÉÕ¤­Ê¸»ú¤ò·¤¨¤ë¤È ¤­¤ËÍ­ÍѤǤ¹¤¬¡¢Ê¸»ú¤Ë¥À¥¤¥¢¥¯¥ê¥Æ¥£¥«¥ë¥Þ¡¼¥¯¤ò½Å¤Í¤ë¾ì¹ç¤Ë¤Ï¤¦¤Þ¤¯Æ¯ ¤­¤Þ¤»¤ó¡£¤½¤ÎÌÜŪ¤Î¤¿¤á¤Ë¤Ï¡¢¥¢¥¯¥»¥ó¥È¤ä¤½¤Î¾¤Î¥À¥¤¥¢¥¯¥ê¥Æ¥£¥«¥ë¥Þ ¡¼¥¯¤Î¤¢¤ëʸ»ú¤ò»ý¤Ä¥¨¥ó¥³¡¼¥É (Î㤨¤Ð utf8) ¤ò»ÈÍѤ¹¤ëÊý¤¬¤¤¤¤¤Ç¤·¤ç ¤¦¡£°Ê²¼»²¾È: set encoding (112.27)¡£¤½¤Î¥Ü¥Ã¥¯¥¹¤Ï¥¹¥Ú¡¼¥·¥ó¥°¤¬¹Ô¤Ê¤ï¤ì¤Ê¤¤ ¤Î¤Ç¡¢¥Ü¥Ã¥¯¥¹Æâ (¤Ä¤Þ¤ê @ ¤Î¸å¤í) ¤Î¾åÉÕ¤­Ê¸»ú¤ä²¼ÉÕ¤­Ê¸»ú¤òû¤¯½ÐÎÏ ¤¹¤ë¤Î¤ËŬ¤·¤Æ¤¤¤Þ¤¹¡£

¤¢¤ëʸ»úÎó¤ÈƱ¤¸Ä¹¤µ¤Î¥¹¥Ú¡¼¥¹¤òʸ»ú '&' ¤ò»È¤¦¤³¤È¤ÇÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­ ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢


       'abc&{def}ghi'

¤Ï°Ê²¼¤òÀ¸À®¤·¤Þ¤¹ (abc ¤È ghi ¤Î´Ö¤Ï 3 ʸ»úʬ¤Î¶õÇò):


       'abc   ghi'

ʸ»ú '~ ' ¤Ï¡¢¼¡¤Îʸ»ú¡¢¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ë¡¢¤½¤ì¤Ë³¤¯Ê¸»ú ¤Þ¤¿¤Ï¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ò½Å¤Í½ñ¤­¤·¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤ÏºÇ½é¤Îʸ»ú ¤Ë¤¢¤ï¤»¤Æ¿åÊ¿Êý¸þ¤Ë¥»¥ó¥¿¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ '~ a/' ¤Ï 'a' ¤ò´Ó¤¯¤è ¤¦¤Ê¥¹¥é¥Ã¥·¥å¤¬ÆÀ¤é¤ì¤Þ¤¹¡£2 ÈÖÌܤÎʸ»ú¤Ï¡¢¤½¤ÎÁ°¤Ë¿ô»ú¤òÃÖ¤¯¤³¤È¤Ç¿â ľÊý¸þ¤Ë°ÜÆ°¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤Î¿ô»ú¤Ï¸½ºß¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ËÂФ¹ ¤ë³ä¹ç¤ò°ÕÌ£¤·¡¢¤½¤ì¤Ë½¾¤Ã¤Æʸ»ú¤¬¾å¤¬¤Ã¤¿¤ê²¼¤¬¤Ã¤¿¤ê¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç ¿ô»ú¤Èʸ»úÎó¤Ï 1 ʸ»ú¤è¤êŤ¯¤Ê¤ë¤Î¤Ç¥«¥Ã¥³¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ¤¹¡£½Å¤Í ½ñ¤­¤µ¤ì¤ëʸ»úÎ󤬿ô»ú¤«¤é»Ï¤Þ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¿âľ¤Ë¤º¤é¤¹ÃͤÈʸ»úÎó¤È ¤Î´Ö¤Ë¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤ ('~ {abc}{.5 000}')¡£¤½¤ì°Ê³°¤Ï¥¹¥Ú¡¼¥¹ ¤ÏÉÔÍפǤ¹ ('~ {abc}{.5 — }')¡£°ìÊý¡¢¤¢¤ë¤¤¤ÏξÊý¤Î¥Õ¥©¥ó¥È¤òÊѹ¹¤¹¤ë¤³ ¤È¤â¤Ç¤­¤Þ¤¹ ('~ a{.5 /*.2 o}'; 'a' ¤½¤Î 1/5 ¤ÎÂ礭¤µ¤Î 'o'¡¢¤³¤Î¾ì¹ç¿ô »ú¤È¥¹¥é¥Ã¥·¥å¤Î´Ö¤Î¥¹¥Ú¡¼¥¹¤ÏɬÍפǤ¹) ¤¬¡¢¤½¤Îʸ»úÎ󤬻Ϥޤ俸å¤ÇÊÑ ¹¹¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤½¤ì¤¾¤ì¤Îʸ»úÎóÆâ¤Ç¡¢Â¾¤ÎÆüì¤Ê½ñ¼°¤ò»È¤¦¤³¤È ¤â¤Ç¤­¤Þ¤»¤ó¡£À©¸æʸ»ú¤Ï¥¨¥¹¥±¡¼¥×¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Îã: ¥µ¡¼¥«¥à¥Õ¥ì ¥Ã¥¯¥¹ÉÕ¤­¤Î a ( \U+00E2) ¤ò°õ»ú¤¹¤ë¤Ë¤Ï '~ a{.8 \^}' ¤È¤·¤Þ¤¹¡£

Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ïñ°ì°úÍÑÉäÆâ¤Îʸ»úÎó¤È¤Ï°Û¤Ê¤Ã¤Æ²ò¼á¤µ¤ì¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¼ç¤Ê°ã¤¤¤Ï¡¢Æó½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ç¤Ï¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ¤Ï 2 ¤Ä½Å¤Í¤ëɬÍפ¬¤¢¤ë¤³¤È¤Ç¤¹¡£

gnuplot ¥½¡¼¥¹ÇÛÉÛʪÆâ¤Î /docs/psdoc ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë "ps_guide.ps" ¤Ë¡¢³ÈÄ¥¤µ¤ì¤¿½ñ¼°¤Ë´Ø¤¹¤ëÎ㤬ºÜ¤Ã¤Æ¤¤¤Þ¤¹¡£Æ±ÍͤΤâ¤Î¤¬ ¥Ç¥â enhanced_utf8.dem

¤Ë¤â¤¢¤ê¤Þ¤¹¡£

13.1 ¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹ (escape sequences)

¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åʸ»ú \ ¤Ï¡¢1 ¥Ð¥¤¥Èʸ»ú¥³¡¼¥É¡¢¤Þ¤¿¤Ï Unicode ¥³¡¼¥É¥Ý ¥¤¥ó¥È¤ò¥¨¥¹¥±¡¼¥×¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£

\ooo ¤Î·Á¼° (ooo ¤Ï 8 ¿ÊÃͤΠ3 ʸ»ú) ¤Ï¡¢ÆÃÄê¤Î¥Õ¥©¥ó¥È¥¨¥ó¥³¡¼¥ÉÆâ¤Î ʸ»ú¥³¡¼¥ÉÈÖ¹æ¤ò»Ø¤·¼¨¤¹¤Î¤Ë»È¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢Adobe Symbol ¥Õ¥©¥ó¥È¤Ï¡¢ ̵¸ÂÂç¤Îµ­¹æ¤ò 8 ¿Ê 245 È֤Ǽ¨¤¹¤è¤¦¤Ê¥«¥¹¥¿¥à¥¨¥ó¥³¡¼¥É¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢³Èĥʸ»úÎó¤È¤·¤Æ¥Õ¥©¥ó¥È̾¤Èʸ»ú¥³¡¼¥É¤ò "{/Symbol \245}" ¤Î¤è ¤¦¤Ë»ØÄꤹ¤ë¤³¤È¤ÇËä¤á¹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë PostScript ½ÐÎÏ·Á ¼°¤ÇÍ­ÍѤǤ¹¤¬¡¢¤³¤ì¤Ï UTF-8 ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Î½èÍý¤ÏÍưפˤϹԤ¨¤Þ¤» ¤ó¡£

\U+hhhh ¤Î·Á¼°¤Î Unicode ¤Î¥³¡¼¥É¥Ý¥¤¥ó¥È¤Çʸ»ú¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ ¤¹¡£¤³¤³¤Ç hhhh ¤Ï 16 ¿ÊÃͤΠ4 ¤Þ¤¿¤Ï 5 ʸ»ú¤Ç¤¹¡£Î㤨¤Ð¡¢Ìµ¸ÂÂç¤Îµ­¹æ ¡ç¤Î¥³¡¼¥É¥Ý¥¤¥ó¥È¤Ï \U+221E ¤Ç¤¹¡£¤³¤ì¤Ï¡¢É¬Íפʤé¤Ð½ÐÎÏ»þ¤Ë UTF-8 ¤Î ¥Ð¥¤¥ÈÎó¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£UTF-8 ´Ä¶­¤Ç¤Ï¡¢°õ»ú²Äǽ¤ÊÆüìʸ»ú¤Ï¾¤Îʸ»ú¤È ƱÍͤËʸ»úÎóÆâ¤Ç½èÍý¤Ç¤­¤ë¤Î¤Ç¡¢¤³¤Î»ÅÁȤߤÏɬÍפ¢¤ê¤Þ¤»¤ó¡£¤·¤«¤·¤³¤ì ¤Ï·ë¹çʸ»ú¤äȯ²»¶èÊÌÉä¹æ (Î㤨¤Ð¥Ù¥¯¥È¥ë¤ò°ÕÌ£¤¹¤ë¤¿¤á¤Îʸ»ú¤Î¾å¤ÎÌð°õ ¤Ê¤É) ¤Ë¤ÏÍ­ÍѤǤ¹¡£°Ê²¼»²¾È: set encoding (112.27), utf8 (112.27)¡£¤Þ¤¿¤Ï ¥ª¥ó¥é¥¤¥ó¥æ¥Ë¥³¡¼¥É¥Ç¥â

¤ò»²¾È¡£

14 ´Ä¶­ÊÑ¿ô (Environment)

gnuplot ¤Ï¿¤¯¤Î¥·¥§¥ë´Ä¶­ÊÑ¿ô¤òǧ¼±¤·¤Þ¤¹¡£É¬¿Ü¤Î¤â¤Î¤Ï¤¢¤ê¤Þ¤»¤ó¡£

GNUTERM ¤Ï¡¢¤½¤ì¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢µ¯Æ°»þ¤Ë "set term" ¤ËÅϤµ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥·¥¹¥Æ¥à¡¢¤Þ¤¿¤Ï¸Ä¿ÍŪ¤Ê½é´ü²½¥Õ¥¡¥¤¥ë¤Ë¤è¤ë»ØÄê (°Ê²¼»²¾È: startup (27))¡£¤ä¡¢¤â¤Á¤í¤ó¤½¤Î¸å¤ÎÌÀ¼¨Åª¤Ê set term ¥³¥Þ¥ó¥É¤Ë¤è¤ë»ØÄê ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ terminal ¥ª¥×¥·¥ç¥ó¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Îã:


    bash$ export GNUTERM="postscript eps color size 5in, 3in"

GNUHELP ¤Ï¡¢¤½¤ì¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¥Ø¥ë¥×¥Õ¥¡¥¤¥ë (gnuplot.gih) ¤Î¥Ñ ¥¹Ì¾¤ËÀßÄꤷ¤Þ¤¹¡£

µ¯Æ°»þ¤Î½é´ü²½¤Ë¤Ï¡¢ÀßÄê¥Õ¥¡¥¤¥ë $HOME/.gnuplot ¤È $XDG_CONFIG_HOME/gnuplot/gnuplotrc ¤òõ¤·¤Þ¤¹¡£MS-DOS, Windows, OS/2 ¤Ç¤Ï GNUPLOT ¤« USERPROFILE ¤Ç»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï°Ê²¼»²¾È: startup (27)¡£

Unix ¤Ë¤ª¤¤¤Æ¤Ï¡¢PAGER ¤¬¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤Î½ÐÎÏÍѤΥե£¥ë¥¿¤È¤·¤Æ»È¤ï ¤ì¤Þ¤¹¡£

Unix ¤Ç¤Ï¡¢SHELL ¤¬ shell ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë»È¤ï¤ì¤Þ¤¹¡£MS-DOS, OS/2 ¤Ç ¤Ï COMSPEC ¤¬»È¤ï¤ì¤Þ¤¹¡£

FIT_SCRIPT ¤Ï¡¢Åö¤Æ¤Ï¤á (fit) ¤¬ÃæÃǤµ¤ì¤¿¤È¤­¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³ ¥Þ¥ó¥É¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: fit (88)¡£FIT_LOG ¤ÏÅö¤Æ¤Ï¤á¤Ë¤è¤ë¥í ¥°¥Õ¥¡¥¤¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë̾¤Î»ØÄê¤Ë»È¤ï¤ì¤Þ¤¹¡£

GNUPLOT_LIB ¤Ï¡¢¥Ç¡¼¥¿¤ä¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤òÄɲÃÄêµÁ¤¹ ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ÎÊÑ¿ô¤Ï¡¢°ì¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤«¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ç¥£¥ì ¥¯¥È¥ê̾¤ò½ñ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¶èÀÚ¤ê¤Ï¥×¥é¥Ã¥È¥Û¡¼¥àËè ¤Ë°ã¤¤¤Þ¤¹¡£Î㤨¤Ð Unix ¤Ç¤Ï ':' ¤Ç¡¢MS-DOS, Windows, OS/2 ¤Ç¤Ï ';' ¤Ç ¤¹¡£GNUPLOT_LIB ¤ÎÃͤÏÊÑ¿ô loadpath ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï save ¤ä save set ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£

½ÐÎϥɥ饤¥Ð¤ÎÃæ¤Ë¤Ï gd ¥é¥¤¥Ö¥é¥ê·Ðͳ¤Ç TrueType ¥Õ¥©¥ó¥È¤ò°·¤¨¤ë¤â¤Î ¤â¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹ (°Ê²¼»²¾È: fonts (16))¡£¤³¤ì¤é¤Î½ÐÎÏ·Á¼°¤Ç¤Ï¡¢ GDFONTPATH ¤ä GNUPLOT_DEFAULT_GDFONT ¤¬¥Õ¥©¥ó¥È¤ÎÁªÂò¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

postscript ½ÐÎϥɥ饤¥Ð¤Ï¼«Ê¬¤Ç»ý¤Ã¤Æ¤¤¤ë¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¤ò»È¤¤¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï¡¢´Ä¶­ÊÑ¿ô GNUPLOT_FONTPATH ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

PostScript ¥É¥é¥¤¥Ð¤Ï¡¢³°Éô (ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤) ÄêµÁ¥Õ¥¡¥¤¥ë¤òõ¤¹¤¿ ¤á¤Ë´Ä¶­ÊÑ¿ô GNUPLOT_PS_DIR ¤òÍøÍѤ·¤Þ¤¹¡£¥¤¥ó¥¹¥È¡¼¥ë»þ¤Îºî¶È¤Ë¤è¤ê¡¢ gnuplot ¤Ë¤Ï¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥© ¥ë¥È¤Î¥Ñ¥¹¤¬Ëä¤á¹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤Ç¥Ç¥Õ ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë¤ÎÂå¤ï¤ê¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿ prologue ¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ¹¤ë ¤Î¤ËÍøÍѤǤ­¤Þ¤¹¡£°Ê²¼»²¾È: postscript prologue (127.27.3)¡£

15 ¼° (Expressions)

´ðËÜŪ¤Ë¤Ï C, FORTRAN, Pascal, BASIC ¤Ë¤ª¤¤¤ÆÍøÍѲÄǽ¤Ê¿ô³Øɽ¸½¤ò»ÈÍÑ ¤Ç¤­¤Þ¤¹¡£ ±é»»»Ò¤ÎÍ¥Àè½ç°Ì¤Ï C ¸À¸ì¤Î»ÅÍͤ˽¾¤¤¤Þ¤¹¡£¿ô¼°Ãæ¤Î¶õÇòʸ»ú ¤È¥¿¥Öʸ»ú¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£

gnuplot ¤Ï "¼Â¿ô" ¤È "À°¿ô" ±é»»¤ò FORTRAN ¤ä C ¤Î¤è¤¦¤Ë°·¤¦¤È¤¤¤¦¤³¤È ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£"1", "-10" ¤Ê¤É¤ÏÀ°¿ô¤È¸«¤Ê¤µ¤ì¡¢"1.0", "-10.0", "1e1", 3.5e-1 ¤Ê¤É¤Ï¼Â¿ô¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤é 2 ¤Ä¤Î¤â¤Ã¤È¤â½ÅÍפʰ㠤¤¤Ï³ä»»¤Ç¤¹¡£À°¿ô¤Î³ä»»¤ÏÀÚ¤ê¼Î¤Æ¤é¤ì¤Þ¤¹: 5/2 = 2¡£¼Â¿ô¤Ï¤½¤¦¤Ç¤Ï¤¢ ¤ê¤Þ¤»¤ó: 5.0/2.0 = 2.5¡£¤½¤ì¤é¤¬º®ºß¤·¤¿¼°¤Î¾ì¹ç¡¢·×»»¤ÎÁ°¤ËÀ°¿ô¤Ï¼Â ¿ô¤Ë "³ÈÄ¥" ¤µ¤ì¤Þ¤¹: 5/2e0 = 2.5¡£Éé¤ÎÀ°¿ô¤òÀµ¤ÎÀ°¿ô¤Ç³ä¤ë¾ì¹ç¡¢¤½¤Î Ãͤϥ³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£"print -5/2" ¤È¤·¤Æ¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ ¥à¤¬¾ï¤ËÀÚ¤ê¼Î¤Æ¤ë (-5/2 ¤Ç -3 ¤Ë¤Ê¤ë) ¤Î¤«¡¢¤Þ¤¿¤Ï 0 ¤Î¶á¤¯¤Ë´Ý¤á¤ë (-5/2 ¤Ç -2 ¤Ë¤Ê¤ë) ¤Î¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£

¿ô¼° "1/0" ¤Ï "̤ÄêµÁÃÍ (undefined)" ¥Õ¥é¥°¤òÀ¸À®¤·¡¢¤½¤ì¤Ë¤è¤ê¤½¤ÎÅÀ ¤ò̵»ë¤·¤Þ¤¹¡£¤¢¤ë¤¤¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ NaN ¤ò»È¤Ã¤Æ¤âƱ¤¸ ¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Îã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using (99.3.11)¡£

gnuplot ¤Ïʸ»úÎó¤ËÂФ¹¤ëñ½ã¤Ê±é»»¡¢¤ª¤è¤Óʸ»úÎóÊÑ¿ô¤âÍøÍѤǤ­¤Þ¤¹¡£Îã ¤¨¤Ð¼° ("A" . "B" eq "AB") ¤Ï¿¿¤Èɾ²Á¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ïʸ»úÎó¤Î·ë¹ç±é »»»Ò¤Èʸ»úÎó¤ÎÅù¹æ±é»»»Ò¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£

¿ô¤È¤·¤Æ¤ÎÃͤò´Þ¤àʸ»úÎó¤Ï¡¢¤½¤ì¤¬¿ô¼°¤ÇÍøÍѤµ¤ì¤¿¾ì¹ç¤Ï¡¢Âбþ¤¹¤ëÀ°¿ô ¤ä¼Â¿ô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢("3" + "4" == 7) ¤ä (6.78 == "6.78") ¤Ï ¤É¤Á¤é¤â¿¿¤Ë¤Ê¤ê¤Þ¤¹¡£À°¿ô¤Ï¡¢¤½¤ì¤¬Ê¸»úÎó·ë¹ç±é»»»Ò¤Ç»È¤ï¤ì¤¿¾ì¹ç¤Ïʸ »úÎó¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¤¬¡¢¼Â¿ô¤äÊ£ÁÇ¿ô¤Ï¥À¥á¤Ç¤¹¡£Åµ·¿Åª¤ÊÎã¤Ï¡¢¥Õ¥¡¥¤¥ë̾ ¤ä¾¤Îʸ»úÎóÆâ¤ËÀ°¿ô¤ò»È¤¦¾ì¹ç¤Ç¤·¤ç¤¦: Î㤨¤Ð ("file" . 4 eq "file4") ¤Ï¿¿¤Ç¤¹¡£

¸åÃÖ»ØÄꤹ¤ëÈϰϵ­½Ò»Ò [beg:end] ¤Ë¤è¤Ã¤Æ¡¢Éôʬʸ»úÎó¤ò»ØÄꤹ¤ë¤³¤È¤¬ ¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢"ABCDEF"[3:4] == "CD" ¤Ç¡¢"ABCDEF"[4:*] == "DEF" ¤Ç ¤¹¡£½ñ¼° "string"[beg:end] ¤Ï¡¢Ê¸»úÎóÃͤÎÁȤ߹þ¤ß´Ø¿ô substr("strings",beg,end) ¤ò¸Æ¤Ö¤³¤È¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢´Ø¿ô¸Æ¤Ó½Ð¤·¤Ç¤Ï beg, end ¤Ï¾Êά¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

15.1 Ê£ÁÇ¿ôÃÍ (Complex values)

·×»»¤Î±é»»»Ò¤È¤Û¤È¤ó¤É¤ÎÁȤ߹þ¤ß´Ø¿ô¤ÏÊ£ÁÇ¿ô°ú¿ô¤Î»ÈÍѤò¥µ¥Ý¡¼¥È¤·¤Æ¤¤ ¤Þ¤¹¡£Ê£ÁÇÄê¿ô¤Ï¡¢{<real>,<imag>} ¤Èɽµ­¤·¡¢<real> ¤È <imag> ¤Ï¡¢¿ôÄê ¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢{0,1} ¤Ï 'i' ¤ò°ÕÌ£¤·¤Þ¤¹¡£ ¸½ºß¤Î gnuplot ¤Ï¡¢¤¢¤é¤«¤¸¤á I = {0,1} ¤òÊÑ¿ô¤È¤·¤ÆÄêµÁ¤·¤Æ¤¤¤Æ¡¢Â¾¤Î ÊÑ¿ô¤«¤éÊ£ÁÇ¿ôÃͤòºî¤ë¤Î¤Ë»È¤¨¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢x + y*I ¤Ï Àµ¤·¤¤¿ô¼°¤Ê¤Î¤Ç¤¹¤¬¡¢{x,y} ¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ Ê£ÁÇ¿ôÃÍ z ¤Î¼Â¿ôÉôʬ¤Èµõ¿ôÉôʬ¤Ï¡¢real(z), imag(z) ¤È¤·¤Æ¼è¤ê½Ð¤»¤Þ¤¹¡£ Ťµ¤Ï abs(z) ¤Ç¡¢ÊÐ³Ñ¤Ï arg(z) ¤ÇÆÀ¤é¤ì¤Þ¤¹¡£

Image figure_E0
gnuplot ¤Î 2 ¼¡¸µ¤È 3 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢¼Â¿ôÃͤò²¾Äꤷ¤Æ¤¤¤Þ¤¹¡£¤è ¤Ã¤Æ 0 ¤Ç¤Ê¤¤µõ¿ôÉôʬ¤ò»ý¤ÄÊ£ÁÇ¿ôÃÍ´Ø¿ô f(x) ¤òÉÁ²è¤¹¤ë¾ì¹ç¤Ï¡¢¼Â¿ôÉô ʬ¤äµõ¿ôÉôʬ¡¢¤¢¤ë¤¤¤ÏŤµ¤äÊгѤòÉÁ²è¤µ¤»¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ Î㤨¤ÐÊ£ÁÇ°ú¿ô¤ËÂФ¹¤ë´Ø¿ô f(z) ¤ÎÊ£ÁÇ¿ôÃͤÎŤµ¤ÈÊгѤòɽ¼¨¤µ¤»¤ë¤Ë¤Ï¡¢ Ťµ¤ò¶ÊÌ̤ι⤵¡¢ÊгѤò¿§¤Çɽ¼¨¤¹¤ë¤È¤¤¤¦¼ê¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤Î¾ì¹ç¡¢HSV ¿§¶õ´Ö¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤òÍѤ¤¤Æ¡¢0 ¤«¤é 1 ¤ÎÈϰϤΠH À®Ê¬ (¿§Áê) ¤ò arg(z) ¤¬ÊÖ¤¹ÊгѤÎÈÏ°Ï [-¦Ð:¦Ð] ¤Ë³ä¤êÅö¤Æ¡¢ÊгѤ¬ 1 ¼þ¤·¤¿ ¤é¿§¤â´¬¤­Ìá¤ë¤è¤¦¤Ë¤¹¤ë¤ÈÊØÍø¤Ç¤·¤ç¤¦¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤³¤ì¤Ï H = 0 (ÀÖ) ¤«¤é»Ï¤Þ¤ê¤Þ¤¹¤¬¡¢set palette ¤Î start ¥­¡¼¥ï¡¼¥É¤ò»È¤Ã¤Æ¤½¤Î ³«»Ï°ÌÃÖ¤òÊѹ¹¤·¡¢H ¤Î¾¤ÎÃͤò 0 ¤Ë³ä¤êÅö¤Æ¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£ °Ê²¼¤ÎÎã¤Ï¡¢H = 0.3 (ÎÐ) ¤«¤é³«»Ï¤·´¬¤­Ìá¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: set palette defined (112.67.2), arg (15.3), set angles (112.1)¡£


    set palette model HSV start 0.3 defined (0 0 1 1, 1 1 1 1)
    set cbrange [-pi:pi]
    set cbtics ("-¦Ð" -pi, "¦Ð" pi)
    set pm3d corners2color c1
    E0(z) = exp(-z)/z
    I = {0,1}
    splot '++' using 1:2:(abs(E0(x+I*y))):(arg(E0(x+I*y))) with pm3d

15.2 Äê¿ô (Constants)

À°¿ôÄê¿ô¤Ï¡¢C ¤Î strtoll() ¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤ò»È¤Ã¤Æ²ò¼á¤·¤Þ¤¹¤¬¡¢¤³ ¤ì¤Ï¡¢"0" ¤Ç»Ï¤Þ¤ëÄê¿ô¤Ï 8 ¿Ê¿ô¤È¡¢¤Þ¤¿ "0x" ¤« "0X" ¤Ç»Ï¤Þ¤ëÄê¿ô¤Ï 16 ¿Ê¿ô¤È¤ß¤Ê¤¹¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

¼Â¿ô (ÉâÆ°¾®¿ô) Äê¿ô¤Ï¡¢C ¤Î atof() ¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤ò»È¤Ã¤Æ²ò¼á¤·¤Þ ¤¹¡£

Ê£ÁÇ¿ô¤ÎÄê¿ô¤Ï {<real>,<imag>} ¤Èɽ¸½¤·¤Þ¤¹¡£¤³¤³¤Ç <real> ¤È <imag> (¼ÂÉô¡¢µõÉô) ¤Ï¿ôÃÍÄê¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢{0,1} ¤Ï 'i' ¼«¿È ¤òɽ¤·¡¢{3,2} ¤Ï 3 + 2i ¤òɽ¤·¤Þ¤¹¡£¤³¤ì¤é¤Ë¤ÏÌÀ¼¨Åª¤ËÃ楫¥Ã¥³¤ò»È¤¦É¬ Íפ¬¤¢¤ê¤Þ¤¹¡£¤³¤Î gnuplot ¤Ç¤Ï¡¢¤¢¤é¤«¤¸¤á I = {0,1} ¤òÊÑ¿ô¤È¤·¤ÆÄêµÁ ¤·¤Æ¡¢ÌÀ¼¨Åª¤Ê·Á¼°¤ÎÆþÎϤòÈò¤±¤ë¹©Éפò¤·¤Æ¤¤¤Þ¤¹¡£Î㤨¤Ð¡¢3 + 2*I ¤Ï {3,2} ¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Ïµõ¿ôÀ®Ê¬¤ËÊÑ¿ô·¸¿ô¤ò»È¤¨¤ë¤È¤³¤í¤¬Í¥°Ì¤Ç ¤¹¡£¤¹¤Ê¤ï¤Á¡¢x + y*I ¤ÏÀµ¤·¤¤¿ô¼°¤Ç¤¹¤¬¡¢{x,y} ¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤» ¤ó¡£

ʸ»úÎóÄê¿ô¤Ïñ°ì°úÍÑÉ䤫Æó½Å°úÍÑÉä¤Î¤¤¤º¤ì¤«¤Ç°Ï¤Þ¤ì¤¿Ç¤°Õ¤Îʸ»ú¤ÎÊÂ¤Ó ¤«¤é¤Ê¤ë¤â¤Î¤Ç¤¹¡£Ã±°ì°úÍÑÉä¤ÈÆó½Å°úÍÑÉä¤Î°ã¤¤¤Ï½ÅÍפǤ¹¡£°Ê²¼»²¾È: quotes (30.1)¡£

Îã:


    1 -10 0xffaabb        # À°¿ôÄê¿ô
    1.0 -10. 1e1 3.5e-1   # ¼Â¿ôÄê¿ô
    {1.2, -3.4}           # Ê£ÁÇ¿ôÄê¿ô
    "Line 1\nLine 2"      # ʸ»úÎóÄê¿ô (\n ¤Ï²þ¹Ô¤ËŸ³«¤µ¤ì¤ë)
    '123\na456'           # ʸ»úÎóÄê¿ô (\ ¤È n ¤Ï¤½¤Î¤Þ¤Þ¤Îʸ»ú)

15.3 ´Ø¿ô (Functions)

ÆäËÃí°Õ¤¬¤Ê¤±¤ì¤Ð¡¢gnuplot ¤Î¿ô³Ø´Ø¿ô¤Î°ú¿ô¤ÏÀ°¿ô¡¢¼Â¿ô¡¢Ê£ÁÇ¿ô¤ÎÃÍ ¤ò¼è¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£³Ñ¤ò°ú¿ô¤äÌá¤êÃͤȤ¹¤ë´Ø¿ô (Î㤨¤Ð sin(x)) ¤Ï¡¢ ¤½¤ÎÃͤò¥é¥¸¥¢¥ó¤È¤·¤Æ°·¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥³¥Þ¥ó¥É set angles ¤Ë¤è¤Ã¤Æ ÅÙ¤ËÊѹ¹¤Ç¤­¤Þ¤¹¡£

¿ô³Ø¥é¥¤¥Ö¥é¥ê¡¢ÁȤ߹þ¤ß´Ø¿ô
´Ø¿ô °ú¿ô   Ìá¤êÃÍ (c ¤ÏÊ£ÁÇ¿ô)
abs(x) À°¿ô¤Þ¤¿¤Ï¼Â¿ô   x ¤ÎÀäÂÐÃÍ, | x|
abs(x) Ê£ÁÇ¿ô   x ¤ÎŤµ, $\sqrt{{{\mbox{real}(x)^{2} +
\mbox{imag}(x)^{2}}}}$
acos(x)    c cos-1x (¥¢¡¼¥¯¥³¥µ¥¤¥ó)
acosh(x)    c cosh-1x (µÕÁжÊ;¸¹)
airy(x) ¼Â¿ô   ¼Â¿ô x ¤ËÂФ¹¤ë¥¨¥¢¥ê¡¼´Ø¿ô Ai(x)
arg(x) Ê£ÁÇ¿ô   x ¤ÎÊгÑ, - $\pi$ $\leq$arg(x)$\leq$ $\pi$
asin(x)    c sin-1x (¥¢¡¼¥¯¥µ¥¤¥ó)
asinh(x)    c sinh-1x (µÕÁжÊÀµ¸¹)
atan(x)    c tan-1x (¥¢¡¼¥¯¥¿¥ó¥¸¥§¥ó¥È)
atan2(y,x) À°¿ô¤Þ¤¿¤Ï¼Â¿ô   tan-1(y/x) (¥¢¡¼¥¯¥¿¥ó¥¸¥§¥ó¥È)
atanh(x)    c tanh-1x (µÕÁжÊÀµÀÜ)
besj0(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î J0 ¥Ù¥Ã¥»¥ë´Ø¿ô (0 ¼¡¥Ù¥Ã¥»¥ë´Ø¿ô)
besj1(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î J1 ¥Ù¥Ã¥»¥ë´Ø¿ô (1 ¼¡¥Ù¥Ã¥»¥ë´Ø¿ô)
besjn(n,x) À°¿ô, ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î Jn ¥Ù¥Ã¥»¥ë´Ø¿ô (n ¼¡¥Ù¥Ã¥»¥ë´Ø¿ô)
besy0(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î Y0 ¥Ù¥Ã¥»¥ë´Ø¿ô (0 ¼¡¥Î¥¤¥Þ¥ó´Ø¿ô)
besy1(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î Y1 ¥Ù¥Ã¥»¥ë´Ø¿ô (1 ¼¡¥Î¥¤¥Þ¥ó´Ø¿ô)
besyn(n,x) À°¿ô, ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î Yn ¥Ù¥Ã¥»¥ë´Ø¿ô (n ¼¡¥Î¥¤¥Þ¥ó´Ø¿ô)
besi0(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î I0 (0 ¼¡) ÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô
besi1(x) ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î I1 (1 ¼¡) ÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô
besin(n,x) À°¿ô, ¼Â¿ô   x ¥é¥¸¥¢¥ó¤Î In (n ¼¡) ÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô
cbrt(x) ¼Â¿ô   x ¤Î»°¾èº¬ (ÄêµÁ°è¡¢ÃÍ°è¤Ï¶¦¤Ë¼Â¿ô¤Ë¸ÂÄê)
ceil(x)      $\lceil$x$\rceil$, x ¤Î¼ÂÉô°Ê¾å¤ÎºÇ¾®¤ÎÀ°¿ô
conj(x) Ê£ÁÇ¿ô c x ¤ÎÊ£ÁǶ¦Ìò
cos(x)    c x ¤Î¥³¥µ¥¤¥ó cos x
cosh(x)    c cosh x, x ¥é¥¸¥¢¥ó¤Î¥Ï¥¤¥Ñ¥Ü¥ê¥Ã¥¯¥³¥µ¥¤¥ó
EllipticK(k) ¼Â¿ô k $\in$ (-1:1)   K(k) Âè 1 ¼ï´°Á´ÂʱßÀÑʬ
EllipticE(k) ¼Â¿ô k $\in$ [-1:1]   E(k) Âè 2 ¼ï´°Á´ÂʱßÀÑʬ
EllipticPi(n,k) ¼Â¿ô n<1, ¼Â¿ô k $\in$ (-1:1)   $\Pi$(n, k) Âè 3 ¼ï´°Á´ÂʱßÀÑʬ
erf(x)      erf(real(x)), x ¤Î ¼ÂÉô¤Î¸íº¹´Ø¿ô
erfc(x)      erfc(real(x)), 1.0 - (x ¤Î¼ÂÉô¤Î¸íº¹´Ø¿ô)
exp(x)    c ex, x ¤Î»Ø¿ô´Ø¿ô
expint(n,x) À°¿ô n$\ge$ 0, ¼Â¿ô x$\ge$ 0   En(x) = $\int_{1}^{\infty}$t-ne-xt dt, x ¤Î»Ø¿ôÀÑʬ
floor(x)      $\lfloor$x$\rfloor$, x ¤Î¼ÂÉô°Ê²¼¤ÎºÇÂç¤ÎÀ°¿ô
gamma(x)      $\Gamma$(x), x ¤Î¼ÂÉô¤Î¥¬¥ó¥Þ´Ø¿ô
ibeta(a,b,x) a, b > 0, x $\in$ [0 : 1]   B(a, b, x) = ${\frac{{\Gamma(a+b)}}{{\Gamma(a)\Gamma(b)}}}$$\intop_{{0}}^{{x}}$ta-1(1 - t)b-1dt, ÉÔ´°Á´¥Ù¡¼¥¿´Ø¿ô
inverf(x)      x ¤Î¼ÂÉô¤ÎµÕ¸íº¹´Ø¿ô
igamma(a,z) Ê£ÁÇ¿ô, $\Re$(a) > 0 c ÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô P(a, z) = ${\frac{{1}}{{\Gamma(z)}}}$$\intop_{{0}}^{{z}}$ta-1e-tdt
imag(x) Ê£ÁÇ¿ô   x ¤Îµõ¿ôÉôʬ (¼Â¿ô)
int(x) ¼Â¿ô   x ¤Î 0 ¤Ë¸þ¤«¤Ã¤Æ´Ý¤á¤¿À°¿ôÉôʬ
invnorm(x)      x ¤Î¼ÂÉô¤ÎµÕÀµµ¬Ê¬ÉÛ´Ø¿ô
invibeta(a,b,p) ¼Â¿ô   µÕ (Àµµ¬²½) ÉÔ´°Á´¥Ù¡¼¥¿´Ø¿ô
invigamma(a,p) ¼Â¿ô   µÕ (Àµµ¬²½) ÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô
LambertW(z,k) Ê£ÁÇ¿ô, À°¿ô c Ê£ÁÇ Lambert W ´Ø¿ô¤ÎÂè k ʬ´ô
lambertw(x) ¼Â¿ô   Lambert W ´Ø¿ô¤Î¼çÃÍ (Âè 0 ʬ´ô)
lgamma(x) ¼Â¿ô   ¼Â¿ô x ¤ËÂФ¹¤ë ln$\Gamma$(x) (¥¬¥ó¥ÞÂпô´Ø¿ô)
lnGamma(x) Ê£ÁÇ¿ô c Ê£ÁÇÊ¿ÌÌÁ´ÂΤÇÀµÅö¤Ê ln$\Gamma$(x)
log(x)    c logex, x ¤Î¼«Á³Âпô (Äì e)
log10(x)    c log10x, x ¤ÎÂпô (Äì 10)
norm(x)      x ¤Î¼ÂÉô¤ÎÀµµ¬Ê¬ÉÛ (¥¬¥¦¥¹Ê¬ÉÛ) ´Ø¿ô
rand(x) À°¿ô   ³«¶è´Ö (0:1) Æâ¤Îµ¿»÷Íð¿ôÀ¸À®´ï
real(x)      x ¤Î¼ÂÉô
round(x)      $\lfloor$x$\rceil$, x ¤Î¼ÂÉô¤Ë°ìÈֶᤤÀ°¿ô
sgn(x)      x > 0 ¤Ê¤é 1, x < 0 ¤Ê¤é -1, x = 0 ¤Ê¤é 0 (µõÉô¤Ï̵»ë)
Sign(x) Ê£ÁÇ¿ô c x = 0 ¤Ê¤é 0¡¢¤½¤ì°Ê³°¤Ï x/| x|
sin(x)    c sin x, x ¤Î¥µ¥¤¥ó
sinh(x)    c sinh x, x ¥é¥¸¥¢¥ó¤Î¥Ï¥¤¥Ñ¥Ü¥ê¥Ã¥¯¥µ¥¤¥ó
sqrt(x)    c $\sqrt{{x}}$, x ¤ÎÊ¿Êýº¬
SynchrotronF(x) ¼Â¿ô   F(x) = x$\intop_{{x}}^{{\infty}}$K$\scriptstyle {\frac{{5}}{{3}}}$($\nu$d$\nu$
tan(x)    c tan x, x ¤Î¥¿¥ó¥¸¥§¥ó¥È
tanh(x)    c tanh x, x ¥é¥¸¥¢¥ó¤Î¥Ï¥¤¥Ñ¥Ü¥ê¥Ã¥¯¥¿¥ó¥¸¥§¥ó¥È
uigamma(a,x) ¼Â¿ô, ¼Â¿ô   ¾åÊýÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô Q(a, x) = ${\frac{{1}}{{\Gamma(x)}}}$$\intop_{{x}}^{{\infty}}$ta-1e-tdt
voigt(x,y) ¼Â¿ô   Voigt/Faddeeva ´Ø¿ô ${\frac{{y}}{{\pi}}}$$\int$${\frac{{exp(-t^2)}}{{(x-t)^2+y^2}}}$dt
      Ãí°Õ: voigt(x, y) = real (faddeeva(x + iy))
zeta(s) Ê£ÁÇ¿ô c ¥ê¡¼¥Þ¥ó¥¼¡¼¥¿´Ø¿ô $\zeta$(s) = $\Sigma^{{\infty}}_{{k=1}}$k-s

libcerf (ÍøÍѲÄǽ¤Ê¾ì¹ç¤Î¤ß) ¤Ë¤è¤ëÆüì´Ø¿ô
´Ø¿ô                  °ú¿ô   Ìá¤êÃÍ (c ¤ÏÊ£ÁÇ¿ô)
       
cerf(z) Ê£ÁÇ¿ô c Ê£ÁÇ¸íº¹´Ø¿ô cerf (z) = ${\frac{{\sqrt{\pi}}}{{2}}}$$\int^{{z}}_{{0}}$e-t2dt
cdawson(z) Ê£ÁÇ¿ô c Dawson ÀÑʬ D(z) = ${\frac{{\sqrt{\pi}}}{{2}}}$e-z2erfi(z) ¤ÎÊ£ÁdzÈÄ¥
faddeeva(z) Ê£ÁÇ¿ô c ¥¹¥±¡¼¥ë²½Ê£ÁÇÁêÊä¸íº¹´Ø¿ô w(z) = e-z2 erfc(- iz)
erfi(x) ¼Â¿ô   µõ¸íº¹´Ø¿ô erf (x) = - i*erf (ix)
FresnelC(x) ¼Â¿ô   ¥Õ¥ì¥Í¥ëÀÑʬ C(x) = $\int^{{x}}_{{0}}$cos(${\frac{{\pi}}{{2}}}$t2)dt
FresnelS(x) ¼Â¿ô   ¥Õ¥ì¥Í¥ëÀÑʬ S(x) = $\int^{{x}}_{{0}}$sin(${\frac{{\pi}}{{2}}}$t2)dt
VP(x,$\sigma$,$\gamma$) ¼Â¿ô   Voigt ¥×¥í¥Õ¥¡¥¤¥ë VP(x,$\sigma$,$\gamma$) = $\int^{{\infty}}_{{-\infty}}$G(x$\scriptstyle \prime$;$\sigma$)L(x-x$\scriptstyle \prime$;$\gamma$)dx$\scriptstyle \prime$
VP_fwhm($\sigma$,$\gamma$) ¼Â¿ô   Voigt ¥×¥í¥Õ¥¡¥¤¥ë¤ÎȾÃÍÁ´Éý (FWHM)

Amos ¥é¥¤¥Ö¥é¥ê (ÍøÍѲÄǽ¤Ê¾ì¹ç¤Î¤ß) ¤Ë¤è¤ëÊ£ÁÇÆüì´Ø¿ô
´Ø¿ô                  °ú¿ô   Ìá¤êÃÍ (c ¤ÏÊ£ÁÇ¿ô)
       
Ai(z) Ê£ÁÇ¿ô c Ê£ÁÇ¥¨¥¢¥ê¡¼´Ø¿ô Ai(z)
Bi(z) Ê£ÁÇ¿ô c Ê£ÁÇ¥¨¥¢¥ê¡¼´Ø¿ô Bi(z)
BesselH1(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c H(1)$\scriptstyle \nu$(z) Âè 1 ¼ï¥Ï¥ó¥±¥ë´Ø¿ô
BesselH2(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c H(2)$\scriptstyle \nu$(z) Âè 2 ¼ï¥Ï¥ó¥±¥ë´Ø¿ô
BesselJ(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c J$\scriptstyle \nu$(z) Âè 1 ¼ï¥Ù¥Ã¥»¥ë´Ø¿ô
BesselY(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c Y$\scriptstyle \nu$(z) Âè 2 ¼ï¥Ù¥Ã¥»¥ë´Ø¿ô
BesselI(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c I$\scriptstyle \nu$(z) Âè 1 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô
BesselK(nu,z) ¼Â¿ô, Ê£ÁÇ¿ô c K$\scriptstyle \nu$(z) Âè 2 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô
expint(n,z) À°¿ô n $\geq$ 0, Ê£ÁÇ¿ô z c En(z) = $\int_{1}^{\infty}$t-ne-zt dt, »Ø¿ôÀÑʬ

ʸ»úÎó´Ø¿ô
´Ø¿ô °ú¿ô Ìá¤êÃÍ
gprintf("format",x,...) Ǥ°Õ gnuplot ¤Î½ñ¼°²òÀÏ´ï¤òŬÍѤ·¤¿·ë²Ì¤Îʸ»úÎó
sprintf("format",x,...) Ê£¿ô¸Ä C ¸À¸ì¤Î sprintf ¤ÎÊÖ¤¹Ê¸»úÎó
strlen("string") ʸ»úÎó ʸ»úÎóÃæ¤Îʸ»ú¿ô
strstrt("string","key") ʸ»úÎó Éôʬʸ»úÎó "key" ¤¬¸½¤ì¤ëÀèƬ°ÌÃÖ
substr("string",beg,end) Ê£¿ô¸Ä ʸ»úÎó "string"[beg:end]
split("string","sep") ʸ»úÎó Éôʬʸ»úÎ󤫤é¤Ê¤ëÇÛÎó
join(array,"sep") ÇÛÎó, ʸ»úÎó ÇÛÎóÍ×ÁǤò°ì¤Ä¤Îʸ»úÎó¤Ë·ë¹ç
strftime("timeformat",t) Ǥ°Õ gnuplot ¤Ë¤è¤ë»þ¹ï²òÀÏ·ë²Ì¤Îʸ»úÎó
strptime("timeformat",s) ʸ»úÎó ʸ»úÎó s ¤òÊÑ´¹¤·¤¿ 1970 ǯ¤«¤é¤ÎÉÿô
system("command") ʸ»úÎó ¥·¥§¥ë¥³¥Þ¥ó¥É¤Î½ÐÎϤò»ý¤Äʸ»úÎó
trim(" string ") ʸ»úÎó Á°¸å¤Ë¤Ä¤¯¶õÇò¤ò¼è¤ê½ü¤¤¤¿Ê¸»úÎó
word("string",n) ʸ»úÎó, À°¿ô ʸ»úÎó "string" ¤Î n ÈÖÌܤÎñ¸ì
words("string") ʸ»úÎó ʸ»úÎó "string" Ãæ¤Îñ¸ì¿ô

»þ¹ï´Ø¿ô
´Ø¿ô °ú¿ô Ìá¤êÃÍ
time(x) Ǥ°Õ ¸½ºß¤Î¥·¥¹¥Æ¥à»þ¹ï (ÉÃñ°Ì)
timecolumn(N,"timeformat") À°¿ô, ʸ»úÎó ÆþÎϥǡ¼¥¿¤Î N ÎóÌܤ«¤é¤Î½ñ¼°²½Æü»þ¥Ç¡¼¥¿
tm_hour(t) Éÿô¤Ë¤è¤ë»þ¹ï »þ (0..23)
tm_mday(t) Éÿô¤Ë¤è¤ë»þ¹ï Æü (1..31)
tm_min(t) Éÿô¤Ë¤è¤ë»þ¹ï ʬ (0..59)
tm_mon(t) Éÿô¤Ë¤è¤ë»þ¹ï ·î (0..11)
tm_sec(t) Éÿô¤Ë¤è¤ë»þ¹ï Éà (0..59)
tm_wday(t) Éÿô¤Ë¤è¤ë»þ¹ï ÍËÆü (Æü¤«¤éÅÚ¤ò 0..6 ¤Ç)
tm_week(t) Éÿô¤Ë¤è¤ë»þ¹ï ISO 8601 µ¬Â§¤Ç¤Î½µÈÖ¹æ (1..53)
tm_yday(t) Éÿô¤Ë¤è¤ë»þ¹ï ¤½¤Îǯ¤Î²¿ÆüÌÜ (0..365)
tm_year(t) Éÿô¤Ë¤è¤ë»þ¹ï À¾Îñ
weekdate_iso(year,week,day) À°¿ô ISO 8601 µ¬Â§¤Ç¤Î½µÍËÆü¤ËÂбþ¤¹¤ë»þ¹ï
weekdate_cdc(year,week,day) À°¿ô CDC ¤Ë¤è¤ë±Ö³ØŪ½µÍËÆü¤ËÂбþ¤¹¤ë»þ¹ï

¾¤Î gnuplot ¤Î´Ø¿ô
´Ø¿ô °ú¿ô Ìá¤êÃÍ
column(x) À°¿ô¤«Ê¸»úÎó ¥Ç¡¼¥¿ÆþÎÏÃæ¤Î x ÎóÌܤοôÃÍ
columnhead(x) À°¿ô ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î x ÎóÌÜÃæ¤Îʸ»úÎó
exists("X") ʸ»úÎó ÊÑ¿ô̾ X ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ì¤Ð 1, ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 0
hsv2rgb(h,s,v) h,s,v $\in$ [0:1] 24 ¥Ó¥Ã¥È RGB ¿§ÃÍ
index(A,x) ÇÛÎó, Ǥ°Õ A[i] = x ¤È¤Ê¤ëÀ°¿ô i¡£¤Ê¤±¤ì¤Ð 0¡£
palette(z) ¼Â¿ô z ¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿ 24 ¥Ó¥Ã¥È RGB ¥Ñ¥ì¥Ã¥È¿§
rgbcolor("name") ʸ»úÎó ¿§Ì¾¤«Ê¸»úÎóɽ¸½¤Î¿§¤Î 32 ¥Ó¥Ã¥È ARGB ÃÍ
stringcolumn(x) À°¿ô¤«Ê¸»úÎó ʸ»úÎó¤È¤·¤Æ¤Î x ÎóÌܤÎÆâÍÆ
valid(x) À°¿ô ¥Ç¡¼¥¿ÆþÎÏÃæ¤Î x ÎóÌܤÎÀµÅöÀ­
value("name") ʸ»úÎó ̾Á° name ¤ÎÊÑ¿ô¤Î¸½ºß¤ÎÃÍ
voxel(x,y,z) ¼Â¿ô ÅÀ (x,y,z) ¤ò´Þ¤àÍ­¸ú¥Ü¥¯¥»¥ë¤ÎÃÍ

15.3.1 À°¿ôÊÑ´¹´Ø¿ô (int floor ceil round) (integer conversion functions)

gnuplot ¤ÎÀ°¿ôÊÑ¿ôÃͤϡ¢»ÈÍѴĶ­¤¬µö¤»¤Ð¡¢64 ¥Ó¥Ã¥È¤ÎÀºÅÙ¤ÇÊݸ¤·¤Þ¤¹¡£

gnuplot ¤ÎÊ£ÁÇ¿ôÊÑ¿ôÃÍ¡¢¼Â¿ôÊÑ¿ôÃͤϡ¢¤Û¤È¤ó¤É¤Î»ÈÍѴĶ­¤Ç IEEE754 ¤Î binary64 (double) ÉâÆ°¾®¿ô·Á¼°¤ÇÊݸ¤·¤Þ¤¹¡£¤½¤ÎÀºÅ٤ϡ¢53 ¥Ó¥Ã¥È¤ËÀ© ¸Â¤µ¤ì¡¢Í­¸ú¿ô»ú¤Ï¤ª¤è¤½ 16 ·å¤Ç¤¹¡£

¤è¤Ã¤Æ¡¢ÀäÂÐÃͤ¬ 2^53 ¤è¤ê¤âÂ礭¤¤À°¿ô¤Ï¡¢ÉâÆ°¾®¿ôÊÑ¿ô¤Ç°ì°Õ¤Ëɽ¸½¤¹¤ë ¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤Ä¤Þ¤ê¡¢Â礭¤Ê N ¤ËÂФ¹¤ë int(real(N)) ¤È¤¤¤¦Áàºî¤Ï N ¤Ë¶á¤¤¤±¤ì¤É¤â N ¤È¤Ï°Û¤Ê¤ëÀ°¿ô¤òÊÖ¤¹²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

¤µ¤é¤Ë¡¢ÉâÆ°¾®¿ôÃͤòÀÚ¤ê¼Î¤Æ¤Ë¤è¤êÀ°¿ôÃͤËÊÑ´¹¤¹¤ë´Ø¿ô¤Ï¡¢¤½¤ÎÃͼ«¿È¤¬ ¾®¤µ¤¯¤Æ¤â¡¢16 ·å°Ê¾å¤ÎÀºÅ٤˰͸¤¹¤ëÁàºî¤Ç¤Ï´üÂÔ¤¹¤ëÃͤòÆÀ¤é¤ì¤Ê¤¤²Ä ǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢int(log10(0.1)) ¤Ï¡¢-1 ¤Ç¤Ê¤¯ 0 ¤òÊÖ¤·¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï¤½¤ÎÉâÆ°¾®¿ôɽ¸½¤¬ -0.999999999999999... ¤ËÅù¤·¤¤¤«¤é¤Ç¤¹¡£ °Ê²¼¤â»²¾È: overflow (112.66)¡£

int(x) ¤Ï¡¢°ú¿ô¤Î 0 ¤ÎÊý¸þ¤ËÀÚ¤ê¼Î¤Æ¤¿À°¿ôÉôʬ¤òÊÖ¤·¤Þ¤¹¡£ |x| > 2^63¡¢¤¹¤Ê¤ï¤ÁÀ°¿ôÃͤȤ·¤ÆÂ礭¤¹¤®¤ë¾ì¹ç¤Ï NaN ¤òÊÖ¤·¤Þ¤¹¡£ |x| > 2^52 ¤Î¾ì¹ç¤Ï¡¢ÊÖ¤êÃͤϤ¢¤ëÀ°¿ô¤Î¶á˵¤Ë¤ª¤µ¤Þ¤ê¤Þ¤¹¤¬¡¢ÉâÆ°¾®¿ô ÀºÅÙ¤ÎÀ©¸Â¤Î¤¿¤á¤Ë¤½¤ì¤é¤ò¶èÊ̤Ǥ­¤Þ¤»¤ó¡£ °Ê²¼»²¾È: integer conversion (15.3.1)¡£

floor(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ°Ê²¼¤ÎºÇÂç¤ÎÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£ |x| > 2^52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤­¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£

ceil(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ°Ê¾å¤ÎºÇ¾®¤ÎÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£ |x| > 2^52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤­¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£

round(x) ¤Ï¡¢x ¤Î¼Â¿ôÉôʬ¤Ë°ìÈֶᤤÀ°¿ô¤òÊÖ¤·¤Þ¤¹¡£ |x| > 2^52 ¤Î¾ì¹ç¡¢¤½¤ÎÃͤϰì°Õ¤Ë·èÄê¤Ç¤­¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¾ì¹ç¤Ï NaN ¤ò ÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: integer conversion (15.3.1)¡£

15.3.2 ¼ï¡¹¤ÎÂʱßÀÑʬ (elliptic integrals)

´Ø¿ô EllipticK(k) ¤Ï¡¢Âè 1 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á¡¢´Ø¿ô (1 - k^2*sin^2(¦È))^(-0.5) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤι­µÁÀÑʬ¤ÎÃͤò ÊÖ¤·¤Þ¤¹¡£k ¤ÎÄêµÁ°è¤Ï -1 ¤«¤é 1 ¤Ç¤¹ (ξü¤Ï´Þ¤Þ¤Ê¤¤)¡£

        EllipticK (k) = $\int_{0}^{{\pi/2}}$$\sqrt{{1-k^2\sin^2\theta}}$ -1 d$\theta$

´Ø¿ô EllipticE(k) ¤Ï¡¢Âè 2 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á¡¢´Ø¿ô (1 - k^2*sin^2(¦È))^(-0.5) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤ÎÈϰϤι­µÁÀÑʬ¤ÎÃͤò ÊÖ¤·¤Þ¤¹¡£k ¤ÎÄêµÁ°è¤Ï -1 ¤«¤é 1 ¤Ç¤¹ (ξü¤â´Þ¤à)¡£

        EllipticE (k) = $\int_{0}^{{\pi/2}}$$\sqrt{{1-k^2\sin^2\theta}}$ d$\theta$

´Ø¿ô EllipticPi(n,k) ¤Ï¡¢Âè 3 ¼ï´°Á´ÂʱßÀÑʬ¡¢¤¹¤Ê¤ï¤Á´Ø¿ô (1 - k^2*sin^2(¦È))^(-0.5) / (1 - n*sin^2(¦È)) ¤Î 0 ¤«¤é¦Ð/2 ¤Þ¤Ç¤Î ÈϰϤι­µÁÀÑʬ¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ n ¤Ï 1 ¤è¤ê¾®¤µ¤¯¡¢k ¤Ï -1 ¤È 1 ¤Î´Ö (ξü¤Ï´Þ¤Þ¤Ê¤¤) ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ÄêµÁ¤è¤ê¡¢¤¹¤Ù¤Æ¤Î Àµ¤Î k ¤ËÂФ· EllipticPi(0,k) == EllipticK(k) ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£

        EllipticPi (n, k) = $\int_{0}^{{\pi/2}}$$\big[$(1-n sin2$\theta$)$\sqrt{{1-k^2\sin^2\theta}}$ $\big]^{{{-1}}}_{{}}$d$\theta$

ÂʱßÀÑʬ¤Î¥¢¥ë¥´¥ê¥º¥à: B.C.Carlson 1995, Numerical Algorithms 10:13-26.

15.3.3 Ê£ÁÇ¥¨¥¢¥ê¡¼´Ø¿ô (Complex Airy functions)

Ai(z) ¤È Bi(z) ¤Ï¡¢Ê£ÁÇ°ú¿ô z ¤Î¥¨¥¢¥ê¡¼´Ø¿ô¤Ç¡¢ÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô K ¤È I ¤òÍѤ¤¤Æ·×»»¤µ¤ì¤Þ¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

        Ai (z) = ${\frac{{1}}{{\pi}}}$$\sqrt{{\frac{z}{3}}}$K1/3($\zeta$)              $\zeta$ = ${\frac{{2}}{{3}}}$z3/2

        Bi (z) = $\sqrt{{\frac{z}{3}}}$$\big[$I-1/3($\zeta$)+I1/3($\zeta$)]

15.3.4 Ê£Áǥ٥廥ë´Ø¿ô (Complex Bessel functions)

BesselJ(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 1 ¼ï¥Ù¥Ã¥»¥ë ´Ø¿ô J$\scriptstyle \nu$ ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

BesselY(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 2 ¼ï¥Ù¥Ã¥»¥ë ´Ø¿ô Y$\scriptstyle \nu$ ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

BesselI(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 1 ¼ïÊÑ·Á¥Ù¥Ã ¥»¥ë´Ø¿ô I$\scriptstyle \nu$ ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

BesselK(nu,z) ¤Ï¡¢¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú¿ô¤Î z ¤ËÂФ¹¤ëÂè 2 ¼ïÊÑ·Á¥Ù¥Ã ¥»¥ë´Ø¿ô K$\scriptstyle \nu$ ¤Ç¤¹¡£ Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

BesselH1(nu,z) ¤È BesselH2(nu,z) ¤Ï¡¢¤½¤ì¤¾¤ì¼Â°ú¿ô¤Î nu ¤ÈÊ£ÁÇ°ú ¿ô¤Î z ¤ËÂФ¹¤ëÂè 1 ¼ï¡¢Âè 2 ¼ï¤Î¥Ï¥ó¥±¥ë´Ø¿ô¤Ç¤¹¡£


   H1(nu,z) = J(nu,z) + iY(nu,z)
   H2(nu,z) = J(nu,z) - iY(nu,z)

Donald E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è ¤ë¥ë¡¼¥Á¥ó¤ò´Þ¤à³°Éô¥é¥¤¥Ö¥é¥ê¤Ë¤è¤Ã¤Æ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

15.3.5 Expint

expint(n,z) ¤Ï¡¢0 °Ê¾å¤ÎÀ°¿ô n ¤ËÂФ·¤Æ¡¢¼¡¿ô n ¤Î»Ø¿ôÀÑʬ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢t^(-n) e^(-tz) dt ¤Î 1 ¤«¤é¡ç¤Þ¤Ç¤ÎÀÑʬÃͤǤ¹¡£

         En(x) = $\int_{1}^{\infty}$t-ne-xt dt

¤¢¤Ê¤¿¤¬»È¤Ã¤Æ¤¤¤ë gnuplot ¤¬¡¢Amos ¥é¥¤¥Ö¥é¥ê¤Ë¤è¤ëÊ£ÁÇ´Ø¿ô¤Î¥µ¥Ý¡¼¥È ÉÕ¤­¤Ç¥Ó¥ë¥É¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ì¤Ð¡¢n>0 ¤ËÂФ·¤Æ¡¢¤½¤Îɾ²Á¤Ë¤Ï Amos ¥ë¡¼¥Á ¥ó¤Î cexint ¤ò»ÈÍѤ·¤Þ¤¹ [Amos 1990 Algorithm 683, ACM Trans Math Software 16:178]¡£¤½¤Î¾ì¹ç¡¢z ¤Ï -pi < arg(z) <= pi ¤ÎǤ°Õ¤ÎÊ£ÁÇ¿ô¤È¤Ç ¤­¤Þ¤¹¡£expint(0,z) ¤Ï¡¢exp(-z)/z ¤È·×»»¤·¤Þ¤¹¡£

Amos ¥é¥¤¥Ö¥é¥ê¤Î¥µ¥Ý¡¼¥È¤¬¤Ê¤±¤ì¤Ð¡¢z ¤Ï 0 °Ê¾å¤Î¼Â¿ôÃͤËÀ©¸Â¤µ¤ì¤Þ¤¹¡£

15.3.6 ¥Õ¥ì¥Í¥ëÀÑʬ (Fresnel integrals FresnelC(x) and FresnelS(x))

¥³¥µ¥¤¥ó¤È¥µ¥¤¥ó¤Î¥Õ¥ì¥Í¥ëÀÑʬ¤Ï¡¢Ê£ÁÇ¸íº¹´Ø¿ô erf(z) ¤È¤Î´Ø·¸¤òÍѤ¤¤Æ ·×»»¤·¤Þ¤¹¡£erf(z) ¤Ë°Í¸¤¹¤ë¤¿¤á¡¢¤³¤ì¤é¤ÎÀÑʬ¤Ï libcerf ¥é¥¤¥Ö¥é¥ê¤Î ¥µ¥Ý¡¼¥È¤¬¤¢¤ë¾ì¹ç¤Ë¤Î¤ßÍøÍѤǤ­¤Þ¤¹¡£

         C(x) = $\int^{{x}}_{{0}}$cos(${\frac{{\pi}}{{2}}}$t2)dt      S(x) = $\int^{{x}}_{{0}}$sin(${\frac{{\pi}}{{2}}}$t2)dt

         C(x) + iS(x) = ${\frac{{1+i}}{{2}}}$erf (z)¡¢ z = ${\frac{{\sqrt{\pi}}}{{2}}}$(1 - i)x

15.3.7 Gamma

gamma(x) ¤Ï¡¢¤½¤Î°ú¿ô¤Î¼Â¿ôÉôʬ¤Î¥¬¥ó¥Þ´Ø¿ôÃͤòÊÖ¤·¤Þ¤¹¡£À°¿ô n ¤ËÂÐ ¤·¤Æ¤Ï gamma(n+1) = n! ¤Ç¤¹¡£°ú¿ô¤¬Ê£ÁÇ¿ô¤Î¾ì¹ç¡¢¤½¤Îµõ¿ôÉôʬ¤Ï̵»ë¤· ¤Þ¤¹¡£Ê£ÁÇ¿ô°ú¿ô¤ËÂФ·¤Æ¤Ï¡¢°Ê²¼»²¾È: lnGamma (15.3.13)¡£

15.3.8 Igamma

igamma(a, z) ¤Ï¡¢²¼Êý (Àµµ¬²½) ÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô P(a, z) ¤òÊÖ¤·¤Þ¤¹


[Abramowitz and Stegun (6.5.1); NIST DLMF 8.2.4]¡£Ê£ÁÇ´Ø¿ô¥µ¥Ý¡¼¥È¤¬

¤¢¤ì¤Ð¡¢a ¤È z ¤Ï real(a) > 0 ¤ÎÊ£ÁÇ¿ôÃͤâµö¤µ¤ì¤Þ¤¹¡£ µÕ¤Ë¡¢¾åÊýÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: uigamma (15.3.18)¡£

        igamma (a, z) = P(a, z) = za$\gamma^{*}_{}$(a, z) = ${\frac{{1}}{{\Gamma(z)}}}$$\intop_{{0}}^{{z}}$ta-1e-tdt

a, z ¤ÎÃͤ˰͸¤·¤Æ¡¢°Ê²¼¤Î 4 ¤Ä¤Î¥¢¥ë¥´¥ê¥º¥à¤ò»ÈÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (1) a ¤¬Â礭¤¯ (>100) (z-a)/a ¤¬¾®¤µ¤¤ (<0.2) ¾ì¹ç¡¢ Numerical Recipes Âè 3 ÈÇ 6.2 Àá (2007) ¤Ë¤¢¤ë·¸¿ô¤Ç¤Î Gauss-Legendre ¿ôÃÍÀÑʬ¸ø¼°¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (2) z > 1 ¤Ç z > (a+2) ¤Î¾ì¹ç¡¢Shea (1988) J. Royal Stat. Soc. Series C (Applied Statistics) 37:466-473 ¤ÎϢʬ¿ô¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (3) z < 0 ¤Ç a < 75 ¤Ç imag(a) == 0 ¤Î¾ì¹ç¤Ï¡¢Abramowitz & Stegun (6.5.29) ¤Î¿ôÎó¤òÍøÍѤ·¤Þ¤¹¡£
¥±¡¼¥¹ (4) ¤½¤Î¾¤Î¾ì¹ç¤Ï¡¢Peason ¤Îµé¿ôŸ³«¤òÍøÍѤ·¤Þ¤¹¡£

Á´Ê¿Ì̤Ǥϡ¢¤¢¤ëÎΰè¤Ç¤½¤Î¼ý«¤ÏÎɤ¯¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ÁªÂò¤· ¤¿¥¢¥ë¥´¥ê¥º¥à¤Ç 1.E-14 ¤ÎÈϰϤǼý«¤·¤Ê¤±¤ì¤Ð¡¢´Ø¿ô¤Ï NaN ¤òÊÖ¤·¡¢·Ù ¹ð¤òɽ¼¨¤·¤Þ¤¹¡£

Ê£ÁÇ´Ø¿ô¥µ¥Ý¡¼¥È¤¬¤Ê¤¤¾ì¹ç¤Ï¡¢ÄêµÁ°è¤Ï¼Â¿ô¤Î°ú¿ô¤Î a > 0, z >= 0 ¤ËÀ© ¸Â¤µ¤ì¤Þ¤¹¡£

15.3.9 Invigamma

µÕÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô invigamma(a,p) ¤Ï¡¢p = igamma(a,z) ¤È¤Ê¤ë z ¤ÎÃÍ ¤òÊÖ¤·¤Þ¤¹¡£p ¤Ï (0;1] ¤ËÀ©¸Â¤µ¤ì¡¢a ¤ÏÀµ¤Î¼Â¿ô¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ gnuplot ¤Ç¤Î¼ÂÁõ¤Ï¡¢a<1 ¤ËÂФ¹¤ë 1.e-16 ¤«¤é¡¢a = 1.e10 ¤ËÂФ¹¤ë 5.e-6 ¤Þ¤Ç¤ÎÁêÂÐÀºÅÙ¤ò»ý¤Á¤Þ¤¹¡£

15.3.10 Ibeta

ibeta(a,b,x) ¤Ï¡¢¼Â¿ô°ú¿ô a,b > 0, [0;1] Æâ¤Î x ¤ËÂФ¹¤ë¡¢Àµµ¬²½²¼Êý ÉÔ´°Á´¥Ù¡¼¥¿ÀÑʬÃͤòÊÖ¤·¤Þ¤¹¡£

        ibeta (a, b, x) = ${\frac{{\Gamma(a+b)}}{{\Gamma(a)\Gamma(b)}}}$$\intop_{{0}}^{{x}}$ta-1(1 - t)b-1dt

°ú¿ô¤¬Ê£ÁÇ¿ô¤Î¾ì¹ç¡¢µõ¿ôÉôʬ¤Ï̵»ë¤·¤Þ¤¹¡£gnuplot ¤Ç¤Î¼ÂÁõ¤Ï¡¢Cephes ¥é¥¤¥Ö¥é¥ê [Moshier 1989, "Methods and Programs for Mathematical Functions", Prentice-Hall] ¤«¤é¤Î¥³¡¼¥É¤òÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£

15.3.11 Invibeta

µÕÉÔ´°Á´¥Ù¡¼¥¿´Ø¿ô invibeta(a,b,p) ¤Ï¡¢p = ibeta(a,b,z) ¤È¤Ê¤ë z ¤Î ÃͤòÊÖ¤·¤Þ¤¹¡£a, b ¤ÏÀµ¤Î¼Â¿ô¤Ë¡¢p ¤Ï [0,1] Æâ¤ÎÃͤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ a, b ¤¬ 0 ¤Ë¶á¤Å¤¯¤È¤­ ( $\lessapprox$ 0.05) invibeta() ¤Ï 1.0 ¤Ë¶á¤Å¤¯¤Î¤Ç¡¢¤½¤ÎÁêÂÐÀºÅÙ¤ÏÉâÆ°¾®¿ôÀºÅÙ¤ËÀ©¸Â¤µ¤ì¤ë ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

15.3.12 LambertW

Ê£ÁÇÄêµÁ°è¤ÈÊ£ÁÇÃÍ°è¤ò»ý¤Ä Lambert W ´Ø¿ô¤Ç¤¹¡£ LambertW( z, k ) ¤Ï¡¢ÊýÄø¼° W(z) * exp(z) = z ¤ÇÄêµÁ¤µ¤ì¤ë ´Ø¿ô W ¤ÎÂè k ʬ´ô¤òÊÖ¤·¤Þ¤¹¡£ ¤½¤ÎÊ£ÁÇ¿ôÃͤϡ¢Corless et al [1996], Adv. Comp. Math 5:329 ¤Ëµ­ºÜ¤µ¤ì ¤Æ¤¤¤ë Halley ¤ÎÊýË¡¤ò»È¤Ã¤Æµá¤á¤Þ¤¹¡£ ̾Ìܾå¤ÎÀºÅÙ¤Ï 1.E-13 ¤Ç¤¹¤¬¡¢ÉÔϢ³¡¢¤¹¤Ê¤ï¤Áʬ´ôÅÀ¤Î¶á¤¯¤Ç¤Ï¼ý«¤ÏÎÉ ¤¯¤¢¤ê¤Þ¤»¤ó¡£

15.3.13 LnGamma

lnGamma(z) ¤Ï¡¢Ê£ÁÇÄêµÁ°è¤ÈÊ£ÁÇÃÍ°è¤ò»ý¤Ä¡¢¥¬¥ó¥Þ´Ø¿ô¤Î¼«Á³ÂпôÃͤòÊÖ ¤·¤Þ¤¹¡£ Lanczos [1964], SIAM JNA 1:86-96 ¤Ë¤è¤ë 14 ¹à¶á»÷¤Ë¤è¤ë¼ÂÁõ¤Ç ¤¹¡£·ë²Ì¤Îµõ¿ôÀ®Ê¬¤Ï¡¢Éé¤Î¼Â¼´Éôʬ¤ò½ü¤¯Á´ÂΤÇϢ³¤Ê¶ÊÌ̤òÀ¸À®¤¹¤ë¤è¤¦ °ÌÁê¤ò¤º¤é¤·¤Æ¤¤¤Þ¤¹¡£

15.3.14 Íð¿ô¤ÎÀ¸À® (random)

´Ø¿ô rand() ¤Ï 0 ¤È 1 ¤Î´Ö¤Îµ¿»÷Íð¿ôÎó¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ï°Ê²¼¤«¤é¤Î ¥¢¥ë¥´¥ê¥º¥à¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹: P. L'Ecuyer and S. Cote, "Implementing a random number package with splitting facilities", ACM Transactions on Mathematical Software, 17:98-111 (1991).


     rand(0)     ÆâÉô¤Ë»ý¤Ä 2 ¤Ä¤Î 32bit ¤Î¼ï (seed) ¤Î¸½ºß¤ÎÃͤ«¤éÀ¸
                 À®¤µ¤ì¤ë³«¶è´Ö (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
                 ¤ËÀßÄꤹ¤ë

15.3.15 Ê£ÁÇ°ú¿ô¤ÎÆüì´Ø¿ô (Special functions with complex arguments)

Ê£ÁÇÄêµÁ°è¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤ÎÆüì´Ø¿ô¤ò¡¢³°Éô¥é¥¤¥Ö¥é¥ê¤òÄ̤·¤ÆÄ󶡤·¤Þ¤¹¡£ ¤¢¤Ê¤¿¤¬»È¤Ã¤Æ¤¤¤ë gnuplot ¤¬¤³¤ì¤é¤Î¥é¥¤¥Ö¥é¥ê¤Ø¤Î¥ê¥ó¥¯¤Ê¤·¤Ç¥Ó¥ë¥É ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ÄêµÁ°è¤¬¼Â¿ô¤Î¾ì¹ç¤Î¤ß¥µ¥Ý¡¼¥È¤¹¤ë¤«¡¢¤Þ¤¿¤Ï´Ø¿ô¼«ÂÎ ¤òÁ´¤¯Ä󶡤·¤Ê¤¤¤«¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£

libcerf (http://apps.jcns.fz-juelich.de/libcerf) ¤òɬÍפȤ¹¤ë´Ø¿ô¤Ï¡¢ ¥Ó¥ë¥É»þ¤ÎÀßÄꥪ¥×¥·¥ç¥ó –with-libcerf ¤Ë°Í¸¤·¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç ¤¹¡£°Ê²¼»²¾È: cerf (15.3), cdawson (15.3), faddeeva (15.3), erfi (15.3), VP (15.3), VP_fwhm (15.3)¡£

¼Â¿ô¼¡ nu ¤ÈÊ£ÁÇ°ú¿ô¤ÎÊ£ÁÇ¥¨¥¢¥ê¡¼¡¢¥Ù¥Ã¥»¥ë¡¢¥Ï¥ó¥±¥ë´Ø¿ô¤Ï¡¢Douglas E. Amos, Sandia National Laboratories, SAND85-1018 (1985) ¤Ë¤è¤Ã¤Æ¼ÂÁõ ¤µ¤ì¤¿¥ë¡¼¥Á¥ó¤ò´Þ¤à¥é¥¤¥Ö¥é¥ê¤òɬÍפȤ·¤Þ¤¹¡£¤³¤ì¤é¤Î¥ë¡¼¥Á¥ó¤Ï¡¢ netlib (http://netlib.sandia.gov) ¤ä¡¢libopenspecfun (https://github.com/JuliaLang/openspecfun) ¤Ë¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ËÂбþ¤¹ ¤ë¥Ó¥ë¥É»þ¤ÎÀßÄꥪ¥×¥·¥ç¥ó¤Ï –with-amos=<library directory> ¤Ç¤¹¡£ °Ê²¼»²¾È: Ai (15.3.3), Bi (15.3.3), BesselJ (15.3.4), BesselY (15.3.4), BesselI (15.3.4), BesselK (15.3.4), Hankel (15.3.4)¡£ Ê£ÁǻؿôÀÑʬ¤Ï¡¢netlib, libamos ¤Ç¤ÏÄ󶡤·¤Æ¤¤¤Þ¤¹¤¬¡¢libopenspecfun ¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼»²¾È: expint (15.3.5)¡£

15.3.16 Synchrotron function

(Âè 1) ¥·¥ó¥¯¥í¥È¥í¥ó´Ø¿ô SynchrotronF(x) ¤Ï¡¢¥·¥ó¥¯¥í¥È¥í¥óÊü¼Í¤Î¥Ñ¥ï ¡¼Ê¬ÉÛ¥¹¥Ú¥¯¥È¥ë¤ò¡¢Î׳¦¥Õ¥©¥È¥ó¥¨¥Í¥ë¥®¡¼ (Î׳¦¼þÇÈ¿ô vc) ¤Îñ°Ì¤ÇÍ¿ ¤¨¤ë x ¤Î´Ø¿ô¤È¤·¤Æµ­½Ò¤¹¤ë¤â¤Î¤Ç¤¹¡£

         F(x) = x$\intop_{{x}}^{{\infty}}$K5/3($\nu$d$\nu$ ¤³¤³¤Ç¡¢K5/3 ¤ÏÂè 2 ¼ïÊÑ·Á¥Ù¥Ã¥»¥ë´Ø¿ô¡£

1.E-15 ¤Þ¤ÇÀµ³Î¤Ê¶á»÷¤Î Chebyshev ·¸¿ô¤Ï¡¢MacLead (2000) NuclInstMethPhysRes A443:540-545 ¤«¤éºÎÍѤ·¤Æ¤¤¤Þ¤¹¡£

15.3.17 »þ¹ï´Ø¿ô (Time functions)

15.3.17.1 Time

´Ø¿ô time(x) ¤Ï¸½ºß¤Î¥·¥¹¥Æ¥à»þ¹ï¤òÊÖ¤·¤Þ¤¹¡£¤³¤ÎÃÍ¤Ï strftime ´Ø ¿ô¤ÇÆü»þʸ»úÎó¤ËÊÑ´¹¤Ç¤­¤Þ¤¹¤·¡¢timecolumn ¤ÈÁȤ߹ç¤ï¤»¤ÆÁêÂÐŪ¤ÊÆü »þ¥°¥é¥Õ¤òºîÀ®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£°ú¿ô¤Î·¿¤Ï¤½¤ì¤¬ÊÖ¤¹¤â¤Î¤ò·èÄꤷ¤Þ¤¹¡£ °ú¿ô¤¬À°¿ô¤Î¾ì¹ç¤Ï time() ¤Ï¸½ºß¤Î»þ¹ï¤ò 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÀ°¿ô¤È ¤·¤ÆÊÖ¤·¡¢°ú¿ô¤¬¼Â¿ô (¤Þ¤¿¤ÏÊ£ÁÇ¿ô) ¤Ê¤é¤ÐƱÍͤÎÃͤò¼Â¿ô¤È¤·¤ÆÊÖ¤·¤Þ¤¹¡£ °ú¿ô¤¬Ê¸»úÎó¤Ê¤é¤Ð¡¢¤½¤ì¤ò½ñ¼°Ê¸»úÎó¤Ç¤¢¤ë¤È¤ß¤Ê¤·¡¢½ñ¼°²½¤µ¤ì¤¿Æü»þʸ »úÎó¤òÄ󶡤¹¤ë¤è¤¦¤½¤ì¤ò strftime ¤ËÅϤ·¤Þ¤¹¡£ °Ê²¼»²¾È: time_specifiers (112.31.3), timefmt (112.96)¡£

15.3.17.2 Timecolumn

timecolumn(N,"timeformat") ¤Ï¡¢N ÎóÌܤ«¤é»Ï¤Þ¤ëʸ»úÎó¥Ç¡¼¥¿¤òÆü»þ¥Ç ¡¼¥¿ÃͤȤ·¤ÆÆɤߡ¢"timeformat" ¤ò»ÈÍѤ·¤Æ¡¢¤½¤ì¤ò "Unix ¥¨¥Ý¥Ã¥¯ (1970 ǯ 1 ·î 1 Æü) ¤«¤é¤ÎÉÿô" ¤È¤·¤Æ¥ß¥êÉÃÀºÅ٤Dzò¼á¤·¤Þ¤¹¡£½ñ¼°¥Ñ¥é¥á¡¼¥¿ ¤Î»ØÄ꤬¤Ê¤¤¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Î set timefmt ¤Ë¤è¤ëʸ»úÎó¤ò»È¤¤¤Þ¤¹¡£ ¤³¤Î´Ø¿ô¤Ï¡¢plot ¤« stats ¥³¥Þ¥ó¥É¤Ç¤Î using »ØÄê¤Ç¤Î¤ßÍ­¸ú¤Ç¤¹¡£°Ê ²¼»²¾È: plot datafile using (99.3.11)¡£

15.3.17.3 Tm_structure

gnuplot ¤Ï¡¢ÆâÉô¤Ç¤Ï»þ¹ï¤ò¡¢Unix ¥¨¥Ý¥Ã¥¯ 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô ¤òɽ¤¹ 64 bit ¤ÎÉâÆ°¾®¿ôÃͤȤ·¤ÆÊÝ»ý¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤ò»þ¹ï¤äÆüÉդȤ·¤Æ ²ò¼á¤¹¤ë¤¿¤á¤Ë¡¢¤½¤ì¤ò POSIX ɸ½à¤Î¹½Â¤ÂÎ struct_tm ¤ËÊÑ´¹¤·¤Þ¤¹¡£ 1 ÉÃ̤Ëþ¤ÎÉÿô¤Ï¡¢¤É¤ó¤Ê¾ì¹ç¤Ç¤â tm_sec() ¤«¤é¤Ï¼èÆÀ¤Ç¤­¤Ê¤¤¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£³ÆÍ×ÁǤˤϡ¢°Ê²¼¤Î´Ø¿ô¤òÍøÍѤ·¤Æ¸ÄÊ̤˥¢¥¯¥»¥¹¤Ç¤­¤Þ¤¹¡£

15.3.17.4 Tm_week

´Ø¿ô tm_week(t, standard) ¤Ï¡¢¤½¤Î°ú¿ô¤ò 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô ¤Ç¤Î»þ¹ï¤È¤ß¤Ê¤·¤Þ¤¹¡£¤Ê¤ª¡¢´Ø¿ô̾¤«¤é POSIX ¤Î tm ¹½Â¤ÂΤΥá¥ó¥Ð¤È»× ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

standard = 0 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï ISO 8601 ½µÍËÆüµ¬Â§¤Ç¤Î½µÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤Î»þ¹ï½ñ¼° %W ¤ËÂбþ¤·¤Þ¤¹¡£ standard = 1 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï CDC (¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼) ±Ö³ØŪ ½µÍËÆüµ¬Â§ (¡Ö±Ö³ØŪ½µ¡×) ¤Ç¤Î½µÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤Î»þ¹ï½ñ¼° %U ¤ËÂбþ¤·¤Þ¤¹¡£ ¤³¤ì¤é¤ËÂбþ¤¹¤ë¡¢½µÍËÆü¤«¤é¥«¥ì¥ó¥À¡¼»þ¹ï¤ËÊÑ´¹¤¹¤ëµÕ´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: weekdate_iso (15.3.17.5), weekdate_cdc (15.3.17.6)¡£

²òÀâ: ISO ¤Î YYYY ǯ¤Î 1 È֤νµ¤Ï¡¢YYYY ǯ 1 ·î 1 ¤Ë°ìÈֶᤤ·îÍËÆü¤«¤é »Ï¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢Á°¤Îǯ¤Ë¤Ê¤ë²ÄǽÀ­¤â¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢2008 ǯ 12 ·î 30 Æü²ÐÍËÆü¤Ï¡¢ISO ¤Î½µÍËÆü¤Ç¤Ï 2009-W01-2 (2009 ǯ¤Î½µÈÖ¹æ 1 ¤ÎÂè 2 Æü) ¤È¤Ê¤ê¤Þ¤¹¡£µÕ¤Ë¡¢1 ·î¤Î 1 Æü¤«¤é 3 Æü¤Þ¤Ç¤Ï¡¢ISO ¤Î½µÈÖ¹æ 1 ¤Î ·îÍˤè¤êÁ°¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤¨¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤³¤ì¤é¤ÎÆü¤Ï¡¢Á°¤Îǯ¤ÎºÇ¸å ¤Î½µÈÖ¹æ¤Î½µ¤Ë´Þ¤Þ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢2021 ǯ 1 ·î 1 Æü¶âÍËÆü ¤Ï¡¢ISO ¤Î½µÍËÆü¤Ç¤Ï 2020-W53-5 ¤Ç¤¹¡£

¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼ (CDC) ¤ÎÄê¤á¤ë±Ö³ØŪ½µ¤Ï¡¢Æ±ÍͤνµÍËÆüµ¬ §¤Ç¤¹¤¬¡¢ISO µ¬Â§¤È¤Ï¡¢·îÍ˳«»Ï¤Ç¤Ï¤Ê¤¯¡¢ÆüÍ˳«»Ï¤Ç¤¢¤ë¤È¤³¤í¤¬°ã¤¤¤Þ ¤¹¡£

15.3.17.5 Weekdate_iso

½ñ¼°:


    time = weekdate_iso( year, week [, day] )

¤³¤Î´Ø¿ô¤Ï¡¢ISO 8601 ½µÍËÆü¤Ç¤Î year(À¾Îñ), week(½µÈÖ¹æ), day(ÆüÈÖ¹æ) ¤ÎÍ×ÁǤò¡¢Unix ¥¨¥Ý¥Ã¥¯¤Î 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤Ç¤Î¥«¥ì¥ó¥À¡¼»þ ¹ï¤ËÊÑ´¹¤·¤Þ¤¹¡£½µÍËÆü·Ï¤Ç¤Î̾Ìܾå¤Îǯ (year) ¤Ï¡¢¥«¥ì¥ó¥À¡¼¤Ç¤Îǯ¤Èɬ ¤º¤·¤â°ìÃפ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£½µÈÖ¹æ week ¤Ï 1 ¤«¤é 53 ¤Î´Ö ¤ÎÀ°¿ô¤Ç¤¹¡£ÆüÈÖ¹æ day ¤Ï¥ª¥×¥·¥ç¥ó¤Ç¡¢¤½¤ì¤¬ 0 ¤«¤Þ¤¿¤Ï¾Êά¤·¤¿¾ì¹ç¤Ï ¤½¤Î½µ¤Î³«»Ï»þ¹ï¤òÊÖ¤·¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð day ¤Ï 1 (·îÍË) ¤«¤é 7 (ÆüÍË) ¤Þ¤Ç¤ÎÀ°¿ô¤Ç¤¹¡£ ¥«¥ì¥ó¥À¡¼Æü¤ò¡¢ISO µ¬Â§¤Ç¤Î½µÈÖ¹æ¤ËÊÑ´¹¤¹¤ëµÕ´Ø¿ô¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: tm_week (15.3.17.4)¡£

Îã:


    # 1 ÎóÌÜ¤Ë ISO ½µÈÖ¹æ¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤ÎÉÁ²è
    #     ½µ      ´¶À÷¼Ô  »àË´¼Ô
    #     2020-05    432       1
    calendar_date(w) = weekdate_iso( int(w[1:4]), int(w[6:7]) )
    set xtics time format "%b\n%Y"
    plot FILE using (calendar_date(strcol(1))) : 2   title columnhead

15.3.17.6 Weekdate_cdc

½ñ¼°:


    time = weekdate_cdc( year, week [, day] )

¤³¤Î´Ø¿ô¤Ï¡¢CDC/MMWR (¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼/±Ö³Ø½µÊó) ¤Î±Ö³ØŪ ½µÍËÆü¤Ç¤Î year(À¾Îñ), week(½µÈÖ¹æ), day(ÆüÈÖ¹æ) ¤ÎÍ×ÁǤò¡¢Unix ¥¨¥Ý¥Ã ¥¯¤Î 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤Ç¤Î¥«¥ì¥ó¥À¡¼»þ¹ï¤ËÊÑ´¹¤·¤Þ¤¹¡£CDC ½µ ÍËÆüµ¬Â§¤Ï¡¢ISO µ¬Â§¤È¤Ï¡¢½µ¤¬ 1 = ÆüÍˤ«¤é 7 = ÅÚÍˤޤǡ¢¤ÈÄêµÁ¤µ¤ì¤Æ ¤¤¤ëÅÀ¤Ë°ã¤¤¤¬¤¢¤ê¤Þ¤¹¡£3 ÈÖÌܤΥѥé¥á¡¼¥¿¤¬ 0 ¤Þ¤¿¤Ï¾Êά¤·¤¿¾ì¹ç¤Ï¡¢ ¤½¤Î½µ¤Î³«»Ï»þ¹ï¤¬ÊÖ¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: tm_week (15.3.17.4), weekdate_iso (15.3.17.5)¡£

15.3.18 Uigamma

uigamma(a, x) ¤Ï¡¢¾åÊý (Àµµ¬²½) ÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô Q(a, x) ¤òÊÖ¤·¤Þ¤¹ [NIST DLMF eq 8.2.4]¡£ µÕ¤Ë¡¢²¼ÊýÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô P(a,x) ¤ËÂФ·¤Æ¤Ï¡¢°Ê²¼»²¾È: igamma (15.3.8)¡£
Q(a, x) + P(a, x) = 1 ¤Ç¤¹¡£

        uigamma (a, z) = Q(a, x) = 1 - P(a, x) = ${\frac{{1}}{{\Gamma(z)}}}$$\intop_{{x}}^{{\infty}}$ta-1e-tdt

¸½ºß¤Î¼ÂÁõ¤Ï¡¢Cephes library (Moshier 2000) ¤Ë¤è¤ë¤â¤Î¤Ç¤¹¡£ÄêµÁ°è¤Ï¡¢ ¼Â¿ô¤Î a>0, ¼Â¿ô¤Î x>=0 ¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ »î¸³Ãʳ¬: ¤½¤Î¤¦¤Á¤ËÊ£ÁÇ°ú¿ô¤ò½èÍý¤¹¤ë¼ÂÁõ¤ËÃÖ¤­´¹¤¨¤é¤ì¤ë¤Ç¤·¤ç¤¦¡£

15.3.19 Using »ØÄêÍÑ´Ø¿ô (using specifier functions)

°Ê²¼¤Î´Ø¿ô¤Ï¡¢¥Ç¡¼¥¿ÆþÎÏ»þ¤Î¤ßÍ­¸ú¤Ç¤¹¡£Ä̾綠¤ì¤Ï¡¢plot, splot, fit, stats ¤Î¤¤¤º¤ì¤«¤Î¥³¥Þ¥ó¥É¾å¤Î using »ØÄê¤ÎÆþÎÏÎó¤ò»ÈÍѤ¹¤ë ¿ô¼°Æâ¤Ç»ÈÍѤ·¤Þ¤¹¡£¤·¤«¤·¤½¤Î´Ø¿ô¤ÎŬÍÑÈϰϤϡ¢¼ÂºÝ¤Î plot ¥³¥Þ¥ó¥Éʸ Á´ÂΤǤ¢¤ê¡¢Î㤨¤Ð¥°¥é¥Õ¥¿¥¤¥È¥ë¤ÎºîÀ®»þ¤Î columnhead ¤Î»ÈÍѤâ´Þ¤Þ¤ì ¤Þ¤¹¡£

15.3.19.1 Column

´Ø¿ô column(x) ¤Ï¡¢plot, splot, stats ¥³¥Þ¥ó¥É¤Î°ìÉô¤È¤·¤Æ¤Î¤ß»È¤¤¤Þ ¤¹¡£¤³¤ì¤Ï¡¢$x$ ÎóÌܤÎÆâÍƤò¿ôÃͤȤ·¤Æɾ²Á¤·¤Þ¤¹¡£ ʸ»úÎó¤ò»ý¤Ä¤È»×¤ï¤ì¤ëÎó¤Î¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë stringcolumn(x) ¤«¡¢ timecolumn(x, "timeformat") ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: plot datafile using (99.3.11), stringcolumn (15.3.19.3), timecolumn (15.3.17.2)¡£

15.3.19.2 Columnhead

´Ø¿ô columnhead(x) ¤Ï¡¢plot, splot, stats ¥³¥Þ¥ó¥É¤Î°ìÉô¤È¤·¤Æ¤Î¤ß»È ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Î $x$ ÎóÌܤÎÆâÍƤòʸ»úÎó¤È¤· ¤Æɾ²Á¤·¤Þ¤¹¡£Åµ·¿Åª¤Ë¤Ï¡¢¤³¤ì¤ÏÀèƬ¹Ô¤ò¥°¥é¥Õ¥¿¥¤¥È¥ë¤È¤·¤ÆŸ³«¤¹¤ë¤Î ¤Ë»ÈÍѤ·¤Þ¤¹¡£ °Ê²¼»²¾È: plot datafile using (99.3.11)¡£ Îã:


    set datafile columnheader
    plot for [i=2:4] DATA using 1:i title columnhead(i)

15.3.19.3 Stringcolumn

´Ø¿ô stringcolumn(x) ¤Ï¡¢¥Ç¡¼¥¿ÉÁ²è¤« fit ¤Ë¤ª¤±¤ë using »ØÄê¤Ç¤Î ¤ß»È¤¤¤Þ¤¹¡£¤³¤ì¤Ï $x$ ÎóÌܤÎÆâÍƤòʸ»úÎó¤È¤·¤ÆÊÖ¤·¤Þ¤¹¡£strcol(x) ¤Ï¡¢stringcolumn(x) ¤Î¾Êά·Á¤Ç¤¹¡£ ¤½¤Îʸ»úÎó¤ò¡¢»þ´Ö¤äÆüÉÕ¤Èǧ¼±¤µ¤»¤¿¤¤¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë timecolumn(x, "timeformat") ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: plot datafile using (99.3.11)¡£

15.3.19.4 Valid

´Ø¿ô valid(x) ¤Ï¡¢¥Ç¡¼¥¿ÉÁ²è¤« fit ¤Ë¤ª¤±¤ë using »ØÄê¤Î¼°¤ÎÃæ¤Ç¤· ¤«»È¤¤¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢ÌÀ¤é¤«¤Ê NaN Ãͤ䡢ÆþÎÏÎóÆâ¤Îͽ´ü¤»¤Ì¥´¥ß¤ò¸¡½Ð ¤·¤¿¤ê¡¢Â¿Ê¬¥Ç¥Õ¥©¥ë¥ÈÃͤËÃÖ¤­´¹¤¨¤¿¤ê¡¢NaN ¤ò»È¤Ã¤Æ¤µ¤é¤Ë·×»»¤ò¤¹¤ë¤³ ¤È¤òÈò¤±¤¿¤ê¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£·ç»ÃÍ ("missing") ¤È NaN (Èó¿ôÃÍ) ¥Ç¡¼ ¥¿ÃͤϤɤÁ¤é¤âÉÔÀµ¤Èǧ¼±¤µ¤ì¤Þ¤¹¤¬¡¢°Ê²¼¤Ï½ÅÍפǤ¹¤¬¡¢gnuplot ¤¬¤½¤ÎÎó ¤òËÜÅö¤Ë·ç»ÃͤǤ¢¤ë¤Èǧ¼±¤¹¤ë¤«¡¢¤Þ¤¿¤Ï·ç»Ãͥե饰¤ò´Þ¤ó¤Ç¤¤¤ë¤Èǧ¼± ¤·¤¿¾ì¹ç¡¢valid() ¤ò»ÈÍѤ¹¤ë¿ô¼°¤¬¸Æ¤Ó½Ð¤µ¤ì¤ëÁ°¤Ë¡¢¤½¤ÎÆþÎÏ¹Ô¤Ï¼Î¤Æ¤é ¤ì¤Æ¤·¤Þ¤¦¡¢¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: plot datafile using (99.3.11), missing (112.23.4)¡£

Îã:


    # È¢¤Î¤¢¤ëǧ¼±¤Ç¤­¤Ê¤¤Ãͤò¡¢Ìµ»ë¤¹¤ëÂå¤ï¤ê¤Ë¡¢´üÂÔÃͤǤ¢¤ëÄê¿ô
    # prior ¤È¤·¤Æ¡¢È¢Á´ÂΤ˴óÍ¿¤¹¤ë¤è¤¦¤Ë°·¤¦¡£
    plot DATA using 1 : (valid(2) ? $2 : prior) smooth unique

15.3.20 Value

A ¤¬¥æ¡¼¥¶¡¼ÄêµÁÊÑ¿ô¤Î̾Á°¤Ç¤¢¤ì¤Ð¡¢B = value("A") ¤Ï»ö¼Â¾å B = A ¤ÈÁ´ ¤¯Æ±¤¸¤Ç¤¹¡£¤³¤ì¤Ï¡¢ÊÑ¿ô¤Î̾Á°¼«¿È¤¬Ê¸»úÎóÊÑ¿ô¤Ë¼ý¤á¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤ËÍ­ ÍѤǤ¹¡£°Ê²¼»²¾È: user-defined variables (15.7)¡£¤³¤ì¤Ï¡¢ÊÑ¿ô̾¤ò¥Ç¡¼¥¿¥Õ¥¡ ¥¤¥ë¤«¤éÆɤ߼è¤ë¤³¤È¤â²Äǽ¤Ë¤·¤Þ¤¹¡£°ú¿ô¤¬¿ô¼°¤Ç¤¢¤ë¾ì¹ç¡¢value() ¤Ï¤½ ¤Î¿ô¼°¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£°ú¿ô¤¬Ê¸»úÎó¤Ç¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤ëÊÑ¿ô¤ËÂбþ¤¹¤ë¤â¤Î ¤¬¤Ê¤¤¾ì¹ç¡¢value() ¤Ï NaN ¤òÊÖ¤·¤Þ¤¹¡£

15.3.21 ñ¸ì¤Î¼è¤ê½Ð¤·¤Èñ¸ì¿ô (word, words)

word("string",n) ¤Ï¡¢Ê¸»úÎó (string) ¤Î n ÈÖÌܤÎñ¸ì¤òÊÖ¤·¤Þ¤¹¡£Î㤨 ¤Ð word("one two three",2) ¤Ïʸ»úÎó "two" ¤òÊÖ¤·¤Þ¤¹¡£

words("string") ¤Ï¡¢Ê¸»úÎó (string) ¤Îñ¸ì¿ô¤òÊÖ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ words(" a b c d") ¤Ï 4 ¤òÊÖ¤·¤Þ¤¹¡£

´Ø¿ô word ¤È words ¤Ï¡¢Ã±°ì°úÍÑÉä¡¢Æó½Å°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤â¡¢ ¸ÂÄêŪ¤Ç¤¹¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:


     print words("\"double quotes\" or 'single quotes'")   # 3

³«»Ï°úÍÑÉä¤ÎÁ°¤Ï¡¢¥¹¥Ú¡¼¥¹¤«¡¢¤Þ¤¿¤Ïʸ»úÎó¤ÎÀèƬ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢Ã±¸ìÆâ¡¢¤¢¤ë¤¤¤Ïñ¸ì½ª¤ï¤ê¤Ë¤Ä¤¯¥¢¥Ý¥¹¥È¥í¥Õ¥£¡¼ (') ¤Ï¡¢¤½¤ì ¤¾¤ì¤Îñ¸ì¤ÎÍ×ÁǤǤ¢¤ë¤È¸«¤Ê¤µ¤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹:


     print words("Alexis' phone doesn't work") # 4

°úÍÑÉäʸ»ú¤Î¥¨¥¹¥±¡¼¥×¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤Î¤Ç¡¢¤¢¤ë°úÍÑÉä¤ò°Ý»ý¤·¤¿ ¤¤¾ì¹ç¤Ï¡¢¤½¤ì¤¾¤ì¤òÊ̤μïÎà¤Î°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó:


     s = "Keep \"'single quotes'\" or '\"double quotes\"'"
     print word(s, 2) # 'single quotes'
     print word(s, 4) # "double quotes"

ºÇ¸å¤ÎÎã¤Ç¤Ï¡¢°úÍÑÉä¤Î¥¨¥¹¥±¡¼¥×¤¬Ê¸»úÎó¤ÎÄêµÁ»þ¤Î¤ß¤ËɬÍפǤ¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

split("string", "sep") ¤Ï¡¢ split("string", "sep") ¤Ï¡¢"sep" Æâ¤Îʸ»ú¤ò¥Õ¥£¡¼¥ë¥É¤Î¶èÀÚ¤ê¤È¤·¤Æ »ÈÍѤ·¡¢Ê¸»úÎó "string" ¤ÎÃæ¿È¤ò¸Ä¡¹¤Î¥Õ¥£¡¼¥ë¥É¤ËÀÚ¤êʬ¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢ ¤½¤ÎÍ×ÁǤ¬¸µ¤Îʸ»úÎó¤Î¥Õ¥£¡¼¥ë¥É¤Ë¤½¤ì¤¾¤ìÂбþ¤¹¤ëʸ»úÎó¤ÎÇÛÎó¤òÊÖ¤·¤Þ ¤¹¡£2 ¤ÄÌܤΥѥé¥á¡¼¥¿ "sep" ¤Ï¥ª¥×¥·¥ç¥ó¤Ç¡¢"sep" ¤ò¾Êά¤·¤¿¾ì¹ç¡¢¤Þ ¤¿¤Ï¶õÇòʸ»ú°ì¤Ä¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥Õ¥£¡¼¥ë¥Éʸ»úÎó¤òǤ°Õ¸Ä¤Î¥Û¥ï¥¤¥È¥¹¥Ú¡¼ ¥¹ (¥¹¥Ú¡¼¥¹¡¢¥¿¥Ö¡¢²þ¥Ú¡¼¥¸¡¢²þ¹Ô¡¢Éüµ¢) ¤ÇÀÚ¤êʬ¤±¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì ¹ç¤Ï¡¢¶èÀÚ¤ê¤Ï "sep" Æâ¤Î´°Á´¤Êʸ»úÎó¤Ë¥Þ¥Ã¥Á¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

°Ê²¼¤Î 3 ¤Ä¤ÎÎã¤Ï¡¢¤¤¤º¤ì¤âÇÛÎó [ "A", "B", "C", "D" ] ¤òÀ¸À®¤·¤Þ¤¹¡£


   t1 = split( "A B C D" )
   t2 = split( "A B C D", " ")
   t3 = split( "A;B;C;D", ";")

¤·¤«¤·¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É


   t4 = split( "A;B; C;D", "; " )

¤Ï¡¢2 ¤Ä¤Îʸ»úÎó¤Î¤ß¤ò»ý¤ÄÇÛÎó [ "A;B", "C;D" ] ¤òÀ¸À®¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢ 2 ʸ»ú¤Î¥Õ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»úÎó "; " ¤¬ 1 ¤Ä¤·¤«¸«¤Ä¤«¤é¤Ê¤¤¤«¤é¤Ç¤¹¡£

Ãí°Õ: ʸ»úÎó¤ò¡¢1 ʸ»ú¤º¤Ä¤ÎÇÛÎó¤ËÊݸ¤¹¤ë¤¿¤á¤Ë¡¢¶èÀÚ¤ê¤È¤·¤Æ¶õʸ»ú¤ò ÀßÄꤹ¤ë¤³¤È¤Ï¡¢¸½ºß¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢Âå¤ï¤ê¤Ë 1 ʸ»ú¤ÎÉô ʬʸ»úÎó¤ò»È¤¦¤³¤È¤Ç¼Â¸½¤Ç¤­¤Þ¤¹: Array[i] = "string"[i:i]

join(array, "sep") ¤Ï¡¢ÇÛÎó¤Îʸ»úÎóÍ×ÁǤò¡¢"sep" ¤Îʸ»úÎó¤Ç¶èÀÚ¤é¤ì ¤¿¥Õ¥£¡¼¥ë¥É¤ÎÎó¤È¤·¤Æ°ì¤Ä¤Îʸ»úÎó¤ËÏ¢·ë¤·¤Þ¤¹¡£Ê¸»úÎó¤Ç¤Ê¤¤ÇÛÎóÍ×ÁǤϡ¢ ¶õ¤Î¥Õ¥£¡¼¥ë¥É¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ÎµÕ¤Ë split ´Ø¿ô¤Ï°ì¤Ä¤Îʸ»úÎó¤òÊ£¿ô ¤Î¥Õ¥£¡¼¥ë¥É¤ËÀÚ¤êʬ¤±¤Æ°ì¤Ä¤ÎÇÛÎó¤òÀ¸À®¤·¤Þ¤¹¡£ Îã:


   array A = ["A", "B", , 7, "E"]
   print join(A,";")
         A;B;;;E

trim(" padded string ") ¤Ï¡¢¸µ¤Îʸ»úÎó¤ÎÁ°¸å¤Ë¤¢¤ë¶õÇòÉôʬ¤ò¼è¤ê½ü ¤¤¤¿Ê¸»úÎó¤òÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Í¾·×¤Ê¶õÇò¤ò»ý¤Á¤¦¤ëÆþÎϥǡ¼¥¿Îó¤Îʸ»úÎó Ʊ»Î¤òÈæ³Ó¤¹¤ëºÝ¤ËÍ­ÍѤǤ¹¡£Îã:


    plot FOO using 1:( trim(strcol(3)) eq "A" ? $2 : NaN )

15.3.22 Zeta

zeta(s) ¤Ï¡¢Ê£ÁÇÊÑ¿ô¡¢Ê£ÁÇ¿ôÃͤΥ꡼¥Þ¥ó¥¼¡¼¥¿´Ø¿ô¤Ç¤¹¡£          $\zeta$(s) = $\Sigma^{{\infty}}_{{k=1}}$k-s

¤³¤Î¼ÂÁõ¤Ï¡¢P. Borwein [2000] Canadian Mathematical Society Conference Proceedings ¤Ç¥¢¥ë¥´¥ê¥º¥à 3 ¤È¤·¤Æµ­½Ò¤µ¤ì¤Æ¤¤¤ë¿¹à¼°µé¿ô¤ò»ÈÍѤ·¤Æ ¤¤¤Þ¤¹¡£Ì¾Ìܾå¤ÎÀºÅ٤ϡ¢Ê£ÁÇÊ¿Ì̾å¤Ç 1.e-16 ¤Ç¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¡¢¥¼¡¼ ¥¿´Ø¿ô¤Î¼«ÌÀ¤Ç¤Ê¤¤ÎíÅÀ¤¬´°Á´¤Ë 0 ¤Èɾ²Á¤µ¤ì¤ë¤³¤È¤òÊݾڤϤ·¤Þ¤»¤ó¡£

15.4 ±é»»»Ò (operators)

gnuplot ¤Î±é»»»Ò¤Ï¡¢C ¸À¸ì¤Î±é»»»Ò¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢ÆäËÃí°Õ¤¬¤Ê¤±¤ì ¤ÐÁ´¤Æ¤Î±é»»»Ò¤¬À°¿ô¡¢¼Â¿ô¡¢Ê£ÁÇ¿ô¤Î°ú¿ô¤ò¼è¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤Þ¤¿¡¢ FORTRAN ¤Ç»È¤¨¤ë ** (Îß¾è) ±é»»»Ò¤â¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

±é»»»Ò¤ÎÍ¥Àè½ç°Ì¤Ï Fortran ¤ä C ¤ÈƱ¤¸¤Ç¤¹¡£¤½¤ì¤é¤Î¸À¸ìƱÍÍ¡¢±é»»¤Îɾ ²Á¤µ¤ì¤ë½ç½ø¤òÊѤ¨¤ë¤¿¤á¤Ë¤«¤Ã¤³¤¬»È¤ï¤ì¤Þ¤¹¡£¤è¤Ã¤Æ -2**2 = -4 ¤Ç¡¢ (-2)**2 = 4 ¤Ç¤¹¡£

15.4.1 ñ¹à±é»»»Ò (Unary)

°Ê²¼¤Ï¡¢Ã±¹à±é»»»Ò¤Î°ìÍ÷¤Ç¤¹:

ñ¹à±é»»»Ò
µ­¹æ Îã ÀâÌÀ
- -a ¥Þ¥¤¥Ê¥¹Éä¹æ
+ +a ¥×¥é¥¹Éä¹æ (²¿¤â¤·¤Ê¤¤)
~ ~a * 1 ¤ÎÊä¿ô (¥Ó¥Ã¥Èȿž)
! !a * ÏÀÍýŪÈÝÄê
! a! * ³¬¾è
$ $3 * `using` »ØÄê¾å¤Î¥Ç¡¼¥¿Îó
| |A| ÇÛÎó A ¤ÎÍ×ÁÇ¿ô

ÀâÌÀ¤ËÀ±°õ (*) ¤Î¤Ä¤¤¤¿±é»»»Ò¤Î°ú¿ô¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

³¬¾è±é»»»Ò¤Ï¡¢N! ¤¬½½Ê¬¾®¤µ¤±¤ì¤Ð (64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤Ï N <= 20) À°¿ô¤òÊÖ ¤·¡¢Â礭¤Ê N ¤ÎÃͤËÂФ·¤Æ¤Ï¼Â¿ô¤Ç¤Î¶á»÷ÃͤòÊÖ¤·¤Þ¤¹¡£

´ð¿ô¥ª¥Ú¥ì¡¼¥¿ |...| ¤Ï¡¢ÇÛÎó A ¤ÎÍ×ÁÇ¿ô |A| ¤òÊÖ¤·¤Þ¤¹¡£¥Ç¡¼¥¿¥Ö¥í¥Ã ¥¯ $DATA ¤ËŬÍѤ·¤¿¾ì¹ç¤Ï¡¢|$DATA| ¤Ï¥Ç¡¼¥¿¹Ô¿ô¤òÊÖ¤·¤Þ¤¹¡£

15.4.2 Æó¹à±é»»»Ò (Binary)

°Ê²¼¤Ï¡¢Æó¹à±é»»»Ò¤Î°ìÍ÷¤Ç¤¹:

Æó¹à±é»»»Ò
µ­¹æ Îã ÀâÌÀ
** a**b Îß¾è
* a*b ÀÑ
/ a/b ¾¦
% a%b * ;¤ê
+ a+b ÏÂ
- a-b º¹
== a==b Åù¤·¤¤
!= a!=b Åù¤·¤¯¤Ê¤¤
< a<b ¤è¤ê¾®¤µ¤¤
<= a<=b °Ê²¼
> a>b ¤è¤êÂ礭¤¤
>= a>=b °Ê¾å
<< 0xff<<1 Éä¹æ¤Ê¤·º¸¥·¥Õ¥È
>> 0xff>>1 Éä¹æ¤Ê¤·±¦¥·¥Õ¥È
& a&b * ¥Ó¥Ã¥ÈÀÑ (AND)
^ a^b * ¥Ó¥Ã¥ÈÇÓ¾ŪÏÀÍýÏ (XOR)
| a|b * ¥Ó¥Ã¥ÈÏ (OR)
&& a&&b * ÏÀÍýŪ AND
|| a||b * ÏÀÍýŪ OR
= a = b ÂåÆþ
, (a,b) Îß¼¡É¾²Á
. A.B ʸ»úÎó¤ÎÏ¢·ë
eq A eq B ʸ»úÎó¤¬Åù¤·¤¤
ne A ne B ʸ»úÎó¤¬Åù¤·¤¯¤Ê¤¤

ÀâÌÀ¤ËÀ±°õ (*) ¤Î¤Ä¤¤¤¿±é»»»Ò¤Î°ú¿ô¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ Âçʸ»ú¤Î A,B ¤Ï±é»»»Ò¤¬Ê¸»úÎó°ú¿ô¤òÍ׵᤹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

ÏÀÍý±é»»»Ò¤Î AND (&&) ¤È OR (||) ¤Ï C ¸À¸ìƱÍͤËɬÍ׺Ǿ®¸Â¤Îɾ²Á¤·¤«¤· ¤Þ¤»¤ó¡£¤¹¤Ê¤ï¤Á¡¢&& ¤ÎÂè 2 °ú¿ô¤Ï¡¢Âè 1 °ú¿ô¤¬µ¶¤Ê¤é¤Ðɾ²Á¤µ¤ì¤Þ¤» ¤ó¤·¡¢|| ¤ÎÂè 2 °ú¿ô¤Ï¡¢Âè 1 °ú¿ô¤¬¿¿¤Ê¤é¤Ðɾ²Á¤µ¤ì¤Þ¤»¤ó¡£

Îß¼¡É¾²Á (,) ¤Ï¡¢¥«¥Ã¥³¤ÎÃæ¤Ç¤Î¤ßɾ²Á¤µ¤ì¡¢º¸¤«¤é±¦¤Ø½ç¤Ë¼Â¹Ô¤¹¤ë¤³¤È ¤¬Êݾڤµ¤ì¡¢ºÇ¤â±¦¤Î¼°¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡£

15.4.3 »°¹à±é»»»Ò (Ternary)

°ì¤Ä¤À¤±»°¹à±é»»»Ò¤¬¤¢¤ê¤Þ¤¹:

»°¹à±é»»»Ò
µ­¹æ Îã ÀâÌÀ
?: a?b:c »°¹à±é»»»Ò

»°¹à±é»»»Ò¤Ï C ¤Î¤â¤Î¤ÈƱ¤¸Æ¯¤­¤ò¤·¤Þ¤¹¡£ºÇ½é¤Î°ú¿ô (a) ¤ÏÀ°¿ô¤Ç¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó¡£¤³¤ÎÃͤ¬É¾²Á¤µ¤ì¡¢¤½¤ì¤¬¿¿ (¥¼¥í¤Ç¤Ê¤¤) ¤Ê¤é¤Ð 2 ÈÖÌܤΠ°ú¿ô (b) ¤¬É¾²Á¤µ¤ì¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 3 ÈÖÌܤΰú¿ô (c) ¤¬ ɾ²Á¤µ¤ì¡¢¤½¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡£

»°¹à±é»»»Ò¤Ï¡¢¶èʬŪ¤ËÄêµÁ¤µ¤ì¤¿´Ø¿ô¤ä¡¢¤¢¤ë¾ò·ï¤¬Ëþ¤¿¤µ¤ì¤¿¾ì¹ç¤Ë¤Î¤ß ÅÀ¤òÉÁ²è¤¹¤ë¡¢¤È¤¤¤Ã¤¿¤³¤È¤ò¹Ô¤Ê¤¦¾ì¹ç¤ËÍ­ÍѤǤ¹¡£

Îã:

0 <= x < 1 ¤Ç¤Ï sin(x) ¤Ë¡¢1 <= x < 2 ¤Ç¤Ï 1/x ¤ËÅù¤·¤¯¤Æ¡¢¤½¤ì°Ê³°¤Î x ¤Ç¤ÏÄêµÁ¤µ¤ì¤Ê¤¤´Ø¿ô¤òÉÁ²è:


     f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0
     plot f(x)

gnuplot ¤ÏÉÁ²è»þ¤Ï̤ÄêµÁÃͤËÂФ·¤Æ¤Ï²¿¤âɽ¼¨¤»¤º¤Ë¤¿¤À̵»ë¤¹¤ë¤Î¤Ç¡¢ ºÇ¸å¤Î¾ì¹ç¤Î´Ø¿ô (1/0) ¤ÏÅÀ¤òÁ´¤¯½ÐÎϤ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤Þ ¤¿¡¢¤³¤Î´Ø¿ôÉÁ²è¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤¬ lines (ÀþÉÁ²è) ¤Î¾ì¹ç¡¢ÉÔϢ³ÅÀ (x=1) ¤Î½ê¤âϢ³´Ø¿ô¤È¤·¤ÆÀþ¤¬·ë¤Ð¤ì¤ë¤³¤È¤Ë¤âÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ÎÅÀ¤òÉÔÏ¢ ³¤Ë¤Ê¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢´Ø¿ô¤ò 2 ¤Ä¤ÎÉôʬ¤½¤ì¤¾¤ì¤Ëʬ¤±¤Æ¤¯¤À¤µ¤¤¡£

¥Õ¥¡¥¤¥ë 'file' ¤Î¥Ç¡¼¥¿¤Ç¡¢4 ÎóÌܤΥǡ¼¥¿¤¬Éé¤Ç¤Ê¤¤¤È¤­¤À¤±¡¢1 ÎóÌܤΠ¥Ç¡¼¥¿¤Ë´Ø¤¹¤ë 2 ÎóÌÜ¤È 3 ÎóÌܤΥǡ¼¥¿¤ÎÊ¿¶ÑÃͤòÉÁ²è:


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

using ¤Î½ñ¼°¤ÎÀâÌÀ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: plot datafile using (99.3.11)¡£

15.5 ÏÂ (summation)

Ï¤μ°¤Ï¡¢°Ê²¼¤Î·Á¼°¤Çɽ¤·¤Þ¤¹:


     sum [<var> = <start> : <end>] <expression>

¤³¤³¤Ç <var> ¤Ï¡¢<start> ¤«¤é <end> ¤Þ¤Ç¤ÎÀ°¿ôÃͤò½ç¤Ë¼è¤ëÀ°¿ôÊÑ¿ô¤È¤· ¤Æ°·¤ï¤ì¤Þ¤¹¡£¤½¤Î³ÆÃͤËÂФ·¤Æ¡¢¼° <expression> ¤ÎÃͤ¬¹ç·×ÃͤËÄɲ䵤졢 ºÇ½ªÅª¤Ê¹ç·×Ãͤ¬¤³¤ÎÏ¤μ°¤ÎÃͤȤʤê¤Þ¤¹¡£ Îã:


     print sum [i=1:10] i
         55.
     # °Ê²¼¤Ï plot 'data' using 1:($2+$3+$4+$5+$6+...) ¤ÈƱÅù
     plot 'data' using 1 : (sum [col=2:MAXCOL] column(col))

<expression> ¤Ï¡¢É¬¤º¤·¤âÊÑ¿ô <var> ¤ò´Þ¤àɬÍפϤ¢¤ê¤Þ¤»¤ó¡£<start> ¤È <end> ¤ÏÊÑ¿ôÃͤä¿ô¼°¤Ç»ØÄê¤â¤Ç¤­¤Þ¤¹¤¬¡¢¤½¤ì¤é¤ÎÃͤÏưŪ¤ËÊѹ¹¤¹¤ë¤³¤È ¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤½¤¦¤Ç¤Ê¤¤¤ÈÉûºîÍѤ¬µ¯¤³¤êÆÀ¤Þ¤¹¡£<end> ¤¬ <start> ¤è¤ê ¾®¤µ¤¤¾ì¹ç¤Ï¡¢Ï¤ÎÃÍ¤Ï 0 ¤È¤Ê¤ê¤Þ¤¹¡£

15.6 ÄêµÁºÑ¤ßÊÑ¿ô (Gnuplot-defined variables)

gnuplot ¤Ï¡¢¥×¥í¥°¥é¥à¤Î¸½ºß¤ÎÆâÉô¾õÂÖ¤ÈľÁ°¤ÎÉÁ²è¤òÈ¿±Ç¤¹¤ë¤è¤¦¤ÊÆÉ¤ß ½Ð¤·ÀìÍѤÎÊÑ¿ô¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÑ¿ô¤Î̾Á°¤Ï¡¢Î㤨¤Ð GPVAL_TERM, GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN ¤Î¤è¤¦¤Ë "GPVAL_" ¤Ç »Ï¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤é¤¹¤Ù¤Æ¤Î°ìÍ÷¤È¤½¤ÎÃͤò¸«¤ë¤Ë¤Ï¡¢show variables all ¤ÈÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À¤·¡¢¼´¤Î¥Ñ¥é¥á¡¼¥¿¤Ë´ØÏ¢¤¹¤ëÃÍ (ÈÏ°Ï¡¢Âпô¼´¤Ç ¤¢¤ë¤«Åù) ¤Ï¡¢¸½ºß set ¤·¤¿¤â¤Î¤Ç¤Ï¤Ê¤¯¡¢ºÇ¸å¤ËÉÁ²è¤µ¤ì¤¿¤â¤Î¤¬»ÈÍÑ ¤µ¤ì¤Þ¤¹¡£

Îã: ÅÀ [X,Y] ¤Î¥¹¥¯¥ê¡¼¥óÈæ¤Ç¤ÎºÂɸ¤ò·×»»¤¹¤ëÊýË¡


    GRAPH_X = (X - GPVAL_X_MIN) / (GPVAL_X_MAX - GPVAL_X_MIN)
    GRAPH_Y = (Y - GPVAL_Y_MIN) / (GPVAL_Y_MAX - GPVAL_Y_MIN)
    SCREEN_X = GPVAL_TERM_XMIN + GRAPH_X * (GPVAL_TERM_XMAX - GPVAL_TERM_XMIN)
    SCREEN_Y = GPVAL_TERM_YMIN + GRAPH_Y * (GPVAL_TERM_YMAX - GPVAL_TERM_YMIN)
    FRAC_X = SCREEN_X * GPVAL_TERM_SCALE / GPVAL_TERM_XSIZE
    FRAC_Y = SCREEN_Y * GPVAL_TERM_SCALE / GPVAL_TERM_YSIZE

Æɤ߽Ф·ÀìÍÑÊÑ¿ô GPVAL_ERRNO ¤Ï¡¢Ç¤°Õ¤Î gnuplot ¥³¥Þ¥ó¥É¤¬¤¢¤ë¥¨¥é¡¼¤Î ¤¿¤á¤ËÁ᤯½ª¤ï¤Ã¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Ë 0 ¤Ç¤Ê¤¤Ãͤ˥»¥Ã¥È¤µ¤ì¡¢Ä¾Á°¤Î¥¨¥é¡¼ ¥á¥Ã¥»¡¼¥¸¤Ïʸ»úÎóÊÑ¿ô GPVAL_ERRMSG ¤ËÊݸ¤µ¤ì¤Þ¤¹¡£GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Ï¡¢¥³¥Þ¥ó¥É reset errors ¤ò»È¤Ã¤Æ¥¯¥ê¥¢¤Ç¤­¤Þ¤¹¡£

mouse µ¡Ç½¤¬»È¤¨¤ëÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ï¡¢"MOUSE_" ¤Ç»Ï¤Þ¤ëÆɤ߽Ф·ÀìÍÑ ÊÑ¿ô¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: mouse variables (22.2)¡£

fit µ¡Ç½¤Ï¡¢"FIT_" ¤Ç»Ï¤Þ¤ë¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤ò»ÈÍѤ·¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤è¤¦ ¤Ê̾Á°¤ò»È¤¦¤Î¤ÏÈò¤±¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£set fit errorvariables ¤ò»ÈÍѤ¹ ¤ë¤È¡¢³ÆÅö¤Æ¤Ï¤áÊÑ¿ô¤Î¥¨¥é¡¼¤Ï¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿Ì¾¤Ë "_err" ¤òÄɲä·¤¿ÊÑ ¿ô¤ËÊݸ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: fit (88)¡£

°Ê²¼¤â»²¾È: user-defined variables (15.7), reset errors (109), mouse variables (22.2), fit (88)¡£

15.7 ¥æ¡¼¥¶ÄêµÁ¤ÎÊÑ¿ô¤È´Ø¿ô (User-defined)

¿·¤¿¤Ê¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤È 1 ¸Ä¤«¤é 12 ¸Ä¤Þ¤Ç¤Î°ú¿ô¤ò»ý¤Ä¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤ò¡¢ Ǥ°Õ¤Î¾ì½ê¤ÇÄêµÁ¤·¤¿¤ê»È¤Ã¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤ì¤Ï plot ¥³¥Þ¥ó ¥É¾å¤Ç¤â²Äǽ¤Ç¤¹¡£

¥æ¡¼¥¶ÄêµÁ´Ø¿ô½ñ¼°:


     <func-name>( <dummy1> {,<dummy2>} ... {,<dummy12>} ) = <expression>

¤³¤³¤Ç <expression> ¤Ï¡¢²¾ÊÑ¿ô <dummy1> ¤«¤é <dummy12> ¤Çɽ¤µ¤ì¤ë¿ô¼° ¤Ç¤¹¡£¤³¤Î·Á¼°¤Î´Ø¿ôÄêµÁ¤Ï¡¢1 ¹Ô¤Ç¤Î»ÈÍѤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤è¤êÊ£»¨¤Ç Ê£¿ô¹Ô¤«¤é¤Ê¤ë´Ø¿ô¤Ï¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤Î»ÅÁȤߤò»È¤¨¤ÐÄêµÁ¤Ç¤­¤Þ¤¹ (¸½¥Ð¡¼ ¥¸¥ç¥ó¤Ç¤Î¿·µ¡Ç½)¡£°Ê²¼»²¾È: function blocks (89)¡£

¥æ¡¼¥¶ÄêµÁÊÑ¿ô½ñ¼°:


     <variable-name> = <constant-expression>

Îã:


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


     file = "mydata.inp"
     file(n) = sprintf("run_%d.dat",n)

ºÇ¸å¤Î 2 ¹Ô¤ÎÎã¤Ï¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎóÊÑ¿ô¤È¡¢¥æ¡¼¥¶ÄêµÁʸ»úÎó´Ø¿ô¤ò°ÕÌ£ ¤·¤Æ¤¤¤Þ¤¹¡£

ÊÑ¿ô pi (3.14159...) ¤È NaN (IEEE Èó¿ô ("Not a Number")) ¤Ï¤¢¤é¤« ¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤¬É¬Íפʤ±¤ì¤Ð¡¢Â¾¤Î¤â¤Î¤ËºÆÄêµÁ¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¤·¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¸µ¤ÎÃͤËÉüµ¢¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹:


     NaN = GPVAL_NaN
     pi  = GPVAL_pi

¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊÑ¿ô¤¬¡¢Î㤨¤ÐÂÐÏ÷¿Æþ½ÐÎÏ·Á¼°¤Ç¤Î¥Þ¥¦¥¹Áàºî¤äÅö¤Æ¤Ï¤á (fit) ¤Ê¤É¤Î gnuplot ¤ÎÆ°ºî¾õÂ֤˱þ¤¸¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï °Ê²¼»²¾È: gnuplot-defined variables (15.6)¡£

¤¢¤ëÊÑ¿ô V ¤¬´û¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ï¡¢¼° exists("V") ¤Ç¥Á¥§¥Ã¥¯¤Ç ¤­¤Þ¤¹¡£Îã:


     a = 10
     if (exists("a")) print "a is defined"
     if (!exists("b")) print "b is not defined"

ÊÑ¿ô̾¤ä´Ø¿ô̾¤Î̿̾µ¬Â§¤Ï¡¢ÂçÄñ¤Î¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤ÈƱ¤¸¤Ç¡¢ÀèƬ¤Ï¥¢ ¥ë¥Õ¥¡¥Ù¥Ã¥È¤Ç¡¢¤½¤Î¸å¤Îʸ»ú¤Ï¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¡¢¿ô»ú¡¢"_" ¤¬»È¤¨¤Þ¤¹¡£

³Æ´Ø¿ô¤ÎÄêµÁ¼°¤Ï¡¢'GPFUN_' ¤È¤¤¤¦ÀÜƬ¼­¤ò»ý¤ÄÆÃÊ̤Êʸ»úÎóÃÍÊÑ¿ô¤È¤·¤Æ ÍøÍѤǤ­¤Þ¤¹¡£

Îã:


     set label GPFUN_sinc at graph .05,.95

°Ê²¼»²¾È: show functions (114.2), functions (99.4), gnuplot-defined variables (15.6), macros (29.2), value (15.3.20)¡£

15.8 ÇÛÎó (arrays)

ÇÛÎó¤Ï¡¢¥æ¡¼¥¶ÊÑ¿ô¤Îź»úÉÕ¤­¥ê¥¹¥È¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£°ì¤Ä¤ÎÇÛÎó¤Î Í×ÁǤϡ¢°ì¤Ä¤ÎÊÑ¿ô·¿¤Ë¤Ï¸ÂÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ÇÛÎó¤Ï¡¢»²¾È¤¹¤ëÁ°¤ËÌÀ¼¨Åª ¤Ëºî¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ÇÛÎó¤òºîÀ®¤·¤¿¸å¤Ç¡¢¤½¤Î¥µ¥¤¥º¤òÊѹ¹¤¹ ¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£ÇÛÎó¤ÎÍ×ÁǤϡ¢Àë¸À»þ¤ËÄ󶡤µ¤ì¤Æ¤Ê¤¤¸Â¤ê¡¢ºÇ½é¤Ï̤ ÄêµÁ (undefined) ¤Ç¤¹¡£¤Û¤È¤ó¤É¤Î¾ìÌ̤ǡ¢Ì¾Á°ÉÕ¤­¥æ¡¼¥¶ÊÑ¿ô¤ÎÂå¤ï¤ê¤Ë ÇÛÎóÍ×ÁǤòÍøÍѤǤ­¤Þ¤¹¡£

ÇÛÎó A ¤ÎÍ×ÁÇ¿ô¤Ï¡¢¿ô¼° |A| ¤Ç¼èÆÀ¤Ç¤­¤Þ¤¹¡£

Îã:


    array A[6]
    A[1] = 1
    A[2] = 2.0
    A[3] = {3.0, 3.0}
    A[4] = "four"
    A[6] = A[2]**3
    array B[6] = [ 1, 2.0, A[3], "four", , B[2]**3 ]
    array C = split("A B C D E F")


    do for [i=1:6] { print A[i], B[i] }
        1 1
        2.0 2.0
        {3.0, 3.0} {3.0, 3.0}
        four four
        <undefined> <undefined>
        8.0 8.0

Ãí°Õ: ÇÛÎó¤ÈÊÑ¿ô¤Ï¡¢Æ±¤¸Ì¾Á°¶õ´Ö¤ò¶¦Í­¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¤¢¤é¤«¤¸¤á FOO ¤È¤¤¤¦Ì¾Á°¤ÎÇÛÎ󤬤¢¤ë¾ì¹ç¡¢FOO ¤È¤¤¤¦Ì¾Á°¤ÎÊÑ¿ô¤Ëʸ»úÎó¤ò³ä¤êÅö¤Æ¤ë¤È ÇÛÎó¤òÇ˲õ¤·¤Þ¤¹¡£

ÇÛÎó¤Î̾Á°¤ò plot, splot, fit, stats ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤ë¤³¤È¤â¤Ç ¤­¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢ÇÛÎó¤Îź»ú¤¬¥Õ¥¡¥¤¥ë¤Î 1 ÎóÌܤÎÃÍ¤Ç (1 ¤«¤é size ¤Þ ¤Ç)¡¢¤½¤ÎÃÍ A[i] ¤Î¼Â¿ôÉôʬ real(A[i]) ¤¬¥Õ¥¡¥¤¥ë¤Î 2 ÎóÌÜ¡¢µõ¿ôÉôʬ imag(A[i]) ¤¬¥Õ¥¡¥¤¥ë¤Î 3 ÎóÌܤǤ¢¤ë¤è¤¦¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òÍ¿¤¨¤¿¤³¤È¤È ƱÅù¤Ë¤Ê¤ê¤Þ¤¹¡£

Îã:


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

¤¿¤À¤·¡¢plot »þ¤ËÊ£ÁÇ¿ôÃÍÇÛÎó¤Îµõ¿ôÉôʬ¤òÉÁ²è¤·¤¿¤¤¾ì¹ç¡¢¤½¤ÎÃÍ¤Ï imag(A[$1]) ¤«¤Þ¤¿¤Ï $3 ¤È¤·¤Æ»²¾È¤Ç¤­¤Þ¤¹¡£¤è¤Ã¤Æ°Ê²¼¤Î 2 ¤Ä¤Î¥³¥Þ¥ó ¥É¤ÏƱÅù¤Ç¤¹¡£


    plot A using (real(A[$1])) : (imag(A[$1]))
    plot A using 2:3

15.8.1 ÇÛÎó´Ø¿ô (array functions)

gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤è¤ê¡¢ÇÛÎó¤ò´Ø¿ô¤ËÅϤ¹¤³¤È¤â¡¢ÊÖ¤êÃͤˤ¹¤ë¤³¤È ¤â¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£Î㤨¤Ð¡¢2 ¤Ä¤Î¥µ¥¤¥º¤ÎƱ¤¸¿ôÃÍÇÛÎó¤Î¥É¥Ã¥ÈÀÑ (ÆâÀÑ) ¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤Ç¤­¤Þ¤¹¡£


    dot(A,B) = (|A| != |B|) ? NaN : sum [i=1:|A|] A[i] * B[i]

ÇÛÎó¤ò¤ä¤ê¤È¤ê¤¹¤ëÁȤ߹þ¤ß´Ø¿ô¤Ë¤Ï¡¢ÇÛÎó¤Îʬ³äÁàºî array[min:max] ¤äź »ú¼èÆÀ´Ø¿ô index(Array,value) ¤¬¤¢¤ê¤Þ¤¹¡£


    T = split("A B C D E F")
    U = T[3:4]
    print T
       [ "A", "B", "C", "D", "E", "F" ]
    print U
       [ "C", "D" ]
    print index( T, "D" )
       4

¤³¤ÎÎã¤Î T ¤È U ¤Ï¡¢¤½¤ì¤¬°ÊÁ°¤Ë¤É¤Î¤è¤¦¤ËÀë¸À¤µ¤ì¤Æ¤¤¤¿¤«¤É¤¦¤«¤Ë´Ø¤ï ¤é¤º¡¢¤³¤ÎÎã¤Î»þÅÀ¤Ç¤ÏÇÛÎó¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

15.8.2 ÇÛÎó¤Îź»úÉÕ¤± (Array indexing)

Í×ÁǤ¬ N ¸Ä¤ÎÇÛÎó (array) ¤Îź»ú¤Ï¡¢1 ¤«¤é N ¤Þ¤Ç¤È¤Ê¤ê¤Þ¤¹¡£ ÇÛÎó A ¤Î i ÈÖÌܤÎÍ×ÁǤϡ¢A[i] ¤È»²¾È¤·¤Þ¤¹¡£ ÁȤ߹þ¤ß´Ø¿ô index(Array, <value>) ¤Ï¡¢A[i] ¤¬ <value> ¤ËÅù¤·¤¤¤è¤¦ ¤ÊÀ°¿ô i ¤òÊÖ¤·¤Þ¤¹¡£¤³¤³¤Ç¡¢<value> ¤Ï¿ôÃÍ (À°¿ô¡¢¼Â¿ô¡¢¤Þ¤¿¤ÏÊ£ÁÇ¿ô) ¤Èɾ²Á¤µ¤ì¤ëǤ°Õ¤Î¿ô¼°¡¢¤¢¤ë¤¤¤Ïʸ»úÎó¤Ç¤¹¡£ÇÛÎó¤ÎÍ×ÁǤȤϷ¿¤ÈÃͤÎξÊý ¤¬°ìÃפ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï¡¢0 ¤òÊÖ¤·¤Þ¤¹¡£


   array A = [ 4.0, 4, "4" ]
   print index( A, 4 )
         2
   print index( A, 2.+2. )
         1
   print index( A, "D4"[2:2] )
         3

16 ¥Õ¥©¥ó¥È

gnuplot ¤½¤ì¼«¿È¤Ë¤Ï¤É¤ó¤Ê¥Õ¥©¥ó¥È¤â´Þ¤Þ¤ì¤Æ¤Ï¤ª¤é¤º¡¢³°Éô¥Õ¥©¥ó¥È½èÍý ¤ËÍê¤Ã¤Æ¤¤¤ë¤À¤±¤Ç¡¢¤½¤ÎºÙÉô¤ÏÈᤷ¤¤¤³¤È¤Ë½ÐÎÏ·Á¼°Ëè¤Ë°Û¤Ê¤ê¤Þ¤¹¡£¤³¤³ ¤Ç¤Ï¡¢Ê£¿ô¤Î½ÐÎÏ·Á¼°¤ËŬÍѤµ¤ì¤ë¥Õ¥©¥ó¥Èµ¡¹½¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Þ¤¹¡£¤³¤³¤Ë ¾å¤²¤¿¤â¤Î°Ê³°¤Î½ÐÎÏ·Á¼°¤Ç¤Î¥Õ¥©¥ó¥È¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢¤½¤Î½ÐÎÏ·Á¼°¤Î¥É ¥­¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

°ì»þŪ¤Ë¡¢Î㤨¤Ð Adobe Symbol ¥Õ¥©¥ó¥È¤Î¤è¤¦¤ÊÆÃÊ̤ʥե©¥ó¥È¤ËÀÚ¤êÂؤ¨ ¤ë¤³¤È¤Ç¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤Ç¤Ï¤Ê¤¤µ­¹æ¤òÆþ¤ì¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢¸½ºß¤Ï¡¢ UTF-8 ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò»ÈÍѤ·¤Æ¡¢Â¾¤Îʸ»ú¤ÈƱÍͤˤ½¤Îµ­¹æ¤ò°·¤¦¤Î¤¬¤è ¤êÎɤ¤ÊýË¡¤Ç¤·¤ç¤¦¡£¤½¤Î¾¤Ë¡¢É¬Íפʵ­¹æ¤Î Unicode ¥³¡¼¥É¥Ý¥¤¥ó¥È¤ò¡¢ ³Èĥʸ»úÎó¥â¡¼¥ÉÆâ¤Ç¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤È¤·¤Æ»ØÄꤹ¤ë¼ê¤â¤¢¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: encoding (112.27), unicode (13.1), locale (112.45), escape sequences (13.1)¡£

16.1 Cairo (pdfcairo, pngcairo, epscairo, wxt ½ÐÎÏ·Á¼°)

½ÐÎÏ·Á¼°¤Ë¤è¤ê (Î㤨¤Ð cairo ·Ï¤Î½ÐÎÏ·Á¼°¤¹¤Ù¤Æ)¡¢fontconfig ¥·¥¹¥Æ¥à ¥é¥¤¥Ö¥é¥ê¤ò»È¤Ã¤Æ¥Õ¥©¥ó¥È¤Ë¥¢¥¯¥»¥¹¤·¤Þ¤¹¡£ fontconfig ¥æ¡¼¥¶¥Þ¥Ë¥å¥¢¥ë

¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢gnuplot ¤Ç°ìÈÌŪ¤Ê̾Á°¤ä¥µ¥¤¥º¤Ç¥Õ¥©¥ó¥È¤ò Í׵᤹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¡¢É¬Íפʤé¤Ð fontconfig ¤ËƱÅù¤Î¥Õ¥©¥ó¥È¤òÂåÍѤµ ¤»¤ë¤³¤È¤â¤Ç¤­¤ë¤Î¤Ç¡¢Ä̾ï¤Ï¤³¤ì¤Ç½½Ê¬¤Ç¤·¤ç¤¦¡£°Ê²¼¤Ï¡¢Â¿Ê¬¤¤¤º¤ì¤âµ¡ ǽ¤·¤Þ¤¹:


    set term pdfcairo font "sans,12"
    set term pdfcairo font "Times,12"
    set term pdfcairo font "Times-New-Roman,12"

16.2 Gd (png, gif, jpeg, sixel terminals)

png, gif, jpeg, sixelgd ½ÐÎÏ·Á¼°¤Î¥Õ¥©¥ó¥È½èÍý¤Ï¡¢³°Éô¥é¥¤¥Ö¥é¥ê libgd ¤¬¹Ô¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢ºÇÄã¤Ç¤â tiny, small, medium, large, giant ¤Î 5 ¼ïÎà¤Î´ðËÜ¥Õ¥©¥ó¥È¤òÄ󶡤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¿­½Ì¤µ¤»¤¿¤ê²óž ¤·¤¿¤ê¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤³¤ì¤é¤Î°ì¤Ä¤ò»ÈÍѤ¹¤ëºÝ¤Ï¡¢font ¥­¡¼¥ï¡¼¥É¤ÎÂå ¤ï¤ê¤Ë¾å¤Î¥­¡¼¥ï¡¼¥É¤ò»ØÄꤷ¤Þ¤¹¡£Îã:


    set term png tiny

¿¤¯¤Î¥·¥¹¥Æ¥à¤Ç¡¢libgd ¤Ï¡¢fontconfig ¥Ä¡¼¥ë¤¬Ä󶡤¹¤ë°ìÈÌŪ¤Ê¥Õ¥©¥ó ¥È½èÍý¤â»ÈÍѤǤ­¤Þ¤¹¡£°Ê²¼»²¾È: fontconfig (16.1)¡£ fontconfig ¤Î¤Ê¤¤¥·¥¹¥Æ¥à¾å¤Ç¤Ï¡¢ÂçÄñ Adobe ¥Õ¥©¥ó¥È (*.pfa) ¤È TrueType ¥Õ¥©¥ó¥È (*.ttf) ¤Ø¤Î¥¢¥¯¥»¥¹¤òÄ󶡤·¤Æ¤¤¤Þ¤¹¡£¤½¤Î¾ì¹ç¥Õ¥©¥ó ¥È¼«¿È¤Î̾Á°¤Ç¤Ï¤Ê¤¯¡¢¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò¡¢"<face> {,<size>}" ¤Î ·Á¼°¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤³¤Ç¡¢<face> ¤Ï¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤Î¥Õ¥ë¥Ñ¥¹Ì¾¤«¡¢¤Þ¤¿¤Ï´Ä¶­ÊÑ¿ô GDFONTPATH ¤Ç»Ø¼¨¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î°ì¤Ä¤ÎÃæ¤Î¥Õ¥¡¥¤¥ë̾¤ÎÀèƬÉôʬ¡¢ ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¤è¤Ã¤Æ¡¢'set term png font "Face"' ¤Ï¡¢ <¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê>/Face.ttf ¤« <¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê>/Face.pfa ¤È¤¤¤¦¥Õ¥¡ ¥¤¥ë̾¤Î¥Õ¥©¥ó¥È¤òõ¤½¤¦¤È¤·¤Þ¤¹¡£Î㤨¤Ð¡¢GDFONTPATH ¤Ë /usr/local/fonts/ttf:/usr/local/fonts/pfa ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢°Ê²¼ ¤Î¥³¥Þ¥ó¥É¤Î 2 ¤Ä¤º¤Ä¤Ï¤¤¤º¤ì¤âƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹:


    set term png font "arial"
    set term png font "/usr/local/fonts/ttf/arial.ttf"
    set term png font "Helvetica"
    set term png font "/usr/local/fonts/pfa/Helvetica.pfa"

¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤âƱ»þ¤Ë»ØÄꤹ¤ë¤Ë¤Ï:


    set term png font "arial,11"

"set term" ¥³¥Þ¥ó¥É¤Ç¥Õ¥©¥ó¥È¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï´Ä¶­ÊÑ¿ô GNUPLOT_DEFAULT_GDFONT ¤ò»²¾È¤·¤Þ¤¹¡£

16.3 Postscript (¥«¥×¥»¥ë²½ postscript *.eps ¤â)

PostScript ¥Õ¥©¥ó¥È½èÍý¤Ï¡¢¥×¥ê¥ó¥¿¤«É½¼¨¥½¥Õ¥È¤¬¹Ô¤¤¤Þ¤¹¡£¤â¤·¡¢¤¢¤Ê ¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Ë¥Õ¥©¥ó¥È¤¬°ìÀڤʤ¯¤Æ¤â¡¢gnuplot ¤ÏÀµ¤·¤¤ PostScript ¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¥«¥×¥»¥ë²½ PostScript (*.eps) ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤Ç¤­¤Þ¤¹¡£ gnuplot ¤Ïñ¤Ë½ÐÎÏ¥Õ¥¡¥¤¥ëÃæ¤Ë¥Õ¥©¥ó¥È¤ò̾Á°¤È¤·¤ÆÆþ¤ì¤ë¤À¤±¤Ç¡¢¥×¥ê¥ó ¥¿¤äɽ¼¨¥½¥Õ¥È¤¬¤½¤Î̾Á°¤«¤é¥Õ¥©¥ó¥È¤ò¸«¤Ä¤±¤ë¤«¶á»÷¤¹¤ë¤³¤È¤ò²¾Äꤷ¤Æ ¤¤¤Þ¤¹¡£

PostScript ¥×¥ê¥ó¥¿¤äɽ¼¨¥½¥Õ¥È¤Ï¤¹¤Ù¤Æ¡¢É¸½àŪ¤Ê Adobe ¥Õ¥©¥ó¥È¥»¥Ã¥È Times-Roman, Helvetica, Courier, Symbol ¤ÏÃΤäƤ¤¤ë¤Ï¤º¤Ç¤¹¡£ ¿ʬ¤½¤Î¾¤Ë¤â¿¤¯¤Î¥Õ¥©¥ó¥È¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢¤½¤ì ¤éÆÃÄê¤Î¥Õ¥©¥ó¥È¥»¥Ã¥È¤Ï¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤ä¥×¥ê¥ó¥¿¤ÎÀßÄê¤Ë°Í¸¤·¤Þ¤¹¡£ gnuplot ¤Ï¡¢¤½¤ì¤ÏÃΤê¤Þ¤»¤ó¤·µ¤¤Ë¤â¤·¤Þ¤»¤ó¡£gnuplot ¤¬ºîÀ®¤·¤¿ *.ps ¤ä *.eps ½ÐÎϤϡ¢¤¢¤Ê¤¿¤ÎÍ׵ᤷ¤¿¥Õ¥©¥ó¥È̾¤òñ¤Ë»ý¤Ã¤Æ¤¤¤ë¤À¤±¤Ç¤¹¡£

¤è¤Ã¤Æ¡¢


    set term postscript eps font "Times-Roman,12"

¤Ï¡¢¤¹¤Ù¤Æ¤Î¥×¥ê¥ó¥¿¤äɽ¼¨¥½¥Õ¥È¤ËŬÀڤʽÐÎϤòºîÀ®¤·¤Þ¤¹¡£

°ìÊý¡¢


    set term postscript eps font "Garamond-Premier-Pro-Italic"

¤Ï¡¢Àµ¤·¤¤ PostScript ½ÐÎÏ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÆÃÊ̤ÊÀìÍÑ¥Õ¥© ¥ó¥È¤ò»²¾È¤·¤Æ¤¤¤ë¤Î¤Ç¡¢Í׵ᤵ¤ì¤¿¤½¤ÎÆÃÄê¤Î¥Õ¥©¥ó¥È¤Ï°ìÉô¤Î¥×¥ê¥ó¥¿¤ä ɽ¼¨¥½¥Õ¥È¤Ç¤·¤«É½¼¨¤Ç¤­¤Ê¤¤¤Ç¤·¤ç¤¦¡£ÂçÄñ¤Î¾ì¹ç¤ÏÊ̤ʥե©¥ó¥È¤ÇÂåÍѤµ ¤ì¤Þ¤¹¡£

¤·¤«¤·¡¢»ØÄꤷ¤¿¥Õ¥©¥ó¥È¤ò½ÐÎÏ¥Õ¥¡¥¤¥ëÃæ¤ËËä¤á¹þ¤ó¤Ç¡¢¤É¤ó¤Ê¥×¥ê¥ó¥¿¤Ç ¤â¤½¤ì¤ò»È¤¦¤è¤¦¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤³¤ì¤Ë¤Ï¡¢¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤ËŬÀÚ ¤Ê¥Õ¥©¥ó¥Èµ­½Ò¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¤³¤È¤¬É¬ÍפȤʤê¤Þ¤¹¡£¤³¤ÎÊýË¡¤Ç¥Õ¥©¥ó¥È¤ò Ëä¤á¹þ¤à¾ì¹ç¡¢ÆÃÄê¤Î¥é¥¤¥»¥ó¥¹¤¬É¬ÍפȤʤë¥Õ¥©¥ó¥È¥Õ¥¡¥¤¥ë¤â¤¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è¤ê¾ÜºÙ¤ÊÀâÌÀ¤äÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: postscript fontfile (127.27.2)¡£

17 ¥Ø¥ë¥×¤ÎÍѸì²òÀâ (Glossary)

gnuplot ¤Ï 30 ǯ°Ê¾å¤«¤±¤Æ³«È¯¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¥³¥Þ¥ó¥É¤ä¤³¤Îʸ½ñ¤Ç»È ¤ï¤ì¤Æ¤¤¤ëÍѸì¤Î°ÕÌ£¤Ï¡¢¸½ºß¤ÎÉáÄ̤ÎÍÑË¡¤È¤Ï°ã¤Ã¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤ÎÀá¤Ç¤Ï¡¢gnuplot Æâ¤Ç¤Ï¤½¤ì¤é¤ÎÍѸì¤Î¤¤¤¯¤Ä¤«¤ò¤É¤Î¤è¤¦¤Ë»È¤Ã¤Æ¤¤ ¤ë¤«¤òÀâÌÀ¤·¤Þ¤¹¡£

ÍѸì "½ÐÎÏ·Á¼° (terminal)" ¤Ï¡¢½ÐÎϥ⡼¥É¤Î¤³¤È¤ò°ÕÌ£¤·¡¢¤¢¤Ê¤¿¤¬¥­¡¼ ¥Ü¡¼¥ÉÆþÎϤ¹¤ë¤â¤Î (¥¿¡¼¥ß¥Ê¥ë) ¤ò»Ø¤·¤Æ¤¤¤ë¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Î㤨¤Ð¡¢ ¥³¥Þ¥ó¥É set terminal pdf ¤Ï¡¢¤½¤Î¸å¤ÎÉÁ²è¥³¥Þ¥ó¥É¤¬ PDF ½ÐÎϤòÀ¸À® ¤¹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£Ä̾ï¤Ï¡¢¤½¤Î PDF ½ÐÎϤò½ñ¤­½Ð¤¹¾ì½ê¤ò»ØÄꤹ¤ë¥³ ¥Þ¥ó¥É set output "filename" ¤ò°ì½ï¤Ë»È¤¦É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£

"¥Ú¡¼¥¸ (page)"¡¢"ɽ¼¨²èÌÌ (screen)"¡¢"¥­¥ã¥ó¥Ð¥¹ (canvas)" ¤Ï¡¢ gnuplot ¤¬¥¢¥¯¥»¥¹²Äǽ¤ÊÎΰèÁ´ÂΤò»Ø¤·¤Þ¤¹¡£¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¤Ï¤½¤ì¤Ï¥¦ ¥£¥ó¥É¥¦Á´ÂΤò»Ø¤·¡¢¥×¥í¥Ã¥¿¤Ç¤Ï¡¢°ìËç¤Î»æÁ´ÂΤò»Ø¤·¤Þ¤¹¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ëµÄÏÀ¤Ç¤Ï¡¢ÍѸì "¹Ô (record)" ¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î°ì¹Ô ¤Îʸ»úÎ󡢤¹¤Ê¤ï¤Á¡¢²þ¹Ôʸ»ú¤ä¹ÔËöʸ»úƱ»Î¤Ë¶´¤Þ¤ì¤¿Ê¸»úÎó¤ò»Ø¤·¤Þ¤¹¡£ "ÅÀ (point)" ¤Ï¡¢°ì¹Ô¤«¤é¼è¤ê½Ð¤·¤¿°ì¤Ä¤Î¥Ç¡¼¥¿¤Ç¤¹¡£¥Ç¡¼¥¿¤Î "¥Ö¥í¥Ã¥¯ (block)" ¤Ï¡¢¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤¿Ï¢Â³¤·¤¿Ê£¿ô¤Î¹Ô¤«¤é¤Ê¤ë½¸¹ç¤Ç ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎµÄÏÀ¤ÎÃæ¤Ç "line" ¤¬»²¾È¤µ¤ì¤ë¾ì¹ç¤Ï¡¢¤³¤ì¤Ï¥Ö¥í¥Ã ¥¯¤ÎÉôʬ½¸¹ç¤ò»Ø¤·¤Þ¤¹¡£"¥Ç¡¼¥¿¤Î¥Ö¥í¥Ã¥¯ (data block)" ¤È¤¤¤¦¸ÀÍդϡ¢ ¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤Î̾Á°ÉÕ¤­¥Ö¥í¥Ã¥¯¤ò»Ø¤¹¤Î¤Ë¤â»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: datablocks (18)¡£

18 ¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤È¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯ (inline data and datablocks)

gnuplot ¤Î¥³¥Þ¥ó¥ÉÆþÎϤÎÃæ¤Ë¥Ç¡¼¥¿¤òËä¤á¹þ¤à»ÅÁÈ¤ß¤Ï 2 ¼ïÎàÍÑ°Õ¤µ¤ì¤Æ ¤¤¤Þ¤¹¡£¤Þ¤º¡¢Æüì¥Õ¥¡¥¤¥ë̾ '-' ¤¬ plot ¥³¥Þ¥ó¥ÉÃæ¤ËÍ¿¤¨¤ë¤È¡¢¤½¤Î plot ¥³¥Þ¥ó¥É°Ê²¼¤Ë³¤¯¹Ô¤¬¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤È²ò¼á¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: special-filenames (99.3.9)¡£¤³¤ÎÊýË¡¤ÇÄ󶡤µ¤ì¤ë¥Ç¡¼¥¿¤Ï¡¢¤½¤Î plot ¥³¥Þ¥ó¥É ¤Ç°ìÅÙ¤·¤«»ÈÍѤǤ­¤Þ¤»¤ó¡£

¤â¤¦°ì¤Ä¤Ï¡¢¥Ò¥¢¥É¥­¥å¥á¥ó¥È¤È¤·¤Æ̾Á°ÉÕ¤­¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òÄêµÁ¤¹¤ëÊý Ë¡¤Ç¤¹¡£¤½¤Î̾Á°ÉÕ¤­¤Î¥Ç¡¼¥¿¤Ï»Ä¤ë¤Î¤Ç¡¢Ê£¿ô¤Î plot ¥³¥Þ¥ó¥É¤Ç»²¾È¤Ç¤­ ¤Þ¤¹¡£Îã:


    $Mydata << EOD
    11 22 33 first line of data
    44 55 66 second line of data
    # ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ëƱÍÍ¥³¥á¥ó¥È¤âµ¡Ç½¤¹¤ë
    77 88 99
    EOD
    stats $Mydata using 1:3
    plot $Mydata using 1:3 with points, $Mydata using 1:2 with impulses

¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯Ì¾¤Ï¡¢Â¾¤ÎÊÑ¿ô¤È¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢ºÇ½é¤Îʸ»ú¤ò $ ¤Ë¤¹¤ëɬ Íפ¬¤¢¤ê¤Þ¤¹¡£¥Ç¡¼¥¿¤Î½ª¤ï¤ê¤Î¶èÀÚ¤ê (¾å¤ÎÎã¤Ç¤Ï EOD) ¤Ï¡¢Ç¤°Õ¤Î¥¢¥ë¥Õ ¥¡¥Ù¥Ã¥È¡¢¿ô»ú¤«¤é¤Ê¤ëʸ»úÎó¤Ç¹½¤¤¤Þ¤»¤ó¡£

¥Ç¡¼¥¿¤ò̾Á°ÉÕ¤­¥Ö¥í¥Ã¥¯¤ËÊݸ¤¹¤ë¤«¤ï¤ê¤Ë¡¢¼Â¹Ô²Äǽ¥³¥Þ¥ó¥É¤òÊݸ¤¹¤ë ƱÍͤλÅÁȤߤˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: function blocks (89)¡£

¥³¥Þ¥ó¥É undefine ¤ò»È¤¨¤Ð¡¢Êݸ¤·¤¿Ì¾Á°ÉÕ¤­¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òºï½ü¤Ç¤­ ¤Þ¤¹¡£undefine $* ¤Ï¡¢¤¹¤Ù¤Æ¤Î̾Á°ÉÕ¤­¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ò °ìÅ٤˺ï½ü¤·¤Þ¤¹¡£

19 ·«¤êÊÖ¤· (iteration)

Image figure_newsyntax
gnuplot ¤Ï¡¢·«¤êÊÖ¤· (iteration) ¥³¥Þ¥ó¥É¤ä¥Ö¥í¥Ã¥¯¹½Â¤¤ò°·¤¦¤¿¤á¤Î if/else/while/do ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: if (92), while (126), do (85)¡£ ¥³¥Þ¥ó¥É plot, set ¤Çñ½ã¤Ê·«¤êÊÖ¤·¤â²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: plot for (99.8)¡£Ê£¿ô¤Î¥³¥Þ¥ó¥É¤òÊñ´Þ¤¹¤ë°ìÈÌŪ¤Ê·«¤êÊÖ¤·¤Ï¡¢²¼¤Ç¾Ò²ð¤¹¤ë¥Ö ¥í¥Ã¥¯¹½Â¤¤òÍøÍѤ¹¤ë¤³¤È¤Ç¹Ô¤¨¤Þ¤¹¡£ ´ØÏ¢¤¹¤ë¿·¤·¤¤µ¡Ç½¤Ç¤¢¤ë¿ô¼°·¿¤Î°Ê²¼¤â»²¾È: summation (15.5)¡£ °Ê²¼¤Ï¡¢¤³¤ì¤é¤Î¿·¤·¤¤¹½Ê¸µ¡Ç½¤ò¤¤¤¯¤Ä¤«ÍøÍѤ·¤¿Îã¤Ç¤¹:


     set multiplot layout 2,2
     fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x)
     do for [power = 0:3] {
         TERMS = 10**power
         set title sprintf("%g term Fourier series",TERMS)
         plot 0.5 + sum [k=1:TERMS] fourier(k,x) notitle
     }
     unset multiplot

·«¤êÊÖ¤·¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê½ñ¼°¤Ë¤è¤ë·«¤êÊÖ¤·»ØÄê¤ÇÀ©¸æ¤·¤Þ¤¹¡£


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

¤Þ¤¿¤Ï


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

ºÇ½é¤Î½ñ¼°¤Ç¤Ï <var> ¤Ïʸ»úÎóÊÑ¿ô¤Ç¡¢¤½¤Î¸å¤í¤Ë»ØÄꤷ¤¿Ê¸»úÎó¤Ë´Þ¤Þ¤ì ¤ë 1 ÈÖÌܤ«¤é N ÈÖÌܤޤǤÎñ¸ìʸ»úÎó¤ò½ç¤ËÃͤȤ·¤Æ¼è¤ê¤Þ¤¹¡£ 2 ÈÖÌܤνñ¼°¤Ç¤Ï¡¢<start>, <end>, <increment> ¤ÏÀ°¿ô¡¢¤Þ¤¿¤ÏÀ°¿ôÃͤò¼è ¤ë¿ô¼°¤Ç¤¹¡£

·«¤êÊÖ¤·ÊÑ¿ô¤ÎÍ­¸úÈÏ°Ï (scope) ¤Ï¡¢¤½¤Î·«¤êÊÖ¤·¤ÎÃæ¤À¤±¤Ç¤¹¡£°Ê²¼»²¾È: scope (26)¡£·«¤êÊÖ¤·ÊÑ¿ô¤ÎÃͤò¡¢¤½¤Î¼Â¹Ô¥Ö¥í¥Ã¥¯Æâ¤Ç±Ê³Ū¤ËÊѹ¹¤¹¤ë¤³¤È ¤Ï¤Ç¤­¤Þ¤»¤ó¡£·«¤êÊÖ¤·ÊÑ¿ô¤¬·«¤êÊÖ¤·¤ÎÁ°¤ËÃͤò»ý¤Ã¤Æ¤¤¤¿¤È¤·¤¿¤é¡¢¤½¤Î ÃͤϷ«¤êÊÖ¤·¤Î½ªÎ»»þ¤ËÊÝ»ý¡¢¤Þ¤¿¤ÏÉüµ¢¤µ¤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢1 2 3 4 5 6 7 8 9 10 A ¤ò½ÐÎϤ·¤Þ¤¹¡£


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

20 Àþ¼ï¡¢¿§¡¢¥¹¥¿¥¤¥ë (linetypes)

¤È¤Æ¤â¸Å¤¤ÈǤΠgnuplot ¤Ç¤Ï¡¢³Æ½ÐÎÏ·Á¼°¤Ï "Àþ¼ï (linetype)" ¤ò¤¢¤ëÄøÅÙ ÍÑ°Õ¤·¤Æ¤¤¤Æ¡¢¤½¤ì¤é¤Ï¿§¡¢ÂÀ¤µ¡¢ÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¡¢¤Þ¤¿¤Ï¿§¤ÈÅÀÀþ/ÇË Àþ¤ÎÁȹ礻¤Ç°ã¤¤¤òɽ¸½¤·¤Æ¤¤¤Þ¤·¤¿¡£¤½¤ì¤é¤Î¿§¡¢ÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¤Ï¡¢ ½ÐÎÏ·Á¼°¤ò±Û¤¨¤ÆƱ¤¸¤â¤Î¤Ë¤Ê¤ë¤È¤¤¤¦Êݾڤϲ¿¤â¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢Â¿¤¯ ¤ÏƱ¤¸¿§¤ÎÎó¡¢ÀÖ/ÎÐ/ÀÄ/»ç/¿å¿§/²«¿§¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î¸Å¤¤µóÆ°¤Ï¡¢ º£¤Ï set colorsequence classic ¤ÇÁªÂò¤Ç¤­¤Þ¤¹¤¬¡¢¸½ºß¤Î gnuplot ¤Î¥Ç ¥Õ¥©¥ë¥È¤Ï¡¢½ÐÎÏ·Á¼°¤Ë̵´Ø·¸¤Ë¶¦Ä̤Π8 ¿§Îó¤ò»ÈÍѤ·¤Þ¤¹¡£

Àþ¼ï (linetype) ¤Î°À­¤ÎʤӤϡ¢ÂÐÏÃŪ¤«½é´ü²½¥Õ¥¡¥¤¥ë¤Î¤¤¤º¤ì¤«¤Ë¤è¤Ã ¤Æ¤µ¤é¤Ë¥«¥¹¥¿¥Þ¥¤¥º²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set linetype (112.41)¡£ÇÛÉۥѥ屡¼¥¸ ¤Ë½é´ü²½¥Õ¥¡¥¤¥ë¤Î¥µ¥ó¥×¥ë¤¬¤¤¤¯¤Ä¤«ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

ÆÃÄê¤Î½ÐÎÏ·Á¼°¤ËÂФ¹¤ëÀþ¼ï¤Î°À­¤Î¸½ºß¤Î¾õÂ֤ϡ¢¤½¤Î½ÐÎÏ·Á¼°¤òÀßÄꤷ¤¿ ¤¢¤È¤Ç test ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç³Îǧ¤Ç¤­¤Þ¤¹¡£

°ì¤Ä¤ÎÉÁ²è¥³¥Þ¥ó¥ÉÆâ¤Ç¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎϢ³¤¹¤ëʤӤˤϡ¢¸½ºß¤Î ¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ïÎ󤫤éÀþ¼ï¤¬½çÈ֤˳ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¸Ä¡¹¤Î´Ø¿ô¡¢¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤËÂФ¹¤ëÀþ¼ï¤Ï¡¢¤½¤ÎÉÁ²è¥³¥Þ¥ó¥É¾å¤ÇÌÀ ¼¨Åª¤ËÀþ¤Î°À­¤ò»ØÄꤹ¤ë¤³¤È¤Ç¾å½ñ¤­¤Ç¤­¤Þ¤¹¡£

Îã:


    plot "foo", "bar"                 # Àþ¼ï 1, 2 ¤Ç 2 ¥Õ¥¡¥¤¥ë¤òÉÁ²è
    plot sin(x) linetype 4            # Àþ¼ï¿§ 4 ¤ò»ÈÍÑ

°ìÈ̤ˡ¢¿§¤Î»ØÄê¤Ï¡¢¿§¤Î̾Á°¤«¡¢RGB (ÀÖ¡¢ÎС¢ÀÄ) À®Ê¬¤«¡¢HSV (¿§Áê¡¢ºÌ ÅÙ¡¢ÌÀÅÙ) À®Ê¬¤«¡¢¸½ºß¤Î pm3d ¥Ñ¥ì¥Ã¥È¤Ë±è¤Ã¤¿ºÂɸ¤Ç¹Ô¤¤¤Þ¤¹¡£¥­¡¼¥ï¡¼ ¥É linecolor ¤Ï¡¢lc ¤È¾Êά¤Ç¤­¤Þ¤¹¡£

Îã:


    plot sin(x) lc rgb "violet"       # gnuplot Æâ¤Î¿§Ì¾¤Î°ì¤Ä¤ò»ÈÍÑ
    plot sin(x) lc rgb "#FF00FF"      # ÌÀ¼¨Åª¤Ê 16 ¿Ê RGB 3 ¤ÄÁÈ
    plot sin(x) lc palette cb -45     # ¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î cbrange ¤Î
                                      # -45 ¤ËÂбþ¤¹¤ë¿§
    plot sin(x) lc palette frac 0.3   # ¥Ñ¥ì¥Ã¥È¤ËÂбþ¤¹¤ë¾®¿ôÃÍ

°Ê²¼»²¾È: colorspec (20.1), show colornames (114.1), hsv (15.3), set palette (112.67), cbrange (112.153)¡£°Ê²¼¤â»²¾È: monochrome (112.52)¡£

Àþ¼ï (linetype) ¤Ë¤Ï¡¢ÅÀÀþ/ÇËÀþ¤Î¥Ñ¥¿¡¼¥ó¤â·ë¤Ó¤Ä¤±¤é¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤¹ ¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¤½¤ì¤¬»È¤¨¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Àþ¿§¤È¤ÏÆÈΩ¤ËÅÀÀþ/ÇË Àþ¥Ñ¥¿¡¼¥ó¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: dashtype (20.2)¡£

20.1 ¿§»ØÄê (colorspec)

¿¤¯¤Î¥³¥Þ¥ó¥É¤Ç¡¢ÌÀ¼¨Åª¤Ê¿§¤Î»ØÄê¤ò¤È¤â¤Ê¤Ã¤¿Àþ¼ï¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­ ¤Þ¤¹¡£

½ñ¼°:


     ... {linecolor | lc} {"colorname" | <colorspec> | <n>}
     ... {textcolor | tc} {<colorspec> | {linetype | lt} <n>}
     ... {fillcolor | fc} {<colorspec> | linetype <n> | linestyle <n>}

<colorspec> ¤Ï°Ê²¼¤Î·Á¼°¤Î¤¤¤º¤ì¤«¤Ç¤¹:


     rgbcolor "colorname"    # Îã: "blue"
     rgbcolor "0xRRGGBB"     # 16 ¿Ê¿ôÃͤÎÄê¿ôʸ»úÎó
     rgbcolor "0xAARRGGBB"   # 16 ¿Ê¿ôÃͤÎÄê¿ôʸ»úÎó
     rgbcolor "#RRGGBB"      # x11 ·Á¼°¤Î 16 ¿Ê¿ôʸ»úÎó
     rgbcolor "#AARRGGBB"    # x11 ·Á¼°¤Î 16 ¿Ê¿ôʸ»úÎó
     rgbcolor <integer val>  # AARRGGBB ¤òɽ¤¹À°¿ôÃÍ
     rgbcolor variable       # ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤éÀ°¿ôÃͤòÆɤ߹þ¤à
     palette frac <val>      # <val> ¤Ï 0 ¤«¤é 1 ¤ÎÃÍ
     palette cb <value>      # <val> ¤Ï cbrange ¤ÎÈϰϤÎÃÍ
     palette z
     palette <colormap>      # ̾Á°ÉÕ¤­¥«¥é¡¼¥Þ¥Ã¥×¤ò»ÈÍÑ
     variable                # ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¿§ÈÖ¹æ¤òÆɤ߹þ¤à
     bgnd                    # ÇØ·Ê¿§
     black

<n> ¤Ï¡¢¤½¤ÎÀþ¼ï (linetype) Èֹ椬»È¤¦¿§¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼»²¾È: test (118)¡£

"colorname" ¤Ï gnuplot ¤¬ÆâÉô¤Ë»ý¤Ã¤Æ¤¤¤ë¿§¤Î̾Á°¤Î¤¦¤Á¤Î°ì¤Ä¤ò»ØÄꤷ ¤Þ¤¹¡£Í­¸ú¤Ê̾Á°¤Î°ìÍ÷¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: show colornames (114.1)¡£

16 ¿ÊÄê¿ô¤Ï¡¢°úÍÑÉäÉÕ¤­¤Ç "#RRGGBB" ¤ä "0xRRGGBB" ¤Î·Á¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£RRGGBB ¤Ï¡¢¿§¤ÎÀÖ¡¢ÎС¢ÀĤÎÀ®Ê¬¤ò°ÕÌ£¤·¡¢¤½¤ì¤¾¤ì 00 ¤«¤é FF ¤Þ¤Ç¤ÎÈÏ°ÏÆâ¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¡¢¥Þ¥¼¥ó¥¿ (»ç) ¤Ï¡¢ºÇ¤âÌÀ¤ë¤¤ ÀÖ + ºÇ¤âÌÀ¤ë¤¤ÀÄ¡¢¤Ê¤Î¤Ç "0xFF00FF" ¤Èɽ¤µ¤ì¡¢¤³¤ì¤Ï 16 ¿Ê¿ô¤Ç (255 << 16) + (0 << 8) + (255) ¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£

"#AARRGGBB" ¤Ï¡¢RGB ¿§¤Î¾å°Ì¥Ó¥Ã¥È¤Ë¥¢¥ë¥Õ¥¡ÃÍ (Æ©²áÀ­) ¤¬¤Ä¤¤¤Æ¤¤¤ë¤³ ¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥¢¥ë¥Õ¥¡ÃÍ 0 ¤Ï´°Á´¤ËÉÔÆ©ÌÀ¿§¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¡¢¤è¤Ã ¤Æ "#00RRGGBB" ¤Ï "#RRGGBB" ¤ÈƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹¡£¥¢¥ë¥Õ¥¡ÃͤΠ255 (FF) ¤Ï ´°Á´¤ËÆ©ÌÀ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

¤³¤ì¤é¤ÎǤ°Õ¤Î·Á¼°¤«¤é¡¢¿§¤Î 32 ¥Ó¥Ã¥ÈÀ°¿ôɽ¸½¤Ø¤ÎÊÑ´¹¤ò¹Ô¤¦¤Î¤ËÍøÍÑ¤Ç ¤­¤ë´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: expressions functions rgbcolor (15.3)¡£

¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤È¤Ï¡¢¿§¤ÎÀþ·¿¤Ê¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ç¡¢Ã±°ì¤Î¿ôÃͤòÆÃÄê¤Î¿§¤Ë ³ê¤é¤«¤ËÂбþ¤Å¤±¤Þ¤¹¡£¾ï¤Ë¤½¤Î¤è¤¦¤Ê 2 ¤Ä¤ÎÂбþÉÕ¤±¤¬¸úÎϤò»ý¤Á¤Þ¤¹¡£ palette frac ¤Ï 0 ¤«¤é 1 ¤Þ¤Ç¤Î¾®¿ôÃͤò¡¢¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ÎÁ´ÈϰϤËÂÐ ±þÉÕ¤±¤ë¤â¤Î¤Ç¡¢palette cb ¤Ï¡¢¿§¼´¤ÎÈϰϤòƱ¤¸¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø³ä¤ê Åö¤Æ¤ë¤â¤Î¤Ç¤¹¡£°Ê²¼»²¾È: set cbrange (112.153), set colorbox (112.17)¡£¤³¤ì¤é¤ÎÂбþ ÉÕ¤±¤Î¤É¤Á¤é¤«¤ò»È¤Ã¤Æ¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤«¤éÄê¿ô¿§¤òÁª¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ ¤¹¡£

"palette z" ¤Ï¡¢³ÆÉÁ²èÀþʬ¤äÉÁ²èÍ×ÁǤΠz ¤ÎÃͤò¡¢¥Ñ¥ì¥Ã¥È¤ØÂбþ¤Å¤±¤é ¤ì¤Æ¤¤¤ë cbrange ¤ÎÈϰϤËÂбþ¤Å¤±¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢3 ¼¡¸µ¤Î¶ÊÀþ¤ä¶ÊÌÌ ¤Ë±è¤Ã¤Æ¿§¤ò³ê¤é¤«¤ËÊѲ½¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¡¢¥Ñ ¥ì¥Ã¥ÈÃͤòÄɲäÎÎó¥Ç¡¼¥¿¤«¤éÆɤ߹þ¤Þ¤»¤Æ¿§ÉÕ¤±¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹ (¤¹¤Ù ¤Æ¤Î 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤¬¤³¤ÎÄɲÃÎó¤òǧ¼±¤¹¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó)¡£ Æüì¤Ê¿§»ØÄ꤬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£ÇØ·Ê¿§¤Î bgnd ¤È¡¢black ¤Ç¤¹¡£

20.1.1 Background color

¿¤¯¤Î½ÐÎÏ·Á¼°¤Ç¥°¥é¥Õ¤ÎÇØ·Ê¿§¤òÌÀ¼¨Åª¤ËÀßÄê¤Ç¤­¤Þ¤¹¡£ÆÃÊ̤ÊÀþ¼ï (linetype) bgnd ¤Ï¤½¤Î¿§¤ÇÉÁ²è¤·¤Þ¤¹¤¬¡¢¤½¤Î bgnd ¤Ï¿§¤È¤·¤Æ¤âǧ¼± ¤µ¤ì¤Þ¤¹¡£ Îã:


    # °Ê²¼¤Ï¥­¥ã¥ó¥Ð¥¹¤Î°ìÉôʬ¤òÇØ·Ê¿§¤Ç¾å½ñ¤­¤¹¤ë¤³¤È¤Ç¾Ãµî¤·¤Þ¤¹¡£
    set term wxt background rgb "gray75"
    set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd
    # y=0 ¤Ë¡Ö¸«¤¨¤Ê¤¤¡×Àþ¤òÉÁ¤­¡¢¤½¤Î²¼¤Î¤â¤Î¤ò¤¹¤Ù¤Æ¾Ã¤·¤Þ¤¹¡£
    plot 0 lt bgnd

20.1.2 Linecolor variable

lc variable ¤Ï¡¢ÆþÎϥǡ¼¥¿¤Î°ì¤Ä¤ÎÎ󤫤éÆɤó¤ÀÃͤòÀþ¼ï (linetype) ¤Î ÈÖ¹æ¤È¤·¤Æ»È¤¤¡¢¤½¤ÎÀþ¼ï¤Ë°¤¹¤ë¿§¤ò»È¤¦¤è¤¦¥×¥í¥°¥é¥à¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤è ¤Ã¤Æ¤³¤ì¤Ï¡¢using »ØÄê»Ò¤ØÂбþ¤¹¤ëÎó¤Î»ØÄê¤ÎÄɲäòɬÍפȤ·¤Þ¤¹¡£Ê¸»ú ¤Î¿§¤âƱÍͤˡ¢tc variable ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£

Îã:


     # ¥Ç¡¼¥¿¤Î 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

20.1.3 Palette

½ñ¼°


     ... {lc|fc|tc} palette {z}
     ... {lc|fc|tc} palette frac <fraction>
     ... {lc|fc|tc} palette cb <fixed z-value>
     ... fc palette <colormap>

¥Ñ¥ì¥Ã¥È¤Ï¡¢0 ¤«¤é 1 ¤Þ¤Ç¤Î³¥¿§Ãͤǡ¢¿§¤ÎÈϰϤòÄêµÁ¤·¤¿¤â¤Î¤Ç¤¹¤¬¡¢ palette frac <fraction> ¤Ï¡¢³¥¿§ÃÍ <fraction> ¤Ç¤½¤Î¿§¤òÁªÂò¤·¤Þ¤¹¡£

palette cb <z> ¤Ï¡¢³¥¿§Ãͤ¬ (z - cbmin) / (cbmax - cbmin) ¤Ç¤¢¤ë¿§¤ò ÁªÂò¤·¤Þ¤¹¡£

palette ¤È palette z ¤Ï¤É¤Á¤é¤âÉÁ²èÍ×ÁǤΠz ºÂɸ¤ò¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î ¿§¤Ë¼ÌÁü¤·¤Þ¤¹¡£z ¤¬ cbrange ¤ÎÈϰϳ°¤Ê¤é¤Ð¡¢¤½¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï palette fraction 0 ¤« palette fraction 1 ¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó set pm3d noclipcb ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢z ºÂɸ¤¬Èϰϳ°¤Ë¤¢¤ë pm3d ¥°¥é¥Õ¤Î »ÍÊÕ·Á¤Ï²¿¤âÉÁ¤«¤ì¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

fillcolor palette <colormap> ¤Ï¡¢ÉÁ²èÍ×ÁǤΠz ºÂɸ¤ò¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È ¤ò»ÈÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢»öÁ°¤ËÊݸ¤·¤¿Ì¾Á°ÉÕ¤­¥«¥é¡¼¥Þ¥Ã¥×¤Ë¼ÌÁü¤·¤Þ¤¹¡£ °Ê²¼»²¾È: set colormap (112.11)¡£

¥«¥é¡¼¥Þ¥Ã¥×¤¬¤½¤ìÍѤθÄÊ̤ÎÈϰϤò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢cbrange ¤òɸ½à¥Ñ¥ì¥Ã ¥È¤Ë¼ÌÁü¤¹¤ë¤Î¤Ë»È¤¦¤Î¤ÈƱÍͤˡ¢z ¤ÎÃͤò¼ÌÁü¤¹¤ë¤Î¤Ë¤½¤ÎÈϰϤò»ÈÍѤ·¤Þ ¤¹¡£

20.1.4 Rgbcolor variable

¥°¥é¥Õ¤Î³Æ¥Ç¡¼¥¿ÅÀ¡¢³ÆÀþʬ¡¢¤Þ¤¿¤Ï³Æ¥é¥Ù¥ë¤Ë¤½¤ì¤¾¤ì°Û¤Ê¤ë¿§¤ò³ä¤êÅö¤Æ ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£lc rgbcolor variable ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤«¤é RGB ¿§¤Î¾ðÊó¤òÆɤ߹þ¤à¤è¤¦¥×¥í¥°¥é¥à¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤è¤Ã¤Æ¤³¤ì¤Ï¡¢ using »ØÄê»Ò¤Ë¤è¤ëÂбþ¤¹¤ëÎó¤Î»ØÄê¤ÎÄɲäòɬÍפȤ·¡¢¤½¤ÎÎó¤Ï 24-bit ·Á¼°¤Î RGB ¤Î 3 ¤ÄÁȤǤ¢¤ë¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¤½¤ÎÃͤò¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éľ ÀÜÍ¿¤¨¤ë¾ì¹ç¤Ï¡¢¤³¤ì¤ÏºÇ¤â´Êñ¤Ê·Á¼°¤Î 16 ¿ÊÃͤÇÍ¿¤¨¤Þ¤¹ (°Ê²¼»²¾È: rgbcolor (15.3))¡£°ìÊý¤Ç¡¢°Ê²¼¤ÎÎã¤Î¤è¤¦¤Ë 24-bit RGB ¿§¤È¤·¤Æɾ²Á¤µ¤ì¤ë¤è ¤¦¤Ê¿ô¼°¤ò using »ØÄê»Ò¤ËÆþ¤ì¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Ê¸»ú¤Î¿§¤âƱÍͤˡ¢ tc rgbcolor 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

20.2 ÅÀÀþ/ÇËÀþ¼ï (dashtype)

linecolor ¤ä linewidth ¤ÈƱÍͤˡ¢ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó (dashtype) ¤¬ ³Æ¶ÊÀþËè¤Î°À­¤È¤·¤ÆÆÈΩ¤·¤Þ¤·¤¿¡£½¾Íè¤Î¤è¤¦¤Ê¡¢»ÈÍÑÃæ¤Î½ÐÎÏ·Á¼°¤ÎÅÀÀþ ¤ò½ñ¤¯¤¿¤á¤ÎÆÃÊ̤ʥ⡼¥É¤È¤·¤Æ»ØÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£¤¹¤Ê¤ï¤Á¡¢ set term <termname> {solid|dashed} ¤Î¤è¤¦¤Ê¸Å¤¤¥³¥Þ¥ó¥É¤Ï¸½ºß¤Ï̵»ë ¤µ¤ì¤Þ¤¹¡£

¤¹¤Ù¤Æ¤ÎÀþ¤Ï¡¢¤Û¤«¤Ë»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢dashtype solid ¤È¤¤¤¦Â°À­¤ò»ý¤Á ¤Þ¤¹¤¬¡¢¤³¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¥³¥Þ¥ó¥É set linetype ¤ÇÆÃÄê¤ÎÀþ¼ï¤ËÊѹ¹¤· ¤½¤Î¸å¤Î¥³¥Þ¥ó¥É¤Ç»È¤¨¤ë¤è¤¦¤Ë¤Ç¤­¤Þ¤¹¡£¤Þ¤¿¤Ï¡¢plot ¤ä¾¤Î¥³¥Þ¥ó¥É ¤Î°ìÉôʬ¤È¤·¤Æ»ÈÍѤ·¤¿¤¤ÅÀÀþ/ÇËÀþ¤Î·¿¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     dashtype N          # ÄêµÁºÑ¤ßÅÀÀþ/ÇËÀþ·¿¤òÈÖ¹æ¤Ç¸Æ¤Ó½Ð¤·
     dashtype "pattern"  # ÅÀ (.) ²£Àþ (-) ²¼Àþ (_) ¤È¶õÇò¤ÎÁȤ߹ç¤ï
                         # ¤»Ê¸»úÎó¤Ë¤è¤ë»ØÄê
     dashtype (s1,e1,s2,e2,s3,e3,s4,e4)  # 1~4 ¸Ä¤Î <¼ÂÀþĹ>,<¶õÇòĹ>
                         # ¤ÎÁȤˤè¤ëÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó»ØÄê

Îã:


     # 2 ¤Ä¤Î´Ø¿ô¤¬Àþ¼ï 1 ¤ò»È¤¦¤¬ dashtype ¤Ç¶èÊÌ
     plot f1(x) with lines lt 1 dt solid, f2(x) with lines lt 1 dt 3

¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼°¤Ï¡¢¤½¤ì¤¬Ä󶡤¹¤ëÄêµÁºÑ¤ßÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤Ë¡¢¥æ¡¼ ¥¶ÄêµÁ¥Ñ¥¿¡¼¥ó¤òÄɲ乤뤳¤È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£

Îã:


    plot f(x) dt 3            # ½ÐÎÏ·Á¼°¤Î»ý¤Ä¥Ñ¥¿¡¼¥ó 3 ¤ò»ÈÍÑ
    plot f(x) dt ".. "        # °ì»þŪ¤Ê¥Ñ¥¿¡¼¥ó¤òºîÀ®
    plot f(x) dt (2,5,2,15)   # Ʊ¤¸¥Ñ¥¿¡¼¥ó¤ò¿ôÃͤÇɽ¸½
    set dashtype 11 (2,4,4,7) # ¿·¥Ñ¥¿¡¼¥ó¤òÈÖ¹æ¤Ç¸Æ¤Ó½Ð¤»¤ë¤è¤¦ÄêµÁ
    plot f(x) dt 11           # ¿·¥Ñ¥¿¡¼¥ó¤ò»È¤Ã¤ÆÉÁ²è

ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤òʸ»úÎó¤Ç»ØÄꤷ¤¿¾ì¹ç¡¢gnuplot ¤Ï¤½¤ì¤ò <¼ÂÀþĹ>, <¶õÇòĹ> ¤ÎÁȤÎÎó¤ËÊÑ´¹¤·¤Þ¤¹¡£¥É¥Ã¥È "." ¤Ï (2,5) ¤Ë¡¢¥À¥Ã¥·¥å "-" ¤Ï (10,10) ¤Ë¡¢²¼Àþ "_" ¤Ï (20,10) ¤Ë¡¢¤Þ¤¿¶õÇò " " ¤ÏľÁ°¤Î <¶õÇòĹ> ¤Î ÃÍ¤Ë 10 ¤òÄɲä·¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¥³¥Þ¥ó¥É show dashtype ¤Ï¡¢¸µ¤Îʸ»ú Îó¤ÈÊÑ´¹¸å¤Î¿ôÃͤÎÎó¤ÎξÊý¤òɽ¼¨¤·¤Þ¤¹¡£

20.3 Linestyles ¤È linetypes

linestyle ¤Ï¡¢Â°À­ linecolor, linewidth, dashtype, pointtype ¤Î°ì»þ Ū¤ÊÁȤ߹ç¤ï¤»¤Ç¡¢¤³¤ì¤Ï¥³¥Þ¥ó¥É set style line ¤ÇÄêµÁ¤·¤Þ¤¹¡£°ìÅÙ linestyle ¤òÄêµÁ¤¹¤ë¤È¡¢1 ²ó¤Î plot ¥³¥Þ¥ó¥É¾å¤Ç¤½¤ì¤ò»È¤Ã¤Æ¡¢1 ¤Ä¡¢¤Þ ¤¿¤Ï¤è¤ê¿¤¯¤ÎÉÁ²èÍ×ÁǤ諤¿ÌܤòÀ©¸æ¤Ç¤­¤Þ¤¹¡£¸À¤¤´¹¤¨¤ì¤Ð¡¢¤³¤ì¤ÏÃúÅÙ linetype ¤«¤é±Ê³À­¤ò¼è¤ê½ü¤¤¤¿¤â¤Î¡¢¤È¸À¤¦¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦¡£ linetypes ¤Ï±Ê³Ū (ÌÀ¼¨Åª¤Ë¤½¤ì¤é¤òºÆÄêµÁ¤¹¤ë¤Þ¤Ç¤ÏÊÝ»ý¤µ¤ì¤ë) ¤Ç¤¹ ¤¬¡¢linestyles ¤Ï¡¢¼¡¤Î¥°¥é¥Õ¥£¥Ã¥¯¤Î¾õÂÖ¤¬¥ê¥»¥Ã¥È¤µ¤ì¤ë¤Þ¤Ç¤Î´Ö¤· ¤«ÊÝ»ý¤µ¤ì¤Þ¤»¤ó¡£

Îã:


    # ¿·¤·¤¤¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤¿§ cyan¡¢ÀþÉý¤¬ 3¡¢
    # ÅÀ¼ï 6 (´Ý¤ÎÃæ¤ËÅÀ) ¤ÈÄêµÁ
    set style line 5 lt rgb "cyan" lw 3 pt 6
    plot sin(x) with linespoints ls 5          # ÄêµÁ¥¹¥¿¥¤¥ë 5 ¤Ç

20.4 ÆÃÊ̤ÊÀþ¼ï (special linetypes)

ÆÃÊÌ¤Ê (¿ôÃͤǤϤʤ¤) Àþ¼ï (linetype) ¤¬¤¤¤¯¤Ä¤«ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

lt black ¤Ï¡¢¹õ¤¤¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£

lt bgnd ¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤ÎÇØ·Ê¿§¤Î¼ÂÀþ¤ò°ÕÌ£¤·¤Þ¤¹¡£°Ê²¼»²¾È: background (20.1.1)¡£

lt nodraw ¤Ï¡¢¤½¤Î¶ÊÀþÁ´ÂΤÎÉÁ²è¤ò¥¹¥­¥Ã¥×¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÉÁ²è¥¹¥¿¥¤ ¥ë linespoints ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤ÈÊØÍø¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ÎÉÁ²è¥¹¥¿ ¥¤¥ë¤Î¤ß¤ËÍ­¸ú¤ÊÅÀÉôʬ¤Î°À­¤ò»Ä¤·¤Ä¤Ä¡¢ÀþÉôʬ¤òÍÞÀ©¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê ¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢


    plot f(x) with linespoints lt nodraw pointinterval -3

¤Ï¡¢3 ÅÀÃÖ¤­¤ËÉÁ²è¤·¡¢¤½¤Î²¼¤ËÇØ·Ê¿§¤Î¾®¤µ¤Ê±ß¤òÃÖ¤¯¤³¤È¤Ç¸ÉΩ¤µ¤»¤Þ¤¹¡£ °Ê²¼»²¾È: linespoints (56)¡£lt nodraw ¤Ï¡¢¼«Æ°Åª¤ËÉÁ¤«¤ì¤ëÀþʬ¤ÎÆÃÊÌ¤Ê ½¸¹ç¤òÍÞÀ©¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£Î㤨¤Ð¡¢Åù¹âÀþÉÁ²è¤ÎÃæ¤Î¤¢¤ë¥ì¥Ù¥ë¤ÎÅù¹â Àþ¤ò¡¢¤½¤ÎÀþ¼ï¤Ë nodraw ¤òÀßÄꤹ¤ë¤³¤È¤Ç¡¢¤½¤ÎÉÁ²è¤òÍÞÀ©¤Ç¤­¤Þ¤¹¡£

21 ¥ì¥¤¥ä¡¼ (layers)

gnuplot ¤Î¥°¥é¥Õ¤Ï¡¢¿§¡¹¤ÊÍ×ÁǤò¸ÇÄꤵ¤ì¤¿½çÈÖ¤ÇÉÁ¤­¾å¤²¤Æ¤¤¤¯¤³¤È¤Ç¹½ À®¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Î½çÈ֤ϡ¢¥­¡¼¥ï¡¼¥É behind, back, front ¤ò»È ¤Ã¤ÆÍ×ÁǤËÆÃÄê¤Î³¬Áؤò³ä¤êÅö¤Æ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢¥°¥é¥ÕÎÎ°è ¤ÎÇØ·Ê¿§¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢¿§¤Î¤Ä¤¤¤¿Ä¹Êý·Á¤ò°À­ behind ¤ÇÄêµÁ¤¹¤ì¤Ð¤¤ ¤¤¤ï¤±¤Ç¤¹¡£


    set object 1 rectangle from graph 0,0 to graph 1,1 fc rgb "gray" behind

ÉÁ²è¤Î½çÈ֤ϰʲ¼¤ÎÄ̤ê¤Ç¤¹:


    behind
    back
    ¥°¥é¥Õ¼«ÂÎ
    ¥°¥é¥Õ¤ÎɽÂê (`key`)
    front

³Æ³¬ÁØÆâ¤Ç¤Ï¡¢Í×ÁǤÎÉÁ²è¤Ï°Ê²¼¤Î½çÈ֤Ǥ¹:


    ³Ê»ÒÀþ¡¢¼´¡¢¶­³¦Í×ÁÇ (grid, axis, border elements)
    ÈÖ¹æ½ç¤Î¥Ô¥¯¥¹¥Þ¥Ã¥×²èÁü (pixmaps)
    ÈÖ¹æ½ç¤Î¥ª¥Ö¥¸¥§¥¯¥È (rectangle, circle, ellipse, polygon)
    ÈÖ¹æ½ç¤Î¥é¥Ù¥ë (label)
    ÈÖ¹æ½ç¤ÎÌð°õ (arrow)

1 ¥Ú¡¼¥¸¤ËÊ£¿ô¤Î¥°¥é¥Õ¤¬¤¢¤ë¾ì¹ç (multiplot ¥â¡¼¥É)¡¢¤³¤Î½ç½ø¤Ï¡¢Ê£¿ô ¥°¥é¥Õ¤òÁ´ÂΤȤ·¤ÆŬÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢³ÆÉÁ²èÍ×ÁǤËÊÌ¡¹¤ËŬÍѤ·¤Þ¤¹¡£

¤³¤ì¤ËÂФ¹¤ëÎã³°¤Ï¡¢TeX ·Ï¤Î½ÐÎÏ·Á¼° (Î㤨¤Ð pslatex ¤ä cairolatex Åù) ¤Ç¡¢¤³¤ì¤é¤Ï°ì¤Ä¤Î½ÐÎϤˤ¹¤Ù¤Æ¤Îʸ»úÎóÍ×ÁǤòÀѤ߽Ť͡¢¥°¥é¥ÕÍ×ÁǤÏÊÌ¤Ê ½ÐÎϤËÀѤ߽Ťͤޤ¹¡£°ìÈ̤ˤ³¤Î¾ì¹ç¡¢³Æʸ»úÎóÍ×ÁǤÏÁ´Éô¤¬¥°¥é¥Õ¤ÎÁ°¤Ë½Ð ¤Æ¤·¤Þ¤¦¤«¡¢µÕ¤ËÁ´Éô¤¬¥°¥é¥Õ¤Î΢¤ËÃÖ¤«¤ì¤Æ¤·¤Þ¤¦¤«¤Î¤É¤Á¤é¤«¤Ë¤Ê¤ê¤Þ¤¹¡£

22 ¥Þ¥¦¥¹ÆþÎÏ (mouse input)

¿¤¯¤Î½ÐÎÏ·Á¼°¤Ç¡¢¸½ºß¤ÎÉÁ²è¤Ë¥Þ¥¦¥¹¤ò»È¤Ã¤ÆºîÍѤò¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤Ã ¤Æ¤¤¤Þ¤¹¡£¤½¤Î¤¦¤Á¤¤¤¯¤Ä¤«¤Ï¥Û¥Ã¥È¥­¡¼¤ÎÄêµÁ¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¥Þ¥¦¥¹ ¥«¡¼¥½¥ë¤¬Í­¸ú¤ÊÉÁ²è¥¦¥£¥ó¥É¥¦¤Ë¤¢¤ë¤È¤­¤Ë¡¢¤¢¤ë¥­¡¼¤ò²¡¤¹¤³¤È¤Ç¤¢¤é¤« ¤¸¤áÄêµÁ¤·¤¿´Ø¿ô¤ò¼Â¹Ô¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Þ¥¦¥¹ÆþÎϤò batch ¥³¥Þ ¥ó¥É¥¹¥¯¥ê¥×¥È¤ÈÁȤ߹ç¤ï¤»¤ë¤³¤È¤â²Äǽ¤Ç¡¢Î㤨¤Ð pause mouse ¤È¤·¤Æ¡¢ ¤½¤Î¸å¤Ë¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¤Ë¤è¤Ã¤Æ¥Ñ¥é¥á¡¼¥¿¤È¤·¤ÆÊ֤äÆÍè¤ë¥Þ¥¦¥¹ÊÑ¿ô¤ò¤½ ¤Î¸å¤Î¥¹¥¯¥ê¥×¥ÈÆ°ºî¤ËÈ¿±Ç¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: bind (22.1), mouse variables (22.2)¡£¤Þ¤¿°Ê²¼¤â»²¾È: set mouse (112.53)¡£

22.1 Bind

½ñ¼°:


     bind {allwindows} [<key-sequence>] ["<gnuplot commands>"]
     bind <key-sequence> ""
     reset bind

bind ¤Ï¡¢¥Û¥Ã¥È¥­¡¼¤ÎÄêµÁ¡¢ºÆÄêµÁ¤Ë»ÈÍѤ·¤Þ¤¹¡£¥Û¥Ã¥È¥­¡¼¤È¤Ï¡¢ÆþÎÏ ¥«¡¼¥½¥ë¤¬¥É¥é¥¤¥Ð¤Î¥¦¥£¥ó¥É¥¦Æâ¤Ë¤¢¤ë¤È¤­¤Ë¡¢¤¢¤ë¥­¡¼¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥­ ¡¼¤ò²¡¤¹¤³¤È¤Ç¡¢gnuplot ¤Î¥³¥Þ¥ó¥ÉÎó¤ò¼Â¹Ô¤µ¤»¤ëµ¡Ç½¤Î¤³¤È¤ò¸À¤¤¤Þ¤¹¡£ bind ¤Ï¡¢gnuplot ¤¬ mouse ¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤Æ¤¤¤Æ ¤«¤Ä¥Þ¥¦¥¹¤¬Í­¸ú¤Ê½ÐÎÏ·Á¼°¾å¤Ç»È¤ï¤ì¤Æ¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤¡£¥æ¡¼¥¶»ØÄê¤Î¥­¡¼³äÅö (binding) ¤Ï¡¢ÁȤ߹þ¤ß (builtin) ¥­ ¡¼³äÅö¤òÃÖ¤­´¹¤¨¤Þ¤¹¤¬¡¢<space> ¤È 'q' ¤ÏÄ̾ï¤ÏºÆÄêµÁ¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤½ ¤ÎÍ£°ì¤ÎÎã³°¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: bind space (22.1.1)¡£

¥Þ¥¦¥¹¥Ü¥¿¥ó³ä¤êÅö¤Æ¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍ­¸ú¤Ç¤¹¡£

¥Û¥Ã¥È¥­¡¼¤Î°ìÍ÷¤òÆÀ¤ë¤Ë¤Ï show bind, ¤Þ¤¿¤Ï bind ¤È¥¿¥¤¥×¤¹¤ë¤«¡¢ ¥°¥é¥Õ¥¦¥£¥ó¥É¥¦¾å¤Ç¥Û¥Ã¥È¥­¡¼ 'h' ¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£

¥­¡¼ÄêµÁ¤Ï¡¢reset bind ¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÉüµ¢¤Ç¤­¤Þ¤¹¡£

½¤¾þ¥­¡¼¤ò´Þ¤àÊ£¿ô¤Î¥­¡¼¤ÎÄêµÁ¤Ï°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£

ɸ½à¤Ç¤Ï¥Û¥Ã¥È¥­¡¼¤Ï¸½ºß¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¾å¤ËÆþÎÏ¥«¡¼¥½¥ë¤¬¤¢¤ë¾ì¹ç¤Î¤ß ǧ¼±¤µ¤ì¤Þ¤¹¡£bind allwindows <key> ... (bind all <key> ... ¤È¾Êά ²Ä) ¤Ï¡¢<key> ¤Î³äÅö¤ò¡¢¤½¤ì¤¬¸½ºß¤ÎÍ­¸ú¤Ê¤â¤Î¤«Èݤ«¤Ë´Ø¤ï¤é¤º¡¢¤¹¤Ù¤Æ ¤Î gnuplot ¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¾å¤Ç²Äǽ¤Ë¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢gnuplot ÊÑ¿ô MOUSE_KEY_WINDOW ¤Ë¤½¤ì¤¬¹Ô¤Ê¤ï¤ì¤¿¥¦¥£¥ó¥É¥¦¤Î ID ¤¬Êݸ¤µ¤ì¤ë¤Î¤Ç¤½ ¤ì¤ò¥­¡¼¤Ë³ä¤êÅö¤Æ¤¿¥³¥Þ¥ó¥É¤Ç»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:

- ¥­¡¼³äÅö¤ÎÀßÄê:


   bind a "replot"
   bind "ctrl-a" "plot x*x"
   bind "ctrl-alt-a" 'print "great"'
   bind Home "set view 60,30; replot"
   bind all Home 'print "This is window ",MOUSE_KEY_WINDOW'

- ¥­¡¼³äÅö¤òɽ¼¨:


   bind "ctrl-a"          # ctrl-a ¤ËÂФ¹¤ë¥­¡¼³äÅö¤òɽ¼¨
   bind                   # Á´¤Æ¤Î¥­¡¼ÄêµÁ¤òɽ¼¨
   show bind              # Á´¤Æ¤Î¥­¡¼ÄêµÁ¤òɽ¼¨

- ¥­¡¼³äÅö¤òºï½ü:


   bind "ctrl-alt-a" ""   # ctrl-alt-a ¤Î¥­¡¼³äÅö¤òºï½ü
                            (ÁȤ߹þ¤ß¥­¡¼ÄêµÁ¤Ïºï½ü¤µ¤ì¤Þ¤»¤ó)
   reset bind             # ¥Ç¥Õ¥©¥ë¥È (ÁȤ߹þ¤ß) ¤Î¥­¡¼ÄêµÁ¤òƳÆþ

- ¥È¥°¥ë¥¹¥¤¥Ã¥Á·Á¼°¤Ë¥­¡¼³äÅö:


 v=0
 bind "ctrl-r" "v=v+1;if(v%2)set term x11 noraise; else set term x11 raise"

½¤¾þ¥­¡¼ (ctrl / alt) ¤ÏÂçʸ»ú¾®Ê¸»ú¤Î¶èÊ̤Ϥ¢¤ê¤Þ¤»¤ó¤¬¡¢¥­¡¼¤Ï¤½¤¦¤Ç ¤Ï¤¢¤ê¤Þ¤»¤ó:


   ctrl-alt-a == CtRl-alT-a
   ctrl-alt-a != ctrl-alt-A

½¤¾þ¥­¡¼ (alt == meta) ¤Î°ìÍ÷:


   ctrl, alt, shift (¥Ü¥¿¥ó 1, ¥Ü¥¿¥ó 2, ¥Ü¥¿¥ó 3 ¤Ç¤Î¤ßÍ­¸ú)

¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ëÆü쥭¡¼¤Î°ìÍ÷:


  "BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock",
  "Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down",
  "PageUp", "PageDown", "End", "Begin",


  "KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4",
  "KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp",
  "KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal",
  "KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal",
  "KP_Divide",


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

°Ê²¼¤Ï¡¢¼ÂºÝ¤Î¥­¡¼¤Ç¤Ï¤Ê¤¯¡¢¥¦¥£¥ó¥É¥¦¤Ë´Ø¤¹¤ë¥¤¥Ù¥ó¥È¤Ç¤¹:


  "Button1" "Button2" "Button3" "Close"

°Ê²¼¤â»²¾È: mouse (112.53)¡£

22.1.1 Bind space

gnuplot ¤¬¡¢configure »þ¤Ë¥ª¥×¥·¥ç¥ó –enable-rase-console ¤ò¤Ä¤±¤Æ¥¤ ¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¾ì¹ç¤Ï¡¢ÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç <space> ¤ò¥¿¥¤¥×¤¹¤ë¤È gnuplot ¤Î¥³¥Þ¥ó¥É¥¦¥£¥ó¥É¥¦¤¬Á°Ì̤˽Фޤ¹¡£Â¿Ê¬¡£¼ÂºÝ¤Ë¤Ï¡¢¤³¤ì¤Ï¶¯¤¯ ¥·¥¹¥Æ¥à¤Ë°Í¸¤·¤Þ¤¹¡£¤³¤Î¥Û¥Ã¥È¥­¡¼¤Ï¡¢'gnuplot -ctrlq' ¤Î¤è¤¦¤Ë¤·¤Æ gnuplot ¤òµ¯Æ°¤¹¤ë¤«¡¢¤Þ¤¿¤Ï X ¥ê¥½¡¼¥¹¤Î 'gnuplot*ctrlq' ¤òÀßÄꤹ¤ë¤³ ¤È¤Ç ctrl-space ¤ËÊѹ¹¤Ç¤­¤Þ¤¹¡£

22.2 ¥Þ¥¦¥¹ÍѤÎÊÑ¿ô (Mouse variables)

mousing (¥Þ¥¦¥¹µ¡Ç½) ¤¬Í­¸ú¤Ê¾ì¹ç¡¢¸½ºß¤Î¥¦¥£¥ó¥É¥¦¾å¤Ç¤Î¥Þ¥¦¥¹¥¯¥ê ¥Ã¥¯¤Ë¤è¤Ã¤Æ gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç»È¤¦¤³¤È¤¬¤Ç¤­¤ë¿§¡¹¤Ê¥æ¡¼¥¶ ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£¥¯¥ê¥Ã¥¯»þ¤Î¥Þ¥¦¥¹¤ÎºÂɸ¤ÏÊÑ¿ô MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ¤ËÂåÆþ¤µ¤ì¤Þ¤¹¡£¥¯¥ê¥Ã¥¯¤µ¤ì¤¿¥Ü¥¿¥ó¤ä¡¢¤½¤Î¤È¤­¤Î ¥á¥¿¥­¡¼¤Î¾õÂÖ¤Ï MOUSE_BUTTON, MOUSE_SHIFT, MOUSE_ALT, MOUSE_CTRL ¤ËÂå Æþ¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÑ¿ô¤ÏǤ°Õ¤ÎÉÁ²è¤Î³«»Ï»þ¤Ë¤Ï̤ÄêµÁ¤Ç¡¢Í­¸ú¤ÊÉÁ²è¥¦ ¥£¥ó¥É¥¦Ãæ¤Ç¤Î¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¥¤¥Ù¥ó¥È¤Ë¤è¤Ã¤Æ½é¤á¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£Í­¸ú¤Ê ÉÁ²è¥¦¥£¥ó¥É¥¦Ãæ¤Ç¥Þ¥¦¥¹¤¬´û¤Ë¥¯¥ê¥Ã¥¯¤µ¤ì¤¿¤«¤É¤¦¤«¤ò¥¹¥¯¥ê¥×¥È¤«¤éÄ´ ¤Ù¤ë¤Ë¤Ï¡¢¤³¤ì¤é¤ÎÊÑ¿ô¤Î¤¦¤Á¤Î¤É¤ì¤«°ì¤Ä¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Á¥§ ¥Ã¥¯¤¹¤ì¤Ð½½Ê¬¤Ç¤¹¡£


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

ÉÁ²è¥¦¥£¥ó¥É¥¦¾å¤Ç¤Î°ìÏ¢¤Î¥­¡¼ÆþÎϤòÄÉÀפ¹¤ë¤³¤È¤â¡¢¥Þ¥¦¥¹¥³¡¼¥É¤ò»È¤¦ ¤³¤È¤Ç²Äǽ¤È¤Ê¤ê¤Þ¤¹¡£


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

pause mouse keypress ¤¬¡¢¥­¡¼ÆþÎϤǽªÎ»¤·¤¿¾ì¹ç¤Ï MOUSE_KEY ¤Ë¤Ï²¡¤µ ¤ì¤¿¥­¡¼¤Î ASCII ¥³¡¼¥É¤¬Êݸ¤µ¤ì¤Þ¤¹¡£MOUSE_CHAR ¤Ë¤Ï¤½¤Îʸ»ú¼«¿È¤¬Ê¸ »úÎóÃͤȤ·¤ÆÊݸ¤µ¤ì¤Þ¤¹¡£pause ¥³¥Þ¥ó¥É¤¬ (Î㤨¤Ð ctrl-C ¤äÉÁ²è¥¦¥£¥ó ¥É¥¦¤¬³°Éô¤«¤éÊĤ¸¤é¤ì¤ë¤Ê¤É¤·¤Æ) °Û¾ï½ªÎ»¤·¤¿¾ì¹ç¤Ï MOUSE_KEY ¤Ï -1 ¤Ë¤Ê¤ê¤Þ¤¹¡£

¥Þ¥¦¥¹¤Ë¤è¤ë³ÈÂç¤Î¸å¤Î¿·¤·¤¤ÉÁ²èÈϰϤϡ¢GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN, GPVAL_Y_MAX ¤Ç»²¾È¤Ç¤­¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: gnuplot-defined variables (15.6)¡£

23 »Äα (Persist)

gnuplot ¤Î¿¤¯¤Î½ÐÎÏ·Á¼° (aqua, pm, qt, x11, windows, wxt, ...) ¤¬¡¢¥¹ ¥¯¥ê¡¼¥ó¾å¤Ë¥°¥é¥Õ¤ò¤½¤ÎÃæ¤ËÉÁ¤¤¤¿É½¼¨ÍѤΥ¦¥£¥ó¥É¥¦¤òÊ̤˳«¤­¤Þ¤¹¡£¥ª ¥×¥·¥ç¥ó persist ¤Ï¡¢¼ç¤¿¤ë¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤¿¤È¤­¤Ë¤â¡¢¤½¤ì¤é¤Î¥¦ ¥£¥ó¥É¥¦¤ò»Ä¤¹¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÈóÂÐÏ÷¿½ÐÎÏ·Á¼°½ÐÎϤǤϲ¿¤â¤·¤Þ¤»¤ó¡£ Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È


    gnuplot -persist -e 'plot sinh(x)'

gnuplot ¤Ï¡¢É½¼¨¥¦¥£¥ó¥É¥¦¤ò³«¤­¡¢¤½¤ÎÃæ¤Ë¥°¥é¥Õ¤òÉÁ¤­¡¢¤½¤·¤Æ½ªÎ»¤·¡¢ ɽ¼¨¥¦¥£¥ó¥É¥¦¤Ï¥°¥é¥Õ¤ò¤½¤ÎÃæ¤Ë»ý¤Ã¤¿¤Þ¤Þ¥¹¥¯¥ê¡¼¥ó¤Ë»Ä¤ê¤Þ¤¹¡£ ¿·¤·¤¤½ÐÎÏ·Á¼°¤òÀßÄꤹ¤ë¤È¤­¤Ë persist ¤ä nopersist ¤ò»ØÄꤹ¤ë¤³¤È ¤â¤Ç¤­¤Þ¤¹¡£


    set term qt persist size 700,500

½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢¤½¤Î»Ä¤Ã¤¿¥¦¥£¥ó¥É¥¦¾å¤Ç¤â¿¾¯¤Î¥Þ¥¦¥¹Áàºî¤¬²Äǽ¤Ê ¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¥°¥é¥Õ¤ÎºÆÉÁ²è¤òÍ׵᤹¤ë¥º¡¼¥à (¤È¤½¤ÎµÕ) ¤Î¤è ¤¦¤ÊÁàºî¤Ï¡¢´û¤Ë¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤Æ¤¤¤ë¤Î¤Ç̵Íý¤Ç¤¹¡£ÉÁ²è¥¦¥£¥ó¥É¥¦¤ò ³«¤¤¤¿¤Þ¤Þ»Ä¤·¡¢¤½¤Î¸å¤Î¥Þ¥¦¥¹µ¡Ç½¤â´°Á´¤Ë²Äǽ¤Ë¤¹¤ë¤Ë¤Ï¡¢Î㤨¤Ð gnuplot ¤òÂÐÏ÷¿¤Ç¤Ï¤Ê¤¯¡¢¥¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤«¤é¼Â¹Ô¤µ¤»¤ëÊýË¡¤¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: pause mouse close (98.1)¡£

24 ÉÁ²è (Plotting)

gnuplot ¤Ë¤Ï¥°¥é¥Õ¤òÉÁ²è¤¹¤ë 4 ¤Ä¤Î¥³¥Þ¥ó¥É plot, splot, replot, refresh ¤¬¤¢¤ê¤Þ¤¹¡£Â¾¤Î¥³¥Þ¥ó¥É¤Ï¡¢ºÇ½ªÅª¤Ë¥°¥é¥Õ¾å¤ËÀ¸À®¤µ¤ì¤ëÉÁ²è Í×ÁǤ䡢¥ì¥¤¥¢¥¦¥È¡¢¥¹¥¿¥¤¥ë¤ÎÀ©¸æ¤ò¹Ô¤¤¤Þ¤¹¡£ plot ¤Ï 2 ¼¡¸µ¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£splot ¤Ï 3 ¼¡¸µ¥°¥é¥Õ (¤â¤Á¤í¤ó ¼ÂºÝ¤Ë¤Ï¤½¤Î 2 ¼¡¸µÌ̤ؤμͱÆ) ¤òÀ¸À®¤·¤Þ¤¹¡£replot ¤Ï¡¢Ä¾Á°¤Î plot ¤ä splot ¥³¥Þ¥ó¥É¤òºÆ¼Â¹Ô¤·¤Þ¤¹¡£refresh ¤Ï¡¢replot ¤È»÷¤Æ¤¤¤Þ¤¹ ¤¬¡¢ÆþÎϥǡ¼¥¿¤ò¥Õ¥¡¥¤¥ë¤äÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤éºÆÆɤ߹þ¤ß¤¹¤ëÂå¤ï¤ê¤Ë¡¢Á° ¤ËÊݸ¤·¤¿¥Ç¡¼¥¿¤òºÆ»ÈÍѤ·¤Þ¤¹¡£

¤³¤ì¤é 4 ¤Ä¤Î¥³¥Þ¥ó¥É¤Î¤¦¤Á¤Î°ì¤Ä¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ï¡¢¸½ºßÄêµÁ¤µ¤ì¤Æ¤¤¤ë ¼´¡¢¥é¥Ù¥ë¡¢¥¿¥¤¥È¥ë¡¢¤ª¤è¤Ó¸µ¤Î plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤵ¤ì¤¿¤µ¤Þ¤¶¤Þ¤Ê´Ø ¿ô¤ä¥Ç¡¼¥¿¤Î¤¹¤Ù¤Æ¤ò´Þ¤à½ÐÎϤΥ¹¥¯¥ê¡¼¥ó¤òºÆÉÁ²è¤¹¤ë¤«¡¢¿·¤·¤¤½ÐÎÏ¥Ú¡¼ ¥¸¤òÀ¸À®¤·¤Þ¤¹¡£¤â¤·¡¢°ì¤Ä¤Î¥Ú¡¼¥¸¤ËÊ£¿ô¤Î¥°¥é¥Õ¤òÎÙ¤ê¹ç¤¦¤è¤¦¤ËÊÂ¤Ù¤Æ ½ÐÎϤ·¤¿¤¤¾ì¹ç¡¢Î㤨¤ÐÊ£¿ô¤Î¿Þ¤Î¥Ñ¥Í¥ë¤òºîÀ®¤·¤¿¤ê¡¢Â礭¤Ê¥°¥é¥Õ¤ÎÃæ¤Ë ¾®¤µ¤Ê¥°¥é¥Õ¤òÁÞÆþ¤·¤¿¤ê¤·¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É set multiplot ¤ò»ÈÍÑ ¤·¡¢³ÆÉÁ²è¥³¥Þ¥ó¥É¤Ç¿·¤·¤¤¥Ú¡¼¥¸¤¬ºî¤é¤ì¤ë¤Î¤òÍÞÀ©¤·¤Æ¤¯¤À¤µ¤¤¡£

ÉÁ²è¤Ë´Ø¤¹¤ë°ìÈÌŪ¤Ê¾ðÊó¤ÎÂçȾ¤Ï¡¢plot ¤Ë´Ø¤¹¤ë¹à¤Ç¸«¤Ä¤«¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ë¸ÇÍ­¤Î¾ðÊó¤Ï splot ¤Î¹à¤Ë¤¢¤ê¤Þ¤¹¡£

plot ¤Ï xy ľ¸òºÂɸ·Ï¤È¶ËºÂɸ·Ï¤¬»È¤¨¤Þ¤¹¡£°Ê²¼»²¾È: set polar (112.74)¡£ splot ¤Ï xyz ľ¸òºÂɸ¤¬»È¤¨¤Þ¤¹¤¬¡¢3 ¼¡¸µ¶ËºÂɸ¡¢±ßÃìºÂɸ¥Ç¡¼¥¿¤âÆþ ÎϤǤ­¤Þ¤¹¡£°Ê²¼»²¾È: set mapping (112.48)¡£ plot ¤Ç¤Ï¡¢4 ¤Ä¤Î¶­³¦ x (²¼), x2 (¾å), y (º¸), y2 (±¦) ¤ò¤½¤ì¤¾¤ìÆÈ Î©¤Ê¼´¤È¤·¤Æ°·¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó axes ¤Ç¡¢Í¿¤¨¤é¤ì¤¿´Ø¿ô¤ä ¥Ç¡¼¥¿½¸¹ç¤ò¤É¤Î¼´¤Î¥Ú¥¢¤Çɽ¼¨¤µ¤»¤ë¤«¤òÁª¤Ù¤Þ¤¹¡£¤Þ¤¿¡¢³Æ¼´¤Î½Ì¼Ü¤ä¸« ½Ð¤·¤Å¤±¤ò´°Á´¤ËÀ©¸æ¤¹¤ë¤¿¤á¤Ë½½Ê¬¤ÊÊ亴¤È¤Ê¤ë set ¥³¥Þ¥ó¥É·²¤¬Â¸ºß ¤·¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Ï¡¢set xlabel ¤Î¤è¤¦¤Ë¼´¤Î̾Á°¤ò¤½¤ÎÃæ¤Ë »ý¤Ã¤Æ¤¤¤Þ¤¹¤·¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤Ï set logscale xy ¤Î¤è¤¦¤Ë¡¢1 ¤Ä¡¢¤Þ ¤¿¤ÏÊ£¿ô¤Î¼´¤Î̾Á°¤ò¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¤È¤ê¤Þ¤¹¡£z ¼´¤òÀ©¸æ¤¹¤ë¥ª¥×¥·¥ç¥ó ¤ä¥³¥Þ¥ó¥É¤Ï 2 ¼¡¸µ¥°¥é¥Õ¤Ë¤Ï¸úÎϤò»ý¤Á¤Þ¤»¤ó¡£

splot ¤Ï¡¢ÅÀ¤äÀþ¤Ë²Ã¤¨¤Æ¶ÊÌ̤äÅù¹âÀþ¤ò½ñ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£3 ¼¡¸µ¤Î´Ø ¿ô¤Î³Ê»ÒÄêµÁ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set isosamples (112.35)¡£3 ¼¡¸µ ¥Ç¡¼¥¿¤Î¥Õ¥¡¥¤¥ë¤ËɬÍפʷÁÂ֤ˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: splot datafile (115.1)¡£Åù ¹âÀþ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set contour (112.19), set cntrlabel (112.15), set cntrparam (112.16)¡£

splot ¤Ç¤Î½Ì¼Ü¤ä¸«½Ð¤·ÉÕ¤±¤ÎÀ©¸æ¤Ï¡¢z ¼´¤Ë¤âÍ­¸ú¤Ç¤¢¤ë¤³¤È¡¢¤ª¤è¤Ó x2 ¼´¡¢y2 ¼´¤Î¥é¥Ù¥ëÉÕ¤±¤¬ set view map ¤ò»È¤Ã¤Æºî¤é¤ì¤ëµ¿»÷Ū¤Ê 2 ¼¡¸µÉÁ²è¤Ë¤Î¤ß²Äǽ¤Ç¤¢¤ë¤³¤È¤ò½ü¤±¤Ð plot ¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£

25 ¥×¥é¥°¥¤¥ó (Plugins)

¥°¥é¥Õ¤ä¿ô¼°¤ËÍøÍѤǤ­¤ë´Ø¿ô·²¤Ï¡¢¶¦Í­¥é¥¤¥Ö¥é¥ê¤«¤é¼Â¹Ô²Äǽ¤Ê´Ø¿ô¤ò¼è ¤ê¹þ¤à¥×¥é¥°¥¤¥ó¤Î»ÅÁȤߤˤè¤ê³ÈÄ¥¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢gnuplot ¤Î¥Ð¡¼¥¸¥ç ¥ó 5.4 ¤Ç¤Ï¡¢¾åÊýÉÔ´°Á´¥¬¥ó¥Þ´Ø¿ô Q(a,x) ¤ÏÁȤ߹þ¤ß´Ø¿ô¤È¤·¤Æ¤Ï¼ÂÁõ¤· ¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£
Q(a, x) = ${\frac{{1}}{{\Gamma(x)}}}$$\intop_{{x}}^{{\infty}}$ta-1e-tdt .        ¤³¤ì¤Ï¡¢gnuplot Æâ¤ÇľÀܰʲ¼¤Î¤è¤¦¤Ë¤·¤Æ¶á»÷Ū¤ËÄêµÁ¤Ç¤­¤Þ¤¹¡£


     Q(a,x) = 1. - igamma(a,x)

¤·¤«¤·¡¢¤³¤ì¤Ï¡¢1 ¤Î¶á¤¯¤Î igamma(a,x) ¤ÎÃͤÎÀºÅ٤˼¼ÁŪ¤Ê¸Â³¦¤¬¤¢¤ê ¤Þ¤¹¡£¤è¤êÀµ³Î¤ÊÃͤòÊÖ¤¹¼ÂÁõ¤¬Íߤ·¤¤¾ì¹ç¡¢¥×¥é¥°¥¤¥ó¤òÄ̤·¤ÆÍÑ°Õ¤¹¤ë¤Î ¤¬¤¤¤¤¤Ç¤·¤ç¤¦ (²¼¤ò»²¾È)¡£°ìÅÙ¼è¤ê¹þ¤á¤Ð¡¢´Ø¿ô¤Ï¡¢gnuplot Æâ¤Î¾¤ÎÁÈ ¤ß¹þ¤ß´Ø¿ô¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤ÈÁ´¤¯Æ±ÍͤËÍøÍѤǤ­¤Þ¤¹¡£ °Ê²¼»²¾È: import (94)¡£

gnuplot ¤ÎÇÛÉÛʪ¤Î¥Ç¥£¥ì¥¯¥È¥ê demo/plugin ¤Ë¤Ï¡¢¥×¥é¥°¥¤¥ó¥é¥¤¥Ö¥é¥ê ¤òÀ¸À®¤¹¤ë¤¿¤á¤ÎÀâÌÀ¤È¥½¡¼¥¹¥³¡¼¥É¤¬¤¢¤ê¤Þ¤¹¡£´Êñ¤Ê¥µ¥ó¥×¥ë¥Õ¥¡¥¤¥ë demo_plugin.c ¤Î´Ø¿ô¤ò¡¢¤¢¤Ê¤¿¤Î¶½Ì£¤¢¤ë´Ø¿ô¤Î¼ÂÁõ¤ËÃÖ¤­´¹¤¨¤Æ½¤Àµ¤· ¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ë¤Ï¡¢³°Éô¤Î¿ô³Ø¥é¥¤¥Ö¥é¥ê¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤â´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£

¥Ç¥£¥ì¥¯¥È¥ê demo/plugin ¤Ë¤Ï¡¢Q(a,x) ¤ò¼ÂÁõ¤¹¤ë¥×¥é¥°¥¤¥ó¤Î¥½¡¼¥¹¤â ¤¢¤ê¤Þ¤¹¡£¾å¤ÇÃí°Õ¤·¤¿¤è¤¦¤Ë¡¢¤³¤Î¥×¥é¥°¥¤¥ó¤Ï¡¢gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ë´Þ¤Þ¤ì¤ë uigamma ¤ÈƱ¤¸´Ø¿ô¤ò¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¼ÂÁõ¤¹¤ë¤³¤È¤ò²Ä ǽ¤Ë¤·¤Þ¤¹¡£


    import Q(a,x) from "uigamma_plugin"
    uigamma(a,x) = ((x<1 || x<a) ? 1.0-igamma(a,x) : Q(a,x))

26 Scope of variables

gnuplot ¤ÎÊÑ¿ô¤Ï¡¢°Ê²¼¤Ë¼¨¤¹ÆÃÊ̤ʾì¹ç¤ò½ü¤¤¤Æ¤ÏÂç°èŪ (global) ¤Ç¤¹¡£ Í­¸ú¤ÊÊÑ¿ô¤ËÂФ·¤Æ¤Ï¡¢¤½¤Î̾Á°¤Ç¶èÊ̤µ¤ì¤¿¡¢±Ê³Ū¤Ê°ìÍ÷ɽ¤¬¤¢¤ê¤Þ¤¹¡£ ÊÑ¿ô¤Î³ä¤êÅö¤Æ¤È¤Ï¡¢¤½¤Î°ìÍ÷ɽ¤Ë¹àÌܤò°ì¤Äºî¤ë¤«¡¢ÃÖ¤­´¹¤¨¤ë¤³¤È¤ò°ÕÌ£ ¤·¤Þ¤¹¡£¤½¤Î°ìÍ÷ɽ¤«¤éÊÑ¿ô¤òºï½ü¤¹¤ëÍ£°ì¤ÎÊýË¡¤Ï¡¢¥³¥Þ¥ó¥É undefine ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¤¹¡£

Îã³° 1: ·«¤êÊÖ¤·»ØÄê¤ÎÃæ¤Ç»ÈÍѤµ¤ì¤ëÊÑ¿ô¤ÎÍ­¸úÈÏ°Ï (¥¹¥³¡¼¥×) ¤Ï¡¢¤½¤Î ·«¤êÊÖ¤·¤ÎÃæ¤À¤±¤Ç¤¹¡£·«¤êÊÖ¤·ÊÑ¿ô¤ÎÃͤò¡¢¤½¤Î¼Â¹Ô¥Ö¥í¥Ã¥¯Æâ¤Ç±Ê³Ū¤Ë Êѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£·«¤êÊÖ¤·ÊÑ¿ô¤¬·«¤êÊÖ¤·¤ÎÁ°¤ËÃͤò»ý¤Ã¤Æ¤¤¤¿¤È ¤·¤¿¤é¡¢¤½¤ÎÃͤϷ«¤êÊÖ¤·¤Î½ªÎ»»þ¤ËÊÝ»ý¡¢¤Þ¤¿¤ÏÉüµ¢¤µ¤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢1 2 3 4 5 6 7 8 9 10 A ¤ò½ÐÎϤ·¤Þ¤¹¡£


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

Îã³° 2: ´Ø¿ôÄêµÁ¤Ç»ÈÍѤµ¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤Î̾Á°¤Ï¡¢¤½¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤È¤­ ¤ËÍ¿¤¨¤ë¼ÂºÝ¤ÎÃͤÎÃÖ¤­¾ì½ê¤Ë²á¤®¤Þ¤»¤ó¡£Î㤨¤Ð¡¢°Ê²¼¤ÎÎã¤Ç¤Ï¡¢x ¤È y ¤Î¸½ºß¡¢¤¢¤ë¤¤¤Ï̤Íè¤ÎÃͤϤ³¤³¤Ç¼¨¤µ¤ì¤ëÄêµÁ¤Ë¤Ï´Ø·¸¤·¤Ê¤¤¤¬¡¢A ¤Ï¤³¤Î ´Ø¿ô¤¬¸å¤Çɾ²Á¤µ¤ì¤ë¤È¤­¤Ë¤ÏÂç°èÊÑ¿ô¤È¤·¤Æ¸ºß¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó:


    func(x,y) = A + (x+y)/2.

Îã³° 3: ¥³¥Þ¥ó¥É local ¤ÇÀë¸À¤µ¤ì¤¿ÊÑ¿ô¡£ local »ØÄê (¥Ð¡¼¥¸¥ç¥ó 6 ¤Ç¤Î¿·µ¡Ç½) ¤Ï¡¢ÊÑ¿ô¡¢¤Þ¤¿¤ÏÇÛÎó¤Î¥ª¥×¥·¥ç ¥óŪ¤ÊÀë¸À¤ò²Äǽ¤Ë¤·¡¢¤½¤ì¤Ë¤è¤ê¤½¤ì¤¬¸«¤Ä¤«¤ë¥³¡¼¥É¥Ö¥í¥Ã¥¯ÆâÉô¤Ë¤½¤Î Í­¸úÈϰϤòÀ©¸Â¤¹¤ë¤â¤Î¤Ç¤¹¡£¤³¤Î¥³¡¼¥É¥Ö¥í¥Ã¥¯¤È¤Ï¡¢load ¤ä call ¤ÎÂоݡ¢´Ø¿ô¥Ö¥í¥Ã¥¯¤Îɾ²Á¡¢¤½¤·¤Æ¾ò·ï if, else, do for, while ¤Î¸å¤Ë³¤¯Ãæ³ç¸ÌÆâ¤Î¥³¡¼¥É¤Ç¤¹¡£ ¶É½ê (local) ÊÑ¿ô¤Î̾Á°¤¬Âç°è (global) ÊÑ¿ô¤È½Å¤Ê¤Ã¤¿¾ì¹ç¡¢¤½¤Î¶É½êÊÑ ¿ô¤ÎÍ­¸úÈϰϤ«¤éÈ´¤±¤ë¤Þ¤Ç¤Ï¡¢Âç°èÊÑ¿ô¤Ï±£¤µ¤ì¤Þ¤¹¡£

27 ½é´ü²½ (Startup (initialization))

µ¯Æ°»þ¤Ë¡¢gnuplot ¤Ï¤Þ¤º¥·¥¹¥Æ¥àÍѤνé´üÀßÄê¥Õ¥¡¥¤¥ë gnuplotrc ¤òõ ¤·¤Þ¤¹¡£¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÃÖ¤­¾ì½ê¤Ï gnuplot ¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë·èÄꤵ¤ì¡¢ show loadpath ¤ÇÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£¼¡¤Ë¥æ¡¼¥¶¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥êÆ⠤˸ĿÍÍѤÎÀßÄê¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¡£¤½¤Î¥Õ¥¡¥¤¥ë¤Ï Unix ·Ï¤Î¥·¥¹¥Æ¥à¤Ç¤Ï .gnuplot ¤Ç¤¢¤ê¡¢¤½¤Î¾¤Î½èÍý·Ï¤Ç¤Ï GNUPLOT.INI ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ (OS/2 ¤Ç¤Ï¡¢´Ä¶­ÊÑ¿ô GNUPLOT ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë̾Á°¤Î¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë ¤½¤ì¤òõ¤·¤Þ¤¹; Windows ¤Ç¤Ï¡¢APPDATA ¤ò»ÈÍѤ·¤Þ¤¹)¡£Unix ·Ï¤Î¥·¥¹¥Æ ¥à¤Ç¤Ï¡¢ÄÉ²Ã¤Ç gnuplot ¤Ï $XDG_CONFIG_HOME/gnuplot/gnuplotrc ¤â¥Á¥§¥Ã ¥¯¤·¤Þ¤¹¡£

28 ʸ»úÎóÄê¿ô¡¢Ê¸»úÎóÊÑ¿ô¡¢Ê¸»úÎó´Ø¿ô (Strings)

ʸ»úÎóÄê¿ô¤Ë²Ã¤¨¤Æ¡¢¤Û¤È¤ó¤É¤Î gnuplot ¥³¥Þ¥ó¥É¤Ïʸ»úÎóÊÑ¿ô¡¢Ê¸»úÎó¼° ¤Þ¤¿¤Ïʸ»úÎó¤òÊÖ¤¹´Ø¿ô¤â¼õ¤±ÉÕ¤±¤Þ¤¹¡£Î㤨¤Ð¡¢°Ê²¼¤Î 4 ¤Ä¤Î 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

28.1 Éôʬʸ»úÎó (substrings)

Ǥ°Õ¤Îʸ»úÎó¡¢Ê¸»úÎóÊÑ¿ô¡¢Ê¸»úÎóÃÍ´Ø¿ô¤Ë¡¢ÈÏ°Ï»ØÄê»Ò¤ò¤Ä¤±¤ë¤³¤È¤Ë¤è¤ê Éôʬʸ»úÎó¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£ÈÏ°Ï»ØÄê»Ò¤Ï [begin:end] ¤Î·Á¤Ç¡¢begin ¤ÏÉô ʬʸ»úÎó¤ÎÀèƬ°ÌÃÖ¡¢end ¤ÏºÇ¸å¤Î°ÌÃ֤Ǥ¹¡£°ÌÃÖ»ØÄê¤Ï¡¢ºÇ½é¤Îʸ»ú¤ò 1 ÈÖÌܤȸ«¤Þ¤¹¡£ÀèƬ¤Î°ÌÃÖ¡¢ºÇ¸å¤Î°ÌÃ֤϶õ¡¢¤¢¤ë¤¤¤Ï '*' ¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾ì¹ç¡¢¤½¤ì¤Ï¸µ¤Îʸ»úÎó¼«ÂΤÎÀèƬ¡¢¤¢¤ë¤¤¤ÏºÇ¸å¤ò°ÕÌ£¤·¤Þ¤¹¡£¤è¤Ã¤Æ str[:] ¤ä str[*:*] ¤Ï¤É¤Á¤é¤â str ¤Îʸ»úÎóÁ´ÂΤò°ÕÌ£¤·¤Þ¤¹¡£ Îã:


    eos = strlen(file)
    if (file[eos-3:*] eq ".dat") {
        set output file[1:eos-4] . ".png"
        plot file
    }

ƱÅù¤Î´Ø¿ô substr( string, begin, end ) ¤â¤¢¤ê¤Þ¤¹¡£

28.2 ʸ»úÎó±é»»»Ò (string operators)

¼¡¤Î 3 ¤Ä¤ÎÆó¹à±é»»»Ò¤Ïʸ»úÎó¤ËºîÍѤ·¤Þ¤¹: ʸ»úÎó¤Î·ë¹ç±é»»»Ò ".", ʸ »úÎó¤ÎÅù¹æ±é»»»Ò "eq", ¤ª¤è¤Óʸ»úÎó¤ÎÉÔÅù¹æ±é»»»Ò "ne" ¤Ç¤¹¡£°Ê²¼¤ÎÎã ¤Ç¤Ï TRUE ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£


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

28.3 ʸ»úÎó´Ø¿ô (string functions)

gnuplot ¤Ï¡¢Ê¸»úÎó¤ËºîÍѤ¹¤ëÁȤ߹þ¤ß´Ø¿ô¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ÈÆÍÑŪ¤Ê½ñ¼°´Ø¿ô: °Ê²¼»²¾È: gprintf (112.31.1), sprintf (15.3)¡£ »þ¹ï½ñ¼°´Ø¿ô: °Ê²¼»²¾È: strftime (15.3), strptime (15.3)¡£ ʸ»úÎóÁàºî: °Ê²¼»²¾È: split (15.3.21), substr (15.3), strstrt (15.3), trim (15.3.21), word (15.3.21), words (15.3.21)¡£

28.4 ʸ»úÎ󥨥󥳡¼¥É (string encoding)

gnuplot ¤ÎÁȤ߹þ¤ßʸ»úÎóÁàºî´Ø¿ô¤Ï¡¢UTF-8 ¥¨¥ó¥³¡¼¥É¤òǧ¼±¤·¤Þ¤¹ (°Ê²¼ »²¾È: set encoding (112.27))¡£Îã:


set encoding utf8
utf8string = "¦Á¦Â¦Ã"
strlen(utf8string) ¤Ï 3 ¤òÊÖ¤¹ (ʸ»ú¿ô¤Ç¤¢¤Ã¤Æ¡¢¥Ð¥¤¥È¿ô¤Ç¤Ï¤Ê¤¤)
utf8string[2:2] ¤Ï "¦Â" ¤È¤Ê¤ë
strstrt(utf8string,"¦Â") ¤Ï 2 ¤È¤Ê¤ë

(ÌõÃí: ¤¤¤º¤ì¤â UTF-8 ¥¨¥ó¥É¡¼¥É¤ÇÍ¿¤¨¤¿¾ì¹ç)

29 ÃÖ´¹¤È¥³¥Þ¥ó¥É¥é¥¤¥ó¥Þ¥¯¥í (Substitution)

gnuplot ¤Ø¤ÎÌ¿Îáʸ»úÎ󤬺ǽé¤ËÆɤ߹þ¤Þ¤ì¤¿»þÅÀ¡¢¤¹¤Ê¤ï¤Á¤Þ¤À¤½¤ì¤¬²ò¼á ¤µ¤ì¡¢¤â¤·¤¯¤Ï¼Â¹Ô¤µ¤ì¤ëÁ°¤ÎÃʳ¬¤Ç¡¢2 ¤Ä¤Î·Á¼°¤Îñ¸ì¤ÎÃÖ´¹¤¬¼Â¹Ô¤µ¤ì¤Þ ¤¹¡£¤½¤ì¤é¤ÏµÕ°úÍÑÉä (¡®) (ASCII ÈÖ¹æ 96) ¤Ç°Ï¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ï @ (ASCII ÈÖ¹æ 64) ¤¬Æ¬¤Ë¤Ä¤¤¤¿Ê¸»úÎó¤ËÂФ·¤Æ¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£

29.1 µÕ°úÍÑÉä¤Ë¤è¤ë¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤ÎÃÖ´¹ (Substitution backquotes)

¥·¥§¥ë¥³¥Þ¥ó¥É¤òµÕ°úÍÑÉä (¡®) ¤Ç°Ï¤à¤³¤È¤Ë¤è¤Ã¤Æ¥³¥Þ¥ó¥ÉÃÖ´¹¤ò¹Ô¤¦¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï»Ò¥×¥í¥»¥¹¤Ç¼Â¹Ô¤µ¤ì¡¢¤½¤Î½ÐÎÏ·ë²Ì¤Ç¥³¥Þ¥ó¥É ¥é¥¤¥ó¤ÎµÕ°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Éôʬ¤òÃÖ¤­´¹¤¨¤Þ¤¹¡£¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤Î½ªÎ»¥¹ ¥Æ¡¼¥¿¥¹¤Ï¡¢ÊÑ¿ô GPVAL_SYSTEM_ERRNO ¤È GPVAL_SYSTEM_ERRMSG ¤ËÊÖ¤µ¤ì¤Þ ¤¹¡£

Ãí°Õ: ÆâÉô¤ÎÉüµ¢ (' \r') ¤È²þ¹Ô (' \n') ʸ»ú¤Ï¡¢ÃÖ´¹¸å¤Îʸ»úÆþÎϤ«¤é¼è ¤ê½ü¤­¤Þ¤»¤ó¡£

¥³¥Þ¥ó¥ÉÃÖ´¹¤Ï¡¢Ã±°ì°úÍÑÉäÆâ¤Îʸ»úÎó°Ê³°¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤ ¥óÃæ¡¢¤É¤³¤Ç¤Ç¤â»ÈÍѲÄǽ¤Ç¤¹¡£

Î㤨¤Ð¡¢°Ê²¼¤Ï¸½ºß¤ÎÆüÉդȥ桼¥¶¡¼Ì¾¤Î¥é¥Ù¥ë¤òÀ¸À®¤·¤Þ¤¹:


     set label "generated on `date +%Y-%m-%d` by `whoami`" at 1,1
     set timestamp "generated on %Y-%m-%d by `whoami`"

°Ê²¼¤Ï¡¢¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î¥Õ¥¡¥¤¥ë̾¤«¤é¤Ê¤ëÇÛÎó¤òÀ¸À®¤·¤Þ¤¹:


     FILES = split( "`ls -1`" )

29.2 ʸ»úÎóÊÑ¿ô¤Î¥Þ¥¯¥íÃÖ´¹ (Substitution 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

·«¤êÊÖ¤·ÍѤÎÃæ³ç¸ÌÆâ¤Ç¤Î¥Þ¥¯¥í¤ÎŸ³«¤Ï¡¢¤½¤Î¥ë¡¼¥×¤¬¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¹Ô¤¤ ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥ë¡¼¥×Æâ¤Ç¤Ï A ¼«ÂΤòºÆÄêµÁ¤·¤Æ¤â¡¢@A ¤Ï¾ï¤Ë A ¤Î¸µ¤Î ÃͤËŸ³«¤µ¤ì¤Þ¤¹¡£

¥³¥Þ¥ó¥É¤ò´°À®¤µ¤»¤Æ¼Â¹Ô¤¹¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É evaluate ¤âÍ­ÍѤǤ·¤ç¤¦¡£

29.3 ʸ»úÎóÊÑ¿ô¡¢¥Þ¥¯¥í¡¢¥³¥Þ¥ó¥É¥é¥¤¥óÃÖ´¹ (mixing_macros_backquotes)

ʸ»úÎóÊÑ¿ô¤äµÕ°úÍÑÉä (¡®) ¤Ë¤è¤ëÃÖ´¹¡¢¥Þ¥¯¥í¤Ë¤è¤ëÃÖ´¹¤ÎÁê¸ß´Ø·¸¤Ï¾¯¤· ¤ä¤ä¤³¤·¤¤¤Ç¤¹¡£µÕ°úÍÑÉä¤Ï¥Þ¥¯¥íÃÖ´¹¤ò˸¤²¤Ê¤¤¤Î¤Ç¡¢


     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

30 ¶èÀÚ¤ê¤ä¥«¥Ã¥³¤Î»È¤¤Êý (Syntax)

¥ê¥¹¥È¤äºÂɸ¤¬¥³¥ó¥Þ (,) ¶èÀÚ¤ê¤Ç¤¢¤ë¤Î¤ËÂФ·¡¢¥ª¥×¥·¥ç¥ó¤ä¤½¤ì¤Ëȼ¤¦ ¥Ñ¥é¥á¡¼¥¿¤Ï¥¹¥Ú¡¼¥¹ ( ) ¶èÀÚ¤ê¤Ç¤¹¡£ÈϰϤϥ³¥í¥ó (:) ¤Ç¶èÀڤäƤ«¤®¤« ¤Ã¤³ ([]) ¤Ç¤¯¤¯¤ê¤Þ¤¹¤·¡¢Ê¸»úÎó¤ä¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç¤¯¤¯¤ê¡¢Â¾¤Ë¤¤¤¯ ¤Ä¤«¥«¥Ã¥³ (()) ¤Ç¤¯¤¯¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹¡£

¥³¥ó¥Þ¤Ï°Ê²¼¤Î¶èÀÚ¤ê¤Ç»ÈÍѤµ¤ì¤Þ¤¹¡£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 ¤È¤Ê¤ê¤Þ¤¹¡£

30.1 °úÍÑÉä (quote marks)

gnuplot ¤Ï¡¢Ê¸»úÎó¤ò¶èÀÚ¤ë¤Î¤Ë¡¢Æó½Å°úÍÑÉä (ASCII ¥³¡¼¥É 34 ÈÖ)¡¢Ã±°ì °úÍÑÉä (ASCII ¥³¡¼¥É 39 ÈÖ)¡¢¤ª¤è¤ÓµÕ°úÍÑÉä (¡®) (ASCII ¥³¡¼¥É 96 ÈÖ) ¤Î 3 ¼ïÎà¤Î°úÍÑÉä¤ò»È¤¤¤Þ¤¹¡£

¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤Ç°Ï¤ß¤Þ¤¹¡£¤³¤Î¥Þ¥Ë¥å¥¢¥ë ¤Ç¤Ï°ìÈ̤˥³¥Þ¥ó¥É¤ÎÎ㼨¤Ç¤Ï¡¢¤ï¤«¤ê¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ë¥Õ¥¡¥¤¥ë̾¤Ïñ°ì°ú ÍÑÉä¤Ç¤¯¤¯¤ê¡¢Â¾¤Îʸ»úÎó¤ÏÆó½Å°úÍÑÉä¤Ç¤¯¤¯¤ê¤Þ¤¹¡£

¸«½Ð¤· (label)¡¢¥¿¥¤¥È¥ë (title)¡¢¤Þ¤¿¤Ï¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤǻÈÍѤµ¤ì¤ëʸ »úÎóÄê¿ô¤äÊ£¿ô¹Ôʸ»úÎó¤Ïñ°ì°úÍÑÉä¡¢¤¢¤ë¤¤¤ÏÆó½Å°úÍÑÉäÆâ¤Ç°Ï¤ß¤Þ¤¹¡£°ú ÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Î¤µ¤é¤Ê¤ë½èÍý¤Î·ë²Ì¤Ï¡¢¤É¤Î°úÍÑÉäµ­¹æ¤òÁª¤Ö¤«¤Ë¤è ¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£

\n (²þ¹Ô) ¤ä \345 (8 ¿Êɽµ­¤Îʸ»ú¥³¡¼¥É) ¤Î¤è¤¦¤Ê¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤Ë¤è¤ëÆüìʸ»úɽ¸½¤Ï¡¢2 ½Å°úÍÑÉäÆâ¤Îʸ»úÎó¤Ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£Ã±°ì°ú ÍÑÉäÆâ¤Ç¤Ï¡¢¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¼«ÂΤ¬Ä̾ï¤Îʸ»ú¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£Ã±°ì°úÍÑÉä Æâ¤Îʸ»úÎó¤Çñ°ì°úÍÑÉ伫ÂÎ (ASCII ¥³¡¼¥É 39 ÈÖ) ¤ò»È¤¦¤Ë¤Ï¡¢¤½¤ì¤ò½Å¤Í ¤Æ½ñ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢Ê¸»úÎó "d \" s' b \ \" ¤È¡¢'d" s' ' b \' ¤Ï´° Á´¤ËƱ¤¸¤â¤Î¤È¤Ê¤ê¤Þ¤¹¡£

1 ¤Ä¤ÎÊ£¿ô¹Ôʸ»úÎó¤Ë´Ø¤¹¤ë¹Ô·¤¨¤Ï³Æ¹Ô¤ËƱÅù¤ËƯ¤­¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ãæ±û¤Ë ¹Ô·¤¨¤µ¤ì¤¿Ê¸»úÎó


     "This is the first line of text.\nThis is the second line."

¤Ï¼¡¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹:


                      This is the first line of text.
                         This is the second line.

¤·¤«¤·


     'This is the first line of text.\nThis is the second line.'

¤À¤È¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£


         This is the first line of text.\nThis is the second line.

³Èĥʸ»úÎó½èÍý (enhanced text processing) ¤ÏÆó½Å°úÍÑÉä¤ËÂФ·¤Æ¤âñ°ì°ú ÍÑÉä¤ËÂФ·¤Æ¤âµ¡Ç½¤·¤Þ¤¹¡£°Ê²¼»²¾È: enhanced text (13)¡£

µÕ°úÍÑÉä¤Ï,¥³¥Þ¥ó¥É¥é¥¤¥óÃæ¤ÎÃÖ´¹¤Î¤¿¤á¤Ë¥·¥¹¥Æ¥à¥³¥Þ¥ó¥É¤ò°Ï¤à¤Î¤Ë»È ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: substitution (29)¡£

31 »þ´Ö/ÆüÉեǡ¼¥¿ (Time/Date)

gnuplot ¤ÏÆþÎϥǡ¼¥¿¤È¤·¤Æ»þ´Ö/ÆüÉÕ¾ðÊó¤Î»ÈÍѤò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£ ¤³¤Îµ¡Ç½¤Ï set xdata time, set ydata time ¤Ê¤É¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÍ­ ¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£

ÆâÉô¤Ç¤ÏÁ´¤Æ¤Î»þ´Ö/ÆüÉÕ¤Ï 1970 ǯ¤«¤é¤ÎÉÿô¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É set timefmt ¤ÏÁ´¤Æ¤ÎÆþÎϤËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î½ñ¼°¤òÄêµÁ¤·¤Þ¤¹¡£¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¡¢ÈÏ°Ï¡¢¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¥é¥Ù¥ë¤Î°ÌÃ֤ȡ¢Æü»þ¥Ç¡¼¥¿Ãͤò¼õ¤± Æþ¤ì¤ë¤¹¤Ù¤Æ¤Î¤â¤Î¤Ø¤ÎÆþÎϤνñ¼°¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤³¤ì¤Ë¤Ê¤ê¤Þ¤¹¡£°ì»þ¤Ë ¤Ï°ì¤Ä¤Î¥Ç¥Õ¥©¥ë¥ÈÆþÎϽñ¼°¤Î¤ß¤¬Í­¸ú¤Ç¤¹¡£¤è¤Ã¤Æ¡¢¥Õ¥¡¥¤¥ëÆâ¤Î x ¤È y ¤ÎξÊý¤¬»þ´Ö/ÆüÉեǡ¼¥¿¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤ÏƱ¤¸½ñ¼°¤È²ò ¼á¤µ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢using »ØÄê¤Ç´Ø¿ô timecolumn ¤òÍѤ¤¤Æ¡¢¤½¤ì¤ËÂбþ¤¹¤ëÆÃÄê¤Î¥Õ¥¡¥¤¥ë¤äÎ󤫤é¥Ç¡¼¥¿¤òÆɤߤ³¤à¤³¤È¤Ë¤è ¤ê¡¢ÊѤ¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£

Éÿô¤Ø (Éÿô¤«¤é) ¤ÎÊÑ´¹¤Ï¹ñºÝɸ½à»þ (UT; ¥°¥ê¥Ë¥Ã¥¸É¸½à»þ (GMT) ¤ÈƱ ¤¸) ¤¬»È¤ï¤ì¤Þ¤¹¡£³Æ¹ñɸ½à»þ¤ä²Æ»þ´Ö¤Ø¤ÎÊÑ´¹¤Îµ¡Ç½¤Ï²¿¤â»ý¤Á¹ç¤ï¤»¤Æ¤¤ ¤Þ¤»¤ó¡£¤â¤·¥Ç¡¼¥¿¤¬¤¹¤Ù¤ÆƱ¤¸É¸½à»þ´ÖÂӤ˽¾¤Ã¤Æ¤¤¤ë¤Ê¤é (¤½¤·¤ÆÁ´¤Æ¤¬ ²Æ»þ´Ö¤«¡¢¤½¤¦¤Ç¤Ê¤¤¤«¤Î¤É¤Á¤é¤«°ìÊý¤Ë¤Î¤ß½¾¤¦¤Ê¤é) ¤³¤ì¤Ë´Ø¤·¤Æ²¿¤â¿´ ÇÛ¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤·¤«¤·¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÇÀäÂРŪ¤Ê»þ¹ï¤ò¸·Ì©¤Ë¹Í»¡¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¾ì¹ç¤Ï¡¢¤¢¤Ê¤¿¼«¿È¤¬ UT ¤ËÊÑ´¹¤¹ ¤Ù¤­¤Ç¤·¤ç¤¦¡£

show xrange ¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤Ï¡¢¤½¤ÎÀ°¿ôÃͤò timefmt ¤Ë½¾¤Ã¤Æ²ò¼á ¤·Ä¾¤·¤Þ¤¹¡£timefmt ¤òÊѹ¹¤·¤Æ¤â¤¦°ìÅÙ show ¤Ç¤½¤ÎÃͤòɽ¼¨¤µ¤»¤ë¤È¡¢ ¤½¤ì¤Ï¿·¤·¤¤ timefmt ¤Ë½¾¤Ã¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢(set xdata ¤Ê ¤É¤Ë¤è¤ê) ¤½¤Î¼´¤ËÂФ¹¤ë¥Ç¡¼¥¿·¿¤ò¥ê¥»¥Ã¥È¤¹¤ë¤È¡¢¤½¤ÎÃͤÏÀ°¿ôÃͤȤ·¤Æ ɽ¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¥³¥Þ¥ó¥É set format ¤Þ¤¿¤Ï set tics format ¤Ï¡¢»ØÄꤵ¤ì¤¿¼´¤ËÂФ¹ ¤ëÆþÎϤ¬»þ´Ö/ÆüÉդǤ¢¤ë¤Ê¤·¤Ë´Ø¤ï¤é¤ºÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ë»È¤ï¤ì¤ë½ñ¼°¤òÄê µÁ¤·¤Þ¤¹¡£

»þ´Ö/ÆüÉÕ¾ðÊ󤬥ե¡¥¤¥ë¤«¤éÉÁ²è¤µ¤ì¤ë¾ì¹ç¡¢plot, splot ¥³¥Þ¥ó¥É¤Ç ¤Ï using ¥ª¥×¥·¥ç¥ó¤ò¡Öɬ¤º¡×»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£plot, splot ¤Ç ¤Ï³Æ¹Ô¤Î¥Ç¡¼¥¿Îó¤ÎʬΥ¤Ë¥¹¥Ú¡¼¥¹¤ò»È¤¤¤Þ¤¹¤¬¡¢»þ´Ö/ÆüÉեǡ¼¥¿¤Ï¤½¤ÎÃæ ¤Ë¥¹¥Ú¡¼¥¹¤ò´Þ¤ßÆÀ¤ë¤«¤é¤Ç¤¹¡£¤â¤·¥¿¥Ö¶èÀÚ¤ê¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Î¤Ê¤é¡¢¤¢¤Ê ¤¿¤Î¥·¥¹¥Æ¥à¤¬¤½¤ì¤ò¤É¤¦°·¤¦¤«³Î¤«¤á¤ë¤¿¤á¤Ë²¿ÅÙ¤â¥Æ¥¹¥È¤¹¤ëɬÍפ¬¤¢¤ë ¤Ç¤·¤ç¤¦¡£

´Ø¿ô time ¤Ï¡¢¸½ºß¤Î¥·¥¹¥Æ¥à»þ¹ï¤òÆÀ¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¤³¤ÎÃͤϡ¢ strftime ´Ø¿ô¤ÇÆü»þʸ»úÎó¤ËÊÑ´¹¤Ç¤­¤Þ¤¹¤·¡¢timecolumn ¤ÈÁȤ߹ç¤ï¤» ¤ÆÁêÂÐŪ¤ÊÆü»þ¥°¥é¥Õ¤òºîÀ®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£°ú¿ô¤Î·¿¤Ï¤½¤ì¤¬ÊÖ¤¹¤â¤Î ¤ò·èÄꤷ¤Þ¤¹¡£°ú¿ô¤¬À°¿ô¤Î¾ì¹ç¤Ï time() ¤Ï¸½ºß¤Î»þ¹ï¤ò 1970 ǯ 1 ·î 1 Æü¤«¤é¤ÎÀ°¿ô¤È¤·¤ÆÊÖ¤·¡¢°ú¿ô¤¬¼Â¿ô (¤Þ¤¿¤ÏÊ£ÁÇ¿ô) ¤Ê¤é¤ÐƱÍͤÎÃͤò¼Â¿ô ¤È¤·¤ÆÊÖ¤·¤Þ¤¹¤¬¡¢¾®¿ô (Éðʲ¼) Éôʬ¤ÎÀºÅ٤ϡ¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à ¤Ë°Í¸¤·¤Þ¤¹¡£°ú¿ô¤¬Ê¸»úÎó¤Ê¤é¤Ð¡¢¤½¤ì¤ò½ñ¼°Ê¸»úÎó¤Ç¤¢¤ë¤È¤ß¤Ê¤·¡¢½ñ¼° ²½¤µ¤ì¤¿Æü»þʸ»úÎó¤òÄ󶡤¹¤ë¤è¤¦¤½¤ì¤ò strftime ¤ËÅϤ·¤Þ¤¹¡£

¼¡¤ÎÎã¤Ï»þ´Ö/ÆüÉեǡ¼¥¿¤ÎÉÁ²è¤ÎÎã¤Ç¤¹¡£

¥Õ¥¡¥¤¥ë "data" ¤Ï°Ê²¼¤Î¤è¤¦¤Ê¹Ô¤«¤é¤Ê¤ë¤È¤·¤Þ¤¹:


     03/21/95 10:00  6.02e23

¤³¤Î¥Õ¥¡¥¤¥ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹:


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

¤³¤³¤Ç¡¢x ¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Ï "03/21" ¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£

¸½ºß¤Î gnuplot ¤Ï¡¢»þ¹ï¤ò¥ß¥êÉÃÀºÅÙ¤ÇÄÉÀפ·¡¢»þ¹ï¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤â¤½¤ì ¤Ëȼ¤Ã¤ÆÊѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ Îã: ¸½ºß¤Î»þ¹ï¤ò¥ß¥êÉÃÀºÅÙ¤Çɽ¼¨


    print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0))
    18:15:04.253 16-Apr-2011

°Ê²¼»²¾È: time_specifiers (112.31.3), set xtics time (112.123.3), set mxtics time (112.57.1)¡£

32 ¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È (Watchpoints)

¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë gnuplot ¤¬ configure »þ¤Ë¥ª¥×¥·¥ç ¥ó –enable-watchpoints ¤ò¤Ä¤±¤Æºî¤é¤ì¤¿¾ì¹ç¤Ë¤Î¤ß¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£¤³ ¤ÎºòÆü¤Ï»î¸³Ãʳ¬¤Ç¤¹ (¾ÜºÙ¤Ï¡¢º£¸å¤Î¥ê¥ê¡¼¥¹ÈǤÇÊѹ¹¤µ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ê ¤Þ¤¹)¡£

½ñ¼°:


     plot FOO watch {x|y|z|F(x,y)} = <value>
     plot FOO watch mouse


     set style watchpoints nolabels
     set style watchpoints label <label-properties>


     unset style watchpoints      # ¥Ç¥Õ¥©¥ë¥È¥¹¥¿¥¤¥ë¤ËÌ᤹


     show watchpoints    # ľÁ°¤Î plot ¥³¥Þ¥ó¥É¤«¤é¤Î¤¹¤Ù¤Æ¤Î¥¦¥©¥Ã¥Á
                         # ¥Ý¥¤¥ó¥È¤òÍ×Ìóɽ¼¨

°ì¤Ä¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢x, y, z ºÂɸ¡¢¤Þ¤¿¤Ï´Ø¿ô f(x,y) ¤ËÂФ¹¤ë°ì¤Ä ¤ÎÂоÝÃͤǤ¹¡£³Æ¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢¥³¥Þ¥ó¥É plot Æâ¤Î°ì¤Ä¤Î¥°¥é¥Õ¤Ë Éտ路¤Þ¤¹¡£¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢with lines ¤È with linespoints ¤Î ÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Î¤ßµ¡Ç½¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¤½¤Î¥°¥é¥Õ¤Î¤¹¤Ù¤Æ¤Î¹½À®Àþʬ¤Ë ÂФ·¡¢¤½¤Î¥°¥é¥Õ¤ËÉտ魯¤ë¤¹¤Ù¤Æ¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤¬¥Á¥§¥Ã¥¯¤µ¤ì¡¢°ì¤Ä °Ê¾å¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤ÎÂоݤ¬¤½¤ÎÀþʬ¾å¤ÎÅÀ¤ÇËþ¤¿¤µ¤ì¤ë¤«¤É¤¦¤«¤òÄ´¤Ù ¤Þ¤¹¡£Âоݾò·ï¤òËþ¤¿¤¹ (¡Ö¥Ò¥Ã¥È¡×("hits") ¤È¸Æ¤Ó¤Þ¤¹) ÅÀ¤Î°ìÍ÷¤Ï¡¢¥° ¥é¥Õ¤ÎÉÁ²èËè¤ËÎßÀѤµ¤ì¤Þ¤¹¡£

Î㤨¤Ð¡¢ÂоÝÃÍ y=100 ¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤¬¤¢¤ë¾ì¹ç¡¢³ÆÀþʬ¤ËÂФ·¤Æ¡¢¤½ ¤ÎξüÅÀ¤Î y ºÂɸ¤¬¤½¤ÎÂоÝÃͤò¶´¤ó¤Ç¤¤¤ë¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£¤â¤·¤½¤¦ ¤Ê¤é¡¢¤½¤ÎÀþʬ¾å¤Î¤¢¤ëÅÀ [x,y] ¤¬¡¢Âоݾò·ï y=100 ¤ò´°Á´¤ËËþ¤¿¤¹¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹¡£¤½¤·¤ÆÀþ·ÁÊä´Ö¡¢¤Þ¤¿¤Ï 2 ʬȿÉüË¡¤Ë¤è¤ê¤½¤ÎÂоÝÅÀ¤¬¸«¤Ä¤«¤ê ¤Þ¤¹¡£

°ì¤Ä¤Î plot ¥³¥Þ¥ó¥É¾å¤ÎÊ£¿ô¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢½çÈÖ¤ËÈÖ¹æ¤Å¤±¤·¤Þ¤¹¡£ ³ÆÉÁ²èÍ×ÁÇËè¤Ë¡¢1 ¤Ä°Ê¾å¤Î¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£ Îã:


    plot DATA using 1:2 smooth cnormal watch y=0.25 watch y=0.5 \
        watch y=0.75

Image figure_watchpoints
ľÁ°¤Î plot ¥³¥Þ¥ó¥É¤ÇÂоݤ˥ҥåȤ·¤¿¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤Ï¡¢WATCH_n ¤È¤¤ ¤¦Ì¾Á°¤ÎÇÛÎó¤ËÊݸ¤µ¤ì¤Þ¤¹¡£Ä¾Á°¤Î plot ¥³¥Þ¥ó¥É¤«¤é¥Ò¥Ã¥È¤·¤¿¤¹¤Ù¤Æ¤Î ¥¦¥©¥Ã¥Á¥Ý¥¤¥ó¥È¤ÎÍ×Ìó¤òɽ¼¨¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: show watchpoints (112.110)¡£


    gnuplot> show watchpoints
    Plot title:     "DATA using 1:2 smooth cnormal"
      Watch 1 target y = 0.25         (1 hits)
              hit 1   x 49.7  y 0.25
      Watch 2 target y = 0.5          (1 hits)
              hit 1   x 63.1  y 0.5
      Watch 3 target y = 0.75         (1 hits)
              hit 1   x 67.8  y 0.75

Ê¿³ê²½: Àþʬ¤Ï¡¢¤½¤ì¤é¤òÉÁ²è¤¹¤ëºÝ¤Ë¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£Ê¿³ê²½¤·¤Ê¤¤¥Ç¡¼¥¿ ÉÁ²è¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤Ï¡¢Êä´Ö¤Ë¤è¤Ã¤Æ¸«¤Ä¤«¤ëÂоÝÅÀ¤Ï¡¢2 ¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤ò ·ë¤ÖÀþʬ¤Î¾å¤Ë´°Á´¤Ë¾è¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ç¡¼¥¿¥°¥é¥Õ¤òÊ¿³ê²½¤¹¤ë¾ì¹ç ¤Ï¡¢¥Ò¥Ã¥È¤¹¤ëÅÀ¤ÏÊ¿³ê²½¤µ¤ì¤¿¶ÊÀþ¤ËÂФ¹¤ëÀþʬ¤Î¾å¤Ë¤¢¤ê¤Þ¤¹¡£¤½¤ì¤¬Ê¿ ³ê²½¤·¤Ê¤¤¥Ç¡¼¥¿¤ËÂФ¹¤ëÂоÝÅÀ¤è¤ê¤âÀºÅÙ¤¬Îɤ¤¤«°­¤¤¤«¤Ï¡¢Ê¿³ê²½¤ÎÅö¤Æ ¤Ï¤á¤Î¼Á¤Ë°Í¸¤·¤Þ¤¹¡£

ÀºÅÙ: Àþʬ¤¬´Ø¿ôÉÁ²è¤ÇÀ¸À®¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ì¤Ð¡¢f(x) = y ¤È¤Ê¤ë x ¤ÎÃÍ¤Ï 2 ʬȿÉüË¡¤Ç¸«¤Ä¤±¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢¤½¤ÎÀþʬ¤Ë±è¤¦Àþ·ÁÊä´Ö¤ÇºÂɸ [x,y] ¤ò¶á»÷¤·¤Þ¤¹¡£

32.1 ¥¦¥©¥Ã¥Á¥Þ¥¦¥¹ (watch mouse)

¸½ºß¤Î¥Þ¥¦¥¹ x ºÂɸ¤ò¥¦¥©¥Ã¥ÁÂоݤȤ·¤Æ»ÈÍѤ¹¤ë¤È¡¢¥Þ¥¦¥¹¤Î¿åÊ¿°ÌÃÖ¤ò ÄÉÀפ·¤Ê¤¬¤é¡¢¥°¥é¥Õ¤ÎÀþ¤Ë±è¤Ã¤Æ°ÜÆ°¤¹¤ë¥é¥Ù¥ë¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê Ʊ¤¸¥°¥é¥Õ¾å¤ÎÊ£¿ô¤Î¶ÊÀþ¤Î y ¤ÎÃͤòƱ»þ¤Ëɽ¼¨¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¸½ºß ¤Î°ÌÃÖ¤ò¼¨¤¹ÅÀ¤È¥é¥Ù¥ë¤Î¸«¤¿Ìܤϡ¢set style watchpoint ¤ÇÊѹ¹¤Ç¤­¤Þ ¤¹¡£

Îã:


    set style watchpoint labels point pt 6 ps 2 boxstyle 1
    set style textbox 1 lw 0.5 opaque
    plot for [i=1:N] "file.dat" using 1:(column(i)) watch mouse

32.2 ¥¦¥©¥Ã¥Á¥é¥Ù¥ë (watch labels)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥é¥Ù¥ë¤Ï¡¢ÂÐ¾Ý "watch mouse" ¤ËÂФ·¤Æ¾ï¤ËÀ¸À®¤·¤Þ¤¹¡£Â¾ ¤ÎÂоݤËÂФ·¤Æ¤â¡¢¥³¥Þ¥ó¥É set style watchpoint labels ¤ò»È¤¨¤Ð¥é¥Ù ¥ë¤ò¥ª¥ó¤Ë¤Ç¤­¤Þ¤¹¡£¥é¥Ù¥ëʸ»úÎó¤Ï "x : y" ¤Ç¡¢x, y ¤ÏÂоÝÅÀ¤ÎºÂɸ¡¢¤½ ¤Î½ñ¼°²½¤ÏÂбþ¤¹¤ë¼´¤ËÂФ¹¤ë¸½ºß¤ÎÀßÄê¤ò»ÈÍѤ·¤Þ¤¹¡£

Îã:


    set y2tics format "%.2f<C2><B0>"
    set style watchpoint labels point pt 6
    plot FOO axes x1y2 watch mouse


2 ÉÁ²è¥¹¥¿¥¤¥ë (Plotting styles)

gnuplot ¤Ç¤Ï¡¢¤¿¤¯¤µ¤ó¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤¬ÍøÍѤǤ­¤Þ¤¹¡£ ¤½¤ì¤é¤Ï¡¢¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë°Ê²¼¤Ë¾Ò²ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥³¥Þ¥ó¥É set style data ¤È set style function ¤Ï¡¢¤½¤ì°Ê¹ß¤Î plot ¤ä splot ¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤òÊѹ¹ ¤·¤Þ¤¹¡£

ÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢¥³¥Þ¥ó¥É plot ¤ä splot ¤Î°ìÉôʬ¤È¤·¤Æ¡¢ÌÀ¼¨Åª¤Ë¥ª ¥×¥·¥ç¥ó»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°ì¤Ä¤ÎÉÁ²è¤ÎÃæ¤Ç¡¢Ê£¿ô¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò ÁȤ߹ç¤ï¤»¤¿¤¤¾ì¹ç¤Ï¡¢³ÆÍ×ÁǤËÂФ·¤ÆÉÁ²è¥¹¥¿¥¤¥ë¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£

Îã:


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

³ÆÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢¤½¤ì¼«ÂΤ¬¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤Î¤¤¤¯¤Ä¤«¤Î¥Ç¡¼¥¿¤ÎÁÈ ¤ò´üÂÔ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï lines ¥¹¥¿¥¤¥ë¤Ï¡¢y ¤ÎÃͤÀ¤±¤Î 1 Îó¤Î¥Ç¡¼¥¿ (x ¤ÎÃͤϰÅÌۤ˽çÈ֤˼è¤é¤ì¤ë)¡¢¤Þ¤¿¤ÏºÇ½é¤¬ x, ¼¡¤¬ y ¤Î 2 ¤Ä¤ÎÎó¤ò´üÂÔ¤·¤Æ¤¤¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤Î²¿Îó¤Î¥Ç¡¼¥¿¤òÉÁ²è¥Ç¡¼¥¿¤È²ò¼á¤µ¤» ¤ë¤¦¤Þ¤¤ÊýË¡¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using (99.3.11)¡£

33 Arrows

2 ¼¡¸µ¤Î¥¹¥¿¥¤¥ë arrows ¤Ï¡¢³ÆÅÀ (x,y) ¤ËŤµ¤ÈÊý¸þ¤Î³Ñ¤ò»ØÄꤷ¤ÆÌð °õ¤òÉÁ¤­¤Þ¤¹¡£ÄɲäÎÆþÎÏÎó¤Ï¡¢³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊ󡢤¢¤ë ¤¤¤Ï arrow style ¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÌðÀè¤Î¾ì½ê¤Î»ØÄêÊýË¡°Ê³°¤Ï 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤Î with vectors ¤ÈƱ¤¸¤Ç¡¢ÌðÀè¤Ï delta_x + delta_y ¤Ç¤Ê¤¯ length (Ťµ) + angle (³Ñ) ¤ÇÍ¿¤¨¤Þ¤¹¡£°Ê²¼»²¾È: with vectors (68)¡£


    4 Îó:  x  y  length  angle

¥­¡¼¥ï¡¼¥É with arrows ¤Î¸å¤í¤Ë¤Ï¡¢¥¤¥ó¥é¥¤¥ó¤Î arrow style °À­¤ä¡¢ ÄêµÁºÑ¤ß¤Î arrow style ¤Î»²¾È¡¢¤Þ¤¿ arrowstyle variable ¤Ë¤è¤ë³ÆÌð°õ Ëè¤ËŬÍѤ·¤¿¤¤ arrow style ÈÖ¹æ¤ò¾¤ÎÎ󤫤éÆɤ߹þ¤Þ¤»¤ë¤³¤È¡¢¤Ê¤É¤ò ÄɲûØÄê¤Ç¤­¤Þ¤¹¡£

Àµ¤Î length Ãͤϡ¢x ¼´¤ÎºÂɸ¤Ç²ò¼á¤·¤Þ¤¹¡£ -1 < length < 0 ¤ÎÃͤϡ¢¿åÊ¿¥°¥é¥ÕºÂɸ¡¢¤¹¤Ê¤ï¤Á |length| ¤òÁ´ÂΤΥ° ¥é¥ÕÉý¤ËÂФ¹¤ë³ä¹ç¤È¤·¤Æ²ò¼á¤·¤Þ¤¹¡£ gnuplot ¤Ï x ¤È y ¤Î³ÈÂçΨ¤Îº¹¡¢¤Þ¤¿¤ÏÉÁ²è¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ë´Ø¤·¤ÆÄ´À°¤·¤Æ¡¢ ¸«¤¿ÌܤÎŤµ¤¬Êý¸þ³Ñ¤È¤ÏÆÈΩ¤Ç¤¢¤ë¤è¤¦¤Ë¤·¤è¤¦¤È¤·¤Þ¤¹¡£

angle ¤Ï¾ï¤ËÅÙñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£

33.1 Arrowstyle variable

ÉÁ²è¥¹¥¿¥¤¥ë with arrows ¤È with vectors ¤Ç¡¢ÆþÎϥǡ¼¥¿¤ÎÄɲÃÎó¤ò Í¿¤¨¤Æ¡¢»öÁ°¤Ë set style arrow ¤ÇÄêµÁ¤·¤¿ arrow ¥¹¥¿¥¤¥ë¤ËÂбþ¤¹¤ë¥¹ ¥¿¥¤¥ëÈÖ¹æ¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


    set style arrow 1 head nofilled linecolor "blue" linewidth 0.5
    set style arrow 2 head filled linecolor "red" linewidth 1.0
    # Âè 5 Îó¤ÎÃÍ¤Ï 1 ¤« 2 ¤Î¤¤¤º¤ì¤«¤Ç¡¢¤½¤ì¤¬»öÁ°¤ËÄêµÁ¤·¤¿¥¹¥¿¥¤¥ë
    # ¤Î¤¦¤Á»ÈÍѤ¹¤ëÊý¤ò·èÄꤹ¤ë
    plot DATA using 1:2:3:4:5 with arrows arrowstyle variable

34 ¥Ó¡¼¥¹¥¦¥©¡¼¥àÉÁ²è (Bee swarm plots)

 
Image figure_jitter
¥Ó¡¼¥¹¥¦¥©¡¼¥à (bee swarm) ¥°¥é¥Õ¤Ï¡¢Íɤ餮 (jitter) ¤òŬÍѤ·¤Æ½ÅÊ£ÅÀ ¤òʬΥ¤¹¤ë¤³¤È¤Ë¤è¤êÆÀ¤é¤ì¤ë·ë²Ì¤Ç¤¹¡£¤½¤Îŵ·¿Åª¤ÊÎã¤Ï¡¢³ÆÅÀ¤Ë x ºÂɸ ¤ò·èÄꤹ¤ë 2 ¤Ä°Ê¾å¤Î¥«¥Æ¥´¥ê¤Ë¤è¤Ã¤Æɽ¤ï¤µ¤ì¤ë y ¤ÎÃͤÎʬÉÛ¤ÎÈæ³Ó¤Ç¤¹¡£ ½Å¤Ê¤ê¤ÎȽÄê´ð½à¤ä¡¢jitter ¤Ç»ÈÍѤ¹¤ë°ÜÆ°¥Ñ¥¿¡¼¥ó¤òÀ©¸æ¤¹¤ëÊýË¡¤Ë´Ø¤· ¤Æ¤Ï¡¢°Ê²¼»²¾È: set jitter (112.38)¡£¤³¤Î¿Þ¤Î¥°¥é¥Õ¤Ï¡¢°Û¤Ê¤ë jitter ¤ÎÀßÄê¤Ë ÂФ¹¤ëƱ¤¸ plot ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿¤â¤Î¤Ç¤¹¡£


    set jitter
    plot $data using 1:2:1 with points lc variable

35 Boxerrorbars

ÉÁ²è¥¹¥¿¥¤¥ë boxerrorbars ¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢3 Î󡢤ޤ¿¤Ï 4 Î󡢤ޤ¿¤Ï 5 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹¡£ÆþÎÏÎó¤òÄɲà (4,5,6 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼ »²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£


    3 Îó:  x  y  ydelta
    4 Îó:  x  y  ylow  yhigh          (xdelta <= 0 ¤Ï boxwidth ¤ò»ÈÍÑ)
    5 Îó:  x  y  ylow  yhigh  xdelta  (xdelta <= 0 ¤Ï boxwidth ¤ò»ÈÍÑ)

Image figure_boxerrorbars
y ¤Î¸íº¹¤ò "ydelta" ¤Î·Á¼°¤ÇÍ¿¤¨¤ë¾ì¹ç¤Ï¡¢È¢¤Î²£Éý¤Ï 4 ÎóÌܤÎÃͤò»ÈÍÑ ¤·¡¢"ylow yhigh" ¤Î·Á¼°¤ÇÍ¿¤¨¤ë¾ì¹ç¤Ï¡¢²£Éý¤Ï 5 ÎóÌܤÎÃͤò»ÈÍѤ·¤Þ¤¹¡£ xdelta ¤ÎÃͤ¬ 0 ¤«¤Þ¤¿¤ÏÉé¤Î¾ì¹ç¤Ï¡¢È¢¤Î²£Éý¤Ï¡¢»öÁ°¤ËÍ¿¤¨¤ë boxwidth ¤ÎÃͤÇÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set boxwidth (112.7)¡£

¸íº¹Àþ¤Î¿âľÊý¸þ¤Ï¡¢yerrorbars ¥¹¥¿¥¤¥ëƱÍÍ¤Ë y ¤Î¸íº¹¤ÎÃͤòɽ¸½¤¹¤ë ¤è¤¦¤ËÉÁ¤­¤Þ¤¹¡£y-ydelta ¤«¤é y+ydelta ¤Þ¤Ç¡¢¤¢¤ë¤¤¤Ï ylow ¤«¤é yhigh ¤Þ¤Ç¡¢¤³¤ì¤é¤Ï²¿Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£¸íº¹Àþ ¤ÎÉÁ²è¤Ç»ÈÍѤ¹¤ëÀþ¥¹¥¿¥¤¥ë¤Ï¡¢set bars ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤­¤Þ¤¹¤¬¡¢»È¤ï ¤Ê¤±¤ì¤Ð¡¢È¢¤Î¶­³¦¤ÈƱ¤¸¤â¤Î¤Ç¸íº¹Àþ¤òÉÁ¤­¤Þ¤¹¡£

Èó¿ä¾©: ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¡¢"ylow yhigh" ¤Î¸íº¹·Á¼°¤Î 4 Îó ¤Î¥Ç¡¼¥¿¤ËÂФ·¤Æ boxwidth = -2.0 ¤òÆÃÊ̤˰·¤Ã¤Æ¤¤¤Þ¤·¤¿¡£¤½¤Î¾ì¹ç¡¢ ÎÙÀܤ¹¤ëÈ¢¤Î´Ö¤Ë·ä´Ö¤¬¤Ç¤­¤Ê¤¤¤è¤¦¤ËÈ¢¤ÎÉý¤òÄ´Àᤷ¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î½èÍý ¤Ï¡¢¸åÊý¸ß´¹À­¤Î¤¿¤á¤Ë»Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¾­Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ïºï½ü¤¹¤ë¤Ç ¤·¤ç¤¦¡£

36 Boxes

2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢¥¹¥¿¥¤¥ë boxes ¤ÏÍ¿¤¨¤é¤ì¤¿ x ºÂɸ¤òÃæ¿´¤È¤·¡¢x ¼´ ¤«¤é (¤¹¤Ê¤ï¤Á y=0 ¤«¤é¤Ç¤¢¤Ã¤Æ¡¢¥°¥é¥Õ¤Î¶­³¦¤«¤é¤Ç¤Ï¤Ê¤¤) Í¿¤¨¤é¤ì¤¿ y ºÂɸ¤Þ¤Ç¿­¤Ð¤·¤¿Ä¹Êý·Á¤ÎÈ¢¤ò½ñ¤­¤Þ¤¹¡£È¢¤Î²£Éý¤ÏÆþÎϤÎÄɲÃÎó¤Ç»ØÄꤹ ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤·¡¢set boxwidth ¤ÇÀ©¸æ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤½¤¦¤Ç¤Ê ¤±¤ì¤Ð¡¢³ÆÈ¢¤Ï¡¢ÎÙÀܤ¹¤ëȢƱ»Î¤¬¤¯¤Ã¤Ä¤¯¤è¤¦¤Ë°ú¤­¿­¤Ð¤µ¤ì¤Þ¤¹¡£

3 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢¥¹¥¿¥¤¥ë boxes ¤ÏÍ¿¤¨¤é¤ì¤¿ x, y ºÂɸ¤òÃæ¿´¤È¤·¡¢ xy Ê¿ÌÌ (z=0) ¤«¤éÍ¿¤¨¤é¤ì¤¿ z ºÂɸ¤Þ¤Ç¿­¤Ð¤·¤¿Ä¾ÊýÂΤÎÈ¢¤ò½ñ¤­¤Þ¤¹¡£ x Êý¸þ¤ÎÈ¢¤ÎÉý¤Ï¡¢Ê̤ÎÆþÎÏÎó¤« set boxwidth ¤Ç»ØÄê¤Ç¤­¡¢y Êý¸þ¤ÎÈ¢¤Î ±ü¹Ô¤­¤Ï¡¢set boxdepth ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£È¢¤Ï¡¢2 ¼¡¸µ¥°¥é¥Õ¤Î¤è¤¦¤Ë¡¢ ¼«Æ°Åª¤Ë¤Ï¤¯¤Ã¤Ä¤¯¤è¤¦¤Ë°ú¤­¿­¤Ð¤µ¤ì¤Þ¤»¤ó¡£

36.1 2 ¼¡¸µ¤Î boxes (2D boxes)

plot with boxes ¤Ï¡¢´ðËÜŪ¤Ë 2 Î󡢤ޤ¿¤Ï 3 Îó¤Î¥Ç¡¼¥¿¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤µ¤é¤ËÆþÎÏÎó¤òÄɲ乤ë¤È¡¢¤½¤ì¤Ï¡¢²ÄÊÑÀþ¿§ (variable line color) ¤äÅÉ ¤êÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: rgbcolor variable (20.1.4)¡£


    2 Îó:  x  y
    3 Îó:  x  y  x_width

Image figure_boxes
È¢¤ÎÉý¤Ï 3 ¤Ä¤Î¤¦¤Á°ì¤Ä¤ÎÊýË¡¤Ç·èÄꤵ¤ì¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¤Ë 3 ÎóÌܤΥǡ¼ ¥¿¤¬¤¢¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤òÈ¢¤ÎÉý¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ç¥³¥Þ¥ó¥É set boxwidth ¤ÇÈ¢¤ÎÉý¤ò¥»¥Ã¥È¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤ò»È¤¤¤Þ¤¹¡£¤½¤Î¤É¤Á¤é ¤Ç¤â¤Ê¤¤¾ì¹ç¤Ï¡¢ÎÙÀܤ¹¤ëÈ¢¤¬¤¯¤Ã¤Ä¤¯¤è¤¦¤ËÈ¢¤ÎÉý¤ò¼«Æ°Åª¤Ë·×»»¤·¤Þ¤¹¡£

È¢¤ÎÆâÉô¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤ÇÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£¤½¤ì °Ê³°¤Ë¡¢Åɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò plot ¥³¥Þ¥ó¥É¾å¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: set style fill (112.86.4)¡£ ÅɤêÄÙ¤·¿§¤ò plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¸½ºß¤ÎÀþ¿§¤ò»ÈÍѤ·¤Þ¤¹¡£

Îã:

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤òñ¿§Åɤꤷ¤¿È¢¤ÇÉÁ²è¤·¡¢È¢Æ±»Î¤ò¾¯¤·¿âľÊý¸þ¤Ë¥¹¥Ú¡¼¥¹ ¤ò¶õ¤±¤ë (ËÀ¥°¥é¥Õ):


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

Åɤ꿧¤òÌÀ¼¨¤·¤Æ¥Ñ¥¿¡¼¥óÅɤꥹ¥¿¥¤¥ë¤ÎÈ¢¤Ç sin ¤È cos ¤Î¥°¥é¥Õ¤òÉÁ²è:


     set style fill pattern
     plot sin(x) with boxes fc 'blue', cos(x) with boxes fc 'gold'

sin ¤Ï¥Ñ¥¿¡¼¥ó 0 ¤Ç¡¢cos ¤Ï¥Ñ¥¿¡¼¥ó 1 ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£Äɲ䵤ì¤ëÉÁ²è¤Ï ½ÐÎϥɥ饤¥Ð¤¬¥µ¥Ý¡¼¥È¤¹¤ë¥Ñ¥¿¡¼¥ó¤ò½Û´ÄŪ¤Ë»ÈÍѤ·¤Þ¤¹¡£

36.2 3 ¼¡¸µ¤Î boxes (3D boxes)

splot with boxes ¤Ë¤Ï¡¢¾¯¤Ê¤¯¤È¤â 3 Îó¤ÎÆþÎÏÎó¤¬É¬ÍפǤ¹¡£¤µ¤é¤ËÆþÎÏ Îó¤òÄɲ乤ë¤È¡¢¤½¤ì¤ÏÈ¢¤ÎÉý¤äÅɤêÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£


    3 Îó:  x  y  z
    4 Îó:  x  y  z  [x_width ¤Þ¤¿¤Ï color]
    5 Îó:  x  y  z  x_width  color

ºÇ¸å¤ÎÎó¤Ï¡¢splot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë variable ¥«¥é¡¼¥â¡¼¥É¤ò»ØÄꤷ¤Æ¤¤ ¤ë¾ì¹ç¤Î¤ß¿§¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£Îã:


    splot 'blue_boxes.dat' using 1:2:3 fc "blue"
    splot 'rgb_boxes.dat' using 1:2:3:4 fc rgb variable
    splot 'category_boxes.dat' using 1:2:3:4:5 lc variable

ºÇ½é¤ÎÎã¤Ï¡¢¤¹¤Ù¤Æ¤ÎÈ¢¤òÀĤËÅɤꡢÉý¤Ï¤¢¤é¤«¤¸¤á set boxwidth ¤ÇÀßÄê ¤·¤¿Éý¤ò»ÈÍѤ·¤Þ¤¹¡£2 ¤ÄÌܤÎÎã¤Ï¡¢4 ÎóÌܤò 24-bit RGB ¿§¤È¤·¤Æǧ¼±¤¹¤ë ¤¿¤á¡¢È¢¤ÎÉý¤ÏÁêÊѤï¤é¤º set boxwidth ¤ÎÉý¤ò»È¤¤¤Þ¤¹¡£3 ¤ÄÌܤÎÎã¤Ï¡¢ 4 ÎóÌܤÎÃͤòÈ¢¤ÎÉý¤È¤·¤ÆÆɤߡ¢5 ÎóÌܤÎÀ°¿ôÃͤò¿§¤òÄ󶡤¹¤ëÀþ¼ï¤È²ò¼á¤· ¤Þ¤¹¡£

Image figure_3Dboxes
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢È¢¤Ë¤ÏÂÀ¤µ¤Ï¤Ê¤¯¡¢¤½¤ì¤é¤Ïñ¤Ë xz Ê¿Ì̤ËÊ¿¹Ô¤Ê 1 ¤Ä¤Î ĹÊý·Á¤Ç¹½À®¤µ¤ì¤Þ¤¹¤¬¡¢y Êý¸þ¤ÎÉý¤È¤·¤Æ 0 ¤Ç¤Ê¤¤ÃͤòÀßÄꤹ¤ì¤Ð 4 ÌÌ¤È Å·°æ¤ò¤ò»ý¤ÄËÜÅö¤ÎÈ¢¤ËÊѹ¹¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set boxdepth (112.8)¡£

3 ¼¡¸µ¤ÎÈ¢¤Ï¡¢¶ÊÌ̤ǤϤʤ¯ pm3d ĹÊý·Á¤È¤·¤Æ½èÍý¤·¤Æ¤¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢É½ ΢¤ÎÉÁ²è½ç¤Ï¡¢set hidden3d ¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: set pm3d (112.71)¡£ gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤Ï¡¢È¢¤Îü¤Ï¥°¥é¥Õ¤Î fill style ¤Î¶­³¦¿§¤Ç¿§ÉÕ¤± ¤·¤Þ¤¹¡£¤³¤ì¤Ï¥Ð¡¼¥¸¥ç¥ó 5 ¤È¤Ï°Û¤Ê¤ëÊѹ¹¤Ç¤¹¡£ ºÇÎɤηë²Ì¤òÆÀ¤ë¤Ë¤Ï¡¢set pm3d depthorder base ¤È set pm3d lighting ¤òÁȤ߹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤¡£

37 Boxplot

Image figure_boxplot
boxplot ¤Ï¡¢ÃͤÎÅý·×Ū¤ÊʬÉÛ¤òɽ¸½¤¹¤ë°ìÈÌŪ¤ÊÊýË¡¤Ç¤¹¡£»Íʬ°Ì¶­³¦¤Ï¡¢ 1/4 ¤ÎÅÀ¤¬Âè°ì»Íʬ°Ì¶­³¦°Ê²¼¤ÎÃͤò»ý¤Ä¤è¤¦¤Ë¡¢1/2 ¤ÎÅÀ¤¬ÂèÆó»Íʬ°Ì¶­³¦ (¥á¥¸¥¢¥ó) °Ê²¼¤ÎÃͤò»ý¤Ä¤è¤¦¤Ë¡¢Åù¤È·èÄꤵ¤ì¤Þ¤¹¡£Âè°ì»Íʬ°Ì¤ÈÂè»°»Í ʬ°Ì¤Î´Ö¤ÎÎΰè¤ò°Ï¤à¤è¤¦¤ËÈ¢¤òÉÁ²è¤·¡¢¥á¥¸¥¢¥óÃͤΤȤ³¤í¤Ë¤Ï¿åÊ¿Àþ¤òÉÁ ¤­¤Þ¤¹¡£È¢¤Ò¤²¤Ï¡¢È¢¤«¤é¥æ¡¼¥¶»ØÄê¸Â³¦¤Þ¤Ç±äŤµ¤ì¤Þ¤¹¡£¤½¤ì¤é¤Î¸Â³¦¤Î ³°¤Ë¤¢¤ëÅÀ¤Ï¡¢¤Ò¤È¤Ä¤Ò¤È¤ÄÉÁ²è¤µ¤ì¤Þ¤¹¡£

Îã:


   # x ºÂɸ¤Ï 1.0¡¢y ¤Ï 5 ÎóÌܤÎÃͤΤȤ³¤í¤Ë boxplot ¤òÇÛÃÖ
   plot 'data' using (1.0):5


   # ¾å¤ÈƱ¤¸¤À¤¬¡¢Èϰϳ°¤ÎÅÀ¤Ï±£¤·¡¢boxplot ¤ÎÉý¤ò 0.3 ¤Ë¤¹¤ë
   set style boxplot nooutliers
   plot 'data' using (1.0):5:(0.3)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢using »ØÄê¤Ë¤è¤ë 2 ÎóÌܤΠy ¤Î¤¹¤Ù¤Æ¤ÎÃͤËÂФ¹¤ë boxplot ¤ò 1 ¤Ä¤À¤±À¸À®¤·¤Þ¤¹¡£¤·¤«¤·¡¢ÄɲäΠ(4 ¤ÄÌܤÎ) Îó¤ò»ØÄꤹ¤ë ¤È¡¢¤½¤ÎÎó¤ÎÃͤò¤¢¤ë°ø»ÒÊÑ¿ô¤ÎÎ¥»¶Åª¤Ê¥ì¥Ù¥ëÃͤǤ¢¤ë¤È¸«¤Ê¤·¡¢¤½¤ÎÎ¥»¶ ÃͤΥì¥Ù¥ë¤ÎÃͤοô¤À¤±¤Î boxplot ¤òÉÁ²è¤·¤Þ¤¹¡£¤½¤ì¤é¤Î boxplot ¤Î´Ö³Ö ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1.0 ¤Ç¤¹¤¬¡¢¤³¤ì¤Ï set style boxplot separation ¤Ç Êѹ¹¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢°ø»ÒÊÑ¿ô¤ÎÃͤϡ¢³Æ boxplot ¤Î²¼ (¤Þ¤¿¤Ï ¾å) ¤ÎÌÜÀ¹¤ê¤Î¥é¥Ù¥ë¤Ëɽ¼¨¤·¤Þ¤¹¡£

Îã


   # 'data' ¤Î 2 ÎóÌÜ¤Ï "control" ¤« "treatment" ¤Î¤¤¤º¤ì¤«¤Îʸ»úÎó¤Ç
   # °Ê²¼¤ÎÎã¤Ï¡¢¤½¤Î°ø»ÒËè¤Î 2 ¤Ä¤Î boxplot ¤òÀ¸À®¤¹¤ë
   plot 'data' using (1.0):5:(0):2

¤½¤ÎÈ¢¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤Ï set boxwidth <width> ¤ÇÀßÄê¤Ç¤­¤Þ¤¹¤¬¡¢plot ¥³¥Þ¥ó¥É¤Î using ¤Ë¤è¤ë 3 ÈÖÌܤΥª¥×¥·¥ç¥óÎó¤Ç¤â»ØÄê¤Ç¤­¤Þ¤¹¡£1 ÈÖÌÜ ¤È 3 ÈÖÌܤÎÎó (x ºÂɸ¤ÈÉý) ¤ÏÄ̾ï¥Ç¡¼¥¿Îó¤Ç¤Ï¤Ê¤¯Äê¿ô¤È¤·¤ÆÍ¿¤¨¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢È¢¤Ò¤²¤ÏÈ¢¤Îü¤«¤é¡¢y ¤ÎÃͤ¬»Íʬ°ÌÈϰϤΠ1.5 ÇܤÎÃæ¤Ë ¼ý¤Þ¤Ã¤Æ¤¤¤ÆºÇ¤âÎ¥¤ì¤Æ¤¤¤ë¤è¤¦¤ÊÅÀ¤Þ¤Ç±äŤµ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÈÏ °Ï³°¤ÎÅÀ (outlier) ¤Ï±ß (pointtype 7) ¤ÇÉÁ¤«¤ì¤Þ¤¹¡£È¢¤Ò¤²¤Îü¤ÎËÀ¤ÎÉý ¤Ï set bars ¤Þ¤¿¤Ï set errorbars ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤­¤Þ¤¹¡£

¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀ­¼Á¤Ï set style boxplot ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: set style boxplot (112.86.2), bars (112.28), boxwidth (112.7), fillstyle (112.86.4), candlesticks (39)¡£

38 Boxxyerror

Image figure_boxxyerror
boxxyerror ÉÁ²è¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£¤³¤ì ¤Ï¡¢xyerrorbars ¥¹¥¿¥¤¥ë¤¬Àþʬ¤Î¸òº¹¤Çɽ¸½¤¹¤ë¤È¤³¤í¤òĹÊý·Á¤Çɽ¸½¤¹ ¤ë¤³¤È¤ò½ü¤±¤Ð¤Û¤ÜƱ¤¸¤Ç¤¹¡£¤³¤ì¤ÏÆþÎϥǡ¼¥¿¤Î 4 Î󡢤ޤ¿¤Ï 6 Îó¤ò»ÈÍÑ ¤·¤Þ¤¹¡£Í¾Ê¬¤ÊÆþÎÏÎó (5 ÎóÌÜ¡¢¤Þ¤¿¤Ï 7 ÎóÌÜ) ¤Ï¡¢¥Ç¡¼¥¿ÅÀËè¤Î²ÄÊÑ¿§ (variable color) ¾ðÊó¤ÎÄ󶡤Ȥ·¤Æ°·¤¤¤Þ¤¹ (°Ê²¼»²¾È: linecolor (20.1), rgbcolor variable (20.1.4))¡£


    4 Îó:  x  y  xdelta  ydelta
    6 Îó:  x  y  xlow  xhigh  ylow  yhigh

È¢¤ÎÉý¤È¹â¤µ¤Ï xyerrorbars ¥¹¥¿¥¤¥ëƱÍÍ x, y ¤Î¸íº¹¤«¤é·èÄꤵ¤ì¤Þ¤¹ ¤Ä¤Þ¤ê¡¢xlow ¤«¤é xhigh ¤Þ¤Ç¤È ylow ¤«¤é yhigh ¤Þ¤Ç¡¢¤Þ¤¿¤Ï x-xdelta ¤«¤é x+xdelta ¤Þ¤Ç¤È y-ydelta ¤«¤é y+ydelta ¤Þ¤Ç¡£¤³¤ì¤é¤Ï²¿Îó¤Î¥Ç¡¼¥¿ ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ¤¹¡£

6 Îó¤Î·Á¼°¤Î¥³¥Þ¥ó¥É¤Ï¡¢Ç¤°Õ¤Î x, y ¤ÎÉý¤ÎĹÊý·Á¤ò½ñ¤¯´Êñ¤ÊÊýË¡¤òÄó¶¡ ¤·¤Þ¤¹¡£

È¢¤ÎÆâÉô¤Ï¸½ºß¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ë½¾¤Ã¤ÆÅɤé¤ì¤Þ¤¹¡£¾Ü ºÙ¤Ï¡¢°Ê²¼»²¾È: set style fill (112.86.4), boxes (36)¡£plot ¥³¥Þ¥ó¥É¾å¤Ç¿·¤·¤¤ÅÉ¤ê ¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

39 Candlesticks

Image figure_candlesticks
candlesticks ¥¹¥¿¥¤¥ë¤Ï¡¢¶âÍ»¥Ç¡¼¥¿¤Î 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¡¢¤ª¤è¤ÓÅý·× ¥Ç¡¼¥¿¤Î¤Ò¤²ÉÕ¤­¤ÎËÀ¥°¥é¥Õ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£ µ­¹æ¤Ï¡¢¿åÊ¿Êý¸þ¤Ë¤Ï x ¤òÃæ¿´¤È¤·¡¢¿âľÊý¸þ¤Ë¤Ï³«»ÏÃÍ (open) ¤È½ªÃÍ (close) ¤ò¶­³¦¤È¤¹¤ëĹÊý·Á¤¬»È¤ï¤ì¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤Î x ºÂɸ¤Î¤È¤³¤í¤Ë ĹÊý·Á¤Î¤Æ¤Ã¤Ú¤ó¤«¤éºÇ¹âÃÍ (high) ¤Þ¤Ç¤È¡¢Ä¹Êý·Á¤ÎÄ줫¤éºÇ°ÂÃÍ (low) ¤Þ¤Ç¤Î¿âľÀþ¤¬°ú¤«¤ì¤Þ¤¹¤¬¡¢¤³¤Î¿âľÀþ¤ÏºÇ¹âÃͤȺǰÂÃͤ¬Æþ¤ìÂؤï¤Ã¤Æ¤â Êѹ¹¤µ¤ì¤Þ¤»¤ó¡£

´ðËÜŪ¤Ë 5 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹:


     ¶âÍ»¥Ç¡¼¥¿:   date  open  low  high  close
     È¢¤Ò¤²ÉÁ²è:   x  box_min  whisker_min  whisker_high  box_high

ĹÊý·Á¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¤¬¡¢°ÊÁ°¤Î gnuplot ¤Ø¤Î¸åÊý¸ß´¹À­¤È¤·¤Æ¡¢boxwidth ¥Ñ¥é¥á¡¼¥¿¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï set errorbars <width> ¤òĹÊý·Á¤ÎÉý¤È¤·¤Æ¼è¤ê¤Þ¤¹¡£

¤³¤ì¤ÎÂå¤ï¤ê¤Ë¡¢È¢¤Ò¤² (box-and-whisker) ¤Î¥°¥ë¡¼¥×²½¤Ë´Ø¤¹¤ëÌÀ¼¨Åª¤Ê Éý¤Î»ØÄê¤ò¡¢ÄɲäΠ6 ÈÖÌܤΥǡ¼¥¿¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£¤½¤ÎÉý¤Ï¡¢x ºÂɸ¤ÈƱ ¤¸Ã±°Ì¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£

ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ¡¢¤Þ¤¿¤Ï 6 ÎóÌܤ¬¥Ç¡¼¥¿¤ÎÉý¤È¤·¤Æ»È¤ì¤ë¾ì¹ç¤Ï 7 Îó ÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼»²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢±ôľÀþʬ¤Î¤Æ¤Ã¤Ú¤ó¤ÈÄì¤Ë¤Ï¿âľ¤Ë¸ò¤ï¤ë¿åÊ¿Àþ¤Ï°ú¤«¤ì¤Þ ¤»¤ó¡£¤½¤ì¤ò°ú¤­¤¿¤¤¾ì¹ç¡¢Î㤨¤Ðŵ·¿Åª¤ÊÎã¤ÏÈ¢¤Ò¤²¿Þ (box-and-whisker plot) ¤Ç¤Î»ÈÍѤǤ¹¤¬¡¢ÉÁ²è¥³¥Þ¥ó¥É¤Ë¥­¡¼¥ï¡¼¥É whiskerbars ¤òÄɲä· ¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿åÊ¿Àþ¤ÏÈ¢ (candlestick) ¤Î¿åÊ¿Éý°ìÇդ˰ú ¤«¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÁ´ÂΤÎÉý¤ËÂФ¹¤ë³ä¹ç¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£

¶âÍ»¥Ç¡¼¥¿¤ÎÄ̾ï¤Î´·½¬¤Ç¤Ï¡¢(³«»ÏÃÍ) < (½ªÃÍ) ¤Î¾ì¹ç¤ÏĹÊý·Á¤Ï¶õ¤Ç¡¢ (½ªÃÍ) < (³«»ÏÃÍ) ¤Î¾ì¹ç¤Ïñ¿§Åɤꤷ¤Þ¤¹¡£¸½ºß¤Î fillstyle ¤Ë "empty" ¤ò¥»¥Ã¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼ÂºÝ¤Ë¤³¤¦¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (112.86.4)¡£ fillstyle ¤Ë solid (ñ¿§Åɤê)¡¢¤Þ¤¿¤Ï pattern (¥Ñ¥¿¡¼¥ó) ¤ò¥»¥Ã¥È¤·¤Æ ¤¤¤ë¾ì¹ç¤Ï¡¢³«»ÏÃÍ¡¢½ªÃͤ˴ط¸¤Ê¤¯¡¢¤¹¤Ù¤Æ¤ÎÈ¢¤Ë¤½¤ì¤¬»È¤ï¤ì¤Þ¤¹¡£°Ê²¼ »²¾È: set errorbars (112.28), financebars (45)¡£¤Þ¤¿¡¢°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ candlestick

¤È finance

¤Î¥Ç¥â¡£

Ãí°Õ: È¢¤Ò¤²¥°¥é¥Õ¾å¤Ëµ­¹æ¤äÀþ¤òÄɲä·¤ÆÃÖ¤¯¤Ë¤Ï¡¢ÄɲäÎÉÁ²èÍ×ÁǤ¬É¬Í× ¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼¤ÎºÇ½é¤ÎÎã¤Ï¡¢2 ÈÖÌܤÎÍ×ÁǤǡ¢È¢¤òÄÙ¤·¤ÆÃæ±ûÃͤξì½ê¤Ë ÃÖ¤¯Àþʬ¤Ë¤·¤Æ¤¤¤Þ¤¹¡£


 # ¥Ç¡¼¥¿Îó:  X 'ºÇ¾®ÃÍ' '1/4 °Ì¤ÎÃÍ' 'Ãæ±ûÃÍ' '3/4 °Ì¤ÎÃÍ' 'ºÇÂçÃÍ'
 set errorbars 4.0
 set style fill empty
 plot 'stat.dat' using 1:3:2:6:5 with candlesticks title 'Quartiles', \
      ”         using 1:4:4:4:4 with candlesticks lt -1 notitle


 # ¤Ò¤²¤Î¾å¤Ë¿åÊ¿Àþ¤òȼ¤¦ÉÁ²è¤Ç¡¢¿åÊ¿Àþ¤ÎÉý¤òÁ´ÂÎÉý¤Î 50% ¤Ë¤¹¤ë
 plot 'stat.dat' using 1:3:2:6:5 with candlesticks whiskerbars 0.5

°Ê²¼»²¾È: set boxwidth (112.7), set errorbars (112.28), set style fill (112.86.4), boxplot (37)¡£

40 Circles

Image figure_circles
¥¹¥¿¥¤¥ë circles ¤Ï¡¢³Æ¥Ç¡¼¥¿ÅÀ¤ËÌÀ¼¨¤µ¤ì¤¿È¾·Â¤Î±ß¤òÉÁ²è¤·¤Þ¤¹¡£È¾ ·Â¤Ï¡¢¾ï¤ËÉÁ²è¤Î¿åÊ¿¼´ (x ¤Þ¤¿¤Ï x2) ¤Îñ°Ì¤Ç²ò¼á¤µ¤ì¤Þ¤¹¡£y Êý¸þ¤Î½Ì ¼Ü¤ÈÉÁ²è¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤Ï¡¢¤¤¤º¤ì¤â̵»ë¤µ¤ì¤Þ¤¹¡£È¾·Â¤ò³ÆÅÀËè¤ÎÎó¤È¤·¤Æ »ØÄꤷ¤Ê¤¤¾ì¹ç¡¢¤½¤ì¤Ï set style circle ¤«¤é¼è¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢È¾·Â ¤Ï graph ¤« screen ¤ÎºÂɸ·Ï¤ò»ÈÍѤǤ­¤Þ¤¹¡£

³ÆÅÀËè¤Ë¡¢¤½¤·¤Æ»öÁ°¤Ë¡¢ÀßÄꤹ¤ë°À­¤Î¿¤¯¤ÎÁȤ߹ç¤ï¤»»ØÄ꤬²Äǽ¤Ç¤¹¡£ 2 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢°Ê²¼¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£


   using x:y
   using x:y:radius
   using x:y:color
   using x:y:radius:color
   using x:y:radius:arc_begin:arc_end
   using x:y:radius:arc_begin:arc_end:color

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï´°Á´¤Ê±ß¤òÉÁ²è¤·¤Þ¤¹¡£ ¤³¤Î·ë²Ì¤Ï points ¤È pointtype 7 ¤òÍѤ¤¤Æ¡¢²ÄÊÑÅÀ¥µ¥¤¥º¤Î¥°¥é¥Õ¤ò½ñ ¤¯¤³¤È¤ÈƱÍͤǤ¹¤¬¡¢¤½¤Î±ß¤ò x ¼´¤ÎÈϰϤǿ­½Ì¤¹¤³¤È¤¬°ã¤¤¤Þ¤¹¡£ 4 ÎóÌÜ¡¢5 ÎóÌܤ˳«»Ï³Ñ¤È½ªÎ»³Ñ (ñ°Ì¤ÏÅÙ)¤ò»ØÄꤹ¤ë¤³¤È¤Ç±ß¸Ì¤Î°ìÉô¤ò ÉÁ²è¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

using »ØÄê¤ÎºÇ¸å¤ÎÎó¤Ç¡¢±ßËè¤Î¿§¤â»ØÄê¤Ç¤­¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢plot ¥³¥Þ¥ó ¥É¤Ë¤Ï lc variable ¤« fillcolor rgb variable ¤Î¤è¤¦¤ÊÊÑÆ°¿§»ØÄê¤ò Æþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

°Ê²¼»²¾È: set style circle (112.86.9), set object circle (112.62.3), set style fill (112.86.4)¡£

3 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢using »ØÄê¤Ë¤Ï°Ê²¼¤Î¤â¤Î¤¬É¬ÍפǤ¹¡£


   splot DATA using x:y:z:radius:color

ÊÑÆ°¿§¤ÎÎó¤Ï¥ª¥×¥·¥ç¥ó (¾Êά²Ä) ¤Ç¤¹¡£

Îã:


   # ÌÌÀѤ¬ 3 ÎóÌܤÎÃͤËÈæÎ㤹¤ë¤è¤¦¤Ê±ß¤òÉÁ²è
   set style fill transparent solid 0.2 noborder
   plot 'data' using 1:2:(sqrt($3)) with circles, \
        'data' using 1:2 with linespoints


   # ±ß¤ÎÂå¤ï¤ê¤Ë¥Ñ¥Ã¥¯¥Þ¥ó¤òÉÁ²è
   plot 'data' using 1:2:(10):(40):(320) with circles

Image figure_piechart


   # ¥¤¥ó¥é¥ó¥Ç¡¼¥¿¤Ç±ß¥°¥é¥Õ¤òÉÁ²è
   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

41 Contourfill

Image figure_contourfill
contourfill ¤Ï¡¢3 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤Ç¡¢pm3d ¶ÊÌ̤ò z ¤ÎÅù¹âÀþ¤Ë±è¤Ã¤ÆÀÚ ¤Ã¤¿ÃÇÊҤο§ÉÕ¤±¤Ë»È¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µ¼Í±Æ (set view map) ¤Ç¡¢Åù ¹âÀþ¤Î´Ö¤òñ¿§¤ÇÅɤêÄÙ¤·¤¿ 2 ¼¡¸µ¤ÎÅù¹âÀþ¥°¥é¥Õ¤òºîÀ®¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£ ³ÆÃÇÊҤζ­³¦¤È¿§¤Î³ä¤êÅö¤Æ¤Ï¡¢¤¤¤º¤ì¤â set contourfill ¤ÇÀ©¸æ¤Ç¤­¤Þ ¤¹¡£°Ê²¼¤â»²¾È: pm3d (112.71), zclip (112.71.1)¡£

¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢set contours ¤ÈÁȤ߹ç¤ï¤»¤Æ¡¢¤½¤ÎÃÇÊÒ¤òÀÚ¤êʬ¤± ¤ëÅù¹âÀþ¤ò½Å¤ÍÉÁ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£set contourfill ¤ÎÃÇÊҤζ­³¦¤ò set cntrparam ¤ÎÅù¹âÀþ¶­³¦¤È¤ò¹ç¤ï¤»¤ë¤è¤¦¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£


    # ztics ¤ÇÄêµÁ¤µ¤ì¤ëÃÇÊÒ¶­³¦
    # ÃÇÊҤΠz ¤ÎÃæ±ûÃͤ˳ä¤êÅö¤Æ¤é¤ì¤ë¥Ñ¥ì¥Ã¥È¤Ç¿§ÉÕ¤±
    set pm3d border retrace
    set contourfill ztics
    set ztics -20, 5, 20
    set contour
    set cntrparam cubic levels increment -20, 5, 20
    set cntrlabel onecolor
    set view map
    splot g(x,y) with contourfill, g(x,y) with lines nosurface

42 Dots

Image figure_dots
dots ¥¹¥¿¥¤¥ë¤Ï³ÆÅÀ¤Ë¾®¤µ¤Ê¥É¥Ã¥È¤òÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¤¿¤¯¤µ¤ó¤ÎÅÀ¤« ¤é¤Ê¤ë»¶ÉÛ¿Þ¤ÎÉÁ²è¤ËÊØÍø¤Ç¤·¤ç¤¦¡£2 ¼¡¸µÉÁ²è¤Ç¤Ï 1 Î󡢤ޤ¿¤Ï 2 Îó¤ÎÆþ Îϥǡ¼¥¿¤¬¡¢3 ¼¡¸µÉÁ²è¤Ç¤Ï 3 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹¡£

½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï (post, pdf ¤Ê¤É)¡¢¥É¥Ã¥È¤ÎÂ礭¤µ¤Ï linewidth ¤òÊѹ¹ ¤¹¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤­¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£


    1 Îó:  y         # x ¤Ï¹ÔÈÖ¹æ
    2 Îó:  x  y
    3 Îó:  x  y  z   # 3D ¤Î¤ß (splot)

43 Ellipses

Image figure_ellipses
¥¹¥¿¥¤¥ë ellipses ¤Ï¡¢³Æ¥Ç¡¼¥¿ÅÀ¤ËÂ汧 (ellipse) ¤òÉÁ²è¤·¤Þ¤¹¡£¤³¤Î ¥¹¥¿¥¤¥ë¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£³ÆÂʱߤϡ¢Ãæ¿´¡¢¼ç¼´Ä¾·Â¡¢Éû ¼´Ä¾·Â¡¢x ¼´¤È¼ç¼´¤Î¤Ê¤¹³Ñ¡¢¤Çɽ¸½¤µ¤ì¤Þ¤¹¡£


    2 Îó: x y
    3 Îó: x y diam  (¼ç¼´¡¢Éû¼´¤ÎξÊý¤Ë»ÈÍÑ)
    4 Îó: x y major_diam minor_diam
    5 Îó: x y major_diam minor_diam angle

2 Îó¤Î¥Ç¡¼¥¿¤Î¤ß¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¤È¤ß¤Ê¤µ¤ì¡¢Â汧 ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÂ礭¤µ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£ÂÊ ±ß¤Î¸þ¤­¤Ï¡¢¼ç¼´¤È x ¼´¤Î¤Ê¤¹³Ñ¤ÇÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î ellipse ¤Î¥¹¥¿¥¤¥ë¤«¤é¼è¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£

3 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢3 ÎóÌܤϼ硢Éûξ¼´¤Îľ·Â (Éý) ¤È¤·¤Æ»È ¤ï¤ì¤Þ¤¹¡£¸þ¤­¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç 0 ¤Ë¤Ê¤ê¤Þ¤¹¡£

4 Îó¤Î¥Ç¡¼¥¿¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤é¤ÏÃæ¿´¤ÎºÂɸ¡¢¼ç¼´Ä¾·Â (Éý)¡¢Éû ¼´Ä¾·Â¤È¤·¤Æ»È¤ï¤ï¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ïľ·Â¤Ç¤¢¤ê¡¢È¾·Â¤Ç¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ ¤¯¤À¤µ¤¤¡£ °ìÊý¤Îľ·Â¤¬Éé¤Ê¤é¤Ð¡¢Ä¾·Â¤ÏξÊý¤È¤â set style ellipse ¤ÇÀßÄꤷ¤¿¥Ç ¥Õ¥©¥ë¥ÈÃͤò»È¤¤¤Þ¤¹¡£

5 Îó¤Î¥Ç¡¼¥¿¤È¤·¤Æ¡¢¸þ¤­¤Î³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ Âʱߤϡ¢3,4,5 Îó¤ÎÃͤÏÉé¤ÎÃͤȤ·¤Æ»ØÄꤹ¤ë¤³¤È¤Ç¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î ÃͤòÍøÍѤ·¤ÆÂʱߤò½ñ¤«¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

¾å¤Î¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢variable color ¥Ç¡¼¥¿¤òºÇ¸å¤ÎÎó (3,4,5,6 ÎóÌÜ) ¤È ¤·¤ÆÄɲäǤ­¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£

¥­¡¼¥ï¡¼¥É units: units xy ¤¬ÉÁ²è»ØÄê¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¼ç¼´Ä¾·Â ¤Ï¿åÊ¿¼´ (x ¤Þ¤¿¤Ï x2) ¤Îñ°Ì¡¢Éû¼´Ä¾·Â¤Ï¿âľ¼´ (y ¤Þ¤¿¤Ï y2) ¤Îñ°Ì¤Ç ¤¢¤ë¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬°Û¤Ê¤ë¾ì¹ç¡¢¼ç¼´¤ÈÉû¼´¤ÎÈæ¤Ï²ó ž¸å¤Ë¤ÏÀµ¤·¤¯¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ units xx ¤Ï¡¢Ä¾·Â¤Ïξ¼´¤È¤â x ¼´¤Îñ°Ì¤Ç·×»»¤·¤Þ¤¹¡£ units yy ¤Ï¡¢Ä¾·Â¤Ïξ¼´¤È¤â y ¼´¤Îñ°Ì¤Ç·×»»¤·¤Þ¤¹¡£ ¸å¤Î 2 ¤Ä¤Ï¡¢ÉÁ²è¤Î¥µ¥¤¥º¤òÊѹ¹¤·¤Æ¤â¡¢ÂʱߤÏÀµ¤·¤¤¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò»ý¤Á ¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç units ¤ò¾Êά¤·¤¿¾ì¹ç¤Ï¡¢set style ellipse ¤Î ÀßÄê¤ò»È¤¤¤Þ¤¹¡£

Îã (ÂʱߤòÍ­¸ú¤ÊÀþ¼ï¤ò¼þ´üŪ¤Ë»ÈÍѤ·¤ÆÉÁ²è):


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

°Ê²¼¤â»²¾È: set object ellipse (112.62.2), set style ellipse (112.86.11), fillstyle (112.86.4)¡£

44 Filledcurves

Image figure_filledcurves
¥¹¥¿¥¤¥ë filledcurves ¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍøÍѤ·¤Þ¤¹¡£¤³¤ì¤Ï 3 ¼ïÎà¤Î °Û¤Ê¤ë»ØÄ꤬²Äǽ¤Ç¤¹¡£ºÇ½é¤Î 2 ¼ïÎà¤Ï 1 ¤Ä¤Î´Ø¿ôÉÁ²è¡¢¤¢¤ë¤¤¤Ï (x,y) 2 Îó¤ÎÆþÎϥǡ¼¥¿ÍѤΤâ¤Î¤Ç¡¢¸å¤Ç¾Ò²ð¤¹¤ë¤è¤¦¤Ë¥ª¥×¥·¥ç¥ó¤Ç¹¹¤Ê¤ë»ØÄ꤬¤Ç ¤­¤Þ¤¹¡£

½ñ¼°:


   plot ... with filledcurves [option]

¤³¤³¤Ç¡¢¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¹:


   closed
   {above|below} x1 x2  y r=<a> xy=<x>,<y>
   between

ºÇ½é¤Î¤â¤Î¤Ï closed ¤Ç¡¢¤³¤ì¤Ï¶ÊÀþ¤½¤ì¼«¿È¤òÊÄ¿³Ñ·Á¤È¸«¤Ê¤·¤Þ¤¹¡£Æþ Îϥǡ¼¥¿¤¬ 2 Îó¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£


   filledcurves closed   ... ÃúÅÙÊĶÊÀþ¤Ç°Ï¤Þ¤ì¤ëÎΰè

2 ¼ïÎàÌܤϻØÄꤵ¤ì¤¿¼´¡¢¤¢¤ë¤¤¤Ï¿åÊ¿Àþ¡¢¿âľÀþ¡¢Í¿¤¨¤é¤ì¤¿ÅÀ¤Ê¤É¤È¡¢¶Ê Àþ¤È¤Î´Ö¤Ëºî¤é¤ì¤ëÎΰè¤òÅɤê¤Ä¤Ö¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤µ¤é¤ËÅɤêÄÙ¤·Îΰè¤ò »ØÄꤷ¤¿Ä¾Àþ¤Î¾å¤Þ¤¿¤Ï²¼¤ËÀ©¸Â¤Ç¤­¤Þ¤¹¡£


   filledcurves x1       ... x1 ¼´
   filledcurves x2       ... x2 ¼´ (y1, y2 ¼´¤âƱÍÍ)
   filledcurves y=42     ... ľÀþ y=42, ¤¹¤Ê¤ï¤Á x ¼´¤ÈÊ¿¹Ô
   filledcurves xy=10,20 ... x1,y1 ¼´¤Ç¤ÎÅÀ 10,20 (À𷿤Τ褦¤Ê·Á¾õ)
   filledcurves above r=1.5  ¶ËºÂɸ¤Ç¤ÎÆ°·Â¼´¤Î 1.5 ¤Î³°Â¦¤ÎÎΰè

Image figure_yerrorfill
3 ¼ïÎàÌܤϡ¢x ºÂɸ¤Î½¸¹ç¤¬Æ±¤¸¤Ç¤¢¤ë 2 ¤Ä¤Î¶ÊÀþ¤Î´Ö¤ÎÎΰè¤òÅɤêÄÙ¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢(x, y1, y2) ¤Î 3 Îó¤ÎÆþÎϥǡ¼¥¿¤¬É¬ÍפǤ¹¡£ÆþÎϥǡ¼¥¿¤¬ 3 Îó°Ê¾å¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£2 ÎóÌܤ¬ y ¤ÎÃͤǡ¢3 ÎóÌܤ¬¤½¤Î ¸íº¹¥Ç¡¼¥¿¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢ÉÔ³ÎÄêÎΰè¤ò±¢±Æ¤Çɽ¸½¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤ì¤Ë»÷¤¿ 3 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë zerrorfill ¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£


   3 Îó:  x  y  yerror


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

above ¤È below ¥ª¥×¥·¥ç¥ó¤Ï


   ... filledcurves above {x1|x2|y|r}=<val>

¤ª¤è¤Ó


   ... using 1:2:3 with filledcurves below

¤Î·Á¤Î¥³¥Þ¥ó¥É¤ËŬÍѲÄǽ¤Ç¤¹¡£¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â¡¢¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï Åɤê¤Ä¤Ö¤·Îΰè¤ò¡¢¶­³¦Àþ¡¢¤Þ¤¿¤Ï¶­³¦¶ÊÀþ¤ÎÊÒ¦¤ËÀ©¸Â¤·¤Þ¤¹¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÉÁ¤«¤ì¤¿¶ÊÀþ¤ÎÅɤê¤Ä¤Ö¤·¤ò³ÈÂ礹¤ë¤È¡¢²¿¤â¤Ê¤¯¤Ê¤Ã¤¿ ¤êÀµ¤·¤¯¤Ê¤¤Îΰè¤Ë¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï gnuplot ¤¬¡¢Îΰè¤Ç¤Ï¤Ê ¤¯ÅÀ¤äÀþ¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹¡£

<x>, <y>, <a> ¤¬ÉÁ²èÎΰè¤Î³°¤Ë¤¢¤ë¾ì¹ç¡¢¤½¤ì¤é¤Ï¥°¥é¥Õ¤Î¶­³¦¤Ø°ÜÆ°¤µ¤ì ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¥ª¥×¥·¥ç¥ó xy=<x>,<y> ¤ò»ØÄꤷ¤¿¾ì¹ç¤Î¼ÂºÝ¤ÎÅɤê¤Ä¤Ö¤·ÎÎ °è¤Ï¡¢xrange ¤ä yrange ¤Ë°Í¸¤·¤Þ¤¹¡£

44.1 ÅɤêÄÙ¤·¤Î°À­ (fill properties)

with filledcurves ¤Ç¤ÎÉÁ²è¤Ï¡¢fillstyle (solid/transparent/pattern) ¤ä fillcolor ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¤µ¤é¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤Ç¤­¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É ¤Ç fillstyle (fs) ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¸½ºß¤Î¥Ç¥Õ¥©¥ë¥È¤Î fill ¥¹¥¿¥¤¥ë ¤ò»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: set style fill (112.86.4)¡£plot ¥³¥Þ¥ó¥É¤Ç fillcolor (fc) ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¸½ºß¤ÎÀþ¿§¤ò»È¤¤¤Þ¤¹¡£

fillstyle ¤Î°À­¤Î {{no}border} ¤Ï¡¢filledcurves ¤Î¥â¡¼¥É¤¬¥Ç¥Õ¥©¥ë¥È ¤Î closed ¤Ç¤¢¤ë¾ì¹ç¤Ë¼õ¤±ÉÕ¤±¤Þ¤¹¡£ Îã:


    plot 'data' with filledcurves fc "cyan" fs solid 0.5 border lc "blue"

45 Financebars

financebars ¥¹¥¿¥¤¥ë¤Ï¶âÍ»¥Ç¡¼¥¿¤Î 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ ¤Ç¤¹¡£¤³¤ì¤Ï¡¢x ºÂɸ 1 ¤Ä (Ä̾ïÆüÉÕ) ¤È¡¢4 ¤Ä¤Î y ºÂɸ (¶â³Û) ¤òɬÍ×¤È ¤·¤Þ¤¹¡£


    5 Îó:   date  open  low  high  close

ÆþÎÏÎó¤òÄɲà (6 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¹ÔËè¤Î variable color ¾ðÊó (°Ê ²¼»²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£

Image figure_financebars
µ­¹æ¤Ï¡¢¿åÊ¿Êý¸þ¤Ë¤Ï¤½¤Î x ºÂɸ¤ËÃÖ¤«¤ì¡¢¿âľÊý¸þ¤Ë¤ÏºÇ¹âÃÍ (high) ¤È ºÇ°ÂÃÍ (low) ¤òü¤È¤¹¤ëÀþʬ¤¬»È¤ï¤ì¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎÀþʬ¤Ë¿åÊ¿º¸Â¦¤Î ¹ï¤ß¤¬³«»ÏÃÍ (open) ¤Î½ê¤Ë¡¢¿åÊ¿±¦Â¦¤Î¹ï¤ß¤¬½ª¤êÃÍ (close) ¤Î½ê¤Ë¤Ä¤­ ¤Þ¤¹¡£¤½¤Î¹ï¤ß¤ÎŤµ¤Ï set errorbars ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£µ­¹æ¤ÏºÇ¹âÃÍ¤È ºÇ°ÂÃͤ¬Æþ¤ìÂؤï¤Ã¤Æ¤âÊѤï¤ê¤Þ¤»¤ó¡£°Ê²¼»²¾È: set errorbars (112.28), candlesticks (39)¡£°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¶âÍ»¥Ç¡¼¥¿¥Ç¥â¡£

46 Fillsteps


    plot <data> with fillsteps {above|below} {y=<baseline>}

Image figure_steps
fillsteps ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢steps ¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢¶ÊÀþ¤È¥Ù¡¼¥¹¥é¥¤¥ó (¥Ç¥Õ¥©¥ë¥È¤Ï y=0) ¤È¤Î´Ö¤ÎÎΰè¤ò¸½ºß¤Î fillstyle ¤ÇÅɤêÄÙ¤·¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó above ¤È below ¤Ï¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤ÎÊÒÊý¤ÎÉôʬ¤Î¤ßÅɤêÄÙ¤·¤Þ¤¹¡£°ì¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤« ¤é¼¡¤ÎÅÀ¤Ø¤Î°ÜÆ°¤ÎºÝ¤Ë¡¢steps ¤È fillsteps ¤Ï¤¤¤º¤ì¤â¤Þ¤º x ºÂɸ¤Î ÊѲ½¤ÎÀþ¤ò°ú¤­¡¢¤½¤Î¸å y ºÂɸ¤ÎÊѲ½¤ÎÀþ¤ò°ú¤¯¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: steps (66)¡£

47 Fsteps

Image figure_fsteps
fsteps ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£¤³¤ì¤Ï 2 ËܤÎÀþʬ¤Ç ÎÙ¤ê¹ç¤¦ÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹: 1 ËÜÌÜ¤Ï (x1,y1) ¤«¤é (x1,y2) ¤Þ¤Ç¡¢2 ËÜÌÜ¤Ï (x1,y2) ¤«¤é (x2,y2) ¤Þ¤Ç¡£ÆþÎÏÎó¤Î¾ò·ï¤Ï¡¢lines ¤ä points ¤ËÂФ¹ ¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¡£fsteps ¤È steps ¤Î°ã¤¤¤Ï¡¢fsteps ¤Ï¡¢ÀÞ¤ìÀþ¤ò Àè¤Ë y Êý¸þ¤Ë½ñ¤¤¤Æ¤«¤é¼¡¤Ë x Êý¸þ¤Ë½ñ¤¯¤Î¤ËÂФ·¡¢steps ¤ÏÀè¤Ë x Êý ¸þ¤Ë½ñ¤¤¤Æ¤«¤é¼¡¤Ë y Êý¸þ¤Ë½ñ¤­¤Þ¤¹¡£

°Ê²¼¤â»²¾È steps ¥Ç¥â¡£

48 Histeps

Image figure_histeps
histeps ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£¤³¤ì¤Ï¥Ò¥¹¥È¥°¥é¥à ¤ÎÉÁ²è¤Ç¤ÎÍøÍѤò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£y ¤ÎÃͤϡ¢x ¤ÎÃͤòÃæ¿´¤ËÃÖ¤¯¤È¹Í¤¨¡¢ x1 ¤Ç¤ÎÅÀ¤Ï ((x0+x1)/2,y1) ¤«¤é ((x1+x2)/2,y1) ¤Þ¤Ç¤Î¿åÊ¿Àþ¤È¤·¤Æɽ¸½ ¤µ¤ì¤Þ¤¹¡£Ã¼¤ÎÅÀ¤Ç¤Ï¡¢¤½¤ÎÀþ¤Ï¤½¤Î x ºÂɸ¤¬Ãæ¿´¤Ë¤Ê¤ë¤è¤¦¤Ë±äŤµ¤ì¤Þ ¤¹¡£ÎÙ¤ê¹ç¤¦ÅÀƱ»Î¤Î¿åÊ¿Àþ¤Îü¤Ï¡¢¤½¤Îξ¼Ô¤ÎÊ¿¶ÑÃͤΤȤ³¤í¤Ç¤Î±ôľÀþ¡¢ ¤¹¤Ê¤ï¤Á ((x1+x2)/2,y1) ¤«¤é ((x1+x2)/2,y2) ¤ÎÀþʬ¤Ç·ë¤Ð¤ì¤Þ¤¹¡£ ÆþÎÏÎó¤Î¾ò·ï¤Ï¡¢lines ¤ä points ¤ËÂФ¹¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¡£

autoscale ¤¬Í­¸ú¤Ç¤¢¤ë¾ì¹ç¡¢x ¤ÎÈϰϤϡ¢¤½¤Î±äŤµ¤ì¤¿¿åÊ¿Àþ¤ÎÈÏ°Ï¤Ç ¤Ï¤Ê¤¯¡¢¥Ç¡¼¥¿ÅÀ¤ÎÈϰϤ¬ÁªÂò¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ã¼¤ÎÅÀ¤Ë´Ø¤·¤Æ¤Ï¤½¤Î¿åÊ¿ Àþ¤ÏȾʬ¤·¤«ÉÁ¤«¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ °Ê²¼¤â»²¾È steps ¥Ç¥â¡£

49 ²¹ÅÙʬÉÛ¿Þ (heatmaps)

gnuplot ¤Î¤¤¤¯¤Ä¤«¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ç²¹ÅÙʬÉÛ¿Þ (heatmaps) ¤òºî¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£¤É¤Î¥¹¥¿¥¤¥ë¤ò»È¤¦¤«¤Ï¡¢¥Ç¡¼¥¿¤Î·¿¤Ç·è¤Þ¤ê¤Þ¤¹¡£

Image figure_heatmap
¥Ô¥¯¥»¥ë¥Ù¡¼¥¹¤Î²¹ÅÙʬÉۿޤϡ¢¤¹¤Ù¤ÆʬÉÛ¿ÞÆâ¤Î³Æ¥Ô¥¯¥»¥ë¤¬´°Á´¤Ë°ì¤Ä¤Î ¸µ¤Î¥Ç¡¼¥¿ÃͤËÂбþ¤¹¤ë¤È¤¤¤¦ÆÃÀ­¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥Ô¥¯¥»¥ë¥Ù¡¼¥¹¤Î²èÁü¥¹¥¿¥¤¥ë¤Ï¡¢¥Ç¡¼¥¿Ãͤ¬µ¬Â§Åª¤ÊĹÊý·Á³Ê»Ò¤Ç¤¢¤ë¤³¤È ¤òÍ׵ᤷ¤Þ¤¹¡£°Ê²¼»²¾È: with image (52)¡£¤·¤«¤·¡¢³Ê»ÒÃͤη礱¤ò½èÍý¤¹¤ë¤³ ¤È¤Ï²Äǽ¤Ç¤¹¤· (°Ê²¼»²¾È: sparse (115.1.1.3))¡¢³Ê»Ò¤Î°ìÉô¤òɽ¼¨¤«¤é¥Þ¥¹¥¯¤·¤Æ¾Ã ¤·¤Æ¤·¤Þ¤¦¤³¤È¤â²Äǽ¤Ç¤¹ (°Ê²¼»²¾È: masking (57))¡£³Ê»ÒÍ×ÁǤ¬¤½¤ì¤Û¤É¿¤¯ ¤Ê¤¤¾ì¹ç¤Ï¡¢³ÆĹÊý·ÁÍ×ÁǤòÊÌ¡¹¤ËÅÉ¤Ã¤Æ (with image pixels)¡¢Ê¿³ê²½¤ä Èó²ÄµÕ°µ½Ì¤¬ ·ë²Ì¤Î²èÁü ("image")¤ËŬÍѤµ¤ì¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤³¤È¤ÏÄ̾ï¤Ï ¤¤¤¤¤Ç¤·¤ç¤¦¡£

Image figure_sector_heatmap
¥Ô¥¯¥»¥ë¥Ù¡¼¥¹²¹ÅÙʬÉۿޤβèÁü¤ÈƱÅù¤Î¶Ë·Á¤Î¤â¤Î¤Ï¡¢2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë sectors ¤ÇÀ¸À®¤Ç¤­¤Þ¤¹¡£³ÆÆþÎÏÅÀ¤Ï¡¢¥Ô¥¯¥»¥ë¤ÈƱÅù¤Î¶ËºÂɸ³Ê»Ò¾å¤Î°ì ¤Ä¤Î´Ä¾õ¤ÎÀðÊҤ˴°Á´¤ËÂбþ¤·¤Þ¤¹¡£°Ê²¼¤ËÀâÌÀ¤¹¤ë¶ËºÂɸ³Ê»ÒÌ̤Υª¥×¥·¥ç ¥ó¤È¤Ï°ã¤¤¡¢³Ê»Ò¤Î¸Ä¡¹¤ÎÀðÊÒ¤ÏǤ°Õ¸ÄÄ󶡤Ǥ­¤Þ¤¹¡£¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò¡¢ ¶ËºÂɸ¥°¥é¥Õ¡¢¤¢¤ë¤¤¤Ïľ¸òºÂɸ¥°¥é¥Õ¤ÎǤ°Õ¤Î¾ì½ê¤Ë¡¢¶ËÀðÊÒ¤òÃÖ¤¯¤è¤¦¤Ë »È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤³¤Î¿Þ¤Ï¡¢Ä¾¸òºÂɸ¥°¥é¥Õ¾å¤Ç¡¢²¹ÅÙʬÉۿޤζ˷Á¤Î 2 ¤Ä¤ÎȾʬ¤ò¡¢¸¶ÅÀ¤ò¶´¤ó¤Ç¡Þ¦¤xÎ¥¤ì¤¿¾ì½ê¤ËÃÖ¤­Ä¾¤·¤¿¤â¤Î¤ò¼¨¤·¤Þ¤¹¡£

Image figure_mask
¥Ç¡¼¥¿ÅÀ¤¬µ¬Â§Åª¤ÊĹÊý·Á³Ê»Ò¤ò¹½À®¤·¤Ê¤¤¾ì¹ç¤Ï¡¢Êä´Ö¤ä¥¹¥×¥é¥¤¥ó¤ò»È¤Ã ¤Æ³Ê»Ò¶ÊÌ̤ËÅö¤Æ¤Ï¤á¤ë¤³¤È¤¬¤è¤¯¹Ô¤ï¤ì¤Þ¤¹¡£Â¾¤Ë¤Ï¡¢ÅÀ¤ÎÌ©Åٴؿô¤ò³Ê»Ò Ê¿Ì̤ä³ê¤é¤«¤Ê¶ÊÌ̤˼ÌÁü¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set dgrid3d (112.25)¡£ ¤½¤Î³Ê»Ò¶ÊÌ̤ϡ¢¤½¤Î¸å pm3d ¶ÊÌ̤Ȥ·¤ÆÉÁ²è¤Ç¤­¤Þ¤¹ (Îã¤Ï°Ê²¼»²¾È: masking (57))¡£¤³¤Î¾ì¹ç¡¢²¹ÅÙʬÉÛ¿Þ¾å¤ÎÅÀ¤ÈÆþÎÏÅÀ¤È¤Î 1 ÂÐ 1 Âбþ¤ÏÊÝ»ý¤µ ¤ì¤Þ¤»¤ó¡£¤¹¤Ê¤ï¤Á¡¢²¹ÅÙʬÉÛɽ¸½¤ÎÂÅÅöÀ­¤Ï¡¢³Ê»Ò¶á»÷¤ÈƱÄøÅ٤˲᤮¤Þ¤» ¤ó¡£¥Ç¥â¥³¥ì¥¯¥·¥ç¥ó¤Ë¡¢ÅÀ½¸¹ç¤«¤é 2 ¼¡¸µ²¹ÅÙʬÉÛ¿Þ¤òÀ¸À®¤¹¤ëÎ㤬¤¢¤ê ¤Þ¤¹¡£ heatmap_points.dem

Image figure_polar_grid
¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë gnuplot ¤¬ –enable-polar-grid ¥ª¥×¥·¥ç¥óÉÕ¤­¤Ç¥Ó¥ë¥É ¤µ¤ì¤¿¾ì¹ç¡¢¶ËºÂɸ¥Ç¡¼¥¿ÅÀ¤ò¡¢2 ¼¡¸µ¶ËºÂɸ²¹ÅÙʬÉÛ¿Þ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È¤¨¡¢ ³Æ "¥Ô¥¯¥»¥ë" ¤Ï»öÁ°¤Ë·èÄꤷ¤¿¦È¤È r ¤ÎÈϰϤËÂбþ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set polar grid (112.74.1), with surface (67)¡£¤³¤Îºî¶È¤Ï¡¢2 ¼¡¸µ¶ËºÂɸ¶õ´Ö¤ÇÁàºî¤¹ ¤ë¤³¤È¤ò½ü¤¤¤Æ¡¢ÃúÅÙ set dgird3d ¤È with pm3d ¤ò»ÈÍѤ¹¤ë¤³¤È¤ÎÎà»÷ ¤Ç¤¹¡£

50 Histograms

¥¹¥¿¥¤¥ë histograms ¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍ­¸ú¤Ç¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿¤Î³Æ Îó¤ÎʤӤ«¤éÊ¿¹Ô¤ÊËÀ¥°¥é¥Õ¤òºî¤ê¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Î³ÆÍ×ÁǤϡ¢¤½¤ì ¤Ë´Ø¤¹¤ëÌÜÀ¹¤ê¤ÎÃͤäËÞÎã (key) ¤Î¥¿¥¤¥È¥ë¤¬ÉÕ°¤¹¤ë¤«¤âÃΤì¤Þ¤»¤ó¤¬¡¢ ñ°ì¤ÎÆþÎϥǡ¼¥¿¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹ (Î㤨¤ÐÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 1 ¤Ä¤Î Îó)¡£¸½ºß¤Ï¡¢4 ¼ïÎà¤Î¥Ò¥¹¥È¥°¥é¥à·Á¼°¤Î¥¹¥¿¥¤¥ë¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£


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

¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï set style histogram clustered gap 2 ¤ËÂбþ¤· ¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢ÊÂÎó¤Ë»ØÄꤵ¤ì¤¿¥Ç¡¼¥¿¤ÎÃͤν¸¹ç¤Ï¡¢ÁªÂò¤µ ¤ì¤¿¥Ç¡¼¥¿Îó¤Î¤½¤Î¤½¤ì¤¾¤ì¤Î½øÎó (¹ÔÈÖ¹æ) ¤ËÂбþ¤¹¤ë x ºÂɸ¤Î¾ì½ê¤Ë¡¢ ³Æ¡¹È¢¤Î¥°¥ë¡¼¥×¤È¤·¤Æ¸Ç¤á¤é¤ì¤ÆÃÖ¤«¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢<n> ¸Ä¤Î¥Ç¡¼¥¿Îó¤ò ÊÂÎó¤Ë»ØÄꤷ¤¿¾ì¹ç¡¢ºÇ½é¤Î¸Ç¤Þ¤ê¤Ï x=1 ¤òÃæ¿´¤È¤¹¤ë <n> ¸Ä¤ÎÈ¢¤Î¸Ç¤Þ¤ê ¤«¤é¤Ê¤ê¡¢¤½¤Î³Æ¡¹¤Î¹â¤µ¤Ï¡¢¤½¤Î <n> ¥Ç¡¼¥¿Îó³Æ¡¹¤ÎºÇ½é (1 ¹ÔÌÜ) ¤ÎÃÍ ¤¬¼è¤é¤ì¤Þ¤¹¡£¤½¤Î¸å¤Ë¾¯¤·¶õÇò (gap) ¤¬¶õ¤±¤é¤ì¡¢¼¡¤Ë³Æ¥Ç¡¼¥¿Îó¤Î¼¡ (2 ¹ÔÌÜ) ¤ÎÃͤËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤¬ x=2 ¤òÃæ¿´¤È¤·¤ÆÃÖ¤«¤ì¤Þ¤¹¡£°Ê²¼Æ±ÍÍ ¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶õÇò (gap) Éý¤Î 2 ¤Ï¡¢È¢¤Î¸Ç¤Þ¤êƱ»Î¤Î´Ö¤Î¶õÇò¤¬¡¢È¢ 2 ¤Ä¤ÎÉý¤ËÅù¤·¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£Æ±¤¸Îó¤ËÂФ¹¤ëÈ¢¤ÏÁ´¤ÆƱ¤¸¿§¤Þ¤¿¤ÏƱ ¤¸¥Ñ¥¿¡¼¥ó¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹; ¤·¤«¤·¡¢°Ê²¼¤â»²¾È: histograms colors (50.3)¡£

È¢¤Î¸Ç¤Þ¤ê¤½¤ì¤¾¤ì¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 1 ¤Ä¤Î¹Ô¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£¤½¤Î¤è ¤¦¤ÊÆþÎÏ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤ÎºÇ½é¤Î¹àÌܤ¬¸«½Ð¤· (¥é¥Ù¥ë) ¤Ç¤ë¤³¤È¤ÏÎɤ¯¤¢¤ë ¤³¤È¤Ç¤¹¡£¤½¤ÎÎó¤Ë¤¢¤ë¸«½Ð¤· (¥é¥Ù¥ë) ¤Ï¡¢using ¤Ë xticlabels ¥ª¥× ¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢¤½¤ì¤ËÂбþ¤¹¤ëÈ¢¤Î¸Ç¤Þ¤ê¤Î¿¿²¼¤Î x ¼´¤Ë±è¤Ã¤¿¤È ¤³¤í¤ËÃÖ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

errorbars ¥¹¥¿¥¤¥ë ¤Ï¡¢³Æ¥¨¥ó¥È¥ê¤ËÂФ·¤ÆÄɲäÎÆþÎÏÎó¤òɬÍפȤ¹¤ë°Ê ³°¤Ï clustered ¥¹¥¿¥¤¥ë¤Ë¤È¤Æ¤âÎɤ¯»÷¤Æ¤¤¤Þ¤¹¡£ºÇ½é¤ÎÎó¤Ï¡¢ clustered ¥¹¥¿¥¤¥ë¤Î¾ì¹ç¤ÈÁ´¤¯Æ±ÍͤËÈ¢¤Î¹â¤µ (y ¤ÎÃÍ) ¤È¤·¤ÆÊÝ»ý¤µ¤ì ¤Þ¤¹¡£


    2 Îó:       y yerr          # Àþ¤Ï y-yerr ¤«¤é y+err ¤Ø¿­¤Ó¤ë
    3 Îó:       y ymin ymax     # Àþ¤Ï ymin ¤«¤é ymax ¤Ø¿­¤Ó¤ë

¸íº¹Àþ¤Î¸«¤¿Ìܤϡ¢¸½ºß¤Î set errorbars ¤ÎÃÍ¤È <linewidth> ¥ª¥×¥·¥ç¥ó »ØÄê¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

ÀѤ߾夲·¿¤Î¥Ò¥¹¥È¥°¥é¥à¤â 2 ¤Ä¤Î·Á¼°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤é¤Ï ¥³¥Þ¥ó¥É set style histogram {rowstacked|columnstacked} ¤ÇÁªÂò¤Ç¤­¤Þ ¤¹¡£¤³¤ì¤é¤Î¥¹¥¿¥¤¥ë¤Ë¤ª¤¤¤Æ¡¢ÁªÂò¤µ¤ì¤¿Îó¤Î¥Ç¡¼¥¿¤ÎÃͤÏÀѤ߾夲¤é¤ì¤¿ È¢¤È¤·¤Æ½¸¤á¤é¤ì¤Þ¤¹¡£Àµ¤ÎÃͤϡ¢y=0 ¤«¤é¾å¤ÎÊý¤ØÀѤ߾夲¤é¤ì¡¢Éé¤ÎÃÍ¤Ï ²¼¤Ø¸þ¤«¤Ã¤ÆÀѤ߾夲¤é¤ì¤Þ¤¹¡£Àµ¤ÎÃͤÈÉé¤ÎÃͤ¬º®¤¸¤Ã¤Æ¤¤¾ì¹ç¤Ï¡¢¾å¸þ¤­ ¤È²¼¸þ¤­¤ÎξÊý¤ÎÀѤ߾夲¤¬À¸À®¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÀѤ߾夲¥â¡¼¥É¤Ï rowstacked ¤Ç¤¹¡£

¥¹¥¿¥¤¥ë rowstacked ¤Ï¡¢¤Þ¤ººÇ½é¤ËÁªÂò¤µ¤ì¤¿Îó¤Î³Æ¹Ô¤ÎÃͤò x ¼´¤Î¤½ ¤ì¤¾¤ì¤Î°ÌÃÖ¤ËÇÛÃÖ¤·¤Þ¤¹: 1 ¹ÔÌܤÎÃÍ¤Ï x=1 ¤ÎÈ¢¡¢2 ¹ÔÌÜ¤Î¤Ï x=2¡¢°Ê²¼ ƱÍͤȤʤê¤Þ¤¹¡£2 ÈÖÌܰʹߤËÁªÂò¤µ¤ì¤¿Îó¤ËÂбþ¤¹¤ëÈ¢¤Ï¡¢¤½¤ì¤é¤Î¾å¤ËÀÑ ¤ß½Å¤Í¤é¤ì¤Æ¹Ô¤­¤Þ¤¹¡£¤½¤·¤Æ·ë²Ì¤È¤·¤Æ¡¢x=1 ¤Ë¤Ç¤­¤ëÈ¢¤ÎÀѤ߽Ťͤϡ¢³Æ Îó¤ÎºÇ½é¤ÎÃÍ (1 ¹ÔÌܤÎÃÍ) ¤«¤é¤Ê¤ê¡¢x=2 ¤ÎÈ¢¤ÎÀѤ߽ŤͤϳÆÎó¤Î 2 ¹ÔÌÜ ¤ÎÃÍ¡¢¤Ê¤É¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±¤¸Îó¤ËÂФ¹¤ëÈ¢¤ÏÁ´¤ÆƱ¤¸¿§¤Þ¤¿¤ÏƱ¤¸¥Ñ¥¿ ¡¼¥ó¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style fill (112.86.4))¡£

¥¹¥¿¥¤¥ë columnstacked ¤âƱÍͤǤ¹¤¬¡¢¤³¤Á¤é¤Ï³ÆÈ¢¤ÎÀѤ߾夲¤Ï (³Æ¹Ô ¤Î¥Ç¡¼¥¿¤«¤é¤Ç¤Ï¤Ê¤¯) ³ÆÎó¤Î¥Ç¡¼¥¿¤«¤é¤Ê¤ê¤Þ¤¹¡£ºÇ½é¤Ë»ØÄꤷ¤¿¥Ç¡¼¥¿Îó ¤Î³Æ¹Ô¤Î¥Ç¡¼¥¿¤¬ x=1 ¤ÎÈ¢¤ÎÀѤ߾夲¤òÀ¸À®¤·¡¢2 ÈÖÌܤ˻ØÄꤷ¤¿¥Ç¡¼¥¿Îó ¤Î³Æ¹Ô¤Î¥Ç¡¼¥¿¤¬ x=2 ¤ÎÈ¢¤ÎÀѤ߾夲¡¢¤Ê¤É¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤ ¥ë¤Ç¤Ï¡¢³ÆÈ¢¤Î¿§¤Ï¡¢³Æ¥Ç¡¼¥¿¹àÌܤΠ(ÎóÈÖ¹æ¤Ç¤Ï¤Ê¤¯) ¹ÔÈֹ椫¤é·èÄꤵ¤ì ¤Þ¤¹¡£

È¢¤ÎÉý¤Ï¥³¥Þ¥ó¥É set boxwidth ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ È¢¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë¤Ï¥³¥Þ¥ó¥É set style fill ¤ÇÀßÄê¤Ç¤­¤Þ¤¹¡£

histograms ¤Ï x ¼´¤Ï¾ï¤Ë x1 ¼´¤ò»È¤¤¤Þ¤¹¤¬¡¢y ¼´¤Ë´Ø¤·¤Æ¤Ï y1 ¼´¤« y2 ¼´¤«¤òÁªÂò¤Ç¤­¤Þ¤¹¡£plot Ì¿Î᤬¡¢histograms ¤È¾¤Î¥¹¥¿¥¤¥ë¤ÎÉÁ²è¤ÎξÊý ¤ò´Þ¤à¾ì¹ç¡¢histogram ¤Ç¤Ê¤¤Êý¤Ï¡¢x1 ¼´¤ò»È¤¦¤« x2 ¼´¤ò»È¤¦¤«¤òÁªÂò¤Ç ¤­¤Þ¤¹¡£

°ì¤ÄÄɲäΥ¹¥¿¥¤¥ë¥ª¥×¥·¥ç¥ó set style histogram nokeyseparators ¤Ï¡¢ Ê£¿ô¤Î¥Ò¥¹¥È¥°¥é¥à¤ò´Þ¤à¥°¥é¥Õ¤Ë¤Î¤ßŬÀڤʤâ¤Î¤Ç¤¹¡£¤½¤Î¾ì¹ç¤ÎÄɲÃÀâÌÀ ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: newhistogram (50.1)¡£

Îã:

Image figure_histclust
ÆþÎÏ¥Õ¥¡¥¤¥ë¤Ï¡¢2, 4, 6, ... ¤ÎÎó¤Ë¥Ç¡¼¥¿Ãͤò»ý¤Á¡¢3, 5, 7, ... ¤ÎÎó ¤Ë¸íº¹É¾²Á¤ò»ý¤Ä¤È¤·¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ï¡¢2 ÎóÌÜ¡¢4 ÎóÌܤÎÃͤòÈ¢¤Î¸Ç¤Þ¤ê·¿ (clustered; ¥Ç¥Õ¥©¥ë¥È¥¹¥¿¥¤¥ë) ¤Î¥Ò¥¹¥È¥°¥é¥à¤È¤·¤ÆÉÁ²è¤·¤Þ¤¹¡£¤³¤³¤Ç ¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç·«¤êÊÖ¤· (iteration) ¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢Ç¤°Õ¤Î¸Ä ¿ô¤Î¥Ç¡¼¥¿Îó¤ò°ì¤Ä¤Î¥³¥Þ¥ó¥É¤Ç½èÍý¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: plot for (99.8)¡£


     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)

Image figure_histerrorbar
¥Õ¥¡¥¤¥ë¤¬¡¢³Æ¥Ç¡¼¥¿¤Î¬ÄêÃͤÈÈϰϤξðÊó¤ÎξÊý¤ò´Þ¤ó¤Ç¤¤¤ë¾ì¹ç¡¢ÉÁ²è¤Ë ¸íº¹Àþ¤òÄɲ乤뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¸íº¹Àþ¤ò (y-<error>) ¤«¤é (y+<error>) ¤Ë°ú¤­¡¢¤½¤ÎƬ¤ËÈ¢¤ÈƱ¤¸Éý¤Î¿åÊ¿Àþ¤ò¤Ä¤±¤Þ¤¹¡£¸íº¹Àþ ¤È¸íº¹Àþ¤Îü¤ÎÀþ¤Ï¡¢¹õ¤ÇÀþÉý 2 ¤ÇÉÁ²è¤µ¤ì¤Þ¤¹¡£


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

°Ê²¼¤Ï¡¢Æ±¤¸¥Ç¡¼¥¿¤ò¹ÔËè¤ÎÀѤ߾夲·¿ (rowstacked) ¤Î¥Ò¥¹¥È¥°¥é¥à¤ÇÉÁ²è ¤¹¤ëÊýË¡¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Þ¤Ç¤È¤Ï°ã¤¤¡¢°Ê²¼¤ÎÎã¤ÎÉÁ²è¥³¥Þ¥ó¥É¤Ç¤Ï¡¢ ·«¤êÊÖ¤·¤Î»ÈÍѤǤϤʤ¯¡¢¸ÄÊ̤ËÊÌ¡¹¤ÎÎó¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£


     set style histogram rowstacked
     plot 'file.dat' using 2, ” using 4:xtic(1)

Image figure_histrows
¤³¤ì¤Ï¡¢°ì¤Ä°ì¤Ä¤Î±ôľ¤ÊËÀ¤¬¡¢¥Ç¡¼¥¿¤Î°ì¤Ä¤ÎÎó¤ËÂбþ¤¹¤ëÉÁ²è¤òÀ¸À®¤·¤Þ ¤¹¡£³ÆËÀ¤Ï¡¢2 ¤Ä¤ÎÉôʬ¤ÎÀѤ߾夲¤Î·Á¤Ç¤¢¤ê¡¢¤½¤ì¤¾¤ì¤ÎÉôʬ¤Î¹â¤µ¤¬¡¢¥Ç ¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 2 ÎóÌÜ¤È 4 ÎóÌܤÎÃͤËÂбþ¤·¤Þ¤¹¡£

ºÇ¸å¤Ë°Ê²¼¤Î¥³¥Þ¥ó¥É


     set style histogram columnstacked
     plot 'file.dat' using 2, ” using 4

Image figure_histcols
¤Ï¡¢°ì¤Ä°ì¤Ä¤¬¤½¤ì¤¾¤ì¥Ç¡¼¥¿Îó¤ËÂбþ¤¹¤ë¡¢2 ¤Ä¤Î±ôľ¤ÊÀѤ߽ŤͤÎËÀ¤òÀ¸ À®¤·¤Þ¤¹¡£x=1 ¤Ë¤¢¤ëËÀ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 2 ÎóÌܤγƹԤÎÃͤËÂбþ¤¹¤ë È¢¤«¤é¤Ê¤ê¤Þ¤¹¡£x=2 ¤Ë¤¢¤ëËÀ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î 4 ÎóÌܤγƹԤÎÃͤËÂÐ ±þ¤¹¤ëÈ¢¤«¤é¤Ê¤ê¤Þ¤¹¡£

¤³¤ì¤Ï¡¢gnuplot ¤ÎÄ̾ï¤ÎÆþÎϤνġ¢²£¤Î²ò¼á¤òÆþ¤ì´¹¤¨¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤Î ¤Ç¡¢ËÞÎã¤Î¥¿¥¤¥È¥ë¤ä x ¼´¤ÎÌÜÀ¹¤ê¤Î¸«½Ð¤·¤Î»ØÄê¤âÊѹ¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼¤Î¥³¥á¥ó¥ÈÉôʬ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£


     set style histogram columnstacked
     plot ” u 5:key(1)            # 1 ÎóÌܤòËÞÎ㥿¥¤¥È¥ë¤Ë»ÈÍÑ
     plot ” u 5 title columnhead  #

¤³¤Î 2 ¤Ä¤ÎÎã¤Ï¡¢Á´¤¯Æ±¤¸¥Ç¡¼¥¿ÃͤòÍ¿¤¨¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢°Û¤Ê¤ë½ñ¼°¤Ç¤¢ ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

50.1 Newhistogram

½ñ¼°:


    newhistogram {"<title>" {font "name,size"} {tc <colorspec>}}
                 {lt <linetype>} {fs <fillstyle>} {at <x-coord>}

°ì²ó¤ÎÉÁ²è¤Ë 2 ¤Ä°Ê¾å¤Î¥Ò¥¹¥È¥°¥é¥à¤ÎÁȤòºî¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤³¤Î¾ì¹ç ¥³¥Þ¥ó¥É newhistogram ¤ò»È¤¦¤³¤È¤Ç¡¢¤½¤ì¤é¤ò¶¯À©Åª¤ËʬΥ¤·¡¢¤Þ¤¿¤½¤ì ¤¾¤ì¤Î¥é¥Ù¥ë¤òʬΥ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Îã:


     set style histogram  cluster
     plot newhistogram "Set A", 'a' using 1, ” using 2, ” using 3, \
          newhistogram "Set B", 'b' using 1, ” using 2, ” using 3

¥é¥Ù¥ë "Set A" ¤È "Set B" ¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥Ò¥¹¥È¥°¥é¥à¤ÎÁȤβ¼¡¢x ¼´¤ÎÁ´ ¤Æ¤Î¥é¥Ù¥ë¤Î²¼¤Î°ÌÃ֤˸½¤ï¤ì¤Þ¤¹¡£

¥³¥Þ¥ó¥É newhistogram ¤Ï¡¢¥Ò¥¹¥È¥°¥é¥à¤Î¿§ÉÕ¤±¤ò¶¯À©Åª¤Ë»ØÄꤷ¤¿¿§ (linetype) ¤Ç»Ï¤á¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿§¤ÎÈÖ¹æ¤Ï¥Ò¥¹¥È¥° ¥é¥à¤Î¶­³¦¤ò¤Þ¤¿¤¤¤Ç¤µ¤¨¤âϢ³Ū¤ËÁý²Ã¤·Â³¤±¤Þ¤¹¡£¼¡¤ÎÎã¤Ï¡¢Ê£¿ô¤Î¥Ò¥¹ ¥È¥°¥é¥à¤ËƱ¤¸¿§ÉÕ¤±¤ò»Ü¤·¤Þ¤¹¡£


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

ƱÍͤˡ¢¼¡¤Î¥Ò¥¹¥È¥°¥é¥à¤ò»ØÄꤷ¤¿ fillstyle ¤Ç»Ï¤á¤µ¤»¤ë¤³¤È¤¬²Äǽ¤Ç ¤¹¡£¤½¤Î fillstyle ¤ò pattern ¤Ë¥»¥Ã¥È¤·¤¿¾ì¹ç¡¢ÅɤêÄÙ¤·¤Ë»ÈÍѤµ¤ì¤ë ¥Ñ¥¿¡¼¥óÈÖ¹æ¤Ï¼«Æ°Åª¤ËÁý²Ã¤µ¤ì¤Æ¤¤¤­¤Þ¤¹¡£

¿·¤·¤¤¥Ò¥¹¥È¥é¥à¤Î³«»Ï¤Ï¡¢Ä̾ï¤ÏËÞÎã (key) ¤Ë¶õ¤Î¥¨¥ó¥È¥ê¤òÄɲä·¡¢¤½ ¤ì¤Ë¤è¤ê¤½¤Î¥Ò¥¹¥È¥°¥é¥àÍ×ÁǤν¸¹ç¤Î¥¿¥¤¥È¥ë¤Ï¡¢¤½¤ì°ÊÁ°¤Î¥Ò¥¹¥È¥°¥é¥à ¤Î¤â¤Î¤ÈʬΥ¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¤³¤Î¶õ¹Ô¤Ï¡¢¤½¤ÎÍ×ÁǤ¬¸Ä¡¹¤Î¥¿ ¥¤¥È¥ë¤ò»ý¤¿¤Ê¤¤¾ì¹ç¤Ï˾¤Þ¤·¤¤¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¤½¤Î¥¹¥¿¥¤¥ë ¤ò set style histogram nokeyseparators ¤ÈÊѹ¹¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î¶õ¹Ô¤Î ½ÐÎϤòÍÞÀ©¤Ç¤­¤Þ¤¹¡£

Image figure_newhist
¥ª¥×¥·¥ç¥ó at <x-coord> ¤Ï¡¢¤½¤Î¸å¤Î¥Ò¥¹¥È¥°¥é¥à¤Î x ºÂɸ¤Î°ÌÃÖ¤ò <x-coord> ¤ËÀßÄꤷ¤Þ¤¹¡£Îã:


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

¤³¤Î¾ì¹ç¡¢2 ¤ÄÌܤΥҥ¹¥È¥°¥é¥à¤Î°ÌÃÖ¤Ï x=8 ¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£

50.2 Ê£¿ô¤ÎÎó¤ËÅϤ뼫ưŪ¤Ê·«¤êÊÖ¤· (automated)

°ì¤Ä¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¤¿¤¯¤µ¤ó¤ÎÎ󤫤顢°ì¤Ä¤Î¥Ò¥¹¥È¥°¥é¥à¤òÀ¸À®¤·¤¿¤¤ ¾ì¹ç¡¢plot ¤Î·«¤êÊÖ¤· (iteration) µ¡Ç½¤ò»È¤¦¤ÈÊØÍø¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: plot for (99.8)¡£Î㤨¤Ð¡¢3 ÎóÌܤ«¤é 8 ÎóÌܤޤǤΥǡ¼¥¿¤òÀѤ߾夲¤¿·Á¤Î¥Ò¥¹ ¥È¥°¥é¥à¤òÀ¸À®¤¹¤ëÎã:


     set style histogram columnstacked
     plot for [i=3:8] "datafile" using i title columnhead

50.3 ¥Ò¥¹¥È¥°¥é¥à¤Î¿§¤Î³ä¤êÅö¤Æ (histogram color assignments)

gnuplot ¤Ï¡¢¥Ò¥¹¥È¥°¥é¥àÆâ¤Î³ÆÍ×ÁǤÎÈ¢¤Ë¼«Æ°Åª¤Ë¿§¤ò³ä¤êÅö¤Æ¤Þ¤¹¤¬¡¢Æ± Ãͤʥǡ¼¥¿¤Ë¤Ï¡¢¤½¤ì¤é¤¬¥Ò¥¹¥È¥°¥é¥à¤Î¹Ô¡¢¤Þ¤¿¤ÏÎó¤Ë¤É¤³¤Ë¸½¤ì¤¿¤È¤·¤Æ ¤â¼óÈø°ì´Ó¤·¤¿¿§¤òÊÝ»ý¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¿§¤Ï¡¢Ï¢Â³¤¹¤ëÀþ¼ï (linetype) ¤Î¡¢¤Þ¤À»ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¼¡¤ÎÀþ¼ï¡¢¤Þ¤¿¤Ï newhistogram Ì¿Îá¤ÎÄó¼¨¤Ë¤è ¤Ã¤Æ½é´ü²½¤µ¤ì¤ëºÇ½é¤ÎÀþ¼ï¤Î¤¤¤º¤ì¤«¤«¤é»Ï¤Þ¤ë¤â¤Î¤¬»È¤ï¤ì¤Þ¤¹¡£

¤³¤Î»ÅÁȤߤϡ¢¥Ç¡¼¥¿¥½¡¼¥¹¤¬¿¿¤ËÊÂÎó¤Ç¤Ï¤Ê¤¤ (¤¹¤Ê¤ï¤Á¡¢¤¤¤¯¤Ä¤«¤Î¥Õ¥¡ ¥¤¥ë¤Î¥Ç¡¼¥¿¤¬ÉÔ´°Á´) ¤¿¤á¤Ë¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤Þ¤¿¤Ï¡¢´ðËÜ¿§¤Î¸÷ ÅÙ¤äºÌÅÙ¤òÊѤ¨¤ë¤³¤È¤Ë¤è¤ê»ë³Ð²½¤¹¤ë¤¿¤á¤Î¥Ç¡¼¥¿¤ÎÄɲðÀ­¤òÍ¿¤¨¤¿¤¤¤« ¤â¤·¤ì¤Þ¤»¤ó¡£¼«Æ°Åª¤Ê¿§¤Î³ä¤êÅö¤Æ¤ÎÂå¤ï¤ê¤Ë¡¢³Æ¥Ç¡¼¥¿ÍѤÎÌÀ¼¨Åª¤Ê¿§¤Î Ãͤò¡¢2 ÈÖÌܤΠusing Îó¤Ç¡¢linecolor variable ¤« rgb variable ¤Î »ÅÁȤߤˤè¤Ã¤ÆÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£¤¢¤Ê¤¿¤Î¥Ç ¡¼¥¿¤Î¥ì¥¤¥¢¥¦¥È¤Ë¤è¤Ã¤Æ¡¢¿§¤Î¥«¥Æ¥´¥ê¤Ï¡¢¹Ô¤Î¥Ø¥Ã¥À¤«¡¢Îó¤Î¥Ø¥Ã¥À¤«°ì ¤Ä¤Î¥Ç¡¼¥¿Îó¤Ç¤¢¤ê¤¨¤Þ¤¹¡£Â¿Ê¬¡¢ËÞÎã (key) ¤Î¥µ¥ó¥×¥ë¤Î¿§¤Ï¡¢¤½¤ì¤Ë¹ç ¤¦¤è¤¦¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ëɬÍפ¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (°Ê²¼»²¾È: keyentry (112.39.3))¡£

Îã: file_001.dat ¤«¤é file_008.dat ¤Ï¡¢1 ÎóÌܤϥ«¥Æ¥´¥ê¼±Ê̻ҤΠA, B, C, ... ¤Ç¡¢2 ÎóÌܤ¬¥Ç¡¼¥¿ÃͤˤʤäƤ¤¤Þ¤¹¡£¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ù¤Æ¤Î ¥«¥Æ¥´¥ê¤ËÂФ¹¤ë¹Ô¤ò»ý¤Ã¤Æ¤¤¤ë¤È¤Ï¸Â¤é¤º¡¢¤è¤Ã¤Æ´°Á´¤ÊÊÂÎó¥Ç¡¼¥¿·²¤Ç¤Ï ¤¢¤ê¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¡¢gnuplot ¤Ï¡¢´Ö°ã¤Ã¤Æ³Æ¥Õ¥¡¥¤¥ë¤Î N ¹ÔÌܤÎÃͤËƱ ¤¸¿§¤ò³ä¤êÅö¤Æ¤è¤¦¤È¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤½¤ÎÂå¤ï¤ê¤Ë¡¢1 ÎóÌܤΥ«¥Æ¥´¥ê¤Ë´ð ¤Å¤¤¤¿¿§¤ò³ä¤êÅö¤Æ¤ëÎã¤Ç¤¹¡£


    file(i) = sprintf("file_%03d.dat",i)
    array Category = ["A", "B", "C", "D", "E", "F"]
    color(c) = index(Category, strcol(c))
    set style data histogram
    plot for [i=1:8] file(i) using 2:(color(1)) linecolor variable

¤µ¤é¤Ë key ¤Î¥«¥¹¥¿¥Þ¥¤¥º¤ÎÀ¸À®¤â´Þ¤à´°Á´¤ÊÎ㤬¡¢¥Ç¥â¤ÎÃæ¤Î histogram_colors.dem

¤Ë¤¢¤ê¤Þ¤¹¡£

51 Hsteps

2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë with hsteps ¤Ï¡¢³Æ¥Ç¡¼¥¿ÅÀ¤ËÂФ·°ì¤Ä¤Î¿åÊ¿Àþʬ ("step" (ÃÊ)) ¤òÉÁ²è¤·¤Þ¤¹¡£¤³¤ÎÃʤϡ¢¥Ç¡¼¥¿ÅÀ¤Î x ºÂɸ¤Îº¸Â¦¡¢¤¢¤ë ¤¤¤Ï±¦Â¦¡¢¤¢¤ë¤¤¤Ïξ¦¤Ø±ä¤Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Äɲå­¡¼¥ï¡¼¥É¤Ç¡¢ÎÙÀܤ¹¤ëÃʤÈÀܳ¤¹¤ëÀþ¤ä¡¢Ãʤȥ١¼¥¹¥é¥¤¥ó¤È¤Ê¤ë y ¤ÎÃͤȤδ֤òÅɤêÄÙ¤¹¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤òÀ©¸æ¤·¤Þ¤¹¡£

½ñ¼°:


    plot <data> with hsteps
                        {forward|backward}
                        {baseline|pillars|link|nolink}
                        {{above|below} y=<baseline>}
                        {offset <y-offset>}


    2 Îó:  x  y
    3 Îó:  x  y  width

¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï 2 Îó¤« 3 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹¡£¤µ¤é¤ËÆþÎÏÎó¤òÄɲà ¤¹¤ë¤È¡¢¤½¤ì¤Ï²ÄÊÑÀþ¿§¤äÅɤêÄÙ¤·¿§¤Î¾ðÊó¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹ (°Ê²¼»²¾È: rgbcolor variable (20.1.4))¡£ÆþÎϥǡ¼¥¿¤Î x ¤ÎÃͤϡ¢Ã±Ä´¤Ç¤¢¤ë¤È²¾Äꤷ¤Þ¤¹¡£

³ÆÃʤÎÉý¤ò 3 ÎóÌܤÎÆþÎÏÎó¤È¤·¤ÆÌÀ¼¨Åª¤Ë¤ÏÍ¿¤¨¤Ê¤«¤Ã¤¿¾ì¹ç¡¢³ÆÀþʬ¤ÎÉý ¤Ï¡¢ÎÙÀܤ¹¤ë¿åÊ¿Àþʬ¤ÈÀÜ¿¨¤¹¤ë¤è¤¦¤Ë·×»»¤·¤Þ¤¹¡£3 ÎóÌܤ¬Éé¤ÎÃͤξì¹ç¤Ï Á´Éý¤ÎÃʤÎÍ×µá¤È¤·¤Æ½èÍý¤·¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É forward, backward ¤Ï¡¢»ØÄꤷ¤¿ x ºÂɸ¤«¤é¿åÊ¿Àþʬ¤ò±äĹ ¤¹¤ëÊý¸þ¤ò»ØÄꤹ¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£¤É¤Á¤é¤â»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¿åÊ¿Àþʬ¤ÏÍ¿ ¤¨¤é¤ì¤¿ x ¤ÎÃͤ«¤éξ¦¤Ø¡¢ÎÙÀܤ¹¤ë¼¡¤ÎÅÀ¤Î x ¤ÎÃͤȤÎÃæÅÀ¤Þ¤Ç±äŤ·¤Þ ¤¹¡£¤·¤«¤·¡¢»ÏÅÀ¤È½ªÅÀ¤Ç¤Ï¡¢Âбþ¤¹¤ë³°Â¦¤ÎÎÙÀÜÅÀ¤¬¤Ê¤¤¤Î¤Ç¡¢¿åÊ¿Àþʬ¤Ï Æ⦤ÎÎÙÀÜÅÀ¤È¤Îµ÷Î¥¤òÍøÍѤ·¤Æ³°Â¦¤Ø¤Î±äĹÉý¤ò³°ÁÞ¤·¤Þ¤¹ (°Ê²¼»²¾È: histeps (48), boxes (36))¡£

¥Ç¥Õ¥©¥ë¥È (baseline) ¤È¡¢¤½¤ÎÊѼï¤Î pillar ¤Ï¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤È¤Ê¤ë y ¤ÎÃͤò»ÈÍѤ·¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤Ï y=0 ¤È¤Ê¤ê¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤¬ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢¥Ù¡¼¥¹ ¥é¥¤¥ó¤ÏÅɤêÄÙ¤·Îΰè¤Î°ì¤Ä¤Î¶­³¦¤òÄê¤á¤ë¤³¤È¤Ë¤â¤Ê¤ê¤Þ¤¹¡£ 4 ¤Ä¤ÎÊѼ郎ÍøÍѲÄǽ¤Ç¤¹¡£

Image figure_hsteps_baseline
baseline (¥Ç¥Õ¥©¥ë¥È): x Êý¸þ¤ËÎÙÀܤ¹¤ëÃʤȤδ֤˷ä´Ö¤¬¤Ê¤¤¾ì¹ç¡¢¤½ ¤ì¤é¤ò¿âľÀþʬ¤ÇÀܳ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¹¥¿¥¤¥ë steps, histeps, fsteps ¤Î¤è¤¦¤Ê¶ÊÀþ¤òÀ¸À®¤·¤Þ¤¹¡£Ãʤδ֤˷ä´Ö¤¬¤¢¤ë¾ì¹ç¡¢Ä̾ï¤ÏÅÀ¤Î ·ä´Ö¤è¤ê¤âÃʤÎÉý¤¬¾®¤µ¤¤¤Î¤Ç¡¢¤½¤ì¤é¤òÀܳ¤¹¤ëÀþ¤Ï°ìö¥Ù¡¼¥¹¥é¥¤¥ó¤Þ¤Ç Íî¤È¤·¡¢¤½¤·¤Æ¤½¤Î¾å¤ò¿Ê¤ó¤Ç¤«¤éºÆ¤Ó¾å¤Ë¾å¤¬¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢Ä¹Êý·Á¥Ñ¥ë ¥¹¤ÎÎó¤òÀ¸À®¤·¤Þ¤¹¡£


    set xzeroaxis
    plot $data using 1:2 with hsteps
    plot $data using 1:2:(0.5) with hsteps

Image figure_hsteps_pillar
pillar: ³ÆÃʤÎü¤Ç¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤Ø¤Î¿âľÀþ¤òÉÁ¤­¤Þ¤¹¡£¥Ù¡¼¥¹¥é¥¤¥ó¾å ¤Ë¤Ï¿åÊ¿Àþʬ¤ò°ìÀÚÉÁ¤«¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£


    plot $data using 1:2       with hsteps pillar
    plot $data using 1:2:(0.5) with hsteps pillar
    plot $data using 1:2:(0.5) \
               with hsteps pillar above fc "blue", \
         $data using 1:2:(0.5) \
               with hsteps pillar below fc "red"








Image figure_hsteps_nolink
nolink: ÎÙÀܤ¹¤ëÃʤδ֤ÎÀþ¤Ï²¿¤âÉÁ¤­¤Þ¤»¤ó¡£¤³¤ÎÊѼï¤ËÂФ·¤Æ¤Ï¡¢¥Ù¡¼ ¥¹¥é¥¤¥ó¤ÈÅɤêÄÙ¤·¤Î°À­¤È¤Ï²¿¤Î´ØÏ¢¤â¤¢¤ê¤Þ¤»¤ó¡£


   plot $data using 1:2 with hsteps nolink, \
        $data using 1:2 with hsteps nolink forward, \
        $data using 1:2 with hsteps nolink backward, \
        $data using 1:2 with points pt "|"











Image figure_hsteps_link
link: ÎÙÀܤ¹¤ëÃʤò¡¢°ìËܤο¿¤Ãľ¤°¤ÊÀþʬ¤ÇÀܳ¤·¤Þ¤¹¡£ÃʤÎÉý¤Ë¤è¤Ã¤Æ ¤Ï¡¢¤½¤ÎÀþ¤Ï¿âľ¤Ç¤Ê¤¯¤à¤·¤í¼Ð¤á¤Ë¤Ê¤ê¤Þ¤¹¡£

Îã: ÊѼï link ¤òÊѼï pillar ¤Ë½Å¤Í¤ë¤³¤È¤Ç¡¢¥«¥Æ¥´¥ê¤Î¶­³¦Æ±»Î¤òÀþ ¤ÇÀܳ¤¹¤ë¤è¤¦¤ÊÀѤ߾夲·¿¥Ò¥¹¥È¥°¥é¥à¥°¥é¥Õ¤òÀ¸À®¤Ç¤­¤Þ¤¹¡£


    set style line 11 lw 2 lc "gray" dt "."
    set style line 12 lw 2 lc variable
    plot $data using 1:3:(0.5)   ls 11 with hsteps link, \
         $data using 1:3:(0.5):1 ls 12 with hsteps pillar \
           fs solid 0.7 border, \
         $data using 1:4:(0.5)   ls 11 with hsteps link, \
         $data using 1:4:(0.5):1 ls 12 with hsteps pillar \
           fs transparent pattern 1 border

51.1 Offset

Image figure_hsteps_offset
¥ª¥Õ¥»¥Ã¥ÈÃͤϡ¢¥Ç¡¼¥¿ÅÀ¤½¤ì¼«¿È (2 ÎóÌÜ) ¤È¥°¥é¥Õ¤Ë¸½¤ì¤ë¥Ù¡¼¥¹¥é¥¤¥ó ¤ÎξÊý¤Ë y ¤ÎÃͤËÁýʬ¤òÄɲ乤뤳¤È¤Ç¡¢with hsteps ¤ÎǤ°Õ¤ÎÊѼï¤ò½¤ Àµ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ÏÀÍý²óÏ©¤Î¥¿¥¤¥ß¥ó¥°¥Á¥ã¡¼¥È¤òÉÁ¤¯¤È¤­¤Ë¡¢¥Ñ¥ë¥¹ÇÈ·Á ¤ò¿âľÊý¸þ¤Ë°ÌÃÖ¹ç¤ï¤»¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£°ìÈ̤ˤϡ¢y ¤ÎÃͤÎÈϰϤò¶¦Í­¤¹ ¤ëÊ£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ÎÀѤ߾夲¥°¥é¥Õ¤Ë¥ª¥Õ¥»¥Ã¥È¤¬ÍøÍѤǤ­¤Þ¤¹¡£


    # bit(k,char) ¤Ï¡¢¥¢¥¹¥­¡¼Ê¸»ú¤Î k bit ¤Î¾õÂ֤˱þ¤¸¤Æ
    # 0 ¤« 1 ¤òÊÖ¤¹´Ø¿ô
    set style fill solid 0.2 border
    plot for [k=1:8] STR using 1:(bit(k,STR[$1])):(0.5) \
         with hsteps fillcolor "black" offset k

51.2 Missing data

ÉÁ²è¥¹¥¿¥¤¥ë hstep ¤Ç¤Ï¡¢¶õ¹Ô¡¢NaN ÃÍ¡¢·ç»¥Ç¡¼¥¿¤Ï°Û¤Ê¤ë°ÕÌ£¤ò»ý¤Á¤Þ ¤¹¡£¥Ç¡¼¥¿¤Ë¶õ¹Ô¤¬¤¢¤ë¾ì¹ç¤Ï¡¢¥Ç¡¼¥¿¤ÎϢ³Îó¤ò¤½¤ÎÅÀ¤Ç¥ê¥»¥Ã¥È¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢with lines ¤Î¾ì¹ç¤Ë¶õ¹Ô¤¬¿·¤·¤¤¶ÊÀþ¤Î³«»Ï¤òÃæÃǤ¹¤ë¤Î¤ÈƱÍÍ ¤Ç¤¹¡£x ¤ÎÃͤ¬ NaN ¤Î¾ì¹ç¡¢¤½¤ì¤Ï¶õ¹Ô¤Î¾ì¹ç¤ÈƱ¤¸½èÍý¤ò¹Ô¤¤¤Þ¤¹¡£x ¤Î Ãͤ¬Í­¸ú¤Ç¡¢y ¤ÎÃͤ¬ NaN ¤Î¾ì¹ç¤Ï¡¢¤½¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï¿åÊ¿Àþ¤ÏÉÁ¤­¤Þ¤»¤ó ¤¬¡¢x ¤ÎÃͤϡ¢ÃʤÎÉý¤Îɾ²Á¤ÇɬÍפʾì¹ç¤Ë»ÈÍѤ·¤Þ¤¹¡£

52 Image

ÉÁ²è¥¹¥¿¥¤¥ë image, rgbimage, rgbalpha ¤Ï¡¢¤¤¤º¤ì¤â°ìÍͤËɸËÜÅÀ ¤ò¼è¤Ã¤¿³Ê»Ò¾õ¥Ç¡¼¥¿Ãͤò¡¢2 ¼¡¸µ¡¢¤Þ¤¿¤Ï 3 ¼¡¸µÃæ¤Î¤¢¤ëÊ¿Ì̾å¤Ë¼Í±Æ¤· ¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¤Ï¡¢´û¤Ë¤¢¤ë¥Ó¥Ã¥Þ¥Ã¥×²èÁü¥Õ¥¡¥¤¥ë (PNG ¤Î¤è¤¦¤Êɸ½àŪ ¤Ê¥Õ¥©¡¼¥Þ¥Ã¥È¤«¤éÊÑ´¹¤·¤¿¤â¤Î¤Ç¤è¤¤) ¤«¡¢Ã±½ã¤Ê¿ôÃÍÇÛÎó¤Ç¤¹¡£ ¤³¤ì¤é¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢²¹ÅÙʬÉÛ¿Þ (heatmap) ¤òºî¤ë¤Î¤Ë¤è¤¯»È¤ï¤ì¤Þ¤¹¡£ ¶ËºÂɸ¤Ç¤Î 2 ¼¡¸µ²¹ÅÙʬÉۿޤˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set polar grid (112.74.1)¡£

Image figure_heatmap
¤³¤Î¿Þ¤Ï¡¢¥¹¥«¥é¡¼ÃͤÎÇÛÎ󤫤鲹ÅÙʬÉÛ¤òÀ¸À®¤·¤¿Îã¤Ç¤¹ (ÌõÃí: ¿Þ¤¬É½¼¨ ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç)¡£¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤ò¡¢³Æ¥¹¥«¥é¡¼Ãͤ«¤éÂбþ¤¹¤ë¥Ô¥¯¥»¥ë¤Î ¿§¤Ø¤Î³ä¤êÅö¤Æ¤Ë»ÈÍѤ·¤Þ¤¹¡£°Ê²¼¤â»²¾È: sparse (115.1.1.3)¡£


     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 figure_rgb3D
ÆþÎÏ 2 ¼¡¸µ²èÁü¤Î³Æ¥Ô¥¯¥»¥ë (¥Ç¡¼¥¿ÅÀ) ¤Ï¡¢ÉÁ²è¥°¥é¥ÕÃæ¤Ç¤ÏĹÊý·Á¡¢¤Þ ¤¿¤ÏÊ¿¹ÔÏ»ÌÌÂΤȤʤê¤Þ¤¹¡£²èÁü¤Î³Æ¥Ç¡¼¥¿ÅÀ¤ÎºÂɸ¤Ï¡¢Ê¿¹ÔÏ»ÌÌÂΤÎÃæ¿´¤ò ·èÄꤷ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢M x N ¸Ä¤Î¥Ç¡¼¥¿½¸¹ç¤Ï M x N ¥Ô¥¯¥»¥ë¤Î²èÁü¤òÀ¸ À®¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢M x N ¸Ä¤Î¥Ç¡¼¥¿½¸¹ç¤¬ (M-1) x (N-1) Í×ÁǤòºîÀ®¤¹¤ë pm3d ¤Î¹½Â¤¤È¤Ï°Û¤Ê¤ê¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê²èÁü¥Ç¡¼¥¿¤Î³Ê»Ò¤ÎÁöººÊý¸þ¤Ï¡¢Äɲà ¥­¡¼¥ï¡¼¥É¤Ç¤µ¤é¤ËÀ©¸æ²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: binary keywords flipx (99.2.8.4), keywords center (99.2.8.6), keywords rotate (99.2.8.7)¡£

Image figure_scaled_image
³Æ¥Ô¥¯¥»¥ë¤Î x ¤È y ¤ÎÂ礭¤µ¤ò¼¨¤¹¤³¤È¤Ç¡¢²èÁü¥Ç¡¼¥¿¤ò 2 ¼¡¸µÉÁ²èºÂɸ ·ÏÆâ¤ÎÆÃÄê¤ÎĹÊý·Á¤Ë¼ý¤Þ¤ë¤è¤¦¤Ë¿­½Ì¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: binary keywords dx (99.2.8.3), dy (99.2.8.3)¡£±¦¤Î²èÁü¤òÀ¸À®¤¹¤ë¤Î¤Ë¤Ï¡¢Æ±¤¸ÆþÎϲèÁü¤ò¡¢ ¤½¤ì¤¾¤ì dx, dy, origin ¤ò»ØÄꤷ¤ÆÊ£¿ô²óÇÛÃÖ¤·¤Þ¤·¤¿¡£ÆþÎÏ PNG ²èÁü¤Ç ¤¢¤ë¥Ó¥ë¤Î³¨¤Ï 50x128 ¥Ô¥¯¥»¥ë¤Ç¤¹¡£¹â¤¤¥Ó¥ë¤Ï¡¢dx=0.5 dy=1.5 ¤Ç³ä¤ê Åö¤Æ¤ÆÉÁ²è¤·¡¢Ä㤤¥Ó¥ë¤Ï¡¢dx=0.5 dy=0.35 ¤È¤·¤Æ¤¤¤Þ¤¹ (ÌõÃí: ¿Þ¤¬É½ ¼¨¤µ¤ì¤Æ¤¤¤ë¾ì¹ç)¡£

¥¹¥¿¥¤¥ë image ¤Ï¡¢¥°¥ì¥¤¥¹¥±¡¼¥ë (³¥¿§³¬Ä´)¡¢¤Þ¤¿¤Ï¥«¥é¡¼¥Ñ¥ì¥Ã¥ÈÃÍ ¤ò´Þ¤ó¤Ç¤¤¤ë¥Ô¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ 2 ¼¡¸µÉÁ²è (plot ¥³¥Þ ¥ó¥É) ¤Ç¤Ï 3 Îó¤Î¥Ç¡¼¥¿ (x,y,value) ¤ò¡¢3 ¼¡¸µÉÁ²è (splot ¥³¥Þ¥ó¥É) ¤Ç¤Ï 4 Îó¤Î¥Ç¡¼¥¿ (x,y,z,value) ¤¬É¬Íפˤʤê¤Þ¤¹¡£

¥¹¥¿¥¤¥ë rgbimage ¤Ï¡¢ÀÖ¡¢ÎС¢ÀĤΠ3 ¤Ä¤Î¿§À®Ê¬ (RGB) ¤Çµ­½Ò¤µ¤ì¤¿¥Ô ¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ plot ¤Ç¤Ï 5 ¼¡¸µ¥Ç¡¼¥¿ (x,y,r,g,b) ¤¬¡¢splot ¤Ç¤Ï 6 ¼¡¸µ¥Ç¡¼¥¿ (x,y,z,r,g,b) ¤¬É¬Íפˤʤê¤Þ¤¹¡£ÀÖ¡¢ÎС¢ ÀĤγÆÀ®Ê¬¤Ï [0:255] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢PNG ¤ä JPEG ¥Õ¥¡¥¤¥ë¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë»ÅÁȤߤ˹ç¤Ã¤Æ¤¤¤Þ¤¹ (°Ê²¼ »²¾È: binary filetype (99.2.7))¡£¤·¤«¤·¡¢RGB À®Ê¬¤È¤·¤Æ [0:1] ¤ÎÈϰϤμ¿ôÃÍ ¤ò¼è¤ë»ÅÁȤߤò»ÈÍѤ¹¤ë¤è¤¦¤Ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤âÃæ¤Ë¤Ï¤¢¤ê¤Þ¤¹¡£¤½¤Î¤è¤¦¤Ê ¥Ç¡¼¥¿¤Ç rgbimage ¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¤Ë¤Ï¡¢¤Þ¤º set rgbmax 1.0 ¤È¤· ¤Æ¤¯¤À¤µ¤¤¡£

¥¹¥¿¥¤¥ë rgbalpha ¤Ï¡¢ÀÖ¡¢ÎС¢ÀĤΠRGB À®Ê¬¤Ë²Ã¤¨¤Æ¡¢¥¢¥ë¥Õ¥¡ÃÍ (Æ© ²á¥Ñ¥é¥á¡¼¥¿) ¤Î¾ðÊó¤â´Þ¤ó¤À¥Ô¥¯¥»¥ë¤ÎÆþÎϤò½èÍý¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢plot ¤Ç¤Ï 6 ¼¡¸µ¥Ç¡¼¥¿ (x,y,r,g,b,a) ¤¬¡¢splot ¤Ç¤Ï 7 ¼¡¸µ¥Ç¡¼¥¿ (x,y,z,r,g,b,a) ¤¬É¬Íפˤʤê¤Þ¤¹¡£ÀÖ¡¢ÎС¢ÀÄ¡¢¤ª¤è¤Ó¥¢¥ë¥Õ¥¡¤Î³ÆÀ®Ê¬¤Ï [0:255] ¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£RGBA À®Ê¬¤¬ [0:1] ¤ÎÈϰϤμ¿ôÃÍ ¤Ç¤¢¤ë¥Ç¡¼¥¿¤òÉÁ²è¤¹¤ë¤Ë¤Ï¡¢¤Þ¤º set rgbmax 1.0 ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£

rgbimage ¤« rgbalpha ¤Î¤¤¤º¤ì¤«¤Ç¤ÎÉÁ²è¤Ç¿§Í×ÁÇÍѤ˥ǡ¼¥¿ 1 Îó¤·¤«»ØÄê ¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï¡¢alpha=0 ¤ÏÉÔÆ©ÌÀ¡¢alpha=255 ¤¬´°Á´¤ÊÆ©ÌÀ¤ò°Õ Ì£¤¹¤ë¡¢32 bit ¥Ñ¥Ã¥¯¤Î ARGB ¥Ç¡¼¥¿¤Ç¤¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£¤³¤Î¥¢¥ë¥Õ¥¡ÃÍ ¤Î¸«Êý¤Ï¡¢¥¢¥ë¥Õ¥¡Ãͤ¬Ê̤ÎÎó¤ÇÍ¿¤¨¤é¤ì¤ë¾ì¹ç¤Ï¸Å½­¤¤´·½¬¤Ç¤¹¤¬¡¢¤·¤«¤·¡¢ ¿§¤òÀßÄꤹ¤ëɬÍפΤ¢¤ë¸Ä¡¹¤Î¥³¥Þ¥ó¥ÉÍѤΠARGB ¥Ñ¥Ã¥¯¤Î»ÅÁȤߤˤϹç¤Ã¤Æ ¤¤¤Þ¤¹¡£

52.1 Æ©ÌÀ²½ (transparency)

ÉÁ²è¥¹¥¿¥¤¥ë rgbalpha ¤Ï¡¢ÆþÎϥǡ¼¥¿¤Î³Æ¥Ô¥¯¥»¥ë¤¬ [0:255] ¤ÎÈÏ°ÏÆ⠤Υ¢¥ë¥Õ¥¡Ãͤò»ý¤Ã¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£alpha = 0 ¤Î¥Ô¥¯¥»¥ë¤Ï´°Á´¤ÊÆ© ÌÀ¤Ç¡¢¤½¤Î²¼ (±ü) ¤ÎÉÁ²èÍ×ÁǤòÁ´¤¯ÊѤ¨¤Þ¤»¤ó¡£alpha = 255 ¤Î¥Ô¥¯¥»¥ë¤Ï ´°Á´¤ÊÉÔÆ©ÌÀ¤Ç¤¹¡£¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ï¡¢¤³¤ì¤é 2 ¤Ä¤Îξ¶Ëü¤ÊÃͤò¥µ¥Ý¡¼ ¥È¤·¤Þ¤¹¡£0 < alpha < 255 ¤Î¥Ô¥¯¥»¥ë¤ÏȾƩÌÀ¤Ç¡¢È¾Æ©ÌÀ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤ ¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¤½¤ÎÃͤò 0 ¤« 255 ¤Î¤¤¤º¤ì¤«¤Ë´Ý¤á¤Þ¤¹¡£

52.2 Image pixels

½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢2 ¼¡¸µ¤ÎĹÊý·ÁÎΰèÆâ¤Ç¤Î²èÁü¥Ç¡¼¥¿ÉÁ²è¤Î¡¢¥Ç¥Ð¥¤¥¹ ¤ä¥é¥¤¥Ö¥é¥ê¤Ë°Í¸¤·¤¿ºÇŬ²½¥ë¡¼¥Á¥ó¤ò»ÈÍѤ·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¡¢Ãæ´Ö¥Ô¥¯¥» ¥ëÊ¿³ê²½¤ò¹Ô¤Ã¤¿¤ê¡¢¥¯¥ê¥Ã¥Ô¥ó¥°¤¬¤¦¤Þ¤¯¤Ê¤«¤Ã¤¿¤ê¡¢±ï¤¬·ç¤±¤ë¤Ê¤É¡¢Ë¾ ¤Þ¤·¤¯¤Ê¤¤½ÐÎϤòÀ¸À®¤¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£Îã¤È¤·¤Æ¡¢SVG ²èÁü¥ì¥ó¥À¥ê¥ó¥° »þ¤Î¥¦¥§¥Ö¥Ö¥é¥¦¥¶¤Ë¤è¤ëÊ¿³ê²½¤¬¤¢¤ê¤Þ¤¹¡£ ¥­¡¼¥ï¡¼¥É pixels ¤Ï¡¢²èÁü¤ò 1 ¥Ô¥¯¥»¥ë¤º¤ÄÉÁ²è¤¹¤ë¤è¤¦¤Ê°ìÈÌŪ¤Ê¥³ ¡¼¥É¤ò»ÈÍѤ¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤ÎÉÁ²è¥â¡¼¥É¤Ç¤Ï¡¢ÉÁ²è¤ÏÃÙ ¤¯¡¢Â礭¤Ê½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤·¤Þ¤¹¤¬¡¢¤É¤Î½ÐÎÏ·Á¼°¤Ç¤â¶¦ÄÌŪ¤Ê¸«¤¿Ìܤò ºîÀ®¤·¤Æ¤¯¤ì¤ë¤Þ¤¹¡£¤³¤ì¤Ï¡¢Æä˥ԥ¯¥»¥ë¿ô¤Î¾¯¤Ê¤¤²¹ÅÙʬÉÛ¿Þ (heatmap) ¤Ç¹¥¤Þ¤ì¤ë¤Ç¤·¤ç¤¦¡£ Îã:


     plot 'data' with image pixels

53 Impulses

Image figure_impulses
impulses ¥¹¥¿¥¤¥ë¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤Ï y=0 ¤«¤é³ÆÅÀ¤Î y ¤ÎÃͤؤΡ¢3 ¼¡ ¸µÉÁ²è¤Ç¤Ï z=0 ¤«¤é³ÆÅÀ¤Î z ¤ÎÃͤؤΡ¢¿âľ¤ÊÀþʬ¤òɽ¼¨¤·¤Þ¤¹¡£y ¤ä z ¤ÎÃͤÏÉé¤ÎÃͤǤâ¤è¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¡¼¥¿¤ÎÄɲÃÎó¤ò³Æ¿âľÀþʬ ¤Î¿§¤ÎÀ©¸æ¤ËÍøÍѤǤ­¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤ò 3 ¼¡¸µÉÁ²è¤Ç»ÈÍѤ¹¤ë¾ì¹ç¡¢ÂÀ ¤¤Àþ (linewidth > 1) ¤òÍøÍѤ¹¤ë¤È¤è¤ê¸ú²ÌŪ¤Ç¤·¤ç¤¦¡£¤½¤ì¤Ï 3 ¼¡¸µ¤ÎËÀ ¥°¥é¥Õ¤Ë»÷¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£


    1 Îó:  y
    2 Îó:  x  y     # [x,0] ¤«¤é [x,y] ¤Ø¤ÎÀþ (2D)
    3 Îó:  x  y  z  # [x,y,0] ¤«¤é [x,y,z] ¤Ø¤ÎÀþ (3D)

54 Labels

Image figure_labels1
¥¹¥¿¥¤¥ë labels ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éºÂɸ¤Èʸ»úÎó¤òÆɤ߹þ¤ß¡¢¤½¤Îʸ »úÎó¤ò¤½¤Î 2 ¼¡¸µ¡¢¤Þ¤¿¤Ï 3 ¼¡¸µºÂɸ¤ËÃÖ¤­¤Þ¤¹¡£¤³¤ì¤Ï´ðËÜŪ¤Ë 3 Îó¡¢ ¤Þ¤¿¤Ï 4 Îó¤ÎÆþÎϤòɬÍפȤ·¤Þ¤¹¡£¤µ¤é¤Ë;ʬ¤ÊÆþÎÏÎó¤Ï¡¢Ê¸»úÎó¤Î²óž³Ñ (¥­¡¼¥ï¡¼¥É rotate variable) ¤äʸ»ú¿§ (°Ê²¼»²¾È: textcolor variable (20.1.2)) ¤Î¤è¤¦¤Ê¡¢ÅÀËè¤ËÊÑÆ°¤¹¤ë°À­Ãͤ¬»ØÄꤵ¤ì¤¿¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£


    3 Îó:  x  y  string    # 2 ¼¡¸µÈÇ
    4 Îó:  x  y  z  string # 3 ¼¡¸µÈÇ

¥Õ¥©¥ó¥È¡¢¿§¡¢²óž³Ñ¤ä¤½¤Î¾¤ÎÉÁ²è¥Æ¥­¥¹¥È¤Î°À­¤ÏÄɲ媥ץ·¥ç¥ó¤È¤·¤Æ »ØÄê²Äǽ¤Ç¤¹ (°Ê²¼»²¾È: set label (112.40))¡£¼¡¤ÎÎã¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 1 ÎóÌÜ ¤«¤é¼è¤Ã¤¿»Ô¤Î̾Á°¤«¤éºî¤é¤ì¤ëʸ»úÎó¤ò¡¢4, 5 ÎóÌܤ«¤é¼è¤Ã¤¿ÃÏ¿ÞºÂɸ¤Ë ÉÁ²è¤·¤Þ¤¹¡£¥Õ¥©¥ó¥È¥µ¥¤¥º¤Ï¡¢3 ÎóÌܤÎÃͤ«¤é·×»»¤·¤Æ¤¤¤Æ¡¢¤³¤Î¾ì¹ç¤Ï¤½ ¤ì¤Ï¿Í¸ý¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£


 CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), String)
 plot 'cities.dat' using 5:4:(CityName(stringcolumn(1),$3)) with labels

¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò¡¢¸Ä¡¹¤Î»Ô¤Î̾Á°¤ËÂФ·¤Æ°Û¤Ê¤ë¥µ¥¤¥º¤Ë¹ç¤ï¤»¤Ê¤¯¤Æ¤¤¤¤ ¤Ê¤é¤Ð¡¢¥³¥Þ¥ó¥É¤Ï¤â¤Ã¤È´Êñ¤Ç¤¹:


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

labels ¤Ë hypertext ¤¬¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Îʸ»úÎó¤Ï¥Þ¥¦¥¹¤¬¤½¤ì¤ËÂбþ ¤¹¤ëÅÀ¤Î¾å¤ËÍ褿¤È¤­¤Ë¤À¤±¸½¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: hypertext (112.40.2)¡£¤³¤Î¾ì¹ç ¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤ÎÃÖ¤­¾ì½ê¤È¤·¤Æµ¡Ç½¤¹¤ëÅÀ¤òºî¤ë¤¿¤á¤Ë¤½¤Î¥é¥Ù¥ë¤Î point °À­¤òÍ­¸ú¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:


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

Image figure_labels2
¥¹¥¿¥¤¥ë points ¤Ç¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÅÀ¤Îµ­¹æ¤¬Å¬ÀڤǤʤ¤¡¢¤¢¤ë ¤¤¤Ï½½Ê¬¤Ç¤Ê¤¤¾ì¹ç¡¢¤½¤ÎÂå¤ï¤ê¤È¤·¤Æ¥¹¥¿¥¤¥ë labels ¤ò»È¤¦¤³¤È¤â¤Ç¤­ ¤Þ¤¹¡£Î㤨¤Ð¡¢°Ê²¼¤Ïñ°ìʸ»ú¤È¤·¤ÆÁªÂò¤µ¤ì¤ëÁȤòÄêµÁ¤·¡¢3 ÎóÌܤΥǡ¼¥¿ ÃͤËÂбþ¤¹¤ë¤½¤Î°ì¤Ä¤ò¥°¥é¥Õ¤Î³ÆÅÀ¤Ë³ä¤êÅö¤Æ¤ëÎã¤Ç¤¹ (ÌõÃí: °Ê²¼¤Î¥µ¥ó ¥×¥ë¤Î <UTF-8 ʸ»úÎó> ¤ÎÉôʬ¤Ë¤Ï¡¢¸µ¡¹¡¢´Ý¤ËÃæÅÀµ­¹æ¤ä¢¢¡¢¡Ü¡¢¥È¥é¥ó¥× µ­¹æ¤Ê¤É¤Î UTF-8 ʸ»úÎó¤¬Ê¤ó¤Ç¤¤¤Þ¤¹¤¬¡¢¤³¤ÎÆüËܸìÌõ¤È¤ÏξΩ¤·¤Ê¤¤¤¿ ¤á¼è¤ê½ü¤¤¤Æ¤¤¤Þ¤¹):


 set encoding utf8
 symbol(z) = "<UTF-8 ʸ»úÎó>"[int(z):int(z)]
 splot 'file' using 1:2:(symbol($3)) with labels

°Ê²¼¤Ï¡¢4 ÎóÌܤÎÃͤò²ÄÊÑÃͤβóž³Ñ¤È¤·¡¢5 ÎóÌܤÎÃͤòʸ»ú¿§ ("tc") ¤È¤¹ ¤ë¥é¥Ù¥ë¤Î»ÈÍÑÎã¤Ç¤¹¡£²ÄÊÑÃͤ炙ØÄê¤Ï¡¢¾ï¤Ë using »ØÄê¤ÎºÇ¸å¤ÎÎó¤« ¤é¼è¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£


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

55 Lines

Image figure_lines
lines ¥¹¥¿¥¤¥ë¤ÏÎÙÀܤ¹¤ëÅÀ¤ò¿¿Ä¾¤ÊÀþʬ¤Ç·ë¤Ó¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤â¡¢3 ¼¡¸µÉÁ²è¤Ç¤â»ÈÍѤǤ­¡¢´ðËÜŪ¤Ë¤Ï¡¢1 Îó¤« 2 Îó¤« 3 Î󤫤ÎÆþÎϥǡ¼¥¿¤òɬÍפȤ·¤Þ¤¹¡£ ;ʬ¤ÊÆþÎÏÎó¤Ï¡¢Àþ¤Î¿§¤ÎÊѹ¹¤Ê¤É¤Î¾ðÊó¤¬Ä󶡤µ¤ì¤¿¤â¤Î¤È¤·¤Æ»ÈÍѤµ¤ì¤Þ ¤¹ (°Ê²¼»²¾È: rgbcolor variable (20.1.4))¡£

2 ¼¡¸µ ("using" »ØÄê¤Ê¤·) ¤Î¾ì¹ç


  1 Îó:  y     # ¹ÔÈÖ¹æ¤Ë¤è¤ë°ÅÌۤΠx
  2 Îó:  x y

3 ¼¡¸µ ("using" »ØÄê¤Ê¤·) ¤Î¾ì¹ç


  1 Îó:  z     # x ¤Ï°ÅÌۤιÔÈֹ桢y ¤Ï index ¤«¤é
  3 Îó:  x y z

°Ê²¼¤â»²¾È: linetypes (20), linewidth (112.86.8), linestyle (112.86.8)¡£

56 Linespoints

Image figure_linespoints
linespoints ¥¹¥¿¥¤¥ë (¾Êά·Á lp) ¤Ï¡¢ÎÙÀܤ¹¤ëÅÀ¤ò¿¿¤Ãľ¤°¤ÊÀþʬ¤Ç ·ë¤Ó¡¢¤½¤Î¸å¤ÇºÇ½é¤ËÌá¤Ã¤Æ³ÆÅÀ¤Ë¾®¤µ¤Êµ­¹æ¤òÉÁ¤­¤Þ¤¹¡£ÅÀµ­¹æ¤Ï¡¢ set pointsize ¤Ç·è¤Þ¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÂ礭¤µ¤ÇÉÁ¤­¤Þ¤¹¤¬¡¢plot ¥³¥Þ¥ó¥É ¾å¤ÇÅÀ¤Î¥µ¥¤¥º¤ò»ØÄꤷ¤¿¤ê¡¢¤¢¤ë¤¤¤ÏÆþÎϥǡ¼¥¿¤ÎÄɲÃÎó¤Ç¸ÄÊ̤ÎÅÀ¥µ¥¤¥º ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ÄɲäÎÆþÎÏÎó¤Ï¡¢¸ÄÊ̤ÎÀþ¤Î¿§¤Ê¤É¤Î¾ðÊó¤òÄó¶¡ ¤¹¤ë¤Î¤Ë¤â»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: lines (55), points (60)¡£

¥°¥é¥Õ¤Î¤¹¤Ù¤Æ¤ÎÅÀ¤Ëµ­¹æ¤Î°õ¤ò¤Ä¤±¤ë¤«Èݤ«¤òÀ©¸æ¤¹¤ë 2 ¤Ä¤Î¥­¡¼¥ï¡¼¥É pointinterval (¾Êά·Á pi), pointnumber (¾Êά·Á pn) ¤¬¤¢¤ê¤Þ¤¹¡£

pi N ¤¢¤ë¤¤¤Ï pi -N ¤Ï¡¢N ¸ÄËè¤Ë 1 ¤Ä¤À¤±µ­¹æ¤òÃÖ¤¯¤è¤¦ gnuplot ¤Ë »Ø¼¨¤·¤Þ¤¹¡£Éé¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢µ­¹æ¤Î²¼¤ÎÀþʬ¤ÎÉôʬ¤ò¾Ã¤·¤Þ¤¹¡£¤½¤Î¾Ã ¤¹Éôʬ¤Î¥µ¥¤¥º¤Ï set pointintervalbox ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

pn N ¤¢¤ë¤¤¤Ï pn -N ¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤Î¤¦¤Á N ¸Ä¤À¤±¥é¥Ù¥ëÉÕ¤±¤¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ÅÀ¤Ï¤½¤Î¥Ç¡¼¥¿Á´ÂΤËÅϤäƶÑÅù¤Ê´Ö³Ö¤Ë¼è¤ê¤Þ¤¹¡£ pi ƱÍÍ¡¢Éé¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢µ­¹æ¤Î²¼¤ÎÀþʬ¤ÎÉôʬ¤ò¾Ã¤·¤Þ¤¹¡£

57 ¥Þ¥¹¥­¥ó¥° (masking)

ÉÁ²è¥¹¥¿¥¤¥ë with mask ¤Ï¡¢¥Þ¥¹¥­¥ó¥°Îΰè¤òÄêµÁ¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤³ ¤ì¤Ï¡¢Æ±¤¸ plot, splot ¥³¥Þ¥ó¥É¾å¤Ç¸å¤Ç»ØÄꤷ¤¿ pm3d ¶ÊÌ̤ä²èÁü¤Ë ŬÍѤǤ­¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¤Ï¡¢1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¿³Ñ·Á¤ÎĺÅÀ¤òÄêµÁ¤¹¤ë [x,y] ºÂɸÎ󡢤ޤ¿¤Ï [x,y,z] ºÂɸÎó¤È¤·¤Æ²ò¼á¤·¤Þ¤¹¡£ÉÁ²è¥¹¥¿¥¤¥ë with polygons ¤ÈƱÍͤˡ¢Â¿³Ñ·Á¤Ï¶õ¹Ô¤ÇʬΥ¤·¤Þ¤¹¡£¥Þ¥¹¥¯¤¬ 3 ¼¡¸µÉÁ ²è¥³¥Þ¥ó¥É (splot) ¤Î°ìÉô¤Ç¤¢¤ë¾ì¹ç¡¢ÆþÎÏ¤Ë¤Ï z ¤ÎÃͤ¬É¬ÍפǤ¹¤¬¡¢¤·¤« ¤·¤½¤ì¤Ï¸½ºß¤Î¤È¤³¤íÁ´¤¯»È¤¤¤Þ¤»¤ó¡£

plot ¥³¥Þ¥ó¥É¾å¤Ë¥Þ¥¹¥¯ÄêµÁ¤¬¤¢¤ë¾ì¹ç¡¢¤½¤Î¸å¤ÎƱ¤¸¥³¥Þ¥ó¥É¾å¤Î image ÉÁ²è¡¢pm3d ¶ÊÌ̤¬¡¢¥­¡¼¥ï¡¼¥É mask ¤òÄɲ乤뤳¤È¤Ç¥Þ¥¹¥¯¤µ¤ì¤Þ¤¹¡£ ¥Þ¥¹¥¯¤òÄêµÁ¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥­¡¼¥ï¡¼¥É¤Ï̵»ë¤·¤Þ¤¹¡£

°Ê²¼¤ÎÎã¤Ï¡¢ÅÀ¤Î½¸¹ç¤ò°Ï¤àÆÌÊñ¤ò»È¤¤¡¢¤¢¤ë pm3d ¶ÊÌ̤ËÂбþ¤¹¤ëÎΰè¤ò¥Þ ¥¹¥¯¤¹¤ëÊýË¡¤ò¼¨¤·¤Þ¤¹¡£

Image figure_mask


  set table $HULL
  plot $POINTS using 1:2 convexhull
  unset table


  set view map
  set multiplot layout 1,2
  splot $POINTS using 1:2:3 with pm3d, \
        $POINTS using 1:2:(0) nogrid with points
  splot $HULL using 1:2:(0) with mask, \
        $POINTS using 1:2:3 mask with pm3d
  unset multiplot

ºÇ½é¤Î¥Ñ¥Í¥ë¤ËÂФ¹¤ë¥³¥Þ¥ó¥É splot ¤Ï¡¢¸µ¤ÎÅÀ¤«¤é dgrid3d ¤ÇÀ¸À®¤·¤¿ ¥Þ¥¹¥¯¤µ¤ì¤Æ¤¤¤Ê¤¤¶ÊÌ̤òÉÁ²è¤·¡¢¤½¤Î¸å¤ÇÅÀ¼«¿È¤ò½ç¤ËÉÁ²è¤·¤Þ¤¹¡£2 ¤ÄÌÜ ¤Î¥Ñ¥Í¥ë¤ËÂФ¹¤ë¥³¥Þ¥ó¥É splot ¤Ï¥Þ¥¹¥¯¤·¤¿¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£¥Þ¥¹¥¯ ¤ÎÄêµÁ (with mask ¤Ç¤Î plot) ¤ÏºÇ½é¤Ë¹Ô¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¤½¤ì¤òŬÍÑ ¤¹¤ë pm3d ¶ÊÌ̤Ϥ½¤Î¸å¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (ÉÁ²è¥¹¥¿¥¤¥ë with pm3d ¤Ë¥­¡¼¥ï¡¼¥É mask ¤ò¤Ä¤±¤ÆÊѹ¹)¡£ ¤³¤ÎÎã¤Î¤è¤ê´°Á´¤ÊÈǤϡ¢¥Ç¥â½¸¹ç mask_pm3d.dem

Æâ¤Ë¤¢¤ê¤Þ¤¹¡£

¤³¤³¤Ë¤Ï¼¨¤·¤Þ¤»¤ó¤¬¡¢°ì¤Ä¤Î¥Þ¥¹¥¯¤¬Ê£¿ô¤Î¿³Ñ·ÁÎΰè¤ò´Þ¤ßÆÀ¤Þ¤¹¡£

¥Þ¥¹¥­¥ó¥°¥³¥Þ¥ó¥É¤Ï»î¸³Ãʳ¬¤Ç¤¹¡£¾ÜºÙ¤Ï¡¢¾­Íè¤Î¥ê¥ê¡¼¥¹¤ÇÊѹ¹¤µ¤ì¤ë¤« ¤â¤·¤ì¤Þ¤»¤ó¡£

58 Parallelaxes

Image figure_parallel
Ê¿¹ÔºÂɸÉÁ²è (parallel axis plot, parallel coordinates plot ¤È¤â¸Æ¤Ð¤ì ¤ë) ¤Ï¡¢Â¿¼¡¸µ¥Ç¡¼¥¿¤ÎÁê´Ø¤ò»ë³Ð²½¤·¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¤Î¸Ä¡¹¤ÎÎó¤Ï¡¢¤½¤ì ¤¾¤ìÊÌ¡¹¤Î¥¹¥±¡¼¥ë¤Î½Ä¼´¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Î¤¹¤Ù¤Æ¤ÎÎó ¤òÉÁ²è¤¹¤ë¾ì¹ç¤Ï¡¢¥°¥é¥Õ¤ÎÀÞ¤ìÀþ 1 Ëܤ¬¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤Î 1 ¹Ôʬ ¤ÎÃͤòɽ¤·¤Æ¤¤¤Þ¤¹¡£ ¤½¤ì¤é¤ò¿ô¼ïÎà¤ËʬÎष¤Æ¿§¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤Ï¤è¤¯¹Ô¤ï¤ì¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï¡¢¤½¤ÎʬÎà¤È¼´¤È¤Î´Ö¤Î´Ø·¸¤ò»ë³ÐŪ¤ËÄ´ºº¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£

½ñ¼°:


   set style data parallelaxes
   plot $DATA using col1{:varcol1} {at <xpos>} {<line properties}, \
        $DATA using col2, ...

¥­¡¼¥ï¡¼¥É at ¤Ç¡¢°Ê²¼¤ÎÎã¤Ë¸«¤é¤ì¤ë¤è¤¦¤Ë¡¢Ê¿¹ÔºÂɸ¼´¤Î x ¼´°ÌÃÖ¤Ç ¤ÎÌÀ¼¨Åª¤ÊÇÛÃÖ¤â²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ÌÀ¼¨Åª¤Ê x ºÂɸ»ØÄ꤬¤Ê¤±¤ì¤Ð¡¢N ÈÖÌܤμ´¤Ï x=N ¤Î¾ì½ê¤ËÃÖ¤«¤ì¤Þ¤¹¡£


    array xpos[5] = [1, 5, 6, 7, 11, 12]
    plot for [col=1:5] $DATA using col with parallelaxes at xpos[col]

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤Ï¼«Æ°Åª¤Ë¸Ä¡¹¤Î¼´¤ÎÈÏ°Ï¡¢¥¹¥±¡¼¥ë¤òÆþÎϥǡ¼¥¿ ¤«¤é·èÄꤷ¤Þ¤¹¤¬¡¢Ä̾ï¤Î set axis range ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¤½¤ì¤ò¥«¥¹¥¿ ¥Þ¥¤¥º¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set paxis (112.69)¡£

59 ¶ËºÂɸÉÁ²è (Polar plots)

Image figure_polar
¶ËºÂɸÉÁ²è (polar) ¤Ï¡¢plot ¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ëÁ°¤Ë¸½ºß¤ÎºÂɸ·Ï¤ò¶ËºÂɸ ¤ËÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆÀ¸À®¤·¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó set polar ¤Ï¡¢ÆþÎϤ¹¤ë 2 ¼¡¸µºÂɸ¤ò <x>,<y> ¤ÎÂå¤ï¤ê¤Ë <³Ñ>,<Ⱦ·Â> ¤È²ò¼á¤¹¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤¹¤Ù¤Æ¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤¬¡¢Â¿¤¯¤Î 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤¬¶ËºÂɸ ¥â¡¼¥É¤Ç¤âµ¡Ç½¤·¤Þ¤¹¡£¿Þ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë lines ¤È filledcurves ¤Î ÁȤ߹ç¤ï¤»¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£(ÌõÃí: ¿Þ¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¾ì¹ç) °Ê²¼»²¾È: set polar (112.74), set rrange (112.81), set size square (112.84), set theta (112.91), set ttics (112.100)¡£

¶ËºÂɸ¤Ç¤Î²¹ÅÙʬÉÛ_¿Þ¤Ï¡¢¥¹¥¿¥¤¥ë with surface ¤È set polar grid ¤ò¹ç¤ï¤»¤Æ»ÈÍѤ¹¤ë¤³¤È¤ÇÀ¸À®¤Ç¤­¤Þ¤¹¡£

Image figure_polar_grid


    set size square
    set angle degrees
    set rtics
    set grid polar
    set palette cubehelix negative gamma 0.8
    set polar grid gauss kdensity scale 35
    set polar grid theta [0:190]
    plot DATA with surface, DATA with points pt 7

60 Points

Image figure_points
points ¥¹¥¿¥¤¥ë¤Ï³ÆÅÀ¤Ë¾®¤µ¤Êµ­¹æ¤òɽ¼¨¤·¤Þ¤¹¡£¤¹¤Ù¤Æ¤Îµ­¹æ¤Î¥Ç¥Õ¥© ¥ë¥È¤ÎÂ礭¤µ¤òÊѹ¹¤¹¤ë¤Ë¤Ï¥³¥Þ¥ó¥É set pointsize ¤ò»È¤¤¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤ÎÅÀ¼ï¤Ï¡¢Àþ¼ï¤ÈƱ¤¸¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: linetypes (20)¡£plot ¥³ ¥Þ¥ó¥É¤Ë using »ØÄ꤬¤Ê¤¤¾ì¹ç¤Ï¡¢ÆþÎϥǡ¼¥¿Îó¤ò°ÅÌۤΤ¦¤Á¤Ë¡¢°Ê²¼¤Ç ÀâÌÀ¤¹¤ë¤è¤¦¤Ë x y pointsize pointtype color ¤Î½ç¤Ç²ò¼á¤·¤Þ¤¹¡£

ºÇ½é¤Î 8 ¤Ä¤ÎÅÀ¼ï¤Ï¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¶¦Ä̤Ǥ¹¤¬¡¢¤è¤ê¿¤¯¤ÎÅÀ¼ï¤ò¸Ä Ê̤˥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£¸½ºß¤Î½ÐÎÏ·Á¼°¤ÎÀßÄê¤Ç¤É¤Î¤è¤¦¤ÊÅÀ ¼ï¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤«¤ò¸«¤ë¤Ë¤Ï¡¢¥³¥Þ¥ó¥É test ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

¤Þ¤¿¡¢²¼¤ÎÎã¤Î¤è¤¦¤Ë¤·¤Æ¡¢Ç¤°Õ¤Î°õ»ú²Äǽʸ»ú¤òÅÀ¼ïÈÖ¹æ¤ÎÂå¤ï¤ê¤Ë»ÈÍѤ¹ ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ÅÀ¼ï¤È¤·¤Æ¡¢Ç¤°Õ¤Î UTF-8 ʸ»ú¤ò»ÈÍѤǤ­¤Þ¤¹ (utf8 ¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ëɬÍפ¢¤ê)¡£°Ê²¼»²¾È: escape sequences (13.1)¡£¤è¤êŤ¤Ê¸»ú Îó¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë points ¤Ç¤Ï¤Ê¤¯ labels ¤ò»È¤¨¤Ð½ÐÎϤǤ­¤Þ¤¹¡£


    plot f(x) with points pt "#"
    plot d(x) with points pt "\U+2299"

60.1 ²ÄÊÑÅÀ°À­ (variable point properties)

ÅÀ (point) µ­¹æ¤ò´Þ¤àÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÄɲåǡ¼¥¿Îó¤ò using »ØÄê¤Ç¼õ¤±¼è¤ë¤³¤È¤Ç¤½¤ÎÅÀ¤Î¸«¤¿ÌܤòÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³ ¤ì¤Ï¡¢plot ¥³¥Þ¥ó¥É¾å¤Ç¥­¡¼¥ï¡¼¥É pointtype, pointsize, linecolor ¤ò»È¤¦ºÝ¤Ë¡¢ÈÖ¹æ¤ÎÂå¤ï¤ê¤Ë¥­¡¼¥ï¡¼¥É variable ¤òÄɲ乤뤳¤È¤Ç»Ø¼¨¤· ¤Þ¤¹¡£ ÉÁ²è¥¹¥¿¥¤¥ë with labels ¤Ç¤â¡¢²ÄÊÑʸ»úÎó²óž³Ñ¤ò¼õ¤±¼è¤ë¤³¤È¤¬¤Ç¤­ ¤Þ¤¹¡£ Îã:


    # ÆþÎϥǡ¼¥¿¤Ï¡¢Îó 1:2 ¤Ç [x,y] ¤òÍ¿¤¨
    # ÅÀ¤Î¥µ¥¤¥º¤Ï 5 ÎóÌܤÇÍ¿¤¨
    # RGB ¿§¤Ï 4 ÎóÌÜ¤Ç 16 ¿Ê¿ôÃͤȤ·¤ÆÍ¿¤¨
    # ¤¹¤Ù¤Æ¤ÎÅÀ¤Ï pointtype 7 ¤ò»ÈÍÑ
      plot DATA using 1:2:5:4 with points lc rgb variable ps variable pt 7

2 ¤Ä°Ê¾å¤Î²ÄÊÑ (variable) °À­¤ò»ØÄꤹ¤ë¤È¡¢plot ¥³¥Þ¥ó¥ÉÆâ¤Î¥­¡¼¥ï¡¼ ¥É¤Î½ç¤È¤Ï̵´Ø·¸¤Ë¡¢°Ê²¼¤Î½ç¤ÇÎó¤ò²ò¼á¤·¤Þ¤¹¡£


   textrotation : pointsize : pointtype : color
   (ʸ»úÎó¤Î²óž³Ñ) : (ÅÀ¤Î¥µ¥¤¥º) : (ÅÀ¤Î¼ïÎà) : (¿§)

¤è¤Ã¤Æ¡¢¾å¤ÎÎã¤Ç¤Ï¡¢"lc rgb variable" ¤Ï plot ¥³¥Þ¥ó¥É¤ÎºÇ½é¤Ë¸½¤ì¤Æ¤¤ ¤Þ¤¹¤¬¡¢¿§¤Ï using »ØÄê¤ÎºÇ¸å¤ÎÎó (4) ¤«¤é¼è¤ê¤Þ¤¹¡£²ÄÊÑ¿§ (variable color) »ØÄê¤Ï¡¢¾ï¤ËºÇ¸å¤ÎÄɲÃÎ󤫤é¼è¤ê¤Þ¤¹¡£²ÄÊÑ¿§¤ò»ØÄꤹ¤ë¤Ë¤Ï¡¢¤¤ ¤¯¤Ä¤«¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£

Ãí°Õ: ¡Ö¥æ¡¼¥¶ÄêµÁÊÑ¿ô¡×¤ÎÊý¤Î variable ¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼ »²¾È: variables (15.7)¡£

61 Polygons

2 ¼¡¸µ¥°¥é¥Õ:


    plot DATA {using 1:2} with polygons

plot with polygons ¤Ï¡¢plot with filledcurves closed ¤È¤·¤Æ½èÍý¤· ¤Þ¤¹¤¬¡¢³Æ¿³Ñ·Á¤Î¶­³¦¤òÊĶÊÀþ¤È¤·¤ÆÉÁ²è¤¹¤ë¾ì¹ç¤ò½ü¤­¤Þ¤¹¡£¤½¤ì¤Ï¡¢¤½ ¤Î¤½¤ÎºÇ½é¤ÈºÇ¸å¤ÎÅÀ¤¬Æ±¤¸¤Ç¤Ê¤¯¤Æ¤â¤Ç¤¹¡£¶­³¦Àþ¤ÎÀþ¼ï¤Ï¡¢ÅɤêÄÙ¤·¥¹¥¿ ¥¤¥ë (fill style) ¤«¤é¼è¤ê¤Þ¤¹¡£ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢Ã±°ì¤Î¶õ¹Ô¤Ç¶è ÀڤäÆÊ£¿ô¤Î¿³Ñ·Á¤òÆþ¤ì¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£³Æ¿³Ñ·Á¤Ë¤Ï¡¢3 ÎóÌܤÎÃͤòÍ¿ ¤¨¡¢¥­¡¼¥ï¡¼¥É lc variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò linetype ¤È²ò¼á) ¤«¡¢ lc rgb variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò 24 ¥Ó¥Ã¥È RGB ¿§¤È²ò¼á) ¤³¤È¤Ç¡¢ ¸ÄÊ̤理ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Â¿³Ñ·Á¤ÎºÇ½é¤ÎĺÅÀ¤Î¿§¤ÎÃͤΤߤò»È ÍѤ·¤Þ¤¹¡£

3 ¼¡¸µ¥°¥é¥Õ:


    splot DATA {using x:y:z} with polygons
          {fillstyle <fillstyle spec>}
          {fillcolor <colorspec>}

splot with polygons ¤Ï¡¢3 ¼¡¸µ¶õ´Ö¤Î¸Ä¡¹¤Î»°³Ñ·Á¡¢»Í³Ñ·Á¡¢¤ª¤è¤Ó¤½¤ì °Ê¾å¤Î¿³Ñ·Á¤òÉÁ²è¤¹¤ë¤Î¤Ë pm3d ¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤é¤Ï 3 ¼¡¸µ¶ÊÌ̤ΰì Ì̤äñÆȤηÁ¾õ¤È¤Ê¤êÆÀ¤Þ¤¹¡£¤³¤Î¥ë¡¼¥Á¥ó¤Ï¡¢ÄºÅÀ¤¬°ì¤Ä¤ÎÊ¿Ì̤˾è¤Ã¤Æ¤¤ ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¸Ä¡¹¤Î¿³Ñ·Á¤òÄêµÁ¤¹¤ëĺÅÀ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎϢ³¤¹¤ë¹Ô¤«¤éÆɤ߹þ¤ß¤Þ¤¹¡£ ¶õ¹Ô¤Ï¿³Ñ·ÁƱ»Î¤òʬΥ¤·¤Þ¤¹¡£

ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤È¿§¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Ç»ØÄê¤Ç¤­¤Þ¤¹¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì ¤ÐÂç°èŪ¤ÊÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Î set style fill ¤ÎÀßÄê¤ò»ÈÍѤ·¤Þ¤¹¡£pm3d ¥ë¡¼¥Á¥ó¤ÎÀ©¸Â¤Î¤¿¤á¡¢set pm3d border ¤Ë¤è¤ë°ì¤Ä¤Î¶­³¦Àþ¥¹¥¿¥¤¥ë¤¬¡¢ ¤¹¤Ù¤Æ¤Î 3 ¼¡¸µÂ¿³Ñ·Á¤ËŬÍѤµ¤ì¤Þ¤¹¤¬¡¢¤³¤ÎÀ©¸Â¤Ï¾­Íè¤ÎÈǤΠgnuplot ¤Ç ¤Ï¼è¤ê½ü¤«¤ì¤ë¤Ç¤·¤ç¤¦¡£

³Æ¿³Ñ·Á¤Ë¤Ï¡¢4 ÎóÌܤÎÃͤòÍ¿¤¨¡¢¥­¡¼¥ï¡¼¥É lc variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò linetype ¤È²ò¼á) ¤«¡¢lc rgb variable ¤ò»ØÄꤹ¤ë (¤½¤ÎÃͤò 24 ¥Ó¥Ã¥È RGB ¿§¤È²ò¼á) ¤³¤È¤Ç¡¢¸ÄÊ̤理ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Â¿ ³Ñ·Á¤ÎºÇ½é¤ÎĺÅÀ¤Î¿§¤ÎÃͤΤߤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£

Ì̤ˤϡ¢pm3d ¤Î¥½¡¼¥È½ç¤È¸÷¸»¥â¥Ç¥ë¤òŬÍѤ·¤Þ¤¹¤Î¤Ç¡¢¾ï¤Ë¡¢ set pm3d depthorder ¤ò»È¤¦Êý¤¬¤¤¤¤¤«¤â¤·¤ì¤»¤ó¡£

Image figure_polygons


    set xyplane at 0
    set view equal xyz
    unset border
    unset tics
    set pm3d depth
    set pm3d border lc "black" lw 1.5
    splot 'icosahedron.dat' with polygons \
          fs transparent solid 0.8 fc bgnd

62 Rgbalpha

°Ê²¼»²¾È: image (52)¡£

63 Rgbimage

°Ê²¼»²¾È: image (52)¡£

64 ÀðÊÒ (sectors)

Image figure_sector_definition
2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë with sectors ¤Ï¡¢ÆþÎϥǡ¼¥¿¤Î 1 ¹ÔËè¤Ë°ì¤Ä¤Î´Ä¾õ ¤ÎÀðÊÒ ("sector") ¤òÉÁ²è¤·¤Þ¤¹¡£³ÆÀðÊҤηÁ¤Ï¡¢¥Ç¡¼¥¿ÃͤȤ·¤ÆÍ׵᤹¤ë 4 ¤Ä¤ÎÃͤǷèÄꤷ¤Þ¤¹¡£¤³¤ÎÀðÊҤδĤÎÉôʬ¤Î¸¶ÅÀ¤ò¡¢¥Ç¡¼¥¿ÃͤËÄɲûØÄꤹ¤ë ¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ÀðÊÒËè¤Î¿§¤òÄɲÃÎó¤È¤·¤Æ»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢Ä¾¸òºÂɸ¤Ç¡¢¤Þ¤¿¤Ï¶ËºÂɸ¥â¡¼¥É (set polar) ¤Î¸µ ¤Ç»ÈÍѤǤ­¤Þ¤¹¡£Êý°Ì³Ñ¤ÈÀð¤ÎÃæ¿´³Ñ¤Îñ°Ì¡¢²ò¼á¤Ï¡¢set angles ¤È set theta ¤ÇÀ©¸æ¤·¤Þ¤¹¡£

¥Ç¡¼¥¿¤Î 1,2 ÎóÌܤϡ¢¤½¤ÎÀðÊҤΰì¤Ä¤Î³Ñ¤ÎÊý°Ì (theta) ¤ÈȾ·Â (r) ¤Ç¤¹¡£
¥Ç¡¼¥¿¤Î 3,4 ÎóÌܤϡ¢¤½¤ÎÀðÊÒ¤ÎÊý°Ì¤ÎÊÑ°Ì (Ãæ¿´³Ñ; sector_angle) ¤ÈȾ ·Â¤ÎÊÑ°Ì (Æ°·ÂÊý¸þ¤ÎÉý; annular_width) ¤Ç¤¹¡£
¥Ç¡¼¥¿¤Î 5,6 ÎóÌܤò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤ÏÀð·Á¤ÎÃæ¿´¤ÎºÂɸ¤ò°ÕÌ£¤· (¥Ç ¥Õ¥©¥ë¥È¤Ï [0,0])¡¢Ä¾¸òºÂɸ¤Ç¤Ï [x,y]¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï [theta,r] ¤È²ò ¼á¤·¤Þ¤¹¡£

½ñ¼°:


   plot DATA {using specifier} {units xy | units xx | units yy}

using »ØÄê


   4 Îó: azimuth radius sector_angle annular_width
   5 Îó: azimuth radius sector_angle annular_width color
   6 Îó: azimuth radius sector_angle annular_width center_x center_y
   7 Îó: azimuth radius sector_angle annular_width center_x center_y
           color

x ¼´¤È y ¼´¥¹¥±¡¼¥ë¤¬Åù¤·¤¯¤Ê¤¤¾ì¹ç¡¢x,y ºÂɸ¤Î´Ä¾õ¤ÎÁ´ÂΤγµ·Á¤Ï±ß¤Ç ¤Ï¤Ê¤¯ÂʱߤȤʤäƸ½¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Åù¤·¤¯¤Ê¤¤¼´¤Î¥¹¥±¡¼¥ë ¤Ë´Ø¤·¤ÆÂ汧 (ellipse) ¤ÈƱ¤¸»ÅÁȤߤò»ÈÍѤ·¤Æ¡¢´Ä¾õ¤Î³µ·Á¡¢¤ª¤è¤ÓÀðÊÒ ¤ÎÉý¤Î³°¸«¤òÀµ¤·¤¯¹ç¤ï¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë units xx ¤òÄɲ乤ë¤È¡¢¸½ºß¤Î x ¼´¤Î¥¹¥±¡¼¥ë¤ò x, y ξÊý¤ËÅù¤·¤¯Å¬ÍѤ·¤¿¤«¤Î¤è ¤¦¤ËÀðÊÒ¤òÉÁ¤­¤Þ¤¹¡£Æ±Íͤˡ¢units yy ¤Ï¡¢¸½ºß¤Î y ¼´¤Î¥¹¥±¡¼¥ë¤ò x,y ξÊý¤ËÅù¤·¤¯Å¬ÍѤ·¤¿¤«¤Î¤è¤¦¤ËÀðÊÒ¤òÉÁ¤­¤Þ¤¹¡£ °Ê²¼»²¾È: set isotropic (112.37), set style ellipse (112.86.11)¡£

Image figure_windrose
with sectors ¤Ç¤ÎÉÁ²è¤Ï¡¢Ä¾¸òºÂɸ¤Ç¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤¢¤ë boxes (É÷ÇÛ ¿Þ (wind rose) ¤Î¿Þ¤ò»²¾È)¡¢boxxyerror ¤È image pixels (heatmaps ¤ÎÎã¤ò»²¾È) ¤ËÂФ¹¤ë¶ËºÂɸ¤Ç¤ÎƱÅùÉʤòÄ󶡤·¤Þ¤¹¡£sector ¤Ç¤ÎÉÁ²è¤Ïľ ¸òºÂɸ¥â¡¼¥É¤Ç¤Î¥°¥é¥Õ¥ì¥¤¥¢¥¦¥È¤ÈξΩ¤¹¤ë¤¿¤á¡¢°ì¤Ä¤Î¥°¥é¥Õ¾å¤Î°Û¤Ê¤ë ¾ì½ê¤ËÊ£¿ô¤Î¥°¥é¥Õ¤òÇÛÃÖ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¤¬¡¢¤½¤ì¤Ï¾¤Î¶ËºÂɸ¥â¡¼¥É¥° ¥é¥Õ¥¹¥¿¥¤¥ë¤Ç¤ÏÉÔ²Äǽ¤Ç¤¹¡£

¤³¤³¤Ë¼¨¤·¤Æ¤¤¤ë¤Î¤Ï¡¢sectors ¤ò»È¤Ã¤ÆÉ÷ÇÛ¿Þ (wind rose) ¤òÀ¸À®¤¹¤ëÎ㠤Ǥ¹¡£¶ËºÂɸ²¹ÅÙʬÉÛ¿Þ¤ò´Þ¤à¾¤Î±þÍÑÎã¤È¤·¤Æ¤Ï¡¢¥À¥¤¥ä¥ë¥Á¥ã¡¼¥È¡¢±ß¥° ¥é¥Õ/±ß´Ä¥°¥é¥Õ¡¢¤½¤·¤Æ ¶ËºÂɸ¤Ç¤Î¥Ç¡¼¥¿ÅÀ¤ËÂФ¹¤ë´Ä¾õ¤Î¥¨¥é¡¼¥Ü¥Ã¥¯¥¹ ¤Ç¤¹¡£¤³¤ì¤é¤¹¤Ù¤Æ¤Î²Ã¹©¤µ¤ì¤¿Îã¤Ï¡¢ sector ¤Î¥Ç¥â

¤ËÃÖ¤«¤ì¤Æ¤¤¤Þ¤¹¡£

65 Spiderplot

¥¯¥â¤ÎÁ㥰¥é¥Õ (spiderplot) ¤Ï¡¢ËܼÁŪ¤Ë¡¢Ê¿¹ÔºÂɸÉÁ²è (parallel axis) ¤Ç¡¢¤½¤Î¼´¤ò¿âľÊý¸þ¤Ç¤Ï¤Ê¤¯Êü¼Í¾õ¤ËÇÛÃÖ¤·¤¿¤â¤Î¤Ç¤¹¡£¤³¤ì¤Ï¤è¤¯¡Ö¥ì¡¼ ¥À¡¼¥Á¥ã¡¼¥È¡×(radar chart) ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹¡£gnuplot ÆâÉô¤Ç¤Ï¡¢¤³¤ì¤Ï ¥³¥Þ¥ó¥É set spiderplot ¤Ç³ÎΩ¤µ¤ì¤ëºÂɸ·Ï¤Ç¤Îºî¶È¤¬É¬ÍפȤʤê¤Þ¤¹¤¬¡¢ ¤³¤ì¤ÏÊгѺÂɸ¤¬Ê¿¹Ô¼´ÈÖ¹æ¤Ë¤è¤Ã¤Æ°ÅÌۤ˷è¤Þ¤ë¤³¤È¤ò½ü¤±¤Ð set polar ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£¸«¤¿Ìܤ䡢¥é¥Ù¥ëÉÕ¤±¡¢¼´¤ÎÌÜÀ¹¤ê¤ÎÇÛÃ֤ϡ¢set paxis ¤Ç À©¸æ¤Ç¤­¤Þ¤¹¡£¤³¤Î¥¹¥¿¥¤¥ë¤Î¤µ¤é¤Ê¤ëÀßÄê¤Ï¡¢set style spiderplot¡¢ set grid¡¢¤ª¤è¤Ó plot ¥³¥Þ¥ó¥É¤Î¸Ä¡¹¤Î»ØÄê¤Ç¹Ô¤¨¤Þ¤¹¡£

³Æ¥¯¥â¤ÎÁ㥰¥é¥Õ¤Ï¡¢Îó¥Ç¡¼¥¿¤Ç¤Ï¤Ê¤¯¹Ô¥Ç¡¼¥¿¤ËÂбþ¤¹¤ë¤¿¤á¡¢Ä̾ï¤ÎÊýË¡ ¤Ç¤ÎËÞÎã (key) ¥¿¥¤¥È¥ë¤ÎÀ¸À®¤Ï°ÕÌ£¤¬¤¢¤ê¤Þ¤»¤ó¡£Âå¤ï¤ê¤Ë¡¢ÉÁ²èÍ×ÁǤ¬ ¥¿¥¤¥È¥ëʸ»úÎó¤ò»ý¤Ã¤Æ¤¤¤ì¤Ð¡¢¤½¤Îʸ»úÎó¤òÂбþ¤¹¤ë¼´¤Î¥é¥Ù¥ë¤Ë»ÈÍѤ·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢»öÁ°¤Î set paxis n label "Foo" ¤ò¤¹¤Ù¤Æ¾å½ñ¤­¤·¤Þ¤¹¡£ËÞ Îã¤Ë¥¿¥¤¥È¥ë¤òÇÛÃÖ¤¹¤ë¤Ë¤Ï¡¢¸ÄÊ̤Πkeyentry ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤«¡¢¤Þ ¤¿¤Ï using »ØÄê¤Ç key(column) ¤ò»È¤Ã¤ÆÆþÎÏ¥Õ¥¡¥¤¥ëÎ󤫤éʸ»úÎó¤òŸ³« ¤¹¤ëÊýË¡¤¬»È¤¨¤Þ¤¹¡£

°Ê²¼¤Î¿Þ¤Ï¡¢¼´¤¬ 5 ¤Ä¤Î¥¯¥â¤ÎÁ㥰¥é¥Õ¤Ç¡¢¤½¤ì¤¾¤ì 5 ¤Ä¤ÎÅÀ¿ô¤ÇÆÃħÉÕ¤± ¤é¤ì¤ëÊ£¿ô¤Î¤â¤Î¤òÈæ³Ó¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£$DATA ¤Î³Æ¹Ô¤Ï¡¢¥°¥é¥Õ¾å¤Ë¿·¤· ¤¤Â¿³Ñ·Á¤òÀ¸À®¤·¤Þ¤¹¡£

Image figure_spiderplot


    $DATA << EOD
             A      B      C      D      E      F
    George  15     75     20     43     90     50
    Harriet 40     40     40     60     30     50
    EOD
    set spiderplot
    set style spiderplot fs transparent solid 0.2 border
    set for [p=1:5] paxis p range [0:100]
    set for [p=2:5] paxis p tics format ""
    set             paxis 1 tics font ",9"
    set for [p=1:5] paxis p label sprintf("Score %d",p)
    set grid spiderplot
    plot for [i=1:5] $DATA using i:key(1)

65.1 Newspiderplot

Ä̾with spiderplot ¤Ë¤è¤ë plot ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤é¤ì¤ë¥Ç¡¼¥¿Îó¤Î¸Ä¡¹ ¤ÎÃͤϡ¢1 ¸Ä¤Î¿³Ñ·Á¤ËÂФ¹¤ë¤½¤ì¤¾¤ì¤ÎĺÅÀ¤ËÂбþ¤·¤Þ¤¹¡£1 ¤Ä¤Î¥°¥é¥Õ¾å ¤Ë¡¢Ê£¿ô¤Î¿³Ñ·Á¤òÉÁ¤¯¤Ë¤Ï¡¢¤½¤ì¤é¤ò newspiderplot ¤ÇʬΥ¤·¤Æ»ØÄꤷ ¤Þ¤¹¡£ Îã:


    # °Ê²¼¤Ï 10 ¸Ä¤ÎĺÅÀ¤ò»ý¤Ä 1 ¤Ä¤Î¿³Ñ·Á
    plot for [i=1:5] 'A' using i, for [j=1:5] 'B' using j
    # °Ê²¼¤Ï 5 ¸Ä¤ÎĺÅÀ¤ò»ý¤Ä 2 ¤Ä¤Î¿³Ñ·Á
    plot for [i=1:5] 'A' using i, newspiderplot, for [j=1:5] 'B' using j

66 Steps

Image figure_steps
steps ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µÉÁ²è¤Ç¤Î¤ßÍøÍѲÄǽ¤Ç¤¹¡£¤³¤ì¤Ï 2 ËܤÎÀþʬ¤ÇÎÙ ¤ê¹ç¤¦ÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹: 1 ËÜÌÜ¤Ï (x1,y1) ¤«¤é (x2,y1) ¤Þ¤Ç¡¢2 ËÜÌÜ¤Ï (x2,y1) ¤«¤é (x2,y2) ¤Þ¤Ç¡£ÆþÎÏÎó¤Î¾ò·ï¤Ï¡¢lines ¤ä points ¤ËÂФ¹ ¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¡£fsteps ¤È steps ¤Î°ã¤¤¤Ï¡¢fsteps ¤Ï¡¢ÀÞ¤ìÀþ¤ò Àè¤Ë y Êý¸þ¤Ë½ñ¤¤¤Æ¤«¤é¼¡¤Ë x Êý¸þ¤Ë½ñ¤¯¤Î¤ËÂФ·¡¢steps ¤ÏÀè¤Ë x Êý ¸þ¤Ë½ñ¤¤¤Æ¤«¤é¼¡¤Ë y Êý¸þ¤Ë½ñ¤­¤Þ¤¹¡£¶ÊÀþ¤È¥Ù¡¼¥¹¥é¥¤¥ó¤Ç¤¢¤ë y=0 ¤È¤Î ´Ö¤ÎÎΰè¤òÅɤêÄÙ¤¹¤Ë¤Ï¡¢fillsteps ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼¤â»²¾È steps ¥Ç¥â¡£

67 Surface

ÉÁ²è¥¹¥¿¥¤¥ë with surface ¤Ë¤Ï¡¢2 ¼ïÎà¤ÎÍøÍÑË¡¤¬¤¢¤ê¤Þ¤¹¡£

3 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢with surface ¤Ï¾ï¤Ë¶ÊÌ̤òÀ¸À®¤·¤Þ¤¹¡£ 3 ¼¡¸µ¥Ç¡¼¥¿½¸¹ç¤¬³Ê»Ò½¸¹ç (grid) ¤Èǧ¼±¤Ç¤­¤ì¤Ð¡¢gnuplot ¤Ï¥Ç¥Õ¥©¥ë¥È ¤Ç¤Ï¡¢with lines ¤ò with surface ¤ËÂФ¹¤ëƱµÁ¸ì¤È¤·¤Æ¡¢³Ê»Ò¶ÊÌ̤ò Í׵ᤷ¤¿¤«¤Î¤è¤¦¤Ë°ÅÌÛ¤ËÉÁ²è¥¹¥¿¥¤¥ë with lines ¤Ç½èÍý¤·¤Þ¤¹¡£¤·¤«¤· ¥³¥Þ¥ó¥É set surface explicit ¤Ï¤³¤Î½èÍý¤òÍÞÀ©¤·¡¢¤½¤Î¾ì¹ç with surface ¤È with lines ¤Ï°Û¤Ê¤ë¥¹¥¿¥¤¥ë¤È¤Ê¤ê¡¢Æ±¤¸¥°¥é¥ÕÆâ¤Ç ÍøÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

³Ê»ÒÅÀ¤È¤Ïǧ¼±¤µ¤ì¤Ê¤¤ 3 ¼¡¸µ¤ÎÅÀ¤¬¤¢¤ë¾ì¹ç¡¢ºÇ½é¤ËŬÀڤʳʻҤ˹ç¤ï¤» ¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set dgrid3d (112.25)¡£

2 ¼¡¸µ¶ËºÂɸ¥°¥é¥Õ¤Ç¤Ï¡¢with surface ¤Ï¡¢¥Ç¡¼¥¿¤Î¿§Åɤê³Ê»Òɽ¸½¤òÀ¸ À®¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤½¤Î¶ÊÌ̤ÎÀ¸À®¤Ï¡¢¥³¥Þ¥ó¥É set polar grid ¤ÇÀ©¸æ ¤·¤Þ¤¹¡£

68 Vectors

Image figure_vectors
2 ¼¡¸µ¤Î vectors ¥¹¥¿¥¤¥ë¤Ï (x,y) ¤«¤é (x+xdelta,y+ydelta) ¤Þ¤Ç¤Î¥Ù ¥¯¥È¥ë¤ò½ñ¤­¤Þ¤¹¡£3 ¼¡¸µ¤Î vectors ¥¹¥¿¥¤¥ë¤âƱÍͤǤ¹¤¬¡¢¥Ç¡¼¥¿¤Ï´ð ËÜŪ¤Ë 6 ÎóɬÍפǤ¹¡£¤¤¤º¤ì¤Î¾ì¹ç¤â¡¢ÆþÎÏÎó¤òÄɲà (2D ¤Ç¤Ï 5 ÎóÌÜ¡¢3D ¤Ç¤Ï 7 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤Ï³Æ¥Ç¡¼¥¿ÅÀËè¤Î variable color ¾ðÊó (°Ê²¼ »²¾È: linecolor (20.1), rgbcolor variable (20.1.4)) ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£ ³Æ¥Ù¥¯¥È¥ë¤ÎÀèü¤Ë¤Ï¾®¤µ¤ÊÌðÀè¤â½ñ¤«¤ì¤Þ¤¹¡£


    4 Îó:  x  y  xdelta  ydelta
    6 Îó:  x  y  z  xdelta  ydelta  zdelta

¥­¡¼¥ï¡¼¥É "with vectors" ¤Ï¡¢¤½¤Î¸å¤í¤Ë¡¢arrow ¥¹¥¿¥¤¥ë°À­¤òľÀܽñ¤¤ ¤¿¤ê¡¢»öÁ°¤ËÄêµÁ¤·¤¿ arrow ¥¹¥¿¥¤¥ë¤ò»²¾È¤·¤¿¤ê¡¢¤¢¤ë¤¤¤ÏÊ̤ÎÆþÎÏÎó¤« ¤é³Æ¥Ù¥¯¥È¥ë¤ËÂФ¹¤ëŬÍѤ·¤¿¤¤ arrow ¥¹¥¿¥¤¥ë¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òÆɤà¤è¤¦ »ØÄꤷ¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£²¼¤ÎºÇ½é¤Î 3 ¤Ä¤ÎÎã¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£

Îã:


    plot ... using 1:2:3:4 with vectors filled heads
    plot ... using 1:2:3:4 with vectors arrowstyle 3
    plot ... using 1:2:3:4:5 with vectors arrowstyle variable
    splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2

Ãí°Õ: plot ¥³¥Þ¥ó¥ÉÆâ¤Ë¥­¡¼¥ï¡¼¥É arrowstyle ¤È¾¤ÎÀþ°À­¤òº®ºß¤µ¤» ¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£arrow ¥¹¥¿¥¤¥ë¤Ë lc variable ¤« lc rgb variable ¤¬¤¢¤ë¾ì¹ç¡¢¿§¤ÎÃÍÍѤÎÄɲÃÎó¤¬É¬ÍפǤ¹¡£

vectors ¥¹¥¿¥¤¥ë¤ò»È¤Ã¤Æ¤Î splot ¤Ï set mapping cartesian ¤Î¤ß¤Ç¥µ¥Ý ¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ set clip one ¤È set clip two ¤Ï 2 ¼¡¸µ¤Î¥Ù¥¯¥È¥ë¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨ ¤Þ¤¹¡£°Ê²¼»²¾È: set clip (112.14), arrowstyle (112.86.1)¡£

2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤Î°Ê²¼¤â»²¾È: with arrows (33)¡£¤³¤ì¤Ï¡¢³ÆÌð°õ¤ò x:y:length:angle ¤Î·Á¼°¤Ç»ØÄꤹ¤ë°Ê³°¤Ï with vectors ¤ÈƱ¤¸¤Ç¤¹¡£

69 Xerrorbars

Image figure_xerrorbars
xerrorbars ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß¤ÇÍøÍѲÄǽ¤Ç¤¹¡£ xerrorbars ¤Ï¡¢¿åÊ¿¤Î¸íº¹»Ø¼¨Àþ (error bar) ¤¬É½¼¨¤µ¤ì¤ë°Ê³°¤Ï points ¤ÈƱ¤¸¤Ç¤¹¡£³ÆÅÀ (x,y) ¤Ë¤ª¤¤¤Æ (xlow,y) ¤«¤é (xhigh,y) ¤Þ¤Ç¡¢ ¤Þ¤¿¤Ï (x-xdelta,y) ¤«¤é (x+xdelta,y) ¤Þ¤Ç¤ÎÀþʬ¤¬°ú¤«¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤é ¤Ï¤¤¤¯¤Ä¤Î¥Ç¡¼¥¿Îó¤¬Í¿¤¨¤é¤ì¤ë¤«¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£¸íº¹»Ø¼¨Àþ¤Îü¤Î¹ï ¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£ ÅÀ¤È¸íº¹»Ø¼¨Àþ¤Î´Ö¤Î·ä´Ö¤Ï¡¢set pointintervalbox ¤ÇÀ©¸æ¤·¤Þ¤¹¡£¸íº¹ Àþ¤òÃÇÀþ¤»¤º¤ËľÀÜÅÀµ­¹æ¤ò´ÓÄ̤µ¤»¤ë¤Ë¤Ï¡¢unset pointintervalbox ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ï´ðËÜŪ¤Ë¡¢3 Îó¤« 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹:


    3 Îó:  x  y  xdelta
    4 Îó:  x  y  xlow  xhigh

ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À­¤Ï»È¤¨¤Þ¤»¤ó¡£

70 Xyerrorbars

Image figure_xyerrorbars
xyerrorbars ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß¤ÇÍøÍѲÄǽ¤Ç¤¹¡£ xyerrorbars ¤Ï¡¢¿åÊ¿¡¢¿âľ¤Î¸íº¹»Ø¼¨Àþ (error bar) ¤âɽ¼¨¤µ¤ì¤ë°Ê³° ¤Ï points ¤ÈƱ¤¸¤Ç¤¹¡£³ÆÅÀ (x,y) ¤Ë¤ª¤¤¤Æ (x,y-ydelta) ¤«¤é (x,y+ydelta) ¤Þ¤Ç¤È (x-xdelta,y) ¤«¤é (x+xdelta,y) ¤Þ¤Ç¡¢¤Þ¤¿¤Ï (x,ylow) ¤«¤é (x,yhigh) ¤Þ¤Ç¤È (xlow,y) ¤«¤é (xhigh,y) ¤Þ¤Ç¤ÎÀþʬ¤¬°ú ¤«¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤é¤Ï¤¤¤¯¤Ä¤Î¥Ç¡¼¥¿Îó¤¬Í¿¤¨¤é¤ì¤ë¤«¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£ ¸íº¹»Ø¼¨Àþ¤Îü¤Î¹ï¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£ ÅÀ¤È¸íº¹»Ø¼¨Àþ¤Î´Ö¤Î·ä´Ö¤Ï¡¢set pointintervalbox ¤ÇÀ©¸æ¤·¤Þ¤¹¡£¸íº¹ Àþ¤òÃÇÀþ¤»¤º¤ËľÀÜÅÀµ­¹æ¤ò´ÓÄ̤µ¤»¤ë¤Ë¤Ï¡¢unset pointintervalbox ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ï 4 Î󤫡¢6 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹¡£


    4 Îó:  x  y  xdelta  ydelta
    6 Îó:  x  y  xlow  xhigh  ylow  yhigh

¥Ç¡¼¥¿¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤º®¹ç·¿¤Î·Á¼°¤ÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¡¢plot ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤ò»È¤Ã¤ÆŬÀڤʷÁ¤Ëľ¤µ¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¥Ç ¡¼¥¿¤¬ (x,y,xdelta,ylow,yhigh) ¤È¤¤¤¦·Á¼°¤Ç¤¢¤ë¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ ¤¹:


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

ÆþÎÏÎó¤òÄɲà (5,7 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À­¤Ï»È¤¨¤Þ¤»¤ó¡£

71 Xerrorlines

Image figure_xerrorlines
xerrorlines ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß¤ÇÍøÍѲÄǽ¤Ç¤¹¡£ xerrorlines ¤Ï linespoints ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¿åÊ¿¤Î¸íº¹Àþ¤¬ÉÁ¤«¤ì¤ë ¤³¤È¤¬°ã¤¤¤Þ¤¹¡£³ÆÅÀ (x,y) ¤Ç¡¢¥Ç¡¼¥¿Îó¤Î¸Ä¿ô¤Ë±þ¤¸¤Æ (xlow,y) ¤«¤é (xhigh,y) ¤Þ¤Ç¡¢¤Þ¤¿¤Ï (x-xdelta,y) ¤«¤é (x+xdelta,y) ¤Þ¤Ç¤ÎÀþʬ¤¬ÉÁ¤« ¤ì¤Þ¤¹¡£¸íº¹Àþ¤Îü¤Î¹ï¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£ ´ðËÜŪ¤Ë¤Ï¡¢3 Îó¤« 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬ÍפǤ¹:


    3 Îó:  x  y  xdelta
    4 Îó:  x  y  xlow  xhigh

ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À­¤Ï»È¤¨¤Þ¤»¤ó¡£

72 Xyerrorlines

Image figure_xyerrorlines
xyerrorlines ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß¤ÇÍøÍѲÄǽ¤Ç¤¹¡£ xyerrorlines ¤Ï linespoints ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¿åÊ¿¤È¿âľ¤Î¸íº¹Àþ¤âÉÁ ¤«¤ì¤ë¤³¤È¤¬°ã¤¤¤Þ¤¹¡£³ÆÅÀ (x,y) ¤Ç¡¢¥Ç¡¼¥¿Îó¤Î¸Ä¿ô¤Ë±þ¤¸¤Æ¡¢ (x,y-ydelta) ¤«¤é (x,y+ydelta) ¤Þ¤Ç¤È (x-xdelta,y) ¤«¤é (x+xdelta,y) ¤Þ¤Ç¡¢¤¢¤ë¤¤¤Ï (x,ylow) ¤«¤é (x,yhigh) ¤Þ¤Ç¤È (xlow,y) ¤«¤é (xhigh,y) ¤Þ¤Ç¤ÎÀþʬ¤¬ÉÁ¤«¤ì¤Þ¤¹¡£¸íº¹Àþ¤Îü¤Î¹ï¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢4 Îó¤« 6 Îó¤ÎÆþÎϥǡ¼¥¿¤¬É¬ÍפǤ¹¡£


    4 Îó:  x  y  xdelta  ydelta
    6 Îó:  x  y  xlow  xhigh  ylow  yhigh

¥Ç¡¼¥¿¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤º®¹ç·¿¤Î·Á¼°¤ÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¡¢plot ¥³ ¥Þ¥ó¥É¤Î using »ØÄê¤ò»È¤Ã¤ÆŬÀڤʷÁ¤Ëľ¤µ¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð¥Ç ¡¼¥¿¤¬ (x,y,xdelta,ylow,yhigh) ¤È¤¤¤¦·Á¼°¤Ç¤¢¤ë¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ ¤¹:


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

ÆþÎÏÎó¤òÄɲà (5,7 ÎóÌÜ) ¤¹¤ë¤È¤½¤ì¤é¤ò variable color ¤È¤·¤Æ»È¤¤¤Þ¤¹¡£ ¤³¤Î¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢variable point °À­¤Ï»È¤¨¤Þ¤»¤ó¡£

73 Yerrorbars

Image figure_yerrorbars
yerrorbars (¤Þ¤¿¤Ï errorbars) ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß¤Ç ÍøÍѲÄǽ¤Ç¤¹¡£yerrorbars ¤Ï¡¢¿âľ¤Î¸íº¹»Ø¼¨Àþ (error bar) ¤¬É½¼¨¤µ¤ì ¤ë°Ê³°¤Ï points ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£³ÆÅÀ (x,y) ¤Ë¤ª¤¤¤Æ (x,y-ydelta) ¤«¤é (x,y+ydelta) ¤Þ¤Ç¡¢¤Þ¤¿¤Ï (x,ylow) ¤«¤é (x,yhigh) ¤Þ¤Ç¤ÎÀþʬ¤¬°ú¤«¤ì¤Þ ¤¹¤¬¡¢¤³¤ì¤é¤Ï¤¤¤¯¤Ä¤Î¥Ç¡¼¥¿Îó¤¬Í¿¤¨¤é¤ì¤ë¤«¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£¸íº¹»Ø ¼¨Àþ¤Îü¤Î¹ï¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£ÅÀ¤È¸íº¹ Àþ¤È¤Î·ä´Ö¤Ï set pointintervalbox ¤ÇÀ©¸æ¤·¤Þ¤¹¡£¸íº¹Àþ¤òÃÇÀþ¤»¤º¤Ëľ ÀÜÅÀµ­¹æ¤ò´ÓÄ̤µ¤»¤ë¤Ë¤Ï¡¢unset pointintervalbox ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£


    2 Îó:  [°ÅÌۤΠx]  y  ydelta
    3 Îó:  x  y  ydelta
    4 Îó:  x  y  ylow  yhigh

ÆþÎÏÎó¤òÄɲ乤ë¤È¡¢¤½¤ì¤é¤Ï²ÄÊÑ (variable) pointsize, ²ÄÊÑ pointtype, ²ÄÊÑ¿§ (variable color) ¤Î¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£

°Ê²¼¤â»²¾È errorbar ¥Ç¥â¡£

74 Yerrorlines

Image figure_yerrorlines
yerrorlines (¤Þ¤¿¤Ï errorlines) ¥¹¥¿¥¤¥ë¤Ï 2 ¼¡¸µ¤Î¥Ç¡¼¥¿ÉÁ²è¤Î¤ß ¤ÇÍøÍѲÄǽ¤Ç¤¹¡£yerrorlines ¤Ï linespoints ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¿âľ¤Î ¸íº¹Àþ¤¬ÉÁ¤«¤ì¤ë¤³¤È¤¬°ã¤¤¤Þ¤¹¡£³ÆÅÀ (x,y) ¤Ç¡¢¥Ç¡¼¥¿Îó¤Î¸Ä¿ô¤Ë±þ¤¸¤Æ (x,y-ydelta) ¤«¤é (x,y+ydelta) ¤Þ¤Ç¡¢¤Þ¤¿¤Ï (x,ylow) ¤«¤é (x,yhigh) ¤Þ¤Ç¤ÎÀþʬ¤¬ÉÁ¤«¤ì¤Þ¤¹¡£¸íº¹Àþ¤Îü¤Î¹ï¤ß¤Î°õ¤Î¸«¤¿Ìܤϡ¢ set errorbars ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢3 Îó¤« 4 Îó¤ÎÆþÎϤ¬É¬ÍפǤ¹¡£


    3 Îó:  x  y  ydelta
    4 Îó:  x  y  ylow  yhigh

ÆþÎÏÎó¤òÄɲà (4,5 ÎóÌÜ) ¤¹¤ë¤È¡¢¤½¤ì¤é¤ÏÅÀ¤Î variable color ¾ðÊó¤È¤·¤Æ »È¤ï¤ì¤Þ¤¹¡£ ¤µ¤é¤Ê¤ëÆþÎÏÎó¤Ï¡¢variable point size, variable point type, variable color ¤Î¾ðÊó¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£

°Ê²¼¤â»²¾È ¥¨¥é¡¼¥Ð¡¼¤Î¥Ç¥â

75 3 ¼¡¸µÉÁ²è (3D plots)

3 ¼¡¸µ¥°¥é¥Õ¤Ï¡¢¥³¥Þ¥ó¥É plot ¤Ç¤Ï¤Ê¤¯¥³¥Þ¥ó¥É splot ¤ò»È¤Ã¤ÆÀ¸À® ¤·¤Þ¤¹¡£Â¿¤¯¤Î 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë (points, images, impulse, labels, vectors) ¤Ï¡¢z ºÂɸ¥Ç¡¼¥¿Îó¤òÄɲûØÄꤹ¤ì¤Ð 3 ¼¡¸µ¤Ç¤â»È¤¨¤Þ¤¹¡£2 ¼¡¸µ ¼Í±Æ¥°¥é¥Õ¤Î¤ß¤¬Íߤ·¤¤¾ì¹ç¤Ç¤â¡¢splot ¥³¥Þ¥ó¥É¤ò»È¤Ã¤ÆÀ¸À®¤·¤Ê¤±¤ì¤Ð ¤¤¤±¤Ê¤¤ÉÁ²è·¿ (pm3d coloring, surfaces, contours) ¤âÃæ¤Ë¤Ï¤¢¤ê¤Þ¤¹¡£

75.1 ¶ÊÌÌÉÁ²è (surface plots)

Image figure_surface+contours
ÉÁ²è¥¹¥¿¥¤¥ë splot with lines ¤ä splot with surface ¤Ï¤¤¤º¤ì¤â¶ÊÌÌ ¤ò³Ê»ÒÀþ¤ÇÀ¸À®¤·¤Þ¤¹¡£¶ÊÌ̤ÎÅɤêÄÙ¤·¤Ï¡¢¥¹¥¿¥¤¥ë splot with pm3d ¤Ç ¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¶ÊÌ̤ÏÄ̾¤½¤ì¤¬ 3 ¼¡¸µ¤Î¶ÊÌ̤Ǥ¢¤ë¤È¤Ï¤Ã¤­¤ê¤ï ¤«¤ë¤è¤¦¤ÊŬÀڤʻëÊý¸þ¤«¤éɽ¼¨¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set view (112.104)¡£ ¤½¤Î¾ì¹ç¡¢X, Y, Z ¼´¤Ï¤¹¤Ù¤ÆÉÁ²èÆâ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£3 ¼¡¸µÅª¤Êºø³Ð¤Ï¡¢±£ Àþ½èÍý¤Ë¤è¤ê¡¢¤è¤êÁýÉý¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: hidden3d (112.33)¡£ ¥³¥Þ¥ó¥É splot ¤Ï¡¢Äê¿ô¤Î Z ÃͤËÂФ¹¤ëÅù¹âÀþ¤ò·×»»¤·ÉÁ²è¤¹¤ë¤³¤È¤â¤Ç ¤­¤Þ¤¹¡£¤³¤ì¤é¤ÎÅù¹âÀþ¤Ï¡¢¶ÊÌ̤½¤ì¼«ÂΤξå¤Ë½ñ¤¯¤³¤È¤â¤Ç¤­¤Þ¤¹¤·¡¢XY Ê¿Ì̤ؼͱƤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set contour (112.19)¡£

75.2 2 ¼¡¸µ¼Í±Æ (set view map)

Image figure_mapcontours
¥³¥Þ¥ó¥É splot ¤ÎÆÃÊ̤ʾì¹ç¤È¤·¤Æ¡¢¥°¥é¥Õ¤Î Z ¼´¤Ë±è¤Ã¤¿ xy Ê¿Ì̤ؤΠ¼Í±Æ¤Ë¤è¤ë¡¢Z ºÂɸ¤Î 2 ¼¡¸µ¶ÊÌ̤ؤÎÃÏ¿ÞºîÀ® (map) ¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set view map (112.104)¡£¤³¤ÎÉÁ²è¥â¡¼¥É¤Ï¡¢Åù¹âÀþ¤ÎÉÁ²è¤ä²¹ÅÙʬÉÛ (heatmap) ¤Î À¸À®¤ËÊØÍø¤Ç¤·¤ç¤¦¡£°Ê²¼¤Î¿Þ¤ÏÉÁ²è¥¹¥¿¥¤¥ë lines ¤ò°ìÅÙ¡¢labels ¤ò °ìÅÙÉÁ²è¤·¤¿Åù¹âÀþ¤ò¼¨¤·¤Æ¤¤¤Þ¤¹ (ÌõÃí: ¿Þ¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¾ì¹ç)¡£

75.3 PM3D ÉÁ²è (PM3D plots)

Image figure_pm3dsolid
3 ¼¡¸µ¶ÊÌ̤ϡ¢Àþʬ¤Ç¤Ê¤¯¡¢Ã±¿§¤Î pm3d »ÍÊÕ·Á¤ò»È¤Ã¤ÆÉÁ²è¤¹¤ë¤³¤È¤â¤Ç¤­ ¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢±£Ì̽èÍý¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢³ÆÌÌÍ×ÁǤòÇطʤ«¤éÁ°Ì̤˸þ¤«¤Ã ¤ÆÉÁ¤¯¤³¤È¤ÇƱÍͤθú²Ì¤¬ÆÀ¤é¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set pm3d depthorder (112.71.6)¡£ pm3d ¶ÊÌ̤ϡ¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï³ê¤é¤«¤ÊϢ³Ū¤Ê¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ò»È¤Ã¤Æ¿§ÉÕ ¤±¤·¤Þ¤¹ (°Ê²¼»²¾È: set palette (112.67)) ¤¬¡¢Ã±¿§¤Î¶ÊÌ̤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­ ¤Þ¤¹¤·¡¢¤³¤Î¿Þ¤Ë¤¢¤ë¤è¤¦¤Ë (ÌõÃí: ¿Þ¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¾ì¹ç)¡¢¾å¤ÎÌ̤Ȳ¼ ¤ÎÌ̤˰ۤʤëñ¿§¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: pm3d fillcolor (112.71.11)¡£ hidden3d ¥â¡¼¥É¤Ç¤ÎÀþʬ¤ÎÀÚ¤ê¼è¤ê¤È¤Ï°ã¤¤¡¢pm3d ¶ÊÌ̤ϸ½ºß¤Î zrange ¤Î ÈϰϤ˳ê¤é¤«¤Ë¥¯¥ê¥Ã¥Ô¥ó¥°¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set pm3d clipping (112.71.7)¡£

76 ºô¥°¥é¥Õ (Fence plots)

Image figure_fenceplot
ºô¥°¥é¥Õ (fence plot) ¤Ï¡¢Ê£¿ô¤Î 2 ¼¡¸µ¥°¥é¥Õ¤ò¡¢¤½¤Î Y ºÂɸ¤Ï·¤¨¡¢¤½ ¤ì¤¾¤ì¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë X ¤Ë±è¤Ã¤Æ¤Ï¤º¤é¤·¤¿·Á¤Ç·ë¹ç¤·¤¿¤â¤Î¤Ç¤¹¡£ÅÚÂæ ¤ÎÃͤ«¤é¸Ä¡¹¤Î¥°¥é¥Õ¤Î Z ºÂɸ¤Þ¤Ç¤Î´Ö¤ÎÎΰè¤òÅɤêÄÙ¤¹¤³¤È¤Ç¡¢Y Êý¸þ¤Î À°Îó¤È Z ºÂɸ¤Î¹â¤µ¤Î°ã¤¤¤Î¸«¤¿Ìܤò¶¯Ä´¤·¤Þ¤¹¡£gnuplot ¤Ç¤³¤Î·Á¼°¤Î¥° ¥é¥Õ¤ò½ñ¤¯¤Ë¤Ï¤¤¤¯¤Ä¤«¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£ºÇ¤âñ½ã¤Ê¤Î¤Ï¡¢5 Îó¤Î·Á¼°¤Î zerrorfill ¥¹¥¿¥¤¥ë¤òÍøÍѤ¹¤ëÊýË¡¤Ç¤¹¡£i ¤Çź»ú²½¤µ¤ì¤¿Ê£¿ô¤Î¶ÊÀþ z = Fi(y) ¤¬¤¢¤ë¤È¤­¡¢splot with zerrorfill ¤Ç°Ê²¼¤Î¤è¤¦¤ÊÆþÎÏÎó¤ò»È¤¨ ¤Ðºô¥°¥é¥Õ¤ò½ñ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹:


    i y z_base z_base Fi(y)

77 ¥Ü¥¯¥»¥ë¥Ç¡¼¥¿¤Î¥â¥¶¥¤¥¯·¿¶ÊÌÌ (isosurface)

Image figure_isosurface
¤³¤Î 3 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï¡¢ÃͤÎÆþ¤Ã¤Æ¤¤¤ë¥Ü¥¯¥»¥ë³Ê»Ò¥Ç¡¼¥¿¤¬É¬Í×¤Ç ¤¹ (°Ê²¼»²¾È: set vgrid (112.103), vfill (124))¡£Í׵᤹¤ëÃÍ¥ì¥Ù¥ë¤ËÂбþ¤¹¤ëÈóÀ°¿ô ³Ê»ÒºÂɸ¤òɾ²Á¤¹¤ëºÝ¤Ï¡¢¥Ü¥¯¥»¥ë³Ê»ÒÃͤÎÀþ·ÁÊä´Ö¤ò»ÈÍѤ·¤Þ¤¹¡£¤½¤ì¤é¤Î ÅÀ¤Ï¡¢¥â¥¶¥¤¥¯·¿¶ÊÌ̤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£¤½¤Î¶ÊÌ̤ò¹½À®¤¹¤ëÀÚÊҤϡ¢ set pm3d ¤Ç¿§¡¢Æ©²á¡¢¶­³¦Â°À­¤Ê¤É¤¬À©¸æ¤Ç¤­¤ë¤è¤¦ pm3d ¿³Ñ·Á¤È¤·¤Æ ÉÁ²è¤·¤Þ¤¹¡£°ìÈ̤ˡ¢¤½¤Î¶ÊÌ̤ϡ¢¤½¤ÎÀÚÊÒ¤¬ºÙ¤¤¶­³¦¤ÇÍ¿¤¨¤é¤ì¡¢¤½¤Î¶­³¦ ¤¬ÅɤêÄÙ¤·¤Î¿§¤è¤ê¤â°Å¤¤¿§¤Ç¤¢¤ì¤Ð¡¢¸«¤¿Ìܤ¬¤ï¤«¤ê¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ç¤Ï¡¢¥â¥¶¥¤¥¯·¿¶ÊÌ̤ϻͳѷÁ¤È»°³Ñ·Á¤òº®¤¼¤Æ»È¤¤¤Þ¤¹¤¬¡¢»°³Ñ·Á¤Î ¤ß¤ò»È¤¤¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set isosurface (112.36)¡£ Îã:


    set style fill solid 0.3
    set pm3d depthorder border lc "blue" lw 0.2
    splot $helix with isosurface level 10 fc "cyan"

78 3 ¼¡¸µ¤Ç¤Î¶ÊÀþ´Ö¤ÎÅɤêÄÙ¤· (Zerrorfill)

½ñ¼°:


    splot DATA using 1:2:3:4[:5] with zerrorfill {fc|fillcolor <colorspec>}
               {lt|linetype <n>} {<line properties>}

ÉÁ²è¥¹¥¿¥¤¥ë zerrorfill ¤Ï¡¢2 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Î°ì¤Ä¤ÎÊѼï¤Î¤è¤¦¤Ê ¤â¤Î¤Ç¤¹¡£¤³¤ì¤Ï¡¢2 ¤Ä¤Î´Ø¿ô¤Î´Ö¡¢¤Þ¤¿¤ÏƱ¤¸ x, y ¤ËÂФ·¤Æ 2 ¤Ä¤Î z ¤Î ÃͤòÅÀ¤òÍ¿¤¨¤ÆÆÀ¤é¤ì¤ë¥Ç¡¼¥¿¤ÎÀÞ¤ìÀþ¤Î´Ö¤ÎÎΰè¤òÅɤêÄÙ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ 4 Îó¤« 5 Îó¤ÎÆþÎϤ¬É¬ÍפǤ¹¡£


    4 Îó:  x  y  z  zdelta
    5 Îó:  x  y  z  zlow  zhigh

Image figure_zerror
zlow ¤È zhigh ¤Î´Ö¤ÎÎΰè¤òÅɤêÄÙ¤·¡¢¤½¤Î¸å z ¤ÎÃͤΤȤ³¤í¤ËÀþ¤òÉÁ¤­¤Þ ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤ÎÀþ¤ÈÅɤêÄÙ¤·¤Ë¤ÏƱ¤¸¿§¤ò»È¤¤¤Þ¤¹¤¬¡¢¤½¤Î¿§¤Ï splot ¥³¥Þ¥ó¥É¾å¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ÅɤêÄÙ¤·¤ÎÀßÄê¤Ï¡¢Âç°èŪ¤Ê fill style ¤Î±Æ¶Á¤â¼õ¤±¤Þ¤¹¡£°Ê²¼»²¾È set style fill¡£

splot ¥³¥Þ¥ó¥É¤ËÊ£¿ô¤Î¶ÊÀþ¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¸å¤ËÉÁ¤¤¤¿¶ÊÀþ¤¬¡¢Á°¤Î¤¹¤Ù ¤Æ¤Î¶ÊÀþ¤ò±£¤·¤Æ¤·¤Þ¤¦²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£¸«¤ë¿Í¦¤Î¼êÁ°¤Î¶ÊÀþ¤Î¤ß¤¬±£¤¹ ¤è¤¦¤ËŬÀڤʿ¼¤µ½ç¤Îʤ٤«¤¨¤ò¹Ô¤¦¤Ë¤Ï¡¢set pm3d depthorder base ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£»ÄÇ°¤Ê¤¬¤é¡¢¤³¤ì¤Ï z ¤ÎÃͤËÂбþ¤¹¤ë¤¹¤Ù¤Æ¤ÎÀÞ¤ìÀþ¤ò ÉÁ¤¤¤¿¸å¤Ë¡¢¤¹¤Ù¤Æ¤ÎÎΰè¤ÎÅɤêÄÙ¤·¤ò¹Ô¤¤¤Þ¤¹¡£¤è¤Ã¤Æ¡¢ÀÞ¤ìÀþ¤ò¸«¤¨¤ë¤è ¤¦¤Ë¤·¤Æ¡¢¤«¤ÄÎΰè¤ÎÅɤêÄÙ¤·¤Î¿¼¤µ½ç¤Îʤ٤«¤¨¤ò¹Ô¤¦¤Ë¤Ï¡¢Îΰè¤ÎÅɤêÄÙ ¤·¤ÏÉôʬŪ¤ËÆ©²á (transparent) ¤µ¤»¤ë¤«¡¢Ã±¿§Åɤê (solid fill) ¤ÎÂå¤ï ¤ê¤Ë¥Ñ¥¿¡¼¥óÅɤê (pattern fill) ¤ò»ÈÍѤ¹¤ë¤È¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

°Ê²¼¤ÎºÇ½é¤Î 2 ¤Ä¤ÎÎã¤ÎÅɤêÄÙ¤·Îΰè¤Ï¡¢Æ±¤¸¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£


    splot 'data' using 1:2:3:4 with zerrorfill fillcolor "grey" lt black
    splot 'data' using 1:2:3:($3-$4):($3+$4) with zerrorfill
    splot '+' using 1:(const):(func1($1)):(func2($1)) with zerrorfill
    splot for [k=1:5] datafile[k] with zerrorfill lt black fc lt (k+1)

¤³¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢ºô¥°¥é¥Õ (fence plot) ¤òºîÀ®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ °Ê²¼»²¾È: fenceplots (76)¡£

79 ¥¢¥Ë¥á¡¼¥·¥ç¥ó (Animation)

gnuplot ¤ÎÂÐÏ÷¿½ÐÎÏ·Á¼° (qt, win, wxt, x11, aqua) ¤Ç¤Ï¤¤¤º¤ì¤â¡¢¥³¥Þ ¥ó¥É¥é¥¤¥ó¤ä¥¹¥¯¥ê¥×¥È¤«¤éϢ³¤¹¤ë¥Õ¥ì¡¼¥à¤ÎÉÁ²è¤ò¹Ô¤¦¤³¤È¤Ç¥¢¥Ë¥á¡¼¥· ¥ç¥ó¤òɽ¼¨¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¥Þ¥¦¥¹¤¬»È¤¨¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤â¡¢¤¢¤ë¼ï¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤â¤Î ¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: term sixelgd (127.32), term kittycairo (127.17)¡£

¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¥Õ¥¡¥¤¥ë¤È¤·¤ÆÊݸ¤·¤Æ¡¢¸å¤Ç¼ê¸µ¤ÇºÆÀ¸¤·¤¿¤ê Web ¥Ú¡¼ ¥¸¤ËËä¤á¹þ¤ó¤À¤ê¤Ç¤­¤ë½ÐÎÏ·Á¼°¤¬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: term gif animate (127.14.1), term webp (127.38)¡£

Îã:


    unset border; unset tics; unset key; set view equal xyz
    set pm3d border linecolor "black"


    set term webp animate delay 50
    set output 'spinning_d20.webp'
    do for [ang=1:360:2] {
        set view 60, ang
        splot 'icosahedron.dat' with polygons fc "gold"
    }
    unset output


3 ¥³¥Þ¥ó¥É (Commands)

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï gnuplot ¤¬¼õ¤±ÉÕ¤±¤ë¥³¥Þ¥ó¥É¤ò¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë ʤ٤Ƥ¤¤Þ¤¹¡£¤³¤Î¥É¥­¥å¥á¥ó¥È¤ò»æ¤Ë°õºþ¤·¤¿¤â¤Î¤ÏÁ´¤Æ¤Î¥³¥Þ¥ó¥É¤ò´Þ¤ó ¤Ç¤¤¤Þ¤¹¤¬¡¢ÂÐÏ÷¿¤Ç»²¾È¤Ç¤­¤ë¥É¥­¥å¥á¥ó¥È¤ÎÊý¤Ï´°Á´¤Ç¤Ï¤Ê¤¤²ÄǽÀ­¤¬¤¢ ¤ê¤Þ¤¹¡£¼ÂºÝ¡¢¤³¤Î¸«½Ð¤·¤Î²¼¤Ë²¿¤Î¥³¥Þ¥ó¥É¤âɽ¼¨¤µ¤ì¤Ê¤¤¥·¥¹¥Æ¥à¤¬¤¢¤ê ¤Þ¤¹¡£

¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥³¥Þ¥ó¥É̾¤È¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¶¤é¤ï¤·¤¯¤Ê¤¤ÈϰϤǾÊά ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢"plot f(x) with lines" ¤ÎÂå¤ï¤ê¤Ë "p f(x) w li" ¤È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

½ñ¼°¤Îµ­½Ò¤Ë¤ª¤¤¤Æ¡¢Ã楫¥Ã¥³ ({}) ¤ÏÄɲûØÄê¤Ç¤­¤ë°ú¿ô¤ò°ÕÌ£¤·¡¢ ½ÄËÀ (|) ¤Ï¸ß¤¤¤ËÇÓ¾Ū¤Ê°ú¿ô¤ò¶èÀÚ¤ë¤â¤Î¤È¤·¤Þ¤¹¡£

80 Break

¥³¥Þ¥ó¥É break ¤Ï¡¢do, while ʸ¤Î·«¤êÊÖ¤·¼Â¹ÔÉôʬ¤Î¥«¥Ã¥³Æâ¤Ç¤Î ¤ß°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤½¤ÎÃ楫¥Ã¥³Æâ¤Î»Ä¤ê¤ÎÌ¿Îá¤ò¥¹¥­¥Ã¥× ¤·¡¢·«¤êÊÖ¤·¤òÃæÃǤ·¡¢¤½¤ÎÊĤ¸¥«¥Ã¥³¤Î¼¡¤Îʸ¤«¤é¼Â¹Ô¤òºÆ³«¤·¤Þ¤¹¡£°Ê²¼ ¤â»²¾È: continue (84)¡£

81 Cd

cd ¥³¥Þ¥ó¥É¤Ï¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤·¤Þ¤¹¡£

½ñ¼°:


     cd '<¥Ç¥£¥ì¥¯¥È¥ê̾>'

¥Ç¥£¥ì¥¯¥È¥ê̾¤Ï°úÍÑÉä¤Ë°Ï¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

Îã:


     cd 'subdir'
     cd '..'

¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å ( \) ¤ÏÆó½Å°úÍÑÉäÆâ (") ¤Ç¤ÏÆÃÊ̤ʰÕÌ£¤ò»ý¤Ã¤Æ¤·¤Þ¤¦¤¿ ¤á¤Ë¥¨¥¹¥±¡¼¥×¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢Windows ¥æ¡¼¥¶¤Ë¤Ïñ°ì°úÍÑÉä¤ò»È ¤¦¤³¤È¤ò´«¤á¤Þ¤¹¡£Î㤨¤Ð¡¢


     cd "c:\newdata"

¤Ç¤Ï¼ºÇÔ¤·¤Þ¤¹¤¬¡¢


     cd 'c:\newdata'
     cd "c:\\newdata"

¤Ê¤é´üÂÔÄ̤ê¤ËÆ°¤¯¤Ç¤·¤ç¤¦¡£

82 Call

call ¥³¥Þ¥ó¥É¤Ï¡¢Æɤ߹þ¤à¥Õ¥¡¥¤¥ë̾¤Î¸å¤í¤Ë¡¢9 ¤Ä¤Þ¤Ç¤Î¥Ñ¥é¥á¡¼¥¿¤ò Í¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤ë¤³¤È¤ò½ü¤±¤Ð load ¥³¥Þ¥ó¥É¤ÈÅù²Á¤Ç¤¹¡£


    call "inputfile" <param-1> <param-2> <param-3> ... <param-9>

¸½ºß¤Î gnuplot ¤Ï¡¢Ê¸»úÎóÊÑ¿ô ARG0, ARG1, ..., ARG9 ¤È¡¢À°¿ôÊÑ¿ô ARGC ¤òÄ󶡤·¤Þ¤¹¡£call ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢ARG0 ¤Ë¤ÏÆþÎÏ¥Õ¥¡¥¤¥ë̾¤¬¡¢ ARGC ¤Ë¤Ï¥Ñ¥é¥á¡¼¥¿¿ô¤¬ÀßÄꤵ¤ì¡¢ARG1 ¤«¤é ARG9 ¤Ë¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÊ ¤Ù¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤ÎÃͤ¬Æɤ߹þ¤Þ¤ì¤Þ¤¹¡£

Ä̾ï¥Ñ¥é¥á¡¼¥¿ ARG1 ... ARG9 ¤Ïʸ»úÎóÃͤȤ·¤ÆÊݸ¤µ¤ì¤ë¤Î¤Ç¡¢¤½¤ì¤ò¥Þ ¥¯¥íŸ³«¤·¤Æ»²¾È¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤·¤«¤·¡¢Â¿¤¯¤Î¾ì¹ç¡¢¤½¤ì¤é¤Ï¾¤ÎÊÑ ¿ô¤ÈƱÍͤËÍøÍѤ¹¤ëÊý¤¬¤è¤ê¼«Á³¤Ç¤·¤ç¤¦¡£

¥Ñ¥é¥á¡¼¥¿ ARG1 ... ARG9 ¤Îʸ»úÎóɽ¸½¤ÈÊ¿¹Ô¤·¤Æ¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿¼«¿È¤ò ÇÛÎó ARGV[9] ¤Ë¤âÊݸ¤·¤Þ¤¹¡£°Ê²¼»²¾È: ARGV (82.1)¡£

Èó¿ä¾©: 5.0 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢<param-1> ... Åù¤ÎÆâÍƤò¡¢ÆÃÊ̤ʵ­¹æ $0, $1, ..., $9 ¤ò¥Þ¥¯¥í¤Î¤è¤¦¤ËÃÖ´¹¤¹¤ë¤³¤È¤Çɽ¸½¤·¤Æ¤¤¤Þ¤·¤¿¡£¤³¤Î¸Å ¤¤»ÅÁȤߤϡ¢¤â¤Ï¤ä¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£

»î¸³Ãʳ¬: ´Ø¿ô¥Ö¥í¥Ã¥¯ (¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤«¤é¤Î¿·µ¡Ç½) ¤Ï¡¢call ¤ËÂå¤ï ¤ë¤è¤ê½ÀÆð¤Êµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£

82.1 ARGV[ ]

call ¥³¥Þ¥ó¥É¤Ë¤è¤ê gnuplot ¥¹¥¯¥ê¥×¥È¤ËÆþ¤Ã¤¿¾ì¹ç¡¢¸Æ¤Ó½Ð¤·Â¦¤«¤é¤Î ¥Ñ¥é¥á¡¼¥¿¤Ï¡¢2 ¤Ä¤Î»ÅÁȤߤÇÍøÍѤǤ­¤Þ¤¹¡£³Æ¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¤Þ¤ºÊ¸»úÎó¤È ¤·¤ÆÊÑ¿ô ARG1, ARG2, ... ARG9 ¤ËÊݸ¤·¤Þ¤¹¡£¤µ¤é¤Ë¤½¤ì¤é¤ÏÇÛÎó ARGV[9] ¤Î³ÆÍ×ÁǤȤ·¤Æ¤âÊݸ¤·¤Þ¤¹¡£¤³¤Á¤é¤Ï¡¢¿ôÃͤÏÊ£ÁÇÊÑ¿ôÃͤȤ·¤ÆÊݸ¤·¤Þ¤¹ ¤¬¡¢¤½¤ì°Ê³°¤Ï¤¹¤Ù¤Æʸ»úÎó¤È¤·¤ÆÊݸ¤·¤Þ¤¹¡£ARGC ¤Ï¥Ñ¥é¥á¡¼¥¿¤Î¸Ä¿ô¤ò ÊÝ»ý¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°Ê²¼¤Î call ¸å¤Ë¤Ï


    call 'routine_1.gp'  1 pi "title"

°Ê²¼¤Î 3 ¤Ä¤Î°ú¿ô¤ò routine_1.gp Æâ¤Ç°Ê²¼¤ÎÃͤȤ·¤ÆÍøÍѤǤ­¤Þ¤¹:


    ARGC = 3
    ARG1 = "1"         ARGV[1] = 1.0
    ARG2 = "3.14159"   ARGV[2] = 3.14159265358979...
    ARG3 = "title"     ARGV[3] = "title"

¤³¤ÎÎã¤Ç¤Ï¡¢ARGV[1] ¤È ARGV[2] ¤Ï²Äǽ¤Ê¸Â¤ê¤ÎÀºÅÙ¤ò»ý¤ÄÉâÆ°¾®¿ôÃÍ¤È¤Ê ¤ê¤Þ¤¹¤¬¡¢ARG2 ¤Ï½ñ¼° "%g" ¤Ë¤è¤ëʸ»úÎó¤È¤·¤ÆÊݸ¤µ¤ì¤ë¤¿¤áÀºÅÙ¤¬Íî¤Á ¤Æ¤¤¤Þ¤¹¡£

ARGC ¤È¤½¤ì¤ËÂбþ¤¹¤ëÇÛÎó ARGV[ARGC] ¤Ï´Ø¿ô¥Ö¥í¥Ã¥¯¸Æ¤Ó½Ð¤·¤ÎÆâÉô¤Ç¤â ÍøÍѲÄǽ¤Ç¤¹¡£¤·¤«¤·¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¸Æ¤Ó½Ð¤·¤Ç¤Ï¡¢Ê¸»úÎóÊÑ¿ô ARG1,... ¤Ï ºî¤é¤ì¤Þ¤»¤ó¡£

82.2 Îã (Example)


    °Ê²¼¤ò call ¤¹¤ë¤È:
        MYFILE = "script1.gp"
        FUNC = "sin(x)"
        call MYFILE FUNC 1.23 "This is a plot title"
    ¸Æ¤Ó½Ð¤µ¤ì¤¿¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê:
        ARG0 ¤Ï "script1.gp"
        ARG1 ¤Ïʸ»úÎóÃÍ "sin(x)"
        ARG2 ¤Ïʸ»úÎóÃÍ "1.23"
        ARG3 ¤Ïʸ»úÎóÃÍ "This is a plot title"
        ARGC ¤Ï 3
    ¤½¤Î¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤ò¼Â¹Ô¤Ç¤­¤ë:
        plot @ARG1 with lines title ARG3
        print ARG2 * 4.56, @ARG2 * 4.56
        print "This plot produced by script ", ARG0

¤³¤ÎÎã¤Î ARG1 ¤Ïʸ»úÎó¤Ê¤Î¤Ç¡¢¤½¤ì¤Ï¥Þ¥¯¥í¤È¤·¤Æ»²¾È¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤» ¤ó¤¬¡¢ARG2 ¤Ï¥Þ¥¯¥í»²¾È¤Ç¤â (¿ôÃÍÄê¿ô¤Ë¤Ê¤ë)¡¢ÊÑ¿ô¤Î¤Þ¤Þ¤Ç¤â (ʸ»úÎó "1.23" ¤¬¼Â¿ôÃͤ˼«Æ°Åª¤ËÊÑ´¹¤µ¤ì¤¿¸å¤ÎƱ¤¸¿ôÃͤˤʤë) ¹½¤ï¤Ê¤¤¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç gnuplot ¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó -c ¤Ä¤­¤Ç¼Â¹Ô ¤¹¤ë¤³¤È¤Ç¡¢¤³¤ì¤ÈƱ¤¸¤³¤È¤òľÀܹԤ¦¤³¤È¤â¤Ç¤­¤Þ¤¹:


    gnuplot -persist -c "script1.gp" "sin(x)" 1.23 "This is a plot title"

83 Clear

clear ¥³¥Þ¥ó¥É¤Ï¡¢set terminal ¤ä set output ¤ÇÁªÂò¤·¤¿²èÌÌ¡¢½Ð ÎÏÁõÃÖ¤ò¥¯¥ê¥¢¤·¤Þ¤¹¡£¥Ï¡¼¥É¥³¥Ô¡¼ÁõÃÖ¤ËÂФ·¤Æ¤ÏÄ̾ï²þ¥Ú¡¼¥¸¤ò¹Ô¤¤¤Þ¤¹¡£

¤¤¤¯¤Ä¤«¤Î½ÐÎÏÁõÃÖ¤Ï clear ¥³¥Þ¥ó¥É¤Ç¤Ï set size ¤ÇÄêµÁ¤µ¤ì¤¿ÉÁ²è Îΰè¤Î¤ß¤ò¾Ãµî¤·¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢set multiplot ¤È¤È¤â¤Ë»ÈÍѤ¹¤ë¤³¤È¤Ç ÁÞÆþ¿Þ¤ò°ì¤Äºî¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


     set multiplot
     plot sin(x)
     set origin 0.5,0.5
     set size 0.4,0.4
     clear
     plot cos(x)
     unset multiplot

¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set multiplot (112.55), set size (112.84), set origin (112.64)¡£

84 Continue

¥³¥Þ¥ó¥É continue ¤Ï¡¢do, while ʸ¤Î·«¤êÊÖ¤·¼Â¹ÔÉôʬ¤Î¥«¥Ã¥³Æâ¤Ç ¤Î¤ß°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤½¤ÎÃ楫¥Ã¥³Æâ¤Î»Ä¤ê¤ÎÌ¿Îá¤ò¥¹¥­¥Ã ¥×¤·¡¢¼¡¤Î·«¤êÊÖ¤·¤Ë¿Ê¤ß¤Þ¤¹ (¤â¤·¥ë¡¼¥×¤Î»Ä¤ê¤¬¤¢¤ì¤Ð)¡£°Ê²¼¤â»²¾È: break (80)¡£

85 Do

½ñ¼°:


     do for <iteration-spec> {
          <commands>
          <commands>
     }

¤³¤ì¤Ï¡¢¥³¥Þ¥ó¥ÉÎó¤òÊ£¿ô²ó¼Â¹Ô¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É¤ÏÃ楫¥Ã¥³ {} ¤Ç°Ï¤ß¡¢¤« ¤Ä³«»Ï¥«¥Ã¥³ "{" ¤Ï¡¢¥­¡¼¥ï¡¼¥É do ¤ÈƱ¤¸¹Ô¤ËÃÖ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤³ ¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸Å¤¤·Á¼° (¤«¤Ã¤³¤Ê¤·) ¤Î if/else ¹½Ê¸¤È°ì½ï¤Ë»È¤¦¤³¤È¤Ï ¤Ç¤­¤Þ¤»¤ó¡£·«¤êÊÖ¤·»ØÄê <iteration-spec> ¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: iteration (19)¡£Îã:


     set multiplot layout 2,2
     do for [name in "A B C D"] {
         filename = name . ".dat"
         set title sprintf("Condition %s",name)
         plot filename title name
     }
     unset multiplot

°Ê²¼¤â»²¾È: while (126), continue (84), break (80)¡£

86 Evaluate

¥³¥Þ¥ó¥É evaluate ¤Ï¡¢Ê¸»úÎ󡢤ޤ¿¤Ï´Ø¿ô¥Ö¥í¥Ã¥¯¤Ë´Þ¤Þ¤ì¤ë gnuplot ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤½¤Îʸ»úÎóÃæ¤Ë²þ¹Ôʸ»ú¤òÆþ¤ì¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£


    evaluate "commands in a string constant"
    evaluate string_valued_function( ... arguments ... )
    evaluate $functionblock( ... arguments ... )

¤³¤ì¤Ï¡¢ÆäËƱÍͤΥ³¥Þ¥ó¥É¤Î·«¤êÊÖ¤·¤ËÍ­ÍѤǤ¹¡£

Îã:


     set_label(x, y, text) \
       = sprintf("set label '%s' at %f, %f point pt 5", text, x, y)
     eval set_label(1., 1., 'one/one')
     eval set_label(2., 1., 'two/one')
     eval set_label(1., 2., 'one/two')

gnuplot ¥³¥Þ¥ó¥É¤ò»ý¤Äʸ»úÎó¤ò¹½À®¤·¤¿¤ê¼Â¹Ô¤¹¤ë¾¤Î»ÅÁȤߤˤĤ¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: function blocks (89), substitution macros (29.2)¡£

87 Exit


    exit
    exit message "¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸Ê¸»úÎó"
    exit status <À°¿ô¤Î¥¨¥é¡¼¥³¡¼¥É>

exit ¤È quit ¤Îξ¥³¥Þ¥ó¥É¤Ï END-OF-FILE ʸ»ú (Ä̾ï Ctrl-D) ƱÍÍ¡¢ ¸½ºß¤ÎÆþÎÏ¥¹¥È¥ê¡¼¥à¡¢¤¹¤Ê¤ï¤ÁüËö¤ÎÂÐÏää¥Ñ¥¤¥×ÆþÎÏ¡¢¥Õ¥¡¥¤¥ëÆþÎÏ (¥Ñ ¥¤¥×) ¤«¤é¤ÎÆþÎϤò½ªÎ»¤µ¤»¤Þ¤¹¡£ÆþÎÏ¥¹¥È¥ê¡¼¥à¤¬Æþ¤ì»Ò (³¬ÁØŪ¤Ê load ¤Î¥¹¥¯¥ê¥×¥È¤Ç) ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢Æɤ߹þ¤ß¤Ï¿Æ¤Î¥¹¥È¥ê¡¼¥à¤Ç·Ñ ³¤µ¤ì¤Þ¤¹¡£¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥¹¥È¥ê¡¼¥à¤¬ÊĤ¸¤é¤ì¤ë¤È¡¢¥×¥í¥°¥é¥à¤Ï¤½¤ì¼« ¿È½ªÎ»¤·¤Þ¤¹¡£

¥³¥Þ¥ó¥É exit gnuplot ¤Ï¡¢Ä¾¤Á¤Ë¡¢Ìµ¾ò·ï¤Ë¡¢¤½¤·¤ÆÎ㤨ÆþÎÏ¥¹¥È¥ê¡¼¥à ¤¬Â¿Ãʳ¬¤Ë¥Í¥¹¥È¤µ¤ì¤Æ¤¤¤Æ¤â¡¢gnuplot ¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢³«¤«¤ì ¤Æ¤¤¤¿Á´¤Æ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤Ï¤­¤ì¤¤¤Ë´°Á´¤Ê·Á¤Ç¤ÏÊĤ¸¤é¤ì¤Ê¤¤²ÄǽÀ­¤¬¤¢¤ê ¤Þ¤¹¡£»ÈÍÑÎã:


     bind "ctrl-x" "unset output; exit gnuplot"

¥³¥Þ¥ó¥É exit error "error message" ¤Ï¡¢µ¿»÷¥×¥í¥°¥é¥à¥¨¥é¡¼¤ò¹Ô¤¤¤Þ ¤¹¡£ÂÐÏ÷¿¥â¡¼¥É¤Ç¤Ï¡¢¤½¤Î¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¡¢¤¹¤Ù¤Î¥Í¥¹¥È¤µ¤ì¤¿ ¥ë¡¼¥×¤ä call ¤òÃæÃǤ·¤Æ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ëµ¢¤ê¤Þ¤¹¡£ÈóÂÐÏ÷¿¥â¡¼¥É¤Ç¤Ï¡¢ ¥×¥í¥°¥é¥à¤ò½ªÎ»¤·¤Þ¤¹¡£

gnuplot ¤¬½ªÎ»¤·¥·¥§¥ë¤ÎÀ©¸æ¤ËÌá¤ë¾ì¹ç¡¢¤½¤ÎÊÖ¤êÃͤϰÕÌ£¤Î¤Ê¤¤¤â¤Î¤Ë¤Ê ¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤Î¥³¥Þ¥ó¥É¤ò°Ê²¼¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤ì¤Ð¡¢¥·¥§¥ë¤ËÆÃÄê ¤ÎÃͤòÊÖ¤¹¤³¤È¤¬²Äǽ¤Ç¤¹¡£


    exit status <value>

¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£

88 Fit

¥³¥Þ¥ó¥É fit ¤Ï¡¢Marquardt-Levenberg Ë¡¤Ë¤è¤ëÈóÀþ·ÁºÇ¾®¼«¾èË¡ (NLLS) ¤òÍѤ¤¤Æ¡¢¥Ç¡¼¥¿ÅÀ¤Î½¸¹ç¤Ë¥æ¡¼¥¶¤¬Í¿¤¨¤ë¼°¤òÅö¤Æ¤Ï¤á¤Þ¤¹¡£ÆÈΩÊÑ¿ô¤Ï 12 ¤Þ¤Çµö¤µ¤ì¤Æ¤¤¤Æ¡¢½¾Â°ÊÑ¿ô¤Ï¾ï¤Ë 1 ¤Ä¤Ç¡¢Ç¤°Õ¸Ä¿ô¤Î¥Ñ¥é¥á¡¼¥¿¤òÅö¤Æ ¤Ï¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤µ¤é¤ËÄɲäǡ¢¥Ç¡¼¥¿ÅÀ¤Î½Å¤ßÉÕ¤±ÍÑ¤Ë¸íº¹É¾²Á¤òÆþ ÎϤ¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£

fit ¤ÎºÇ¤â´ðËÜŪ¤Ê»ÈÍÑË¡¤Ï¡¢°Ê²¼¤Îñ½ã¤ÊÎ㤬¼¨¤·¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ç¡¢¥Õ ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à x ¤È y ¤Î·×¬ÃÍ (measured) ¤Î½¸¹ç¤Ï¡¢´Ø¿ô y = f(x) ¤Î¥â¥Ç¥ë²½¤Ë»È¤¤¤Þ¤¹¡£


     f(x) = a + b*x + c*x**2
     fit f(x) 'measured.dat' using 1:2 via a,b,c
     plot 'measured.dat' u 1:2, f(x)

½ñ¼°:


     fit {<ranges>} <expression>
         '<datafile>' {datafile-modifiers}
         {{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}}
         via '<parameter file>' | <var1>{,<var2>,...}

ÈÏ°Ï (xrange, yrange Åù) ¤Ï¡¢Åö¤Æ¤Ï¤á¤Ë»ÈÍѤ¹¤ë¥Ç¡¼¥¿¤òÀ©¸Â¤¹¤ëÌÜŪ¤Ç »È¤¦¤³¤È¤¬¤Ç¤­¡¢¤½¤ÎÈϰϤòĶ¤¨¤¿¥Ç¡¼¥¿¤Ï̵»ë¤·¤Þ¤¹¡£¤½¤Î½ñ¼°¤Ï plot ¥³¥Þ¥ó¥ÉƱÍÍ


     [{dummy_variable=}{<min>}{:<max>}],

¤Ç¤¹¡£°Ê²¼»²¾È: plot ranges (99.6)¡£

<expression> ¤Ï¡¢Ä̾ï¤Ï¤¢¤é¤«¤¸¤á¥æ¡¼¥¶ÄêµÁ¤µ¤ì¤¿ f(x) ¤Þ¤¿¤Ï f(x,y) ¤Î·Á¤Î´Ø¿ô¤Ç¤¹¤¬¡¢gnuplot ¤ÇÍ­¸ú¤Ê¤É¤ó¤Ê¿ô¼°¤Ç¤â»ØÄê¤Ç¤­¤Þ¤¹¡£¤¿¤À¤· ¼Â¿ôÃÍ´Ø¿ô¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ÆÈΩÊÑ¿ô¤Î̾Á°¤Ï¡¢¥³¥Þ¥ó¥É set dummy ¤ÇÀßÄꤹ¤ë¤«¡¢fit ¤ÎÈÏ°Ï»ØÄêÉô ʬ (<rangse>) ¤ÇÀßÄꤷ¤Þ¤¹ (°Ê²¼¤ò»²¾È)¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ºÇ½é¤Î 2 ¤Ä¤Ï x, y ¤È¤Ê¤ê¤Þ¤¹¡£ ¤µ¤é¤Ë¡¢¤½¤Î¿ô¼°¤Ï¡¢Åö¤Æ¤Ï¤á¤Îºî¶È¤Ë¤è¤ê·èÄꤹ¤ëÃͤò»ý¤Ä 1 ¤Ä°Ê¾å¤ÎÊÑ ¿ô (¥Ñ¥é¥á¡¼¥¿) ¤Ë°Í¸¤¹¤Ù¤­¤Ç¤¹¡£

<datafile> ¤Ï plot ¥³¥Þ¥ó¥É¤ÈƱÍͤ˰·¤ï¤ì¤Þ¤¹¡£plot datafile ¤Î½¤ ¾þ»Ò (using, every,...) ¤Ï¡¢smooth ¤ò½ü¤¤¤Æ¡¢Á´¤Æ fit ¤Ë»È¤¦¤³ ¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: plot datafile (99.3)¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤϡ¢plot ¥³¥Þ¥ó¥É¤Ë»ÈÍѤ¹¤ë¤Î¤ÈƱ¤¸ using »ØÄê¤ò »È¤¦¤³¤È¤Ç½ÀÆð¤Ë²ò¼á¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢ÆÈΩÊÑ¿ô x ¤ò2 ÎóÌÜ ¤È 3 ÎóÌܤÎϤȤ·¤ÆÀ¸À®¤·¡¢z ¤ÎÃͤò 6 ÎóÌܤ«¤é¼è¤ê¡¢½Å¤ß¤ò 1 ¤È¤·¤¿¤¤ ¾ì¹ç¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:


     fit ... using ($2+$3):6

using »ØÄ꤬¤Ê¤¤¾ì¹ç¡¢fit ¤Ï°ÅÌÛ¤ËÆÈΩÊÑ¿ô¤Ï 1 ¤Ä¤À¤±¤È²¾Äꤷ¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¼«¿È¡¢¤Þ¤¿¤Ï using »ØÄ꤬ 1 Îó¤À¤±¤Î¥Ç¡¼¥¿¤ò»ý¤Ä¾ì¹ç¡¢¤½¤Î¹ÔÈÖ ¹æ¤òÆÈΩÊÑ¿ôÃͤȤ·¤Æ»ÈÍѤ·¤Þ¤¹¡£ using »ØÄê¤òÍ¿¤¨¤¿¾ì¹ç¡¢ºÇÂç 12 ¸Ä (»ØÄꤷ¤Æ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤ì¤Ð¤µ¤é ¤Ë¤½¤ì°Ê¾å) ¤ÎÆÈΩÊÑ¿ô¤òÍøÍѤǤ­¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó unitweights (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿ÅÀ¤¬Åù¤· ¤¤½Å¤ß¤ò»ý¤Ä¤È¤ß¤Ê¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥­¡¼¥ï¡¼¥É error ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç Êѹ¹¤Ç¤­¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é 1 ¤Ä°Ê¾å¤ÎÊÑ¿ô¤Î¸íº¹É¾²Á¤òÆɤ߹þ¤ß¡¢ ¤½¤Î¸íº¹É¾²Á¤òÂбþ¤¹¤ëÊÑ¿ôÃͤÎɸ½àÊк¹ s ¤È¤ß¤Ê¤·¡¢³Æ¥Ç¡¼¥¿¤Ë 1/s**2 ¤Î½Å¤ß¤ò·×»»¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£

ÆÈΩÊÑ¿ô¤Î¸íº¹É¾²Á¤Ë¤ª¤¤¤Æ¡¢¤½¤Î½Å¤ß¤Ë¤Ï¡¢"Í­¸úʬ»¶Ë¡" (effective variance method; Jay Orear, Am. J. Phys., Vol. 50, 1982) ¤Ë½¾¤Ã¤Æ¡¢¤µ ¤é¤ËÅö¤Æ¤Ï¤á´Ø¿ô¤ÎÈùʬ·¸¿ô¤ò¤«¤±¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É errors ¤Ë¤Ï¡¢¤½¤Î¸å¤í¤Ë¡¢ÆþÎϤ¬¤É¤ÎÊÑ¿ô¤Î¸íº¹¤Ç¤¢¤ë¤Î¤«¤ò ¼¨¤¹¥³¥ó¥Þ¶èÀÚ¤ê¤Î 1 ¤Ä°Ê¾å¤ÎÊÑ¿ô̾¤Î¥ê¥¹¥È¤¬ÉÕ¤­¤Þ¤¹¡£½¾Â°ÊÑ¿ô z ¤Ï¾ï ¤Ë¤½¤ÎÃæ¤Ë¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¤¬¡¢ÆÈΩÊÑ¿ô¤Ïɬ¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¤½¤Î¥ê¥¹¥È¤Î³ÆÊÑ¿ô¤ËÂФ·¡¢¥Õ¥¡¥¤¥ë¤«¤é¤½¤Îʬ¤Î¡¢³ÆÊÑ¿ô¤Î¸íº¹É¾²Á¤ò»ý¤Ä ÄɲäÎÎó¤òÆɤ߹þ¤ß¤Þ¤¹¡£·«¤êÊÖ¤·¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢using »ØÄê¤Ë¤è¤ê½ÀÆð¤Ê ²ò¼á¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤è¤Ã¤Æ¡¢ÆÈΩÊÑ¿ô¤Î¿ô¤Ï°ÅÌۤˡ¢using »ØÄêÆâ¤ÎÎó¤Î¿ô¤«¤é 1 ¤ò°ú¤¤¤Æ (½¾Â°ÊÑ¿ôʬ)¡¢¤µ¤é¤Ë errors »ØÄêÆâ¤ÎÊÑ¿ô¤Î¸Ä¿ô¤ò°ú¤¤¤¿¿ô¤Ë¤Ê¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

Îã¤È¤·¤Æ¡¢2 ¤Ä¤ÎÆÈΩÊÑ¿ô¤¬¤¢¤ê¡¢¤½¤·¤Æ 1 ¤ÄÌܤÎÆÈΩÊÑ¿ô¤È½¾Â°ÊÑ¿ô¤Î¸í º¹¥Ç¡¼¥¿¤¬¤¢¤ë¾ì¹ç¤Ï¡¢errors x,z »ØÄê¤È 5 Îó¤Î using »ØÄê¤ò»È¤¦¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï x:y:z:sx:sz ¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹ (x, y ¤ÏÆÈΩÊÑ ¿ô¡¢z ¤¬½¾Â°ÊÑ¿ô¡¢sx, sz ¤Ï x, z ¤Îɸ½àÊк¹)¡£

errors »ØÄê¤Î¤Á¤ç¤Ã¤È¤·¤¿Î¬µ­Ë¡¤â 2,3 ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: yerrors (ÆÈΩÊÑ¿ô¤¬ 1 Î󤢤ëÅö¤Æ¤Ï¤áÍÑ)¡¢ zerrors (¤è¤ê°ìÈ̤ξì¹ç) ¤Ï¡¢¤¤¤º¤ì¤â errors z ¤ÈƱÃͤǡ¢1 Îó¤À¤± Äɲäν¾Â°ÊÑ¿ôÍÑ¤Î¸íº¹Î󤬤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹¡£

xyerrors ¤Ï¡¢ÆÈΩÊÑ¿ô¤Ï 1 Îó¤Ç¡¢¤½¤ÎÆÈΩÊÑ¿ô¤È½¾Â°ÊÑ¿ô¤ÎξÊý¤Î 2 Îó ¤Î¸íº¹Îó¤¬Äɲ䵤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢x ¤È y ¤Î¸íº¹¤Ï Orear ¤ÎÍ­¸úʬ»¶Ë¡ (effective variance method) ¤Ç½èÍý¤µ¤ì¤Þ¤¹¡£

yerror ¤È xyerror ¤Î·Á¼°¤ª¤è¤Ó²ò¼á¤Ï¡¢¤½¤ì¤¾¤ì 2 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë ¤Î yerrorlines ¤È xyerrorlines ¤ËƱÅù¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¥³¥Þ¥ó¥É set fit v4 ¤ò»ÈÍѤ¹¤ë¤È¡¢fit ¤Î¥³¥Þ¥ó¥É½ñ¼°¤Ï gnuplot ¥Ð ¡¼¥¸¥ç¥ó 4 ¤È¸ß´¹¤Î½ñ¼°¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢using ¤Ë¤Ï¡¢ÆÈΩÊÑ¿ô¤¬ 2 ¤Ä°Ê¾å¤Ê¤é¤Ð¡¢ÆÈΩÊÑ¿ô¤Î¿ô¤è¤ê 2 ¤Ä (z ¤È s) ¿¤¤»ØÄ꤬ɬÍפǡ¢ gnuplot ¤Ï¡¢using »ØÄê¤ÇÍ¿¤¨¤é¤ì¤¿Îó¤Î¿ô¤Ë±þ¤¸¤Æ¡¢°Ê²¼¤Î½ñ¼°¤Ë½¾¤¤ ¤Þ¤¹:


     z                           # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (¹ÔÈÖ¹æ)
     x:z                         # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (Âè 1 Îó)
     x:z:s                       # ÆÈΩÊÑ¿ô¤Ï 1 ¤Ä (Á´Éô¤Ç 3 Îó)
     x:y:z:s                     # ÆÈΩÊÑ¿ô¤Ï 2 ¤Ä (Á´Éô¤Ç 4 Îó)
     x1:x2:x3:z:s                # ÆÈΩÊÑ¿ô¤Ï 3 ¤Ä (Á´Éô¤Ç 5 Îó)
     x1:x2:x3:...:xN:z:s         # ÆÈΩÊÑ¿ô¤Ï N ¸Ä (Á´Éô¤Ç N+2 Îó)

¤³¤ì¤Ï¡¢2 ¤Ä°Ê¾å¤ÎÆÈΩÊÑ¿ô¤Ç fit ¤ò¤¹¤ë¾ì¹ç¡¢z-¸íº¹ s ¤òÍ¿¤¨¤ëɬÍפ¬¤¢ ¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£½Å¤ß¤ò 1 ¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢¤½¤ì ¤ò¡¢Î㤨¤Ð x:y:z:(1) ¤Î¤è¤¦¤Ê½ñ¼°¤ò using ¤Ë»ØÄꤹ¤ë¤³¤È¤ÇÌÀ¼¨Åª¤ËÍ¿¤¨ ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

²¾ÊÑ¿ô̾¤Ï¡¢²¼¤Ç¾Ò²ð¤¹¤ë¤è¤¦¤ËÈÏ°Ï»ØÄê¤Ç»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ºÇ ½é¤ÎÈÏ°Ï¤Ï using »ØÄê¤ÎºÇ½é¤Î¤â¤Î¤ËÂбþ¤·¡¢°Ê²¼Æ±ÍͤǤ¹¡£½¾Â°ÊÑ¿ô¤Ç ¤¢¤ë z ¤ÎÈÏ°Ï»ØÄê¤â¤Ç¤­¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢f(x,...) ¤ÎÃͤò¤½¤ÎÈϰϳ°¤Ë¤·¤Æ ¤·¤Þ¤¦¤è¤¦¤Ê¥Ç¡¼¥¿ÅÀ¤¬¡¢»Äº¹¤òºÇ¾®²½¤¹¤ë¤³¤È¤Ë¤Ï´óÍ¿¤·¤Ê¤¤¾ì¹ç¤ËÍ­¸ú¤Ç ¤¹¡£

Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤âÊ£¿ô¤Î 1 ÊÑ¿ô´Ø¿ô¤ËƱ»þ¤ËÅö¤Æ¤Ï¤á¤ë¤³¤È¤â¡¢y ¤ò '²¾ ÊÑ¿ô' ¤È¤¹¤ì¤Ð²Äǽ¤Ç¤¹¡£Î㤨¤Ð¥Ç¡¼¥¿¹ÔÈÖ¹æ¤ò»È¤¤¡¢2 ÊÑ¿ô´Ø¿ô¤Ø¤ÎÅö¤Æ¤Ï ¤á¡¢¤È¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: fit multi-branch (88.6)¡£

via »ØÄê»Ò¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤ÎºÇŬ²½¤ò¡¢Ä¾ÀܹԤ¦¤«¡¢¤Þ¤¿¤Ï¥Ñ¥é¥á¡¼¥¿¥Õ¥¡ ¥¤¥ë¤ò»²¾È¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¹Ô¤¦¤«¤ò»ØÄꤷ¤Þ¤¹¡£

Îã:


     f(x) = a*x**2 + b*x + c
     g(x,y) = a*x**2 + b*y**2 + c*x*y
     set fit limit 1e-6
     fit f(x) 'measured.dat' via 'start.par'
     fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
     fit f(x) './data/trash.dat' using 1:2:3 yerror via a, b, c
     fit g(x,y) 'surface.dat' using 1:2:3 via a, b, c
     fit a0 + a1*x/(1 + a2*x/(1 + a3*x)) 'measured.dat' via a0,a1,a2,a3
     fit a*x + b*y 'surface.dat' using 1:2:3 via a,b
     fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3 via a,b


     fit [][][t=*:*] a*x + b*y + c*t 'foo.dat' using 1:2:3:4 via a,b,c


     set dummy x1, x2, x3, x4, x5
     h(x1,x2,x3,x4,s5) = a*x1 + b*x2 + c*x3 + d*x4 + e*x5
     fit h(x1,x2,x3,x4,x5) 'foo.dat' using 1:2:3:4:5:6 via a,b,c,d,e

È¿Éü¤Î¸Ä¡¹¤Î¥¹¥Æ¥Ã¥×¤Î¸å¤Ç¡¢Åö¤Æ¤Ï¤á¤Î¸½ºß¤Î¾õÂ֤ˤĤ¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤¬ ²èÌ̤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£¤½¤·ºÇ½é¤ÈºÇ¸å¤Î¾õÂ֤˴ؤ¹¤ëƱ¤¸¾ðÊó¤¬ "fit.log" ¤È¤¤¤¦¥í¥°¥Õ¥¡¥¤¥ë¤Ë¤â½ñ¤­½Ð¤µ¤ì¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤ÏÁ°¤ÎÅö¤Æ¤Ï¤á¤ÎÍúÎò ¤ò¾Ã¤µ¤Ê¤¤¤è¤¦¤Ë¾ï¤ËÄɲ䵤ì¤Æ¤¤¤­¤Þ¤¹¡£¤³¤ì¤Ï˾¤à¤Ê¤éºï½ü¡¢¤¢¤ë¤¤¤ÏÊÌ ¤Ê̾Á°¤Ë¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥É set fit logfile ¤ò»È¤Ã¤Æ¥í¥°¥Õ¥¡¥¤¥ë¤Î̾ Á°¤òÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

set fit errorvariables ¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢³ÆÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤Ï ¤½¤Î¥Ñ¥é¥á¡¼¥¿¤È»÷¤¿Ì¾Á° ("_err" ¤¬Äɲ䵤줿̾Á°) ¤ÎÊÑ¿ô¤ËÊݸ¤µ¤ì¤Þ ¤¹¤Î¤Ç¡¢¤½¤Î¸íº¹¤ò¤½¤Î¸å¤Î·×»»¤ÎÆþÎϤȤ·¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

set fit prescale ¤È¤·¤¿¾ì¹ç¡¢Åö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤ò¡¢¤½¤ì¤é¤Î½é´üÃͤ« ¤é¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÂ礭¤µ¤Ë¤«¤Ê¤ê°ã¤¤ ¤¬¤¢¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤¬¤è¤êÁ᤯¡¢¤è¤ê¿®Íê À­¤Î¤¢¤ëÃͤ˼ý«¤µ¤»¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

Åö¤Æ¤Ï¤á¤ÎÈ¿Éü¤Ï Ctrl-C (wgnuplot ¤Ç¤Ï Ctrl-Break) ¤ò²¡¤¹¤³¤È¤ÇÃæÃÇ¤Ç ¤­¤Þ¤¹¡£¸½ºß¤ÎÈ¿Éü¤¬Àµ¾ï¤Ë½ªÎ»¤·¤¿¸å¡¢°Ê²¼¤Î¤¤¤º¤ì¤«¤òÁª¤Ö¤³¤È¤¬¤Ç¤­¤Þ ¤¹: (1) Åö¤Æ¤Ï¤á¤ò»ß¤á¤Æ¸½ºß¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòºÎÍѤ¹¤ë (2) Åö¤Æ¤Ï¤á¤ò³¹Ô¤¹¤ë (3) set fit script ¤«¡¢´Ä¶­ÊÑ¿ô FIT_SCRIPT ¤Ç»ØÄꤷ¤¿ gnuplot ¥³ ¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï replot ¤Ç¡¢¤â¤·¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á´Ø ¿ô¤ò°ì¤Ä¤Î¥°¥é¥Õ¤Ë¤¢¤é¤«¤¸¤áÉÁ²è¤·¤Æ¤¢¤ì¤Ð¡¢¸½ºß¤ÎÅö¤Æ¤Ï¤á¤Î¾õÂÖ¤òɽ¼¨ ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

fit ¤¬½ªÎ»¤·¤¿¸å¤Ï¡¢ºÇ¸å¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÊݸ¤¹¤ë¤Î¤Ë save fit ¥³ ¥Þ¥ó¥É¤ò»È¤¤¤Þ¤¹¡£¤½¤ÎÃͤϺƤӥѥé¥á¡¼¥¿¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: save fit (111)¡£

88.1 ¥Ñ¥é¥á¡¼¥¿¤ÎÄ´À° (adjustable parameters)

via ¤Ï¥Ñ¥é¥á¡¼¥¿¤òÄ´À᤹¤ë¤¿¤á¤Î 2 ¤Ä¤ÎÊýË¡¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£°ì¤Ä¤Ï ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éľÀܻؼ¨¤¹¤ë¤â¤Î¤Ç¡¢¤â¤¦°ì¤Ä¤Ï¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤ò »²¾È¤·¤Æ´ÖÀÜŪ¤Ë¹Ô¤¦¤â¤Î¤Ç¤¹¡£¤³¤Î 2 ¤Ä¤Ï½é´üÃͤÎÀßÄê¤Ç°ã¤Ã¤¿ÊýË¡¤ò¼è ¤ê¤Þ¤¹¡£

Ä´À°¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤Ï¡¢via ¥­¡¼¥ï¡¼¥É¤Î¸å¤í¤Ë¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿ÊÑ¿ô̾ ¤Î¥ê¥¹¥È¤ò½ñ¤¯¤³¤È¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤ÊÑ¿ô¤Ï½é´üÃÍ 1.0 ¤È ¤·¤Æºî¤é¤ì¤Þ¤¹¡£¤·¤«¤·Åö¤Æ¤Ï¤á¤Ï¡¢ÊÑ¿ô¤Î½é´üÃͤ¬¤¢¤é¤«¤¸¤áŬÀÚ¤ÊÃͤËÀß Äꤵ¤ì¤Æ¤¤¤ëÊý¤¬Â¿Ê¬Â®¤¯¼ý«¤¹¤ë¤Ç¤·¤ç¤¦¡£

¥Ñ¥é¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤ò¡¢¸ÄÊÌ¤Ë 1 ¹Ô¤Ë°ì¤Ä¤º¤Ä¡¢½é´üÃͤò ¼¡¤Î¤è¤¦¤Ê·Á¤Ç»ØÄꤷ¤Æ½ñ¤­¤Þ¤¹¡£


     ÊÑ¿ô̾ = ½é´üÃÍ

'#' ¤Ç»Ï¤Þ¤ë¥³¥á¥ó¥È¹Ô¤ä¶õ¹Ô¤âµö¤µ¤ì¤Þ¤¹¡£ÆÃÊ̤ʷÁ¼°¤È¤·¤Æ


     ÊÑ¿ô̾ = ½é´üÃÍ       # FIXED

¤Ï¡¢¤³¤ÎÊÑ¿ô¤¬¸ÇÄꤵ¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¡¢¤½¤ì¤Ï¤³¤Î¥Õ¥¡¥¤ ¥ë¤Ç½é´ü²½¤µ¤ì¤Þ¤¹¤¬¡¢Ä´Àá¤Ï¤µ¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢fit ¤Ç¥ì¥Ý¡¼¥È¤µ¤ì¤ë ÊÑ¿ô¤ÎÃæ¤Ç¡¢¤É¤ì¤¬¸ÇÄꤵ¤ì¤¿ÊÑ¿ô¤Ç¤¢¤ë¤«¤òÌÀ¼¨¤¹¤ë¤Î¤ËÍ­ÍѤǤ·¤ç¤¦¡£¤Ê ¤ª¡¢# FIXED ¤È¸À¤¦¥­¡¼¥ï¡¼¥É¤Ï¸·Ì©¤Ë¤³¤Î·Á¤Ç¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

88.2 Fit ¤Î³µÎ¬ (fit beginners_guide)

fit ¤Ï¡¢Í¿¤¨¤é¤ì¤¿¥Ç¡¼¥¿ÅÀ¤òÍ¿¤¨¤é¤ì¤¿¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ë¤â¤Ã¤È¤âÎɤ¯ Åö¤Æ¤Ï¤á¤ë¤è¤¦¤Ê¥Ñ¥é¥á¡¼¥¿¤ò¸«¤Ä¤±¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ÎÅö¤Æ¤Ï¤á¤Ï¡¢ Ʊ¤¸¾ì½ê¤Ç¤ÎÆþÎϥǡ¼¥¿ÅÀ¤È´Ø¿ôÃͤȤμ«¾è¸íº¹¡¢¤¢¤ë¤¤¤Ï»Äº¹ (SSR:Sum of the Squared Residuals) ¤ÎϤò´ð¤ËȽÄꤵ¤ì¤Þ¤¹¡£¤³¤ÎÎ̤ÏÄ̾ï¦Ö(¥«¥¤) ¼«¾è¤È¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï SSR ¤ò ºÇ¾®²½¤¹¤ë¤³¤È¤ò¤·¤è¤¦¤È ¤·¤Þ¤¹¡£¤â¤¦¾¯¤·¾Ü¤·¤¯¸À¤¦¤È¡¢¥Ç¡¼¥¿¸íº¹¤Î½Å¤ß¤Ä¤­»Äº¹¤Î¼«¾èÏ (WSSR) ¤ÎºÇ¾®²½¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤³¤Ç¡¢»Äº¹¤Ï¡¢Æó¾è¤¹¤ëÁ°¤ËÆþÎϥǡ¼¥¿¸íº¹¤Ç ½Å¤ß¤Å¤±¤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: fit error_estimates (88.3)¡£

¤³¤ì¤¬¡¢(ÈóÀþ·Á) ºÇ¾®¼«¾èÅö¤Æ¤Ï¤áË¡¤È¸Æ¤Ð¤ì¤ë¤æ¤¨¤ó¤Ç¤¹¡£ÈóÀþ·Á ¤¬ ²¿¤ò°ÕÌ£¤·¤Æ¤¤¤ë¤Î¤«¤ò¸«¤ë¤¿¤á¤ÎÎã¤ò¾Ò²ð¤·¤Þ¤¹¤¬¡¢¤½¤ÎÁ°¤Ë¤¤¤¯¤Ä¤«¤Î ²¾Äê¤Ë¤Ä¤¤¤Æ½Ò¤Ù¤Æ¤ª¤­¤Þ¤¹¡£¤³¤³¤Ç¤Ï´Êñ¤Î¤¿¤á¡¢1 ÊÑ¿ô¤Î¥æ¡¼¥¶¡¼ÄêµÁ ´Ø¿ô¤Ï z=f(x), 2 ÊÑ¿ô¤Î´Ø¿ô¤Ï z=f(x,y) ¤Î¤è¤¦¤Ë¤·¡¢¤¤¤º¤ì¤â½¾Â°ÊÑ¿ô¤È ¤·¤Æ z ¤òÍѤ¤¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿¤È¤Ï fit ¤¬Ä´À°¤·¤ÆŬÀÚ¤ÊÃͤò ·èÄꤹ¤ë¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤Ç¡¢´Ø¿ô¤ÎÄêµÁ¼°Ãæ¤Î̤Ãοô¤Ç¤¹¡£¤³¤³¤Ç¸À¤¦¡¢Àþ·Á À­/ÈóÀþ·ÁÀ­¤È¤Ï¡¢½¾Â°ÊÑ¿ô z ¤È fit ¤¬Ä´À°¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤È¤Î´Ø·¸¤ËÂÐ ¤¹¤ë¤â¤Î¤Ç¤¢¤ê¡¢z ¤ÈÆÈΩÊÑ¿ô x (¤Þ¤¿¤Ï x ¤È y) ¤È¤Î´Ø·¸¤Î¤³¤È¤Ç¤Ï¤¢¤ê ¤Þ¤»¤ó (¿ô³ØŪ¤Ë½Ò¤Ù¤ë¤È¡¢Àþ·ÁºÇ¾®¼«¾èÌäÂê¤Ç¤Ï¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤Î¥Ñ¥é¥á¡¼ ¥¿¤Ë¤è¤ë 2 ³¬ (¤½¤·¤Æ¹¹¤Ë¹â³¬¤Î) Ƴ´Ø¿ô¤Ï 0¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹)¡£

Àþ·ÁºÇ¾®¼«¾èË¡¤Ç¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤Ïñ½ã¤Ê´Ø¿ô¤ÎϤǤ¢¤ê¡¢¤½¤ì¤¾¤ì¤Ï°ì ¤Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÄê¿ôÇܤǾ¤Î¥Ñ¥é¥á¡¼¥¿¤ò´Þ¤Þ¤Ê¤¤¹à¤Ë¤Ê¤ê¤Þ¤¹¡£ÈóÀþ·ÁºÇ ¾®¼«¾èË¡¤Ç¤Ï¡¢¤è¤êÊ£»¨¤Ê´Ø¿ô¤ò°·¤¤¡¢¥Ñ¥é¥á¡¼¥¿¤ò¿§¡¹¤Ê»È¤¤Êý¤ò¤·¤Þ¤¹¡£ ¥Õ¡¼¥ê¥¨µé¿ô¤ÏÀþ·Á¤ÈÈóÀþ·Á¤ÎºÇ¾®¼«¾èË¡¤Î°ã¤¤¤òɽ¤¹°ì¤Ä¤ÎÎã¤Ç¤¹¡£¥Õ¡¼¥ê ¥¨µé¿ô¤Ç¤Ï°ì¤Ä¤Î¹à¤Ï


    z=a*sin(c*x) + b*cos(c*x).

¤Î¤è¤¦¤Ëɽ¤µ¤ì¤Þ¤¹¡£¤â¤·¡¢a ¤È b ¤¬Ì¤ÃΤʥѥé¥á¡¼¥¿¤Ç c ¤ÏÄê¿ô¤À¤È¤¹¤ì¤Ð ¥Ñ¥é¥á¡¼¥¿¤Îɾ²Á¤ÏÀþ·ÁºÇ¾®¼«¾èÌäÂê¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢c ¤¬Ì¤ÃΤʥѥé¥á¡¼ ¥¿¤Ê¤é¤Ð¤½¤ì¤ÏÈóÀþ·ÁÌäÂê¤Ë¤Ê¤ê¤Þ¤¹¡£

Àþ·Á¤Î¾ì¹ç¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÃͤÏÈæ³ÓŪ´Êñ¤ÊÀþ·ÁÂå¿ô¤ÎľÀÜË¡¤Ë¤è¤Ã¤Æ·èÄê¤Ç ¤­¤Þ¤¹¡£¤·¤«¤·¡¢'gnuplot' ¤¬»ÈÍѤ¹¤ëÈ¿ÉüË¡¤Ï¡¢¤½¤ÎÆÃÊ̤ÊÀþ·Á¤Î¾ì¤â´Þ¤á ¤Æ¡¢¤è¤ê°ìÈÌŪ¤ÊÈóÀþ·Á¤ÎÌäÂê¤ò²ò¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£fit ¤Ï¸¡º÷¤ò¹Ô¤¦¤³ ¤È¤ÇºÇ¾®Ãͤòõ¤½¤¦¤È¤·¤Þ¤¹¡£È¿Éü¤Î³Æ¥¹¥Æ¥Ã¥×¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¿·¤·¤¤ÃͤΠÁȤËÂФ·¤Æ WSSR ¤ò·×»»¤·¤Þ¤¹¡£Marquardt-Levenberg ¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¼¡¤Î ¥¹¥Æ¥Ã¥×¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÁªÂò¤·¤Þ¤¹¡£¤½¤·¤Æ¤½¤ì¤Ï¤¢¤é¤«¤¸¤áÍ¿¤¨¤¿´ð½à¡¢ ¤¹¤Ê¤ï¤Á¡¢(1) Åö¤Æ¤Ï¤á¤¬ "¼ý«¤·¤¿" (WSSR ¤ÎÁêÂÐ¸íº¹¤¬¤¢¤ë¸Â³¦Ãͤè¤ê¾® ¤µ¤¯¤Ê¤Ã¤¿¾ì¹ç¡£°Ê²¼»²¾È: set fit limit (112.29))¡¢¤Þ¤¿¤Ï (2) ¤¢¤é¤«¤¸¤áÀßÄê ¤µ¤ì¤¿È¿Éü¿ô¤Î¸Â³¦¤Ë㤷¤¿¾ì¹ç (°Ê²¼»²¾È: set fit maxiter (112.29))¡¢¤Î¤¤¤º¤ì ¤«¤òËþ¤¿¤¹¤Þ¤Ç³¤±¤é¤ì¤Þ¤¹¡£¥­¡¼¥Ü¡¼¥É¤«¤é¤½¤ÎÅö¤Æ¤Ï¤á¤ÎÈ¿Éü¤ÏÃæÃǤǤ­ ¤Þ¤¹¤·¡¢¤½¤ì¤Ë³¤¤¤ÆÃæ»ß¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹ (°Ê²¼»²¾È: fit (88))¡£¥æ¡¼¥¶ÊÑ ¿ô FIT_CONVERGED ¤Ï¡¢ ľÁ°¤Î fit ¥³¥Þ¥ó¥É¤¬¼ý«¤Ë¤è¤ê½ªÎ»¤·¤¿¾ì¹ç¤Ï 1 ¤ò»ý¤Á¡¢¤½¤ì°Ê³°¤ÎÍýͳ¤ÇÃæÃǤ·¤¿¾ì¹ç¤Ï 0 ¤ò»ý¤Á¤Þ¤¹¡£FIT_NITER ¤Ï¡¢Ä¾ Á°¤ÎÅö¤Æ¤Ï¤á¤Ç¹Ô¤ï¤ì¤¿·«¤êÊÖ¤·¤Î²ó¿ô¤ò»ý¤Á¤Þ¤¹¡£

Åö¤Æ¤Ï¤á¤Ë»È¤ï¤ì¤ë´Ø¿ô¤Ï¤·¤Ð¤·¤Ð¤¢¤ë¥â¥Ç¥ë (¤Þ¤¿¤Ï¤¢¤ëÍýÏÀ) ¤ò¸µ¤Ë¤·¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï¥Ç¡¼¥¿¤Î¿¶Éñ¤òµ­½Ò¤·¤¿¤ê¡¢¤¢¤ë¤¤¤Ïͽ¬¤·¤è¤¦¤È¤·¤Þ¤¹¡£¤è¤Ã ¤Æ fit ¤Ï¡¢¥Ç¡¼¥¿¤¬¤½¤Î¥â¥Ç¥ë¤Ë¤É¤ì¤¯¤é¤¤¤¦¤Þ¤¯Åö¤Æ¤Ï¤Þ¤Ã¤Æ¤¤¤ë¤Î¤«¤ò ·èÄꤹ¤ë¤¿¤á¡¢¤½¤·¤Æ¸Ä¡¹¤Î¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤ÎÈϰϤòɾ²Á¤¹¤ë¤¿¤á¤Ë¡¢¥â¥Ç ¥ë¤Î¼«Í³¤Ê¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòµá¤á¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: fit error_estimates (88.3)¡£

¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢¶ÊÀþ¤Ë¤è¤ëÅö¤Æ¤Ï¤á¤Ë¤ª¤±¤ë´Ø¿ô¤Ï¡¢¥â¥Ç¥ë¤È¤Ï̵´Ø·¸¤ËÁª ¤Ð¤ì¤Æ¤¤¤Þ¤¹ (¤½¤ì¤Ï½½Ê¬¤Êɽ¸½ÎϤȺǤ⾯¤Ê¤¤¿ô¤Î¥Ñ¥é¥á¡¼¥¿¤ò»ý¤Á¡¢¥Ç¡¼ ¥¿¤Î·¹¸þ¤òµ­½Ò¤·¤½¤¦¤Ê´Ø¿ô¤È¤·¤Æ·Ð¸³¤Ë´ð¤Å¤¤¤ÆÁª¤Ð¤ì¤ë¤Ç¤·¤ç¤¦)¡£

¤·¤«¤·¡¢¤â¤·¤¢¤Ê¤¿¤¬Á´¤Æ¤Î¥Ç¡¼¥¿ÅÀ¤òÄ̤ë¤è¤¦¤Ê³ê¤é¤«¤Ê¶ÊÀþ¤òÍߤ·¤¤¤Ê¤é fit ¤Ç¤Ï¤Ê¤¯¡¢¤à¤·¤í plot ¤Î smooth ¥ª¥×¥·¥ç¥ó¤Ç¤½¤ì¤ò¹Ô¤¦¤Ù¤­¤Ç ¤·¤ç¤¦¡£

88.3 ¸íº¹É¾²Á (error estimates)

fit ¤Ë¤ª¤¤¤Æ "¸íº¹" ¤È¤¤¤¦ÍѸì¤Ï 2 ¤Ä¤Î°Û¤Ê¤Ã¤¿Ê¸Ì®¤ÇÍѤ¤¤é¤ì¤Þ¤¹¡£ °ì¤Ä¤Ï¥Ç¡¼¥¿¸íº¹¡¢¤â¤¦°ì¤Ä¤Ï¥Ñ¥é¥á¡¼¥¿¸íº¹¤Ç¤¹¡£

¥Ç¡¼¥¿¸íº¹¤Ï¡¢Ê¿Êý»Äº¹¤Î½Å¤ßÉÕ¤­¤ÎÏ WSSR¡¢¤¹¤Ê¤ï¤Á¦Ö¼«¾è¤ò·èÄꤹ¤ëºÝ ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÁêÂÐŪ¤Ê½Å¤ß¤ò·×»»¤¹¤ë¤Î¤ËÍѤ¤¤é¤ì¤Þ¤¹¡£¤½¤ì¤é¤Ï¥Ñ¥é¥á ¡¼¥¿¤Îɾ²Á¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤½¤ì¤Ï¡¢¤½¤ì¤é¤¬¡¢Åö¤Æ¤Ï¤á¤é¤ì¤¿´Ø¿ô¤«¤é¤Î ¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤ÎÊк¹¤¬ºÇ½ªÅª¤ÊÃͤËÍ¿¤¨¤ë±Æ¶Á¤ÎÂ礭¤µ¤ò·èÄꤹ¤ë¤³¤È¤Ë¤è ¤ê¤Þ¤¹¡£Àµ³Î¤Ê¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹ ɾ²ÁÅù¤Î fit ¤¬½ÐÎϤ¹¤ë¾ðÊó¤Ï¤è¤êÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£

statistical overview ¤Ç¤Ï fit ¤Î½ÐÎϤΤ¤¤¯¤Ä¤«¤òÀâÌÀ¤·¡¢ 'practical guidelines' ¤ËÂФ¹¤ëÇطʤò½Ò¤Ù¤Æ¤¤¤Þ¤¹¡£

88.3.1 Åý·×Ū¤Ê³µÍ× (statistical overview)

ÈóÀþ·ÁºÇ¾®¼«¾èË¡ (Non-Linear Least-Squares) ¤ÎÍýÏÀ¤Ï¡¢¸íº¹¤ÎÀµµ¬Ê¬ÉۤΠÅÀ¤«¤é°ìÈÌŪ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ÆþÎϥǡ¼¥¿¤ÏÍ¿¤¨¤é¤ì¤¿Ê¿¶Ñ¤È ¤½¤ÎÊ¿¶Ñ¤ËÂФ¹¤ëÍ¿¤¨¤é¤ì¤¿É¸½àÊк¹¤ò»ý¤Ä¥¬¥¦¥¹ (Àµµ¬) ʬÉۤ˽¾¤¦Ê콸ÃÄ ¤«¤é¤ÎɸËܤȲ¾Äꤵ¤ì¤Þ¤¹¡£½½Ê¬Â礭¤¤É¸ËÜ¡¢¤½¤·¤ÆÊ콸ÃĤÎɸ½àÊк¹¤òÃÎ¤ë ¤³¤È¤ËÂФ·¤Æ¤Ï¡¢¦Ö¼«¾èʬÉÛÅý·×¤òÍѤ¤¤Æ¡¢Ä̾ï¡Ö¦Ö¼«¾è¡×¤È¸Æ¤Ð¤ì¤ëÃͤòÄ´ ¤Ù¤ë¤³¤È¤Ë¤è¤ê¡ÖÅö¤Æ¤Ï¤á¤ÎÎɤµ¡×¤ò½Ò¤Ù¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¸º¤é¤µ¤ì¤¿¼«Í³ Å٤Φּ«¾è (¦Ö¼«¾è¤Î¼«Í³Å٤ϡ¢¥Ç¡¼¥¿ÅÀ¤Î¿ô¤«¤éÅö¤Æ¤Ï¤á¤é¤ì¤ë¥Ñ¥é¥á¡¼¥¿ ¤Î¸Ä¿ô¤À¤±°ú¤¤¤¿¿ô) ¤¬ 1.0 ¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤ÈÅö¤Æ¤Ï¤á¤é¤ì¤¿´Ø¿ô ¤È¤ÎÊк¹¤Î½Å¤ß¤Ä¤­¼«¾èϤ¬¡¢¸½ºß¤Î¥Ñ¥é¥á¡¼¥¿ÃͤËÂФ¹¤ë´Ø¿ô¤ÈÍ¿¤¨¤é¤ì¤¿ ɸ½àÊк¹¤Ë¤è¤Ã¤ÆÆÃħÉÕ¤±¤é¤ì¤¿Ê콸ÃĤΡ¢¥é¥ó¥À¥à¤Ê¥µ¥ó¥×¥ë¤ËÂФ¹¤ë¼«¾è ϤȤ¬Á´¤¯Æ±¤¸¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

ʬ»¶ = Áí·×¤Ç¤¢¤ë¿ô¤¨¾å¤²Åý·×³ØƱÍÍ¡¢Ê콸ÃĤÎɸ½àÊк¹¤¬Äê¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢ ³ÆÅÀ¤Ï´Ñ¬¤µ¤ì¤ëÊк¹¤ÎϤȴüÂÔ¤µ¤ì¤ëÊк¹¤ÎϤòÈæ³Ó¤¹¤ë¤È¤­¤Ë¸ÄÊÌ¤Ë½Å¤ß ¤Å¤±¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£

ºÇ½ªÃʳ¬¤Ç fit ¤Ï 'stdfit'¡¢¤¹¤Ê¤ï¤Á»Äº¹¤Î RMS (¼«¾èÊ¿¶ÑÊ¿Êýº¬) ¤Çµá ¤á¤é¤ì¤ëÅö¤Æ¤Ï¤á¤Îɸ½àÊк¹¤È¡¢¥Ç¡¼¥¿ÅÀ¤¬½Å¤ß¤Å¤±¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë '¸º¤é ¤µ¤ì¤¿¦Ö¼«¾è' ¤È¤â¸Æ¤Ð¤ì¤ë»Äº¹¤Îʬ»¶¤ò¥ì¥Ý¡¼¥È¤·¤Þ¤¹¡£¼«Í³ÅÙ (¥Ç¡¼¥¿ÅÀ ¤Î¿ô¤«¤éÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¿ô¤ò°ú¤¤¤¿¤â¤Î) ¤Ï¤³¤ì¤é¤Îɾ²Á¤Ç»ÈÍѤµ¤ì¤Þ ¤¹¡£¤Ê¤¼¤Ê¤é¡¢¥Ç¡¼¥¿ÅÀ¤Î»Äº¹¤Î·×»»¤Ç»È¤ï¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤ÏƱ¤¸¥Ç¡¼¥¿¤«¤é ÆÀ¤é¤ì¤ë¤â¤Î¤À¤«¤é¤Ç¤¹¡£¥Ç¡¼¥¿ÅÀ¤¬½Å¤ß¤ò»ý¤Ä¾ì¹ç¡¢gnuplot ¤Ï¤¤¤ï¤æ¤ë p-Ãͤò·×»»¤·¤Þ¤¹¡£¤½¤ì¤Ï¤½¤Î¼«Í³Å٤ȷë²Ì¤Î¦Ö¼«¾èÃͤËÂФ¹¤ë¦Ö¼«¾èʬÉۤΠÎßÀÑʬÉÛ´Ø¿ôÃͤò 1 ¤«¤é°ú¤¤¤¿ÃͤǤ¹¡£°Ê²¼»²¾È: fit practical_guidelines (88.3.2)¡£ ¤³¤ì¤é¤ÎÃͤϰʲ¼¤ÎÊÑ¿ô¤ËÂåÆþ¤µ¤ì¤Þ¤¹:


     FIT_NDF = ¼«Í³Å٤οô
     FIT_WSSR = ½Å¤ß¤Ä¤­»Äº¹¤Î¼«¾èÏÂ
     FIT_STDFIT = sqrt(WSSR/NDF)
     FIT_P = p-ÃÍ

¥Ñ¥é¥á¡¼¥¿¤Ë´Ø¤¹¤ë¿®Íê¥ì¥Ù¥ë¤òɾ²Á¤¹¤ë¤³¤È¤Ç¡¢Åö¤Æ¤Ï¤á¤«¤éÆÀ¤é¤ì¤ëºÇ¾® ¤Î¦Ö¼«¾è¤È¡¢Í׵᤹¤ë¿®Íê¥ì¥Ù¥ë¤Î¦Ö¼«¾è¤ÎÃͤò·èÄꤹ¤ë¤¿¤á¤Î¦Ö¼«¾è¤ÎÅý·× ¤òÍѤ¤¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤·¤«¤·¡¢¤½¤Î¤è¤¦¤ÊÃͤòÀ¸À®¤¹¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÁȤò ·èÄꤹ¤ë¤Ë¤Ï¡¢ÁêÅö¤Î¤µ¤é¤Ê¤ë·×»»¤¬É¬ÍפȤʤë¤Ç¤·¤ç¤¦¡£

fit ¤Ï¿®Íê¶è´Ö¤Î·èÄê¤è¤ê¤à¤·¤í¡¢ºÇ¸å¤ÎÈ¿Éü¸å¤Îʬ»¶-¶¦Ê¬»¶¹ÔÎ󤫤éľ ¤Á¤ËÆÀ¤é¤ì¤ë¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹É¾²Á¤òÊó¹ð¤·¤Þ¤¹¡£¤³¤ì¤é¤Îɾ²Á¤Ï¡¢É¸½àÊк¹ ¤È¤·¤Æ·×»»¤µ¤ì¤ëÎ̤λØÄê¤Ë´Ø¤¹¤ëÅý·×¾å¤Î¾ò·ï¤¬¡¢°ìÈ̤ˤÏÈóÀþ·ÁºÇ¾®¼«¾è ÌäÂê¤Ç¤ÏÊݾڤµ¤ì¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢Àþ·ÁºÇ¾®¼«¾èÌäÂê¤Ç¤Îɸ½à¸íº¹ (³Æ¥Ñ¥é¥á¡¼ ¥¿¤Îɸ½àÊк¹) ¤ÈƱ¤¸ÊýË¡¤Ç·×»»¤µ¤ì¤Þ¤¹¡£¤½¤·¤Æ¤½¤Î¤¿¤á´·Îã¤Ë¤è¤ê¡¢¤³¤ì ¤é¤Ï "ɸ½à¸íº¹" ¤È¤« "Á²¶áɸ½à¸íº¹" ¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤¹¡£Á²¶áɸ½à¸íº¹¤Ï°ì È̤˳ڴѲ᤮¡¢¿®Íê¥ì¥Ù¥ë¤Î·èÄê¤Ë¤Ï»È¤¦¤Ù¤­¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢ÄêÀ­Åª¤Ê»Ø ɸ¤È¤·¤Æ¤ÏÌò¤ËΩ¤Ä¤Ç¤·¤ç¤¦¡£

ºÇ½ªÅª¤Ê²ò¤Ï¡¢²ò¤ÎÈϰϤˤª¤±¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÁê´Ø¤ò¼¨¤¹Áê´Ø¹ÔÎó¤âÀ¸À®¤·¤Þ ¤¹: ¤½¤Î¼çÂгÑÍ×ÁÇ¡¢¤¹¤Ê¤ï¤Á¼«¸ÊÁê´Ø¤Ï¾ï¤Ë 1 ¤Ç¡¢Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤¬ÆÈ Î©¤Ê¤é¤ÐÈóÂгÑÍ×ÁǤϤ¹¤Ù¤Æ 0 ¤Ë¶á¤¤Ãͤˤʤê¤Þ¤¹¡£´°Á´¤Ë¾¤òÊ䤤¤¢¤¦ 2 ¤Ä¤ÎÊÑ¿ô¤Ï¡¢Â礭¤µ¤¬ 1 ¤Ç¡¢´Ø·¸¤¬Àµ¤ÎÁê´Ø¤«Éé¤ÎÁê´Ø¤«¤Ë¤è¤Ã¤ÆÀµ¤«Éé¤Ë ¤Ê¤ëÉä¹æ¤ò»ý¤ÄÈóÂгÑÍ×ÁǤò»ý¤Á¤Þ¤¹¡£ÈóÂгÑÍ×ÁǤÎÂ礭¤µ¤¬¾®¤µ¤¤¤Û¤É¡¢³Æ ¥Ñ¥é¥á¡¼¥¿¤Îɸ½àÊк¹¤Îɾ²Á¤Ï¡¢Á²¶áɸ½à¸íº¹¤Ë¶á¤¯¤Ê¤ê¤Þ¤¹¡£

88.3.2 ¼ÂÍÑŪ¤Ê¥¬¥¤¥É¥é¥¤¥ó (practical guidelines)

¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤Ø¤Î½Å¤ß¤Å¤±¤Î³ä¤êÅö¤Æ¤Î´ðÁäòÃΤäƤ¤¤ë¤Ê¤é¡¢¤½¤ì¤¬Â¬Äê ·ë²Ì¤ËÂФ¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤ò»ÈÍѤµ¤»¤è¤¦¤È¤¹¤ë¤Ç¤·¤ç¤¦¡£Î㤨¤Ð¡¢´ö¤Ä¤« ¤ÎÅÀ¤Ï¾¤ÎÅÀ¤è¤êÅö¤Æ¤Ë¤Ê¤ë¤È¤¤¤¦¤³¤È¤ò¹Íθ¤ËÆþ¤ì¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤½¤· ¤Æ¡¢¤½¤ì¤é¤ÏºÇ½ªÅª¤Ê¥Ñ¥é¥á¡¼¥¿¤ÎÃͤ˱ƶÁ¤·¤Þ¤¹¡£

¥Ç¡¼¥¿¤Î½Å¤ßÉÕ¤±¤Ï¡¢ºÇ¸å¤ÎÈ¿Éü¸å¤Î fit ¤ÎÄɲýÐÎϤËÂФ¹¤ë²ò¼á¤Î´ðÁà ¤òÍ¿¤¨¤Þ¤¹¡£³ÆÅÀ¤ËƱÅù¤Ë½Å¤ßÉÕ¤±¤ò¹Ô¤Ê¤¦¤Ë¤·¤Æ¤â¡¢½Å¤ß 1 ¤ò»È¤¦¤³¤È¤è ¤ê¤â¤à¤·¤íÊ¿¶Ñɸ½àÊк¹¤òɾ²Á¤¹¤ë¤³¤È¤¬¡¢¦Ö¼«¾è¤¬ÄêµÁ¤Ë¤è¤ê¤½¤¦¤Ç¤¢¤ë¤è ¤¦¤Ë¡¢WSSR ¤ò ̵¼¡¸µÊÑ¿ô¤È¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

Åö¤Æ¤Ï¤áÈ¿Éü¤Î³ÆÃʳ¬¤Ç¡¢Åö¤Æ¤Ï¤á¤Î¿Ê¹Ô¤Îɾ²Á¤Ë»È¤¦¤³¤È¤¬½ÐÍè¤ë¾ðÊó¤¬É½ ¼¨¤µ¤ì¤Þ¤¹ ('*' ¤Ï¤è¤ê¾®¤µ¤¤ WSSR ¤ò¸«¤Ä¤±¤é¤ì¤Ê¤«¤Ã¤¿¤³¤È¡¢¤½¤·¤ÆºÆ»î ¹Ô¤·¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹)¡£'sum of squares of residuals' (»Äº¹¤Î¼«¾è ÏÂ) ¤Ï¡¢'chisquare' (¦Ö¼«¾è) ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á ´Ø¿ô¤È¤Î´Ö¤Î WSSR ¤ò°ÕÌ£¤·¤Æ¤¤¤Æ¡¢fit ¤Ï¤³¤ì¤òºÇ¾®²½¤·¤è¤¦¤È¤·¤Þ¤¹¡£ ¤³¤ÎÃʳ¬¤Ç¡¢½Å¤ßÉÕ¤±¤µ¤ì¤¿¥Ç¡¼¥¿¤Ë¤è¤Ã¤Æ¡¢¦Ö¼«¾è¤ÎÃͤϼ«Í³ÅÙ (= ¥Ç¡¼¥¿ ÅÀ¤Î¿ô - ¥Ñ¥é¥á¡¼¥¿¤Î¿ô) ¤Ë¶áÉÕ¤¯¤³¤È¤¬´üÂÔ¤µ¤ì¤Þ¤¹¡£WSSR ¤ÏÊäÀµ¤µ¤ì¤¿ ¦Ö¼«¾èÃÍ (WSSR/ndf; ndf = ¼«Í³ÅÙ)¡¢¤Þ¤¿¤ÏÅö¤Æ¤Ï¤áɸ½àÊк¹ (stdfit = sqrt(WSSR/ndf)) ¤ò·×»»¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤½¤ì¤é¤ÏºÇ½ªÅª¤Ê WSSR ¤ËÂФ· ¤Æ¥ì¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£

¥Ç¡¼¥¿¤¬½Å¤ßÉÕ¤±¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢stdfit ¤Ï¡¢¥æ¡¼¥¶¤Îñ°Ì¤Ç¤Î¡¢¥Ç¡¼¥¿ ¤ÈÅö¤Æ¤Ï¤á´Ø¿ô¤ÎÊк¹¤Î RMS (¼«¾èÊ¿¶ÑÊ¿Êýº¬) ¤Ë¤Ê¤ê¤Þ¤¹¡£

¤â¤·ÂÅÅö¤Ê¥Ç¡¼¥¿¸íº¹¤òÍ¿¤¨¡¢¥Ç¡¼¥¿ÅÀ¤¬½½Ê¬Â¿¤¯¡¢¥â¥Ç¥ë¤¬Àµ¤·¤±¤ì¤Ð¡¢ ÊäÀµ¦Ö¼«¾èÃÍ¤Ï¤Û¤Ü 1 ¤Ë¤Ê¤ê¤Þ¤¹ (¾ÜºÙ¤Ï¡¢Å¬Åö¤ÊÅý·×³Ø¤ÎËܤΠ'¦Ö¼«¾èʬ ÉÛ' ¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£¤³¤Î¾ì¹ç¡¢¤³¤Î³µÍפ˽ñ¤«¤ì¤Æ¤¤¤ë¤³¤È°Ê³° ¤Ë¡¢¥â¥Ç¥ë¤¬¥Ç¡¼¥¿¤Ë¤É¤ì¤¯¤é¤¤Îɤ¯Åö¤Æ¤Þ¤Ã¤Æ¤¤¤ë¤«¤ò·èÄꤹ¤ë¤¿¤á¤ÎÄɲà ¤Î»î¸³ÊýË¡¤¬¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡£

ÊäÀµ¦Ö¼«¾è¤¬ 1 ¤è¤ê¤Ï¤ë¤«¤ËÂ礭¤¯¤Ê¤Ã¤¿¤é¡¢¤½¤ì¤ÏÉÔÀµ¤Ê¥Ç¡¼¥¿¸íº¹É¾²Á¡¢ Àµµ¬Ê¬ÉÛ¤·¤Ê¤¤¥Ç¡¼¥¿¸íº¹¡¢¥·¥¹¥Æ¥à¾å¤Î¬Äê¸íº¹¡¢¸ÉΩ¤·¤¿É¸ËÜÃÍ (outliers)¡¢¤Þ¤¿¤ÏÎɤ¯¤Ê¤¤¥â¥Ç¥ë´Ø¿ô¤Ê¤É¤Î¤¿¤á¤Ç¤·¤ç¤¦¡£Î㤨¤Ð plot 'datafile' using 1:($2-f($1)) ¤Ê¤É¤È¤·¤Æ»Äº¹¤òÉÁ²è¤¹¤ë¤³¤È¤Ï¡¢ ¤½¤ì¤é¤Î¥·¥¹¥Æ¥àŪ¤Ê·¹¸þ¤òÃΤ뤿¤á¤Î¼ê¤¬¤«¤ê¤È¤Ê¤ê¤Þ¤¹¡£¥Ç¡¼¥¿ÅÀ¤È´Ø¿ô ¤Îξ¼Ô¤òÉÁ²è¤¹¤ë¤³¤È¤Ï¡¢Â¾¤Î¥â¥Ç¥ë¤ò¹Í¤¨¤¿¤á¤Î¼ê¤¬¤«¤ê¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£

ƱÍͤˡ¢1.0 ¤è¤ê¾®¤µ¤¤ÊäÀµ¦Ö¼«¾è¤Ï¡¢WSSR ¤¬¡¢Àµµ¬Ê¬ÉÛ¤¹¤ë¸íº¹¤ò»ý¤Ä¥é ¥ó¥À¥à¤Ê¥µ¥ó¥×¥ë¤È´Ø¿ô¤ËÂФ·¤Æ´üÂÔ¤µ¤ì¤ë¤â¤Î¤è¤ê¤â¾®¤µ¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ ¤¹¡£¥Ç¡¼¥¿¸íº¹É¾²Á¤¬Â礭¤¹¤®¤ë¤Î¤«¡¢Åý·×Ū¤Ê²¾Ä꤬Àµ¤·¤¯¤Ê¤¤¤Î¤«¡¢¤Þ¤¿ ¤Ï¥â¥Ç¥ë´Ø¿ô¤¬°ìÈÌŪ¤¹¤®¤Æ¡¢ÆâºßŪ·¹¸þ¤Ë²Ã¤¨¤ÆÆüì¤Ê¥µ¥ó¥×¥ë¤Ë¤è¤ëÊÑÆ° ¤ÎÅö¤Æ¤Ï¤á¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¡£ºÇ¸å¤Î¾ì¹ç¤Ï¡¢¤è¤ê¥·¥ó¥×¥ë¤Ê´Ø¿ô¤Ë¤¹ ¤ì¤Ð¤¦¤Þ¤¯¹Ô¤¯¤Ç¤·¤ç¤¦¡£

Åö¤Æ¤Ï¤á¤Î p-Ãͤϡ¢¼«Í³Å٤ȷë²Ì¤Î¦Ö¼«¾èÃͤËÂФ¹¤ë¦Ö¼«¾èʬÉÛ¤ÎÎßÀÑʬÉÛ ´Ø¿ôÃͤò 1 ¤«¤é°ú¤¤¤¿ÃͤǤ¹¡£¤³¤ì¤Ï¡¢Åö¤Æ¤Ï¤á¤ÎÎɤµ¤Î¤â¤Î¤µ¤·¤òÄ󶡤· ¤Þ¤¹¡£p-ÃͤÎÈÏ°Ï¤Ï 0 ¤«¤é 1 ¤Þ¤Ç¤Ç¡¢p-Ãͤ¬¤È¤Æ¤â¾®¤µ¤¤¡¢¤¢¤ë¤¤¤Ï¤È¤Æ¤â Â礭¤¤¾ì¹ç¤Ï¡¢¥â¥Ç¥ë¤¬¥Ç¡¼¥¿¤È¤½¤Î¸íº¹¤ò¤Á¤ã¤ó¤Èµ­½Ò¤·¤Æ¤¤¤Ê¤¤¤³¤È¤ò°Õ Ì£¤·¤Þ¤¹¡£¾å¤Ç½Ò¤Ù¤¿¤è¤¦¤Ë¡¢¤³¤ì¤Ï¥Ç¡¼¥¿¤ËÌäÂ꤬¤¢¤ë¤«¡¢¸íº¹¤«¥â¥Ç¥ë¤Ë ÌäÂ꤬¤¢¤ë¡¢¤Þ¤¿¤Ï¤½¤ì¤é¤ÎÁȤ߹ç¤ï¤»¤Ê¤Î¤À¤í¤¦¤È»×¤¤¤Þ¤¹¡£p-Ãͤ¬¾®¤µ¤¤ ¤³¤È¤Ï¡¢¸íº¹¤¬²á¾®É¾²Á¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¤è¤Ã¤ÆºÇ½ªÅª¤Ê¥Ñ¥é¥á¡¼¥¿¸íº¹¤ò¥¹ ¥±¡¼¥ëÊÑ´¹¤¹¤Ù¤­¤À¤í¤¦¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤¹¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼¤â»²¾È: set fit errorscaling (112.29)¡£

ɸ½àŪ¤Ê¥¨¥é¡¼¤ò¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÉÔ³ÎÄêÀ­¤Ë´Ø¤¹¤ë¡¢¤¢¤ë¤è¤ê¸½¼ÂŪ¤Êɾ²Á¤Ë ´Ø·¸ÉÕ¤±¤ë¤³¤È¡¢¤ª¤è¤ÓÁê´Ø¹ÔÎó¤Î½ÅÍ×À­¤òɾ²Á¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë Á°¤Ë¡¢¤¢¤Ê¤¿¤Ï fit ¤È¡¢¤½¤ì¤òŬÍѤ·¤è¤¦¤È¤¹¤ë¤¢¤ë¼ï¤ÎÌäÂê¤Ë´·¤ì¤Æ¤ª ¤¯É¬Íפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£

fit ¤Ï¡¢ÂçÄñ¤ÎÈóÀþ·ÁºÇ¾®¼«¾èË¡¤Î¼ÂÁõ¤Ç¤Ï¶¦Ä̤·¤Æ¡¢µ÷Î¥¤Î¼«¾è (y-f(x))**2 ¤Î½Å¤ßÉÕ¤­¤ÎϤòºÇ¾®²½¤·¤è¤¦¤È¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤½¤ì¤Ï¡¢x ¤ÎÃͤΠ"¸íº¹" ¤ò·×»»¤Ë´Ø¤·¤Æ¤Ï¤É¤ó¤ÊÊýË¡¤âÍ¿¤¨¤Æ¤Ï¤ª¤é¤º¡¢Ã± ¤Ë y ¤Ë´Ø¤¹¤ëɾ²Á¤Î¤ß¤Ç¤¹¡£¤Þ¤¿¡¢"¸ÉΩÅÀ" (Àµµ¬Ê¬ÉۤΥâ¥Ç¥ë¤Î¤«¤é³°¤ì ¤Æ¤¤¤ë¥Ç¡¼¥¿ÅÀ) ¤Ï¾ï¤Ë²ò¤ò°­²½¤µ¤»¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

88.4 À©¸æ (control)

fit ¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¤è¤¦¤ËÄêµÁ¤Ç¤­¤ë´Ä¶­ÊÑ¿ô¤¬ 2 ¤Ä¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î ´Ä¶­ÊÑ¿ô¤Ï gnuplot ¤¬Î©¤Á¾å¤¬¤ëÁ°¤ËÄêµÁ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤½¤ÎÀß ÄêÊýË¡¤Ï¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ë°Í¸¤·¤Þ¤¹¡£


     FIT_LOG

¤Ï¡¢Åö¤Æ¤Ï¤á¤Î¥í¥°¤¬½ñ¤«¤ì¤ë¥Õ¥¡¥¤¥ë̾ (¤ª¤è¤Ó¥Ñ¥¹) ¤òÊѹ¹¤·¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ç¤Ï¡¢ºî¶È¥Ç¥£¥ì¥¯¥È¥ê¾å¤Î "fit.log" ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼Â ¹Ô»þ¤Ë¥³¥Þ¥ó¥É set fit logfile ¤ò»È¤Ã¤Æ¾å½ñ¤­¤Ç¤­¤Þ¤¹¡£


     FIT_SCRIPT

¤Ï¡¢¥æ¡¼¥¶¤¬ÃæÃǤ·¤¿¸å¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï replot ¤Ç¤¹¤¬¡¢plot ¤ä load ¥³¥Þ¥ó¥É¤È¤¹¤ì¤Ð¡¢Åö¤Æ¤Ï¤á¤Î¿Ê¹Ô¾õ ¶·¤Îɽ¼¨¤ò¥«¥¹¥¿¥Þ¥¤¥º¤¹¤ë¤Î¤ËÊØÍø¤Ç¤·¤ç¤¦¡£¤³¤ì¤Ï¡¢¼Â¹Ô»þ¤Ë¥³¥Þ¥ó¥É set fit script ¤ò»È¤Ã¤Æ¾å½ñ¤­¤Ç¤­¤Þ¤¹¡£

fit ¤ÎÆ°ºî¤Ë¤ª¤±¤ë¤½¤Î¾¿¤¯¤Î¼Â¹Ô»þ¤ÎÄ´À°¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set fit (112.29)¡£

88.5 ¥¨¥é¡¼½èÍý (error recovery)

gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤è¤ê¡¢¥³¥Þ¥ó¥É fit ¤Ï¡¢¥Õ¥£¥Ã¥Æ¥£¥ó¥°½èÍý¤ÎÀ®¸ù ¼ºÇԤ˴ؤï¤é¤º¡¢¾ï¤Ë¥³¥Þ¥ó¥ÉÆþÎϹԤμ¡¤ËÌá¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£¤³¤ì¤Ï¡¢ fit ¤Î¥¨¥é¡¼¤«¤éÉüµ¢¤¹¤ë¥¹¥¯¥ê¥×¥È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ÊÑ¿ô FIT_ERROR ¤Ï¡¢ À®¸ù¤¹¤ì¤Ð 0 ¤Ë¡¢¥¨¥é¡¼¤Î¾ì¹ç¤Ï 0 °Ê³°¤ÎÃͤˤʤê¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ï¡¢5 ¤Ä ¤Î¥Ç¡¼¥¿½¸¹ç¤Î¤¦¤Á¤É¤ì¤À¤±Â¿¤¯¤Î¤â¤Î¤¬Àµ¾ï¤Ë fit ¤Ç¤­¤Æ¤âÉÁ²è¤·¤Þ¤¹¡£ Î㤨¤Ð 2 ÈÖÌܤΥǡ¼¥¿½¸¹ç¤Ç¼ºÇÔ¤·¤Æ¤â¡¢¤½¤ì¤¬ 3 ÈÖÌܤ«¤é 5 ÈÖÌܤΥǡ¼ ¥¿½¸¹ç¤ËÂФ¹¤ë fit ¤ò˸¤²¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£


    do for [i=1:5] {
        DATA = sprintf("Data_%05d.dat", i)
        fit f(x) DATA via a,b,c
        if (FIT_ERROR || !FIT_CONVERGED) {
            print "Fit failed for ", DATA
            continue
        }
        set output sprintf("dataset_%05.png", i)
        plot DATA, f(x)
        unset output
    }

88.6 Ê£¿ô¤ÎÅö¤Æ¤Ï¤á (multi-branch)

Ê£¿ôÅö¤Æ¤Ï¤áË¡ (multi-branch fitting) ¤Ç¤Ï¡¢Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ò¡¢¶¦Ä̤Π¥Ñ¥é¥á¡¼¥¿¤ò»ý¤ÄÊ£¿ô¤Î 1 ÊÑ¿ô¤Î´Ø¿ô¤Ë¡¢WSSR ¤ÎÁíϤòºÇ¾®²½¤¹¤ë¤³¤È¤Ë¤è ¤Ã¤ÆƱ»þ¤ËÅö¤Æ¤Ï¤á¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£³Æ¥Ç¡¼¥¿½¸¹ç¤ËÂФ¹¤ë´Ø¿ô¤È¥Ñ¥é¥á¡¼ ¥¿ (»Þ) ¤Ï 'µ¿»÷ÊÑ¿ô' ¤ò»È¤¦¤³¤È¤ÇÁªÂò¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿¹ÔÈÖ¹æ (-1; '¥Ç¡¼¥¿Îó' ¤ÎÈÖ¹æ) ¤Þ¤¿¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ëÈÖ¹æ (-2) ¤ò 2 ¤ÄÌܤÎÆÈΩ ÊÑ¿ô¤È¤·¤Þ¤¹¡£

Îã: 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 ¤Ä¤Î»Þ¤¬»Ù ÇÛ¤·¤Æ¤·¤Þ¤¦²ÄǽÀ­¤¬¤¢¤ë¤Î¤Ç¡¢Å¬Åö¤Ê½Å¤ßÉÕ¤±¤¬É¬Íפˤʤê¤Þ¤¹¡£³Æ»Þ¤ò¥Ð ¥é¥Ð¥é¤ËÅö¤Æ¤Ï¤á¤ë¤Î¤ËÊ£¿ôÅö¤Æ¤Ï¤áË¡¤Î²ò¤ò½é´üÃͤȤ·¤ÆÍѤ¤¤ë¤Î¤Ï¡¢Á´ÂÎ ¤ò¹ç¤ï¤»¤¿²ò¤Î³Æ»Þ¤ËÂФ¹¤ëÁêÂÐŪ¤Ê±Æ¶Á¤Ë´Ø¤¹¤ëɽ¼¨¤òÍ¿¤¨¤ë¤³¤È¤Ë¤Ê¤ë¤Ç ¤·¤ç¤¦¡£

88.7 ½é´üÃÍ (starting values)

ÈóÀþ·ÁÅö¤Æ¤Ï¤á¤Ï¡¢Âç°èŪ¤ÊºÇŬÃÍ (»Äº¹¤Î¼«¾èÏ (SSR) ¤ÎºÇ¾®Ãͤò»ý¤Ä²ò) ¤Ø¤Î¼ý«¤ÏÊݾڤϤ·¤Þ¤»¤ó¤¬¡¢¶É½êŪ¤Ê¶Ë¾®ÃͤòÍ¿¤¨¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¡£¤½¤Î ¥µ¥Ö¥ë¡¼¥Á¥ó¤Ï¤½¤ì¤ò·èÄꤹ¤ëÊýË¡¤ò²¿¤â»ý¤Á¹ç¤ï¤»¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢¤³¤ì¤¬µ¯ ¤³¤Ã¤¿¤«¤É¤¦¤«¤òȽÃǤ¹¤ë¤Î¤Ï¤¢¤Ê¤¿¤ÎÀÕǤ¤È¤Ê¤ê¤Þ¤¹¡£

fit ¤Ï¡¢²ò¤«¤é±ó¤¯¤«¤é»Ï¤á¤ë¤È¼ºÇÔ¤¹¤ë¤«¤âÃΤì¤Þ¤»¤ó¤·¡¢¤·¤Ð¤·¤Ð¤½¤ì ¤Ïµ¯¤³¤êÆÀ¤Þ¤¹¡£±ó¤¯¤È¤¤¤¦¤Î¤Ï¡¢SSR ¤¬Â礭¤¯¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÊѲ½¤ËÂФ·¤Æ ¤½¤ÎÊѲ½¤¬¾®¤µ¤¤¡¢¤¢¤ë¤¤¤Ï¿ôÃÍŪ¤ËÉÔ°ÂÄê¤ÊÎΰè (Î㤨¤Ð¿ôÃͤ¬Â礭¤¹¤®¤Æ ÉâÆ°¾®¿ô¤Î·å¤¢¤Õ¤ì¤òµ¯¤³¤¹) ¤ËÅþ㤷¤Æ¤·¤Þ¤Ã¤Æ¡¢¤½¤Î·ë²Ì "̤ÄêµÁÃÍ (undefined value)" ¤Î¥á¥Ã¥»¡¼¥¸¤« gnuplot ¤ÎÄä»ß¤ò°ú¤­µ¯¤³¤·¤Æ¤·¤Þ¤¦ ¤è¤¦¤Ê¾ì¹ç¤ò°ÕÌ£¤·¤Þ¤¹¡£

Âç°èŪ¤ÊºÇŬÃͤò¸«¤Ä¤±¤ë²ÄǽÀ­¤ò²þÁ±¤¹¤ë¤Ë¤Ï¡¢ºÇ½é¤ÎÃͤò¤½¤Î²ò¤Ë¾¯¤Ê¤¯ ¤È¤â¤Û¤Ü¶á¤¯¤Ë¼è¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£Î㤨¤Ð¡¢¤â¤·²Äǽ¤Ê¤é¤Ð°ì·åʬ¤ÎÂ礭¤µ¤Î ÈÏ°ÏÆâ¤Ç¡£ºÇ½é¤ÎÃͤ¬²ò¤Ë¶á¤¤¤Û¤ÉÉÔÀµ¤Ê²ò¤Ç½ªÎ»¤·¤Æ¤·¤Þ¤¦²ÄǽÀ­¤ÏÄ㤯¤Ê ¤ê¤Þ¤¹¡£ºÇ½é¤ÎÃͤò¸«¤Ä¤±¤ë°ì¤Ä¤ÎÊýË¡¤Ï¡¢¥Ç¡¼¥¿¤ÈÅö¤Æ¤Ï¤á´Ø¿ô¤òƱ¤¸¥°¥é ¥Õ¤Î¾å¤ËÉÁ²è¤·¤ÆŬÅö¤Ê¶á¤µ¤Ë㤹¤ë¤Þ¤Ç¡¢¥Ñ¥é¥á¡¼¥¿¤ÎÃͤòÊѹ¹¤·¤Æ replot ¤¹¤ë¤³¤È¤ò·«¤êÊÖ¤¹¤³¤È¤Ç¤¹¡£¤½¤ÎÉÁ²è¤Ï¡¢ÉÔÀµ¤Ê¶Ë¾®Ãͤò¸«¤Ä¤± ¤¿¤³¤È¤ÇÅö¤Æ¤Ï¤á¤¬½ªÎ»¤·¤¿¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤Î¤Ë¤âÍ­ÍѤǤ¹¡£

¤â¤Á¤í¤ó¡¢¸«¤¿Ìܤ¬Îɤ¤Åö¤Æ¤Ï¤á¤¬¸«¤Ä¤«¤Ã¤Æ¤â¡¢¤½¤ì¤Ï "¤½¤ì¤è¤ê¤è¤¤" Åö ¤Æ¤Ï¤á (¤¢¤ë²þÎɤµ¤ì¤¿Åö¤Æ¤Ï¤á¤ÎÎɤµ¤Î´ð½à¤Ë¤è¤Ã¤ÆÆÃħÉÕ¤±¤é¤ì¤¿Åý·×³Ø Ū¤Ê°ÕÌ£¤Ç¡¢¤¢¤ë¤¤¤Ï¤½¤Î¥â¥Ç¥ë¤Î¤è¤êŬÀڤʲò¤Ç¤¢¤ë¡¢¤È¤¤¤¦ÊªÍýŪ¤Ê°ÕÌ£ ¤Ç) ¤¬Â¸ºß¤·¤Ê¤¤¤³¤È¤Î¾ÚÌÀ¤Ë¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ÌäÂê¤Ë¤è¤Ã¤Æ¤Ï¡¢³Æ¥Ñ¥é¥á¡¼¥¿ ¤Î°ÕÌ£¤Î¤¢¤ëÈϰϤò¥«¥Ð¡¼¤¹¤ë¤è¤¦¤ÊÍÍ¡¹¤Ê½é´üÃͤν¸¹ç¤ËÂФ·¤Æ fit ¤¹ ¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤¤«¤âÃΤì¤Þ¤»¤ó¡£

88.8 »þ¹ï¥Ç¡¼¥¿ (time data)

»þ¹ï¥Ç¡¼¥¿¤ÎÅö¤Æ¤Ï¤á¤Ç¤Ï¡¢gnuplot ¤Ï 1970 1 ·î 1 Æü¤«¤é¤ÎÉÿô¤È¤·¤Æ»þ ¹ï¤òɽ¸½¤·¤Æ¤¤¤ë¤³¤È¤ò»×¤¤½Ð¤¹¤³¤È¤¬½ÅÍפǤ¹¡£Î㤨¤Ð¡¢2023 ǯ¤Î¤¢¤ë 1 Æü¤Î´Ö¤Ë·×¬¤·¤¿¤Ê¤ó¤é¤«¤Î»þ´Ö¤Ë°Í¸¤·¤¿¥Ç¡¼¥¿¤ËÂФ·¤Æ¡¢2 ¼¡´Ø¿ô¥â¥Ç¥ë ¤Ç¤ÎÅö¤Æ¤Ï¤á¤ò¤·¤¿¤¤¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤½¤ì¤¬¤Ç¤­¤ë¤È´üÂÔ¤¹¤ë¤Ç¤·¤ç¤¦:


    T(x) = a + b*x + c*x*x
    set xdata time
    fit T(x) 'hits.dat' using 1:3 via a,b,c

¤·¤«¤·¤½¤ì¤Ï¿ʬ¼ºÇÔ¤·¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤½¤Î¤¢¤ëÆü¤ËÂбþ¤¹¤ëÆâÉô¤Ç¤Î x ¤Î ¤ÎÃÍ¤Ï [1.67746e+09 : 1.67754e+09] ¤Î¤è¤¦¤ÊÈϰϤˤʤäƤ·¤Þ¤¦¤«¤é¤Ç¤¹¡£ ·×¬¥Ç¡¼¥¿¤Î x ¤Î¾®¤µ¤ÊÊѹ¹¤Ï¤ï¤º¤«¤Ë 1.e-05 ÄøÅ٤ʤΤǡ¢¼ý«¤òÊݾڤ¹ ¤ë¤¿¤á¤Ë¤Ï¡¢½é´ü¥Ñ¥é¥á¡¼¥¿É¾²Á¤Ç¿ʬ¤º¤Ã¤ÈÀè¤Î¾®¿ôÂ貿°Ì¤ÎÀºÅÙ¤¬É¬Í×¤Ë ¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦¡£

°ì¤Ä¤Î²ò·èºö¤Ï¡¢»þ´Ö¤ò¬Äê¤Î³«»Ï»þ´Ö¤«¤é¤Î»þ´Ö¤ËÊѹ¹¤·¤ÆÌäÂê¤òºî¤êÊѤ¨ ¤Æ¤·¤Þ¤¦¤³¤È¤Ç¤¹¡£


    set xdata time       # ¥Ç¡¼¥¿½ñ¼°¤Ï "27-02-2023 12:00:00 ·×¬ÃÍ"
    timefmt  = "%d-%m-%Y %H:%M:%S"
    set timefmt timefmt
    t0 = strptime( timefmt, "27-02-2023 00:00:00" )
    fit T(x) 'temperature.dat' using ($1-t0):3 via a,b,c

¤³¤ì¤Ï¥Ç¡¼¥¿¤ÎÈϰϤò [0 : 86400] ¤ËÊѤ¨¡¢¤è¤ê°·¤¤¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Î¾¤ÎÊýË¡¤È¤·¤Æ¤Ï¡¢1 ÎóÌܤÎÆüÉÕ¤ò̵»ë¤·¡¢2 ÎóÌܤËÁêÂлþ¹ï·Á¼° (tH/tM/tS) ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¤¹¡£


    set timefmt "%tH:%tM:%tS"
    fit T(x) 'temperature.dat' using 2:3 via a,b,c

88.9 ¥Ò¥ó¥È (tips)

¤³¤³¤Ç¤Ï¡¢fit ¤òºÇÂç¸Â¤ËÍøÍѤ¹¤ë¤¿¤á¤Ë¤¤¤¯¤Ä¤«³Ð¤¨¤Æ¤ª¤¯¤Ù¤­¥Ò¥ó¥È¤ò ¾Ò²ð¤·¤Þ¤¹¡£¤½¤ì¤é¤ÏÁÈ¿¥Åª¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢¤½¤ÎËܼÁ¤¬¤·¤ß¹þ¤à¤Þ¤Ç²¿²ó¤â¤è ¤¯Æɤó¤Ç¤¯¤À¤µ¤¤¡£

fit ¤Î°ú¿ô¤Î via ¤Ë¤Ï¡¢2 ¤Ä¤ÎÂ礭¤¯°Û¤Ê¤ëÌÜŪ¤Î¤¿¤á¤Î 2 ¤Ä¤Î·Á¼°¤¬ ¤¢¤ê¤Þ¤¹¡£via "file" ¤Î·Á¼°¤Ï¡¢¥Ð¥Ã¥Á½èÍý (ÈóÂÐÏ÷¿¤Ç¤Î¼Â¹Ô¤¬²Äǽ) ¤ÇºÇ¤âÎɤ¯»È¤ï¤ì¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç½é´üÃͤòÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

via var1, var2, ... ¤Î·Á¼°¤ÏÂÐÏ÷¿¤Î¼Â¹Ô¤ÇÎɤ¯»È¤ï¤ì¡¢¥³¥Þ¥ó¥É¥Ò¥¹¥È ¥ê¤Îµ¡¹½¤¬»È¤Ã¤Æ¥Ñ¥é¥á¡¼¥¿¥ê¥¹¥È¤ÎÊÔ½¸¤ò¹Ô¤¤¡¢Åö¤Æ¤Ï¤á¤ò¼Â¹Ô¤·¤¿¤ê¡¢¤¢ ¤ë¤¤¤Ï¿·¤·¤¤½é´üÃͤòÍ¿¤¨¤Æ¼¡¤Î¼Â¹Ô¤ò¹Ô¤Ê¤Ã¤¿¤ê¤·¤Þ¤¹¡£¤³¤ì¤ÏÆñ¤·¤¤ÌäÂê ¤ËÂФ·¤Æ¤ÏÆäËÍ­ÍѤǡ¢Á´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ËÂФ·¤Æ 1 ÅÙ¤À¤±Åö¤Æ¤Ï¤á¤òľÀÜ ¼Â¹Ô¤·¤Æ¤â¡¢Îɤ¤½é´üÃͤǤʤ±¤ì¤Ð¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¤³¤È¤¬µ¯¤³¤êÆÀ¤ë¤«¤é¤Ç¤¹¡£ ¤½¤ì¤ò¸«¤Ä¤±¤ë¤Ë¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤ËÂФ·¤Æ²¿²ó¤«È¿Éü¤ò¹Ô¤Ê¤¤¡¢ ºÇ½ªÅª¤Ë¤ÏÁ´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ËÂФ¹¤ë 1 ÅÙ¤ÎÅö¤Æ¤Ï¤á¤¬¤¦¤Þ¤¯¤¤¤¯¤È¤³¤í¤Ë ½½Ê¬¶á¤¯¤Ê¤ë¤Þ¤Ç¤½¤ì¤ò·«¤êÊÖ¤¹¤³¤È¤Ç¤¹¡£

Åö¤Æ¤Ï¤á¤ò¹Ô¤Ê¤¦´Ø¿ô¤Î¥Ñ¥é¥á¡¼¥¿´Ö¤Ë¶¦Ä̤ΰ͸´Ø·¸¤¬¤Ê¤¤¤³¤È¤Ï³Îǧ¤·¤Æ ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢a*exp(x+b) ¤òÅö¤Æ¤Ï¤á¤Ë»È¤Ã¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£¤½ ¤ì¤Ï a*exp(x+b)=a*exp(b)*exp(x) ¤À¤«¤é¤Ç¤¹¡£¤è¤Ã¤Æ¤³¤Î¾ì¹ç¤Ï a*exp(x) ¤Þ¤¿¤Ï exp(x+b) ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

µ»½ÑŪ¤Ê¤ªÏÃ: ÀäÂÐÃͤ¬ºÇ¤âÂ礭¤¤¥Ñ¥é¥á¡¼¥¿¤ÈºÇ¤â¾®¤µ¤¤¥Ñ¥é¥á¡¼¥¿¤ÎÈ椬 Â礭¤¤ÄøÅö¤Æ¤Ï¤á¤Î¼ý«¤ÏÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤½¤ÎÈ椬¡¢¥Þ¥·¥ó¤ÎÉâÆ°¾®¿ô¤ÎÀºÅÙ ¤ÎµÕ¿ô¤Ë¶á¤¤¤«¡¢¤Þ¤¿¤Ï¤½¤ì°Ê¾å¤Ê¤é¤Ð¡¢¤Û¤Ü¤º¤Ã¤È¼ý«¤·¤Ê¤¤¤«¼ý«¤¹¤ëÁ° ¤Ë¼Â¹Ô¤¬ÃæÃǤ¹¤ë¤Ç¤·¤ç¤¦¡£¤è¤Ã¤Æ¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ï¡¢¤½¤Î´Ø¿ô¤ÎÄêµÁ¤ÇÎ㤨 ¤Ð 'parameter' ¤ò '1e9*parameter' ¤Ë¤¹¤ë¤È¤«¡¢ºÇ½é¤ÎÃͤò 1e9 ¤Ç³ä¤ë¤È ¤«¤·¤Æ¤³¤ì¤òÈò¤±¤ë¤è¤¦¤Ë²þÎɤ¹¤ë¤«¡¢¤Þ¤¿¤Ï set fit prescale ¤Ç¥Ñ¥é¥á ¡¼¥¿¤Î½é´üÃͤ˽¾¤Ã¤Æ¤½¤Î¥¹¥±¡¼¥ëÊÑ´¹¤òÆâÉô¤Ç¤ä¤é¤»¤ëµ¡Ç½¤òÍѤ¤¤ë¤«¡¢¤Î ¤¤¤º¤ì¤«¤¬É¬ÍפǤ·¤ç¤¦¡£

¤â¤·¡¢´Ø¿ô¤ò¡¢Åö¤Æ¤Ï¤á¤ë¥Ñ¥é¥á¡¼¥¿¤ò·¸¿ô¤È¤¹¤ë¡¢Ã±½ã¤Ê´Ø¿ô¤ÎÀþ·Á·ë¹ç¤Ç ½ñ¤±¤ë¤Ê¤é¡¢¤½¤ì¤Ï¤È¤Æ¤â¤¤¤¤¤Î¤ÇÀ§È󤽤¦¤·¤Æ¤¯¤À¤µ¤¤¡£²¿¸Î¤Ê¤é¡¢ÌäÂ꤬ ¤â¤Ï¤äÈóÀþ·Á¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢È¿Éü¤Ï¾¯¤Ê¤¤²ó¿ô¤Ç¼ý«¤¹¤ë¤Ç¤·¤ç¤¦¡£¤â¤·¤«¤· ¤¿¤é¤¿¤Ã¤¿°ì²ó¤Ç¤¹¤à¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¼ÂºÝ¤Î¼Â¸³¤Î¹ÖµÁ¤Ç¤Ï¥Ç¡¼¥¿²òÀϤËÂФ¹¤ë¤¤¤¯¤Ä¤«¤Î»Ø¼¨¤¬Í¿¤¨¤é¤ì¡¢¤½¤ì¤Ç ¥Ç¡¼¥¿¤Ø¤ÎºÇ½é¤Î´Ø¿ô¤ÎÅö¤Æ¤Ï¤á¤¬¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£¤â¤·¤«¤¹¤ë¤È¡¢´ðÁÃÍýÏÀ¤Î Ê£¿ô¤Î¦Ì̤ˤҤȤĤº¤ÄÂбþ¤¹¤ëÊ£¿ô²ó¤Î¥×¥í¥»¥¹¤¬É¬Íפ«¤âÃΤì¤Þ¤»¤ó¤¬¡¢ ¤½¤·¤Æ¤½¤ì¤é¤Î´Ø¿ô¤ÎÅö¤Æ¤Ï¤á¤Î¥Ñ¥é¥á¡¼¥¿¤«¤éËÜÅö¤ËÍߤ·¤«¤Ã¤¿¾ðÊó¤ò¼è¤ê ½Ð¤¹¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢fit ¤ò»È¤¨¤Ð¡¢µá¤á¤ë¥Ñ¥é¥á¡¼¥¿¤Î»ëÅÀ¤«¤éľÀܥ⠥ǥë´Ø¿ô¤ò½ñ¤¯¤³¤È¤Ë¤è¤ê¡¢¤½¤ì¤Ï¤·¤Ð¤·¤Ð 1 ²ó¤ÇºÑ¤à¤Î¤Ç¤¹¡£»þ¡¹¤Ï¤è¤ê Æñ¤·¤¤Åö¤Æ¤Ï¤áÌäÂê¤Î·×»»¥³¥¹¥È¤¬¤«¤«¤ê¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿ÊÑ´¹¤â¤«¤Ê¤ê¤Î³ä¹ç ¤ÇÈò¤±¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤â¤·¤³¤ì¤¬¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤Îñ½ã²½¤Ë´Ø¤·¤Æ¡¢Á°¤Î ÃÊÍî¤ÈÌ·½â¤·¤Æ¤ë¤È»×¤¦¤Ê¤é¡¢¤½¤ì¤ÏÀµ²ò¤Ç¤¹¡£

"singular matrix" ¤Î¥á¥Ã¥»¡¼¥¸¤Ï¡¢¤³¤Î Marquardt-Levenberg ¥¢¥ë¥´¥ê¥º ¥à¤Î¥ë¡¼¥Á¥ó¤¬¡¢¼¡¤ÎÈ¿Éü¤ËÂФ¹¤ë¥Ñ¥é¥á¡¼¥¿¤ÎÃͤη׻»¤¬½ÐÍè¤Ê¤¤¤³¤È¤ò°Õ Ì£¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢Ê̤ʽé´üÃͤ«¤é»Ï¤á¤ë¤«¡¢´Ø¿ô¤òÊ̤ʷÁ¤Ç½ñ¤­Ä¾¤¹¤«¡¢ ¤è¤ê´Êñ¤Ê´Ø¿ô¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

ºÇ¸å¤Ë¡¢Â¾¤ÎÅö¤Æ¤Ï¤á¥Ñ¥Ã¥±¡¼¥¸ (fudgit) ¤Î¥Þ¥Ë¥å¥¢¥ë¤«¤é¡¢¤³¤ì¤é¤Îʸ½ñ ¤òÍ×Ì󤹤ë¤è¤¦¤Ê¤¤¤¤°úÍѤò¾å¤²¤Þ¤¹: "Nonlinear fitting is an art! (Èó Àþ·ÁÅö¤Æ¤Ï¤áË¡¤Ï·Ý½Ñ¤À !)"

89 ´Ø¿ô¥Ö¥í¥Ã¥¯ (function blocks)

¥³¥Þ¥ó¥É function ¤Ï¡¢gnuplot ¥³¡¼¥É¤«¤é¤Ê¤ë̾Á°ÉÕ¤­¥Ö¥í¥Ã¥¯¤Î¥Ò¥¢¥É ¥­¥å¥á¥ó¥È·Á¼°¤Ë¤è¤ëÄêµÁ¤ò°ÕÌ£¤¹¤ëÉä¹æ¤Ç¡¢¤½¤ì¤Ï´Ø¿ô¤È¤·¤Æ¸Æ¤Ó½Ð¤¹¤³¤È ¤¬²Äǽ¤Ç¤¹¡£ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÈƱÍÍ¡¢´Ø¿ô (function) ¥Ö¥í¥Ã¥¯¤Î̾Á°¤Ï '$' ¤Ç»Ï¤Þ¤ëɬ Íפ¬¤¢¤ê¤Þ¤¹¡£¤½¤ÎÄêµÁ¤Ë¤Ï¡¢ºÇÂç 9 ¤Ä¤Î̾Á°ÉÕ¤­¤Î°ú¿ô¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£ ¤½¤ì¤é¤Î̾Á°¤Ï¡¢¤½¤Î´Ø¿ô¥Ö¥í¥Ã¥¯Æâ¤Ç¶É½êÊÑ¿ô¤È¤·¤Æ°·¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: local (96), scope (26)¡£

°ìÅٴؿô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤¹¤ë¤È¡¢¤½¤ì¤òÄ̾ï¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤Î¤ÈƱ¤¸¤è¤¦¤Ë ¤É¤³¤Ç¤â¤½¤Î̾Á°¤Ç¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ÊÖ¤êÃͤ¬Å¬ÀڤǤʤ¤¾ì¹ç¡¢´Ø¿ô ¥Ö¥í¥Ã¥¯¤ò¡¢¿ô¼°¤Î°ìÉô¤È¤·¤Æ¤Ç¤Ê¤¯¡¢¥³¥Þ¥ó¥É "evaluate" ¤Ç¸Æ¤Ó½Ð¤¹¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


    function $sinc(arg) << EOF
        if (arg == 0) { return 1.0 }
        return sin(arg) / arg
    EOF


    gnuplot> plot $sinc(x) with lines title "sinc(x) as a function block"

̾Á°ÉÕ¤­°ú¿ô¤Î°ìÍ÷¤Ï¡¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ÎÀë¸À»þ¤Ë»ØÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤷ¤¿´Ø¿ô¤Î°ú¿ô¤Î¸Ä¿ô¤È¤½¤ÎÃͤϡ¢´Ø¿ô¥Ö¥í¥Ã¥¯¤ÎÆâÉô ¤«¤é¡¢À°¿ôÊÑ¿ô ARGC ¤È¤½¤ì¤ËÂбþ¤¹¤ëÇÛÎó ARGV[ARGC] ¤Ç¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: ARGV (82.1)¡£¤³¤ì¤Ë¤è¤ê¡¢²ÄÊѤʸĿô¤Î°ú¿ô¤òÁàºî¤Ç¤­¤ë´Ø¿ô¥Ö¥í¥Ã¥¯ ¤òÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£call ʸ¤Ë¤è¤ë¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß¤È¤Ï°ã¤¤¡¢ °ú¿ô¤Ïʸ»úÎóÊÑ¿ô²½ (Î㤨¤Ð ARG1) ¤Ï¤µ¤ì¤Þ¤»¤ó¡£

Îã:


    function $max << EOF
        local max = real("-Inf")
        if (ARGC == 0) { return NaN }
        do for [i=1:ARGC] {
            if (max < ARGV[i]) {
                max = ARGV[i]
            }
        }
        return max
    EOF
    gnuplot> foo = $max( f(A), 2.0, C, Array[3] )
    gnuplot> baz = $max( foo, 100. )

´Ø¿ô¥Ö¥í¥Ã¥¯¤ò¥µ¥Ý¡¼¥È¤¹¤ë°ìÈÖ¤ÎÌÜŪ¤Ï¡¢Ê£»¨¤Ê´Ø¿ô¤ò gnuplot ÆâÉô¤Çľ ÀÜÄêµÁ¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤Ç¤¹¡£¤â¤Á¤í¤ó¡¢Æ±¤¸´Ø¿ô¤ò C ¤ä Fortran ¤Ç¥³ ¡¼¥É¤·¤¿¾ì¹ç¤è¤ê¤â¼Â¹Ô®ÅÙ¤ÏÃÙ¤¯¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¿§¡¹¤ÊÌÜŪ¤ËÅú¤¨¤ë¤³ ¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£¼Â¹Ô®ÅÙ¤¬½ÅÍפʾì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë¤½¤Î´Ø¿ô¤òÊ̤˥ץ饰 ¥¤¥ó¤È¤·¤Æ¼ÂÁõ¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦ (°Ê²¼»²¾È: plugins (25))¡£

´Ø¿ô¥Ö¥í¥Ã¥¯¤ò»È¤¦ 2 ¤ÄÌܤÎÌÜŪ¤Ï¡¢gnuplot ¥³¥Þ¥ó¥É¤¬¡¢¤³¤ì¤ò»È¤¦°Ê³° ¤Ë¤Ï¸ºß¤Ç¤­¤Ê¤¤¤è¤¦¤Ê¾õ¶·¤Ç¤½¤Î¼Â¹Ô¤ò²Äǽ¤Ë¤¹¤ë¤³¤È¤Ç¤¹¡£Î㤨¤Ð¤¢¤Ê¤¿ ¤¬ 2 ¤Ä¤Î CSV ¥Õ¥¡¥¤¥ë¤«¤é¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¤¿¤¤¤¬¡¢°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ï¥Õ¥£ ¡¼¥ë¥É¤¬¥«¥ó¥Þ¶èÀÚ¤ê¤Ç¡¢¤â¤¦°ìÊý¤Ï¥»¥ß¥³¥í¥ó¶èÀÚ¤ê¤Ç¤¢¤ë¤È¤·¤Þ¤¹¡£ÄÌ¾ï ¤³¤Î°À­¤ËÂФ·¤Æ¤Ï¡¢»öÁ°¤Ë¥³¥Þ¥ó¥É set datafile ¤ò¥»¥Ã¥È¤·¤Þ¤¹¤¬¡¢¤½ ¤ì¤Ï plot ¥³¥Þ¥ó¥É¤¬»ÈÍѤ¹¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤ËŬÍѤµ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤· ¤«¤·²æ¡¹¤Ï¡¢³Æ¥Õ¥¡¥¤¥ë¤¬ plot ¥³¥Þ¥ó¥É¤Ç»²¾È¤µ¤ì¤ëľÁ°¤Ë¤½¤ì¤òÀßÄꤹ¤ë ¤è¤¦¤Ë¸Æ¤Ó¤À¤¹¤è¤¦¤Ê´Ø¿ô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤Ç¤­¤Þ¤¹¡£


    function $set_csv(char) << EOF
        set datafile separator char
    EOF
    plot tmp=$set_csv(",") FILE1, tmp=$set_csv(";") FILE2

À©¸Â:

´Ø¿ô¥Ö¥í¥Ã¥¯¤ò»È¤¦¼«ÌÀ¤Ç¤Ê¤¤Îã¤È¤·¤Æ¡¢Ê£ÁÇÂпô¥¬¥ó¥Þ´Ø¿ô lngamma ¤ËÂÐ ¤¹¤ë 15 ¹à Lanczos ¶á»÷¤Î¼ÂÁõ¤È¥°¥é¥Õ¤¬¥Ç¥â¥³¥ì¥¯¥·¥ç¥óÆâ¤Ë¤¢¤ê¤Þ¤¹¡£ function_block.dem

¤³¤Î´Ø¿ô¥Ö¥í¥Ã¥¯¤Ë¤è¤ë¼ÂÁõ¤Ï¡¢Æ±¤¸¥¢¥ë¥´¥ê¥º¥à¤Ç C ¤ÇľÀÜ¥³¡¼¥É¤µ¤ì¤Æ ¤¤¤ëÁȤ߹þ¤ß´Ø¿ô¤Î lnGamma ¤ÈÈæ¤Ù¤Æ¡¢¤À¤¤¤¿¤¤ 25 ÇÜ°ÌÃÙ¤¤¤Ç¤¹¤¬¡¢¤½¤ì ¤Ç¤âÂÐÏ÷¿¤Ç¤Î 3 ¼¡¸µ¥°¥é¥Õ¤Î²óž¤Ë¤Ï½½Ê¬¤Ê°Ì¤Î®¤µ¤Ç¤¹¡£ ¥Ç¥â¤Ë¤¢¤ë´Ø¿ôÄêµÁ¤Ï°Ê²¼¤ÎÄ̤ꡣ

15 ¹à Lanczos ¶á»÷¤òÍѤ¤¤¿ log$\Gamma$(z) ¤Î´Ø¿ô¥Ö¥í¥Ã¥¯¤Ë¤è¤ë¼ÂÁõ
 
 array coef[15] = [ ... ]
  function $Lanczos(z) << EOD
     local Sum = coef[1] + sum [k=2:15] coef[k] / (z + k - 1)
     local temp = z + 671./128.
     temp = (z + 0.5) * log(temp) - temp
     temp = temp + log( sqrt(2*pi) * Sum/z )
     return temp
 EOD
  function $Reflect(z) << EOD
     local w = $Lanczos(1.0 - z)
     local temp = log( sin(pi * z) )
     return log(pi) - (w + temp)
 EOD
  my_lngamma(z) = (z == 0) ? NaN : (real(z) < 0.5) ? $Reflect(z) : $Lanczos(z)

´Ø¿ô¥Ö¥í¥Ã¥¯¤Î»ÈÍѤϻÃʳ¬¤Ç¤¹¡£ ¾ÜºÙ¤Ï¡¢¥ê¥ê¡¼¥¹ÈǤ˴ޤޤì¤ëÁ°¤ËÊѹ¹¤µ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

90 Help

help¥³¥Þ¥ó¥É¤Ï¡¢ÁȤ߹þ¤ß¥Ø¥ë¥×¤òɽ¼¨¤·¤Þ¤¹¡£¤¢¤ë¹à¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ¤ò»Ø Äꤷ¤¿¤¤¤È¤­¤Ë¤Ï¡¢¼¡¤Î½ñ¼°¤ò»È¤Ã¤Æ²¼¤µ¤¤:


     help {<¹àÌÜ̾>}

¤â¤· <¹àÌÜ̾> ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ë¤Ä¤¤¤Æ¤Î´Êñ¤ÊÀâÌÀ ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¹àÌܤˤĤ¤¤Æ¤ÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¡¢¤½¤ì¤ËÂФ¹¤ë ºÙÌܤΥá¥Ë¥å¡¼¤¬É½¼¨¤µ¤ì¡¢¤½¤ÎºÙÌÜ̾¤òÆþÎϤ¹¤ë¤³¤È¤ÇºÙÌܤËÂФ¹¤ë¥Ø¥ë¥× ¤ò³¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎºÙÌܤÎÀâÌÀ¤¬É½¼¨¤µ¤ì¤¿¸å¤Ë¡¢¤µ¤é¤Ê ¤ëºÙÌÜ̾¤ÎÆþÎϤòÍ׵ᤵ¤ì¤ë¤«¡¢¤Þ¤¿¤Ï 1 ¤ÄÁ°¤Î¹àÌܤΥì¥Ù¥ë¤ØÌá¤ê¤Þ¤¹¡£ ¤³¤ì¤ò·«¤êÊÖ¤¹¤È¤ä¤¬¤Æ¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ø¤ÈÌá¤ê¤Þ¤¹¡£

¤Þ¤¿¡¢µ¿ÌäÉä (?) ¤ò¹àÌܤȤ·¤Æ»ØÄꤹ¤ë¤È¡¢¸½ºß¤Î¥ì¥Ù¥ë¤Î¹àÌܤΥꥹ¥È¤¬ ɽ¼¨¤µ¤ì¤Þ¤¹¡£

91 History

¥³¥Þ¥ó¥É history ¤Ï¡¢¥³¥Þ¥ó¥ÉÍúÎò¤Î°ìÍ÷¤òɽ¼¨¤·¤¿¤ê¡¢Êݸ¤·¤¿¤ê¡¢°ì Í÷¤ÎÃæ¤Î¥³¥Þ¥ó¥É¤òºÆ¼Â¹Ô¤·¤¿¤ê¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤ÎµóÆ°¡¢¤ª¤è¤ÓÍúÎò¥Õ ¥¡¥¤¥ë¤ÎÊݸ¾ì½ê¤òÊѤ¨¤ë¤Ë¤Ï¡¢°Ê²¼»²¾È: set history (112.34)¡£

history ¥³¥Þ¥ó¥É¤Ç»Ï¤Þ¤ëÆþÎϹԤϡ¢¥³¥Þ¥ó¥ÉÍúÎò¤Ë¤ÏÊݸ¤·¤Þ¤»¤ó¡£

Îã:


     history               # ÍúÎòÁ´ÂΤòɽ¼¨
     history 5             # ÍúÎòÆâ¤ÎľÁ°¤Î 5 ¤Ä¤òɽ¼¨
     history quiet 5       # ¥¨¥ó¥È¥êÈÖ¹æ¤Ê¤·¤ÇľÁ°¤Î 5 ¤Ä¤òɽ¼¨
     history "hist.gp"     # ÍúÎòÁ´ÂΤò¥Õ¥¡¥¤¥ë hist.gp ¤Ë½ñ¤­½Ð¤¹
     history "hist.gp" append # ÍúÎòÁ´ÂΤò¥Õ¥¡¥¤¥ë hist.gp ¤ËÄɲ乤ë
     history 10 "hist.gp"  # ľÁ°¤Î 10 ¸Ä¤ò¥Õ¥¡¥¤¥ë hist.gp ¤Ë½ÐÎÏ
     history 10 "|head -5 >>diary.gp" # ¥Ñ¥¤¥×¤ÇÍúÎò¤ò 5 ¤Ä½ñ¤­½Ð¤¹
     history ?load         # ÍúÎòÆâ¤Î "load" ¤Ç»Ï¤Þ¤ë¤â¤Î¤¹¤Ù¤Æ¤òɽ¼¨
     history ?"set c"      # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à)
     hist !"set xr"        # ¾å¤ÈƱÍÍ (Ê£¿ô¤Î¸ì¤Ï°úÍÑÉä¤Ç°Ï¤à)
     hist !55              # 55 ÈÖÌܤÎÍúÎò¹àÌܤΥ³¥Þ¥ó¥É¤òºÆ¼Â¹Ô

92 If

½ñ¼°:


     if (<condition>) { <commands>;
            <commands>
            <commands>
     } else if (<condition>) {
            <commands>
     } else {
            <commands>
     }

¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢if/else ¤Î¥Ö¥í¥Ã¥¯·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ ¤¹¡£¥­¡¼¥ï¡¼¥É if, else ¤Î¸å¤í¤Ë³«»Ï¥«¥Ã¥³ "{" ¤¬Â³¤¯¾ì¹ç¡¢"}" ¤Ç ½ªÎ»¤¹¤ë¥Ö¥í¥Ã¥¯¤Þ¤Ç¤Î¤¹¤Ù¤Æ¤Îʸ (Ê£¿ô¤ÎÆþÎϹԤâ²Ä) ¤Ë¾ò·ïŪ¤Ê¼Â¹Ô¤¬Å¬ ÍѤµ¤ì¤Þ¤¹¡£if ¥³¥Þ¥ó¥É¤ÏÆþ¤ì»Ò¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

¥Ð¡¼¥¸¥ç¥ó 5 ¤è¤êÁ°¤Î gnuplot ¤Ç¤Ï¡¢if/else ¥³¥Þ¥ó¥É¤ÎÄÌÍÑÈÏ°Ï¤Ï 1 ¹Ô Æâ¤Ëα¤Þ¤Ã¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¸½ºß¤ÏÊ£¿ô¹Ô¤òÃ楫¥Ã¥³ { } ¤Ç°Ï¤ó¤Ç½ñ¤¯¤³¤È¤¬ ¤Ç¤­¤Þ¤¹¡£¸Å¤¤·Á¼°¤â°ì±þ»Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÃ楫¥Ã¥³¤Î¥Ö¥í¥Ã¥¯Æâ¤Ç »È¤¦¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

°ÊÁ°¤Î½ñ¼°:


     if (<¾ò·ï>) <¥³¥Þ¥ó¥É¹Ô> [; else if (<¾ò·ï>) ...; else ...]

¥­¡¼¥ï¡¼¥É if ¤¬ "{" ¤ò¤È¤â¤Ê¤ï¤Ê¤¤¾ì¹ç¤Ï¡¢<¾ò·ï> ¤¬¿¿ (¥¼¥í¤Ç¤Ê¤¤) ¤Ê¤é¤Ð <¥³¥Þ¥ó¥É¹Ô> ¤Î¥³¥Þ¥ó¥É (Ê£¿ô¤â²Ä) ¤¬¼Â¹Ô¤µ¤ì¡¢µ¶ (¥¼¥í) ¤Ê¤é¤Ð ¥¹¥­¥Ã¥×¤µ¤ì¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç¤âÆþÎϹԤκǸå¤Ë¤Ê¤ë¤«¡¢else ¤¬¸½¤ì¤ë ¤È¤³¤í¤Þ¤Ç¤½¤ì¤¬¹Ô¤ï¤ì¤Þ¤¹¡£; ¤ò»È¤¦¤ÈƱ¤¸¹Ô¤ËÊ£¿ô¤Î¥³¥Þ¥ó¥ÉÃÖ¤¯¤³¤È ¤¬²Äǽ¤Ç¤¹¤¬¡¢¾ò·ïÉÕ¤­¤Î¥³¥Þ¥ó¥É (if ¤Î¹½Ê¸¼«ÂÎ) ¤Ï¤½¤³¤Ç¤Ï½ª¤é¤Ê¤¤ ¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

93 For

plot, splot, set, unset ¥³¥Þ¥ó¥É¤Ç¤Ï¡¢·«¤êÊÖ¤·¤ÎÀá¤ò»È¤¦¤³¤È¤â ¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢´ðËÜŪ¤Ê¥³¥Þ¥ó¥É¤òÊ£¿ô²ó¼Â¹Ô¤¹¤ë¸ú²Ì¤ò»ý¤Á¡¢¤½¤Î¤ª¤Î ¤ª¤Î¤Î¼Â¹Ô¤Ç¤Ï·«¤êÊÖ¤·À©¸æÊÑ¿ô¤Ë¤è¤Ã¤Æ¿ô¼°¤ÏºÆɾ²Á¤µ¤ì¤Þ¤¹¡£do ¥³¥Þ ¥ó¥É¤Ç¤Ï¡¢¤É¤ó¤Ê¥³¥Þ¥ó¥ÉÎó¤Ç¤â·«¤êÊÖ¤·¼Â¹Ô¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£·«¤êÊÖ ¤·Àá¤Ï¸½ºß¤Ï°Ê²¼¤Î 2 ¤Ä¤Î·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:


     for [intvar = start:end{:increment}]
     for [stringvar in "A B C D"]

Îã:


     plot for [filename in "A.dat B.dat C.dat"] filename using 1:2 with lines
     plot for [basename in "A B C"] basename.".dat" using 1:2 with lines
     set for [i = 1:10] style line i lc rgb "blue"
     unset for [tag = 100:200] label tag

·«¤êÊÖ¤·¤ÎÆþ¤ì»Ò¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹:


     set for [i=1:9] for [j=1:9] label i*10+j sprintf("%d",i*10+j) at i,j

¤µ¤é¤Ê¤ëÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: iteration (19), do (85)¡£

94 Import

¥³¥Þ¥ó¥É import ¤Ï¡¢¥æ¡¼¥¶Äê´ü´Ø¿ô̾¤ò³°Éô¶¦Í­¥ª¥Ö¥¸¥§¥¯¥È¤«¤é¼è¤ê¹þ ¤Þ¤ì¤ë´Ø¿ô¤Ë·ë¤Ó¤Ä¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤ÇÍøÍѲÄǽ¤Ê´Ø¿ô¤ÎÀßÄê¤ò³ÈÄ¥ ¤¹¤ë¥×¥é¥°¥¤¥óµ¡¹½¤ò¹½À®¤·¤Þ¤¹¡£

½ñ¼°:


     import func(x[,y,z,...]) from "sharedobj[:symbol]"

Îã:


     # ´Ø¿ô myfun ¤ò "mylib.so" ¤« "mylib.dll" ¤«¤é¼è¤ê¹þ¤ó¤ÇºîÀ®¤¹¤ë
     # gnuplot ¤Ç¤ÏÉÁ²è¡¢¤Þ¤¿¤Ï¿ôÃÍ·×»»¤ÇÍøÍѲÄǽ
     import myfun(x) from "mylib"
     import myfun(x) from "mylib:myfun"    # ¾å¤ÈƱÍÍ


     # "theirlib.so" ¤« "theirlib.dll" ¤ÇÄêµÁºÑ¤Î´Ø¿ô theirfun ¤òºîÀ®
     # °Û¤Ê¤ë̾Á°¤ÇÍøÍѲÄǽ
     import myfun(x,y,z) from "theirlib:theirfun"

¥×¥í¥°¥é¥à¤Ï¶¦Í­¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿Ì¾Á°¤Ë¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥· ¥¹¥Æ¥à¤Ë½¾¤Ã¤Æ ".so" ¤« ".dll" ¤òÄɲä·¡¢¤Þ¤º¤½¤ì¤ò¥Õ¥ë¥Ñ¥¹Ì¾¤È¤·¤Æ¸¡ º÷¤·¡¢¼¡¤Ë¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ¸¡º÷¤·¤Þ¤¹¡£¥ª¥Ú¥ì ¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¼«ÂΤâ LD_LIBRARY_PATH ¤« DYLD_LIBRARY_PATH ¤ÎǤ°Õ¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤ò¸¡º÷¤·¤Þ¤¹¡£°Ê²¼»²¾È: plugins (25)¡£

95 Load

load ¥³¥Þ¥ó¥É¤Ï¡¢»ØÄꤵ¤ì¤¿ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤ò¡¢¤½¤ì¤¬ÂÐÏÃŪ¤ËÆþÎÏ ¤µ¤ì¤¿¤«¤Î¤è¤¦¤Ë¼Â¹Ô¤·¤Þ¤¹¡£save ¥³¥Þ¥ó¥É¤Ç¤Ä¤¯¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤Ï¡¢ load ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Í­¸ú¤Ê gnuplot ¥³¥Þ¥ó¥É¤Î½ñ¤«¤ì¤¿¥Æ¥­¥¹¥È¥Õ ¥¡¥¤¥ë¤Ï¡¢load¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¡¢¼Â¹Ô¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£load Ãæ¤Î ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¤µ¤é¤Ë load ¤Þ¤¿¤Ï call ¥³¥Þ¥ó¥É¤¬¤¢¤Ã¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£ load ¤¹¤ë¥Õ¥¡¥¤¥ë¤Ë°ú¿ô¤òÍ¿¤¨¤ë¤Ë¤Ï¡¢°Ê²¼»²¾È: call (82)¡£

½ñ¼°:


     load "<ÆþÎÏ¥Õ¥¡¥¤¥ë̾>"
     load $datablock

ÆþÎÏ¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

load ¥³¥Þ¥ó¥É¤Ï¡¢É¸½àÆþÎϤ«¤é¤Î¥³¥Þ¥ó¥É¤ÎÆþÎϤΤ¿¤á¤Ë¡¢ÆÃÊ̤ʥե¡¥¤ ¥ë̾ "-" ¤òÍÑ°Õ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤Î¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤¬¡¢¤¤ ¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤òɸ½àÆþÎϤ«¤é¼õ¤±ÉÕ¤±¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ ¤Ï¡¢°Ê²¼»²¾È: batch/interactive (7)¡£

popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à¤Ç¤Ï¡¢'<' ¤Ç»Ï¤Þ¤ë¥Õ¥¡¥¤¥ë̾¤Ë¤¹ ¤ë¤³¤È¤Ç¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤ò¥Ñ¥¤¥×¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


     load 'work.gnu'
     load "func.dat"
     load "< loadfile_generator.sh"

gnuplot ¤Ø¤Î°ú¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤¿¥Õ¥¡¥¤¥ë̾¤Ï¡¢°ÅÌۤΤ¦¤Á¤Ë load ¥³ ¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢»ØÄꤵ¤ì¤¿½ç¤Ë¥í¡¼¥É¤µ¤ì¡¢¤½¤Î¸å gnuplot ¤Ï½ªÎ»¤·¤Þ¤¹¡£

»î¸³Ãʳ¬: ÆâÉô¤ÇÊݸ¤·¤¿¥Æ¥­¥¹¥È¤Î¹Ô¤«¤é¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£´Ø¿ô¥Ö¥í¥Ã¥¯¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¡¢¤¢ ¤ë¤¤¤Ï³°Éô¥Õ¥¡¥¤¥ë¤ÇÄêµÁ¤Ç¤­¤Þ¤¹¡£°ìÅٴؿô¥Ö¥í¥Ã¥¯¤òÄêµÁ¤µ¤ì¤Ð¡¢¤½¤Î¥³ ¥Þ¥ó¥É¤Ï¡¢¤¢¤é¤¿¤á¤Æ¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤Î¤Ç¤Ê¤¯ÆâÉô¤Î¥³¥Ô¡¼¤ËÂФ·¤Æ evaluate ¤ò»È¤¦¤³¤È¤Ç·«¤êÊÖ¤·¼Â¹Ô¤Ç¤­¤Þ¤¹¡£

96 Local

½ñ¼°:


    local foo = <expression>
    local array foo[size]

¥­¡¼¥ï¡¼¥É local ¤Ï¡¢ÊÑ¿ô¤ÎÀë¸À¤òƳÆþ¤·¡¢¤½¤ÎÊÑ¿ô¤ÎÍ­¸úÈÏ°Ï (scope) ¤ò¡¢¤½¤ÎÀë¸À¤¬´Þ¤Þ¤ì¤ë¥³¡¼¥É¥Ö¥í¥Ã¥¯Æâ¤Î¼Â¹Ô¤Î¤ß¤ËÀ©¸Â¤·¤Þ¤¹¡£ÊÑ¿ôÀë¸À ¤Ïɬ¿Ü¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢¤½¤ì¤¬¤Ê¤±¤ì¤Ð¤¹¤Ù¤Æ¤ÎÊÑ¿ô¤ÏÂç°è (global) ÊÑ¿ô ¤È¤Ê¤ê¤Þ¤¹¡£¶É½ê (local) ÊÑ¿ô¤Î̾Á°¤¬Âç°èÊÑ¿ô¤È½Å¤Ê¤Ã¤¿¾ì¹ç¤Ï¡¢¶É½êÊÑ ¿ô¤ÎÍ­¸úÈϰϤ«¤éÈ´¤±¤ë¤Þ¤Ç¤Ï¡¢Âç°èÊÑ¿ô¤Ï±£¤·¤Þ¤¹¡£°Ê²¼»²¾È: scope (26)¡£

local ¤ÎÀë¸À¤Ï¡¢call ¤ä load ʸ¤Ë¤è¤Ã¤ÆÂç°èÊÑ¿ô¤ÎÃͤ¬°Õ¼±¤»¤º¤Ë¾å ½ñ¤­¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£¤³¤ì¤ÏÆä˴ؿô¥Ö¥í¥Ã¥¯Æâ¤Ç Í­ÍѤǤ¹¡£¥³¥Þ¥ó¥É local ¤Ï¡¢if, else, do for, while ¤Ë³¤¯ Ãæ³ç¸Ì¤Î¥³¡¼¥É¥Ö¥í¥Ã¥¯Æâ¤Ç¤âÍ­¸ú¤Ç¤¹¡£

Îã: ¥Ç¡¼¥¿½¸¹ç¤Î°ì·²¤òÉÁ²è¤¹¤ë¥³¥Þ¥ó¥É¤«¤é¤Ê¤ë°Ê²¼¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È "plot_all_data.gp" ¤ò½ñ¤¯¤È¤·¤Þ¤¹¡£¤³¤ÎÊØÍø¤Ê¥¹¥¯¥ê¥×¥È¤Ï¡¢"file" ¤ä "files" ¤ä "dataset" ¤ä "outfile" ¤Î̾Á°¤ÎǤ°Õ¤ÎÊÑ¿ô¤¬Ç˲õ¤µ¤ì¤ë¿´ÇÛ¤ò ¤»¤º¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¡¢¤¢¤ë¤¤¤Ï¾¤Î¥¹¥¯¥ê¥×¥È¤«¤é¸Æ¤Ó½Ð¤»¤Þ¤¹¡£ ÊÑ¿ô "file" ¤ÏËܼÁŪ¤Ë¶É½êŪ¤Ç¡¢¤½¤ì¤Ï¤½¤ì¤¬·«¤êÊÖ¤·ÊÑ¿ô¤À¤«¤é¤Ç¤¹ (°Ê²¼»²¾È: scope (26)) ¤¬¡¢Â¾¤Î 3 ¤Ä¤Ï¡¢¤½¤ì¤é¤òÊݸ¤ë¤Ë¤Ï¥­¡¼¥ï¡¼¥É local ¤¬É¬ÍפǤ¹¡£

plot_all_data.gp:


    local files = system("ls -1 *.dat")
    do for [file in files] {
       local dataset = file[1:strstrt(file,".dat")-1]
       local outfile = dataset . ".png"
       set output outfile
       plot file with lines title dataset
    }
    unset output

97 Lower

°Ê²¼»²¾È: raise (104)¡£

98 Pause

pause ¥³¥Þ¥ó¥É¤Ï¡¢¥³¥Þ¥ó¥É¤Ë³¤¯Ç¤°Õ¤Îʸ»úÎó¤òɽ¼¨¤·¤¿¸å¡¢»ØÄꤵ¤ì ¤¿»þ´Ö¤Þ¤¿¤Ï¡¢²þ¹Ô¥­¡¼¤¬²¡¤µ¤ì¤ë¤Þ¤ÇÂÔ¤Á¤Þ¤¹¡£pause ¥³¥Þ¥ó¥É¤Ï¡¢ load ÍѤΥե¡¥¤¥ë¤È¶¦¤Ë»ÈÍѤ¹¤ë¤È¡¢ÊØÍø¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

½ñ¼°:


     pause <time> {"<string>"}
     pause mouse {<endcondition>}{, <endcondition>} {"<string>"}
     pause mouse close

<time> ¤Ï¡¢Ç¤°Õ¤ÎÄê¿ô¤Þ¤¿¤Ï¼Â¿ôÃͤμ°¤Ç¤¹¡£pause -1 ¤Ï²þ¹Ô¥­¡¼¤¬²¡¤µ ¤µ¤ì¤ë¤Þ¤ÇÂÔ¤Á¡¢0 ¤ò»ØÄꤹ¤ë¤È°ìÀÚÂÔ¤¿¤º¡¢Àµ¤Î¿ô¤ò»ØÄꤹ¤ë¤È¤½¤ÎÉÿô¤À ¤±ÂÔ¤Á¤Þ¤¹¡£

»ÈÍѤ·¤Æ¤¤¤ë½ÐÎÏ·Á¼°¤¬ mousing (¥Þ¥¦¥¹µ¡Ç½) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢ pause mouse ¤Ï¡¢¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¤¬¤¢¤ë¤« ctrl-C ¤¬²¡¤µ¤ì¤ë¤Þ¤ÇÂԤĤ褦 ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¡¢¤Þ¤¿¤Ï¥Þ¥¦¥¹µ¡Ç½¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤Ê¤¤¾ì¹ç pause mouse ¤Ï pause -1 ¤ÈƱ¤¸¤Ç¤¹¡£

°ì¤Ä¡¢¤¢¤ë¤¤¤ÏÊ£¿ô¤Î½ªÎ»¾ò·ï (endcondition) ¤¬ pause mouse ¤Î¸å¤ËÍ¿ ¤¨¤é¤ì¤¿¾ì¹ç¡¢¤½¤Î¤¦¤Á¤Î¤É¤Î°ì¤Ä¤Ç¤â pause ¤Ï½ªÎ»¤·¤Þ¤¹¡£»ØÄê¤Ç¤­¤ë½ª λ¾ò·ï¤Ï¡¢keypress, button1, button2, button3, close, any ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£pause ¤¬¥­¡¼ÆþÎϤˤè¤Ã¤Æ½ªÎ»¤·¤¿¾ì¹ç¡¢²¡¤µ¤ì¤¿¥­¡¼¤Î ASCII ¥³¡¼¥É¤Ï MOUSE_KEY ¤ËÊݸ¤µ¤ì¡¢Ê¸»ú¤½¤ì¼«¿È¤Ï¡¢1 ʸ»ú¤Îʸ»úÎóÃÍ ¤È¤·¤Æ MOUSE_CHAR ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£keypress ¤¬½ªÎ»¾ò·ï¤Î°ì¤Ä¤Ç¤¢¤ì¤Ð¡¢ ¥Û¥Ã¥È¥­¡¼ (¥­¡¼³ä¤êÅö¤Æ¥³¥Þ¥ó¥É) ¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£buttons3 ¤¬½ªÎ» ¾ò·ï¤Î°ì¤Ä¤Ç¤¢¤ì¤Ð¡¢³ÈÂ絡ǽ¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£

¤É¤Î¾ì¹ç¤Ç¤â¥Þ¥¦¥¹¤ÎºÂɸ¤ÏÊÑ¿ô MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ¤Ë Êݸ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: mouse variables (22.2)¡£

Ãí°Õ: pause ¥³¥Þ¥ó¥É¤Ï OS ¤Ø¤Î¥³¥Þ¥ó¥É¤Ç¤¢¤êÉÁ²è¤Î°ìÉô¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢ °Û¤Ê¤ë½ÐÎÏÁõÃ֤ǤϰۤʤëÆ°ºî¤ò¤¹¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£(¤³¤ì¤Ï¡¢¥Æ¥­¥¹¥È ¤È¥°¥é¥Õ¥£¥Ã¥¯¥¹¤¬¡¢¤É¤Î¤è¤¦¤Ëº®ºß¤¹¤ë¤«¤Ë¤è¤ê¤Þ¤¹¡£)

Îã:


     pause -1    # ²þ¹Ô¥­¡¼¤¬²¡¤µ¤ì¤ë¤Þ¤ÇÂÔ¤Ä
     pause 3     # 3 ÉÃÂÔ¤Ä
     pause -1  "³¤±¤ë¤Ë¤Ï return ¤òÂǤäƤ¯¤À¤µ¤¤"
     pause 10  "¤³¤ì¤ÏÈþ¤·¤¯¤Ê¤¤¤Ç¤¹¤« ? 3 ¼¡¤Î spline ¤Ç¤¹"
     pause mouse "ÁªÂò¤·¤¿¥Ç¡¼¥¿ÅÀ¾å¤ÇǤ°Õ¤Î¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤"
     pause mouse keypress "Í­¸ú¤Ê¥¦¥£¥ó¥É¥¦Æâ¤Ç A-F ¤Îʸ»ú¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤"
     pause mouse button1,keypress
     pause mouse any "Ǥ°Õ¤Î¥­¡¼¡¢¥Ü¥¿¥ó¤Ç½ªÎ»¤·¤Þ¤¹"

°¡¼ï¤Ç¤¢¤ë "pause mouse key" ¤Ï¡¢Í­¸ú¤ÊÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç¤ÎǤ°Õ¤Î¥­¡¼ ÆþÎϤˤè¤Ã¤ÆºÆ³«¤µ¤ì¤Þ¤¹¡£ÆÃÊ̤ʥ­¡¼ÆþÎϤޤÇÂԤĤ褦¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê ²¼¤Î¤è¤¦¤Ê¥ë¡¼¥×¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹:


     print "ÉÁ²è¥¦¥£¥ó¥É¥¦Æâ¤Ç Tab ¥­¡¼¤òÂǤĤÈÉüµ¢¤·¤Þ¤¹¡£"
     plot <something>
     pause mouse key
     while (MOUSE_KEY != 9) {
         pause mouse key
     }

98.1 Pause mouse close

¥³¥Þ¥ó¥É pause mouse close ¤Ï¡¢³°Éô¥¤¥Ù¥ó¥È¤òÂԤĤ¿¤á¤ËÃæÃǤ¹¤ëÆÃħ Ū¤ÊÎã¤Î°ì¤Ä¤Ç¤¹¡£¤³¤Î¾ì¹ç¡¢gnuplot ¤ÏÉÁ²è¥¦¥£¥ó¥É¥¦¤«¤é "close" ¥¤¥Ù ¥ó¥È¤¬Íè¤ë¤Î¤òÂÔ¤Á¤Þ¤¹¡£¥Ç¥¹¥¯¥È¥Ã¥×´Ä¶­¡¢¹½À®Ëè¤ËÀµ³Î¤Ë¤½¤Î¥¤¥Ù¥ó¥È¤ò À¸À®¤¹¤ëÊýË¡¤Ï°Û¤Ê¤ê¤Þ¤¹¤¬¡¢Ä̾ï¤Ï¡¢¥¦¥£¥ó¥É¥¦¤Î¶­³¦¤Ë¤¢¤ë¤Ê¤ó¤é¤«¤ÎÉô Éʤò¥Þ¥¦¥¹¥¯¥ê¥Ã¥¯¤¹¤ë¤«¡¢<alt><F4> ¤ä <ctrl>q ¤Î¤è¤¦¤Ê¥Û¥Ã¥È¥­¡¼Îó¤ò ¥¿¥¤¥×¤¹¤ë¤³¤È¤ÇÉÁ²è¥¦¥£¥ó¥É¥¦¤ò close ¤Ç¤­¤Þ¤¹¡£¤½¤ì¤ËŬÀÚ¤ÊÏȤÎÉôÉÊ ¤ä¡¢¥Û¥Ã¥È¥­¡¼¤òÍøÍѲÄǽ¤Ç¤¢¤ë¤«¤ï¤«¤é¤Ê¤¤¾ì¹ç¡¢gnuplot ¼«¿È¤Î»ÅÁÈ¤ß¤Ç ¥Û¥Ã¥È¥­¡¼Îó¤òÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: bind (22.1)¡£

°Ê²¼¤Î¥³¥Þ¥ó¥ÉÎó¤Ï¡¢gnuplot ¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é¤Ç¤Ê¤¯¥¹¥¯¥ê¥×¥È¤«¤é¼Â ¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¤ËÍ­ÍѤǤ¹¡£


    plot <...whatever...>
    bind all "alt-End" "exit gnuplot"
    pause mouse close

98.2 Pause Ãæ¤Îµ¿»÷¥Þ¥¦¥¹Áàºî (pseudo-mousing during pause)

dumb, sixel, kitty, domterm ½ÐÎÏ·Á¼°¤Î¤è¤¦¤Ë¡¢Ê¸»úÎó½ÐÎϤȥ°¥é ¥Õ¥£¥Ã¥¯É½¼¨¤òƱ¤¸¥¦¥£¥ó¥É¥¦¤Ç¹Ô¤¦½ÐÎÏ·Á¼°¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î½ÐÎÏ·Á¼° ¤Ç¤Ï¡¢º£¤Î¤È¤³¤í¼Â¼ÁŪ¤Ë¥Þ¥¦¥¹Æ°ºî¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¥³¥Þ¥ó¥É pause mouse ¤Î´Ö¤Ï¡¢¥Þ¥¦¥¹Æ°ºî¤¬²Äǽ¤Ê½ÐÎÏ·Á¼°¤Î¾ì¹ç¤ÈƱ¤¸»ÅÁȤߤǥ­ ¡¼Áàºî¤ò²ò¼á¤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢l ¤ÏÂпô¼´¤Î¥È¥°¥ë¡¢a ¤Ï¸½ºß¤Î¥°¥é¥Õ ¤ò¼«Æ°½Ì¼Ü¤Ë¡¢º¸/±¦/¾å/²¼¤ÎÌð°õ¥­¡¼¤Ï¡¢3 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï»ëÊý¸þ¤òÊѲ½¤µ ¤»¡¢2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï»ëÅÀ°ÜÆ°/³ÈÂç¤ÎÁýʬ¥¹¥Æ¥Ã¥×¤ò¼Â¹Ô¤·¤Þ¤¹¡£h ¤Ï¥­ ¡¼³ä¤êÅö¤Æ¤Î°ìÍ÷¤òɽ¼¨¤·¡¢²þ¹Ô¥­¡¼¤Ï pause ¤ò½ªÎ»¤µ¤»¡¢Ä̾ï¤Î¥³¥Þ¥ó ¥É¥é¥¤¥óÁàºî¤ËÉüµ¢¤·¤Þ¤¹¡£

99 Plot

plot ¤È splot ¤Ï gnuplot ¤Ç¿Þ¤òÉÁ¤¯¤¿¤á¤Î´ðËÜŪ¤Ê¥³¥Þ¥ó¥É¤Ç¤¹¡£ ¤½¤ì¤é¤Ï´Ø¿ô¤ä¥Ç¡¼¥¿¤Î¡¢Â¿¤¯¤Î¼ïÎà¤Î¥°¥é¥Õɽ¸½¤òÄ󶡤·¤Þ¤¹¡£plot ¤Ï 2 ¼¡¸µ¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¤òÉÁ¤­¡¢splot ¤Ï 3 ¼¡¸µ¤Î¶ÊÌ̤ä¥Ç¡¼¥¿¤Î 2 ¼¡¸µÅê ±Æ¤òÉÁ¤­¤Þ¤¹¡£

½ñ¼°:


     plot {<axis-ranges>} <ÉÁ²èÍ×ÁÇ> {, <ÉÁ²èÍ×ÁÇ>, <ÉÁ²èÍ×ÁÇ>}

³ÆÉÁ²èÍ×ÁǤϡ¢ÄêµÁ (definition) ¤«´Ø¿ô (function) ¤«¥Ç¡¼¥¿ (data source) ¤Î¤¤¤º¤ì¤« 1 ¤Ä¤Ë¡¢¥ª¥×¥·¥ç¥ó¤Î°À­¡¢½¤Àµ»Ò¤Ê¤É¤¬¤Ä¤¤¤¿¤â¤Î¤Ç ¤¹:


     ÉÁ²èÍ×ÁÇ:
          {<iteration>}
          <definition> | {sampling-range} <function> | <data source>
                       | keyentry
          {axes <axes>} {<title-spec>}
          {with <style>}

³ÆÉÁ²èÍ×ÁǤΥ°¥é¥Õɽ¸½·Á¼°¤Ï¡¢Î㤨¤Ð with lines ¤ä with boxplot ¤Ê ¤É¤Î¤è¤¦¤Ë¥­¡¼¥ï¡¼¥É with ¤Ç·èÄꤷ¤Þ¤¹¡£°Ê²¼»²¾È: plotting styles (II)¡£

ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¤Ï¡¢1 ¤Ä¤Î´Ø¿ô¤«¤éÀ¸À®¤µ¤ì¤ë¤â¤Î (ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ï 2 ¤Ä¤Î´Ø¿ô¤«¤é)¡¢¤Þ¤¿¤Ï°ì¤Ä¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆÉ¤ß ¹þ¤Þ¤ì¤ë¤â¤Î¡¢¤Þ¤¿¤Ï»öÁ°¤ËÄêµÁ¤µ¤ì¤¿Ì¾Á°ÉÕ¤­¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤«¤éÆɤ߹þ¤Þ ¤ì¤ë¤â¤Î¡¢¤Þ¤¿¤ÏÇÛÎ󤫤éÈ´¤­½Ð¤·¤¿¤â¤Î¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¥³¥ó¥Þ¤Ç¶èÀÚ¤ë ¤³¤È¤Ç¡¢Ê£¿ô¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¡¢ÇÛÎó¡¢´Ø¿ô¤Ê¤É¤ò 1 ¤Ä¤Î plot ¥³¥Þ¥ó¥É¤ÇÉÁ²è¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: data (99.3), inline data (18), functions (99.4)¡£

´Ø¿ô¡¢ÊÑ¿ô¤ÎÄêµÁ¤ÎÉÁ²èÍ×ÁǤϡ¢²èÁü½ÐÎϤòÀ¸À®¤·¤Þ¤»¤ó¡£²¼¤Î 3 ¤ÄÌܤÎÎã ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

Îã:


     plot sin(x)
     plot sin(x), cos(x)
     plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
     plot "datafile.1" with lines, "datafile.2" with points
     plot [t=1:10] [-pi:pi*2] tan(t), \
          "data.1" using (tan($2)):($3/$4) smooth csplines \
                   axes x1y2 notitle with lines 5
     plot for [datafile in "spinach.dat broccoli.dat"] datafile

°Ê²¼»²¾È: show plot (114.4)¡£

99.1 ¼´ (axes)

¼´ (axes) ¤Ï¡¢4 ¼ïÎà¤ÎÁȤ¬ÍøÍѤǤ­¤Þ¤¹; ¥­¡¼¥ï¡¼¥É <axes> ¤Ï¡¢ÆÃÄê¤Îľ Àþ¤ò¤É¤Î¼´¤Ë¼ÜÅÙ¤ò¹ç¤ï¤»¤ë¤«¡¢¤È¤¤¤¦¤³¤È¤òÁªÂò¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£ x1y1 ¤Ï²¼¤Î¼´¤Èº¸¤Î¼´¤ò»ØÄê; x2y2 ¤Ï¾å¤È±¦¤Î¼´¤Î»ØÄê; x1y2 ¤Ï²¼ ¤È±¦¤Î¼´¤Î»ØÄê; x2y1 ¤Ï¾å¤Èº¸¤Î¼´¤Î»ØÄê¤Ç¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤵ ¤ì¤¿ÈϰϤϡ¢¤³¤ÎºÇ½é¤Î¼´¤ÎÁÈ (²¼¤Èº¸) ¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£

99.2 Binary

¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë:

¥Õ¥¡¥¤¥ë̾¤Î¸å¤í¤Ë binary ¤Î¥­¡¼¥ï¡¼¥É¤òÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¥Õ¥¡ ¥¤¥ë·Á¼°¤Ë´Ø¤¹¤ë½½Ê¬¾ÜºÙ¤Ê¾ðÊó¤Ï¡¢¥æ¡¼¥¶¤¬¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÍ¿¤¨¤ë¤«¡¢ ¤Þ¤¿¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë filetype ¤Î¥Ð¥¤¥Ê¥ê·Á¼°¤Î¥Õ¥¡¥¤¥ë¤½¤ì¼«¿È¤«¤é È´¤­½Ð¤µ¤ì¤ë¤«¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢Â礭¤¯ 2 ¤Ä¤Î ·Á¼°¡¢binary matrix ·Á¼°¤È binary general ·Á¼°¤¬¤¢¤ê¤Þ¤¹¡£

binary matrix ·Á¼°¤Ï¡¢32 ¥Ó¥Ã¥È IEEE µ¬³Ê¤ÎÉâÆ°¾®¿ôÃÍ (float) ¤¬ 2 ¼¡¸µÇÛÎó¤Î·Á¤Çʤӡ¢¤½¤ì¤é¤ÎºÂɸÃͤòɽ¤¹¹Ô¤ÈÎó¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Î using »ØÄê¤Ë¤ª¤¤¤Æ¡¢1 ÈÖÌÜ (column(1)) ¤Ï¹ÔÎó¤Î¹Ô¤ÎºÂɸ¤ò »²¾È¤·¡¢2 ÈÖÌÜ (column(2)) ¤ÏÎó¤ÎºÂɸ¤ò»²¾È¤·¡¢3 ÈÖÌÜ (column(3)) ¤Ï¡¢ ÇÛÎó¤Î¤½¤ì¤é¤ÎºÂɸ¤Î¾ì½ê¤ËÊݸ¤µ¤ì¤Æ¤¤¤ëÃͤò»²¾È¤·¤Þ¤¹¡£

binary general ·Á¼°¤Ï¡¢Ç¤°Õ¸Ä¤ÎÎó¤Î¥Ç¡¼¥¿¤ò´Þ¤ß¡¢¤½¤ì¤é¤Î¾ðÊó¤Ï¥³¥Þ ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð array, record, format, using ¤Ê¤É¤Ç¥µ¥¤¥º¤ä·Á¼°¡¢¥Ç¡¼¥¿¤Î¼¡¸µ¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£Â¾¤Ë¤â¡¢¥Õ¥¡¥¤ ¥ë¥Ø¥Ã¥ÀÆɤßÈô¤Ð¤·¤¿¤ê¡¢¥¨¥ó¥Ç¥£¥¢¥ó (endian) ¤òÊѹ¹¤¹¤ë¤¿¤á¤ÎÍ­ÍѤʥ³ ¥Þ¥ó¥É¤¬¤¢¤ê¤Þ¤¹¤·¡¢ÇÛÃÖ¡¢¥Ç¡¼¥¿¤ÎÊÑ´¹¤ò¹Ô¤Ê¤¦¥³¥Þ¥ó¥É¤ÎÁȤ¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤Ï¡¢°ìÍͤËɸËܲ½¤µ¤ì¤¿¥Ç¡¼¥¿¤Î¾ì¹ç¡¢¤½¤ÎºÂɸ¤¬¥Õ¥¡¥¤¥ë¤Ë¤Ï´Þ¤Þ¤ì¤Ê ¤¤¤³¤È¤¬Îɤ¯¤¢¤ë¤«¤é¤Ç¤¹¡£matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ä¥Æ¥­¥¹¥È¥Ç¡¼¥¿¤«¤é ¤ÎÆþÎϤȰ㤦¤È¤³¤í¤Ç¤¹¤¬¡¢general ¥Ð¥¤¥Ê¥ê¤Ï 1,2,3 ¤È¤¤¤Ã¤¿ using ¥ê ¥¹¥È¤ÇÀ¸À®¤µ¤ì¤ëÎóÈÖ¹æ¤ò»È¤ï¤º¡¢Âå¤ï¤ê¤Ë 1 ÎóÌܤϥե¡¥¤¥ë¤Î 1 ÎóÌÜ¡¢¤¢ ¤ë¤¤¤Ï format ¥ê¥¹¥È¤Ç»ØÄꤵ¤ì¤¿¤â¤Î¡¢¤Ë¤Ê¤ê¤Þ¤¹¡£

¤µ¤Þ¤¶¤Þ¤Ê binary ¥ª¥×¥·¥ç¥ó¤ËÂФ¹¤ëÂç°èŪ¤Ê¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤â²Äǽ¤Ç¡¢ ¤½¤ì¤Ï (s)plot <filename> binary ... ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤ë¥ª¥×¥·¥ç¥ó¤ÈÁ´ ¤¯Æ±¤¸½ñ¼°¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£¤½¤Î½ñ¼°¤Ï set datafile binary ... ¤Ç¤¹¡£ °ìÈÌŪ¤Êµ¬Â§¤È¤·¤Æ¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¥Õ¥¡¥¤¥ë¤«¤éÈ´¤­½Ð¤µ¤ì¤¿¥Ñ ¥é¥á¡¼¥¿¤Ç¾å½ñ¤­¤µ¤ì¡¢¤½¤ì¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¶¦Ä̤ʥѥé¥á¡¼¥¿ ¤Ç¾å½ñ¤­¤µ¤ì¤Þ¤¹¡£

Î㤨¤Ð array, record, format, filetype ¤Î binary general ·Á ¼°¤òÆÃÄꤹ¤ë¤è¤¦¤Ê¥­¡¼¥ï¡¼¥É¤¬²¿¤â¤Ä¤¤¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ð¥¤¥Ê ¥ê·Á¼°¤Ï binary matrix ¤Ç¤¹¡£

general ¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ï¡¢ÆÃÊ̤ʥե¡¥¤¥ë̾ '-' ¤ò»È¤Ã¤Æ¥³¥Þ¥ó¥É¥é¥¤¥ó ¤«¤éÆþÎϤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¥­¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎϤò°Õ¿Þ¤· ¤¿¤â¤Î¤Ç¤Ï¤Ê¤¯¡¢¥Ñ¥¤¥×¤ò»È¤Ã¤Æ¥×¥í¥°¥é¥à¤Ë¥Ð¥¤¥Ê¥ê·Á¼°¤òÊÑ´¹¤µ¤»¤ë¤¿¤á ¤Î¤â¤Î¤Ç¤¹¡£¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ë¤ÏºÇ¸å¤òɽ¤¹µ­¹æ¤¬¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢gnuplot ¤Ï¥Ñ¥¤¥×¤«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤à¾ì¹ç¡¢array »ØÄê»Ò¤Ç»ØÄꤷ¤¿¿ô¤ÎÅÀ¿ô¤Ë¤Ê ¤ë¤Þ¤Ç¥Ç¡¼¥¿¤òÆɤ߹þ¤ß³¤±¤Þ¤¹¡£¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: binary matrix (115.1.1), binary general (99.2.1)¡£

index ¥­¡¼¥ï¡¼¥É¤Ï¡¢¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤¬ 1 ¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ä¤­ 1 ¤Ä ¤Î¶ÊÌ̤·¤«µö¤µ¤Ê¤¤¤¿¤á¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡£every ¤ä using »ØÄê¤Ï ¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£using ¤Ï¡¢¥Ç¡¼¥¿¤¬¤¢¤¿¤«¤â¾å¤Î 3 ¤ÄÁȤηÁ¤ÇÆÉ¤Þ¤ì ¤¿¤«¤Î¤è¤¦¤ËƯ¤­¤Þ¤¹¡£ ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î splot ¤Î¥Ç¥â¡£

99.2.1 General

¥­¡¼¥ï¡¼¥É binary ¤òñÆȤǻØÄꤷ¤¿¾ì¹ç¤Ï¡¢Èó°ìÍͤʳʻҤò·ÁÀ®¤¹¤ëºÂɸ ¾ðÊó¤È¡¢³Æ³Ê»ÒÅÀ¤Ç¤ÎÃͤÎξÊý¤ò»ý¤Ä¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤· (°Ê ²¼»²¾È: binary matrix (115.1.1))¡¢Â¾¤Î·Á¼°¤Î¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Î¾ì¹ç¤Ï¡¢¤½¤Î¥Ç¡¼¥¿ ¤Î·Á¼°¤ò°ÕÌ£¤¹¤ëÄɲå­¡¼¥ï¡¼¥É¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£»ÄÇ°¤Ê¤¬¤é¡¢¤³ ¤ì¤é¤ÎÄɲå­¡¼¥ï¡¼¥É¤Î½ñ¼°¤Ïñ½ã¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢¤½¤ì¤Ç¤â general ¥Ð ¥¤¥Ê¥ê¥â¡¼¥É¤Ï¡¢ÆäË¿Î̤Υǡ¼¥¿¤ò gnuplot ¤ËÁ÷¤ë¤è¤¦¤Ê¥¢¥×¥ê¥±¡¼¥·¥ç ¥ó¤Ë¼è¤Ã¤Æ¤ÏÍ­ÍѤǤ¹¡£

½ñ¼°:


     plot '<file_name>' {binary <binary list>} ...
     splot '<file_name>' {binary <binary list>} ...

general ¥Ð¥¤¥Ê¥ê·Á¼°¤Ï¡¢¥Õ¥¡¥¤¥ë¹½Â¤¤Ë´Ø¤¹¤ë¾ðÊó¤Ë´ØÏ¢¤¹¤ë¥­¡¼¥ï¡¼¥É¡¢ ¤¹¤Ê¤ï¤Á array, record, format, filetype ¤Ê¤É¤ò <binary list> Æâ¤ËÍ¿¤¨¤ë¤³¤È¤ÇÍ­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢Èó°ìÍÍ¤Ê matrix ¥Ð¥¤ ¥Ê¥ê·Á¼°¤È¸«¤Ê¤·¤Þ¤¹¡£(¾ÜºÙ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: binary matrix (115.1.1))

gnuplot ¤Ï¡¢Î㤨¤Ð PNG ²èÁü¤Î¤è¤¦¤Ë´°Á´¤Ë¼«¸Êµ­½Ò¤µ¤ì¤ëɸ½àŪ¤Ê¥Ð¥¤¥Ê ¥ê¥Õ¥¡¥¤¥ë·Á¼°¤ÎÆɤ߹þ¤ßÊýË¡¤ò¤¤¤¯¤Ä¤«ÃΤäƤ¤¤Þ¤¹¡£¤½¤Î°ìÍ÷¤Ï¡¢ÂÐÏòè ÌÌ¤Ç show datafile binary ¤ÈÆþÎϤ¹¤ë¤³¤È¤Ç»²¾È¤Ç¤­¤Þ¤¹¡£¤½¤ì¤é°Ê³°¤Î ¤â¤Î¤Ë¤Ä¤¤¤Æ¤Ï¡¢³µÇ°¾å¤Ï¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Ï¥Æ¥­¥¹¥È¥Ç¡¼¥¿¤ÈƱÍͤ˹ͤ¨¤ë¤³ ¤È¤¬¤Ç¤­¤Þ¤¹¡£³ÆÅÀ¤Ë¤Ï¡¢using »ØÄê¤ÇÁªÂò¤µ¤ì¤ë¾ðÊó¤ÎÎ󤬤¢¤ê¤Þ¤¹¡£ format ʸ»úÎó¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢gnuplot ¤Ï¥Ð¥¤¥Ê¥ê¿ôÃͤοô¤ò <using list> ¤ÇÍ¿¤¨¤é¤ì¤ëºÇÂç¤ÎÎóÈÖ¹æ¤ËÅù¤·¤¯¼è¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢ using 1:3 ¤È¤¹¤ë¤È 3 Î󤺤ĥǡ¼¥¿¤¬Æɤ߼è¤é¤ì¡¢2 ÈÖÌܤΤâ¤Î¤Ï̵»ë¤· ¤Þ¤¹¡£³ÆÉÁ²è¥¹¥¿¥¤¥ë¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤Î using »ØÄ꤬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð with image ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç using 1 ¤ò¡¢with rgbimage ¤Ï¥Ç¥Õ¥©¥ë¥È ¤Ç using 1:2:3 ¤ò»È¤¤¤Þ¤¹¡£

99.2.2 Array

¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ÎɸËܤÎÇÛÎó¤ÎÂ礭¤µ¤òÀßÄꤷ¤Þ¤¹¡£ºÂɸ¤Ï gnuplot ¤¬À¸ À®¤·¤Æ¤¯¤ì¤Þ¤¹¡£³ÆÊý¸þ¤Î¼¡¸µ¤òɽ¤¹¿ô¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Î㤨¤Ð array=(10,20) ¤Ï¡¢2 ¼¡¸µ¤ÇºÇ½é¤Î¼¡¸µÊý¸þ (x) ¤Ë¤Ï 10 ÅÀ¡¢2 ÈÖÌܤμ¡ ¸µÊý¸þ (y) ¤Ë¤Ï 20 ÅÀ¤ÎɸËܲ½¥Ç¡¼¥¿¤¬¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤Î ½ªÎ»¤Þ¤Ç¥Ç¡¼¥¿¤¬Â³¤¯¤³¤È¤ò¼¨¤¹¤Î¤ËÉé¤ÎÃͤò»È¤¨¤Þ¤¹¡£¥Ç¡¼¥¿¼¡¸µ¤¬ 1 ¤Î ¾ì¹ç¤Ï¡¢¥«¥Ã¥³¤Ï¾Êά¤Ç¤­¤Þ¤¹¡£Ê£¿ô¤Î¥Ç¡¼¥¿¤Î¥µ¥¤¥º»ØÄê¤òʬΥ¤¹¤ë¤Î¤Ë¡¢ ¥³¥í¥ó¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð array=25:35 ¤Ï 2 ¤Ä¤Î 1 ¼¡¸µ¥Ç¡¼ ¥¿¤¬¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

99.2.3 Record

¤³¤Î¥­¡¼¥ï¡¼¥É¤Ï array ¤ÈƱ¤¸½ñ¼°¤Ç¡¢Æ±¤¸µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£¤·¤«¤· record ¤Ï gnuplot ¤ËºÂɸ¾ðÊó¤ò¼«Æ°À¸À®¤µ¤»¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¤½¤Î¤è¤¦¤Ê ºÂɸ¾ðÊ󤬡¢¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¤¢¤ëÎó¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤¿¤á¤Î¤â ¤Î¤Ç¤¹¡£

99.2.4 Skip

¤³¤Î¥­¡¼¥ï¡¼¥É¤Ï¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î¤¢¤ë¶è²è¤Î¥¹¥­¥Ã¥×¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ Î㤨¤Ð¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤¬¥Ç¡¼¥¿Îΰè¤Î³«»Ï°ÌÃÖ¤ÎÁ°¤Ë 1024 ¥Ð¥¤¥È¤Î¥Ø¥Ã¥À¤ò »ý¤Ä¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤¿¤¤¤È»×¤¦¤Ç¤·¤ç¤¦:


     plot '<file_name>' binary skip=1024 ...

¥Õ¥¡¥¤¥ë¤ËÊ£¿ô¤Î¥ì¥³¡¼¥É¤¬¤¢¤ë¾ì¹ç¡¢¤½¤Î¤½¤ì¤¾¤ì¤ËÂФ¹¤ëÀèƬ¤Î¤º¤é¤·°Ì ÃÖ¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢ºÇ½é¤Î¥ì¥³¡¼¥É¤ÎÁ°¤Î 512 ¥Ð¥¤¥È¤ò ¥¹¥­¥Ã¥×¤·¡¢2 ÈÖÌÜ¡¢3 ÈÖÌܤΥ쥳¡¼¥É¤ÎÁ°¤Î 256 ¥Ð¥¤¥È¤ò¥¹¥­¥Ã¥×¤¹¤ë¤Ë ¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:


     plot '<file_name> binary record=356:356:356 skip=512:256:256 ...

99.2.5 Format

¥Ç¥Õ¥©¥ë¥È¤Î¥Ð¥¤¥Ê¥ê·Á¼°¤Ï¡¢Ã±ÀºÅÙÉâÆ°¾®¿ô (float) ¤¬°ì¤Ä¡¢¤Ç¤¹¡£¤½¤ì ¤ò¤è¤ê½ÀÆð¤ËÀßÄꤹ¤ë¤¿¤á¤Ë¡¢¤³¤Î format ¤ÇÊÑ¿ô¤Î¥µ¥¤¥º¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ê¾ð Êó¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð format="%uchar%int%float" ¤Ï¡¢ºÇ½é¤Î using Îó¤È¤·¤ÆÉä¹æ¤Ê¤·Ê¸»ú·¿ÊÑ¿ô (unsigned char) ¤ò¡¢2 ÈÖÌܤÎÎó¤ÏÉä¹æ¤Ä¤­À° ¿ô (int) ¤ò¡¢3 ÈÖÌܤÎÎó¤ÏñÀºÅÙÉâÆ°¾®¿ô (float) ¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£¤â¤· ¥µ¥¤¥º»ØÄê»Ò¤Î¿ô¤¬ºÇÂçÎó¿ô¤è¤ê¾®¤µ¤¤¾ì¹ç¤Ï¡¢»Ä¤ê¤ÎÎó¤ÎÊÑ¿ô¥µ¥¤¥º¤Ï°ÅÌÛ ¤Î¤¦¤Á¤ËºÇ¸å¤ËÍ¿¤¨¤¿ÊÑ¿ô¥µ¥¤¥º¤ËÅù¤·¤¯¼è¤é¤ì¤Þ¤¹¡£

¤µ¤é¤Ë using »ØÄêƱÍÍ¡¢* ʸ»ú¤¬¤Ä¤¤¤¿Æɤ߼ΤƤëÎó¤ò½ñ¼°¤Ë»ØÄꤹ¤ë ¤³¤È¤â¤Ç¤­¤Þ¤¹¤·¡¢·«¤êÊÖ¤·¥Õ¥£¡¼¥ë¥É¤Ø¤Î²ó¿ô»ØÄê¤Ë¤è¤Ã¤Æ°ÅÌۤ竤êÊÖ¤· ¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢format="%*2int%3float" ¤Ï¡¢3 ¤Ä¤Î ¼Â¿ô¥Ç¡¼¥¿¤òÆɤàÁ°¤Ë¡¢2 ¤Ä¤ÎÀ°¿ô¥Ç¡¼¥¿¤òÆɤ߼ΤƤޤ¹¡£»ÈÍѤǤ­¤ëÊÑ¿ô¥µ ¥¤¥º¤Î°ìÍ÷¤Ï¡¢show datafile binary datasizes ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤½¤ì¤é¤Ï¡¢¤½¤ì¤¾¤ì¤Î¥³¥ó¥Ñ¥¤¥ë¤Ë¤è¤Ã¤Æ¤½¤Î¥Ð¥¤¥È¥µ¥¤¥º¤È¤È¤â¤Ë¥Þ¥·¥ó¤Ë °Í¸¤¹¤ëÊÑ¿ô̾¤Î¥°¥ë¡¼¥×¤È¡¢¥Þ¥·¥ó¤Ë°Í¸¤·¤Ê¤¤ÊÑ¿ô̾¤Î¥°¥ë¡¼¥×¤Ëʬ¤«¤ì ¤Æ¤¤¤Þ¤¹¡£

99.2.6 Endian

¥Õ¥¡¥¤¥ë¤Î¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤Î¥¨¥ó¥Ç¥£¥¢¥ó¤Ï¡¢gnuplot ¤¬Æ°ºî¤¹¤ë¥×¥é¥Ã¥È¥Û ¡¼¥à¤Î¥¨¥ó¥Ç¥£¥¢¥ó¤È¤Ï°Û¤Ê¤ë¾ì¹ç¤âÎɤ¯¤¢¤ê¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤Î»ØÄê¤Ç gnuplot ¤¬¥Ð¥¤¥È¤ò¤É¤Î¤è¤¦¤Ë°·¤¦¤«¤òÀ©¸æ¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð endian=little ¤Ï¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò¡¢¤½¤Î¥Ð¥¤¥È¤ÎʤӤ¬¾®¤µ¤¤·å¤«¤é Â礭¤¤·å¤Øʤó¤Ç¤¤¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤Î¤â¤Î¤¬»È¤¨¤Þ¤¹¡£


             little:  ¾®¤µ¤¤·å¤«¤éÂ礭¤Ê·å¤ØʤÖ
                big:  Â礭¤Ê·å¤«¤é¾®¤µ¤Ê·å¤ØʤÖ
            default:  compiler ¤ÈƱ¤¸¥¨¥ó¥Ç¥£¥¢¥ó¤È¸«¤Ê¤¹
        swap (swab):  ¥¨¥ó¥Ç¥£¥¢¥ó¤òÊѹ¹¤¹¤ë (¤ª¤«¤·¤¤¤è¤¦¤Ê¤é¤³¤ì¤ò
                      »È¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤)

gnuplot ¤Ï¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡¢"middle" (¤ä "pdp") ¥¨¥ó¥Ç¥£¥¢¥ó¤â¥µ¥Ý¡¼¥È¤Ç¤­¤Þ¤¹¡£

99.2.7 Filetype

gnuplot ¤Ï¡¢¤¤¤¯¤Ä¤«É¸½àŪ¤Ê¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë·Á¼°¤Ë¤Ä¤¤¤Æ¤ÏɬÍפʾðÊó¤ò ¤½¤Î¥Õ¥¡¥¤¥ë¤«¤éÈ´¤­½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð "format=edf" ¤Ï ESRF ¥Ø ¥Ã¥À¡¼¥Õ¥¡¥¤¥ë·Á¼°¤Î¥Õ¥¡¥¤¥ë¤È¤·¤ÆÆɤ߹þ¤ß¤Þ¤¹¡£¸½ºß¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥Õ ¥¡¥¤¥ë·Á¼°¤Ë¤Ä¤¤¤Æ¤Ï¡¢show datafile binary filetypes ¤Ç¸«¤Æ¤¯¤À¤µ¤¤¡£

ÆÃÊ̤ʥե¡¥¤¥ë·Á¼°¤È¤·¤Æ auto ¤¬¤¢¤ê¡¢¤³¤Î¾ì¹ç gnuplot ¤Ï¥Ð¥¤¥Ê¥ê¥Õ ¥¡¥¤¥ë¤Î³ÈÄ¥»Ò¤¬¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë·Á¼°¤Îɸ½àŪ¤Ê³ÈÄ¥»Ò¤Ç¤¢¤ë¤«¤ò¥Á¥§ ¥Ã¥¯¤·¤Þ¤¹¡£

¥³¥Þ¥ó¥É¥é¥¤¥ó¥­¡¼¥ï¡¼¥É¤Ï¥Õ¥¡¥¤¥ë¤«¤éÆɤ߼è¤ëÀßÄê¤ò¾å½ñ¤­¤¹¤ë¤Î¤Ë»È¤ï ¤ì¡¢¥Õ¥¡¥¤¥ë¤«¤éÆɤ߼è¤ëÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¾å½ñ¤­¤·¤Þ¤¹¡£°Ê²¼»²¾È: set datafile binary (112.23.7)¡£

99.2.7.1 Avs

avs ¤Ï¡¢¼«Æ°Åª¤Ëǧ¼±¤µ¤ì¤ë²èÁü¥¤¥á¡¼¥¸¤ËÂФ¹¤ë¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î·¿¤Î °ì¤Ä¤Ç¤¹¡£AVS ¤ÏÈó¾ïñ½ã¤Ê¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó´Ö¤Ç¤ä¤ê¤È¤ê ¤¹¤ë¤Î¤ËºÇ¤âŬ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¤Ä¤Î long (xwidth ¤È ywidth) ¤È¡¢ ¤½¤Î¸å³¤¯¥Ô¥¯¥»¥ë¤ÎÎ󤫤éÀ®¤ê¡¢¤½¤Î³Æ¥Ô¥¯¥»¥ë¤Ï alpha/red/green/blue ¤Î 4 ¥Ð¥¤¥È¤«¤éÀ®¤ê¤Þ¤¹¡£

99.2.7.2 Edf

edf ¤Ï¡¢¼«Æ°Åª¤Ëǧ¼±¤µ¤ì¤ë²èÁü¥¤¥á¡¼¥¸¤ËÂФ¹¤ë¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Î·¿¤Î °ì¤Ä¤Ç¤¹¡£EDF ¤Ï ESRF ¥Ç¡¼¥¿¥Õ¥©¡¼¥Þ¥Ã¥È (ESRF Data Format) ¤ò°ÕÌ£¤·¤Æ ¤¤¤Æ¡¢¤½¤ì¤Ï edf ¤È ehf ¤ÎξÊý¤Î·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹ (¸å¼Ô¤Ï ESRF Header Format)¡£²èÁü¤Î»ÈÍѤ˴ؤ¹¤ë¾Ü¤·¤¤¾ðÊó¤Ï°Ê²¼¤Ç¸«¤Ä¤«¤ë¤Ç¤·¤ç¤¦:


 http://www.edfplus.info/specs

99.2.7.3 Png

gnuplot ¤¬ png/gif/jpeg ½ÐÎÏÍÑ¤Ë libgd ¥é¥¤¥Ö¥é¥ê¤ò»È¤¦¤è¤¦¤Ë¥¤¥ó¥¹¥È ¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤é¤Î²èÁü·Á¼°¤ò¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤È¤·¤ÆÆɤ߹þ¤à¤³ ¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼¤Î¤è¤¦¤ÊÌÀ¼¨Åª¤Ê¥³¥Þ¥ó¥É


     plot 'file.png' binary filetype=png

¤ò»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹¤·¡¢¤¢¤é¤«¤¸¤á°Ê²¼¤Î¤è¤¦¤ËÀßÄꤷ¤Æ¡¢³ÈÄ¥»Ò¤«¤é¼«Æ° Ū¤Ë²èÁü·Á¼°¤ò¼«Æ°Åª¤Ëǧ¼±¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£


     set datafile binary filetype=auto

99.2.8 Keywords

°Ê²¼¤Î¥­¡¼¥ï¡¼¥É (keyword) ¤Ï¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤«¤éºÂɸ¤òÀ¸À®¤¹¤ë¤È¤­ ¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢binary array, matrix, image ¤Î¸Ä¡¹¤ÎÍ×ÁǤò ÆÃÄê¤Î x,y,z ¤Î°ÌÃ֤ؤÎÇÛÃÖ¤ÎÀ©¸æ¤Î¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£

99.2.8.1 Scan

gnuplot ¤¬¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò¤É¤Î¤è¤¦¤ËÁöºº¤¹¤ë¤«¡¢¤È¤¤¤¦¤³¤È¤È¼ÂºÝ¤ÎÉÁ ²è¤Ç¸«¤é¤ì¤ë¼´¤ÎÊý¸þ¤È¤Î´Ö¤Î´Ø·¸¤Ë¤Ä¤¤¤Æ¤Ï¿¤¯¤Îº®Í𤬵¯¤³¤êÆÀ¤Þ¤¹¡£¤½ ¤Îº®Íð¤ò¸º¤é¤¹¤Ë¤Ï¡¢gnuplot ¤Ï¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò "¾ï¤Ë" ÅÀ/Àþ/ÌÌ¡¢¤Þ¤¿ ¤Ï®¤¤/ÉáÄÌ/ÃÙ¤¤¡¢¤ÈÁöºº¤¹¤ë¤È¹Í¤¨¤ë¤È¤¤¤¤¤Ç¤·¤ç¤¦¡£¤³¤Î¥­¡¼¥ï¡¼¥É¤Ï gnuplot ¤Ë¡¢¤½¤ÎÁöºº¤ÎÊý¸þ¤òÉÁ²èÆâ¤Î¤É¤ÎºÂɸÊý¸þ (x/y/z) ¤Ë³ä¤êÅö¤Æ¤ë ¤«¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄê¤Ï 2 ¤Ä¡¢¤Þ¤¿¤Ï 3 ¤Ä¤Îʸ»ú¤ÎʤӤÇɽ¸½¤·¡¢ºÇ½é¤Îʸ »ú¤¬ÅÀ¤Ë¡¢¼¡¤Îʸ»ú¤¬Àþ¤Ë¡¢3 ¤ÄÌܤÎʸ»ú¤¬Ì̤ËÂбþ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ scan=yx ¤Ï¡¢ºÇ¤â®¤¤Áöºº (ÅÀ¤ÎÁªÂò) ¤Ï y Êý¸þ¤ËÂбþ¤·¡¢ÉáÄ̤ή¤µ¤Î Áöºº (Àþ¤ÎÁªÂò) ¤¬ x Êý¸þ¤ËÂбþ¤¹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

ÉÁ²è¥â¡¼¥É¤¬ plot ¤Î¾ì¹ç¡¢»ØÄê¤Ë¤Ï x ¤È y ¤Î 2 ¤Ä¤Îʸ»ú¤ò»È¤¦¤³¤È¤¬ ¤Ç¤­¡¢splot ¤ËÂФ·¤Æ¤Ï x, y, z ¤Î 3 ¤Ä¤Îʸ»ú¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

³ä¤êÅö¤Æ¤Ë´Ø¤·¤Æ¤Ï¡¢ÅÀ/Àþ/Ì̤«¤éľ¸òºÂɸÊý¸þ¤Ø¤Î¤ß¤ËÀ©¸Â¤¹¤ëÆâÉô»ö¾ð¤Ï Ê̤ˤ¢¤ê¤Þ¤»¤ó¡£¤³¤ÎÍýͳ¤Ç¡¢±ßÃìºÂɸ¤Ø¤Î³ä¤êÅö¤Æ¤Î¤¿¤á¤Î»ØÄê»Ò¤âÍÑ°Õ¤µ ¤ì¤Æ¤¤¤Æ¡¢¤½¤ì¤é¤Ïľ¸òºÂɸ¤Î x, y, z ¤ËÎà»÷¤·¤¿·Á¤Ç t (³ÑÅÙ), r, z ¤È ¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

99.2.8.2 Transpose

scan=yx¡¢¤Þ¤¿¤Ï scan=yxz ¤ÈƱ¤¸¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢¤³¤ì¤ÏÆþÎÏ»þ¤ÎÁöºº ¹Ô¤Î¥Ô¥¯¥»¥ë¤Ø¤Î³ä¤êÅö¤Æ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£É½¼¨¤¹¤ëºÝ¤Ë²èÁü¤òžÃÖ¤¹¤ë¤Ë ¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤:


    plot 'imagefile' binary filetype=auto flipx rotate=90deg with rgbimage

99.2.8.3 Dx, dy, dz

gnuplot ¤¬ºÂɸ¤òÀ¸À®¤¹¤ë¾ì¹ç¡¢¤½¤Î´Ö³Ö¤Ï¤³¤ì¤é¤Î¥­¡¼¥ï¡¼¥É¤Ç»ØÄꤵ¤ì¤¿ ¤â¤Î¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£Î㤨¤Ð dx=10 dy=20 ¤Ï x Êý¸þ¤Ë 10¡¢y Êý¸þ¤Ë 20 ¤Î´Ö³Ö¤ÇɸËܲ½¤µ¤ì¤¿¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£dy ¤Ï dx ¤¬¤Ê¤±¤ì¤Ð»È¤¨¤Þ¤» ¤ó¡£Æ±ÍÍ¤Ë dz ¤Ï dy ¤¬¤Ê¤±¤ì¤Ð»È¤¨¤Þ¤»¤ó¡£¤â¤·¥Ç¡¼¥¿¤Î¼¡¸µ¤¬»ØÄꤷ ¤¿¥­¡¼¥ï¡¼¥É¤Î¼¡¸µ¤è¤ê¤âÂ礭¤¤¾ì¹ç¡¢»Ä¤ê¤Î¼¡¸µÊý¸þ¤Î´Ö³Ö¤Ï¡¢»ØÄꤵ¤ì¤¿ ºÇ¤â¹â¤¤¼¡¸µ¤Î¤â¤Î¤ÈƱ¤¸Ãͤ¬»ÈÍѤµ¤ì¤Þ¤¹¡£Î㤨¤Ð²èÁü¤¬¥Õ¥¡¥¤¥ë¤«¤éÆÉ¤ß ¹þ¤Þ¤ì¡¢dx=3.5 ¤Î¤ß»ØÄꤵ¤ì¤¿¾ì¹ç¡¢gnuplot ¤Ï x Êý¸þ¤Î´Ö³Ö¤â y Êý¸þ ¤Î´Ö³Ö¤â 3.5 ¤ò»ÈÍѤ·¤Þ¤¹¡£

°Ê²¼¤Î¥­¡¼¥ï¡¼¥É¤âºÂɸ¤ÎÀ¸À®»þ¤Ë¤Î¤ßŬÍѤµ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢°Ê²¼¤Î¤â¤Î¤Ï matrix ¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤Ë¤â»È¤ï¤ì¤Þ¤¹¡£

99.2.8.4 Flipx, flipy, flipz

¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÁöººÊý¸þ¤¬ gnuplot ¤ÎÁöººÊý¸þ¤È°ìÃפ·¤Ê¤¤¤³¤È ¤¬¤¿¤Þ¤Ë¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î¥­¡¼¥ï¡¼¥É¤Ï¡¢¤½¤ì¤¾¤ì x, y, z Êý¸þ¤Î¥Ç¡¼¥¿ ¤ÎÁöººÊý¸þ¤òµÕ¸þ¤­¤Ë¤·¤Þ¤¹¡£

99.2.8.5 Origin

gnuplot ¤ÏžÃÖ (transpose) ¤äȿž (flip) ¤Ë¤ª¤¤¤ÆºÂɸ¤òÀ¸À®¤¹¤ë¾ì¹ç¡¢ ¾ï¤ËÇÛÎó¤Îº¸²¼¤ÎÅÀ¤¬¸¶ÅÀ¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥Ç¡¼¥¿¤¬¡¢Å¾ÃÖ¤ä ȿž¤Î¹Ô¤Ê¤ï¤ì¤¿¸å¤Îľ¸òºÂɸ·Ï¤ÎÂè 1 ¾Ý¸Â¤ËÍè¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

ÇÛÎó¤ò¥°¥é¥Õ¤Î¤½¤Î¾¤Î¾ì½ê¤ËÇÛÃÖ¤·¤¿¤¤¾ì¹ç¡¢origin ¥­¡¼¥ï¡¼¥É¤Ç»ØÄê ¤·¤¿¾ì½ê¤Ë gnuplot ¤ÏÇÛÎó¤Îº¸²¼¤ÎÅÀ¤ò¹ç¤ï¤»¤Þ¤¹¡£¤½¤Î»ØÄê¤Ï¡¢plot ¤Ç ¤Ï 2 ¤Ä¤ÎºÂɸ¤ÎÁÈ¡¢splot ¤Ç¤Ï 3 ¤Ä¤ÎºÂɸ¤ÎÁȤò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£Î㤨 ¤Ð origin=(100,100):(100,200) ¤Ï¡¢°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë 2 ¤Ä¤Î¥Ç ¡¼¥¿¤ËÂФ¹¤ë»ØÄê¤Ç¡¢2 ¼¡¸µ¤ÎÉÁ²è¤ËÂФ¹¤ë»ØÄê¤Ç¤¹¡£2 ¤ÄÌܤÎÎã¤È¤·¤Æ origin=(0,0,3.5) ¤ò¤¢¤²¤ë¤È¡¢¤³¤ì¤Ï 3 ¼¡¸µÉÁ²èÍѤλØÄê¤Ç¤¹¡£

99.2.8.6 Center

origin ¤È»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤Î¥­¡¼¥ï¡¼¥É¤Ï¡¢ÇÛÎó¤ÎÃæ¿´¤¬¤³¤Î¥­¡¼¥ï¡¼¥É ¤Ç»ØÄꤷ¤¿ÅÀ¤Ë¤Ê¤ë¤è¤¦¤ËÇÛÃÖ¤·¤Þ¤¹¡£Î㤨¤Ð center=(0,0) ¤Î¤è¤¦¤Ë¤·¤Þ ¤¹¡£ÇÛÎó¤Î¥µ¥¤¥º¤¬ Inf ¤Î¤È¤­¤Ï center ¤ÏŬÍѤµ¤ì¤Þ¤»¤ó¡£

99.2.8.7 Rotate

žÃÖ (transpose) ¤Èȿž (flip) ¥³¥Þ¥ó¥É¤ÏºÂɸ¤ÎÀ¸À®¤ÈºÂɸ¼´¤ÎÊý¸þ¤Ë¤¢ ¤ë¼ï¤Î½ÀÆðÀ­¤òÍ¿¤¨¤Æ¤¯¤ì¤Þ¤¹¡£¤·¤«¤·¡¢³ÑÅ٤˴ؤ¹¤ë´°Á´¤ÊÀ©¸æ¤Ï¡¢2 ¼¡¸µ ¤Î²óž³Ñ¤òµ­½Ò¤·¤¿²óž³Ñ¥Ù¥¯¥È¥ë¤òÍ¿¤¨¤ë¤³¤È¤Ë¤è¤ê¹Ô¤Ê¤¦¤³¤È¤¬²Äǽ¤Ë¤Ê ¤ê¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É rotate ¤Ï, plot, splot ¤ÎξÊý¤Ç¡¢2 ¼¡¸µÌ̤ËÂФ·¤ÆŬÍÑ ¤µ¤ì¤Þ¤¹¡£²óž¤ÏºÂɸʿÌ̤ÎÀµ¤Î³ÑÅ٤˴ؤ·¤Æ¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£

³ÑÅ٤ϡ¢¥é¥¸¥¢¥óñ°Ì¤Ç¤¹¤¬¡¢pi ¤ä degrees ¤ÎÇÜ¿ô¤È¤·¤Æ¤Î¥é¥¸¥¢¥ó¤Ç¤âɽ ¸½¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢rotate=1.5708, rotate=0.5pi, rotate=90deg ¤Ï ¤¹¤Ù¤ÆƱ¤¸°ÕÌ£¤Ç¤¹¡£

origin ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢²óž¤ÏÊ¿¹Ô°ÜÆ°¤ÎÁ°¤Ëº¸²¼¤ÎÅÀ¤òÃæ¿´¤Ë¤·¤Æ¹Ô ¤Ê¤ï¤ì¤Þ¤¹¡£¤½¤ì°Ê³°¤Ç¤Ï²óž¤ÏÇÛÎó¤ÎÃæ¿´ (center) ¤Ë´Ø¤·¤Æ¹Ô¤Ê¤ï¤ì¤Þ ¤¹¡£

99.2.8.8 Perpendicular

splot ¤Ë´Ø¤·¤Æ²óž¥Ù¥¯¥È¥ë¤ÎÀßÄ꤬¡¢¥Ù¥¯¥È¥ë¤òɽ¸½¤¹¤ë 3 ¤Ä¤Î¿ô»ú¤Î ÁȤò»ØÄꤹ¤ë¤³¤È¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤Æ¡¢¤³¤Î¥Ù¥¯¥È¥ë¤Ï 2 ¼¡¸µ¤Î xy Ê¿Ì̤ËÂÐ ¤·¤Æ¸þ¤­ÉÕ¤±¤é¤ì¤¿Ë¡Àþ¥Ù¥¯¥È¥ë (perpendicular) ¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£¤â¤Á¤í ¤ó¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï (0,0,1) ¤Ç¤¹¡£rotate ¤È perpendicular ¤ÎξÊý¤ò»ØÄê ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢3 ¼¡¸µ¶õ´ÖÆâ¤Ç̵¿ô¤ÎÊý¸þ¤Ø¥Ç¡¼¥¿¤ò¸þ¤­ÉÕ¤±¤é¤ì¤ë¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹¡£

¤Þ¤ººÇ½é¤Ë 2 ¼¡¸µ¤Î²óž¤¬¹Ô¤Ê¤ï¤ì¡¢¤½¤Î¼¡¤Ë 3 ¼¡¸µ¤Î²óž¤¬¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£ ¤Ä¤Þ¤ê¡¢R' ¤ò¤¢¤ë³Ñ¤Ë¤è¤ë 2 x 2 ¤Î²óž¹ÔÎó¤È¤·¡¢P ¤ò (0,0,1) ¤ò (xp,yp,zp) ¤Ø»Ò¸áÀþÊý¸þ¤Ë²óž¤µ¤»¤ë 3 x 3 ¤Î¹ÔÎó¤È¤·¡¢R' ¤òº¸¾å¤ÎÉôʬ ¹ÔÎó¤È¤·¤Æ»ý¤Á 3,3 À®Ê¬¤¬ 1 ¤Ç¤½¤Î¾¤ÎÀ®Ê¬¤¬ 0 ¤Ç¤¢¤ë¤è¤¦¤Ê¹ÔÎó (¤Ä¤Þ ¤ê z ¼´¼þ¤ê¤Î²óž¹ÔÎó) ¤È¤¹¤ì¤Ð¡¢¤³¤ÎÊÑ´¹¤òɽ¤¹¹ÔÎó¤Ë¤è¤ë´Ø·¸¼°¤Ï v' = P R v ¤È¤Ê¤ê¤Þ¤¹¡£¤³¤³¤Ç¡¢v ¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤Þ¤ì¤¿ 3 x 1 ¤Î°ÌÃÖ¥Ù¥¯¥È¥ë¤Ç¤¹¡£¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤¬ 3 ¼¡¸µÅª¤Ê¤â¤Î¤Ç¤Ê¤¤¾ì¹ç ¤Ï¡¢ÏÀÍýŪ¤Ê¥ë¡¼¥ë¤¬Å¬ÍѤµ¤ì¤Æ 3 ¼¡¸µ¶õ´ÖÆâ¤Î¥Ç¡¼¥¿¤È¸«¤Ê¤µ¤ì¤Þ¤¹ (Îã ¤¨¤Ð¡¢Ä̾ï¤Ï z ºÂɸ¤Ï 0 ¤È¤µ¤ì¡¢xy Ê¿ÌÌÆâ¤Î 2 ¼¡¸µ¥Ç¡¼¥¿¤È¸«¤Ê¤µ¤ì¤Þ¤¹)¡£

99.3 ¥Ç¡¼¥¿ (data)

¥Õ¥¡¥¤¥ëÆâ¤Ë¤¢¤ë¥Ç¡¼¥¿¤Ï¡¢plot ¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç¡¢¤½¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤ ¥ë̾¤òñ°ì°úÍÑÉä¤Þ¤¿¤ÏÆó½Å°úÍÑÉä¤Ç°Ï¤ó¤Ç»ØÄꤹ¤ë¤³¤È¤Çɽ¼¨¤Ç¤­¤Þ¤¹¡£ ¥Ç¡¼¥¿¤Ï¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¤¡¢ÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼õ¤±¼è¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: special-filenames (99.3.9), piped-data (99.3.10), datablocks (18)¡£

½ñ¼°:


     plot '<file_name>' {binary <binary list>}
                        {{nonuniform|sparse} matrix}
                        {index <index list> | index "<name>"}
                        {every <every list>}
                        {skip <number-of-lines>}
                        {using <using list>}
                        {convexhull} {concavehull}
                        {smooth <option>}
                        {bins <options>}
                        {mask}
                        {volatile} {zsort} {noautoscale}

½¤Àµ»Ò¤Î binary, index, every, skip, using, smooth, bins, mask, convexhull, concavehull zsort ¤ò¤½¤ì¤¾¤ì¤Ëʬ¤±¤ÆÀâÌÀ¤·¤Þ ¤¹¡£´Êñ¤Ë¸À¤¦¤È°Ê²¼¤ÎÄ̤ꡣ

splot ¤â¤è¤¯»÷¤¿½ñ¼°¤ò»È¤¤¤Þ¤¹¤¬¡¢bins ¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¤·¡¢ Ê¿³ê²½¤Ë¤Ä¤¤¤Æ¤Ï¡¢2,3 ¤Î smooth ¥ª¥×¥·¥ç¥ó¤·¤«¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£

¥­¡¼¥ï¡¼¥É noautoscale ¤Ï¡¢¼«Æ°Åª¤Ë¼´¤ÎÈϰϤ¬·èÄꤵ¤ì¤ëµ¡Ç½¤¬Í­¸ú¤Ç ¤¢¤ë¾ì¹ç¤Ë¡¢¤³¤ÎÉÁ²è¤ò¹½À®¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤½¤ì¤ò̵»ë¤µ¤»¤ë (¼« Æ°½Ì¼Üµ¡Ç½¤Î·×»»Âоݤ«¤é³°¤¹) ¤è¤¦¤Ë¤·¤Þ¤¹¡£

¥Æ¥­¥¹¥È¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë:

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¶õ¤Ç¤Ê¤¤³Æ¹Ô¤Ï¡¢°ì¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤òµ­½Ò¤·¤Þ¤¹¤¬¡¢# ¤Ç»Ï ¤Þ¤ë¹Ô¤ÏÎã³°¤Ç¡¢¤³¤ì¤Ï¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì̵»ë¤µ¤ì¤Þ¤¹¡£

ÉÁ²è¥¹¥¿¥¤¥ë¤È»ØÄꤷ¤¿¥ª¥×¥·¥ç¥ó¤Ë°Í¸¤·¡¢³Æ¹Ô¤«¤é 1 ¤Ä°Ê¾å 8 ¸Ä°Ê²¼¤Î ÃͤòÆɤ߹þ¤ß¡¢Ã±°ì¤Î¥Ç¡¼¥¿ÅÀ¤Ë´ØÏ¢ÉÕ¤±¤Þ¤¹¡£°Ê²¼»²¾È: using (99.3.11)¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Îñ°ì¹ÔÃæ¤Î¸Ä¡¹¤ÎÃͤϡ¢¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (°ì¤Ä¤Þ¤¿¤ÏÊ£¿ô ¤Î¶õÇò¤«¥¿¥Ö) ¤«¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É set datafile ¤Ç»ØÄꤷ¤¿ÆÃÊ̤ʥե£¡¼ ¥ë¥É¶èÀÚ¤êʸ»ú¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¥Õ¥£¡¼¥ë¥ÉÁ´ÂΤ¬Æó½Å°úÍÑ Éä¤Ç°Ï¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤Þ¤¿¤Ï¥Õ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»ú¤ê¤¬¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹°Ê ³°¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤Î¥Õ¥£¡¼¥ë¥É¤¬¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¤ò´Þ¤à¤³¤È¤¬²Äǽ ¤Ç¤¹¡£Æó½Å°úÍÑÉäÆâ¤Î¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¤ÏÎó¿ô¤Î´ªÄê¤ÎºÝ¤Ë¤Ï̵»ë¤µ¤ì¤ë¤Î¤Ç¡¢ ¼¡¤Î¥Ç¡¼¥¿¹Ô¤Ï 3 Îó¤È¸«¤Ê¤µ¤ì¤Þ¤¹:


     1.0 "second column" 3.0

¥Ç¡¼¥¿¤Ï¡¢»Ø¿ôÉô¤Ë e, E ¤Îʸ»ú¤ò¤Ä¤±¤¿»Ø¿ôɽµ­¤Ç½ñ¤«¤ì¤Æ¤¤¤Æ¤â¹½¤¤¤Þ¤» ¤ó¡£¥³¥Þ¥ó¥É set datafile fortran ¤¬Í­¸ú¤Ê¾ì¹ç¤Ï¡¢fortran ¤Î»Ø¿ô»ØÄê »Ò d, D, q, Q ¤â»È¤¨¤Þ¤¹¡£

¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î¶õ¹Ô¤Ï½ÅÍפǤ¹¡£ 1 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢plot ¤ËÉÔϢ³¤ò»Ø¼¨¤·¤Þ¤¹; ¥Ö¥é¥ó¥¯¹Ô¤Ë¤è¤Ã¤Æ¶è ÀÚ¤é¤ì¤¿ÅÀ¤ÏÀþ¤Ç·ë¤Ð¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó (line style ¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¾ì ¹ç¤Ë¤Ï)¡£ 2 ¹Ô¤Î¥Ö¥é¥ó¥¯¹Ô¤Ï¡¢ÊÌ¡¹¤Î¥Ç¡¼¥¿½¸¹ç´Ö¤Î¶èÀÚ¤ê¤ò¼¨¤·¤Þ¤¹¡£°Ê²¼»²¾È: index (99.3.6)¡£

¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð (°Ê²¼»²¾È: set autoscale (112.3))¡¢¼´¤ÏÁ´¤Æ¤Î ¥Ç¡¼¥¿¥Ý¥¤¥ó¥È¤ò´Þ¤à¤è¤¦¤Ë¼«Æ°Åª¤Ë°ú¤­¿­¤Ð¤µ¤ì¤Æ¡¢ÌÜÀ¹¤ê¤¬½ñ¤«¤ì¤ë¾õÂÖ ¤Ê¤é¤ÐÁ´¤Æ¤ÎÌÜÀ¹¤ê¤¬¥Þ¡¼¥¯¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¤Ä¤Î·ë²Ì¤ò°ú¤­µ¯¤³¤·¤Þ¤¹: i) splot ¤Ç¤Ï¡¢¶ÊÌ̤γѤÏÄìÌ̤γѤ˰ìÃפ·¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³ ¤Î¾ì¹ç¡¢½Ä¤ÎÀþ¤Ï½ñ¤«¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£ii) 2 ¼ïÎà¤Î¼´¤Ç¤Î¡¢Æ±¤¸ x ¤ÎÈϰϤΥǡ¼¥¿¤Îɽ¼¨¤ÎºÝ¡¢¤â¤· x2 ¤Î¼´¤ËÂФ¹¤ëÌÜÀ¹¤ê¤¬½ñ¤«¤ì¤Æ¤¤¤Ê¤¤¾ì ¹ç¤Ï¡¢x ºÂɸ¤¬¤¢¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï x ¼´ (x1) ¤ÏÁ´¤Æ¤ÎÌÜ À¹¤ê¤Ë¤Þ¤Ç¼«Æ°Åª¤Ë°ú¤­±ä¤Ð¤µ¤ì¤ë¤Î¤ËÂФ·¡¢x2 ¼´¤Ï¤½¤¦¤Ç¤Ï¤Ê¤¤¤«¤é¤Ç¤¹¡£ ¼¡¤ÎÎã¤Ç¤½¤ÎÌäÂê¤ò¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹:


     reset; plot '-', '-' axes x2y1
     1 1
     19 19
     e
     1 1
     19 19
     e

¤³¤ì¤òÈò¤±¤ë¤Ë¤Ï¡¢set autoscale ¥³¥Þ¥ó¥É¤« set [axis]range ¥³¥Þ¥ó ¥É¤Î noextend ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê¤Î¹ï ¤ß¤òÆþ¤ì¤ë¤è¤¦¤Ê¼´¤ÎÈϰϤγÈÄ¥µ¡Ç½¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£

¥é¥Ù¥ë¤ÎºÂɸ¤Èʸ»úÎó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹ (°Ê²¼ »²¾È: labels (54))¡£

99.3.1 Columnheaders

¥³¥Þ¥ó¥É plot ¤Î¥­¡¼¥ï¡¼¥É skip ¤ò»È¤¦¤³¤È¤Ç¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤Î ÄÉ²Ã¹Ô (Ê£¿ô¹Ô¤â²Ä) ¤ò¡¢ÌÀ¼¨Åª¤Ë̵»ë¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Ç¡¼¥¿¥Õ¥¡¥¤ ¥ë¤Ë¤Ï¡¢Ê¸»úÎó¤ÎÎó¥Ø¥Ã¥À¤ò´Þ¤àÄɲäÎñ°ì¹Ô¤¬¤¢¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£¥³¥Þ¥ó ¥É plot ¤¬Îó¥Ø¥Ã¥À (column header) ¤ò¡¢Î㤨¤Ð¥¿¥¤¥È¥ë¤È¤·¤Æ»ÈÍѤ¹¤ë¤Ê ¤É¤Î¤è¤¦¤ËÌÀ¼¨Åª¤Ë»²¾È¤¹¤ë¾ì¹ç¤Ï¡¢¤½¤Î¹Ô¤ò¼«Æ°Åª¤Ë¥¹¥­¥Ã¥×¤·¤Þ¤¹¡£¤½¤¦ ¤Ç¤Ê¤±¤ì¤Ð¡¢¥¹¥­¥Ã¥×¿ô¤Ë 1 ¤òÄɲ乤뤫¡¢set datafile columnheaders ¤Î°À­¤òÀßÄꤹ¤ë¤³¤È¤ÇÌÀ¼¨Åª¤Ë¤½¤Î¹Ô¤ò¥¹¥­¥Ã¥×¤¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£ °Ê²¼»²¾È: skip (99.3.7), columnhead (15.3.19.2), autotitle columnheader (112.39.4)¡£

99.3.2 ¥«¥ó¥Þ¶èÀÚ¤ê¥Õ¥¡¥¤¥ë (csv files)

½ñ¼°:


    set datafile separator {whitespace | tab | comma | "chars"}

"csv" ¤Ï¡¢ËÜÍè¤Ï¥«¥ó¥Þ¶èÀÚ¤ê ("comma-separated values") ¤Îά¸ì¤Ç¤¹¤¬¡¢ ¤³¤³¤Ç¤Î¡Öcsv ¥Õ¥¡¥¤¥ë¡× ("csv file") ¤È¤¤¤¦¸ÀÍդϡ¢¤½¤ÎÃæ¤Î¥Ç¡¼¥¿¥Õ¥£ ¡¼¥ë¥É¤¬¡¢É¬¤º¤·¤â¥«¥ó¥Þ¤Ç¤¢¤ëɬÍפϤʤ¤ÆÃÄê¤Îʸ»ú¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ë¤è¤¦ ¤Ê¥Õ¥¡¥¤¥ë¤È¤·¤Þ¤¹¡£csv ¥Õ¥¡¥¤¥ë¤«¤é¥Ç¡¼¥¿¤òÆɤि¤á¤Ë¤Ï¡¢gnuplot ¤Ë¥Õ ¥£¡¼¥ë¥É¶èÀÚ¤êʸ»ú¤¬¤Ê¤ó¤Ç¤¢¤ë¤«¤ò¼¨¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢¥Õ¥£¡¼¥ë ¥É¶èÀÚ¤êʸ»ú¤È¤·¤Æ¥»¥ß¥³¥í¥ó¤ò»È¤¦¥Õ¥¡¥¤¥ë¤«¤éÆɤà¾ì¹ç¤Ï:


    set datafile separator ";"

°Ê²¼»²¾È: set datafile separator (112.23.5)¡£¤³¤ì¤Ï¡¢ÆþÎÏÍѤΥե¡¥¤¥ë¤Ë¤Î¤ßŬÍÑ ¤µ¤ì¤Þ¤¹¡£½ÐÎϤȤ·¤Æ CSV ¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¤Ë¤Ï¡¢set table ¤Ë¥ª¥×¥· ¥ç¥ó separator ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

99.3.3 Every

¥­¡¼¥ï¡¼¥É every ¤Ï¡¢ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¤ò¥Ç¡¼¥¿½¸¹ç¤«¤é¼þ´üŪ¤Ë¥µ¥ó¥×¥ê ¥ó¥°¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£

Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¤Ï¡¢¡Ö¥Ý¥¤¥ó¥È¡×¤Ï 1 ¤Ä¤Î¹Ô¡¢¥Ç¡¼¥¿¤Î¡Ö¥Ö¥í¥Ã¥¯¡× ¤Ï¡¢Á°¸å¤Î¥Ö¥í¥Ã¥¯¤È¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤ëϢ³¤·¤¿¹Ô¤Î¤Þ¤È¤Þ¤ê¤ò°ÕÌ£¤¹¤ë¤³¤È ¤È¤·¤Þ¤¹¡£

matrix ¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢¡Ö¥Ö¥í¥Ã¥¯¡×¤È¡Ö¥Ý¥¤¥ó¥È¡×¤Ï¡¢¤½¤ì¤¾¤ì¡Ö¹Ô¡× ¤È¡ÖÎó¡×¤ËÂбþ¤·¤Þ¤¹¡£°Ê²¼»²¾È: matrix every (115.1.1.4)¡£

½ñ¼°:


     plot 'file' every {<¥Ý¥¤¥ó¥ÈÁýʬ>}
                         {:{<¥Ö¥í¥Ã¥¯Áýʬ>}
                           {:{<³«»Ï¥Ý¥¤¥ó¥È>}
                             {:{<³«»Ï¥Ö¥í¥Ã¥¯>}
                               {:{<½ªÎ»¥Ý¥¤¥ó¥È>}
                                 {:<½ªÎ»¥Ö¥í¥Ã¥¯>}}}}}

ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¥Ý¥¤¥ó¥È¤Ï¡¢<³«»Ï¥Ý¥¤¥ó¥È> ¤«¤é <½ªÎ»¥Ý¥¤¥ó¥È> ¤Þ¤Ç <¥Ý ¥¤¥ó¥ÈÁýʬ> ¤ÎÁý²Ã¤ÇÁª¤Ó¡¢¥Ö¥í¥Ã¥¯¤Ï <³«»Ï¥Ö¥í¥Ã¥¯> ¤«¤é <½ªÎ»¥Ö¥í¥Ã¥¯> ¤Þ¤Ç <¥Ö¥í¥Ã¥¯Áýʬ> ¤ÎÁý²Ã¤ÇÁª¤Ó¤Þ¤¹¡£

³Æ¥Ö¥í¥Ã¥¯¤ÎºÇ½é¤Î¥Ç¡¼¥¿¤Ï¡¢¥Õ¥¡¥¤¥ëÃæ¤ÎºÇ½é¤Î¥Ö¥í¥Ã¥¯¤ÈƱ¤¸¤è¤¦¤Ë¡¢ ¡Ö0 È֡פȿô¤¨¤Þ¤¹¡£

¥×¥í¥Ã¥È¤Ç¤­¤Ê¤¤¾ðÊó¤ò´Þ¤à¹Ô¤â¥«¥¦¥ó¥È¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£

¤¤¤¯¤Ä¤«¤Î¿ô»ú¤Ï¾Êά¤Ç¤­¤Þ¤¹; Áýʬ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¡¢³«»Ï¤ÎÃͤϺǽé¤Î ¥Ý¥¤¥ó¥È¤«ºÇ½é¤Î¥Ö¥í¥Ã¥¯¡¢¤½¤·¤Æ½ªÎ»¤ÎÃͤϺǸå¤Î¥Ý¥¤¥ó¥È¤«ºÇ¸å¤Î¥Ö¥í¥Ã ¥¯¤ËÀßÄꤷ¤Þ¤¹¡£every ¤Î¥ª¥×¥·¥ç¥ó¤¬ ':' ¤Ç½ª¤ï¤ë¤Î¤Ïµö¤µ¤ì¤Æ¤¤¤Þ¤» ¤ó¡£every ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢Á´¤Æ¤Î¹Ô¤ÎÁ´¤Æ¤Î¥Ý¥¤¥ó¥È¤ò¥×¥í¥Ã¥È¤·¤Þ¤¹¡£

Îã:


     every :::3::3    # 4 ÈÖÌܤΥ֥í¥Ã¥¯¤À¤±Áª¤Ó¤Þ¤¹ (0 ÈÖ¤¬ºÇ½é)
     every :::::9     # ºÇ½é¤Î 10 ¥Ö¥í¥Ã¥¯¤òÁª¤Ó¤Þ¤¹
     every 2:2        # 1 ¤Ä¤ª¤­¤Î¥Ö¥í¥Ã¥¯¤Ç 1 ¤Ä¤ª¤­¤Î¥Ý¥¤¥ó¥È¤òÁª¤Ó
                      # ¤Þ¤¹
     every ::5::15    # ¤½¤ì¤¾¤ì¤Î¥Ö¥í¥Ã¥¯¤Ç¥Ý¥¤¥ó¥È 5 ¤«¤é 15 ¤Þ¤Ç¤ò
                      # Áª¤Ó¤Þ¤¹

°Ê²¼¤â»²¾È ñ½ã¤Ê plot ¥Ç¥â (simple.dem)

, ÈóÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Î splot ¥Ç¥â

, ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Î splot ¥Ç¥â

¡£

99.3.4 ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÎã (example)

¼¡¤ÎÎã¤Ï¡¢¥Õ¥¡¥¤¥ë "population.dat" Ãæ¤Î¥Ç¡¼¥¿¤ÈÍýÏÀ¶ÊÀþ¤ò¿Þ¤Ë¤¹¤ë¤â¤Î ¤Ç¤¹¡£


     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

binary ¤ÎÎã:


     # 2 ¤Ä¤Î float ¤ÎÃͤòÁªÂò¤· (2 ¤ÄÌܤÎÃͤÏ̵°ÕÌ£)¡¢°ìÊý¤òÆɤ߼Τơ¢
     # °ì¤Ä¤ª¤­¤Î float Ãͤò̵¸Â¤ËŤ¯Â³¤¯ 1 ¼¡¸µ¥Ç¡¼¥¿¤È¤·¤Æ»ÈÍÑ
     plot '<file_name>' binary format="%float%*float" using 1:2 with lines


     # ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éºÂɸ¤òÀ¸À®¤¹¤ë¤Î¤ËɬÍפʾðÊó¤ò¤¹¤Ù¤Æ¤½¤Î¥Ø¥Ã
     # ¥À¤Ë´Þ¤ó¤Ç¤¤¤ë EDF ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç
     plot '<file_name>' binary filetype=edf with image
     plot '<file_name>.edf' binary filetype=auto with image


     # 3 ¤Ä¤ÎÉä¹æ¤Ê¤·Ê¸»ú·¿À°¿ôÃÍ (unsigned char) ¤òÀ¸¤Î RGB ²èÁü¤Î¿§
     # À®Ê¬¤È¤·¤ÆÁªÂò¤·¡¢y Êý¸þ¤Ïȿž¤µ¤»²èÁü¤ÎÊý¸þ¤òºÂɸʿÌ̾å¤ÇÊѹ¹
     # ¤¹¤ë (º¸¾å¤¬¸¶ÅÀ¤Ë¤Ê¤ë¤è¤¦¤Ë)¡£¥Ô¥¯¥»¥ë¤Î´Ö³Ö¤â»ØÄꤷ¡¢¥Õ¥¡¥¤
     # ¥ë¤Ë¤Ï 2 ¤Ä¤Î²èÁü¤¬´Þ¤Þ¤ì¤Æ¤¤¤Æ¡¢¤½¤Î¤¦¤Á°ì¤Ä¤Ï origin ¤ÇÊ¿¹Ô
     # °ÜÆ°¤¹¤ë¡£
     plot '<file_name>' binary array=(512,1024):(1024,512) format='%uchar' \
          dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage


     # 4 ¤Ä¤ÎÊ̤Υǡ¼¥¿¤«¤é¤Ê¤ê¡¢ºÂɸ¾ðÊó¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤Æ¤¤
     # ¤ë¡£¥Õ¥¡¥¤¥ë¤Ï gnuplot ¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤È¤Ï°Û¤Ê¤ë¥¨¥ó
     # ¥Ç¥£¥¢¥ó¤ÇÀ¸À®¤µ¤ì¤Æ¤¤¤ë¡£
     splot '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3


     # Ʊ¤¸ÆþÎÏ¥Õ¥¡¥¤¥ë¤Ç¡¢º£²ó¤Ï 1 ÈÖÌÜ¤È 3 ÈÖÌܤΥ쥳¡¼¥É¤ò¥¹¥­¥Ã¥×
     splot '<file_name>' binary record=30:26 skip=360:348 endian=swap u 1:2:3

°Ê²¼»²¾È: binary matrix (115.1.1)¡£

99.3.5 ¥Õ¥£¥ë¥¿¡¼ (filters)

ÆþÎϥǡ¼¥¿¤òÆɤ߹þ¤ó¤Àľ¸å¡¢Â¾¤Î smooth ½èÍý¤ä¥¹¥¿¥¤¥ë¸ÇÍ­¤Î½èÍý¥ª¥×¥· ¥ç¥ó¤òŬÍѤ¹¤ëÁ°¤Ë¡¢¥Õ¥£¥ë¥¿¡¼ (filters) Áàºî¤òľ¤Á¤ËŬÍѤ·¤Þ¤¹¡£°ìÈÌ ¤Ë¥Õ¥£¥ë¥¿¡¼¤ÎÌÜŪ¤Ï¡¢¸µ¡¹¤ÎÆþÎÏÅÀ½¸¹çÁ´ÂΤò¡¢Â¿Ê¬ÊÑ·Á¤äºÆ¥°¥ë¡¼¥×²½¡¢ ºÆÀ°Î󲽤ò¹Ô¤¤¡¢¤½¤³¤«¤éÈ´¤­½Ð¤·¤¿Éôʬ½¸¹ç¤ËÃÖ¤­´¹¤¨¤Þ¤¹¡£ ¸½ºß¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¥Õ¥£¥ë¥¿¡¼¤Ï bins, convexhull, concavehull, mask, sharpen, zsort ¤Ç¤¹¡£

99.3.5.1 ÅÙ¿ôʬÉÛ (bins)

½ñ¼°:


    plot 'DATA' using <XCOL> {:<YCOL>} bins{=<NBINS>}
         {binrange [<LOW>:<HIGH>]} {binwidth=<width>}
         {binvalue={sum|avg}}

plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë¥ª¥×¥·¥ç¥ó bins ¤Ï¡¢ºÇ½é¤Ë¸µ¤Î¥Ç¡¼¥¿¤ò¡¢x ¼´ ¾å¤ÇÅù¤·¤¤Éý¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤Î³¬µé (¥Ó¥ó) ¤Ë³ä¤êÅö¤Æ¡¢¤½¤·¤Æ³¬µéËè¤Ë°ì¤Ä ¤ÎÃͤΤߤòÉÁ²è¤·¤Þ¤¹¡£³¬µé¤Î¿ô¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤϡ¢set samples ¤Ç·èÄꤷ ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï plot ¥³¥Þ¥ó¥É¤Ç¥Ó¥ó¤Î¿ô¤òÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­ ¤Þ¤¹¡£

binrange ¤ò»ØÄꤷ¤Ê¤¤¤È¡¢ÈÏ°Ï¤Ï 'DATA' Æâ¤ÎÃͤÎξü¤ò¼è¤ê¤Þ¤¹¡£

³¬µéÉý¤Ï¡¢»ØÄꤷ¤¿ÈϰϤȳ¬µé¤Î¿ô¤«¤é¼«Æ°Åª¤Ë·×»»¤·¡¢³ÆÅÀ¤ò 0 ¤«¤é NBINS-1 ¤Þ¤Ç¤Î³¬µé¤Ë³ä¤êÅö¤Æ¤Þ¤¹:


    BINWIDTH = (HIGH - LOW) / (NBINS-1)
    xmin = LOW - BINWIDTH/2
    xmax = HIGH + BINWIDTH/2
    first bin holds points with (xmin <= x < xmin + BINWIDTH)
    ºÇ½é¤Î³¬µé¤Ï (xmin <= x < xmin + BINWIDTH) ¤ÎÈϰϤÎÅÀ¤òÊÝ»ý
    ºÇ¸å¤Î³¬µé¤Ï (xmax-BINWIDTH <= x < xman) ¤ÎÈϰϤÎÅÀ¤òÊÝ»ý
    ³ÆÅÀ¤Ï i = floor(NBINS * (x-xmin)/(xmax-xmin)) È֤㬵é¤Ë³ä¤êÅö¤Æ

¤½¤ì¤È¤ÏÊ̤ˡ¢¸ÇÄêÉý¤Î³¬µé¤ò»ØÄꤹ¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£¤½¤Î¾ì¹ç¡¢³¬µé¤Î¿ô (nbins) ¤Ï¡¢ÅÀ¤ÎÈÏ°ÏÁ´ÂΤˤ錄¤ëºÇ¾®¤Î³¬µé¤Î¿ô¤È¤Ê¤ê¤Þ¤¹¡£

³¬µé¤Î½ÐÎϤϡ¢¤½¤ÎÃæÅÀ¤ÇÉÁ²è¡¢¤Þ¤¿¤Ïɽ¤Ë¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð gnuplot ¤¬¾å ¤Î¤è¤¦¤Ë³¬µé¤ÎÉý¤ò·×»»¤¹¤ë¾ì¹ç¡¢ºÇ½é¤Î³¬µé¤Î x ºÂɸ¤Î½ÐÎÏ¤Ï x=LOW ¤Ç¤¢ ¤ê¡¢x=xmin ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

using Ì¿Îá¤Ç°ì¤Ä¤ÎÎó¤Î¤ß¤ò»ØÄꤷ¤¿¾ì¹ç¡¢³Æ¥Ç¡¼¥¿ÅÀ¤Ï¡¢¤½¤Î x ºÂɸÃÍ¤Ë ÂФ¹¤ë³¬µé¤Î¹ç·×ÃÍ¤Ë 1 ¤À¤±´óÍ¿¤·¤Þ¤¹¡£2 ÎóÌܤò»ØÄꤹ¤ë¤È¡¢¤½¤Î³¬µé¤Î ¹ç·×ÃÍ¤Ë¤Ï 2 ÎóÌܤÎÃͤ¬Äɲ䵤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢°Ê²¼¤Î 2 ¤Ä¤Î plot ¥³¥Þ¥ó ¥É¤ÏƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹:


    plot 'DATA" using N bins=20
    set samples 20
    plot 'DATA' using (column(N)):(1)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢³Æ³¬µé¤ËÂФ·¤ÆÉÁ²è¤µ¤ì¤ë y ¤ÎÃͤϡ¢¤½¤Î³¬µéÆâ¤Î¤¹¤Ù¤Æ ¤ÎÅÀ¤Ë´Ø¤¹¤ë y ¤ÎÃͤÎϤˤʤê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥ª¥×¥·¥ç¥ó binvalue=sum ¤ËÂбþ¤·¤Þ¤¹¡£¤³¤ì¤ËÂФ·¤Æ¡¢binvalue=avg ¤Ç¤Ï¤½¤Î³¬µéÆâ¤Î¤¹¤Ù¤Æ¤ÎÅÀ ¤ËÂФ¹¤ë y ¤ÎÃͤÎÊ¿¶Ñ¤òÉÁ²è¤·¤Þ¤¹¡£

´ØÏ¢¤¹¤ë½èÍý¥ª¥×¥·¥ç¥ó¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: smooth frequency (99.3.8.10), smooth kdensity (99.3.8.14)¡£

99.3.5.2 ÆÌÊñ (convexhull)

convexhull ¤ÏÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¥Õ¥£¥ë¥¿¡¼¥­¡¼¥ï¡¼¥É ¤È¤·¤ÆñÆȤǡ¢¤Þ¤¿¤Ï smooth path ¤ä expand <increment> ¤È¤ÎÁÈ¤ß¹ç ¤ï¤»¤È¤·¤Æ»È¤¤¤Þ¤¹¡£


    plot FOO using x:y convexhull
    plot FOO using x:y convexhull smooth path
    plot FOO using x:y convexhull expand <increment> {smooth path}

Image figure_convex_hull
¤³¤ì¤Ï¡¢FOO Æâ¤ÎÅÀ¤ò¡¢¤½¤ì¤òÊñ´Þ¤¹¤ëÆÌ¿³Ñ·Á¤ò¹½À®¤¹¤ë°ì°ÕŪ¤ÊÉôʬ½¸¹ç¡¢ ¤¹¤Ê¤ï¤ÁÆÌÊñ (convex hull) ¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£¤³¤Î¿³Ñ·Á¤ÎĺÅÀ½¸¹ç¤Ï¡¢»þ ·×²ó¤ê¤ÎÊĶÊÀþ¤È¤Ê¤ë¤è¤¦¤Ë½ÐÎϤ·¤Þ¤¹¡£¤è¤Ã¤Æ¤½¤Î¶ÊÀþ¤Î»ÏÅÀ¤È½ªÅÀ¤Ï°ìÃ× ¤·¡¢lines ¤ä polygons, filledcurves ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ÇŬÀÚ¤ËÉÁ²è¤Ç ¤­¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£ÆÌÊñ¤Ï¡¢²èÁü¤ä¸µ¡¹¤Î¥Ç¡¼¥¿ÅÀ¤¹¤Ù¤Æ¤ò´Þ¤à pm3d ¶Ê Ì̤Τ¢¤ëÎΰè¤òÁªÂòŪ¤ËÉÁ²è¤¹¤ë¥Þ¥¹¥¯¤È¤·¤Æ¤âÊØÍø¤Ë»È¤¨¤Þ¤¹¡£°Ê²¼»²¾È: masking (57)¡£

¥­¡¼¥ï¡¼¥É smooth ¤ò¤Ä¤±¤ë¤È¡¢¤½¤ÎĺÅÀ¤Ï³ê¤é¤«¤Ê¶ÊÀþ¤òÀ¸À®¤¹¤ë¤¿¤á¤Î ¥¬¥¤¥ÉÅÀ¤È¤·¤Æ»È¤¤¤Þ¤¹ (°Ê²¼»²¾È: smooth path (99.3.8.6))¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î Ê¿³ê²½¶ÊÀþ¤Ï¥¬¥¤¥ÉÅÀ¤òÄ̤ê¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó¤Î¥­¡¼¥ï¡¼¥É expand ¤ÈÁýʬÃÍ (<increment>) ¤Ï¡¢ÆÌÊñ¤ÎÊդΠÀþʬ¤òÁýʬÃͤε÷Î¥¤À¤±ÆâÉô¤«¤é±ó¤¶¤±¤Þ¤¹¡£¤½¤·¤Æ°ÜÆ°¤·¤¿Àþʬ¤òα¤á·Ñ¤® (mitered) ¤Ç¤Ä¤Ê¤®¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸µ¡¹¤ÎÆÌÊñ¤Î³ÆĺÅÀ¤ò 2 ¤Ä¤ÎĺÅÀ¤ÇÃÖ¤­ ÊѤ¨¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¤¬¡¢¤½¤ì¤ÏÎÙÀܤ¹¤ëÊդȤδ֤˷ä´Ö¤¬¤Ç¤­¤Æ¤·¤Þ¤¦¤« ¤é¤Ç¤¹¡£

99.3.5.3 ±úÊñ (concavehull)

»î¸³Ãʳ¬ (¼ÂÁõ¤Î¾ÜºÙ¤Ï¾­Íè¤Î¥ê¥ê¡¼¥¹¤ÇÊѹ¹¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó)¡£¤¢¤Ê¤¿ ¤Î gnuplot ¤¬ –enable-chi-shapes ÉÕ¤­¤Ç¥Ó¥ë¥É¤µ¤ì¤¿¾ì¹ç¤Î¤ßÍøÍѲÄǽ¡£

±úÊñ (concavehull) ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢ÆþÎϥǡ¼¥¿ ÅÀ¤Î¶­³¦Â¿³Ñ·Á¡ÖÊÄÊñ¡×(hull) ¤ò¸«¤Ä¤±¤ë¥Õ¥£¥ë¥¿¤Î°ì¤Ä¤Ç¡¢¤³¤ì¤Ï¡¢¸µ¤Î ÅÀ½¸¹ç¤ò¡¢¤³¤Î¿³Ñ·Á¤Î¼þ¾å¤Î½ç½ø¤Å¤±¤é¤ì¤¿Éôʬ½¸¹ç¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£ÆÌÊñ ¤ÏǤ°Õ¤ÎÅÀ½¸¹ç¤ËÂФ·¤Æ°ì°Õ¤Ë·èÄꤷ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¤½¤ì¤È¤Ï°ã¤¤¡¢Ê£¿ô¤Î±ú Êñ¤¬¤¢¤ê¤¨¤Þ¤¹¡£¤½¤³¤«¤é°ì¤Ä¤Î±úÊñ¤òÁªÂò¤¹¤ë»ÅÁȤߤϤµ¤Þ¤¶¤Þ¤¢¤ê¤Þ¤¹¤¬¡¢ gnuplot ¤Ï Duckham ¤é (2008; Patttern Recognition 41:3224-3236) ¤Ë¤è¤Ã ¤ÆÄêµÁ¤µ¤ì¤¿¦Ö-·Á¾õ¤ÎÊÄÊñ¤òÀ¸À®¤·¤Þ¤¹¡£

Image figure_concave_hull_1
Í¿¤¨¤é¤ì¤¿ÅÀ½¸¹ç¤ËÂФ·¡¢¥É¥í¥Í¡¼»°³Ñ·Áʬ³ä¤«¤é»°³Ñ·Á¤òÈ¿Éüºï½ü¤¹¤ë¤³¤È ¤Ç¦Ö-·Á¾õ¤òÀ¸À®¤·¤Þ¤¹¡£³ÆÈ¿Éü¤Ç¤Ï¡¢°Ê²¼¤Î´ð½à¤Ë½¾¤Ã¤Æ»°³Ñ·Á¤ò°ì¤Äºï½ü ¤·¤Þ¤¹: (1) °ìÅÀ¤ÇÀÜ¿¨¤¹¤ë¶­³¦·Á¾õ¤ÎÏ¢·ëÅÙ¤ò¸º¤é¤µ¤Ê¤¤¾ì¹ç¤Ïºï½ü¤Ë˾¤Þ ¤·¤¤¡¢(2) »°³Ñ·Á¤Î°ì¤Ä¤ÎÊÕ¤¬¸½ºß¤Î¼þ°Ï¤ÎºÇ¤âŤ¤Àþʬ¤Ç¤¢¤ë¾ì¹ç¡¢(3) ¤³ ¤ÎÊÕ¤¬»öÁ°¤ËÁªÂò¤·¤¿¡¢¦Ö-·Á¾õ¤ò´°Á´¤Ë·èÄꤹ¤ëÆÃÀ­Ä¹¥Ñ¥é¥á¡¼¥¿¤è¤êŤ¤ ¾ì¹ç¡£gnuplot ¤Ç¤Ï¡¢¤³¤ÎÆÃÀ­Ä¹¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥æ¡¼¥¶¡¼ÊÑ¿ô chi_length ¤«¤é¼è¤ê¤Þ¤¹¡£È¿Éü¤Ï¡¢¼è¤ê½ü¤±¤ë»°³Ñ·Á¤¬¤Ê¤¯¤Ê¤Ã¤¿¤éÄä»ß¤·¤Þ¤¹¡£ chi_length ¤¬Â礭¤¤¾ì¹ç¡¢»°³Ñ·Á¤Ï°ì¤Ä¤â¼è¤ê½ü¤±¤º¡¢¦Ö-·Á¾õ¤Ï¸µ¤Î¼þ¤Ç ¤¢¤ëÆÌÊñ¤Ë¤Ê¤ê¤Þ¤¹¡£chi_length ¤ò¾®¤µ¤¯¤¹¤ë¤È¤½¤Îʬ¿¤¯¤Î»°³Ñ·Á¤¬ºï ½ü¤µ¤ì¡¢ºÇ½ªÅª¤Ê·Á¾õ¤ÏÆÌÀ­¤¬¤è¤êÄ㤯¤Ê¤ê¤Þ¤¹¡£¾®¤µ¤¹¤®¤ë chi_length ¤Ï˾¤Þ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£

Image figure_concave_hull_2
chi_length ¤ÎŬÀÚ¤ÊÁªÂò¤Ï¡¢ÆþÎϥǡ¼¥¿ÅÀ¤ÎʬÉÛ¤ÈÌ©Å٤˶¯¤¯°Í¸¤·¤Þ¤¹¡£ ¥æ¡¼¥¶¤¬ chi_length ¤òÀßÄꤷ¤Ê¤±¤ì¤Ð¡¢gnuplot ¤Ï¤½¤ì¤ò¼«Æ°Åª¤ËÁªÂò¤· ¤Þ¤¹¤¬¡¢¤½¤ì¤¬¤¢¤Ê¤¿¤Î¥Ç¡¼¥¿¤ËÂФ·Å¬ÀڤǤ¢¤ëÊݾڤϤ¢¤ê¤Þ¤»¤ó¡£¤³¤Î¿Þ¤Ë ¼¨¤µ¤ì¤Æ¤ë¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢gnuplot ¤Ï chi_length=22.6 ¤ò¥Ç¥Õ¥©¥ë¥È¤Ç ÁªÂò¤·¡¢¤³¤ì¤ÏÆÌÊñ¤ÎºÇĹÊդΠ0.6 ÇܤÎŤµ¤Ç¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç»ÈÍѤµ¤ì¤ë ¤³¤ÎºÇĹÊÕ¤ËÂФ¹¤ëÈæΨ¤Ï¡¢¥³¥Þ¥ó¥É set chi_shape fraction <value> ¤Ç Êѹ¹¤Ç¤­¤Þ¤¹¡£

¸½ºß¤Î¥°¥é¥Õ¤Ç»È¤Ã¤¿¡¢¥æ¡¼¥¶ÄêµÁ¤« gnuplot ¤¬ÁªÂò¤·¤¿ chi_length ¤Î Ãͤϡ¢ÊÑ¿ô GPVAL_CHI_LENGTH ¤ËÊݸ¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó¥­¡¼¥ï¡¼¥É expand ¤ÈÁýʬÃÍ (<increment>) ¤Ï¡¢ÊÄÊñ¤Î³ÆÊÕ¤ò ¸ÇÄꤷ¤¿µ÷Î¥¤À¤±ÆâÉô¤«¤é±ó¤¶¤±¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸µ¤Î¤¹¤Ù¤Æ¤ÎÅÀ¤Î³°Â¦¤Ë¤¢¤ë ÊĶÊÀþ¤ò¹½À®¤¹¤ë¡¢¿·¤¿¤ÊÅÀ½¸¹ç¤òÀ¸À®¤·¤Þ¤¹¡£¤½¤ì¤Ï¡¢smooth path ¤ÈÁÈ ¤ß¹ç¤ï¤»¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£

99.3.5.4 ¥Þ¥¹¥­¥ó¥° (mask)


    plot FOO using 1:2:3 mask with {pm3d|image}

¥Þ¥¹¥¯¤ò°ìÅÙÄêµÁ¤¹¤ë¤È¡¢image ÉÁ²è¡¢¤Þ¤¿¤Ï pm3d ÉÁ²è¤«¤éÅÀ¤ÎÉôʬ½¸¹ç¤ò ÁªÂò¤¹¤ë¤Î¤Ë¤½¤ì¤òÍøÍѤǤ­¤Þ¤¹¡£ °Ê²¼»²¾È: masking (57)¡£

99.3.5.5 Àè±Ô²½ (shapen)

¥Õ¥£¥ë¥¿ sharpen ¤Ï¡¢´Ø¿ôÉÁ²è¤Ë¤Î¤ßŬÍѤ·¤Þ¤¹¡£¤½¤ì¤ÏÉÁ²è¤¹¤ë´Ø¿ô¤Î ¶Ë¤òõ¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¡¢¤½¤Î¥°¥é¥Õ¤ò¹½À®¤¹¤ëÀþʬÍ×ÁǤòºî¤ëɸËÜÅÀ¤Î¤¤¤º ¤ì¤«¤Î x Ãͤξå¤ËÀµ¤·¤¯¾è¤Ã¤Æ¤¤¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢ËÜÅö¤Î¶Ë¤òÆó ʬˡ¤Ë¤è¤Ã¤Æ¡¢¸«¤Ä¤±¤½¤·¤Æ¤½¤ì¤òɸËÜÅÀ¤Î½¸¹ç¤ËÄɲä·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ô¡¼ ¥¯¤Î±Ô¤¤Àèü¤ÎÀÚ¤ê¼Î¤Æ¤ò¸º¤é¤·¤Þ¤¹¤¬¡¢ÁƤ¤É¸Ëܲ½¤Ç¤Ï¤½¤ì¤ò´°Á´¤Ë¤Ï¼è¤ê ½ü¤±¤Þ¤»¤ó¡£

Îã:


    set samples 150
    set xrange [-8:8]
    plot abs(sqrt(sin(x))) sharpen

¥­¡¼¥ï¡¼¥É "sharpen" ¤Ê¤·¤Ç¤Ï¡¢·ë²Ì¤Î¥°¥é¥Õ¤ÏϢ³¶ÊÀþ¤Ç¡¢¦ÐËè¤Ë¶Ë¾®¤È ¤Ê¤ê¡¢¤½¤Î¶Ë¾®ÃÍ¤Ï 0 ¤Ë㤹¤ë¤Ù¤­¤â¤Î¤Ç¤¹¤¬¡¢¿Í°ÙŪ¤ËÀÚ¤ê¼Î¤Æ¤é¤ì¡¢¤½ ¤Î y ¤Î¶Ë¾®Ãͤϸ«¤¿ÌÜ¤Ë¤Ï 0.02 ¤«¤é 0.20 ¤Î´Ö¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥­¡¼¥ï¡¼¥É "sharpen" ¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢¤½¤Î´Ø¿ô¤ÎÀµ¤·¤¤¸«¤¿ÌܤǤ¢¤ë¡¢¼þ ´üŪ¤Ç±Ô¤¯ y=0 ¤Ë㤹¤ë¶Ë¾®Ãͤò»ý¤Ä¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£

99.3.5.6 Z ¥½¡¼¥È (zsort)


    plot FOO using x:y:z:color zsort with points lc palette

ÆþÎϥǡ¼¥¿¤ò¡¢Â¾¤Î smooth ¥ª¥×¥·¥ç¥ó¤òŬÍѤ¹¤ëÁ°¤ËÆþÎϸåľ¤Á¤Ë¥½¡¼¥È¤· ¤Þ¤¹¡£Â¾¤Î smooth ¥ª¥×¥·¥ç¥ó¤¬¥Ç¡¼¥¿¤òºÆ¥½¡¼¥È¤·¤Æ¡¢zsort ¤Î¸ú²Ì¤¬¥° ¥é¥Õ¤Ë¤ÏÁ´¤¯¸½¤ì¤Ê¤¤¾ì¹ç¤â¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ z ¼´¤¬¼«Æ°½Ì¼Ü¤Ç¤Ê¤¤¾ì¹ç¡¢Èϰϳ°¤Î z ¤ÎÃͤÎÅÀ¤Ï¥Õ¥é¥°ÉÕ¤±¤µ¤ì¤Þ¤¹¤¬¡¢ ºï½ü¤Ï¤µ¤ì¤Þ¤»¤ó¡£

¤³¤Îµ¡Ç½¤Ï¡¢¤È¤Æ¤âËÄÂç¤ÊÅÀ¿ô¥Ç¡¼¥¿¤Î 2 ¼¡¸µ¤Î»¶ÉÛ¿Þ¤Îɽ¼¨¤ò¡¢¹âÆÀÅÀ¤Î ʬÉÛ¤¬¤ï¤«¤ë·Á¤Ç¤¢¤ê³¤±¤ë¤è¤¦¤Ë¥Õ¥£¥ë¥¿¤¹¤ë¤è¤¦¤Ê»È¤¤Êý¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ ¤¹¡£z ÊݾÚÃͤˤè¤ë¥½¡¼¥È¤Ë¤è¤ê¡¢¹â¤¤ z Ãͤò»ý¤Ä¤è¤¦¤ÊÅÀ¤¬¡¢Ä㤤 z ÃͤΠÅÀ¤Çʤ¤¤±£¤µ¤ì¤ë¤³¤È¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

99.3.6 Index

¥­¡¼¥ï¡¼¥É index ¤Ï¡¢ÉÁ²èÍѤËÊ£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤«¤é¡¢Æà Äê¤Î¥Ç¡¼¥¿½¸¹ç¤òÁªÂò¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ÇÛÎó¤Îź»ú¤È¤·¤Æ¤Î index ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: arrays (15.8)¡£

½ñ¼°:


     plot 'file' index { <m>{:<n>{:<p>}} | "<name>" }

¥Ç¡¼¥¿½¸¹ç¤Ï 2 ¹Ô¤Î¶õÇò¤ÇʬΥ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£index <m> ¤Ï <m> ÈÖÌܤν¸ ¹ç¤À¤±¤òÁªÂò¤·¤Þ¤¹; index <m>:<n> ¤Ï <m> ¤«¤é <n> ¤Þ¤Ç¤Î¥Ç¡¼¥¿½¸¹ç¤Î ÁªÂò; index <m>:<n>:<p> ¤Ï¡¢<m>, <m>+<p>, <m>+2<p>, ¤Ê¤É¡¢<p> ¤ª¤­¤Î ½¸¹ç¤òÁªÂò¤·¡¢½¸¹ç <n> ¤Ç½ªÎ»¤·¤Þ¤¹¡£C ¸À¸ì¤Îź»ú (index) ¤ÎÉÕ¤±Êý¤Ë½¾ ¤¤¡¢index 0 ¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¥Ç¡¼¥¿½¸¹ç¤ò°ÕÌ£¤·¤Þ¤¹¡£Â礭¤¹¤®¤ë index ¤Î»ØÄê¤Ë¤Ï¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£<p> ¤ò»ØÄꤷ¡¢<n> ¤ò¶õÍó ¤Ë¤·¤¿¾ì¹ç¡¢<p> Ëè¤Î¥Ç¡¼¥¿¤ò¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Þ¤ÇÆɤ߹þ¤ß¤Þ¤¹¡£index ¤ò »ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿Á´ÂΤòñ°ì¤Î¥Ç¡¼¥¿½¸¹ç¤È¤·¤ÆÉÁ²è¤·¤Þ ¤¹¡£

Îã:


     plot 'file' index 4:5

¥Õ¥¡¥¤¥ë¤Î³ÆÅÀ¤ËÂФ·¤Æ¡¢¤½¤ì¤¬´Þ¤Þ¤ì¤ë¥Ç¡¼¥¿½¸¹ç¤Î index Ãͤϡ¢µ¿»÷Îó column(-2) ¤ÇÍøÍѤǤ­¤Þ¤¹¡£¤³¤ì¤Ï¡¢°Ê²¼¤Ë¸«¤ë¤è¤¦¤Ë¡¢¤½¤Î¥Õ¥¡¥¤¥ëÆ⠤θġ¹¤Î¥Ç¡¼¥¿½¸¹ç¤ò¶èÊ̤¹¤ëÊ̤ÎÊýË¡¤òÄ󶡤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ÉÁ²èÍÑ¤Ë 1 ¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ÎÁªÂò¤·¤«¤·¤Ê¤¤¾ì¹ç¤Ï index ¥³¥Þ¥ó¥É¤è¤ê¤âÉԳ湥¤Ç¤¹ ¤¬¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿½¸¹ç¤Ë°Û¤Ê¤ë°À­¤ò³ä¤êÅö¤Æ¤¿¤¤¾ì¹ç¤Ë¤Ï¤È¤Æ¤âÊØÍø¤Ç¤¹¡£ °Ê²¼»²¾È: pseudocolumns (99.3.11.3), lc variable (20.1.2)¡£

Îã:


     plot 'file' using 1:(column(-2)==4 ? $2 : NaN)        # ¤È¤Æ¤âÉԳ湥
     plot 'file' using 1:2:(column(-2)) linecolor variable # ¤È¤Æ¤âÊØÍø !

index '<name>' ¤Ï¡¢¥Ç¡¼¥¿½¸¹ç¤ò̾Á° '<name>' ¤ÇÁªÂò¤·¤Þ¤¹¡£Ì¾Á°¤Ï¥³ ¥á¥ó¥È¹Ô¤Ë½ñ¤¤¤Æ¥Ç¡¼¥¿½¸¹ç¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¥³¥á¥ó¥Èʸ»ú¤È¤½¤ì¤Ë³¤¯¶õÇò ¤ò¤½¤Î¥³¥á¥ó¥È¹Ô¤«¤é¼è¤ê½ü¤¤¤Æ¡¢¤½¤Î·ë²Ì¤¬ <name> ¤«¤é»Ï¤Þ¤Ã¤Æ¤¤¤ì¤Ð¡¢ ¤½¤ì¤Ë³¤¯¥Ç¡¼¥¿½¸¹ç¤Ë <name> ¤È¤¤¤¦Ì¾Á°¤¬¤Ä¤±¤é¤ì¤Æ¡¢¤½¤ì¤ò»ØÄê¤Ç¤­¤Þ ¤¹¡£

Îã:


     plot 'file' index 'Population'

<name> ¤Ç»Ï¤Þ¤ë¤¹¤Ù¤Æ¤Î¥³¥á¥ó¥È¤¬¤½¤ì¤Ë³¤¯¥Ç¡¼¥¿½¸¹ç¤Î̾Á°¤Ë¤Ê¤ë¤³¤È ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ÌäÂê¤òÈò¤±¤ë¤¿¤á¤Ë¡¢Î㤨¤Ð '== Popolation ==' ¤ä '[Population]' ¤Ê¤É¤Î̿̾ˡ¤òÁªÂò¤¹¤ë¤ÈÊØÍø¤Ç¤·¤ç¤¦¡£

99.3.7 Skip

¥­¡¼¥ï¡¼¥É skip ¤Ï¡¢¥×¥í¥°¥é¥à¤Ë¥Æ¥­¥¹¥È¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë (¥Ð¥¤¥Ê¥ê¥Ç¡¼ ¥¿¤ÏÉÔ²Ä) ¤ÎÀèƬ¤Î¿ô¹Ô¤ò¥¹¥­¥Ã¥×¤µ¤»¤Þ¤¹¡£¥¹¥­¥Ã¥×¤¹¤ë¹Ô¤Ï¡¢every ¥­ ¡¼¥ï¡¼¥É½èÍý¤Ç¤Î¹Ô¿ô¤Ë¤Ï¥«¥¦¥ó¥È¤·¤Þ¤»¤ó¡£every ::N ¤Ï¤½¤Î¥Õ¥¡¥¤¥ëÆ⠤Υǡ¼¥¿¤Î¤¹¤Ù¤Æ¤Î¥Ö¥í¥Ã¥¯¤ÎÀèƬ¤ò¥¹¥­¥Ã¥×¤·¤Þ¤¹¤¬¡¢skip N ¤Ï¤½¤Î¥Õ ¥¡¥¤¥ë¤ÎÀèƬÉôʬ¤Î¹Ô¤Î¤ß¤ò¥¹¥­¥Ã¥×¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ð¥¤¥Ê¥ê ¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ËŬÍѤµ¤ì¤ëƱÍͤΥª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: binary skip (99.2.4)¡£

99.3.8 Smooth

gnuplot ¤Ï¡¢¸µ¡¹¤ÎÆþÎϥǡ¼¥¿¤¬¤½¤¦¤Ç¤¢¤Ã¤¿¤«¤Î¤è¤¦¤ËÊä´Ö¤ä¾¤ÎÁàºî¤ò ¥Ç¡¼¥¿¤ËŬÍѤ¹¤ë¥ë¡¼¥Á¥ó¤ò¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Ï smooth ¥ª¥× ¥·¥ç¥óÆâ¤Ë¥°¥ë¡¼¥×²½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤µ¤é¤ËÀöÎý¤µ¤ì¤¿¥Ç¡¼¥¿½èÍý¤ò¤·¤¿¤±¤ì ¤Ð¡¢gnuplot ¤Î³°¤Ç¥Ç¡¼¥¿¤ÎÁ°½èÍý¤ò¤¹¤ë¤«¡¢¤Þ¤¿¤ÏŬÀڤʥâ¥Ç¥ë¤Ç¤Î fit ¤ò»È¤¦¤Î¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼¤â»²¾È: plot filters (99.3.5)¡£

½ñ¼°:


     smooth {unique | frequency | fnormal | cumulative | cnormal
            | csplines | acsplines | mcsplines  bezier | sbezier
            | path
            | kdensity {bandwidth} {period}
            | unwrap}

¥ª¥×¥·¥ç¥ó unique, frequency, fnormal, cumulatie, cnormal ¤Ï¡¢ x ºÂɸ¤Ë´Ø¤·¤Æ¥Ç¡¼¥¿¤ò¥½¡¼¥È¤·¡¢¤½¤·¤Æ¤½¤Î x ¤ÎÃͤËÂФ¹¤ëʬÉۤΤ¢¤ë¼ï ¤ÎÍͻҤòÉÁ²è¤·¤Þ¤¹¡£

spline ·Ï¡¢Bezeir ·Ï¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥Ç¡¼¥¿¤Îü¤Èü¤ò·ë¤ÖϢ³¶ÊÀþ¤Î·¸¿ô ¤ò·èÄꤷ¤Þ¤¹¡£¤³¤Î¶ÊÀþ¤Ï´Ø¿ô¥°¥é¥Õ¤ÈƱ¤¸ÊýË¡¡¢¤¹¤Ê¤ï¤Á¤½¤ÎÃͤò x ºÂɸ ¤Ë±è¤¦Æ±¤¸Éý¤Î¶è´Ö¤´¤È¤ËÁª¤Ó (°Ê²¼»²¾È: set samples (112.83))¡¢¤½¤ì¤é¤ÎÅÀ¤ò Àþʬ¤Ç¤Ä¤Ê¤°¤³¤È¤ÇÉÁ²è¤·¤Þ¤¹¡£¥Ç¡¼¥¿½¸¹ç¤¬¶õ¹Ô¤ä̤ÄêµÁÃͤÇÀÚ¤é¤ì¤Æ¤¤ ¤ë¾ì¹ç¡¢ÀÚ¤é¤ì¤Æ¤¤¤Ê¤¤¤½¤ì¤¾¤ì¤ÎÉôʬ¤òÊÌ¡¹¤ÎϢ³¶ÊÀþ¤È¤·¤Æ¤Ä¤Ê¤®¤Þ¤¹¡£ ¤³¤ì¤é¤ÎÊÌ¡¹¤Ë¤Ä¤Ê¤¤¤ÀÉôʬƱ»Î¤Ï¡¢¶ÊÀþ¤È¤·¤ÆÀڤ줿¤ê¡¢ÉÔϢ³¤Ë¤Ê¤Ã¤¿ ¤ê¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

unwrap ¤Ï¡¢¥Ç¡¼¥¿¤¬¦Ð¤è¤êÂ礭¤Ê¥¸¥ã¥ó¥×¤ò¤·¤Ê¤¤¤è¤¦¤Ë¡¢2¦Ð¤ÎÀ°¿ôÇܤò ²Ã¤¨¤ëÁàºî¤ò¤·¤Þ¤¹¡£

¤â¤· autoscale ¤Î¾õÂ֤Ǥ¢¤ì¤Ð¡¢¼´¤ÎÈϰϤϸµ¤Î¥Ç¡¼¥¿¤«¤é¤Ç¤Ï¤Ê¤¯¡¢¤½ ¤³¤«¤éºî¤é¤ì¤ëºÇ½ªÅª¤Ê¶ÊÀþ¤ËÂФ·¤Æ·×»»¤µ¤ì¤Þ¤¹¡£

¤â¤· autoscale ¤Î¾õÂ֤Ǥʤ¯¡¢¤«¤Ä¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÀ¸À®¤¹¤ë¾ì¹ç¡¢¤½¤Î ¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎɸËܲ½¤Ï¡¢ÆþÎϥǡ¼¥¿¤ò´Þ¤à¤è¤¦¤Ê x ¤ÎÈϰϤȡ¢ set xrange ¤ÇÄêµÁ¤µ¤ì¤ë¸ÇÄꤷ¤¿²£ºÂɸ¤ÎÈϰϤζ¦ÄÌÉôʬ¤Î¾å¤Ç¹Ô¤Ê¤ï¤ì ¤Þ¤¹¡£

Í׵᤹¤ëÊ¿³ê²½¥ª¥×¥·¥ç¥ó¤òŬÍѤ¹¤ë¤Ë¤Ï¥Ç¡¼¥¿¤ÎÅÀ¿ô¤¬¾¯¤Ê¤¹¤®¤ë¾ì¹ç¤Ï¡¢ ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

smooth ¥ª¥×¥·¥ç¥ó¤Ï¡¢´Ø¿ô¤ÎÉÁ²è¤Î¤È¤­¤Ë¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¶ËºÂɸ¥â¡¼¥É ¤Ç¤Ï¡¢smooth path ¤Î¤ßÍ­¸ú¤Ç¤¹¡£

3 ¼¡¸µ plot (splot) ¤Ç¤ÎÊ¿³ê²½¤Ï¡¢¸½ºß¤Ï 3 ¼¡¸µ¤ÎÅÀ¤Î½¸¹ç¤òÄ̤뼫Á³ 3 ¼¡¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎÀ¸À®¤Ë¸ÂÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£°ìÈÌŪ¤Ë¤Ï¡¢µ°Æ» (smooth path) ¤Ë¥¹¥×¥é¥¤¥ó¤ò±è¤Ã¤ÆÀ¸À®¤·¤Þ¤¹¡£3 ¼¡¸µ¥Ç¡¼¥¿¤Î 2 ¼¡¸µ ¼Í±Æ¤ËÂФ·¤Æ¤Ï¡¢smooth csplines ¤Ï¤½¤ì¤¬ 2 ¼¡¸µ¥Ç¡¼¥¿¤Ç¤¢¤ë¤«¤Î¤è¤¦ ¤ËºîÍѤ·¤Þ¤¹¡£°ì¤Ä¤Î splot ¥³¥Þ¥ó¥É¤Ç¤Ï¡¢¤¤¤º¤ì¤«°ì¤Ä¤Î¥­¡¼¥ï¡¼¥É¤Î ¤ß¤¬µö¤µ¤ì¤Æ¤¤¤Þ¤¹¡£


    splot $DATA using 1:2:3 smooth path with lines

99.3.8.1 Acsplines

¥ª¥×¥·¥ç¥ó smooth acsplines ¤Ï¼«Á³¤Ê³ê¤é¤«¤Ê¥¹¥×¥é¥¤¥ó¤Ç¥Ç¡¼¥¿¤ò¶á»÷ ¤·¤Þ¤¹¡£¥Ç¡¼¥¿¤¬ x ¤Ë´Ø¤·¤ÆñĴ¤Ë¤µ¤ì¤¿¸å (°Ê²¼»²¾È: smooth unique (99.3.8.8))¡¢ 1 ¤Ä¤Î¶ÊÀþ¤¬¡¢¤¤¤¯¤Ä¤«¤Î 3 ¼¡Â¿¹à¼°¤Î°ìÉôʬ¤Ë¤è¤ê¶èʬŪ¤Ë¹½À®¤µ¤ì¤Þ¤¹¡£ ¤½¤ì¤é¤Î 3 ¼¡¼°¤Î·¸¿ô¤Ï¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤Ë¹ç¤¦¤è¤¦¤Ëµá¤á¤é¤ì¤Þ¤¹¤¬¡¢ using »ØÄê¤Ë¤è¤Ã¤Æ 3 ÎóÌܤÎÃͤ¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ÎÃͤǸġ¹¤ÎÅÀ¤Ë½Å ¤ß¤ò¤Ä¤±¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢°Ê²¼¤ÈƱ¤¸¤Ç¤¹:


     plot 'data-file' using 1:2:(1.0) smooth acsplines

À­¼Á¾å¡¢½Å¤ß¤ÎÀäÂÐŪ¤ÊÂ礭¤µ¤Ï¡¢¶ÊÀþ¤ò¹½À®¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¶èʬ¤Î¿ô¤ò·è Äꤷ¤Þ¤¹¡£¤â¤·½Å¤ß¤¬Â礭¤±¤ì¤Ð¡¢¸Ä¡¹¤Î¥Ç¡¼¥¿¤Î±Æ¶Á¤ÏÂ礭¤¯¤Ê¤ê¡¢¤½¤·¤Æ ¤½¤Î¶ÊÀþ¤Ï¡¢ÎÙ¤ê¹ç¤¦ÅÀƱ»Ö¤ò¼«Á³ 3 ¼¡¥¹¥×¥é¥¤¥ó¤Ç¤Ä¤Ê¤¤¤ÇÆÀ¤é¤ì¤ë¤â¤Î ¤Ë¶á¤Å¤­¤Þ¤¹¡£¤â¤·½Å¤ß¤¬¾®¤µ¤±¤ì¤Ð¡¢¤½¤Î¶ÊÀþ¤Ï¤è¤ê¾¯¤Ê¤¤¶èʬ¤Ç¹½À®¤µ¤ì¡¢ ¤½¤ì¤Ë¤è¤Ã¤Æ¤è¤êÊ¿³êŪ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ÎºÇ¤â¶Ëü¤Ê¾ì¹ç¤Ï¤¿¤À 1 ¤Ä¤Î¶èʬ ¤«¤é¤Ê¤ë¾ì¹ç¤Ç¤¢¤ê¡¢¤½¤ì¤ÏÁ´¤Æ¤Î¥Ç¡¼¥¿¤Ë½Å¤ß¤ÎÉÕ¤­Àþ·ÁºÇ¾® 2 ¾è¶á»÷¤Ë ¤è¤Ã¤Æºî¤é¤ì¤Þ¤¹¡£¸íº¹¤ÎΩ¾ì¤«¤é¸À¤¨¤Ð¡¢Ê¿³ê¤µ¤Î½Å¤ß¤Ï¡¢¤½¤Î¶ÊÀþ¤ËÂФ¹ ¤ë¡ÖÊ¿³ê²½°ø»Ò¡×¤Ë¤è¤Ã¤Æʬ³ä¤µ¤ì¤¿³ÆÅÀ¤Ø¤Î¡¢Åý·×Ū¤Ê½Å¤ß¤È¸«¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£¤½¤ì¤Ë¤è¤ê¡¢¤½¤Î¥Õ¥¡¥¤¥ëÃæ¤Î (ɸ½àŪ¤Ê) ¸íº¹¤ÏÊ¿³ê¤µ¤Î½Å¤ß¤È¤· ¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


     sw(x,S)=1/(x*x*S)
     plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines
     splot 'data_file' using 1:2:3:(sw($4,100)) smooth acsplines

splot ... smooth acsplines with lines ¤Ï¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Î x, y, z ºÂɸ¤Ë¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÅö¤Æ¤Ï¤á¤Þ¤¹¡£2 ¼¡¸µ¤Î¾ì¹ç¤È¤Ï°ã¤¤¡¢ÅÀ¤òºÇ½é¤Ë¥½ ¡¼¥È¤·¤Þ¤»¤ó¤Î¤Ç¡¢Åö¤Æ¤Ï¤á¤ë¥¹¥×¥é¥¤¥ó¤Îµ°Æ»¤Ï¥ë¡¼¥×¤ò»ý¤Ä²ÄǽÀ­¤¬¤¢¤ê ¤Þ¤¹¡£ ·Ù¹ð: °ìÈ̤Π3 ¼¡¸µ¤Î¾ì¹ç¡¢¤¿¤¯¤µ¤ó¤Î¥¹¥×¥é¥¤¥ó¶ÊÀþ¤¬Åö¤Æ¤Ï¤Þ¤ë¤Î¤Ç¡¢ »÷¤¿¤è¤¦¤Ê¸ú²Ì¤òÆÀ¤ë¤Ë¤Ï¡¢½Å¤ßÃͤò¤«¤Ê¤êÂ礭¤¯¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¼Â¿ô¤Î·ÐϩŤ¬°ÅÌÛ¤ÎÀ©¸æÃͤȤ·¤Æ»È¤ï¤ì¤ë¤Î¤Ç¡¢½Å¤ß¤Å¤±¤µ¤ì¤ë¤½¤Î ¶è´Ö¤Ï¡¢°ì¤Ä¤Î¼´¤Ø¤Î¼Í±Æ¤È¤Ï°ìÃפ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

99.3.8.2 Bezier

¥ª¥×¥·¥ç¥ó smooth bezier ¤Ï¡¢n ¼¡ (¥Ç¡¼¥¿ÅÀ¤Î¸Ä¿ô) ¤Î¥Ù¥¸¥§¶ÊÀþ¤Ç¥Ç ¡¼¥¿¤ò¶á»÷¤·¤Þ¤¹¡£¤³¤Î¶ÊÀþ¤Ïξü¤ÎÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹¡£

99.3.8.3 Bins

smooth bins ¤Ï bins ¤ÈƱ¤¸¤Ç¤¹¡£°Ê²¼»²¾È: bins (99.3.5.1)¡£

99.3.8.4 Csplines

¥ª¥×¥·¥ç¥ó smooth csplines ¤Ï¥Ç¡¼¥¿¤ò x ¾å¤ÇñĴ¤Ë·¤¨¤¿¸å¤Ç (°Ê²¼ »²¾È: smooth unique (99.3.8.8)) ¼«Á³ 3 ¼¡¥¹¥×¥é¥¤¥ó¶ÊÀþ¤Ç°ú¤­Â³¤¯ÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹¡£ ¤½¤ÎÊ¿³ê²½¶ÊÀþ¤Ï¾ï¤Ë¥Ç¡¼¥¿ÅÀ¤òÄ̤ë¤Î¤Ç¡¢¤è¤Ã¤ÆÅÀƱ»Î¤Î´Ö³Ö¤¬¶á¤¤¾ì¹ç¡¢ ¤½¤Î³ê¤é¤«¤Ê¶ÊÀþ¤Ë½ê¡¹¤¬¤¿¤Ä¤­¤ä±ó²ó¤ê¤¬¤Ç¤­¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£

splot ... smooth csplines with lines ¤Ï¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Î x, y, z ºÂɸ¤Ë¥¹¥×¥é¥¤¥ó¶ÊÀþ¤òÅö¤Æ¤Ï¤á¤Þ¤¹¡£2 ¼¡¸µ¤Î cspline ¤È¤Ï°ã¤¤¡¢ÅÀ¤òºÇ ½é¤Ë¥½¡¼¥È¤·¤Þ¤»¤ó¤Î¤Ç¡¢Åö¤Æ¤Ï¤á¤ë¥¹¥×¥é¥¤¥ó¤Îµ°Æ»¤Ï¥ë¡¼¥×¤ò»ý¤Ä²ÄǽÀ­ ¤¬¤¢¤ê¤Þ¤¹¡£°ìÈ̤ˡ¢¥¹¥×¥é¥¤¥ó·¸¿ô¤ÎÊÌ¡¹¤Ê 3 ¤Ä¤Î½¸¹ç¤òÀ¸À®¤·¡¢¤½¤ì¤¾ ¤ì¤¬°ì¤Ä¤ÎºÂɸ x, y, z ¤ò¡¢¶¦Ä̤ÎÌÀ¼¨Åª¤Ç¤Ê¤¤µ°Æ»¥Ñ¥é¥á¡¼¥¿¤Î´Ø¿ôÃÍ¤È ¤·¤Æ°·¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢2 ¼¡¸µ¤Î plot ... smooth path ¥ª¥×¥·¥ç¥ó¤ÈƱÅù ¤Ç¤¹¡£

¤½¤Î¶ÊÀþ¤¬ xy, yz, xy ¤Î¤¤¤º¤ì¤«¤ÎÊ¿Ì̾å¤Ë¤¢¤ë¤è¤¦¤ÊÆÃÊ̤ʾì¹ç¤Ï¡¢Ã±°ì ¤Î·¸¿ô½¸¹ç¤Î¤ß¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢3 ¼¡¸µ¶õ´ÖÆâ¤ÎÊ¿³ê²½¶ÊÀþ¤ò¡¢ºÂ ɸ¤ò¼Í±Æ¤·¤¿ 2 ¼¡¸µ¥°¥é¥Õ¤Î¥¹¥×¥é¥¤¥ó¶ÊÀþ¤ÎÅö¤Æ¤Ï¤á¤Î¥³¥Ô¡¼¤ÎÀÑ¤ß½Å¤Í ¤ÇÀ¸À®¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

99.3.8.5 Mcsplines

¥ª¥×¥·¥ç¥ó smooth mcsplines ¤Ï¡¢Ê¿³ê²½¤µ¤ì¤¿´Ø¿ô¤¬¸µ¤ÎÅÀ¤ÎñĴÀ­¤ÈÆÌ À­¤òÊݸ¤¹¤ë¤è¤¦¤Ê 3 ¼¡¥¹¥×¥é¥¤¥ó¶ÊÀþ¤Ç°ú¤­Â³¤¯ÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹¡£¤³¤ì¤Ï¡¢ ³°¤ìÃͤαƶÁ¤òÄ㸺¤·¤Þ¤¹¡£ FN Fritsch & RE Carlson (1980) "Monotone Piecewise Cubic Interpolation", SIAM Journal on Numerical Analysis 17: 238-246.

99.3.8.6 Path

 
Image figure_smooth_path
¥ª¥×¥·¥ç¥ó smooth path ¤Ï¡¢ÆþÎϥǡ¼¥¿Æâ¤Ç¸½¤ì¤ë½ç¡¢¤¹¤Ê¤ï¤ÁºÇ½é¤Ë x ¤Ç¥½¡¼¥È¤·¤¿¤ê¤»¤º¤Ë¡¢3 ¼¡¸µ¥¹¥×¥é¥¤¥ó¶ÊÀþ¤Ç°ú¤­Â³¤¯ÅÀ¤ò¤Ä¤Ê¤®¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢ÊĶÊÀþ¤ä¡¢¥ë¡¼¥×¤ò´Þ¤àµ°Æ»¸þ¤­¤Î³ê¤é¤«¤Ê¥¹¥×¥é¥¤¥ó¤òÀ¸À®¤·¤Þ¤¹¡£ ¤³¤ÎÊ¿³ê¥â¡¼¥É¤Ï¡¢2 ¼¡¸µ, 3 ¼¡¸µ¤ÎξÊý¤ÎÉÁ²è¥³¥Þ¥ó¥É¤Ç¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ ¤¹¡£ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¶õ¹Ô¤Ç¶èÀÚ¤é¤ì¤¿³ÆÅÀ½¸¹ç¤ËÂФ·¤ÆÊÌ¡¹¤Î¶ÊÀþ¤òºî¤ê¤Þ¤¹¡£ smooth path with filledcurves closed ¤Ë¤è¤ëÉÁ²è¤Ï¡¢³ÆÅÀ½¸¹ç¤«¤éÊÄ¶Ê Àþ¤òÉÁ¤¯¤³¤È¤òÊݾڤ·¡¢smooth path with lines ¤Ë¤è¤ëÉÁ²è¤Ï¡¢»ÏÅÀ¤È½ª ÅÀ¤¬Æ±¤¸¤Ç¤¢¤ì¤ÐÊĶÊÀþ¤ò¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð³«¤¤¤¿¶ÊÀþ¤òÉÁ¤¯¤³¤È¤òÊݾڤ·¤Þ ¤¹¡£°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ smooth_path.dem

99.3.8.7 Sbezier

¥ª¥×¥·¥ç¥ó smooth sbezier ¤Ï¡¢ºÇ½é¤Ë¥Ç¡¼¥¿¤òñĴ¤Ë·¤¨ (°Ê²¼»²¾È: unique (99.3.8.8)) ¤½¤·¤Æ bezier ¥¢¥ë¥´¥ê¥º¥à¤òŬÍѤ·¤Þ¤¹¡£

99.3.8.8 Unique

¥ª¥×¥·¥ç¥ó smooth unique ¤Ï¡¢¥Ç¡¼¥¿¤ò x Êý¸þ¤ËñĴ¤Ë¤·¤Þ¤¹¡£Æ±¤¸ x ¤ò»ý¤Ä¥Ç¡¼¥¿ÅÀ¤Ï y ¤ÎÃͤòÊ¿¶Ñ¤·¤Æ°ì¤Ä¤ÎÅÀ¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£¤½¤·¤Æ¤½¤Î·ë ²Ì¤È¤·¤ÆÆÀ¤é¤ì¤ëÅÀ¤òÀþʬ¤Ç·ë¤Ó¤Þ¤¹¡£

99.3.8.9 Unwrap

¥ª¥×¥·¥ç¥ó smooth unwrap ¤Ï¡¢2 ¤Ä¤Î³¤¯ÅÀ¤¬¦Ð¤ò±Û¤¨¤ë°ã¤¤¤¬½Ð¤Ê¤¤¤è ¤¦¤Ë¥Ç¡¼¥¿¤ò½¤Àµ¤·¤Þ¤¹: y ¤ÎÃͤ¬¤½¤ÎÈϰϤò±Û¤¨¤ë¤è¤¦¤ÊÅÀ¤ËÂФ·¤Æ¤Ï¡¢Á° ¤ÎÅÀ¤È¤Îº¹¤¬¦Ð¤ÎÈϰϤ˼ý¤Þ¤ë¤è¤¦¤Ë 2¦Ð¤ÎÀ°¿ôÇܤò²Ã¤¨¤Þ¤¹¡£¤³¤ÎÁàºî¤Ï¡¢ ´¬¤­Ìᤷ¤ò»ý¤Ä·Ï¤ÎÃͤò»þ´ÖŪ¤ËϢ³¤Ë¤µ¤»¤ë¤Î¤ËÍ­ÍѤǤ¹¡£

99.3.8.10 Frequency

¥ª¥×¥·¥ç¥ó smooth frequency ¤Ï¡¢¥Ç¡¼¥¿¤ò x ¤Ë´Ø¤·¤ÆñĴ¤Ë¤·¤Þ¤¹¡£x ºÂɸ¤¬Æ±¤¸ÅÀ¤Ï¡¢¤½¤ì¤é¤Î y ¤ÎÃͤιç·×¤ò y ¤ÎÃͤȤ·¤Æ»ý¤Ä°ì¤Ä¤ÎÅÀ¤ËÃÖ¤­ ´¹¤¨¤Þ¤¹¡£Â¿¤¯¤ÎÃͤΥǡ¼¥¿¤Î¥Ò¥¹¥È¥°¥é¥à¤ò°ìÄê¤Î³¬µéÉý (bin) ¤ÇÉÁ¤¯¤Ë ¤Ï¡¢¤½¤ì¤é¤Î y ¤ÎÃͤò 1.0 ¤Ë¤·¤Æ¡¢¤½¤ì¤Ç¤½¤ÎϤ¬Æ±¤¸³¬µéÉýÆâ¤ÎÅÀ¤Î¸Ä¿ô ¤òɽ¤¹¤è¤¦¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿ 1 Îó¤À¤±¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢°ÅÌۤΤ¦ ¤Á¤Ë¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£ Îã:


    binwidth = <ŬÅö¤ÊÃÍ>  # x ¤ÎÃͤγƳ¬µéÉý
    bin(val) = binwidth * floor(val/binwidth)
    plot "datafile" using (bin(column(1))):(1.0) smooth frequency
    plot "datafile" using (bin(column(1))) smooth frequency  # Ʊ¾å

°Ê²¼¤â»²¾È smooth.dem

99.3.8.11 Fnormal

¥ª¥×¥·¥ç¥ó smooth fnormal ¤Ï¡¢¥ª¥×¥·¥ç¥ó frequency ¤ÈƱÍͤÎÆ°ºî¤ò ¤·¤Þ¤¹¤¬¡¢Àµµ¬²½¤·¤¿¥Ò¥¹¥È¥°¥é¥à¤òÀ¸À®¤·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥Ç¡¼¥¿¤ò x ¤Ë ´Ø¤·¤ÆñĴ¤Ë¤·¤Æ¡¢y ¤ÎÃͤϤ½¤Î¤¹¤Ù¤Æ¤ÎϤ¬ 1 ¤Ë¤Ê¤ë¤è¤¦¤ËÀµµ¬²½¤·¤Þ¤¹¡£ x ºÂɸ¤¬Æ±¤¸ÅÀ¤Ï¡¢¤½¤ì¤é¤Î y ¤ÎÃͤιç·×¤ò y ¤ÎÃͤȤ·¤Æ»ý¤Ä°ì¤Ä¤ÎÅÀ¤ËÃÖ ¤­´¹¤¨¤Þ¤¹¡£Â¿¤¯¤ÎÃͤΥǡ¼¥¿¤Î¥Ò¥¹¥È¥°¥é¥à¤ò°ìÄê¤Î³¬µéÉý (bin) ¤ÇÉÁ¤¯ ¤Ë¤Ï¡¢¤½¤ì¤é¤Î y ¤ÎÃͤò 1.0 ¤Ë¤·¤Æ¡¢¤½¤ì¤Ç¤½¤ÎϤ¬Æ±¤¸³¬µéÉýÆâ¤ÎÅÀ¤Î¸Ä ¿ô¤òɽ¤¹¤è¤¦¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿ 1 Îó¤À¤±¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢°ÅÌۤΠ¤¦¤Á¤Ë¹Ô¤Ê¤ï¤ì¤Þ¤¹¡£ °Ê²¼¤â»²¾È smooth.dem

99.3.8.12 Cumulative

¥ª¥×¥·¥ç¥ó smooth cumulative ¤Ï¡¢¥Ç¡¼¥¿¤ò x ¤Ë´Ø¤·¤ÆñĴ¤Ë¤·¤Þ¤¹¡£x ºÂɸ¤¬Æ±¤¸ÅÀ¤Ï¡¢¤½¤ì°Ê²¼¤Î x ¤ÎÃͤò»ý¤Ä¤¹¤Ù¤Æ¤ÎÅÀ (¤¹¤Ê¤ï¤Á¸½ºß¤Î¥Ç¡¼ ¥¿ÅÀ¤Îº¸Â¦¤ÎÅÀ) ¤ËÂФ¹¤ë y ¤ÎÃͤÎÎßÀÑŪ¤Ê¹ç·×¤ò y ¤ÎÃͤȤ·¤Æ»ý¤Ä°ì¤Ä¤Î ÅÀ¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿¤«¤éÎßÀÑʬÉÛ´Ø¿ô¤òÆÀ¤ë¤Î¤ËÍøÍѤǤ­ ¤Þ¤¹¡£ °Ê²¼¤â»²¾È smooth.dem

99.3.8.13 Cnormal

¥ª¥×¥·¥ç¥ó smooth cnormal ¤Ï¡¢x ¤Ë´Ø¤·¤ÆñĴ¤Ç¡¢y ¤ÎÃÍ¤Ï [0:1] ¤ËÀµ µ¬²½¤µ¤ì¤¿¥Ç¡¼¥¿¤òÀ¸À®¤·¤Þ¤¹¡£Æ±¤¸ x ¤ÎÃͤò»ý¤ÄÅÀ¤¬Ê£¿ô¤¢¤ë¾ì¹ç¤Ï¡¢¤½ ¤ì¤è¤ê¾®¤µ¤¤ x ¤ÎÃͤò»ý¤Ä¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿ÅÀ (¤¹¤Ê¤ï¤Á¸½ºß¤Î¥Ç¡¼¥¿ÅÀ¤è¤ê ¤âº¸¤Ë¤¢¤ëÅÀ) ¤ÎÎßÀÑϤò¡¢¤¹¤Ù¤Æ¤Î y ¤ÎÃͤÎϤdzä¤Ã¤¿Ãͤò y ¤ÎÃͤȤ·¤Æ »ý¤Ä¤è¤¦¤Ê°ìÅÀ¤Î¥Ç¡¼¥¿¤ËÃÖ¤­ÊѤ¨¤é¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ç¡¼¥¿¤«¤éÀµµ¬²½¤µ¤ì ¤¿ÎßÀÑʬÉÛ´Ø¿ô¤òÆÀ¤ë¤Î¤Ë»È¤¨¤Þ¤¹ (ÆäËɸËÜÅÀ¿ô¤Î°Û¤Ê¤ë¥Ç¡¼¥¿½¸¹ç¤òÈæ³Ó ¤¹¤ë¤Î¤ËÍ­ÍѤǤ¹)¡£ °Ê²¼¤â»²¾È smooth.dem

99.3.8.14 Kdensity

¥ª¥×¥·¥ç¥ó smooth kdensity ¤Ï¡¢ÉÁ²è¤µ¤ì¤¿Ãͽ¸¹ç¤ÎʬÉÛ¤ËÂФ¹¤ë¥¬¥¦¥¹ ³Ë¤Ë¤è¤ë³ËÌ©ÅÙɾ²Á¤òÀ¸À®¤·ÉÁ²è¤·¤Þ¤¹¡£ÃͤϺǽé¤Î¥Ç¡¼¥¿Î󤫤é¼è¤ê¡¢¥ª¥× ¥·¥ç¥ó¤È¤·¤Æ½Å¤ß¤òÂè 2 Î󤫤é¼è¤ê¤Þ¤¹¡£¥¬¥¦¥¹³Ë¤Ï¡¢³ÆÅÀ¤Î°ÌÃÖ¤ËÃÖ¤«¤ì¡¢ ¤³¤ì¤é¤Î¥¬¥¦¥¹³Ë¤¹¤Ù¤Æ¤ÎϤ¬´Ø¿ô¤È¤·¤ÆÉÁ²è¤µ¤ì¤Þ¤¹¡£Àµµ¬²½¤µ¤ì¤¿¥Ò¥¹¥È ¥°¥é¥à¤òÆÀ¤ë¤Ë¤Ï¡¢³Æ½Å¤ß¤ò 1/(ÅÀ¤Î¸Ä¿ô) ¤È¤¹¤Ù¤­¤Ç¤¹¡£

¥Ð¥ó¥ÉÉý: ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤ÏÀµµ¬Ê¬ÉۤΥǡ¼¥¿ÃͤËÂФ·¤ÆºÇŬ¤È¤Ê¤ë¤è¤¦¤Ê¥Ð ¥ó¥ÉÉý¤ò·×»»¤·»ÈÍѤ·¤Þ¤¹¡£


    default_bandwidth = sigma * (4/3N) ** (0.2)

¤³¤ì¤ÏÄ̾ï¤Ï¤È¤Æ¤âÊݼéŪ¤Ç¡¢¤¹¤Ê¤ï¤ÁÉý¹­¤¤¥Ð¥ó¥ÉÉý¤Ç¤¹¡£¥Ð¥ó¥ÉÉý¤Ï¡¢ÌÀ ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£


    plot $DATA smooth kdensity bandwidth <value> with boxes

Á°¤ÎÉÁ²è¤Ç»ÈÍѤ·¤¿¥Ð¥ó¥ÉÉý¤Ï¡¢GPVAL_KDENSITY_BANDWIDTH ¤ËÊݸ¤·¤Þ¤¹¡£

¼þ´ü: ¼þ´üŪ¤Ê¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢¸Ä¡¹¤Î¥¬¥¦¥¹³ËÀ®Ê¬¤Ï¡¢1 ¼þ´ü¤Î¶è´Ö¤ò·«¤êÊÖ¤¹ ¤è¤¦¤Ë°·¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤½¤Î°ìÎã¤Ï¡¢³Ñ¤Î´Ø¿ô¤È¤·¤Æ¬Äꤵ¤ì¤¿¥Ç¡¼¥¿¤Ç¡¢ ¤³¤ì¤Ï¼þ´ü¤¬ 2¦Ð¤Ç¤¹¡£Â¾¤ÎÎã¤Ï¡¢Ê£¿ôǯ¤ËÅϤäơ¢³Æǯ¤ÎÆüÉÕËè¤Ë¼è¤é¤ì¤¿ ¥Ç¡¼¥¿¤Ç¡¢¤³¤Î¼þ´ü¤Ï 365 ¤Ç¤¹¡£ ¤³¤Î¤è¤¦¤Ê¾ì¹ç¡¢¤½¤Î¼þ´ü¤òÉÁ²è¥³¥Þ¥ó¥É¤ÇÅϤ¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£


    plot $ANGULAR_DAT smooth kdensity period 2*pi with lines

99.3.9 ÆÃÊ̤ʥե¡¥¤¥ë̾ (special-filenames)

ÆÃÊ̤ʰÕÌ£¤ò»ý¤Ä¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¡¢¼¡¤Î¤â¤Î¤¬¤¢¤ê¤Þ¤¹: ' ', '-', '+', '++'

¶õ¤Î¥Õ¥¡¥¤¥ë̾ ' ' ¤Ï¡¢Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢Ä¾Á°¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤òºÆ¤Ó »ÈÍѤ¹¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Æ±¤¸ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î 2 ¤Ä¤Î ¥Ç¡¼¥¿Îó¤òÉÁ²è¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹:


     plot 'filename' using 1:2, ” using 1:3

¤³¤Î filename ¤Ï¡¢¤³¤Î¸å¤Î plot ¥³¥Þ¥ó¥É¤Ç¤â ' ' ¤ÇºÆÍøÍѤǤ­¤Þ¤¹¤¬¡¢ ¤½¤Î¾ì¹ç¤Ë save ¤¹¤ë¤È¡¢¥³¥á¥ó¥È¤È¤·¤Æ¤½¤Î̾Á°¤òµ­Ï¿¤¹¤ë¤Î¤ß¤Ç¤¹¡£

'+' ¤È '++' ¤È¤¤¤¦ÆÃÊ̤ʥե¡¥¤¥ë̾¤Ï¡¢using »ØÄê¤ÎÁ´ÂΤÈÉÁ²è¥¹¥¿¥¤¥ë ¤Ë¥¤¥ó¥é¥¤¥ó´Ø¿ô¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î»ÅÁȤߤǤ¹¡£Ä̾´Ø¿ôÉÁ²è¤Ï¥µ ¥ó¥×¥ëÅÀËè¤Ëñ°ì¤Î y (¤Þ¤¿¤Ï z) ¤ÎÃͤ·¤«»ý¤Æ¤Þ¤»¤ó¡£¤·¤«¤·µ¿»÷¥Õ¥¡¥¤¥ë '+' ¤Ï¤½¤ì¤¬¤¢¤¿¤«¤â¼ÂºÝ¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤è¤¦¤Ë¡¢using »ØÄê¤Ë¤è¤ë 1 ÎóÌܤÎÃͤòɸËÜÅÀ¤È¤·¤Æ°·¤¤¡¢¤µ¤é¤ËÄɲäÎÎó¤ÎÃͤò»ØÄꤹ¤ë¤³¤È¤â²Äǽ¤Ç ¤¹¡£É¸ËÜÅÀ¿ô¤Ï set samples ¤«¤Þ¤¿¤ÏÌÀ¼¨Åª¤ËɸËÜ´Ö³Ö¤òÈÏ°Ï»ØÄêÉôʬ¤Ë »ØÄꤹ¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£É¸ËÜÅÀ¤Ï¡¢set trange ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð ¤½¤ì¤ÇÀßÄꤷ¤¿ÈÏ°ÏÁ´ÂΤËÅϤê¤Þ¤¹¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð set xrange ¤ÎÈÏ°Ï Á´ÂΤËÅϤê¤Þ¤¹¡£

Ãí°Õ: trange ¤Î»ÈÍѤϡ¢°ÊÁ°¤Î¤¢¤ëÈǤΠgnuplot ¤Î»ÅÍͤȤϰۤʤê¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ë¤è¤ê x ¼´¤ÎÈϰϤȤϰۤʤëɸËÜÈϰϤ¬»ÈÍѤǤ­¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£


     plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves

'+' ¤ÎľÁ°¤Ë¡¢ÆÈΩ¤ÊɸËÜÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Ä̾ï¤Î´Ø¿ôÉÁ²è¤Î ¤ÈƱÍÍ¡¢ÆÈΩÊÑ¿ô¤Ë̾Á°¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ °Ê²¼¤Ï¡¢É¸ËÜ´Ö³Ö (1.5) ¤òɸËÜÈÏ°ÏÆâ¤Ë»ØÄꤷ¤¿Îã¤Ç¤¹¡£É¸ËÜÅÀ¤Ï¡¢-3, 1.5, 0, 1.5, ... 24 ¤Î°ÌÃ֤Ǽè¤ê¤Þ¤¹¡£


     plot $MYDATA, [t=-3:25:1.5] '+' using (t):(f(t))

¤µ¤é¤Ë¡¢+ ¤ÎÈÏ°Ï»ØÄê¤Ë¤Ï¡¢É¸ËÜÁýʬ¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ plot ¤« splot ¥³¥Þ¥ó¥É¤Î¤¹¤°¸å¤ËɸËÜÈϰϤò½ñ¤¯¤È, ´Ö°ã¤Ã¤Æ x ¼´¤Î ÈϰϤȤβò¼á¤µ¤ì¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤Î¤¢¤¤¤Þ¤¤¤µ¤òÈò¤±¤ë¤¿¤á¤Ë¡¢ ¥­¡¼¥ï¡¼¥É sample ¤òÁ°ÃÖ¤¹¤ë¤«¡¢¤Þ¤¿¤ÏɸËÜÈϰϤΠ3 ÈÖÌܤΥե£¡¼¥ë¥É ¤È¤·¤ÆɸËÜ´Ö³Ö¤òÍ¿¤¨¤ë¤«¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£¤½¤ÎɸËֳܴ֤϶õ¤Ç¤â¤è¤¯¡¢ ¤½¤Î¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤ò»ÈÍѤ·¤Þ¤¹¡£¤½¤Î¤è¤¦¤Ê¤¢¤¤¤Þ¤¤¤µ¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: plot sampling (99.7)¡£


     plot sample [beta=0:2*pi] '+' using (sin(beta)):(cos(beta)) with lines
     plot        [beta=0:2*pi:] '+' using (sin(beta)):(cos(beta)) with lines

µ¿»÷¥Õ¥¡¥¤¥ë '++' ¤Ï¡¢u Êý¸þ¤Ï set samples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î¿ô¡¢v Êý ¸þ¤Ï set isosamples ¤ÇÀ©¸æ¤µ¤ì¤ëÅÀ¤Î¿ô¤Î¡¢É¸½àŪ¤Ê [u,v] ºÂɸ¤Î³Ê»Ò ¤òÀ¸À®¤¹¤ë 2 Îó¤Î¥Ç¡¼¥¿¤òÊÖ¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢'++' ¤ÎÉÁ²è¤ÎÁ°¤Ë¡¢urange ¤È vrange ¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢x ¤È y ¤ÎÈϰϤϼ«Æ°Åª¤ËÀßÄꤵ¤ì ¤ë¤«¡¢¤Þ¤¿¤ÏÌÀ¼¨Åª¤Ë urange, vrange ¤È¤Ï°ã¤¦ÃͤËÀßÄê¤Ç¤­¤Þ¤¹¡£ Îã:


     splot '++' using 1:2:(sin($1)*sin($2)) with pm3d
     plot '++' using 1:2:(sin($1)*sin($2)) with image

'-' ¤È¤¤¤¦ÆÃÊ̤ʥե¡¥¤¥ë̾¤Ï¡¢¥Ç¡¼¥¿¤¬¥¤¥ó¥é¥¤¥ó¤Ç¤¢¤ë¤³¤È¤ò»Ø¼¨¤· ¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢¥Ç¡¼¥¿¤ò¥³¥Þ¥ó¥É¤Î¸å¤Ë³¤±¤Æ»ØÄꤷ¤Þ¤¹¡£¤³¤Î¤È¤­¤Ï¥Ç ¡¼¥¿¤Î¤ß¤¬¥³¥Þ¥ó¥É¤Ë³¤­ÆÀ¤Þ¤¹¡£¤è¤Ã¤Æ¡¢plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë¥Õ¥£¥ë ¥¿¡¼¡¢¥¿¥¤¥È¥ë¡¢¥é¥¤¥ó¥¹¥¿¥¤¥ë¤È¤¤¤Ã¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢plot ¤Î¥³¥Þ¥ó¥É ¥é¥¤¥ó¤ÎÊý¤Ë½ñ¤«¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢unix ¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ë¤ª¤± ¤ë << (¥Ò¥¢¥É¥­¥å¥á¥ó¥È) ¤ÈƱÍͤǤ¹¡£¤½¤Î¥Ç¡¼¥¿¤Ï¡¢¤½¤ì¤é¤¬¥Õ¥¡¥¤¥ë¤« ¤éÆɤ߹þ¤Þ¤ì¤¿¤«¤Î¤è¤¦¤Ë¡¢1 ¹Ô¤Ë¤Ä¤­ 1 ¤Ä¤Î¥Ç¡¼¥¿ÅÀ¤òÆþÎϤ·¤Þ¤¹¡£¤½¤· ¤Æ¥Ç¡¼¥¿¤Î½ª¤ê¤Ï¡¢1 ÎóÌܤλϤá¤Ëʸ»ú "e" ¤òÃÖ¤¯¤³¤È¤Ç»Ø¼¨¤·¤Þ¤¹¡£

'-' ¤Ï¡¢¥Ç¡¼¥¿¤È¥³¥Þ¥ó¥É¤ò°ì½ï¤Ë»ý¤Ä¤³¤È¤¬Í­ÍѤǤ¢¤ë¾ì¹ç¤Î¤¿¤á¤Ë¤¢¤ê ¤Þ¤¹¡£Î㤨¤Ð¡¢ÊÌ¡¹¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤«¤é gnuplot ¤Ë¤½¤ÎξÊý¤¬¥Ñ¥¤¥× ÆþÎϤµ¤ì¤ë¾ì¹ç¤Ç¤¹¡£Î㤨¤Ð¡¢¥Ç¥â¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¤Ï¤³¤Îµ¡Ç½¤ò»È¤¦¤â¤Î¤¬¤¢ ¤ë¤Ç¤·¤ç¤¦¡£index ¤ä every ¤Î¤è¤¦¤Ê plot ¤Î¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì ¤Æ¤¤¤ë¤È¡¢¤½¤ì¤é¤Ï»È¤ï¤ì¤ë¤³¤È¤Î¤Ê¤¤¥Ç¡¼¥¿¤ÎÆþÎϤòÍ׵ᤷ¤Æ¤­¤Þ¤¹¡£¤´¤¯ ñ½ã¤Ê¾ì¹ç¤ò½ü¤¯¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢'-' ¤«¤é¥Ç¡¼¥¿¤òÆɤ߹þ¤à¤è¤ê¤â¡¢ºÇ½é ¤Ë¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤òÄêµÁ¤·¤Æ¤½¤ì¤òÆɤ߹þ¤àÊý¤¬Â¿Ê¬´Êñ¤Ç¤¹¡£°Ê²¼»²¾È: datablocks (18)¡£

¤â¤·¡¢replot ¥³¥Þ¥ó¥É¤Ç '-' ¤ò»È¤¦¤Ê¤é¡¢¤¢¤Ê¤¿¤Ï 1 Åٰʾå¥Ç¡¼¥¿¤ò ÆþÎϤ¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: replot (107), refresh (105)¡£·«¤êÊÖ¤·¤Þ ¤¹¤¬¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ò»È¤¦Êý¤¬¤¤¤¤¤Ç¤¹¡£

¶õ¤Î¥Õ¥¡¥¤¥ë̾ (' ') ¤Ï¡¢Ä¾Á°¤Î¥Õ¥¡¥¤¥ë̾¤¬ºÆ¤Ó»È¤ï¤ì¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢


     plot '¤¢¤ë/¤È¤Æ¤â/Ť¤/¥Õ¥¡¥¤¥ë̾' using 1:2, ” using 1:3, ” using 1:4

¤Î¤è¤¦¤Ê¤È¤­¤ËÊØÍø¤Ç¤¹¡£¤â¤·Æ±¤¸ plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢'-' ¤È ' ' ¤Îξ Êý¤ò»ÈÍѤ¹¤ë¤È¡¢¥¤¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤Î 2 ¤Ä¤Î½¸¹ç¤òÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¡¢°ì¤Ä ÌܤΤâ¤Î¤òºÆÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

99.3.10 ¥Ñ¥¤¥×¤Ë¤è¤ëÆþÎϥǡ¼¥¿ (piped-data)

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 ¥­¡¼¥ï¡¼¥É¤òÍѤ¤¤¿Ã±½ã ¤Ê¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Ç¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£

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'

99.3.11 Using

ºÇ¤â¤è¤¯»È¤ï¤ì¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î½¤¾þ»Ò¤Ï using ¤Ç¡¢¤³¤ì¤ÏÆþÎÏ¥Õ¥¡¥¤ ¥ë¤Î¤É¤Î¹Ô¤òÉÁ²è¤¹¤ë¤Î¤«¤ò»Ø¼¨¤·¤Þ¤¹¡£

½ñ¼°:


     plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}

³Æ <entry> ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î°ì¤Ä¤Î¥Õ¥£¡¼¥ë¥É¤òÁªÂò¤¹¤ë¤¿¤á¤Îñ¤Ê¤ëÎó ¤ÎÈֹ椫¡¢°ì¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ÎºÇ½é¤Î¹Ô¤ÎÎó¤Î¥é¥Ù¥ë¤Ë°ìÃפ¹¤ëʸ»úÎó¡¢¥«¥Ã ¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¡¢xticlabels(2) ¤Î¤è¤¦¤Ë¥«¥Ã¥³¤Ç°Ï¤Þ¤Ê¤¤ÆÃÊ̤ʴؿô¡¢¤Î ¤¤¤º¤ì¤«¤Ç¤¹¡£

¤½¤Î¥¨¥ó¥È¥ê¤¬¥«¥Ã¥³¤Ç°Ï¤Þ¤ì¤¿¿ô¼°¤Î¾ì¹ç¡¢N ÎóÌܤÎÃͤò»ØÄꤹ¤ë¤Î¤Ë´Ø¿ô column(N) ¤ò»ÈÍѤǤ­¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢column(1) ¤ÏÆɤ߹þ¤Þ¤ì¤¿ºÇ½é¤Î¹àÌܤò »²¾È¤·¡¢column(2) ¤Ï¼¡¤Î¹àÌÜ¡¢¤È¤¤¤Ã¤¿¶ñ¹ç¤Ç¤¹¡£column(1), column(2), ... ¤Îάµ­¤È¤·¤Æ¡¢ÆÃÊ̤ʵ­¹æ $1, $2, ... ¤ò»ÈÍѤǤ­¤Þ¤¹¡£

ÆÃÊ̤ʵ­¹æ $# ¤Ï¡¢¸½ºß¤ÎÆþÎϹԤÎÁ´Îó¿ô¤Èɾ²Á¤·¤Þ¤¹¤Î¤Ç¡¢column($#) ¤ä stringcolumn($#) ¤Ï¡¢Îó¿ô¤¬ÉÔÌÀ¤Ê¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¹Ô¤Ë¤è¤Ã¤Æ°Û¤Ê¤ë¸Ä¿ô¤Î Îó¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎϤξì¹ç¤Ç¤â¡¢É¬¤ººÇ½ªÎó¤ÎÆâÍƤòÊÖ¤·¤Þ¤¹¡£

´Ø¿ô valid(N) ¤Ç¡¢N ÈÖÌܤÎÎó¤¬Í­¸ú¤Ê¿ô»ú¤Ç¤¢¤ë¤«¤É¤¦¤«¥Æ¥¹¥È¤Ç¤­¤Þ¤¹¡£ ¤½¤ÎÎó¤ÎÃͤ¬·ç¤±¤Æ¤¤¤¿¤ê¡¢²ò¼á¤Ç¤­¤Ê¤«¤Ã¤¿¤ê¡¢NaN ¤Î¾ì¹ç¤Ï 0 ¤òÊÖ¤·¤Þ ¤¹¡£ ÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Î³ÆÎó¤Ë¡¢¥Ç¡¼¥¿¤ÎÃͤǤϤʤ¯¥é¥Ù¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¾ì ¹ç¡¢¤³¤Î¥é¥Ù¥ë¤òÆþÎÏÎó¤ÎÆÃÄê¤ä plot ¥¿¥¤¥È¥ë¤Ë»ÈÍѤǤ­¤Þ¤¹¡£´Ø¿ô column() ¤Ï¡¢ÎóÈÖ¹æ°Ê³°¤Ë¥é¥Ù¥ë¤ÇÆþÎÏÎó¤òÁªÂò¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¤¬°Ê²¼¤Î¤è¤¦¤Ê¾ì¹ç:


     Height    Weight    Age
     val1      val1      val1
     ...       ...       ...

°Ê²¼¤Î plot ¥³¥Þ¥ó¥É¤ÏƱ¤¸°ÕÌ£¤Ë¤Ê¤ê¤Þ¤¹:


     plot 'datafile' using 3:1, ” using 3:2
     plot 'datafile' using (column("Age")):(column(1)), \
                  ” using (column("Age")):(column(2))
     plot 'datafile' using "Age":"Height", ” using "Age":"Weight"

»ØÄêʸ»úÎ󤬴°Á´¤Ë°ìÃפ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤·¡¢Âçʸ»ú¾®Ê¸»ú¤â¶èÊ̤·¤Þ¤¹¡£ Îó¤Î¥é¥Ù¥ë¤ò plot ¥¿¥¤¥È¥ë¤Ë»È¤¦¤Ë¤Ï¡¢set key autotitle columnhead ¤È¤¹¤ë¤«¡¢¤Þ¤¿¤Ï¸ÄÊ̤˥¿¥¤¥È¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï´Ø¿ô columnhead(N) ¤ò »È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤Î 1...N ¤È¤¤¤¦¼ÂºÝ¤ÎÎó¤Ë²Ã¤¨¤Æ¡¢gnuplot ¤Ï´ÉÍý¾ðÊó ¤ò»ý¤Ä¤¤¤¯¤Ä¤«¤Î "µ¿»÷Îó" ¤òÄ󶡤·¤Þ¤¹¡£Î㤨¤Ð¡¢$0 ¤Þ¤¿¤Ï column(0) ¤Ï¡¢ ¥Ç¡¼¥¿½¸¹çÆâ¤Î¤½¤Î¥Ç¡¼¥¿¹Ô¤Î¹ÔÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£°Ê²¼»²¾È: pseudocolumns (99.3.11.3)¡£

<entry> ¤Ë²¿¤â½ñ¤«¤Ê¤±¤ì¤Ð¡¢¤½¤Î¥¨¥ó¥È¥ê¤Î¥ê¥¹¥È¤Î½ç¤Ë¥Ç¥Õ¥©¥ë¥È¤ÎÃͤ¬ »È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð using ::4 ¤Ï¡¢using 1:2:4 ¤È²ò¼á¤µ¤ì¤Þ¤¹¡£

using ¤Ë¤¿¤À°ì¤Ä¤Î¥¨¥ó¥È¥ê¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢¤½¤Î <entry> ¤Ï y ¤ÎÃÍ¤È ¤·¤Æ»È¤ï¤ì¡¢¥Ç¡¼¥¿ÅÀ¤ÎÈÖ¹æ (µ¿»÷Îó $0) ¤¬ x ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£Î㤨¤Ð "plot 'file' using 1" ¤Ï "plot 'file' using 0:1" ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£ using ¤Ë 2 ¤Ä¤Î¥¨¥ó¥È¥ê¤òÍ¿¤¨¤¿¾ì¹ç¡¢¤½¤ì¤é¤Ï x, y ¤È¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£ ¤µ¤é¤Ë¥¨¥ó¥È¥ê¤òÄɲ䷤ơ¢ÆþÎϤ«¤é¤Î¥Ç¡¼¥¿¤òÍøÍѤ¹¤ë¤è¤¦¤ÊÉÁ²è¥¹¥¿¥¤¥ë ¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set style (112.86), fit (88)¡£

99.3.11.1 Format

format ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤ò C ¥é¥¤¥Ö¥é¥ê´Ø¿ô 'scanf' ¤ËŬÍѤ·¤Æ¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¤Î³Æ¹Ô¤òÆɤߤޤ¹¡£¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢³Æ¹Ô¤Ï¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹ (¥¹¥Ú ¡¼¥¹¤ä¥¿¥Ö) ¤Ç¶èÀÚ¤é¤ì¤¿¥Ç¡¼¥¿¤ÎÎó (¥Õ¥£¡¼¥ë¥É) ¤«¤é¤Ê¤ë¤È¤ß¤Ê¤·¤Þ¤¹¤¬ °Ê²¼¤â»²¾È: datafile separator (112.23.5)¡£

'scanf' ´Ø¿ô¤Ç¤Ï¿§¡¹¤Ê¥Ç¡¼¥¿·Á¼°¤Î¿ôÃÍÆþÎϤ¬»È¤¨¤Þ¤¹¤¬¡¢gnuplot ¤ÏÁ´ ¤Æ¤ÎÆþÎϥǡ¼¥¿¤òÇÜÀºÅÙÉâÆ°¾®¿ô¤È¤ß¤Ê¤·¤Þ¤¹¤«¤é¡¢gnuplot ¤Ç¤Ï %lf ¤¬ËܼÁŪ¤ËÍ£°ì¤Î¿ôÃÍÆþÎÏ»ØÄê¡¢¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î½ñ¼°Ê¸»úÎó¤Ë¤Ï ¾¯¤Ê¤¯¤È¤â°ì¤Ä¡¢¤½¤·¤Æ 7 ¤Ä°Ê²¼¤Î¡¢¤½¤Î¤è¤¦¤ÊÆþÎÏ»ØÄê»Ò¤òÆþ¤ì¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£ 'scanf' ¤Ï¿ô¤È¿ô¤Î´Ö¤Ë¥Û¥ï¥¤¥È¥¹¥Ú¡¼¥¹¡¢¤¹¤Ê¤ï¤Á¶õÇò¡¢¥¿¥Ö (" \t")¡¢²þ¹Ô (" \n")¡¢¤Þ¤¿¤Ï²þ¥Ú¡¼¥¸ (" \f") ¤¬¤¢¤ë¤È´üÂÔ¤·¤Þ¤¹¡£¤½¤ì°Ê³°¤ÎÆþÎϤÏÌÀ¤é ¤«¤Ë¥¹¥­¥Ã¥×¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£

" \t", " \n", " \f" ¤ò»È¤¦¤È¤­¤Ïñ°ì°úÍÑÉä¤è¤ê¤à¤·¤íÆó½Å°úÍÑÉä¤ò»È¤¦¤Ù¤­ ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

99.3.11.2 Using ¤ÎÎã (using_examples)

¼¡¤ÎÎã¤Ï¡¢1 ÈÖÌܤΥǡ¼¥¿¤ËÂФ¹¤ë 2 ÈÖÌÜ¤È 3 ÈÖÌܤÎϤÎÃͤò plot ¤·¤Þ¤¹¡£ ½ñ¼°Ê¸»úÎó¤Ï¡¢³ÆÎó¥Ç¡¼¥¿¤¬¥¹¥Ú¡¼¥¹¶èÀÚ¤ê¤Ç¤Ê¤¯¡¢¥³¥ó¥Þ¶èÀÚ¤ê¤Ç¤¢¤ë¤³¤È ¤ò»Ø¼¨¤·¤Æ¤¤¤Þ¤¹¤¬¡¢Æ±¤¸¤³¤È¤¬ set datafile separator comma ¤ò»ØÄꤹ ¤ë¤³¤È¤Ç¤â²Äǽ¤Ç¤¹¡£


     plot 'file' using 1:($2+$3) '%lf,%lf,%lf'

¼¡¤ÎÎã¤Ï¡¢¤è¤êÊ£»¨¤Ê½ñ¼°»ØÄê¤Ç¥Ç¡¼¥¿¤ò¥Õ¥¡¥¤¥ë "MyData" ¤«¤éÆɤ߹þ¤ß ¤Þ¤¹¡£


     plot 'MyData' using "%*lf%lf%*20[^\n]%lf"

¤³¤Î½ñ¼°»ØÄê¤Î°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:


     %*lf        ¿ôÃͤò̵»ë
     %lf         ÇÜÀºÅÙÉâÆ°¾®¿ô¤òÆɤ߹þ¤à (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï x ¤ÎÃÍ)
     %*20[^\n]   20 ¸Ä¤Î²þ¹Ô°Ê³°¤Îʸ»ú¤ò̵»ë
     %lf         ÇÜÀºÅÙÉâÆ°¾®¿ô¤òÆɤ߹þ¤à (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï y ¤ÎÃÍ)

3 ¹à±é»»»Ò ?: ¤ò»È¤Ã¤Æ¥Ç¡¼¥¿¤ò¥Õ¥£¥ë¥¿¤¹¤ë°ì¤Ä¤Î·ÝÅö¤ò¾Ò²ð¤·¤Þ¤¹¡£


     plot 'file' using 1:($3>10 ? $2 : 1/0)

¤³¤ì¤Ï¡¢1 ÎóÌܤΥǡ¼¥¿¤ËÂФ·¤Æ¡¢3 ÎóÌܤΥǡ¼¥¿¤¬ 10 °Ê¾å¤Ç¤¢¤ë¤è¤¦¤Ê 2 ÎóÌܤΥǡ¼¥¿¤ò plot ¤·¤Þ¤¹¡£1/0 ¤Ï̤ÄêµÁÃͤǤ¢¤ê¡¢gnuplot ¤Ï̤Äê µÁ¤ÎÅÀ¤ò̵»ë¤¹¤ë¤Î¤Ç¡¢¤è¤Ã¤ÆŬÀڤǤʤ¤ÅÀ¤Ï±£¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤Þ¤¿¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ëÃÍ NaN ¤ò»È¤Ã¤Æ¤âƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¥«¥Ã¥³¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤Ê¤¤¸Â¤ê¤ÏÄê¿ô¼°¤òÎóÈÖ¹æ¤È¤·¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Î㤨¤Ð using 0+(Ê£»¨¤Ê¼°) ¤ÎÍͤʤ³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤Î¿ô¼°¤Ï¡¢ ¥«¥Ã¥³¤Ç¥¹¥¿¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¿ô¼°¤ÎÃͤ¬°ìÅÙɾ²Á¤µ¤ì¡¢¥«¥Ã¥³¤Ç¥¹¥¿¡¼¥È ¤·¤Æ¤¤¤ì¤Ð¸Ä¡¹¤Î¥Ç¡¼¥¿ÅÀ¤òÆɤ߹þ¤à¤¿¤á¤Ë¤½¤ÎÃͤ¬°ìÅÙɾ²Á¤µ¤ì¤ë¡¢¤È¤¤¤¦ ÅÀ¤¬½ÅÍפǤ¹¡£

»þ·ÏÎó¥Õ¥©¡¼¥Þ¥Ã¥È¥Ç¡¼¥¿¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î»þ´Ö¤Î¥Ç¡¼¥¿¤ÏÊ£¿ô¤ÎÎó¤Ë ÅϤ餻¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢Â¾¤Î¥Ç¡¼¥¿¤Î³«»Ï°ÌÃÖ¤ò·×»»¤¹¤ë¤È¤­¡¢ »þ´Ö¤Î¥Ç¡¼¥¿¤Ë¶õÇò¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢¥Ç¡¼¥¿ ¹Ô¤ÎºÇ½é¤ÎÍ×ÁǤ¬¥¹¥Ú¡¼¥¹¤¬Ëä¤á¹þ¤Þ¤ì¤¿»þ´Ö¥Ç¡¼¥¿¤Ç¤¢¤ë¤Ê¤é¤Ð¡¢y ¤ÎÃÍ¤Ï 3 ÎóÌܤÎÃͤȤ·¤Æ»ØÄꤵ¤ì¤ë¤Ù¤­¤Ç¤¹¡£

(a) plot 'file' ¤È¡¢(b) plot 'file' using 1:2¡¢¤½¤·¤Æ (c) plot 'file' using ($1):($2) ¤Ë¤ÏÈù̯¤Ê°ã¤¤¤¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£°Ê²¼»²¾È: missing (112.23.4)¡£

ºÇ½é¤Ëñ¤Ë


     plot 'file' using 1:2

¤È»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÂçÄñ¤Î¾ì¹ç¤É¤ó¤Ê¤Ë¥´¥ß¤Î¥Ç¡¼¥¿¤ò´Þ¤à¹Ô¤ò»ý¤Ä¥Õ¥¡¥¤¥ë ¤ò¤â plot ¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤É¤¦¤·¤Æ¤â¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë ʸ»úÎó¤ò»Ä¤·¤Æ¤ª¤­¤¿¤¤¤Ê¤é¤Ð¡¢¤½¤Î¥Æ¥­¥¹¥È¹Ô¤ÎÂè°ìÎó¤Ë¥³¥á¥ó¥Èʸ»ú (#) ¤òÃÖ¤¯Êý¤¬¤è¤ê°ÂÁ´¤Ç¤·¤ç¤¦¡£

99.3.11.3 µ¿»÷Îó (pseudocolumns)

plot ʸ¤Î using ¹àÌÜÆâ¤Î¼°¤Ç¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë¼ÂºÝ¤Î¥Ç¡¼¥¿ÃÍ ¤Ë²Ã¤¨¤Æ´ÉÍý¾ðÊó¤â»²¾È¤Ç¤­¡¢¤³¤ì¤é¤Ï "µ¿»÷Îó" (pseudocolumns) ¤Ë´Þ¤Þ¤ì ¤Æ¤¤¤Þ¤¹¡£


     column(0)   ¥Ç¡¼¥¿½¸¹çÆâ¤Ç¤Î³ÆÅÀ¤Î½çÈÖ¡£½çÈÖ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢¶õ
                 ¹Ô¤ä¥³¥á¥ó¥È¹Ô¤Ç¤Ê¤¤¹Ô¤ÇÁý¤¨¡¢2 ¹Ô¤ÎϢ³¤¹¤ë¶õ¹Ô¤Ç¥ê
                 ¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£Èó°ìÍÍ¤Ê matrix ¥Ç¡¼¥¿·Á¼°¤Ç¤Ï¡¢
                 column(0) ¤Ï³Æ matrix Í×ÁǤÎÀþ·Á½ç½ø¤Ë¤Ê¤ê¤Þ¤¹¡£
                 άµ­ $0 ¤â»ÈÍѲġ£
     column(-1)  ¤³¤ÎÈÖ¹æ¤Ï 0 ¤«¤é»Ï¤Þ¤ê¡¢1 ¹Ô¤Î¶õ¹Ô¤ÇÁý¤¨¡¢2 ¹Ô¤ÎÏ¢
                 ³¤¹¤ë¶õ¹Ô¤Ç¥ê¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢¹ÔÎ󡢤ޤ¿¤Ï³Ê
                 »Ò¾õ¥Ç¡¼¥¿Æâ¤Î¥Ç¡¼¥¿¹Ô¤ËÂбþ¤·¤Þ¤¹¡£¤Þ¤¿¡¢¥Ç¡¼¥¿½¸¹ç
                 Æâ¤ÎÊÌ¡¹¤ÎÀþʬ¤ä¿³Ñ·Á¤ò¶èÊ̤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£
     column(-2)  0 ¤«¤é»Ï¤Þ¤ê¡¢2 ¹Ô¤ÎϢ³¤¹¤ë¶õ¹Ô¤ÇÁý¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢
                 Ê£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤ò»ý¤Ä¥Õ¥¡¥¤¥ëÆâ¤Î¡¢¸½ºß¤Î¥Ç¡¼¥¿½¸¹ç
                 ¤Î index ÈÖ¹æ¤Ç¤¹¡£°Ê²¼»²¾È: `index`¡£
     column($#)  ÆÃÊ̤ʵ­¹æ $# ¤Ï¡¢Â¸ºß¤¹¤ëÁ´Îó¿ô¤Èɾ²Á¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢
                 ¤è¤Ã¤Æ column($#) ¤Ï¡¢¸½ºß¤ÎÆþÎϹԤκǽªÎó (ºÇ±¦Îó)
                 ¤ò»²¾È¤·¤Þ¤¹¡£Æ±ÍÍ¤Ë column($# - 1) ¤Ï¡¢ºÇ½ªÎó¤Î°ì¤Ä
                 ¼êÁ°¤ÎÎ󡢤ʤɤȤʤê¤Þ¤¹¡£

99.3.11.4 ÇÛÎó (arrays)

ÉÁ²è¤¹¤ë¥Ç¡¼¥¿¤¬ÇÛÎ󤫡¢¤Þ¤¿¤ÏÇÛÎóÃÍ´Ø¿ô¤Ç¤¢¤ë¾ì¹ç¡¢using »ØÄê¤ÎÃæ¤Î "Îó (column)" ¤Ï°Ê²¼¤Î¤è¤¦¤Ë²ò¼á¤·¤Þ¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È: arrays (15.8)¡£


      1 ÎóÌÜ    ÇÛÎó¤Îź»ú
      2 ÎóÌÜ    ÇÛÎó¤Î¿ôÃÍÍ×ÁǤμ¿ôÉôʬ¡¢¤Þ¤¿¤Ïʸ»úÎóÇÛÎó¤Îʸ»úÎóÃÍ
      3 ÎóÌÜ    ÇÛÎó¤Î¿ôÃÍÍ×ÁǤεõ¿ôÉôʬ

99.3.11.5 Key

¤¢¤ëÉÁ²è¥¹¥¿¥¤¥ë (ÎóÀѤ߾夲·¿¥Ò¥¹¥È¥°¥é¥à¤ä¥¯¥â¤ÎÁ㥰¥é¥Õ) ¤Ç¤Ï¡¢¥Ç¡¼ ¥¿Îó¤ÎÀèƬ¤«¤éÉÁ²è¥¿¥¤¥È¥ë¤òÀ¸À®¤¹¤ë¤³¤È¤¬Ìµ°ÕÌ£¤Ê¥ì¥¤¥¢¥¦¥È¤Ë¤Ê¤Ã¤Æ¤¤ ¤Þ¤¹¡£(using 2:3:xticlabels(1) ¤Î¤è¤¦¤Ë) ¥Ç¡¼¥¿Îó¤ÎÆâÍƤ«¤é¼´ÌÜÀ¹¤ê ¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¤³¤È¤â̵°ÕÌ£¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤é¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ç¤Ï¡¢ Âå¤ï¤ê¤Ë using 2:3:key(1) ¤Î·Á¼°¤ò»È¤Ã¤Æ¥Ç¡¼¥¿Îó¤Ë´Þ¤Þ¤ì¤ëʸ»úÎ󤫤é ËÞÎã (key) ¤ÎÉÁ²è¥¿¥¤¥È¥ë¤òÀ¸À®¤·¤Þ¤¹¡£Ä̾ï¤Ï¡¢¹Ô¤ÎÀèƬ¤ÎÂè 1 ÎóÌܤò¼è ¤ê¤Þ¤¹¡£spiderplot ¤ÇÄ󼨤µ¤ì¤Æ¤¤¤ëÎã¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

99.3.11.6 Xticlabels

¼´¤Î¹ï¤ß¤Î¸«½Ð¤· (ticlabel) ¤Ïʸ»úÎó´Ø¿ô¤Ë¤è¤Ã¤Æºî¤ë¤³¤È¤â¤Ç¤­¡¢¤½¤ì¤Ï Ä̾ï¤Ï°ú¿ô¤È¤·¤Æ¥Ç¡¼¥¿Î󤫤é¼èÆÀ¤·¤Þ¤¹¡£ºÇ¤âñ½ã¤Ê·Á¼°¤Ï¡¢¥Ç¡¼¥¿Îó¼«¿È ¤Îʸ»úÎó¤È¤·¤Æ¤ÎÍøÍѤǡ¢xticlabels(N) ¤Ï xticlabels(stringcolumn(N)) ¤Î¾Êά·Á¤È¤·¤Æ»È¤¨¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ï 3 ÎóÌܤÎÍ×ÁǤò x ¼´¤Î¹ï¤ß¤Î¸«½Ð¤·¤È ¤·¤Æ»ÈÍѤ·¤Þ¤¹¡£


     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" ¤«¤Î ¤¤¤º¤ì¤«¤È¤Ê¤ê¤Þ¤¹¡£

99.3.11.7 X2ticlabels

°Ê²¼»²¾È: plot using xticlabels (99.3.11.6)¡£

99.3.11.8 Yticlabels

°Ê²¼»²¾È: plot using xticlabels (99.3.11.6)¡£

99.3.11.9 Y2ticlabels

°Ê²¼»²¾È: plot using xticlabels (99.3.11.6)¡£

99.3.11.10 Zticlabels

°Ê²¼»²¾È: plot using xticlabels (99.3.11.6)¡£

99.3.12 Volatile

plot ¥³¥Þ¥ó¥É¤Î¥­¡¼¥ï¡¼¥É volatile ¤Ï¡¢ÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¥Õ¥¡¥¤¥ë¤«¤é °ÊÁ°¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤¬¡¢ºÆÆɤ߹þ¤ß»þ¤Ë¤ÏÍ­¸ú¤Ç¤Ï¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢replot ¥³¥Þ¥ó¥É¤ÎÂå¤ï¤ê¤Ë¡¢²Äǽ¤Ê¸Â¤ê refresh ¥³¥Þ¥ó¥É ¤ò»È¤¦¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£°Ê²¼»²¾È: refresh (105)¡£

99.4 ´Ø¿ôÉÁ²è (functions)

¥³¥Þ¥ó¥É plot, splot ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤ÎÉÁ²è¤À¤± ¤Ç¤Ê¤¯¡¢ÁȤ߹þ¤ß´Ø¿ô¤ä¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤òÉÁ²è¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£´Ø¿ô¤ÎÃÍ ¤Ï¡¢ÆÈΩ¤Ê¼´¤ÎÄ̾ï¤ÎÈϰϤËÅϤäƥǡ¼¥¿¥µ¥ó¥×¥ë¤ò¼è¤ë¤³¤È¤Çɾ²Á¤·¤Þ¤¹¡£ °Ê²¼»²¾È: set samples (112.83), set isosamples (112.35)¡£ Îã:


     approx(ang) = ang - ang**3 / (3*2)
     plot sin(x) title "sin(x)", approx(x) title "approximation"

´Ø¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤òÀßÄꤹ¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set style function (112.86.5)¡£ÁȤ߹þ¤ß´Ø¿ô¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: expressions functions (15.3)¡£¼«Á°¤Ç´Ø¿ô¤òÄêµÁ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: user-defined (15.7)¡£

99.5 ÇÞ²ðÊÑ¿ô¥â¡¼¥ÉÉÁ²è (parametric)

ÇÞ²ðÊÑ¿ô¥â¡¼¥É (set parametric) ¤Ç¤Ï¡¢plot ¤Ç¤Ï 2 ¤Ä¤Î¿ô¼°¤ÎÁȤò¡¢ splot ¤Ç¤Ï 3 ¤Ä¤Î¿ô¼°¤ÎÁȤòÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

Îã:


     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

°Ê²¼¤â»²¾È ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Î¥Ç¥â¡£

99.6 ÈÏ°Ï (ranges)

¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï¡¢¥³¥Þ¥ó¥É plot, splot ¤Î°ìÈֺǽé¤Î¹àÌܤȤ·¤Æ½ñ ¤¯¡¢¼´¤ÎÈϰϤΥª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Î¤ßÀâÌÀ¤·¤Þ¤¹¡£¤³¤ì¤ò»ØÄꤹ¤ë¤È¡¢¤½¤Î ÈϰϤϡ¢¤½¤ì°ÊÁ°¤Î¤É¤Î set range ¤Ë¤è¤ëÈϰϤÎÀ©¸Â¤è¤ê¤âÍ¥À褷¤Æ°·¤ï ¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É plot ¤ÎÊ̤ʾì½ê¤Ë»ØÄꤹ¤ë¡¢¸Ä¡¹¤ÎÉÁ²èÍ×ÁǤÎÈϰϤÎÀ© ¸Â¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È: sampling (99.7)¡£

½ñ¼°:


     [{<dummy-var>=}{{<min>}:{<max>}}]
     [{{<min>}:{<max>}}]

1 ¤ÄÌܤηÁ¼°¤ÎÈÏ°Ï»ØÄê¤ÏÆÈΩÊÑ¿ô¤ÎÈÏ°Ï (xrange¡¢¤Þ¤¿¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤Ç¤Î trange) ÍѤǡ¢2 ¤ÄÌܤηÁ¼°¤Ï½¾Â°ÊÑ¿ô¤ÎÈÏ°ÏÍѤǤ¹¡£¥ª¥×¥·¥ç¥ó¤Î <dummy-var> ¤ÇÆÈΩÊÑ¿ô¤Î¿·¤·¤¤Ì¾Á°¤òÍøÍѤǤ­¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ¿ô̾¤Ï set dummy ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹)¡£

ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ê¤±¤ì¤Ð¡¢ÈÏ°Ï»ØÄê¤Ï°Ê²¼¤Î½ç¤ËÍ¿¤¨¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó:


     plot [<xrange>][<yrange>][<x2range>][<y2range>] ...

ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ï¡¢ÈÏ°Ï»ØÄê¤Ï°Ê²¼¤Î½ç¤ËÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤± ¤Þ¤»¤ó:


     plot [<trange>][<xrange>][<yrange>][<x2range>][<y2range>] ...

°Ê²¼¤Î plot ¥³¥Þ¥ó¥É¤Ï¡¢trange ¤ò [-pi:pi], xrange ¤ò [-1.3:1.3], yrange ¤ò [-1:1] ¤ËÀßÄꤹ¤ëÎã¤Ç¤¹:


     plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2

* ¤Ï¡¢min (ºÇ¾®ÃÍ) ¤ä max (ºÇÂçÃÍ) ¤Ë¼«Æ°ÈÏ°Ï»ØÄê (autoscale) ¤Îµ¡Ç½ ¤ò»È¤¦¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£»ØÄê½çÈ֤Τ¿¤á¤À¤±¤ËɬÍפÊÈÏ°Ï»ØÄê¤Ë¤Ï¡¢¶õ¤Î ÈÏ°Ï [] ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

plot ¤ä splot ¤Î¥³¥Þ¥ó¥É¹Ô¤Ç»ØÄꤵ¤ì¤¿ÈϰϤϤ½¤Î¥°¥é¥Õ°ì¤Ä¤Ë¤Î¤ß±Æ ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤Î¸å¤Î¥°¥é¥Õ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈϰϤòÊѹ¹¤¹¤ë¤Ë¤Ï set xrange ¤ä set yrange ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

¥ê¥ó¥¯¤µ¤ì¤¿¼´¤ËÂФ·¤Æ¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç¤Î°ì»þŪ¤ÊÈÏ°Ï»ØÄê¤Î»ÈÍѤϡ¢ ´üÂÔ¤¹¤ë·ë²Ì¤òÀ¸¤Þ¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó (°Ê²¼»²¾È: set link (112.42))¡£

»þ´Ö¥Ç¡¼¥¿¤ËÂФ·¤Æ¤Ï¡¢ÈϰϤϡ¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤Î¤Ë»ÈÍѤ¹¤ë¤Î ¤ÈƱ¤¸½ñ¼°¤Ç¡¢°úÍÑÉä¤Ç°Ï¤ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set timefmt (112.96)¡£

Îã:

°Ê²¼¤Ï¸½ºß¤ÎÈϰϤò»ÈÍѤ·¤Þ¤¹:


     plot cos(x)

°Ê²¼¤Ï x ¤ÎÈϰϤΤߤλØÄê¤Ç¤¹:


     plot [-10:30] sin(pi*x)/(pi*x)

°Ê²¼¤Ï¾å¤ÈƱ¤¸¤Ç¤¹¤¬¡¢²¾ÊÑ¿ô¤È¤·¤Æ t ¤ò»È¤¤¤Þ¤¹:


     plot [t = -10 :30]  sin(pi*t)/(pi*t)

°Ê²¼¤Ï x ¤È y ¤ÎξÊý¤ÎÈϰϤλØÄê¤Ç¤¹:


     plot [-pi:pi] [-3:3]  tan(x), 1/x

°Ê²¼¤Ï¡¢y ¤ÎÈϰϤΤߤλØÄê¤Ç¤¹:


     plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)

°Ê²¼¤Ï x ¤ÎºÇÂçÃÍ¤È y ¤ÎºÇ¾®ÃͤΤߤλØÄê¤Ç¤¹¡£


     plot [:200] [-pi:]  $mydata using 1:2

°Ê²¼¤Ï x ¤ÎÈϰϤò»þ·ÏÎó¥Ç¡¼¥¿¤È¤·¤Æ»ØÄꤷ¤Æ¤¤¤Þ¤¹:


     set timefmt "%d/%m/%y %H:%M"
     plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'

99.7 ¥µ¥ó¥×¥ê¥ó¥° (sampling)

99.7.1 1 ¼¡¸µ¤Î¥µ¥ó¥×¥ê¥ó¥° (x ¤Þ¤¿¤Ï t ¼´) (1D sampling)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢·×»»Âоݤδؿô¤ËÂФ·¤Æ¡¢ÉÁ²èÈÏ°ÏÁ´ÂΤˤ錄¤Ã¤ÆɸËÜ (¥µ ¥ó¥×¥ë) ¤ò¼è¤ê¤Þ¤¹¡£¤³¤ÎÈϰϤϡ¢»öÁ°¤Ë¥³¥Þ¥ó¥É set xrange ¤ÇÀßÄꤹ¤ë ¤«¡¢plot ¥³¥Þ¥ó¥É¤Î°ìÈֺǽé¤Î¾ì½ê¤Ç x ¼´¤ÎÈÏ°Ï»ØÄê¤ò¤¹¤ë¤«¡¢¤Þ¤¿¤Ï¤½¤Î ¥°¥é¥Õ¤Î¤¹¤Ù¤Æ¤ÎÍ×ÁǤò´Þ¤àÈÏ°ÏÆâ¤Ë¥Ç¡¼¥¿Á´ÂΤ¬Æþ¤ë¤è¤¦¤Ë¼«Æ°½Ì¼Ü (autoscaling) ¤µ¤ì¤¿ x ¤ÎÈϰϤǤ¹¡£µ¿»÷¥Õ¥¡¥¤¥ë "+" ¤¬À¸À®¤¹¤ëɸËÜÅÀ¤Ï¡¢ t ¼´¤Î¸½ºß¤ÎÈÏ°ÏÁ´ÂΤËÅϤê¤Þ¤¹¤¬¡¢¤½¤ì¤Ï x ¼´¤ÎÈϰϤÈƱ¤¸¤Ç¤âƱ¤¸¤Ç¤Ê ¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£

¸Ä¡¹¤ÎÉÁ²èÍ×ÁÇËè¤ËÂФ·¡¢É¸ËÜÈϰϤò¤µ¤é¤ËÀ©¸Â¤·¤Æ³ä¤êÅö¤Æ¤ë¤³¤È¤â¤Ç¤­¤Þ ¤¹¡£

Îã:

°Ê²¼¤Ï¡¢x Á´ÂΤÎÈϰϤò 0 ¤«¤é 1000 ¤È¤·¤Æ¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¡¢2 ¤Ä¤Î´Ø¿ô¤òÁ´ÂΤÎÈϰϤΰìÉôʬ¤À¤±¤½¤ì¤¾¤ìÉÁ²è¤·¤Þ¤¹:


     set xrange [0:1000]
     plot 'datafile', [0:200] func1(x), [200:500] func2(x)

°Ê²¼¤Ï¡¢¾å¤È¤Û¤ÜƱÍͤǤ¹¤¬¡¢Á´ÂΤÎÈϰϤϥǡ¼¥¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤˤè¤Ã¤Æ·è Äꤷ¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢É¸Ëܲ½¤µ¤ì¤ë´Ø¿ô¤Ï¡¢Á´ÂΤ¬¥°¥é¥ÕÆâ¤Ë¼ý¤Þ¤ë¤«¤â¤·¤ì ¤Þ¤»¤ó¤·¡¢¼ý¤Þ¤é¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó:


     set autoscale x
     plot 'datafile', [0:200] func1(x), [200:500] func2(x)

°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¤¢¤¤¤Þ¤¤¤Ç¤¹¡£ÀèƬ¤ÎÈÏ°Ï [0:10] ¤Ï¡¢Â¿Ê¬ºÇ½é¤Î´Ø¿ô¤Îɸ Ëܲ½¤Î¤ß¤Ë¸þ¤±¤¿¤Î¤À¤È»×¤¤¤Þ¤¹¤¬¡¢¼ÂºÝ¤Ë¤Ï¡¢¥°¥é¥ÕÁ´ÂΤËŬÍѤµ¤ì¡¢»öÁ° ¤Î xrange ¤ÎÄêµÁ¤â̵»ë¤µ¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹:


     set xrange [0:50]
     plot [0:10] f(x), [10:20] g(x), [20:30] h(x)

¾å¤ÎÎã¤Î¤¢¤¤¤Þ¤¤¤µ¤ò½ü¤¯¤¿¤á¤Ë¤Ï¡¢¥­¡¼¥ï¡¼¥É sample ¤òÁÞÆþ¤¹¤ë¤³¤È¤Ç [0:10] ¤¬¼´¤ÎÈϰϤǤϤʤ¯É¸ËÜÈϰϤǤ¢¤ë¤³¤È¤ò»Ø¼¨¤¹¤ë¤«¡¢¤Þ¤¿¤ÏÈÏ°Ï»Ø ÄêÆâ¤Ë 2 ÈÖÌܤΥ³¥í¥ó¤Ë³¤¯É¸ËÜÁýʬ¥Õ¥£¡¼¥ë¥É¤òÄɲ乤뤳¤È¤Ç¤¹¡£¸å¼Ô ¤Ï¡¢¼´ÈϰϤȤ·¤Æ¤Ï´°Á´¤ÊÈÏ°Ï»ØÄê [min:max:increment] ¤Ï²ò¼á¤µ¤ì¤Ê¤¤¤¿ ¤á¤Ëµ¡Ç½¤·¤Þ¤¹¡£Áýʬ¥Õ¥£¡¼¥ë¥É¤¬¶õ¤Î¾ì¹ç¤Ï¡¢Áýʬ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î (max-min) ¤òɸËÜÅÀ¿ô¤Ç³ä¤Ã¤¿ÃͤȤʤꡢ¤è¤Ã¤Æ°Ê²¼¤Î 3 ¤Ä¤ÎÊѼï¤ÏƱ¤¸·ë ²Ì¤òÀ¸¤¸¤Þ¤¹¡£


     set samples 100
     plot sample [0:10]     f(x), [10:20] g(x), [20:30] h(x)
     plot        [0:10:0.1] f(x), [10:20] g(x), [20:30] h(x)
     plot        [0:10:]    f(x), [10:20] g(x), [20:30] h(x)

°Ê²¼¤ÎÎã¤Ï¡¢3 ¼¡¸µ¥°¥é¥Õ¤Ë¤é¤»¤ó¤Î¶ÊÀþ¤òÉÁ¤¯°ì¤Ä¤ÎÊýË¡¤òÄ󼨤·¤Þ¤¹:


     set xrange [-2:2]; set yrange [-2:2]
     set angle degrees
     splot [phi=1:720:2] '+' using (cos(phi)):(sin(phi)):(phi)

99.7.2 2 ¼¡¸µ¤Î¥µ¥ó¥×¥ê¥ó¥° (u ¤È v ¼´) (2D sampling)

·×»»¤¹¤ë´Ø¿ô¤äµ¿»÷¥Õ¥¡¥¤¥ë '++' ¤ËÂФ·¤ÆÀ¸À®¤¹¤ë¥Ç¡¼¥¿¤Ï¡¢u, v ¼´¤Ë±è ¤Ã¤ÆɸËܲ½ (¥µ¥ó¥×¥ê¥ó¥°) ¤ò¹Ô¤¤¤Þ¤¹¡£°Ê²¼»²¾È: special-filenames ++ (99.3.9)¡£ 2 ¼¡¸µ¤Î¥µ¥ó¥×¥ê¥ó¥°¤Ï plot, splot ¥³¥Þ¥ó¥É¤Ç»ÈÍѤǤ­¤Þ¤¹¡£

°Ê²¼¤Ï¡¢2 ¼¡¸µ¤Î plot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë 2 ¼¡¸µ¥µ¥ó¥×¥ê¥ó¥°¤ÎÎã¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë with vectors ¤Çɽ¼¨¤µ¤ì¤ë¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£ °Ê²¼»²¾È: vectors (68)¡£


    set urange [ -2.0 : 2.0 ]
    set vrange [ -2.0 : 2.0 ]
    plot '++' using ($1):($2):($2*0.4):(-$1*0.4) with vectors

°Ê²¼¤Ï 3 ¼¡¸µ¤Î splot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë 2 ¼¡¸µ¥µ¥ó¥×¥ê¥ó¥°¤ÎÎã¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢sampling.dem ¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤ë¤â¤Î¤Ë»÷¤¿¥³¥Þ¥ó¥ÉÎó¤Ç¤¹¡£¤³¤Î 2 ¤Ä¤Î¶ÊÌ̤ϡ¢À¸À®¤µ¤ì¤ë¥°¥é¥Õ¤ÎÈÏ°ÏÁ´ÂΤè¤ê¤â¶¹¤¤ u, v ¤ÎÈϰϤÇɸËÜ ²½¤ò¹Ô¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£


    set title "3D sampling range distinct from plot x/y range"
    set xrange [1:100]
    set yrange [1:100]
    splot sample [u=30:70][v=0:50] '++' using 1:2:(u*v) lt 3, \
          [u=40:80][v=30:60] '++' using (u):(v):(u*sqrt(v)) lt 4

u, v ¤Î¥µ¥ó¥×¥ê¥ó¥°¤ÎÈÏ°Ï»ØÄê¤Ë¤Ï¡¢¥µ¥ó¥×¥ê¥ó¥°¥Ç¡¼¥¿¤Î¿ô¤È¥¹¥Ú¡¼¥¹¤ò À©¸æ¤¹¤ë¡¢ÌÀ¼¨Åª¤Ê¥µ¥ó¥×¥ê¥ó¥°´Ö³Ö¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹:


    splot [u=30:70:1][v=0:50:5] '++' using 1:2:(func($1,$2))

99.8 Plot ¥³¥Þ¥ó¥É¤Î for ¥ë¡¼¥× (for loops in plot command)

¿¤¯¤ÎƱÅù¤Î¥Õ¥¡¥¤¥ë¤ä´Ø¿ô¤òƱ»þ¤ËÉÁ²è¤¹¤ë¾ì¹ç¤Ï¡¢¤½¤ì¤¾¤ì¤Î plot ¥³¥Þ ¥ó¥É¤Î·«¤êÊÖ¤· (iteration) ¤Ç¤½¤ì¤ò¹Ô¤¦¤Î¤¬ÊØÍø¤Ç¤¹¡£

½ñ¼°:


     plot for [<variable> = <start> : <end> {:<increment>}]
     plot for [<variable> in "string of words"]

·«¤êÊÖ¤·¤ÎŬÍÑÈÏ°Ï (scope) ¤Ï¡¢¼¡¤Î¥³¥ó¥Þ (,) ¤«¥³¥Þ¥ó¥É¤Î½ª¤ï¤ê¡¢¤Î¤¤ ¤º¤ì¤«Àè¤Ë¸½¤ì¤¿¤È¤³¤í¤Þ¤Ç¤Ç¤¹¡£¤¿¤À¤·¡¢ÉÁ²è¤¹¤ë¹àÌܤÎÁ°¤ËÄêµÁ¼° (Ê£¿ô ¤â²Ä) ¤¬Ê¤ó¤Ç¤¤¤ë¾ì¹ç¤Ï¡¢¥³¥ó¥Þ¤¬´Ö¤ËÆþ¤Ã¤Æ¤¤¤Æ¤â¤½¤ÎÎã³°¤È¤Ê¤ê¤Þ¤¹¡£ ·«¤êÊÖ¤·¤ÏÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤Ïµ¡Ç½¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À ¤µ¤¤¡£

Îã:


     plot for [j=1:3] sin(j*x)

Îã:


     plot for [dataset in "apples bananas"] dataset."dat" title dataset

¤³¤ÎÎã¤Ç¤Ï¡¢·«¤êÊÖ¤·¤Ï¥Õ¥¡¥¤¥ë̾¤ÈÂбþ¤¹¤ë¥¿¥¤¥È¥ë¤ÎÀ¸À®¤ÎξÊý¤Ç»È¤ï¤ì ¤Æ¤¤¤Þ¤¹¡£

Îã:


     file(n) = sprintf("dataset_%d.dat",n)
     splot for [i=1:10] file(i) title sprintf("dataset %d",i)

¤³¤ÎÎã¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤ÇÀ¸À®¤µ¤ì¤ëʸ»úÎóÃÍ´Ø¿ô¤òÄêµÁ¤·¡¢¤½¤Î¤è¤¦¤Ê 10 ¸Ä ¤Î¥Õ¥¡¥¤¥ë¤òƱ»þ¤ËÉÁ²è¤·¤Þ¤¹¡£·«¤êÊÖ¤·¤ÎÊÑ¿ô (¤³¤ÎÎã¤Ç¤Ï 'i') ¤Ï°ì¤Ä¤Î À°¿ô¤È¤·¤Æ°·¤ï¤ì¡¢¤½¤ì¤ò 2 Åٰʾå»ÈÍѤǤ­¤Þ¤¹¡£

Îã:


     set key left
     plot for [n=1:4] x**n sprintf("%d",n)

¤³¤ÎÎã¤Ï¡¢´Ø¿ô¤ÎÁȤòÉÁ²è¤·¤Þ¤¹¡£

Îã:


     list = "apple banana cabbage daikon eggplant"
     item(n) = word(list,n)
     plot for [i=1:words(list)] item(i).".dat" title item(i)
     list = "new stuff"
     replot

¤³¤ÎÎã¤Ç¤Ï¡¢¥ê¥¹¥È¤Ë½¾¤Ã¤Æ³Æ¥¹¥Æ¥Ã¥×¤¬¿Ê¹Ô¤·¡¢¤½¤Î³Æ¹àÌܤËÂФ·¤Æ°ì¤Ä¤Î ÉÁ²è¤¬¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤Î³Æ¹àÌܤÏưŪ¤Ë¼èÆÀ¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¥ê¥¹¥È¤òÊѹ¹ ¤·¡¢¤½¤Î¤Þ¤Þ replot ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:


     list = "apple banana cabbage daikon eggplant"
     plot for [i in list] i.".dat" title i
     list = "new stuff"
     replot

¤³¤ÎÎã¤Ï¡¢À°¿ô¤Î·«¤êÊÖ¤·ÊÑ¿ô¤Ç¤Ï¤Ê¤¯¡¢Ê¸»úÎó¤Î·«¤êÊÖ¤·ÊÑ¿ô·Á¼°¤òÍѤ¤¤Æ ¤¤¤ë¤³¤È°Ê³°¤ÏÁ°¤ÎÎã¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£

<end> ¤ÎÀ°¿ô¤ÎÂå¤ï¤ê¤Ëµ­¹æ * ¤ò»ÈÍѤ¹¤ì¤Ð¡¢·«¤êÊÖ¤·¤Ï¤¹¤Ù¤Æ¤ÎÍ­¸ú¤Ê¥Ç ¡¼¥¿¤¬¤Ê¤¯¤Ê¤ë¤Þ¤Ç¤Î·«¤êÊÖ¤·¤È¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢³Æ¹Ô¤Ë´Þ¤Þ¤ì¤ë¤¹¤Ù¤Æ¤Î Îó¤Î½èÍý¡¢¤¢¤ë¤¤¤Ï¥Õ¥¡¥¤¥ëÆâ¤Î¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¥»¥Ã¥È (2 ¹Ô¤Î¶õ¹Ô¤Ç¶èÀÚ¤é ¤ì¤ë) ¤Î½èÍý¡¢»ØÄê¤ËÅö¤Æ¤Ï¤Þ¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤Ê¤É¤ò°ìÅ٤˽èÍý¤¹¤ë¤Î¤Ë ÊØÍø¤Ç¤¹¡£

Îã:


     plot for [file in "A.dat B.dat"] for [column=2:*] file using 1:column
     splot for [i=0:*] 'datafile' index i using 1:2:3 with lines
     plot for [i=1:*] file=sprintf("File_%03d.dat",i) file using 2 title file

·Ù¹ð: ¤³¤ÎºÇ½é¤ÎÎã¤Î¤è¤¦¤Ë¡¢·«¤êÊÖ¤·¤Ï¤«¤Ã¤³¤Ê¤·¤Î·Á¤Ç¤âÆþ¤ì»Ò¤Ë¤Ç¤­¤Þ¤¹¡£¤· ¤«¤·¤«¤Ã¤³¤Î¤Ê¤¤·«¤êÊÖ¤·¤ò¾¤Î¤«¤Ã¤³¤Î¤Ê¤¤·«¤êÊÖ¤·¤ÎÃæ¤ËÆþ¤ì»Ò¤Ë¤¹¤ë¤Î ¿ʬͭ±×¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¥Ç¡¼¥¿¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ëξ¼Ô¤¬Æ± »þ¤Ë½ªÎ»¤·¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¹¡£gnuplot ¤Ï¤³¤ì¤¬µ¯¤­¤ë¤È·Ù¹ð¤òȯ¤·¤Þ¤¹¡£

99.9 Title

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï³Æ¶ÊÀþ¤Ï¡¢Âбþ¤¹¤ë´Ø¿ô¤ä¥Õ¥¡¥¤¥ë̾¤Ç¥­¡¼¤ÎÃæ¤Ë°ìÍ÷ɽ¼¨¤µ ¤ì¤Þ¤¹¤¬¡¢plot ¤Î¥ª¥×¥·¥ç¥ó title ¤ò»È¤¦¤³¤È¤Ç¡¢ÌÀ¼¨Åª¤Ê¥¿¥¤¥È¥ë¤òÍ¿ ¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     title <text> | notitle [<ignored text>]
     title columnheader | title columnheader(N)
           {at {beginning|end}} {{no}enhanced}

¤³¤³¤Ç <text> ¤Ï¡¢°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎ󤫡¢Ê¸»úÎó¤Èɾ²Á¤µ¤ì¤ë¼°¤Î¤¤¤º ¤ì¤«¤Ç¤¹¡£°úÍÑÉä¤Ï¥­¡¼¤Ë¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£

ÆþÎϥǡ¼¥¿¤ÎÎó¤ÎºÇ½é¤Î¹àÌÜ (¤¹¤Ê¤ï¤ÁÎó¤ÎÀèƬ) ¤òʸ»úÎó¥Õ¥£¡¼¥ë¥É¤È²ò¼á ¤·¡¢¤½¤ì¤ò¥­¡¼¥¿¥¤¥È¥ë¤È¤·¤ÆÍøÍѤ¹¤ë¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: datastrings (12)¡£¤³¤ì¤Ï¡¢set key autotitle columnhead ¤ò»ØÄꤹ¤ì¤Ð¥Ç¥Õ ¥©¥ë¥È¤ÎµóÆ°¤È¤Ê¤ê¤Þ¤¹¡£

¶ÊÀþ¥¿¥¤¥È¥ë¤È¥µ¥ó¥×¥ë¤ÏͽÌó¸ì notitle ¤ò»È¤¦¤³¤È¤Ç¥­¡¼¤«¤éºï½ü¤Ç¤­ ¤Þ¤¹¡£²¿¤â¤Ê¤¤¥¿¥¤¥È¥ë (title ' ') ¤Ï notitle ¤ÈƱ¤¸°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£ ¥µ¥ó¥×¥ë¤À¤±¤¬Íߤ·¤¤¤È¤­¤Ï¡¢°ì¤Ä°Ê¾å¤Î¶õÇò¤ò¥¿¥¤¥È¥ë¤Î¸å¤í¤ËÆþ¤ì¤Æ¤¯ ¤À¤µ¤¤ (tilte ' ')¡£notilte ¤Î¸å¤í¤Ëʸ»úÎó¤ò¤Ä¤±¤¿¾ì¹ç¡¢¤½¤Îʸ»úÎó ¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£

key autotitles ¤¬ÀßÄꤵ¤ì¤Æ (¥Ç¥Õ¥©¥ë¥È)¡¢¤«¤Ä title ¤â notitle ¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤Ï plot ¥³¥Þ¥ó¥É¾å¤Ë¤¢¤ë´Ø¿ô̾ ¤«¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë̾¤Ë¤Ê¤ê¤Þ¤¹¡£¥Õ¥¡¥¤¥ë̾¤Î¾ì¹ç¤Ï¡¢»ØÄꤵ¤ì¤ëǤ°Õ¤Î¥Ç¡¼ ¥¿¥Õ¥¡¥¤¥ë½¤¾þ»Ò¤â¤½¤Î¥Ç¥Õ¥©¥ë¥È¥¿¥¤¥È¥ë¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£

°ÌÃ֤䥿¥¤¥È¥ë¤Î°ÌÃÖ·¤¨¤Ê¤É¤ÎËÞÎã¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢set key ¤ÇÀ©¸æ¤Ç¤­ ¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É at ¤Ë¤è¤ê¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¡¢¼«Æ°Åª¤Ëºî¤é¤ì¤ë key ¤ÎÈ¢¤Î ³°¤Ë¤Ç¤âÃÖ¤¯¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£at {beginning|end} ¤ò»ÈÍѤ· ¤¿¾ì¹ç¤Ï¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¥°¥é¥Õ¤Î¶ÊÀþ¼«¿È¤ÎľÁ°¡¢¤¢¤ë¤¤¤Ïľ¸å¤ËÃÖ¤­¤Þ ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢with lines ¤ÇÉÁ²è¤¹¤ë¾ì¹ç¤ÏÍ­ÍѤǤ¹¤¬¡¢Â¾¤ÎÉÁ ²è¥¹¥¿¥¤¥ë¤Ç¤Ï̵°ÕÌ£¤Ç¤¹¡£

at <x-position>,<y-position> ¤Î·Á¼°¤ò»ÈÍѤ¹¤ì¤Ð¡¢¶ÊÀþ¤Î¥¿¥¤¥È¥ë¤ò¥Ú ¡¼¥¸Æâ¤ÎǤ°Õ¤Î°ÌÃÖ¤ËÃÖ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î°ÌÃÖ»ØÄê¤Ï ¥¹¥¯¥ê¡¼¥óºÂɸ¤È²ò¼á¤·¤Þ¤¹¡£Î㤨¤Ð at 0.5, 0.5 ¤Ï¡¢¥°¥é¥Õ¤Î¼´¤Ë½Ì¼Ü ¤ä¶­³¦¤Ë¤Ï´Ø·¸¤Ê¤¯¡¢¾ï¤Ë¥¹¥¯¥ê¡¼¥ó¤Î¤É¿¿¤óÃæ¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤ÎÊýË¡¤ÇÇÛ ÃÖ¤¹¤ë¥¿¥¤¥È¥ë¤Î½ñ¼°¤Ï¡¢key ¤Î¥ª¥×¥·¥ç¥ó»ØÄê¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤¹¡£°Ê²¼»²¾È: set key (112.39)¡£

Îã:

°Ê²¼¤Ï y=x ¤ò¥¿¥¤¥È¥ë 'x' ¤Çɽ¼¨¤·¤Þ¤¹:


     plot x

°Ê²¼¤Ï¡¢x ¤Î 2 ¾è¤ò¥¿¥¤¥È¥ë "x^2" ¤Ç¡¢¥Õ¥¡¥¤¥ë "data.1" ¤ò¥¿¥¤¥È¥ë "measured data" ¤Çɽ¼¨¤·¤Þ¤¹:


     plot x**2 title "x^2", 'data.1' t "measured data"

°Ê²¼¤Ï¡¢¥Õ¥¡¥¤¥ë¤ÎÀèƬ¹Ô¤Î³ÆÎó¤Ë¥¿¥¤¥È¥ë¤ò´Þ¤àÊ£¿ôÎó¤Î¥Ç¡¼¥¿¤òÉÁ²è¤·¤Þ ¤¹¡£³Æ¥¿¥¤¥È¥ë¤Ï¡¢ÆÈΩ¤·¤¿ËÞÎã¤Ç¤Ï¤Ê¤¯¡¢Âбþ¤¹¤ë¶ÊÀþ¤Î¸å¤í¤ËÃÖ¤­¤Þ¤¹:


     unset key
     set offset 0, graph 0.1
     plot for [i=1:4] 'data' using i with lines title columnhead at end

°Ê²¼¤Ï¡¢2 ¤Ä¤ÎÊÌ¡¹¤Î¥°¥é¥Õ¤Î key ¤Î¾ì½ê¤ò 1 ²Õ½ê¤Ë¤·¤Þ¤¹:


     set key Left reverse
     set multiplot layout 2,2
     plot sin(x) with points pt 6 title "Left plot is sin(x)" at 0.5, 0.30
     plot cos(x) with points pt 7 title "Right plot is cos(x)" at 0.5, 0.27
     unset multiplot

99.10 With

´Ø¿ô¤ä¥Ç¡¼¥¿¤Îɽ¼¨¤Ë¤Ï¤¿¤¯¤µ¤ó¤Î¥¹¥¿¥¤¥ë¤Î¤¦¤Á¤Î°ì¤Ä¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥­¡¼¥ï¡¼¥É with ¤¬¤½¤ÎÁªÂò¤Î¤¿¤á¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

½ñ¼°:


     with <style> { {linestyle | ls <line_style>}
                    | {{linetype  | lt <line_type>}
                       {linewidth | lw <line_width>}
                       {linecolor | lc <colorspec>}
                       {pointtype | pt <point_type>}
                       {pointsize | ps <point_size>}
                       {arrowstyle | as <arrowstyle_index>}
                       {fill | fs <fillstyle>} {fillcolor | fc <colorspec>}
                       {nohidden3d} {nocontours} {nosurface}
                       {palette}}
                  }

¤³¤³¤Ç¡¢<style> ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«:


    lines        dots       steps     vectors      yerrorlines
    points       impulses   fsteps    xerrorbar    xyerrorbars
    linespoints  labels     histeps   xerrorlines  xyerrorlines
    financebars  surface    arrows    yerrorbar    parallelaxes

¤Þ¤¿¤Ï¡¢


    boxes         boxplot        ellipses       histograms  rgbalpha
    boxerrorbars  candlesticks   filledcurves   image       rgbimage
    boxxyerror    circles        fillsteps      pm3d        polygons
    isosurface    zerrorfill

¤Þ¤¿¤Ï


    table         mask

ºÇ½é¤Î¥°¥ë¡¼¥×¤Î¥¹¥¿¥¤¥ë¤Ï¡¢Àþ¡¢ÅÀ¡¢Ê¸»ú¤Î°À­¤ò»ý¤Á¡¢Âè 2 ¤Î¥°¥ë¡¼¥× ¤Î¥¹¥¿¥¤¥ë¤Ï¡¢¤µ¤é¤ËÅɤêÄÙ¤·Â°À­¤â»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: fillstyle (112.86.4)¡£ ¤µ¤é¤Ë¥µ¥Ö¥¹¥¿¥¤¥ë¤ò»ý¤Ä¥¹¥¿¥¤¥ë¤â¤¢¤ê¤Þ¤¹¡£¸Ä¡¹¤Î¥¹¥¿¥¤¥ë¤Î¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï¡¢°Ê²¼»²¾È: plotting styles (II)¡£ ºÇ¸å¤ÎÆÃÊ̤ʥ¹¥¿¥¤¥ë 2 ¤Ä¤Ï¡¢¤¹¤°¤ËÉÁ²è¤¹¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼ »²¾È: set table (112.88), with mask (57)¡£¥¹¥¿¥¤¥ë table ¤Ï¡¢É½·Á¼°¤Î½ÐÎϤò¥Æ ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤«¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Î·Á¤ÇÀ¸À®¤·¤Þ¤¹¡£¥¹¥¿¥¤¥ë¤¬ with mask ¤Ç¤¢¤ë plot ¥³¥Þ¥ó¥É¤ÎÍ×ÁǤϡ¢Â¿³Ñ·ÁÎΰè¤Î½¸¹ç¤òÄêµÁ¤·¡¢¤½¤ì¤Ï¤½¤Î plot ¥³¥Þ¥ó¥É¤Î¤½¤Î¸å¤Ë³¤¯Í×ÁǤò¥Þ¥¹¥¯¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤Ï¡¢set style function ¤È set style data ¤ÇÁª Âò¤Ç¤­¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤ì¤¾¤ì¤Î´Ø¿ô¤ä¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ï¡¢»È¤¦¤³¤È¤¬¤Ç¤­¤ë·¿¤Î ºÇÂç¿ô¤Ë㤹¤ë¤Þ¤Ç°Û¤Ê¤ëÀþ¼ï¡¢ÅÀ¼ï¤ò»È¤¤¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎüËöÍѥɥ饤¥Ð¤Ï ºÇÄã 6 ¤Ä¤Î°Û¤Ê¤ëÅÀ¼ï¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Æ¡¢¤â¤·¤¿¤¯¤µ¤óÍ׵ᤵ¤ì¤¿¾ì¹ç¡¢ ¤½¤ì¤é¤ò½ç¤ËºÆÍøÍѤ·¤Æ¤¤¤­¤Þ¤¹¡£»ÈÍÑÃæ¤Î½ÐÎÏ·Á¼°¤Ç¤ÎÀþ¼ï¡¢ÅÀ¼ï¤Î½¸¹çÁ´ ÂΤò¸«¤¿¤±¤ì¤Ð¡¢test ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£

°ì¤Ä¤ÎÉÁ²è¤ÇÀþ¼ï¤äÅÀ¼ï¤òÁª¤Ó¤¿¤¤¤Ê¤é¤Ð¡¢<line_type> ¤ä <point_type> ¤ò »ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é¤ÎÃͤϡ¢¤½¤ÎÉÁ²è¤Ç»È¤ï¤ì¤ëÀþ¼ï¤äÅÀ¼ï¤ò»ØÄꤹ¤ë Àµ¤ÎÀ°Äê¿ô (¤Þ¤¿¤Ï¿ô¼°) ¤Ç¤¹¡£»ÈÍѤ¹¤ëüËö¤Ç»È¤¨¤ëÀþ¼ï¡¢ÅÀ¼ï¤òɽ¼¨¤¹¤ë ¤Ë¤Ï test ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

ÉÁ²è¤ÎÀþ¤ÎÉý¤äÅÀ¤ÎÂ礭¤µ¤Ï <line_width> ¤ä <point_size> ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ ¤³¤ì¤é¤Ï¤½¤Î³Æ¡¹¤ÎüËö¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÂФ¹¤ëÁêÂÐŪ¤ÊÃͤȤ·¤Æ»ØÄꤷ¤Þ ¤¹¡£ÅÀ¤ÎÂ礭¤µ¤ÏÁ´ÂΤËÄÌÍѤ¹¤ë¤è¤¦¤ËÊѹ¹¤Ç¤­¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set pointsize (112.73)¡£¤·¤«¤·¡¢¤³¤³¤Ç¥»¥Ã¥È¤µ¤ì¤ë <point_size> ¤È¡¢ set pointsize ¤Ç¥»¥Ã¥È¤µ¤ì¤ëÂ礭¤µ¤Ï¡¢¤¤¤º¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Î¥Ý¥¤¥ó¥È¥µ ¥¤¥º¤Ë³Ý¤±¤é¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤¹¤Ê¤ï¤Á¡¢¤½¤ì¤é¤Î¸ú²Ì¤ÏÎßÀÑ¤Ï ¤·¤Þ¤»¤ó¡£Î㤨¤Ð¡¢set pointsize 2; plot x with points ps 3 ¤Ï¡¢¥Ç¥Õ ¥©¥ë¥È¤Î¥µ¥¤¥º¤Î 3 ÇܤǤ¢¤Ã¤Æ¡¢6 ÇܤǤϤ¢¤ê¤Þ¤»¤ó¡£

¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î°ìÉôʬ¡¢¤¢¤ë¤¤¤Ï³Æ plot ¤Ë¤ª¤¤¤Æ pointsize variable ¤È¤¤¤¦»ØÄê¤â²Äǽ¤Ç¤¹¡£¤³¤Î¾ì¹ç¡¢ÆþÎϤˤÏÄɲäΠ1 Îó¤¬Í׵ᤵ¤ì¤Þ¤¹¡£Îã ¤¨¤Ð 2D ÉÁ²è¤Ç¤Ï 3 Îó¡¢3D ÉÁ²è¤Ç¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬Íפˤʤê¤Þ¤¹¡£¸Ä¡¹ ¤ÎÅÀ¤Î¥µ¥¤¥º¤Ï¡¢Á´ÂΤòÄ̤·¤Æ¤Î pointsize ¤Ë¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤ÎÆþÎÏ ¤Ë¤è¤ëÃͤò¤«¤±¤¿¤â¤Î¤È¤·¤Æ·èÄꤵ¤ì¤Þ¤¹¡£

set style line ¤ò»È¤Ã¤ÆÀþ¼ï/ÀþÉý¡¢ÅÀ¼ï/ÅÀÉý¤ÎÁȤòÄêµÁ¤¹¤ì¤Ð¡¢¤½¤Î¥¹ ¥¿¥¤¥ë¤ÎÈÖ¹æ¤ò <line_style> ¤Ë¥»¥Ã¥È¤¹¤ë¤³¤È¤Ç¤½¤ì¤é¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ ¤¹¡£

2 ¼¡¸µ¡¢3 ¼¡¸µÎ¾Êý¤ÎÉÁ²è¤Ç (plot ¤È splot ¥³¥Þ¥ó¥É)¡¢»öÁ°¤Ë¥³¥Þ¥ó ¥É set palette ¤ÇÀßÄꤷ¤¿³ê¤é¤«¤Ê¥Ñ¥ì¥Ã¥È¤«¤é¤Î¿§¤ò»È¤¨¤Þ¤¹¡£¿§¤ÎÃÍ ¤Ï¡¢ÅÀ¤Î z ºÂɸ¤ÎÃͤ«¡¢¤Þ¤¿¤Ï using ¤Ë¤è¤ë¥ª¥×¥·¥ç¥ó¤ÎÄɲÃÎó¤ÇÍ¿¤¨¤ë ¸ÄÊ̤ο§ºÂɸ¤ËÂбþ¤·¤Þ¤¹¡£¿§¤ÎÃͤϡ¢¾®¿ôÃÍ (palette frac) ¤«¡¢¤Þ¤¿¤Ï ¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ÎÈϰϤØÂбþ¤Å¤±¤é¤ì¤¿ºÂɸÃÍ (palette ¤« palette z) ¤Î¤¤¤º¤ì¤«¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1), set palette (112.67), linetypes (20)¡£

¥­¡¼¥ï¡¼¥É nohidden3d ¤Ï¡¢splot ¥³¥Þ¥ó¥É¤ÇÀ¸À®¤µ¤ì¤ëÉÁ²è¤Ë¤Î¤ßŬÍÑ ¤µ¤ì¤Þ¤¹¡£Ä̾¥°¥í¡¼¥Ð¥ë¤Ê¥ª¥×¥·¥ç¥ó set hidden3d ¤Ï¥°¥é¥Õ¾å¤ÎÁ´¤Æ ¤ÎÉÁ²è¤ËŬÍѤµ¤ì¤Þ¤¹¤¬¡¢³Æ¡¹¤ÎÉÁ²è¤Ë nohidden3d ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³ ¤È¤Ç¡¢¤½¤ì¤ò hidden3d ¤Î½èÍý¤«¤é½ü³°¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£nohidden3d ¤¬¥Þ¡¼¥¯¤µ¤ì¤¿¶ÊḬ̀ʳ°¤Î¸Ä¡¹¤ÎÉÁ²èÍ×ÁÇ (Àþʬ¡¢ÅÀ¡¢¥é¥Ù¥ëÅù) ¤Ï¡¢Ä̾ï¤Ï ¾¤Î²¿¤é¤«¤ÎÉÁ²èÍ×ÁǤDZ£¤µ¤ì¤Æ¤·¤Þ¤¦¾ì¹ç¤âÁ´¤ÆÉÁ²è¤µ¤ì¤Þ¤¹¡£

ƱÍͤˡ¢¥­¡¼¥ï¡¼¥É nocontours ¤Ï¡¢¥°¥í¡¼¥Ð¥ë¤Ë set contour »ØÄ꤬ Í­¸ú¤Ê¾ì¹ç¤Ç¤â¡¢¸ÄÊ̤Πplot ¤ËÂФ¹¤ëÅù¹âÀþÉÁ²èµ¡Ç½¤ò¥ª¥Õ¤Ë¤·¤Þ¤¹¡£

ƱÍͤˡ¢¥­¡¼¥ï¡¼¥É nosurface ¤Ï¡¢¥°¥í¡¼¥Ð¥ë¤Ë set surface »ØÄ꤬ͭ ¸ú¤Ê¾ì¹ç¤Ç¤â¡¢¸ÄÊ̤Πplot ¤ËÂФ¹¤ë 3 ¼¡¸µ¶ÊÌÌÉÁ²è¤ò¥ª¥Õ¤Ë¤·¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É¤Ï°Å¼¨¤¹¤ë¤è¤¦¤Ê·Á¤Ç¾Êά²Äǽ¤Ç¤¹¡£

linewidth, pointsize, palette ¥ª¥×¥·¥ç¥ó¤ÏÁ´¤Æ¤ÎüËöÁõÃ֤ǥµ¥Ý¡¼ ¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

Îã:

°Ê²¼¤Ï¡¢sin(x) ¤ò±ôľÀþ¤ÇÉÁ²è¤·¤Þ¤¹:


     plot sin(x) with impulses

°Ê²¼¤Ï¡¢x ¤òÅÀ¤ÇÉÁ²è¤·¡¢x**2 ¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÊý¼°¤ÇÉÁ²è¤·¤Þ¤¹:


     plot x w points, x**2

°Ê²¼¤Ï¡¢tan(x) ¤ò´Ø¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÊý¼°¤Ç¡¢"data.1" ¤òÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹:


     plot tan(x), 'data.1' with l

°Ê²¼¤Ï¡¢"leastsq.dat" ¤ò±ôľÀþ¤ÇÉÁ²è¤·¤Þ¤¹:


     plot 'leastsq.dat' w i

°Ê²¼¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë "population" ¤ò¶ë·Á¤ÇÉÁ²è¤·¤Þ¤¹:


     plot 'population' with boxes

°Ê²¼¤Ï¡¢"exper.dat" ¤ò¥¨¥é¡¼¥Ð¡¼ÉÕ¤­¤ÎÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹ (¥¨¥é¡¼¥Ð¡¼¤Ï 3 Î󡢤¢¤ë¤¤¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤òɬÍפȤ·¤Þ¤¹):


     plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars

¤â¤¦°ì¤Ä¤Î "exper.dat" ¤Î¥¨¥é¡¼¥Ð¡¼ÉÕ¤­¤ÎÀÞ¤ìÀþ (errorlines) ¤Ç¤ÎÉÁ²è ÊýË¡ (¥¨¥é¡¼¥Ð¡¼¤Ï 3 Î󡢤¢¤ë¤¤¤Ï 4 Îó¤Î¥Ç¡¼¥¿¤¬É¬Í×):


     plot 'exper.dat' w errorlines

°Ê²¼¤Ï¡¢sin(x) ¤È cos(x) ¤ò¥Þ¡¼¥«¡¼ÉÕ¤­¤ÎÀÞ¤ìÀþ¤ÇÉÁ²è¤·¤Þ¤¹¡£ÀÞ¤ìÀþ¤Ï Ʊ¤¸Àþ¼ï¤Ç¤¹¤¬¡¢¥Þ¡¼¥«¡¼¤Ï°Û¤Ê¤Ã¤¿¤â¤Î¤ò»È¤¤¤Þ¤¹:


     plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4

°Ê²¼¤Ï¡¢"data" ¤òÅÀ¼ï 3 ¤Ç¡¢ÅÀ¤ÎÂ礭¤µ¤òÄ̾ï¤Î 2 ÇܤÇÉÁ²è¤·¤Þ¤¹:


     plot 'data' with points pointtype 3 pointsize 2

°Ê²¼¤Ï¡¢"data" ¤òÉÁ²è¤·¤Þ¤¹¤¬¡¢4 ÎóÌܤ«¤éÆɤó¤À¥Ç¡¼¥¿¤ò pointsize ¤ÎÃÍ ¤È¤·¤Æ»ÈÍѤ·¤Þ¤¹:


     plot 'data' using 1:2:4 with points pt 5 pointsize variable

°Ê²¼¤Ï¡¢2 ¤Ä¤Î¥Ç¡¼¥¿½¸¹ç¤ËÂФ·¤Æ¡¢Éý¤Î¤ß°Û¤Ê¤ëÀþ¤òÍѤ¤¤ÆÉÁ²è¤·¤Þ¤¹:


     plot 'd1' t "good" w l lt 2 lw 3, 'd2' t "bad" w l lt 2 lw 1

°Ê²¼¤Ï¡¢x*x ¤Î¶ÊÀþ¤ÎÆâÉô¤ÎÅɤê¤Ä¤Ö¤·¤È¿§¤ÎÂÓ¤òÉÁ²è¤·¤Þ¤¹:


     plot x*x with filledcurve closed, 40 with filledcurve y=10

°Ê²¼¤Ï¡¢x*x ¤Î¶ÊÀþ¤È¿§¤ÎÈ¢¤òÉÁ²è¤·¤Þ¤¹:


     plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y=10 lt 8

°Ê²¼¤Ï¡¢³ê¤é¤«¤ËÊѲ½¤¹¤ë¿§¤ÎÀþ¤Ç¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹:


     splot x*x-y*y with line palette

°Ê²¼¤Ï¡¢2 ¤Ä¤Î¿§¤Î¤Ä¤¤¤¿¶ÊÌ̤ò¡¢°Û¤Ê¤ë¹â¤µ¤Çɽ¼¨¤·¤Þ¤¹:


     splot x*x-y*y with pm3d, x*x+y*y with pm3d at t

100 Print


½ñ¼°:
      print <¼°> {, <¼°>, ...}

print ¥³¥Þ¥ó¥É¤Ï¡¢1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¼°¤ÎÃͤò½ÐÎϤ·¤Þ¤¹¡£½ÐÎϤϡ¢¥³¥Þ ¥ó¥É set print ¤Ç¥ê¥À¥¤¥ì¥¯¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢²èÌ̤عԤï¤ì¤Þ¤¹¡£°Ê ²¼»²¾È: expressions (15)¡£°Ê²¼¤â»²¾È: printerr (101)¡£

<¼°> ¤Ï¡¢gnuplot ¤ÇÍ­¸ú¤ÊǤ°Õ¤Î¼°¤Ç¡¢¿ôÃͤǤ⡢ʸ»úÎóÄê¿ô¤Ç¤â¡¢¿ô»ú¤ä ʸ»úÎó¤òÊÖ¤¹´Ø¿ô¤Ç¤â¡¢ÇÛÎó¤Ç¤â¡¢¤Þ¤¿¤ÏÊÑ¿ô̾¤Ç¤âÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ò½ÐÎϤ¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£print ¤Ë sprintf ¤ä gprintf ´Ø¿ô¤òÁȤ߹ç¤ï¤»¤Æ¡¢¤µ¤é¤Ë½ÀÆð¤Ê½ñ¼°¤Î½ÐÎϤò¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£

print ¥³¥Þ¥ó¥ÉÆâ¤Ç·«¤êÊÖ¤·¤ò»È¤¦¤³¤È¤Ç¡¢Ã±°ì¹Ô¤ËÊ£¿ô¤ÎÃͤòÆþ¤ì¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¡£

Îã:


    print 123 + 456
    print sinh(pi/2)
    print "rms of residuals (FIT_STDFIT) is ", FIT_STDFIT
    print sprintf("rms of residuals is %.3f after fit", FIT_STDFIT)
    print "Array A: ", A
    print "Individual elements of array A: ", for [i=1:|A|] A[i]
    print $DATA

101 Printerr

printerr ¤Ï print ¥³¥Þ¥ó¥É¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢¤½¤ÎÁ°¤Î set print ¥³¥Þ¥ó¥É¤Î¸ú²Ì¤¬Â³¤¤¤Æ¤¤¤ë¾õÂ֤Ǥâ½ÐÎϤò¾ï¤Ë stderr ¤ËÁ÷¤ë¤È¤³¤í¤À¤±¤¬ °ã¤¤¤Þ¤¹¡£ ¤½¤Î½ÐÎϤ˸½ºß¤Î¥Õ¥¡¥¤¥ë̾ (¤Þ¤¿¤Ï´Ø¿ô¥Ö¥í¥Ã¥¯Ì¾) ¤È¹ÔÈÖ¹æ¤òÆþ¤ì¤¿¤¤¾ì ¹ç¤Ï¡¢Âå¤ï¤ê¤Ë¥³¥Þ¥ó¥É warn ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

102 Pwd

pwd ¥³¥Þ¥ó¥É¤Ï¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î̾Á°¤ò²èÌ̤Ëɽ¼¨¤·¤Þ¤¹¡£

¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òʸ»úÎóÊÑ¿ô¤ËÊݸ¤·¤¿¤ê¡¢Ê¸»ú¼°¤ÎÃæ¤Ç»È¤¤¤¿¤¤¾ì¹ç ¤Ï¡¢ÊÑ¿ô GPVAL_PWD ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: show variables all (114.5)¡£

103 Quit

quit ¤Ï¡¢¥³¥Þ¥ó¥É exit ¤ÈƱµÁ¤Ç¤¹¡£°Ê²¼»²¾È: exit (87)¡£

104 Raise

½ñ¼°:


     raise {plot_window_id}
     lower {plot_window_id}

¥³¥Þ¥ó¥É raise ¤È lower ¤Ï¡¢½ÐÎÏ·Á¼°¤Î¤¤¤¯¤Ä¤«¤Ë¤·¤«µ¡Ç½¤»¤º¡¢¤½¤· ¤Æ¤¢¤Ê¤¿¤¬»ÈÍѤ¹¤ë¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤äɽ¼¨Í¥À赡ǽ¤ÎÀßÄê¤Ë¤â°Í¸¤¹¤ë ²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£


     set term wxt 123     # ºÇ½é¤ÎÉÁ²è¥¦¥£¥ó¥É¥¦¤òÀ¸À®
     plot $FOO
     lower                # ¸ºß¤¹¤ëÉÁ²è¥¦¥£¥ó¥É¥¦¤Î¤ß¤ò²¼¤Ë
     set term wxt 456     # 2 ¤ÄÌܤòÀ¸À® (1 ¤ÄÌܤξå¤Ë¤«¤Ö¤ë)
     plot $BAZ
     raise 123            # 1 ¤ÄÌܤÎÉÁ²è¥¦¥£¥ó¥É¥¦¤ò¾å¤Ë

¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤¢¤Þ¤êÅö¤Æ¤Ë¤Ê¤é¤Ê¤¤¤È»×¤Ã¤Æ¤¯¤À¤µ¤¤¡£

105 Refresh

¥³¥Þ¥ó¥É refresh ¤Ï¡¢replot ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¼ç¤Ë 2 ¤Ä¤ÎÅÀ¤Ç°ã¤¤¤¬ ¤¢¤ê¤Þ¤¹¡£refresh ¤Ï¡¢´û¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤òÍѤ¤¤Æ¡¢¸½ºß¤ÎÉÁ²è¤òºÆÀ° ·Á¤·ºÆÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢refresh ¤ò (µ¿»÷¥Ç¥Ð¥¤¥¹ '-' ¤«¤é¤Î) ¥¤¥ó ¥é¥¤¥ó¥Ç¡¼¥¿¤ÎÉÁ²è¡¢¤ª¤è¤ÓÆâÍƤ¬ÊѲ½¤·¤¦¤ë¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤«¤é¤ÎÉÁ²è¤Ë»È ¤¨¤ë¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤¿¤À¤·¡¢¥³¥Þ¥ó¥É refresh ¤Ï¡¢´û¤Ë¸ºß¤¹ ¤ëÉÁ²è¤Ë¿·¤·¤¤¥Ç¡¼¥¿¤òÄɲ乤ë¤Î¤Ë¤Ï»È¤¨¤Þ¤»¤ó¡£

¥Þ¥¦¥¹Áàºî¡¢Æä˥º¡¼¥à¥¤¥ó¤È¥º¡¼¥à¥¢¥¦¥È¤Ç¤Ï¡¢Å¬Àڤʾì¹ç¤Ï 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

106 Remultiplot

remultiplot ¤Ï¡¢Ä¾Á°¤Î multiplot ¤òÀ¸À®¤·¤¿ºÝ¤Ë̾Á°ÉÕ¤­¥Ç¡¼¥¿¥Ö¥í¥Ã ¥¯ $GPAL_LAST_MULTIPLOT ¤ËÁ°¤ËÊݸ¤·¤¿¥³¥Þ¥ó¥ÉÎó¤òºÆ¼Â¹Ô¤·¤Þ¤¹¡£°Ê²¼ »²¾È: new multiplots (4.9)¡£

»î¸³Ãʳ¬: ľÁ°¤Î plot ¥³¥Þ¥ó¥É¤¬´°Î»ºÑ¤ß¤Î multiplot ¤Î°ìÉô¤Ç¤¢¤ì¤Ð¡¢ replot ¤Ï°ÅÌÛ¤Ë remultiplot ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ set mouse multiplot ¤¬Í­¸ú¤Ç¤¢¤ì¤Ð¡¢»ëÀþ°ÜÆ°/³ÈÂç¤Ê¤É¤Î¥Þ¥¦¥¹Áàºî¤Ç ¤â remultiplot ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£

107 Replot

replot ¥³¥Þ¥ó¥É¤ò°ú¿ô¤Ê¤·¤Ç¼Â¹Ô¤¹¤ë¤È¡¢ºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot ¤Þ¤¿¤Ï splot ¥³¥Þ¥ó¥É¤òºÆ¼Â¹Ô¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤¢¤ë¥×¥í¥Ã¥È¤ò°Û¤Ê¤ë set ¥ª ¥×¥·¥ç¥ó¤Ç¤ß¤¿¤ê¡¢Æ±¤¸¥×¥í¥Ã¥È¤ò°Û¤Ê¤ëÁõÃ֤˽ÐÎϤ·¤¿¤ê¤¹¤ë¤È¤­¤ËÊØÍø ¤Ç¤·¤ç¤¦¡£

replot ¥³¥Þ¥ó¥É¤ËÂФ¹¤ë°ú¿ô¤ÏºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot ¤Þ¤¿¤Ï splot ¥³¥Þ¥ó¥É¤Î°ú¿ô¤Ë (°ÅÌۤΠ',' ¤È¶¦¤Ë) Äɲ䵤졢¤½¤ì¤«¤éºÆ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ replot ¤Ï¡¢ÈÏ°Ï (range) ¤ò½ü¤¤¤Æ¤Ï¡¢plot ¤ä splot ¤ÈƱ¤¸°ú¿ô¤ò ¤È¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ä¾Á°¤Î¥³¥Þ¥ó¥É¤¬ splot ¤Ç¤Ï¤Ê¤¯ plot ¤Î¾ì¹ç¤Ï¡¢´Ø¿ô¤ò¤â¤¦°ì¤Ä¤Î¼´¹ï¤ß¤Ç¥×¥í¥Ã¥È¤¹¤ë¤Î¤Ë replot ¤ò»È¤¦¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£

Ãí°Õ:


     plot '-' ; ... ; replot

¤Ï¿ä¾©¤µ¤ì¤Þ¤»¤ó¡£¤½¤ì¤Ï¡¢¤³¤ì¤¬¤¢¤Ê¤¿¤ËºÆ¤ÓƱ¤¸¥Ç¡¼¥¿¤¹¤Ù¤Æ¤ÎÆþÎϤòÍ× µá¤¹¤ë¤³¤È¤Ë¤Ê¤ë¤«¤é¤Ç¤¹¡£¤¿¤¤¤Æ¤¤¤Î¾ì¹ç¡¢Âå¤ï¤ê¤Ë¥³¥Þ¥ó¥É refresh ¤ò»È¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ°¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤ò»È¤Ã¤Æ¥°¥é¥Õ¤òºÆÉÁ²è¤·¤Þ¤¹¡£

ºÇ¸å¤Ë¼Â¹Ô¤·¤¿ plot (splot) ¥³¥Þ¥ó¥É¤ÎÆâÍƤò½¤Àµ¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï °Ê²¼¤â»²¾È: command-line-editing (9)¡£

ľÁ°¤ÎÉÁ²è¥³¥Þ¥ó¥É¤ÎÁ´ÂΤòɽ¼¨¤µ¤»¤ë¤³¤È¤ä¡¢¤½¤ì¤ò history ¤ÎÃæ¤Ë ¥³¥Ô¡¼¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: show plot (114.4)¡£

°ÊÁ°¤Î gnuplot ¤ÎÈǤǤϡ¢multiplot Á´ÂΤϺÆÉÁ²è¤Ç¤­¤º¡¢replot ¥³¥Þ¥ó ¥É¤Ï¤½¤Î¤¦¤ÁºÇ¸å¤Î plot Í×ÁǤ·¤«ºÆÀ¸À®¤·¤Þ¤»¤ó¤Ç¤·¤¿¡£gnuplot ¥Ð¡¼¥¸¥ç ¥ó 6 ¤Ç¤Ï¡¢multiplot ¤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤ·¤¿¥³¥Þ¥ó¥É¤ò¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯ $GPVAL_LAST_MULTIPLOT ¤ËÊݸ¤·¡¢¤½¤ì¤Ï¿·¤·¤¤¥³¥Þ¥ó¥É remultiplot ¤ò »È¤Ã¤Æ multiplot Á´ÂΤòºÆÀ¸À®¤¹¤ë¤Î¤ËºÆ¼Â¹Ô¤Ç¤­¤Þ¤¹¡£

»î¸³Ãʳ¬ (¾ÜºÙ¤Ïº£¸å¤Î gnuplot ¤ÎÈǤÇÊѹ¹¤Î²ÄǽÀ­¤¢¤ê): ľÁ°¤Ë½ñ¤¤¤¿¥°¥é¥Õ¤¬ multiplot ¤Î°ìÉô¤À¤Ã¤¿¾ì¹ç¡¢replot ¥³¥Þ¥ó¥É¤Ï¸½ ºß¤Ï¼«Æ°Åª¤Ë remultiplot ¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤¤¤¯¤Ä¤«¤ÎÃí°Õ»ö¹à¤¬¤¢¤ê¤Þ ¤¹¡£°Ê²¼»²¾È: new multiplots (4.9), remultiplot (106)¡£

108 Reread

[¥Ð¡¼¥¸¥ç¥ó 5.4 ¤Ç¤ÏÈó¿ä¾©]

ÌÀ¼¨Åª¤Ê·«¤êÊÖ¤· (iteration) ¤ò»Ù»ý¤·¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÏÈó¿ä¾©¤È¤·¤Þ¤¹¡£ °Ê²¼»²¾È: iterate (19)¡£ reread ¥³¥Þ¥ó¥É¤Ï¡¢load ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿ gnuplot ¤ÎÆþÎÏ¥Õ¥¡¥¤ ¥ë¤«¤é¤Î¼Â¹Ô¤ò¡¢Ä¾¤Á¤Ë¤½¤Î¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤«¤éºÆ³«¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Õ¥¡¥¤ ¥ë¤ÎºÇ½é¤«¤é reread ¥³¥Þ¥ó¥É¤Þ¤Ç¤Î¥³¥Þ¥ó¥É¤Î̵¸Â¥ë¡¼¥×¤òËܼÁŪ¤Ë¼ÂÁõ ¤·¤Æ¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£É¸½àÆþÎϤ«¤é¤ÎÆþÎϤκݤϡ¢reread ¥³¥Þ¥ó¥É¤Ï ²¿¤Î¸úÎϤâ»ý¤Á¤Þ¤»¤ó¡£

109 Reset


    reset {bind | errors | session}

¥³¥Þ¥ó¥É reset ¤Ï¡¢set ¥³¥Þ¥ó¥É¤ÇÄêµÁ¤Ç¤­¤ë¡¢¥°¥é¥Õ¤Ë´Ø¤¹¤ëÁ´¤Æ¤Î ¥ª¥×¥·¥ç¥ó¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌᤷ¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢load ¤·¤¿¥³¥Þ¥ó ¥É¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤¿¸å¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤òÉüµ¢¤·¤¿¤ê¡¢ÀßÄê¤ò¤¿¤¯¤µ¤óÊÑ ¹¹¤·¤¿¸å¤Ç¸µ¤Î¾õÂÖ¤ËÌᤷ¤¿¤¤¤È¤­¤Ê¤É¤ËÊØÍø¤Ç¤¹¡£

°Ê²¼¤Î¤â¤Î¤Ï¡¢reset ¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó:


    `set term` `set output` `set loadpath` `set linetype` `set fit`
    `set encoding` `set decimalsign` `set locale` `set psdir`
    `set overflow` `set multiplot`

reset ¤Ï¡¢É¬¤º¤·¤â¥×¥í¥°¥é¥àΩ¤Á¾å¤¬¤Ã¤¿½é´ü¾õÂ֤ˤÏÌᤵ¤Ê¤¤¤³¤È¤ËÃí °Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤Ï¡¢½é´üÀßÄê¥Õ¥¡¥¤¥ë gnuplotrc ¤ä $HOME/.gnuplot¡¢ $XDG_CONFIG_HOME/gnuplot/gnuplotrc Æâ¤Î¥³¥Þ¥ó¥É¤Ç¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÊѹ¹ ¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤â¥ê¥»¥Ã¥È¤µ¤ì¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¹¡£¤·¤«¤· reset session ¤È¤¹¤ì¤Ð¡¢¤½¤ì¤é¤Î¥³¥Þ¥ó¥É¤âºÆ¼Â¹Ô¤·¤Þ¤¹¡£

reset session ¤Ï¡¢¥æ¡¼¥¶ÄêµÁÊÑ¿ô¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¤¹¤Ù¤Æ¤òºï½ü¤·¡¢¥Ç¥Õ ¥©¥ë¥È¤ÎÀßÄê¤òÉüµ¢¤·¡¢¥·¥¹¥Æ¥àÁ´ÂΤνé´üÀßÄê¥Õ¥¡¥¤¥ë gnuplotrc ¤È¸Ä¿Í ÍѤνé´üÀߥե¡¥¤¥ë $HOME/.gnuplot¡¢$XDG_CONFIG_HOME/gnuplot/gnuplotrc ¤òºÆ¼Â¹Ô¤·¤Þ¤¹¡£°Ê²¼»²¾È: initialization (27)¡£

reset errors ¤Ï¡¢¥¨¥é¡¼¾õÂÖÊÑ¿ô GPVAL_ERRNO ¤È GPVAL_ERRMSG ¤Î¤ß¤ò¥¯ ¥ê¥¢¤·¤Þ¤¹¡£

reset bind ¤Ï¡¢¥­¡¼ÄêµÁ¤ò¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÉüµ¢¤·¤Þ¤¹¡£

110 Return

½ñ¼°:


    return <expression>

¥³¥Þ¥ó¥É return ¤Ï¡¢ ¥³¥Þ¥ó¥É exit ¤ä quit ¤¬¡¢¸½ºß¤Î¥³¡¼¥É¥Ö¥í ¥Ã¥¯¤Î¼Â¹Ô¤äÆþÎÏ¥¹¥È¥ê¡¼¥à¤ò½ªÎ»¤¹¤ë¤Î¤ÈƱ¤¸ÊýË¡¤ÇºîÍѤ·¤Þ¤¹¡£ÊÖ¤êÃÍ¤Ï ´Ø¿ô¥Ö¥í¥Ã¥¯Æâ¤Î¼Â¹Ô¥³¡¼¥É¤Î¾õ¶·¤Ç¤Î¤ß°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: function blocks (89)¡£

Îã:


    function $myfun << EOF
    local result = 0
    if (error-condition) { return -1 }
    ... body of function ...
    return result
    EOF

111 Save

½ñ¼°:


     save  {functions | variables | terminal | set | fit | datablocks}
           '<filename>' {append}

¤É¤ì¤â»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢gnuplot ¤Ï¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¡¢¥æ¡¼¥¶ÊÑ¿ô¡¢ set ¤ÇÀßÄꤹ¤ë¥ª¥×¥·¥ç¥ó¡¢°ìÈֺǸå¤Ë¼Â¹Ô¤·¤¿ plot ¤« splot ¥³¥Þ¥ó ¥É¤ÎÁ´¤Æ¤òÊݸ¤·¤Þ¤¹¡£set term ¤È set output ¤Î¸½ºß¤Î¾õÂ֤ϡ¢¥³¥á ¥ó¥È¤È¤·¤Æ½ñ¤­½Ð¤·¤Þ¤¹¡£

Êݸ¥Õ¥¡¥¤¥ë¤Ë¤Ï¥Æ¥­¥¹¥È·Á¼°¤Ç½ÐÎϤ·¡¢¤½¤ì¤Ï load ¥³¥Þ¥ó¥É¤ÇÆɤ߹þ¤à ¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

save terminal ¤Ï¡¢terminal ¤Î¾õÂÖ¤ò¡¢¥³¥á¥ó¥Èµ­¹æ¤ò¤Ä¤±¤º¤Ë½ñ¤­½Ð ¤·¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢¤Á¤ç¤Ã¤È¤Î´Ö¤À¤± terminal ¤ÎÀßÄê¤òÆþ¤ìÂؤ¨¡¢¤½¤Î ¸åÊݸ¤·¤Æ¤ª¤¤¤¿ terminal ¤Î¾õÂÖ¤òÆɤ߹þ¤à¤³¤È¤Ç°ÊÁ°¤Î terminal ¤ÎÀß Äê¤ËÌ᤹¾ì¹ç¤Ê¤É¤ËÌòΩ¤Á¤Þ¤¹¡£¤¿¤À¡¢Ã±°ì¤Î gnuplot ¥»¥Ã¥·¥ç¥ó¤Ç¤Ï¡¢¸½ ºß¤Î terminal ¤òÊݸ/Éü¸µ¤¹¤ë¾¤ÎÊýË¡¤Ç¤¢¤ë¥³¥Þ¥ó¥É set term push ¤È set term pop ¤ò»È¤¦Êý¤¬¤à¤·¤í¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£°Ê²¼»²¾È: set term (112.89)¡£

save variables ¤Ï¡¢¤¹¤Ù¤Æ¤Î¥æ¡¼¥¶ÊÑ¿ô¤ò½ñ¤­½Ð¤·¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¥Ö¥í¥Ã ¥¯¤ÈÆâÉôÊÑ¿ô GPVAL_* GPFUN_* MOUSE_* ARG* ¤Ï½ñ¤­½Ð¤·¤Þ¤»¤ó¡£

save fit ¤Ï¡¢Ä¾¶á¤Î fit ¥³¥Þ¥ó¥É¤Ç»ÈÍѤ·¤¿ÊÑ¿ô¤Î¤ß¤òÊݸ¤·¤Þ¤¹¡£¤½ ¤ÎÊݸ¥Õ¥¡¥¤¥ë¤Ï¡¢¸å¤Ç via ¥­¡¼¥ï¡¼¥É¤ò»È¤¦¤³¤È¤Ç fit ¥³¥Þ¥ó¥É¤Î½é´ü ²½ÍѤΥѥé¥á¡¼¥¿¥Õ¥¡¥¤¥ë¤È¤·¤ÆÍøÍѤǤ­¤Þ¤¹¡£

¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ë°Ï¤ï¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

ÆÃÊ̤ʥե¡¥¤¥ë̾ "-" ¤Ë¤è¤ê save ¥³¥Þ¥ó¥É¤Ëɸ½à½ÐÎϤ˽ÐÎϤµ¤»¤ë¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£popen ´Ø¿ô¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ê¥·¥¹¥Æ¥à (Unix ¤Ê¤É) ¤Ç¤Ï¡¢ save ¤Î½ÐÎϤò¥Ñ¥¤¥×·Ðͳ¤Ç¾¤Î³°Éô¥×¥í¥°¥é¥à¤ËÅϤ¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤½¤Î ¾ì¹ç¡¢¥Õ¥¡¥¤¥ë̾¤È¤·¤Æ¥³¥Þ¥ó¥É̾¤ÎÀèƬ¤Ë '|' ¤ò¤Ä¤±¤¿¤â¤Î¤ò»È¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplot ¤È¥Ñ¥¤¥×¤òÄ̤·¤ÆÄÌ¿®¤¹¤ë¥×¥í¥°¥é¥à¤Ë¡¢gnuplot ¤ÎÆâ ÉôÀßÄê¤Ë´Ø¤¹¤ë¼óÈø°ì´Ó¤·¤¿¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼ »²¾È: batch/interactive (7)¡£

Îã:


     save 'work.gnu'
     save functions 'func.dat'
     save var 'state.dat'; save datablocks 'state.dat' append
     save set 'options.dat'
     save term 'myterm.gnu'
     save '-'
     save '|grep title >t.gp'

112 Set-show

set ¥³¥Þ¥ó¥É¤Ï¼Â¤Ë¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤òÀßÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£¤·¤«¤·¡¢ plot, splot, replot ¥³¥Þ¥ó¥É¤¬Í¿¤¨¤é¤ì¤ë¤Þ¤Ç²¿¤Î¥°¥é¥Õ¤âÉÁ¤­¤Þ¤» ¤ó¡£

¤½¤Î¤Û¤È¤ó¤É¤Î¥ª¥×¥·¥ç¥ó¤ËÂФ·¤Æ¡¢¥³¥Þ¥ó¥É show ¤¬¤½¤ì¤ËÂбþ¤¹¤ë¸½ºß ¤ÎÀßÄê¤òɽ¼¨¤·¤Þ¤¹¡£show palette ¤ä show colornames ¤Ê¤É¤Î¤´¤¯¾¯¿ô ¤Î¥³¥Þ¥ó¥É¤Î¤ß¡¢¸ÄÊ̤ËÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£

set ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤µ¤ì¤¿¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë unset ¥³¥Þ¥ó ¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÌ᤹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼¤â»²¾È: reset (109)¡£¤³¤ì¤ÏÁ´¤Æ¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÀßÄê¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌᤷ¤Þ¤¹¡£

set ¤È unset ¥³¥Þ¥ó¥É¤Ë¤Ï·«¤êÊÖ¤·Àá¤âÍøÍѤǤ­¤Þ¤¹¡£°Ê²¼»²¾È: plot for (99.8)¡£

112.1 ³Ñ¤Îñ°Ì (angles)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï gnuplot ¤Ï¶ËºÂɸ¥°¥é¥Õ¤ÎÆÈΩÊÑ¿ô¤Îñ°Ì¤Ï¥é¥¸¥¢¥ó¤ò²¾Äê ¤·¤Þ¤¹¡£set polar ¤ÎÁ°¤Ë set angles degrees ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤Îñ°Ì ¤ÏÅ٤ˤʤꡢ¥Ç¥Õ¥©¥ë¥È¤ÎÈÏ°Ï¤Ï [0:360] ¤È¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤ÎÉÁ²è¤ÇÆäËÊØÍø¤Ç¤·¤ç¤¦¡£³ÑÅÙ¤ÎÀßÄê¤Ï¡¢set mapping ¥³¥Þ¥ó¥É¤òÀßÄꤹ ¤ë¤³¤È¤Ë¤è¤ê 3 ¼¡¸µ¤Ç¤âÍ­¸ú¤Ç¤¹¡£

½ñ¼°:


     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 ¤òÍѤ¤¤¿¶ËºÂɸÉÁ²è¤Î¥Ç¥â

112.2 Ìð°õ (arrow)

set arrow ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ë¤è¤ê¡¢¥°¥é¥Õ¾å¤ÎǤ°Õ¤Î°ÌÃÖ¤ËÌð°õ¤òɽ¼¨ ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set arrow {<tag>} from <position> to <position>
     set arrow {<tag>} from <position> rto <position>
     set arrow {<tag>} from <position> length <coord> angle <ang>
     set arrow <tag> arrowstyle | as <arrow_style>
     set arrow <tag> {nohead | head | backhead | heads}
                     {size <headlength>,<headangle>{,<backangle>}} {fixed}
                     {filled | empty | nofilled | noborder}
                     {front | back}
                     {linestyle | ls <line_style>}
                     {linetype | lt <line_type>}
                     {linewidth | lw <line_width>}
                     {linecolor | lc <colorspec>}
                     {dashtype | dt <dashtype>}


     unset arrow {<tag>}
     show arrow {<tag>}

¥¿¥° <tag> ¤Ï³ÆÌð°õ¤ò¼±Ê̤¹¤ëÀ°¿ô¤Ç¤¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤Î»þ ÅÀ¤Ç̤»ÈÍѤκǤ⾮¤µ¤¤¿ô¤¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¥¿¥°¤ò»È¤¦¤³¤È¤Ç¡¢ ÆÃÄê¤ÎÌð°õ¤òÊѹ¹¤·¤¿¤ê¡¢ºï½ü¤·¤¿¤ê¤Ç¤­¤Þ¤¹¡£´û¤Ë¸ºß¤¹¤ëÌð°õ¤Î°À­¤òÊÑ ¹¹¤¹¤ë¾ì¹ç¤Ï¡¢¥¿¥°¤òÌÀ¼¨¤·¤¿ set arrow ¥³¥Þ¥ó¥É¤ÇÊѹ¹¤·¤¿¤¤Â°À­¤ò»Ø Äꤷ¤Æ¤¯¤À¤µ¤¤¡£

Ìð°õ¤ÎºÇ½é¤ÎüÅÀ¤Î°ÌÃ֤ϡ¢¾ï¤Ë "from" ¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¤â¤¦°ì¤Ä¤ÎüÅÀ¤Ï °Ê²¼¤ÇÀâÌÀ¤¹¤ë 3 ¤Ä¤Î°Û¤Ê¤ë»ÅÁȤߤΤ¤¤º¤ì¤«¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£<position> ¤Ï x,y ¤¢¤ë¤¤¤Ï x,y,z ¤Ç»ØÄꤷ¤Þ¤¹¡£¤½¤·¤Æ¤½¤ÎÁ°¤ËºÂɸ·Ï¤òÁªÂò¤¹¤ë¤¿ ¤á¤Ë first, second, graph, screen, character ¤òÃÖ¤¯¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£ºÂɸ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 0 ¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¾ÜºÙ¤Ï°Ê ²¼»²¾È: coordinates (11)¡£ºÇ½é¤ÎüÅÀ¤ËÂФ¹¤ëºÂɸ»ØÄê»Ò¤Ï¡¢2 ÈÖÌܤÎüÅÀ¤Ë ¤Ï±Æ¶Á¤·¤Þ¤»¤ó¡£

1) "to <position>" ¤Ï¡¢¤â¤¦°ì¤Ä¤ÎüÅÀ¤ÎÀäÂкÂɸ¤ò»ØÄꤷ¤Þ¤¹¡£

2) "rto <position>" ¤Ï¡¢"from" ¤Î°ÌÃÖ¤«¤é¤Î¤º¤ì¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢ Àþ·Á¼´ (ÈóÂпô¼´)¡¢¤ª¤è¤Ó graph, screen ºÂɸ¤ËÂФ·¤Æ¤Ï¡¢»ÏÅÀ¤È½ªÅÀ ¤Îµ÷Î¥¤¬Í¿¤¨¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤËÂбþ¤·¤Þ¤¹¡£°ìÊý¡¢Âпô¼´¤ËÂФ·¤Æ¤Ï¡¢Í¿¤¨ ¤é¤ì¤¿ÁêÂÐŪ¤ÊÃͤϡ¢»ÏÅÀ¤«¤é½ªÅÀ¤Ø¤ÎÇÜ¿ô¤ËÂбþ¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Âпô¼´¤Î ¾ì¹ç¡¢ÁêÂÐŪ¤ÊÃͤȤ·¤Æ 0 ¤äÉé¤ÎÃͤòÍ¿¤¨¤ë¤³¤È¤Ïµö¤µ¤ì¤Þ¤»¤ó¡£

3) "length <coordinate> angle <angle>" ¤Ï¡¢¥°¥é¥ÕÊ¿ÌÌÆâ¤Ç¤ÎÌð°õ¤ÎÊý¸þ ¤ò»ØÄꤷ¤Þ¤¹¡£length ¤Ë¤ÏǤ°Õ¤ÎºÂɸ·Ï¤òŬÍѤǤ­¤Þ¤¹¡£angle ¤Îñ°Ì¤Ï¾ï ¤ËÅ٤ˤʤäƤ¤¤Þ¤¹¡£

Ìð°õ¤Î¾¤Î°À­¤â¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿Ìð¤Î¥¹¥¿¥¤¥ë¤Ç¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É set arrow ¤Ç¤½¤ì¤¾¤ìÍ¿¤¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£Ìð°õ¤Î¾¤Î°À­¤Î¾ÜºÙ¤Ë¤Ä¤¤ ¤Æ¤Ï°Ê²¼»²¾È: arrowstyle (112.86.1)¡£

Îã:

¸¶ÅÀ¤«¤é (1,2) ¤Ø¤ÎÌð°õ¤ò¥æ¡¼¥¶ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë 5 ¤ÇÉÁ¤¯¤Ë¤Ï:


     set arrow to 1,2 ls 5

ÉÁ²èÎΰè¤Îº¸²¼³Ñ¤«¤é (-5,5,3) ¤Ø¥¿¥°ÈÖ¹æ 3 ¤ÎÌð°õ¤òÉÁ¤¯¤Ë¤Ï:


     set arrow 3 from graph 0,0 to -5,5,3

Ìð°õ¤Îü¤ò 1,1,1 ¤ËÊѹ¹¤·¡¢ÌðÀè¤ò³°¤·¤ÆÉý¤ò 2 ¤Ë¤¹¤ë¤Ë¤Ï:


     set arrow 3 to 1,1,1 nohead lw 2

x=3 ¤Î½ê¤Ø¥°¥é¥Õ¤Î²¼¤«¤é¾å¤Þ¤Ç±ôľÀþ¤òÉÁ¤¯¤Ë¤Ï:


     set arrow from 3, graph 0 to 3, graph 1 nohead

T »ú·¿¤ÎÌðÀè¤òξü¤Ë»ý¤Ä±ôľÊý¸þ¤ÎÌð¤òÉÁ¤¯¤Ë¤Ï:


     set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90

»ÏÅÀ¤«¤é¤ÎÁêÂÐŪ¤Êµ÷Î¥¤ò¥°¥é¥ÕºÂɸ¤ÇÍ¿¤¨¤ÆÌð¤òÉÁ¤¯¤Ë¤Ï:


     set arrow from 0,-5 rto graph 0.1,0.1

x ¤ÎÂпô¼´¤ËÁêÂÐŪ¤Ê½ªÅÀ¤ò»ØÄꤷ¤ÆÌð¤òÉÁ¤¯¾ì¹ç:


     set logscale x
     set arrow from 100,-5 rto 10,10

¤³¤ì¤Ï 100,-5 ¤«¤é 1000,5 ¤Þ¤Ç¤ÎÌð¤òÉÁ¤­¤Þ¤¹¡£Àþ·Á¼´ (y) ¤ËÂФ·¤Æ¤ÏÁê ÂÐŪ¤ÊºÂɸ 10 ¤¬ "º¹ 10" ¤ò°ÕÌ£¤¹¤ë¤Î¤ËÂФ·¡¢Âпô¼´ (x) ¤ËÂФ·¤Æ¤ÏÁêÂРŪ¤ÊºÂɸ 10 ¤Ï "ÇÜ¿ô 10" ¤È¤·¤ÆƯ¤­¤Þ¤¹¡£

2 ÈÖ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:


     unset arrow 2

Á´¤Æ¤ÎÌð°õ¤ò¾Ã¤¹¤Ë¤Ï:


     unset arrow

Á´¤Æ¤ÎÌð°õ¤Î¾ðÊó¤ò (¥¿¥°¤Î½ç¤Ë) ¸«¤ë¤Ë¤Ï:


     show arrow

Ìð°õ¤Î¥Ç¥â

112.3 ¼«Æ°½Ì¼Ü (autoscale)

¼«Æ°½Ì¼Üµ¡Ç½ (autoscale) ¤Ï x, y, z ¤Î³Æ¼´¤ËÂФ·¤ÆÆÈΩ¤Ë¡¢¤Þ¤¿¤Ï°ì³ç¤· ¤Æ»ØÄê¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÁ´¤Æ¤Î¼´¤ËÂФ·¤Æ¼«Æ°½Ì¼ÜÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£ ¿Þ¤ÎÃæ¤Î°ìÉô¤ÎÉÁ²è (plot) ¤ÎÁȤΤߤò autoscale ¤·¤¿¤¤¾ì¹ç¤Ï¡¢½ü³°¤¹ ¤ë¤â¤Î¤Î plot ¥³¥Þ¥ó¥É¤Ë¥Õ¥é¥° noautoscale ¤ò¤Ä¤±¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£ °Ê²¼»²¾È: datafile (99.3)¡£

½ñ¼°:


     set autoscale {<axis>{|min|max|fixmin|fixmax|fix} | fix | keepfix}
     set autoscale noextend
     unset autoscale {<axis>}
     show autoscale

¤³¤³¤Ç¡¢<axis> (¼´) ¤Ï x, y, z, cb, x2, y2, xy, paxis <p> ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¼´Ì¾¤Î¸å¤í¤Ë min ¤Þ¤¿¤Ï max ¤òÄɲä¹¤ë ¤È¡¢¤½¤ì¤Ï gnuplot ¤Ë¤½¤Î¼´¤ÎºÇ¾®ÃÍ¡¢¤Þ¤¿¤ÏºÇÂçÃͤΤߤò¼«Æ°½Ì¼Ü¤µ¤» ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¼´Ì¾¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢Á´¤Æ¤Î¼´¤¬¼«Æ°½Ì¼Ü¤ÎÂоݤȤʤê¤Þ¤¹¡£

ÆÈΩÊÑ¿ô¼´ (plot ¤Î¤È¤­¤Ï x ¼´¡¢splot ¤Î¤È¤­¤Ï x,y ¼´) ¤Î¼«Æ°½Ì¼Ü µ¡Ç½¤Ï¡¢ÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤Ë¹ç¤¦¤è¤¦¤Ë¤½¤ì¤é¤Î¼´¤ÎÈϰϤòÄ´À°¤·¤Þ¤¹¡£ÉÁ²è ¤¬´Ø¿ô¤Î¤ß (ÆþÎϥǡ¼¥¿¤Ê¤·) ¤Î¾ì¹ç¡¢¤³¤ì¤é¤Î¼´¤Î¼«Æ°½Ì¼Üµ¡Ç½¤Ï¡¢¤Ê¤ó¤Î ¸ú²Ì¤â»ý¤Á¤Þ¤»¤ó¡£

½¾Â°ÊÑ¿ô¼´ (plot ¤Î¤È¤­¤Ï y ¼´¡¢splot ¤Î¤È¤­¤Ï z ¼´) ¤Î¼«Æ°½Ì¼Üµ¡ ǽ¤Ï¡¢ÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤ä´Ø¿ô¤Ë¹ç¤¦¤è¤¦¤Ë¤½¤ì¤é¤Î¼´¤ÎÈϰϤòÄ´À°¤·¤Þ¤¹¡£

¼´¤ÎÈϰϤÎÄ´À°¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê¹ï¤ß¤Ø¤Î±äŤò¹Ô¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£Î㤨¤Ð¡¢ ü¤Î¥Ç¡¼¥¿¤ÎºÂɸ¤¬ÌÜÀ¹¤ê¹ï¤ß¤ËÃúÅÙ°ìÃפ¹¤ë¾ì¹ç¡¢¥Ç¡¼¥¿¤ÈÉÁ²è¶­³¦¤È¤Î´Ö ¤Ë¤Ï²¿¤â¤Ê¤¤¥¹¥Ú¡¼¥¹¤¬¤Ç¤­¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£noextend ¤ò»È¤¦¤³¤È¤Ç¡¢ ¤³¤Î;·×¤Ê¥¹¥Ú¡¼¥¹¤ÎºîÀ®¤òÍÞÀ©¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥É set offset ¤ò»È¤¦¤³ ¤È¤Ç¡¢¤½¤ì¤ò¤è¤êÁý¤ä¤¹¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤µ¤é¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set xrange (112.122), set offsets (112.63)¡£

ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric) ¤Ç¤â¼«Æ°½Ì¼Üµ¡Ç½¤ÏÍ­¸ú¤Ç¤¹ (°Ê²¼»²¾È: set parametric (112.68))¡£¤³¤Î¾ì¹ç¡¢¤è¤ê¿¤¯¤Î½¾Â°ÊÑ¿ô¤¬¤¢¤ë¤Î¤Ç¡¢x, y, z ³Æ ¼´¤Ë´Ø¤·¤Æ¡¢¤è¤ê¿¤¯¤ÎÀ©¸æ¤¬¹Ô¤ï¤ì¤Þ¤¹¡£ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤ÎÆÈΩÊÑ¿ô (²¾ ÊÑ¿ô) ¤Ï plot ¤Ç¤Ï t ¤Ç splot ¤Ç¤Ï u, v ¤Ç¤¹¡£¤½¤·¤ÆÇÞ²ðÊÑ¿ô¥â¡¼¥É ¤Ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï (t, u, v, x, y, z) ¤ÎÁ´¤Æ¤ÎÉÁ²èÈϰϤòÀ©¸æ¤·¡¢x, y, z ¤ÎÈϰϤμ«Æ°ÀßÄê¤ò´°Á´¤Ë¹Ô¤¤¤Þ¤¹¡£

ÌÜÀ¹¤ê¤¬Âè 2 ¤Î¼´¤Ëɽ¼¨¤µ¤ì¡¢¤·¤«¤â¤³¤ì¤é¤Î¼´¤ËÂФ¹¤ëÉÁ²è¤¬¹Ô¤ï¤ì¤Ê¤« ¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢x2range ¤È y2range ¤Ï xrange ¤È yrange ¤ÎÃͤò¼õ¤±·Ñ¤®¤Þ ¤¹¡£¤³¤ì¤Ï¡¢ÈϰϤΤº¤é¤·¤Î¼Â¹Ô¤ä¡¢ÈϰϤòÀ°¿ô¸Ä¤ÎÌÜÀ¹¤êÉý¤Ë¼«Æ°¿­½Ì¤¹¤ë ¡ÖÁ°¡×¤Ë¹Ô¤¤¤Þ¤¹¤Î¤Ç¡¢¾ì¹ç¤Ë¤è¤Ã¤Æͽ´ü¤·¤Ê¤¤·ë²Ì¤ò¤â¤¿¤é¤¹²ÄǽÀ­¤¬¤¢¤ê ¤Þ¤¹¡£¤³¤ì¤òÈò¤±¤ë¤Î¤Ë¡¢Âè 2 ¼´¤ÎÈϰϤòÂè 1 ¼´¤ÎÈϰϤËÌÀ¼¨Åª¤Ë¥ê¥ó¥¯ (link) ¤¹¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set link (112.42)¡£

112.3.1 Noextend


    set autoscale noextend

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï¼´¤ÎÈϰϤ賦¤ò¡¢ÉÁ²è¥Ç¡¼¥¿Á´ÂΤò´Þ¤à¡¢ ºÇ¤â¶á¤¤ÌÜÀ¹¤ê¥é¥Ù¥ë°ÌÃÖ¤ËÀßÄꤷ¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É fixmin, fixmax, fix, noextend ¤Ï¡¢¼¡¤ÎÌÜÀ¹¤ê°ÌÃ֤ޤǤÎÈϰϤμ«Æ°³ÈÂç¤ò gnuplot ¤Ë ¹Ô¤ï¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¼´¤ÎÈϰϤ賦¤Ï¡¢°ìÈÖü¤Ë¤¢¤ë¥Ç¡¼¥¿ÅÀ ¤ÎºÂɸÃͤ˴°Á´¤Ë°ìÃפ·¤Þ¤¹¡£set autoscale noextend ¤Ï¡¢ set autscale fix ¤ÈƱ¤¸¤Ç¤¹¡£¼´¤ÎÈÏ°Ï»ØÄꥳ¥Þ¥ó¥É¤Î¸å¤í¤Ë¥­¡¼¥ï¡¼¥É noextend ¤òÄɲ乤ì¤Ð¡¢°ì¤Ä¤Î¼´¤ÎÈϰϤαäŵ¡Ç½¤À¤±Ìµ¸ú¤Ë¤¹¤ë¤³¤È¤â ¤Ç¤­¤Þ¤¹¡£Îã:


    set yrange [0:*] noextend

set autoscale keepfix ¤Ï¡¢fix ¤ÎÀßÄê¤òÊѹ¹¤»¤º¤Ë»Ä¤·¤¿¤Þ¤Þ¡¢¤¹¤Ù¤Æ¤Î ¼´¤ò¼«Æ°½Ì¼Ü¤Ë¤·¤Þ¤¹¡£

112.3.2 Îã (examples)

Îã:

°Ê²¼¤Ï 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

112.3.3 ¶ËºÂɸ¥â¡¼¥É (polar)

¶ËºÂɸ¥â¡¼¥É (set polar) ¤Ç¤Ï¡¢xrange ¤È yrange ¤Ï¼«Æ°½Ì¼Ü¥â¡¼¥É¤Ç¤Ï ¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£Æ°·Â¼´¤ÎÈÏ°ÏÀ©¸ÂÍÑ¤Ë set rrange ¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢xrange ¤È yrange ¤Ï¤½¤ì¤Ë¹ç¤¦¤è¤¦¤Ë¼«Æ°Åª¤ËÄ´À°¤µ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤µ¤é¤Ë¤½¤ì¤ò Ä´À°¤·¤¿¤±¤ì¤Ð¡¢¤½¤Î¸å¤ËÌÀ¼¨Åª¤Ë xrange ¤ä yrange ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤¬ ¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set rrange (112.81)¡£

°Ê²¼¤â»²¾È ¶ËºÂɸ¤Î¥Ç¥â¡£

112.4 Bind

show bind ¤Ï¡¢¸½ºß¤Î¥Û¥Ã¥È¥­¡¼¤Î³ä¤êÅö¤Æ (binding) ¤òɽ¼¨¤·¤Þ¤¹¡£°Ê ²¼»²¾È: bind (22.1)¡£

112.5 Bmargin

¥³¥Þ¥ó¥É set bmargin ¤Ï¡¢²¼Éô¤Î;Çò¤Î¥µ¥¤¥º¤òÀßÄꤷ¤Þ¤¹¡£¾ÜºÙ¤Ï °Ê²¼»²¾È: set margin (112.49)¡£

112.6 ¥°¥é¥Õ¤ÎÏÈÀþ (border)

set border ¤È unset border ¤Ï plot ¤ä splot ¤Ç¤Î¥°¥é¥Õ¤ÎÏȤΠɽ¼¨¤òÀ©¸æ¤·¤Þ¤¹¡£ÏȤÏɬ¤º¤·¤â¼´¤È¤Ï°ìÃפ·¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ plot ¤Ç¤ÏÂçÄñ°ìÃפ·¤Þ¤¹¤¬¡¢splot ¤Ç¤ÏÂçÄñ°ìÃפ·¤Æ¤¤¤Þ¤»¤ó¡£

½ñ¼°:


     set border {<integer>}
                {front | back | behind}
                {linestyle | ls <line_style>}
                {linetype | lt <line_type>} {linewidth | lw <line_width>}
                {linecolor | lc <colorspec>} {dashtype | dt <dashtype>}
                {polar}
     unset border
     show border

set view 56,103 ¤Î¤è¤¦¤ËǤ°Õ¤ÎÊý¸þ¤Çɽ¼¨¤µ¤ì¤¦¤ë splot ¤Ç¤Ï¡¢ x-y Ê¿Ì̾å¤Î 4 ¤Ä¤Î³Ñ¤Ï ¼êÁ° (front), ¸å¤í (back) , º¸ (left), ±¦ (right) ¤Î¤è¤¦¤Ë¸Æ¤Ð¤ì¤Þ¤¹¡£¤â¤Á¤í¤ó¤³¤ÎƱ¤¸ 4 ¤Ä¤Î³Ñ¤ÏÅ·°æ¤ÎÌ̤ˤ⠤¢¤ê¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Î㤨¤Ð x-y Ê¿Ì̾å¤Î¸å¤í¤È±¦¤Î³Ñ¤ò¤Ä¤Ê¤°¶­³¦¤ò "Äì¤Î±¦¸å¤í (bottom right back)" ¤È¸À¤¤¡¢Äì¤ÈÅ·°æ¤Î¼êÁ°¤Î³Ñ¤ò¤Ä¤Ê¤°¶­ ³¦¤ò "±ôľ¼êÁ° (front vertical)" ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹ (¤³¤Î̿̾ˡ¤Ï¡¢ÆÉ ¼Ô¤¬²¼¤Îɽ¤òÍý²ò¤¹¤ë¤¿¤á¤À¤±¤Ë»È¤ï¤ì¤Þ¤¹)¡£

ÏȤϡ¢12 ¥Ó¥Ã¥È¤ÎÀ°¿ô¤ËÉä¹æ²½¤µ¤ì¤Æ¤¤¤Þ¤¹: ²¼°Ì 4 ¥Ó¥Ã¥È¤Ï plot ¤ËÂÐ ¤¹¤ë³°ÏÈ¡¢splot ¤ËÂФ·¤Æ¤ÏÄìÌ̤γ°ÏÈ¡¢¼¡¤Î 4 ¥Ó¥Ã¥È¤Ï splot ¤Î±ôľ ¤Ê³°ÏÈ¡¢¤½¤·¤Æ¾å°Ì 4 ¥Ó¥Ã¥È¤Ï splot ¤ÎÅ·°æÌ̤γ°ÏȤòÀ©¸æ¤·¤Þ¤¹¡£¤è¤Ã ¤Æ³°ÏȤÎÀßÄê¤Ï¡¢¼¡¤Îɽ¤ÎÂбþ¤¹¤ë¹àÌܤοô»ú¤ÎϤˤʤê¤Þ¤¹:

¥°¥é¥Õ¶­³¦¤ÎÉä¹æ²½
¥Ó¥Ã¥È plot splot
1 ²¼ Äì¤Îº¸¼êÁ°
2 º¸ Äì¤Îº¸¸å¤í
4 ¾å Äì¤Î±¦¼êÁ°
8 ±¦ Äì¤Î±¦¸å¤í
16 ¸ú²Ì¤Ê¤· ±ôľº¸
32 ¸ú²Ì¤Ê¤· ±ôľ¸å¤í
64 ¸ú²Ì¤Ê¤· ±ôľ±¦
128 ¸ú²Ì¤Ê¤· ±ôľ¤Î¼êÁ°
256 ¸ú²Ì¤Ê¤· Å·°æ¤Îº¸¸å¤í
512 ¸ú²Ì¤Ê¤· Å·°æ¤Î±¦¸å¤í
1024 ¸ú²Ì¤Ê¤· Å·°æ¤Îº¸¼êÁ°
2048 ¸ú²Ì¤Ê¤· Å·°æ¤Î±¦¼êÁ°
4096 ¶ËºÂɸ·Ï ¸ú²Ì¤Ê¤·

¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄêÃÍ¤Ï 31 ¤Ç¡¢¤³¤ì¤Ï plot ¤Ç¤Ï 4 Êý¸þ¤Î³°ÏÈÁ´¤Æ¡¢ splot ¤Ç¤ÏÄìÌ̤ÎÏÈÀþÁ´Éô¤È z ¼´¤òÉÁ¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

3 ¼¡¸µ¤Î 4 Ëܤαôľ¤Ê¶­³¦Àþ¤È¤ÏÊ̤ˡ¢¥³¥Þ¥ó¥É splot ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¡¢ ¶ÊÌ̤Τ½¤ì¤¾¤ì¤Î³Ñ¤«¤é¥°¥é¥Õ¤Î¾²Ì̤ؤαôľÀþ¤òÉÁ²è¤·¤Þ¤¹¡£set border ¤Ï¤³¤Î±ôľÀþ¤òÀ©¸æ¤·¤Þ¤»¤ó¡£Âå¤ï¤ê¤Ë¡¢set/unset cornerpoles ¤ò»È¤Ã¤Æ ¤¯¤À¤µ¤¤¡£

2 ¼¡¸µÉÁ²è¤Ç¤Ï¶­³¦¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤΰìÈÖ¾å¤ËÉÁ¤«¤ì¤Þ¤¹ (front)¡£ ¤â¤·¶­³¦¤òÉÁ²èÍ×ÁǤβ¼¤ËÉÁ¤«¤»¤¿¤¤¾ì¹ç¤Ï¡¢set border back ¤È¤·¤Æ¤¯¤À ¤µ¤¤¡£

3 ¼¡¸µ±£Àþ½èÍý (hidden3d) ÉÁ²è¤Ç¤Ï¡¢Ä̾ï¤Ï¶­³¦¤ò¹½À®¤¹¤ëÀþ¤âÉÁ²èÍ×ÁÇ¤È Æ±Íͤ˱£Àþ½èÍý¤ÎÂоݤˤʤê¤Þ¤¹¡£set border behind ¤È¤¹¤ë¤È¤³¤Î¥Ç¥Õ¥© ¥ë¥È¤ÎµóÆ°¤¬ÊѤï¤ê¤Þ¤¹¡£

<linestyle>, <linetype>, <linewidth>, <linecolor>, <dashtype> ¤ò»ØÄꤷ ¤Æ¡¢ÏÈÀþ¤ÎÉÁ²è¤Ë¤½¤ì¤é¤òÈ¿±Ç¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹ (¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý ¡¼¥È¤¹¤ë¤â¤Î¤Ë¸ÂÄꤵ¤ì¤Þ¤¹)¡£ ¤µ¤é¤Ë¡¢¼´¤Î¹ï¤ß (tics) ¤òÉÁ²è¤¹¤ëºÝ¤â¡¢¤½¤ì¤é¤ò¶­³¦Àþ¾å¤ÇÉÁ²è¤¹¤ë¤«¡¢ ¼´¾å¤ÇÉÁ²è¤¹¤ë¤«¤Ë´Ø¤ï¤é¤º¡¢¤³¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò»ÈÍѤ·¤Þ¤¹¡£

plot ¤Ç¤Ï¡¢Âè 2 ¼´¤òÍ­¸ú¤Ë¤¹¤ë¤³¤È¤Ç¡¢²¼¤Èº¸°Ê³°¤Î¶­³¦¤ËÌÜÀ¹¤ê¤òÉÁ¤¯ ¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: xtics (112.123)¡£

"unset surface; set contour base" ¤Ê¤É¤Ë¤è¤Ã¤Æ splot ¤ÇÄìÌÌ¤Ë¤Î¤ß ÉÁ²è¤¹¤ë¾ì¹ç¡¢±ôľÀþ¤äÅ·°æ¤Ï¤½¤ì¤é¤¬»ØÄꤵ¤ì¤Æ¤¤¤Æ¤âÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£

set grid ¤Î¥ª¥×¥·¥ç¥ó 'back', 'front', 'layerdefault' ¤Ç¤â¡¢ÉÁ²è½ÐÎÏ ¤Î¶­³¦Àþ¤ò½ñ¤¯½çÈÖ¤òÀ©¸æ¤Ç¤­¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É polar ¤Ï¡¢¶ËºÂɸ¥°¥é¥Õ¤Ë±ß·Á¤Î¶­³¦¤ò¤Ä¤±¤Þ¤¹¡£

Îã:

°Ê²¼¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÏÈÀþ¤òÉÁ¤­¤Þ¤¹:


     set border

°Ê²¼¤Ï¡¢plot ¤Ç¤Ïº¸¤È²¼¡¢splot ¤Ç¤ÏÄìÌ̤κ¸¼êÁ°¤Èº¸¸å¤í¤ÎÏÈÀþ¤òÉÁ ¤­¤Þ¤¹:


     set border 3

°Ê²¼¤Ï¡¢splot ¤Ç¼þ¤ê¤Ë´°Á´¤ÊÈ¢¤òÉÁ¤­¤Þ¤¹:


     set border 4095

°Ê²¼¤Ï¡¢¼êÁ°¤Î±ôľÌ̤ÈÅ·°æ¤Î¤Ê¤¤È¢¤òÉÁ¤­¤Þ¤¹:


     set border 127+256+512 # ¤Þ¤¿¤Ï set border 1023-128

°Ê²¼¤Ï¡¢plot ¤ËÂФ·¤Æ¾å¤È±¦ÏÈÀþ¤Î¤ß¤òÉÁ¤­¡¢¤½¤ì¤é¤ò¼´¤È¤·¤ÆÌÜÀ¹¤ê¤Å ¤±¤·¤Þ¤¹:


     unset xtics; unset ytics; set x2tics; set y2tics; set border 12

112.7 ËÀ¥°¥é¥ÕÉý (boxwidth)

¥³¥Þ¥ó¥É set boxwidth ¤Ï boxes, boxerrorbars, boxplot, candlesticks, histograms ¥¹¥¿¥¤¥ë¤Ë¤ª¤±¤ëËÀ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤òÀßÄê ¤¹¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£

½ñ¼°:


     set boxwidth {<width>} {absolute|relative}
     show boxwidth

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÎÙ¤ê¹ç¤¦ËÀ¤¬Àܤ¹¤ë¤è¤¦¤Ë³Æ¡¹¤ÎËÀ¤ÎÉý¤¬¹­¤²¤é¤ì¤Þ¤¹¡£¤½ ¤ì¤È¤Ï°Û¤Ê¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤òÀßÄꤹ¤ë¤Ë¤Ï set boxwidth ¥³¥Þ¥ó¥É¤ò»ÈÍÑ ¤·¤Þ¤¹¡£relative ¤Î¾ì¹ç¤ÎÉý¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÉý¤ËÂФ¹¤ëÈæ¤Ç¤¢¤ë¤È²ò¼á ¤µ¤ì¤Þ¤¹¡£

½¤¾þ»Ò relative ¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢ËÀ¤ÎÉý (boxwidth) ¤È¤·¤Æ»ØÄꤵ ¤ì¤¿ÌÀ¼¨Åª¤ÊÃͤϡ¢¸½ºß¤Î x ¼´¤Îñ°Ì¤Ç¤Î¿ô»ú (absolute) ¤Ç¤¢¤ë¤È²ò¼á ¤µ¤ì¤Þ¤¹¡£x ¼´¤¬Âпô¼´ (°Ê²¼»²¾È: set log (112.46)) ¤Ç¤¢¤ë¾ì¹ç¡¢boxwidth ¤ÎÃÍ ¤Ï¼ÂºÝ¤Ë¤Ï x=1 ¤Ç¤Î¤ß "ÀäÂÐŪ" ¤È¤Ê¤ê¡¢¤½¤ÎʪÍýŪ¤ÊŤµ¤¬¼´Á´ÂΤòÄ̤¸ ¤ÆÊÝ»ý¤µ¤ì¤Þ¤¹ (¤¹¤Ê¤ï¤Á¡¢ËÀ¤Ï x ºÂɸ¤ÎÁý²Ã¤Ë¤È¤â¤Ê¤Ã¤Æ¶¹¤¯¤Ê¤Ã¤¿¤ê¤Ï ¤·¤Þ¤»¤ó)¡£Âпô¼´¤Î x ¼´¤ÎÈϰϤ¬ x=1 ¤«¤éÎ¥¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Å¬ÀÚ¤ÊÉý¤ò ¸«½Ð¤¹¤Ë¤Ï²¿ÅÙ¤«»î¤·¤Æ¤ß¤ëɬÍפ¬¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£

¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢boxes ¤ä boxerrorbars ¥¹¥¿¥¤¥ë¤ÎÉý»ØÄêÍѤÎÄɲäΠ¥Ç¡¼¥¿Îó¤ÎÌÀ¼¨Åª¤ÊÃͤ¬¤¢¤ì¤Ð¤½¤ì¤Ë¤è¤Ã¤ÆÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: style boxes (36), style boxerrorbars (35)¡£

ËÀ¤ÎÉý¤ò¼«Æ°Åª¤Ë¥»¥Ã¥È¤¹¤ë¤Ë¤Ï


     set boxwidth

ËÀ¤ÎÉý¤ò¼«Æ°Åª¤ÊÃͤÎȾʬ¤Ë¤¹¤ë¤Ë¤Ï


     set boxwidth 0.5 relative

ËÀ¤ÎÉý¤òÀäÂÐŪ¤ÊÃÍ 2 ¤Ë¤¹¤ë¤Ë¤Ï


     set boxwidth 2 absolute

112.8 3 ¼¡¸µÈ¢¤Î±ü¹Ô¤­ (boxdepth)


    set boxdepth {<y extent>} | square

¥³¥Þ¥ó¥É set boxdepth ¤Ï¡¢splot with boxes ¤Çºî¤Ã¤¿ 3 ¼¡¸µ¥°¥é¥Õ¤Ë ¤Î¤ß±Æ¶Á¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢y ¼´Êý¸þ¤Î³ÆÈ¢¤Î±ü¹Ô¤­ (È¢¤ÎÂÀ¤µ) ¤òÀßÄꤷ¤Þ¤¹¡£ set boxdepth square ¤Ï¡¢y ¼´Êý¸þ¤Î±ü¹Ô¤­¤ò¡¢x ¤È y ¤Î¼´¤Î½Ì¼Ü¤È¤Ï̵ ´Ø·¸¤Ë¡¢¸«¤¿Ìܤ¬ÀµÊý·Á¤ÎÃÇÌ̤ˤʤë¤è¤¦¤ËÁªÂò¤·¤è¤¦¤È¤·¤Þ¤¹¡£

112.9 ¦Ö-·Á¾õ (chi_shapes)


    set chi_shapes fraction <value>
    unset chi_shapes

±úÊñ (concave hull) ¥Õ¥£¥ë¥¿¤Ï¡¢ÆÃÀ­Ä¹ chi_length ¤ÇÄêµÁ¤µ¤ì¤ë¦Ö-·Á¾õ (chi-shapes) ¤òÀ¸À®¤·¤Þ¤¹¡£chi_length ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¤½¤ì ¤Ï¶­³¦Â¿³Ñ·Á (ÆÌÊñ) ¤Ë¤ª¤±¤ëºÇŤÎÊÕ¤ÎÈæΨ¤ËÅù¤·¤¤ÃͤòÁªÂò¤·¤Þ¤¹¡£¤³¤Î ÈæΨ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 0.6 ¤Ç¤¹¤¬¡¢¤½¤ì¤Ï¤³¤Î¥³¥Þ¥ó¥É¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£¤½¤Î Ãͤò 1.0 ¤Ë¤¹¤ë¤È·ë²Ì¤ÎÊÄÊñ¤ÏÆÌÊñ¤Ë½Ì¤Þ¤ê¤Þ¤¹¡£¤è¤ê¾®¤µ¤¯¤¹¤ë¤È¡¢±úÉô ʬ¤¬¤è¤êÁý¤¨¤ëÊÄÊñ¤Ë¤Ê¤ê¤Þ¤¹¡£°Ê²¼»²¾È: concavehull (99.3.5.3)¡£ ¥³¥Þ¥ó¥É unset chi_shapes ¤ÏÈæΨ 0.6 ¤òÉüµ¢¤·¡¢chi_length ÊÑ¿ô¤ò̤Äê µÁ¤Ë¤·¤Þ¤¹¡£

112.10 ¥«¥é¡¼¥â¡¼¥É (color)

gnuplot ¤Ï¡¢plot ¤ä splot ¥³¥Þ¥ó¥É¤Î³ÆÍ×ÁǤˡ¢»öÁ°¤ËÄêµÁ¤·¤¿Îó¤«¤é ¼è¤ê½Ð¤·¤¿¿·¤·¤¤Àþ°À­½¸¹ç¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¿§¤òÊѹ¹¤¹¤ë ¤³¤È¤Ç°ú¤­Â³¤¯¶ÊÀþƱ»Î¤ò¶èÊ̤Ǥ­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¤¬¡¢set monochrome ¤Ë ¤è¤ë¤â¤¦°ì¤Ä¤ÎÊýË¡¤Ï¡¢ÀþÉý¤«ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤Ç¶èÊ̤Ǥ­¤ë¹õ¤¤¶ÊÀþ¤ÎÎó ¤ò»ÈÍѤ·¤Þ¤¹¡£¥³¥Þ¥ó¥É set color ¤Ï¡¢¤³¤ÎÇò¹õ¥â¡¼¥É¤òÃæÃǤ·¡¢¥Ç¥Õ¥© ¥ë¥È¤Î¥«¥é¡¼¶ÊÀþ¤Î½¸¹ç¤ËÌá¤ê¤Þ¤¹¡£ °Ê²¼»²¾È: set monochrome (112.52), set linetype (112.41), set colorsequence (112.12)¡£

112.11 ¥«¥é¡¼¥Þ¥Ã¥× (colormap)

½ñ¼°:


    set colormap new <colormap-name>
    set colormap <colormap-name> range [<min>:<max>]
    show colormaps

set colormap new <name> ¤Ï¡¢¥«¥é¡¼¥Þ¥Ã¥×ÇÛÎó <name> ¤òºîÀ®¤·¡¢¸½ºß¤Î ¥Ñ¥ì¥Ã¥ÈÀßÄê¤ò¤½¤ì¤Ë½ñ¤­½Ð¤·¤Þ¤¹¡£¤³¤ÎÊݸ¤·¤¿¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢32bit ¤Î ARGB ¥«¥é¡¼ÃͤÎÇÛÎó¤È¤·¤Æ¤Î¤µ¤é¤Ê¤ëÁàºî¤â²Äǽ¤Ç¤¹¤·¡¢¤½¤Î¸å¤Î plot ¤Ç ̾Á°¤ò»ØÄꤷ¤Æ»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

°Ê²¼¤Ï¡¢°Å¤¤ÀÖ¤«¤éÇò¤ØϢ³¤¹¤ë¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤·¡¢¤½¤ì¤ò 'Reds' ¤È¤¤¤¦Ì¾ Á°¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥ÈÇÛÎó¤ËÊݸ¤·¡¢¥«¥é¡¼¥Þ¥Ã¥×¤Î¤¹¤Ù¤Æ¤Î¥¨¥ó¥È¥ê¤ò¾¯¤·¤À ¤±Æ©ÌÀ²½¤¹¤ëÎã¤Ç¤¹¡£¤³¤Î̾Á°ÉÕ¤­¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢¸å¤Ç pm3d ¶ÊÌ̤˿§ÉÕ¤± ¤¹¤ë¤Î¤Ë»È¤Ã¤Æ¤¤¤Þ¤¹¡£Ì¾Á°ÉÕ¤­¥«¥é¡¼¥Þ¥Ã¥×¤Î¥¢¥ë¥Õ¥¡¥Á¥ã¥ó¥Í¥ëÃͤϡ¢ ARGB Àþ°À­¤Ë½¾¤¦¡¢¤¹¤Ê¤ï¤Á 0 ¤¬ÉÔÆ©ÌÀ¡¢0xff ¤¬´°Á´¤ÊÆ©ÌÀ¤Ç¤¢¤ë¤³¤È¤Ë Ãí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£


    set palette defined (0 "dark-red", 1 "white")
    set colormap new Reds
    do for [i=1:|Reds|] { Reds[i] = Reds[i] | 0x3F000000 }
    splot func(x,y) with pm3d fillcolor palette Reds

z ¤ÎÃͤ«¤é¤³¤Î¥«¥é¡¼¥Þ¥Ã¥×¤Ø¤Î¼ÌÁü¤Ï¡¢Ã¼¤ÎÃͤËÂбþ¤¹¤ë z ¤ÎºÇ¾®ÃÍ¤ÈºÇ ÂçÃͤò»ØÄꤹ¤ë¤³¤È¤ÇÄ´À°¤Ç¤­¤Þ¤¹¡£Îã:


    set colormap Reds range [0:10]

ÈϰϤòÀßÄꤷ¤Ê¤¤¾ì¹ç¡¢¤¢¤ë¤¤¤ÏºÇ¾®ÃͤȺÇÂçÃͤ¬Æ±¤¸Ãͤξì¹ç¤Ï¡¢¸½ºß¤Î cbrange ¤Î¸Â³¦Ãͤò»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: set cbrange (112.153)¡£

¥«¥é¡¼¥Þ¥Ã¥×¤Ï¡¢Ä¹Êý·ÁÎΰè¤ò¥°¥é¥Ç¡¼¥·¥ç¥óÅɤꤹ¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ °Ê²¼»²¾È: pixmap colormap (112.70.1)¡£

112.12 ¿§½ä²óÎó (colorsequence)

½ñ¼°:


    set colorsequence {default|classic|podo}

set colorsequence default ¤Ï¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Ê¤¤ 8 ¿§¤Î½ä²óÎó¤òÁª Âò¤·¤Þ¤¹¡£°Ê²¼»²¾È: set linetype (112.41), colors (20)¡£

set colorsequence classic ¤Ï¡¢½ÐÎÏ·Á¼°Ê̤ˤ½¤Î¥É¥é¥¤¥Ð¤¬ÍÑ°Õ¤¹¤ëÀþ¿§ ¤ÎÎó¤òÁªÂò¤·¤Þ¤¹¡£¿§¤Î¼ïÎà¤Ï¡¢4 ¿§¤«¤é 100 ¿§Ä¶¤Þ¤ÇÉý¤¬¤¢¤ê¤Þ¤¹¤¬¡¢¤½ ¤Î¿¤¯¤Ï¡¢ÀÖ¡¢ÎС¢ÀÄ¡¢»ç¡¢¿å¿§¡¢²«¿§¡¢¤Ç»Ï¤Þ¤ê¤Þ¤¹¡£¤³¤ì¤¬¥Ð¡¼¥¸¥ç¥ó 5 °ÊÁ°¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤Ç¤¹¡£

set colorsequence podo ¤Ï¡¢Wong (2011) [Nature Methods 8:441] ¤Ç¿ä¾© ¤µ¤ì¤Æ¤¤¤ë¡¢P ·¿¡¢D ·¿ (Protanopia, Deuteranopia) ¤Î¿§¼å¼Ô¤¬Íưפ˶èÊÌ ¤Ç¤­¤ë 8 ¿§¤ÎÁȤòÁªÂò¤·¤Þ¤¹¡£

¤¤¤º¤ì¤Î¾ì¹ç¤Ç¤â¡¢¿§Îó¤ÎŤµ¤È¤½¤Î¿§¤Ë¤Ä¤¤¤Æ¤Ï¤µ¤é¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤Ç¤­¤Þ ¤¹¡£°Ê²¼»²¾È: set linetype (112.41), colors (20)¡£

112.13 Clabel

¤³¤Î¥³¥Þ¥ó¥É¤ÏÈó¿ä¾©¤Ç¤¹¡£Âå¤ï¤ê¤Ë set cntrlabel ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£ set clabel "format" ¤Ï set cntrlabel format "format" ¤Ë¡¢ unset clabel ¤Ï set cntrlabel onecolor ¤ËÃÖ¤­´¹¤ï¤Ã¤Æ¤¤¤Þ¤¹¡£

112.14 ¥¯¥ê¥Ã¥Ô¥ó¥° (clip)

½ñ¼°:


     set clip {points|one|two|radial}
     unset clip {points|one|two|radial}
     show clip

¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ:


     unset clip points
     set clip one
     unset clip two
     unset clip radial

¥°¥é¥ÕÎΰè¤Î¶­³¦Æâ¤ËÃæ¿´¤¬¤¢¤ë¥Ç¡¼¥¿ÅÀ¤Ï¡¢¤½¤ÎÅÀ¤òɽ¤¹µ­¹æ¤Î¥µ¥¤¥º¤¬¤½ ¤Îµ­¹æ¤ò¶­³¦Àþ¤Î³°¤Ë¤Ï¤ß¤À¤·¤Æ¤·¤Þ¤¦¤è¤¦¤Ê¾ì¹ç¤Ç¤â¡¢Ä̾ï¤ÏÉÁ²è¤·¤Þ¤¹¡£ set clip points ¤Ï¡¢2 ¼¡¸µÉÁ²è¤Ç¤½¤Î¤è¤¦¤ÊÅÀ¤ÎÃæ¿´¤¬¥°¥é¥ÕÎΰèÆâ¤Ë¤¢ ¤ë¾ì¹ç¤Ç¤â¡¢¤½¤Î¤è¤¦¤ÊÅÀ¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹ (¤Ä¤Þ¤êÉÁ²è¤·¤Þ¤»¤ó)¡£ÅÀ ¤ÎÃæ¿´¤¬¥°¥é¥ÕÎΰ賰¤Ë¤¢¤ë¤è¤¦¤Ê¥Ç¡¼¥¿ÅÀ¤Ï¡¢·è¤·¤ÆÉÁ²è¤·¤Þ¤»¤ó¡£

unset clip ¤Î¾ì¹ç¤Ï¡¢Àþʬ¤Î°ìÊý¤ÎüÅÀ¤¬ÉÁ²èÈÏ°Ï (xrange ¤È yrange) ¤Î³°¤Ë¤¢¤ì¤Ð¡¢¤½¤ÎÀþʬ¤ÏÉÁ²è¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£

set clip one ¤Î¾ì¹ç¤Ï¡¢°ìÊý¤ÎüÅÀ¤¬ÉÁ²èÈÏ°ÏÆâ¤Ë¤¢¤Ã¤Æ¡¢¤«¤Ä¤â¤¦°ìÊý ¤ÎüÅÀ¤¬Èϰϳ°¤Ë¤¢¤ë¤è¤¦¤ÊÀþʬ¤Î¡¢ÈÏ°ÏÆâ¤Ë´Þ¤Þ¤ì¤ëÉôʬ¤òÉÁ²è¤¹¤ë¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ set clip two ¤Ï¡¢Î¾Êý¤ÎüÅÀ¤¬ÉÁ²èÈϰϳ°¤Ë¤¢¤ëÀþʬ¤Î¡¢ÈÏ°ÏÆâ¤ÎÉôʬ¤ò ÉÁ²è¤¹¤ë¤è¤¦¤Ë gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£ ÀþʬÁ´ÂΤ¬ÉÁ²èÈϰϳ°¤Ç¤¢¤ë¤è¤¦¤ÊÀþʬ¤Ï·è¤·¤ÆÉÁ²è¤·¤Þ¤»¤ó¡£

set clip radial ¤Ï¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£¤³¤ì¤Ï¡¢Àþ¤Î¥¯ ¥ê¥Ã¥Ô¥ó¥°¤ò¡¢set rrange [0:MAX] ¤Ç³ÎÄꤹ¤ë±ß¾õ¶­³¦¤ËÂФ·¤Æ¹Ô¤¤¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤϡ¢set clip {one|two} ¤ÈÁȤ߹ç¤ï¤»¤Æ»ÈÍѤ·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ R > RMAX ¤Ç¤¢¤ë 2 ¤Ä¤ÎÅÀ¤Î´Ö¤ÎÀþ¤¬ R = RMAX ¤Î±ß¤Ë¤è¤Ã¤ÆÀÚ¤ê¼è¤é¤ì¤ëÉô ʬ¤Ï¡¢clip two ¤È clip radial ¤ÎξÊý¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ßÉÁ²è¤µ ¤ì¤Þ¤¹¡£

Ãí°Õ:

* set clip ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë lines, linespoints, points, arrows, vectors ¤ÇÀ¸À®¤µ¤ì¤ëÅÀ¡¢Àþʬ¤Î¤ß¤Ë±Æ¶Á¤·¤Þ¤¹¡£

* pm3d ¶ÊÌ̤侤ÎÃæ¿È¤ÎµÍ¤Þ¤Ã¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ÎÉÁ²è¤Ë»ÈÍѤ¹¤ë¿§Ä¹Êý·Á ¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤ÎÀ©¸æ¤Ï¡¢set pm3d clipping ¤Ç¹Ô¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢ ¸½ºß¤Î zrange ¤ËÂФ¹¤ë³ê¤é¤«¤Ê¥¯¥ê¥Ã¥Ô¥ó¥°¤Ç¤¹¡£

* ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï¡¢¸Ä¡¹¤Î¥ª¥Ö¥¸¥§¥¯¥È (object) ¤Î clip ¤« noclip °À­¤ÇÀ©¸æ¤·¤Þ¤¹¡£

* ¸½ºß¤Î gnuplot ¤ÎÈǤǤϡ¢¶ËºÂɸ¥â¡¼¥É¤Î "plot with vectors" ¤Ï¡¢¥Æ¥¹ ¥È¤·¤Æ¤¤¤Þ¤»¤ó¤·¡¢ºÇÂçȾ·Â¤ËÂФ¹¤ë¥¯¥ê¥Ã¥Ô¥ó¥°¤â¤·¤Þ¤»¤ó¡£

112.15 Åù¹âÀþ¥é¥Ù¥ë (cntrlabel)

½ñ¼°:


     set cntrlabel {format "format"} {font "font"}
     set cntrlabel {start <int>} {interval <int>}
     set cntrlabel onecolor

set cntrlabel ¤Ï¡¢ËÞÎãÆâ (¥Ç¥Õ¥©¥ë¥È) ¤«¡¢splot ... with labels ¤Î ºÝ¤Î¥°¥é¥Õ¾å¤ÎÅù¹âÀþ¤Î¥é¥Ù¥ë¤òÀ©¸æ¤·¤Þ¤¹¡£¸å¼Ô¤Î¾ì¹ç¡¢¥é¥Ù¥ë¤Ï¥é¥Ù¥ëµ­ ½Ò°À­¤Î pointinterval ¤« pointnumber ¤Ë½¾¤Ã¤Æ³ÆÅù¹âÀþ¤Ë±è¤Ã¤ÆÇÛÃÖ ¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥é¥Ù¥ë¤ÏÅù¹âÀþ¤ò¹½À®¤¹¤ë 5 ÈÖÌܤÎÀþʬ¤Î¾å¤ËÃÖ ¤«¤ì¡¢20 ¸Ä¤ÎÀþʬËè¤Ë·«¤êÊÖ¤µ¤ì¤Þ¤¹¡£¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢°Ê²¼¤ÈƱ¤¸¤Ç¤¹:


     set cntrlabel start 5 interval 20

¤³¤ì¤é¤ÎÃͤϥ³¥Þ¥ó¥É set cntrlabel ¤Ç¡¢¤¢¤ë¤¤¤Ï splot ¥³¥Þ¥ó¥É¤Ë´Ö ³Ö¤ò»ØÄꤹ¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹:


     set contours; splot $FOO with labels point pointinterval -1

´Ö³Ö¤òÉé¤ÎÃͤËÀßÄꤹ¤ë¤È¡¢¥é¥Ù¥ë¤Ï³ÆÅù¹âÀþ¤Ë 1 ¤Ä¤À¤±¤Ä¤­¤Þ¤¹¡£¤·¤«¤· set samples ¤« set isosamples ¤¬Â礭¤ÊÃͤξì¹ç¤Ï¿¤¯¤ÎÅù¹âÀþ¤ò¥é¥Ù ¥ë°ì¤Ä¤À¤±¤ÇÉÁ¤­¤Þ¤¹¡£

ËÞÎã (key) ¤Ë¤Ï¡¢Åù¹âÀþ¥é¥Ù¥ë¤ò¤½¤ì¤¾¤ì¤ÎÀþ¼ï (linetype) ¤ò»ÈÍѤ·¤Æ½ñ ¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Àþ¼ï¼«¿È¤¬³ÆÅù¹âÀþ¤Î¥ì¥Ù¥ë¤òÍ¿¤¨¤ë¤Î¤Ç¡¢¤½¤ì¤¾ ¤ì¤ËÂФ¹¤ëÊÌ¡¹¤Î¥é¥Ù¥ë¤¬¸½¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É set cntrlabel onecolor ¤Ï ¤¹¤Ù¤Æ¤ÎÅù¹âÀþ¤òƱ¤¸Àþ¼ï¤ÇÉÁ²è¤¹¤ë¤Î¤Ç¡¢ËÞÎã¤Ë¤Ï°ì¤Ä¤Î¥é¥Ù¥ë¤Î¤ß¤ò½ñ¤­ ¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸Å¤¤¥³¥Þ¥ó¥É unset clabel ¤òÃÖ¤­´¹¤¨¤ë¤â¤Î¤Ç¤¹¡£

112.16 Åù¹âÀþÀ©¸æ (cntrparam)

set cntrparam ¤ÏÅù¹âÀþ¤ÎÀ¸À®ÊýË¡¡¢¤ª¤è¤Ó¤½¤ì¤ò³ê¤é¤«¤ËÉÁ²è¤¹¤ëÊýË¡¤ò À©¸æ¤·¤Þ¤¹¡£show contour ¤Ï¸½ºß¤Î contour ¤ÎÀßÄê¤À¤±¤Ç¤Ê¤¯ cntrparam ¤ÎÀßÄê¤ò¤âɽ¼¨¤·¤Þ¤¹¡£

½ñ¼°:


     set cntrparam { { linear
                     | cubicspline
                     | bspline
                     | points <n>
                     | order <n>
                     | levels { <n>
                                | auto {<n>}
                                | discrete <z1> {,<z2>{,<z3>...}}
                                | incremental <start>, <incr> {,<end>}
                              }
                       {{un}sorted}
                       {firstlinetype N}
                     }
                   }
     show cntrparam

¤³¤Î¥³¥Þ¥ó¥É¤Ï 2 ¤Ä¤Îµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£°ì¤Ä¤ÏÅù¹âÀþ¾å¤ÎÅÀ¤ò·è¤á¤ë¤¿ ¤á¤Î z ¤ÎÃͤÎÀßÄê¤Ç¤¹¡£Åù¹âÀþ¤Î¥ì¥Ù¥ë¤Î¿ô <n> ¤ÏÀ°¿ô·¿¤ÎÄê¿ô¼°¤Ç¤Ê¤±¤ì ¤Ð¤¤¤±¤Þ¤»¤ó¡£<z1>, <z2> ... ¤Ï¼Â¿ôÃͤοô¼°¤Ç¤¹¡£ ¤â¤¦°ì¤Ä¤Ï¡¢¸Ä¡¹¤ÎÅù¹âÀþ¤Î¸«¤¿ÌܤÎÀ©¸æ¤Ç¤¹¡£

Åù¹âÀþ¤ÎÊ¿³ê²½¤òÀ©¸æ¤¹¤ë¥­¡¼¥ï¡¼¥É:

linear, cubicspline, bspline — ¶á»÷ (Êä´Ö) ÊýË¡¤ò»ØÄꤷ¤Þ¤¹¡£ linear ¤Ê¤é¤Ð¡¢Åù¹âÀþ¤Ï¶ÊÌ̤«¤éÆÀ¤é¤ì¤¿Ãͤò¶èʬŪ¤ËľÀþ¤Ç·ë¤Ó¤Þ¤¹¡£ cubicspline (3 ¼¡¥¹¥×¥é¥¤¥ó) ¤Ê¤é¤Ð¡¢¶èʬŪ¤ÊľÀþ¤Ï¤¤¤¯¤Ö¤ó¤Ê¤á¤é¤« ¤ÊÅù¹âÀþ¤¬ÆÀ¤é¤ì¤ë¤è¤¦¤ËÊä´Ö¤µ¤ì¤Þ¤¹¤¬¡¢Â¿¾¯ÇÈÂǤIJÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ bspline (B-spline) ¤Ï¡¢¤è¤ê³ê¤é¤«¤Ê¶ÊÀþ¤òÉÁ¤¯¤³¤È¤¬Êݾڤµ¤ì¤Þ¤¹¤¬¡¢ ¤³¤ì¤Ï z ¤ÎÅù¤·¤¤ÅÀ¤Î°ÌÃÖ¤ò¶á»÷¤·¤Æ¤¤¤ë¤À¤±¤Ç¤¹¡£

points — ºÇ½ªÅª¤Ë¤Ï¡¢Á´¤Æ¤ÎÉÁ²è¤Ï¡¢¶èʬŪ¤ÊľÀþ¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤³ ¤Ç»ØÄꤹ¤ë¿ô¤Ï¡¢bspline ¤Þ¤¿¤Ï cubicspline ¤Ç¤Î¶á»÷¤Ë»È¤ï¤ì¤ëÀþʬ ¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹¡£¼ÂºÝ¤Ë¤Ï cubicspline ¤È bspline ¤Î¶è´Ö (¶ÊÀþÀþʬ) ¤Î ¿ô¤Ï points ¤ÈÀþʬ¤Î¿ô¤ÎÀѤËÅù¤·¤¯¤Ê¤ê¤Þ¤¹¡£

order — bspline ¶á»÷¤Î¼¡¿ô¤Ç¤¹¡£¤³¤Î¼¡¿ô¤¬Â礭¤¯¤Ê¤ë¤Ë¤Ä¤ì¤Æ¡¢Åù¹â Àþ¤Ï¤Ê¤á¤é¤«¤Ë¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó¡¢¹â¼¡¤Î bspline ¶ÊÀþ¤Ë¤Ê¤ë¤Û¤É¡¢¸µ¤Î ¶èʬŪľÀþ¤«¤é¤ÏÎ¥¤ì¤Æ¤¤¤­¤Þ¤¹)¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï bspline ¥â¡¼¥É¤Ç¤Î ¤ßÍ­¸ú¤Ç¤¹¡£»ØÄê¤Ç¤­¤ëÃͤϡ¢2 (ľÀþ) ¤«¤é 10 ¤Þ¤Ç¤ÎÀ°¿ô¤Ç¤¹¡£

Åù¹âÀþ¥ì¥Ù¥ë¤ÎÁªÂò¤òÀ©¸æ¤¹¤ë¥­¡¼¥ï¡¼¥É:

levels auto — ¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£<n> ¤Ï²¾¤Î¥ì¥Ù¥ë¤Î¿ô¤Ç¤¢¤ê¡¢¼Â ºÝ¤Î¥ì¥Ù¥ë¤Î¿ô¤Ï¡¢´Êñ¤Ê¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¤è¤¦¤ËÄ´Àᤵ¤ì¤Þ¤¹¡£¶ÊÌ̤Πz ºÂɸ¤¬ zmin ¤«¤é zman ¤ÎÈϰϤˤ¢¤ë¤È¤­¡¢Åù¹âÀþ¤Ï¤½¤Î´Ö¤Î dz ¤ÎÀ°¿ôÇÜ¤Ë ¤Ê¤ë¤è¤¦¤ËÀ¸À®¤µ¤ì¤Þ¤¹¡£¤³¤³¤Ç¡¢dz ¤Ï 10 ¤Î¤¢¤ë¤Ù¤­¾è¤Î 1, 2, 5 ÇÜ¡¢¤Î ¤¤¤º¤ì¤«¤Ç¤¹ (2 ¤Ä¤ÎÌÜÀ¹¤ê¤Î´Ö¤òÃúÅÙ³ä¤êÀÚ¤ë¤è¤¦¤Ë)¡£

levels discrete — Åù¹âÀþ¤Ï»ØÄꤵ¤ì¤¿ z = <z1>, <z2> ... ¤ËÂФ·¤ÆÀ¸ À®¤µ¤ì¤Þ¤¹¡£»ØÄꤷ¤¿¸Ä¿ô¤¬Åù¹âÀþ¤Î¥ì¥Ù¥ë¤Î¸Ä¿ô¤È¤Ê¤ê¤Þ¤¹¡£discrete ¥â¡¼¥É¤Ç¤Ï¡¢set cntrparams levels <n> ¤È¤¤¤¦»ØÄê¤Ï¾ï¤Ë̵»ë¤µ¤ì¤Þ¤¹¡£

levels incremental — Åù¹âÀþ¤Ï z = <start> ¤«¤é»Ï¤Þ¤ê¡¢<increment> ¤º¤ÄÁý¤¨¤Æ¹Ô¤­¸Â³¦¤Î¸Ä¿ô¤Ë㤹¤ë¤Þ¤Ç½ñ¤«¤ì¤Þ¤¹¡£<end> ¤Ï¤½¤ÎÅù¹âÀþ¤Î¿ô ¤ò·èÄꤹ¤ë¤Î¤Ë»È¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¸å¤Î set cntrparam levels <n> ¤Ë¤è¤Ã ¤Æ¾ï¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£z ¼´¤¬Âпô¼´¤Î¾ì¹ç¡¢set ztics ¤Î¾ì¹ç¤ÈƱÍͤˡ¢ <increment> ¤ÏÇÜ¿ô¤È¤·¤Æ²ò¼á¤·¡¢<end> ¤Ï»ÈÍѤ·¤Þ¤»¤ó¡£

Åù¹âÀþ¤ÎÀþ¼ï¤Î³ä¤êÅö¤Æ¤òÀ©¸æ¤¹¤ë¥­¡¼¥ï¡¼¥É:

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Åù¹âÀþ¤Ï»ØÄê¤ÎµÕ½ç¤ËÀ¸À®¤·¤Þ¤¹ (unsorted)¡£¤¹¤ï¤Ê¤Á¡¢ set cntrparam levels increment 0, 10, 100 ¤Ï¡¢100 ¤«¤é»Ï¤Þ¤Ã¤Æ¡¢0 ¤Ç ½ª¤ï¤ë 11 ËܤÎÅù¹âÀþ¤òºî¤ê¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É sorted ¤òÄɲ乤ë¤È¡¢¿ôÃÍ ¤ÎÁý²ÃÊý¸þ¤Î½ç¤ÎÀ¸À®¤ËÊѹ¹¤·¡¢Î㤨¤Ðº£¤ÎÎã¤Ç¤Ï¡¢ºÇ½é¤Ë 0 ¤ÎÅù¹âÀþ¤ò½ñ ¤¯¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Åù¹âÀþ¤Ï¡¢Âбþ¤¹¤ë¶ÊÌ̤˻ÈÍѤ·¤¿Àþ¼ï¤Î¡¢¼¡¤«¤é¤ÎÀþ¼ïÎó ¤ÇÉÁ¤­¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢splot x*y lt 5 ¤ÎºÇ½é¤ÎÅù¹âÀþ¤ÏÀþ¼ï 6 ¤Ç¤¹¡£ hidden3d ¥â¡¼¥É¤¬Í­¸ú¤Ê¾ì¹ç¡¢³Æ¶ÊÌÌ¤Ë¤Ï 2 ¤Ä¤ÎÀþ¼ï¤ò»È¤¦¤Î¤Ç¡¢¥Ç¥Õ¥© ¥ë¥È¤ÎÀßÄê¤Ç¤Ï¡¢ºÇ½é¤ÎÅù¹âÀþ¤È¶ÊÌ̤Î΢Ì̤ÎÉÁ²è¤ËƱ¤¸Àþ¼ï¤ò»È¤Ã¤Æ¤·¤Þ¤¤ ¤Þ¤¹¤¬¡¢¤³¤ì¤Ï˾¤Þ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì¤òÈò¤±¤ë¤Ë¤Ï¡¢°Ê²¼¤Î 2 ¤Ä¤ÎÊýË¡ ¤¬¤¢¤ê¤Þ¤¹¡£ (1) set hidden3d offset N ¤Ë¤è¤ê¡¢¶ÊÌ̤Î΢Ì̤ÎÀþ¼ï¤òÊѹ¹¤¹¤ë¤³¤È¡£ offset -1 ¤È¤¹¤ë¤Î¤¬¤¤¤¤¤Ç¤¹¤¬¡¢¤³¤ì¤Ê¤é¤¹¤Ù¤Æ¤ÎÅù¹âÀþ¤ÎÀþ¼ï¤È¤Ö¤Ä¤« ¤ê¤Þ¤»¤ó¡£ (2) ¥ª¥×¥·¥ç¥ó set cntrparam firstlinetype N ¤Ë¤è¤ê¡¢¶ÊÌ̤ǻÈÍѤ¹¤ë Àþ¼ï¤È¤ÏÆÈΩ¤Ê¡¢Åù¹âÀþ¤Ç»ÈÍѤ¹¤ëÀþ¼ï·²¤ò»ØÄꤹ¤ë¤³¤È¡£¤³¤ì¤Ï¡¢ÆäËÅù¹â Àþ¤ÎÀþ¼ï¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤¤¾ì¹ç¤Ë¤ÏÍ­ÍѤǤ·¤ç¤¦¡£N <= 0 ¤Î¾ì¹ç¤Ï¥Ç¥Õ ¥©¥ë¥È¤ËÌá¤ê¤Þ¤¹¡£

¥³¥Þ¥ó¥É set cntrparam ¤ò°ú¿ô̵¤·¤Ç»ÈÍѤ¹¤ë¤È¡¢»ØÄꤷ¤¿¤¹¤Ù¤Æ¤Î¥ª¥× ¥·¥ç¥óÃͤò¥Ç¥Õ¥©¥ë¥È¤Ë¥ê¥»¥Ã¥È¤·¤Þ¤¹¡£


     set cntrparam order 4 points 5
     set cntrparam levels auto 5 unsorted
     set cntrparam firstlinetype 0

112.16.1 Cntrparam ¤ÎÎã (cntrparam examples)

Îã:


     set cntrparam bspline
     set cntrparam points 7
     set cntrparam order 10

°Ê²¼¤Ï¥ì¥Ù¥ë¤Î´ð½à¤¬¹ç¤¨¤Ð 5 ¸Ä¤Î¥ì¥Ù¥ë¤¬¤Ë¼«Æ°Åª¤ËÁªÂò¤µ¤ì¤Þ¤¹:


     set cntrparam levels auto 5

°Ê²¼¤Ï .1, .37, .9 ¤Ë¥ì¥Ù¥ë¤òÀßÄꤷ¤Þ¤¹:


     set cntrparam levels discrete .1,1/exp(1),.9

°Ê²¼¤Ï 0 ¤«¤é 4 ¤Þ¤Ç¡¢1 ¤º¤ÄÁý¤ä¤¹¥ì¥Ù¥ë¤òÀßÄꤷ¤Þ¤¹:


     set cntrparam levels incremental  0,1,4

°Ê²¼¤Ï¥ì¥Ù¥ë¤Î¿ô¤ò 10 ¤ËÀßÄꤷ¤Þ¤¹ (Áý²Ã¤ÎºÇ¸å¤ÎÃÍ (end) ¤Þ¤¿¤Ï¼«Æ°¤Ç ÀßÄꤵ¤ì¤ë¥ì¥Ù¥ë¤Î¿ô¤ÏÊѹ¹¤µ¤ì¤Þ¤¹):


     set cntrparam levels 10

°Ê²¼¤Ï¥ì¥Ù¥ë¤Î¿ô¤ÏÊÝ»ý¤·¤¿¤Þ¤Þ¥ì¥Ù¥ë¤Î³«»ÏÃͤÈÁýʬÃͤòÀßÄꤷ¤Þ¤¹:


     set cntrparam levels incremental 100,50

°Ê²¼¤Ï¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿Åù¹âÀþ¤ÎÀþ¼ï·²¤òÄêµÁ¤·¡¢»ÈÍѤ·¤Þ¤¹:


     set linetype 100 lc "red" dt '....'
     do for [L=101:199] {
         if (L%10 == 0) {
             set linetype L lc "black" dt solid lw 2
         } else {
             set linetype L lc "gray" dt solid lw 1
         }
     }
     set cntrparam firstlinetype 100
     set cntrparam sorted levels incremental 0, 1, 100

Åù¹âÀþ¤òÉÁ¤¯¾ì½ê¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set contour (112.19)¡£Åù¹âÀþ¤Î¥é ¥Ù¥ë¤Î½ñ¼°¤ÈÀþ¼ï¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£

°Ê²¼¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ Åù¹âÀþ¤Î¥Ç¥â (contours.dem)

¤ª¤è¤Ó ¥æ¡¼¥¶ÄêµÁ¥ì¥Ù¥ë¤ÎÅù¹âÀþ¤Î¥Ç¥â (discrete.dem).

112.17 ¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox)

¥Ñ¥ì¥Ã¥È¤Ç¤Î¿§ÉÕ¤±¤ò»ÈÍѤ¹¤ë¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¡¢ÆÃ¤Ë pm3d ¤Ç¤Î¥°¥é¥Õ¤Ç¤Ï¡¢ ¥Ñ¥ì¥Ã¥È¤Î¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò¡¢unset colorbox ¤Ç¥¹¥¤¥Ã¥Á¤¬¥ª¥Õ¤Ë¤Ê¤Ã¤Æ ¤¤¤Ê¤¤¸Â¤ê¡¢¥°¥é¥Õ¤Î²£¤Î¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox) Æâ¤ËÉÁ¤­¤Þ¤¹¡£


     set colorbox
     set colorbox {
                { vertical | horizontal } {{no}invert}
                { default | bottom | user }
                { origin x, y }
                { size x, y }
                { front | back }
                { noborder | bdefault | border <linestyle> }
              }
     show colorbox
     unset colorbox

¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÊý¸þ¤Ï¡¢¥ª¥×¥·¥ç¥ó vertical (½Ä) ¤È horizontal (²£) ¤ÇÀßÄꤷ¤Þ¤¹¡£

¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î°ÌÃ֤ϡ¢default, bottom, user ¤Î¤¤¤º¤ì¤«¤ò»ØÄê¤Ç ¤­¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É bottom ¤Ï¡¢°Ê²¼¤ÈƱÅù¤ÎÊØÍø¤Ê¥·¥ç¡¼¥È¥«¥Ã¥È¤Ç¤¹:


    set colorbox horizontal user origin screen 0.1, 0.07 size 0.8, 0.03.

bottom ¤Ç»ØÄꤷ¤¿¾ì¹ç¤Î¤è¤¦¤Ë¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤¬¥°¥é¥Õ¤Î²¼¤Ë¤¢¤ë¤È¤­¤Ï¡¢ ¤½¤ìÍѤËÄɲå¹¥Ú¡¼¥¹¤ò¼è¤ë¤ÈÊØÍø¤Ç¤·¤ç¤¦: set bmargin screen 0.2¡£

origin x, y ¤È size x, y ¤Ï¡¢user ¤« bottom ¤ÎÇÛÃ֤ǤÎÀµ³Î¤Ê°Ì ÃÖ¹ç¤ï¤»¤Î¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£x, y ¤ÎÃͤϡ¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥¹¥¯¥ê¡¼¥óºÂɸ¤È ²ò¼á¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï 3 ¼¡¸µ¥°¥é¥Õ¤Ë´Ø¤·¤Æ¤Ï·Á¼°Åª¤Ê¥ª¥×¥·¥ç¥ó¤Ë²á¤®¤Þ ¤»¤ó¡£set view map ¤Ë¤è¤ë splot ¤ò´Þ¤à 2 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢Ç¤°Õ¤ÎºÂɸ·Ï ¤¬»È¤¨¤Þ¤¹¡£

back/front ¤Ï¡¢¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ò¥°¥é¥Õ¤è¤êÁ°¤Ë½ñ¤¯¤«¡¢¸å¤Ç½ñ¤¯¤«¤ò À©¸æ¤·¤Þ¤¹¡£

border ¤Ï¶­³¦ÉÁ²è¤ò ON ¤Ë¤·¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È) ¤·¡¢noborder ¤Ï¶­³¦ÉÁ ²è¤ò OFF ¤Ë¤·¤Þ¤¹¡£border ¤Î¸å¤í¤ËÀµ¤ÎÀ°¿ô¤òÍ¿¤¨¤ë¤È¡¢¤½¤ì¤ò¶­³¦¤òÉÁ ²è¤¹¤ë»þ¤Î line style ¤Î¥¿¥°¤È¤·¤Æ»È¤¤¤Þ¤¹¡£Î㤨¤Ð:


   set style line 2604 linetype -1 linewidth .4
   set colorbox border 2604

¤Ï line style 2604¡¢¤¹¤Ê¤ï¤ÁºÙ¤¤Àþ¤Î¥Ç¥Õ¥©¥ë¥È¤Î¶­³¦¿§ (-1) ¤Ç¶­³¦¤ò ÉÁ²è¤·¤Þ¤¹¡£bdefault (¥Ç¥Õ¥©¥ë¥È) ¤Ï¡¢¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¶­³¦¤ÎÉÁ²è¤Ë¥Ç ¥Õ¥©¥ë¥È¤Î¶­³¦¤Î line style ¤ò»È¤¤¤Þ¤¹¡£

¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¼´¤Ï cb ¤È¸Æ¤Ð¤ì¡¢Ä̾ï¤Î¼´¤Î¥³¥Þ¥ó¥É¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£ ¤¹¤Ê¤ï¤Á set/unset/show ¤Ç cbrange, [m]cbtics, format cb, grid [m]cb, cblabel ¤Ê¤É¤¬¡¢¤½¤·¤Æ¿ʬ cbdata, [no]cbdtics, [no]cbmtics ¤Ê¤É¤â»È¤¨¤ë¤Ç¤·¤ç¤¦¡£

¥Ñ¥é¥á¡¼¥¿Ìµ¤·¤Î set colorbox ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃÖ¤ØÀÚÂؤ¨¤Þ¤¹¡£ unset colorbox ¤Ï¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤Î¥Ñ¥é¥á¡¼¥¿¤ò¥Ç¥Õ¥©¥ë¥ÈÃͤ˥ꥻ¥Ã¥È ¤·¡¢¤½¤Î¾å¤Ç¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤ò OFF ¤Ë¤·¤Þ¤¹¡£

°Ê²¼¤â»²¾È: set pm3d (112.71), set palette (112.67), set style line (112.86.8)¡£

112.18 ¿§Ì¾ (colornames)

Image figure_colornames
gnuplot ¤Ï¸ÂÄꤵ¤ì¤¿¸Ä¿ô¤Î¿§¤Î̾Á°¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢pm3d ¥Ñ¥ì ¥Ã¥È¤Ç¤Ä¤Ê¤¬¤ì¤ë¿§¤ÎÈϰϤòÄêµÁ¤¹¤ë¤Î¤Ë¡¢¤¢¤ë¤¤¤Ï¸Ä¡¹¤ÎÀþ¼ï¤ä¥é¥¤¥ó¥¹¥¿ ¥¤¥ë¤Î¿§¤òÄêµÁ¤·¤¹¤ë¤Î¤Ë¡¢¤Þ¤¿¤Ï¸½ºß¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ËÂФ¹¤ë¥°¥é¥Ç¡¼¥· ¥ç¥ó¤òÄêµÁ¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¥³¥Þ¥ó¥É show colornames ¤ò»ÈÍѤ¹¤ë¤³¤È ¤Ç¡¢»ý¤Ã¤Æ¤¤¤ë¿§Ì¾¤Î°ìÍ÷¤È¤½¤Î RGB À®Ê¬¤ÎÄêµÁ¤ò¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ Îã:


     set style line 1 linecolor "sea-green"
     set palette defined (0 "dark-red", 1 "white")
     print sprintf("0x%06x", rgbcolor("dark-green"))
           0x006400

112.19 Åù¹âÀþ (contour)

¥³¥Þ¥ó¥É set contour ¤Ç 3 ¼¡¸µ¶ÊÌ̤ËÅù¹âÀþ¤òÃÖ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤Î ¥ª¥×¥·¥ç¥ó¤Ï splot ¤Ç¤Î¤ßÍ­¸ú¤Ç¤¹¡£¤³¤ì¤Ï¡¢³Ê»Ò¾õ¥Ç¡¼¥¿ (grid data) ¤òɬÍפȤ·¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢°ì¤Ä¤Î y-¸ÉΩÀþ¤ËÂФ¹¤ë¤¹¤Ù¤Æ¤ÎÅÀ¤¬Ê¤٤é¤ì¡¢ ¤½¤Î¼¡¤Ë¼¡¤Î y-¸ÉΩÀþ¤ËÂФ¹¤ë¤¹¤Ù¤Æ¤ÎÅÀ¤¬Ê¤ӡ¢°Ê²¼Æ±Íͤ˳¤¯¥Ç¡¼¥¿¤Î ¥Õ¥¡¥¤¥ë¤Ç¤¹¡£y-¸ÉΩÀþƱ»Î¤òʬΥ¤¹¤ë¤Î¤Ïñ°ì¤Î¶õ¹Ô (¶õÇò°Ê³°¤Îʸ»ú¤ò°ì Àڴޤޤʤ¤¹Ô) ¤Ç¤¹¡£¾ÜºÙ¤Ï°Ê²¼»²¾È: grid_data (115.2)¡£

¥Ç¡¼¥¿¤¬³Ê»Ò¾õ¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢set dgrid3d ¤ò»È¤Ã¤ÆºÇ½é¤ËŬÀÚ¤Ê³Ê »Ò¤òÀ¸À®¤·¡¢¤½¤Î³Ê»Ò¤Ë¥Ç¡¼¥¿¤òÅö¤Æ¤Ï¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set contour {base | surface | both}
     unset contour
     show contour

¤³¤ì¤é¤Î 3 ¤Ä¤Î¥ª¥×¥·¥ç¥ó¤ÏÅù¹âÀþ¤ò¤É¤³¤Ë°ú¤¯¤«¤ò»ØÄꤷ¤Þ¤¹¡£base ¤Ç ¤ÏÅù¹âÀþ¤ò x/y ¼´¤Î¹ï¤ß¤Î¤¢¤ëÄìÌ̤ËÉÁ¤«¤ì¡¢surface ¤Ç¤ÏÅù¹âÀþ¤Ï¤½¤Î ¶ÊÌ̼«ÂΤξå¤ËÉÁ¤«¤ì¡¢both ¤Ç¤ÏÄìÌ̤ȶÊÌ̾å¤ÎξÊý¤ËÉÁ¤«¤ì¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï base ¤Ç¤¢¤ë¤È²¾Äꤵ¤ì¤Þ¤¹¡£

Åù¹âÀþ¤ÎÉÁ²è¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¥Ñ¥é¥á¡¼¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrparam (112.16)¡£Åù¹âÀþ¤Î¥é¥Ù¥ë¤ÎÀ©¸æ¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£

¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Àþ¤ä¥é¥Ù¥ë¤òÇÛÃÖ¤¹¤ë¤â¤Î¤Ç¡¢¶ÊÌ̼«¿È¤Î¤½¤Î¾¤Î¸«¤¿ÌÜ ¤ÏÊѤ¨¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¶ÊÌ̤ο§ÉÕ¤±¤ò¡¢Åù¹âÀþ¤Ç¶èÀÚ¤é¤ì¤¿ÎÎ °è¤¬Â¾¤È¶èÊ̤Ǥ­¤ë¤è¤¦¤Ê¿§¤Ë³ä¤êÅö¤Æ¤¿¤¤¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤ËÉÁ²è¥¹¥¿¥¤¥ë contourfill ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤µ¤¤¡£°Ê²¼»²¾È: contourfill (41)¡£

set contour ¤¬Í­¸ú¤Ê¾ì¹ç¡¢splot with <style> ¤Ç points, lines, impulses, labels Åù¤ÎÉÁ²èÍ×ÁǤòÅù¹âÀþ¤Ë±è¤Ã¤ÆÇÛÃ֤Ǥ­¤Þ¤¹¡£with pm3d ¤Ï¡¢pm3d ¶ÊÌ̤òÀ¸À®¤·¡¢¤µ¤é¤ËÅù¹âÀþ¤â½ñ¤­¤Þ¤¹¡£ set contour ¤¬Í­¸ú¤ÊºÝ¤ËÀ¸À®¤¹¤ëÅù¹âÀþ¤Ë¡¢¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤ó¤À¥é¥Ù ¥ë¤Ê¤É¤Î¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤ⺮¤¼¤¿¤¤¾ì¹ç¤Ï¡¢splot ¥³¥Þ¥ó¥ÉÆâ¤Î¤½¤ÎÌ¿Îá¤Î ¸å¤í¤Ë¥­¡¼¥ï¡¼¥É nocontours ¤òÄɲ䷤ʤ¤¤È¤¤¤±¤Þ¤»¤ó¡£

¶ÊÌ̤ò¥¹¥¤¥Ã¥Á¥ª¥Õ (°Ê²¼»²¾È: unset surface (112.87)) ¤Ë¤·¤Æ¡¢Åù¹âÀþ¤Î¤ß¤Î¥° ¥é¥Õ¤Ë¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£Åù¹âÀþ¤Î 2 ¼¡¸µ¼Í±Æ¤È¥ª¥×¥·¥ç¥ó¤Î¥é¥Ù¥ë¤Ï°Ê ²¼¤Î¤è¤¦¤Ë¤·¤ÆÀ¸À®¤Ç¤­¤Þ¤¹:


    set view map
    splot DATA with lines nosurface, DATA with labels

°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¡¢Âå¤ï¤ê¤È¤Ê¤ë¿Ãʳ¬¤ÎÊý Ë¡¤ò»È¤Ã¤Æ 3 ¼¡¸µ¤ÎÅù¹âÀþ¤ò¥Õ¥¡¥¤¥ë¤ä¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ËÊݸ¤·¡¢¤½¤Î¸å¤Ç ¤½¤ì¤ò 2 ¼¡¸µ¤Î plot ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤½¤ì¤òÉÁ²è¤·¤Æ¤¤¤Þ¤·¤¿¡£


     set contour
     set table $datablock
     splot DATA with lines nosurface
     unset table
     # Åù¹âÀþ¤Ï $datablock ¤Ë¡¢1 ¤Ä¤ÎÅù¹âÀþ¤¬ 1 ¤Ä¤Î index ¤Ç
     plot for [level=0:*] $datablock index level with lines

°Ê²¼¤â»²¾È: splot datafile (115.1)¡£¤Þ¤¿¡¢ ^ <a href="http://www.gnuplot.info/demo/contours.html"> Åù¹âÀþ¤Î¥Ç¥â (contours.dem) ^ </a> ¤È ^ <a href="http://www.gnuplot.info/demo/discrete.html"> Åù¹âÀþ¥ì¥Ù¥ë¤Î¥æ¡¼¥¶ÄêµÁ¤Î¥Ç¥â (discrete.dem) ^ </a> ¤â»²¾È¡£

112.20 ¥°¥é¥Õ³Ñ¤Î»ÙÃì (cornerpoles)

¥Ç¥Õ¥©¥ë¥È¤Ç¡¢splot ¤Ï 3 ¼¡¸µ¶ÊÌ̤Τ½¤ì¤¾¤ì¤Î³Ñ¤«¤é¾²Ì̤ؤαôľÀþ¤òÉÁ ²è¤·¤Þ¤¹¡£¤³¤ì¤é¤Î±ôľÀþ¤Ï¡¢unset cornerpoles ¤Ç¾Ã¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

112.21 Åù¹âÀþ´Ö¤ÎÅɤêÄÙ¤· (contourfill)

3 ¼¡¸µÉÁ²è¥¹¥¿¥¤¥ë with contourfill ¤Ï¡¢1 ¤Ä¤Î pm3d ¶ÊÌ̤ò¡¢z ¼´¤Ë¿â ľ¤ÊÊ¿ÌÌ·²¤Ç¶èÀÚ¤é¤ì¤ëÃÇÊÒ¤ËÀÚ¤êʬ¤±¤Þ¤¹¡£¥³¥Þ¥ó¥É set contourfill ¤Ï¡¢¶èÀÚ¤ëÊ¿ÌÌ·²¤ÎÇÛÃ֤ȸġ¹¤ÎÃÇÊҤ˳ä¤êÅö¤Æ¤ë¿§¤òÀ©¸æ¤·¤Þ¤¹¡£

½ñ¼°:


    set contourfill auto N          # zrange ¤ò N Åùʬ¤·¤¿ÃÇÊÒ¤Ë
    set contourfill ztics           # z ¼´¤Î³Æ¼çÌÜÀ¹¤ê¤ÇÀÚ¤êʬ¤±
    set contourfill cbtics          # cb ¼´¤Î³Æ¼çÌÜÀ¹¤ê¤ÇÀÚ¤êʬ¤±
    set contourfill {palette | firstlinetype N}

¥Ç¥Õ¥©¥ë¥È¤Ï set contourfill auto 5 palette ¤Ç¡¢¤³¤ì¤Ï¸½ºß¤Î z ¼´¤Î ÈϰϤò 5 Åùʬ¤· (6 ¤Ä¤ÎÊ¿Ì̤ǶèÀÚ¤ë)¡¢³ÆÃÇÊҤˤ½¤Î z ¤ÎÃæÅÀ¤ËÂбþ¤¹¤ë ¥Ñ¥ì¥Ã¥È¤Î¿§¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó ztics, cbtics ¤Ï¡¢zrange ¤Îʬ³ä¤ò¡¢¤½¤Î¼´¤Î¼çÌÜÀ¹¤ê¤Î°Ì Ã֤ǹԤ¤¤Þ¤¹¡£Î㤨¤Ð¡¢z=2.5, z=7, z=10 ¤Ë»ØÄꤷ¤ÆÀÚ¤êʬ¤±¤ë¤Ë¤Ï¡¢°Ê²¼ ¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Þ¤¹¡£


    set ztics add ("floor" 2.5, "boundary X" 7, "ceiling" 10)
    set contourfill ztics

ÃÇÊҤο§ÉÕ¤±¤Ë¥Ñ¥ì¥Ã¥È¤ò»È¤¤¤¿¤¯¤Ê¤¤¾ì¹ç¤Ï¡¢Ç¤°ÕϢ³¤¹¤ëÀþ¼ï¤ÎÈϰϤòÁª Âò¤·¡¢¤½¤ì¤é¤Ë˾¤à¿§¤ÎÎó¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£


    set for [i=101:110] linetype i lc mycolor[i]
    set contourfill firstlinetype 101

set contourfill palette ¤Ç¥Ñ¥ì¥Ã¥È¤Ë¤è¤ë¿§ÉÕ¤±¤ËÉüµ¢¤Ç¤­¤Þ¤¹¡£

112.22 ÅÀÀþ/ÇËÀþÀßÄê (dashtype)

¥³¥Þ¥ó¥É set dashtype ¤Ï¡¢ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤òÈÖ¹æ¤Ç»²¾È¤Ç¤­¤ë¤è¤¦¤Ë ÅÐÏ¿¤·¤Þ¤¹¡£¤³¤ì¤Ï¤È¤Æ¤âÊØÍø¤Ç¡¢¤½¤ÎÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤ò¤½¤ÎÈÖ¹æ¤Ç¼õ¤± ¤Ä¤±¤Æ¤¯¤ì¤ë¾ì½ê¤Ê¤é¤Ð¡¢¤É¤³¤Ç¤âÌÀ¼¨Åª¤ÊÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤â¼õ¤±¤Ä¤±¤Æ ¤¯¤ì¤Þ¤¹¡£ Îã:


    set dashtype 5 (2,4,2,6)   # 5 È֤Πdashtype ¤òÄêµÁ¤Þ¤¿¤ÏºÆÄêµÁ
    plot f1(x) dt 5            # ¤½¤Î dashtype ¤ò»È¤Ã¤Æ plot
    plot f1(x) dt (2,4,2,6)    # ¾å¤ÈÁ´¤¯Æ±¤¸¥°¥é¥Õ
    set linetype 5 dt 5        # ¤³¤Î¥Ñ¥¿¡¼¥ó¤ò linetype 5 ¤Ç¾ï¤Ë»È¤¦
    set dashtype 66 "..-"      # ʸ»úÎó¤Ç¿·¤·¤¤ dashtype ¤òÄêµÁ

°Ê²¼»²¾È: dashtype (20.2)¡£

112.23 Datafile

¥³¥Þ¥ó¥É set datafile ¤Ï¡¢plot, splot, fit ¥³¥Þ¥ó¥É¤ÇÆþÎϥǡ¼ ¥¿¤òÆɤà¾ì¹ç¤Ë¡¢¤½¤ÎÎó (field) ¤Î²ò¼á¤Î»ÅÊý¤òÀ©¸æ¤¹¤ë¥ª¥×¥·¥ç¥ó¤ò»ý¤Á ¤Þ¤¹¡£ ¸½ºß¤Ï¡¢¤½¤Î¤è¤¦¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¤¤¯¤Ä¤«¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤ÎÀßÄê¤Ï¡¢¤½ ¤Î¸å¤Î¥³¥Þ¥ó¥É¤ÇÆɤ߽Фµ¤ì¤ë¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë°ìÍͤËŬÍѤ·¤Þ¤¹¤¬¡¢ ¤½¤ì¤È¤ÏÌ·½â¤¹¤ë½ñ¼°¤Ç¥Õ¥¡¥¤¥ë¤òƱ»þ¤ËÁàºî¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¾ì¹ç¡¢¤³¤ì ¤ò²óÈò¤¹¤ëÊýË¡¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: functionblocks (89)¡£

112.23.1 Set datafile columnheaders

¥³¥Þ¥ó¥É set datafile columnheaders ¤Ï¡¢ÆþÎϤκǽé¤Î¹Ô¤ò¡¢¥Ç¡¼¥¿ÃÍ¤È ¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢columnheader ¤È¤·¤Æ²ò¼á¤¹¤ë¤³¤È¤òÊݾڤ·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ plot, splot, fit, stats ¤Î³Æ¥³¥Þ¥ó¥É¤ÎÆþÎϥǡ¼¥¿¸»¤¹¤Ù¤Æ¤Ë±Æ¶Á¤·¤Þ¤¹¡£ ¤³¤ÎÀßÄê¤ò unset datafile columnheaders ¤Ç̵¸ú¤Ë¤¹¤ë¤È¡¢ÌÀ¼¨Åª¤Ê columnheader() ´Ø¿ô¤¬ using »ØÄê¤Ë¤¢¤ë¤«¡¢plot ¥¿¥¤¥È¥ë¤¬¥Õ¥¡¥¤¥ë¤Ë´Ø Ï¢¤Å¤±¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢Æ±¤¸¸ú²Ì¤¬¥Õ¥¡¥¤¥ëËè¤Ë¥ª¥ó¤Ë¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set key autotitle (112.39.4), columnheader (99.9)¡£

112.23.2 Set datafile fortran

¥³¥Þ¥ó¥É set datafile fortran ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î Fortran D ·¿¡¢Q ·¿ ¤ÎÄê¿ôÃͤÎÆÃÊ̤ʥÁ¥§¥Ã¥¯¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£¤³¤ÎÆÃÊ̤ʥÁ¥§¥Ã¥¯¤ÏÆþÎϽèÍý¤ò ÃÙ¤¯¤·¤Þ¤¹¤Î¤Ç¡¢¼ÂºÝ¤Ë¤½¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬ Fortran D ·¿¡¢Q ·¿¤ÎÄê¿ô¤ò »ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß¤³¤ì¤òÁªÂò¤¹¤Ù¤­¤Ç¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤½¤Î¸å¤Ç unset datafile fortran ¤ò¹Ô¤¨¤Ð̵¸ú¤Ë¤Ç¤­¤Þ¤¹¡£

112.23.3 Set datafile nofpe_trap

¥³¥Þ¥ó¥É set datafile nofpe_trap ¤Ï¡¢ÆþÎÏ¥Õ¥¡¥¤¥ë¤«¤é¥Ç¡¼¥¿¤ÎÆɤ߹þ ¤ß¤ÎºÝ¤Ë¡¢¤¹¤Ù¤Æ¤Î¿ô¼°¤Îɾ²Á¤ÎÁ°¤ËÉâÆ°¾®¿ôÅÀÎã³°¥Ï¥ó¥É¥é¤ÎºÆ½é´ü²½¤ò¤· ¤Ê¤¤¤è¤¦¤Ë gnuplot ¤ËÌ¿Îᤷ¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¤È¤Æ¤âÂ礭¤Ê¥Õ¥¡¥¤¥ë¤«¤é ¤Î¥Ç¡¼¥¿¤ÎÆþÎϤ¬¤«¤Ê¤ê®¤¯¤Ê¤ê¤Þ¤¹¤¬¡¢ÉâÆ°¾®¿ôÅÀÎã³°¤¬µ¯¤­¤¿¾ì¹ç¤Ë¥×¥í ¥°¥é¥à¤¬°Û¾ï½ªÎ»¤·¤Æ¤·¤Þ¤¦´í¸±¤Ï¤¢¤ê¤Þ¤¹¡£

112.23.4 Set datafile missing

½ñ¼°:


     set datafile missing "<string>"
     set datafile missing NaN
     show datafile missing
     unset datafile

¥³¥Þ¥ó¥É set datafile missing ¤Ï¡¢ÆþÎϥǡ¼¥¿¥Õ¥¡¥¤¥ëÃæ¤Ç·ç»¥Ç¡¼¥¿¤ò µ­½Ò¤¹¤ëÆÃÊ̤Êʸ»úÎ󤬤¢¤ë¤³¤È¤ò gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£missing ¤Ë ´Ø¤¹¤ë¥Ç¥Õ¥©¥ë¥ÈÃÍ (ʸ»ú) ¤Ï¤¢¤ê¤Þ¤»¤ó¡£gnuplot ¤Ï¡Ö·ç»¥Ç¡¼¥¿¡×¤È¡Ö̵ ¸ú¤ÊÃÍ¡×(Î㤨¤Ð "NaN" ¤ä 1/0) ¤ò¶èÊ̤·¤Þ¤¹¡£Î㤨¤Ð¡¢Ï¢Â³¤¹¤ë¥Ç¡¼¥¿ÅÀ¤Ë ÂФ¹¤ë¥°¥é¥Õ¤ÎÀÞ¤ìÀþÉÁ²è¤Ï¡¢Ìµ¸ú¤ÊÃͤˤè¤Ã¤Æ¤½¤³¤ÇÀÚ¤ì¤Þ¤¹¤¬¡¢·ç»¥Ç¡¼ ¥¿¤Î¾ì¹ç¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

¿ôÃͤ¬´üÂÔ¤µ¤ì¤ë¾ìÌ̤ǿôÃͤǤϤʤ¤Ê¸»ú¤¬¸½¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤¬ missing ¤Ç»ØÄꤹ¤ëʸ»úÎó¤Ë¥Þ¥Ã¥Á¤¹¤ë¾ì¹ç¤ò½ü¤¤¤Æ¡¢Ä̾ï·ç»¥Ç¡¼¥¿¤Ç¤Ï¤Ê¤¯¡¢Ìµ¸ú ¤ÊÃͤȤ·¤Æ²ò¼á¤·¤Þ¤¹¡£

µÕ¤Ë¡¢set datafile missing NaN ¤È¤¹¤ë¤È¡¢¿ô¼°¤ä¥Ç¡¼¥¿Ãæ¤Î¿ôÃÍ¤Ç¤Ï¤Ê ¤¤ÃÍ (NaN) ¤Ï¤¹¤Ù¤Æ·ç»¥Ç¡¼¥¿¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ imageNaN ¥Ç¥â

¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

gnuplot ¤Ï plot ¥³¥Þ¥ó¥É¤Ç using »ØÄ꤬ľÀÜÎó¤ÎÃͤò using N, using ($N), using (function($N)) ¤Î¤è¤¦¤Ë»²¾È¤·¤¿¾ì¹ç¤ÏÎó N ¤Ë·ç» Ãͥե饰¤òÄÌÃΤ·¤Þ¤¹¡£¤³¤ì¤é¤Î¾ì¹ç¤Ï¡¢¿ô¼°¡¢Î㤨¤Ð func($N) ¤Ï°ìÀÚɾ²Á ¤µ¤ì¤Þ¤»¤ó¡£

¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢(column(N)) ¤Î·Á¼°¤ÎľÀÜ»²¾È¤âÄÌÃΤ·¤Þ ¤¹¤¬¡¢¼°¤¬ "missing" (·ç»ÃÍ) ¤Î¥Õ¥é¥°¤¬¤Ä¤¤¤¿Îó¤ÎÃͤ˴ÖÀÜŪ¤Ë°Í¸¤¹¤ë ¾ì¹ç¤Ç¤â¡¢É¾²Á¤ÎºÇÃæ¤ËÄÌÃΤ·¤Þ¤¹¡£

¤³¤ì¤é¤¹¤Ù¤Æ¤Î¾ì¹ç¤Ç¡¢gnuplot ¤ÏÆþÎϥǡ¼¥¿¹ÔÁ´ÂΤò¤½¤ì¤¬Á´¤¯¤Ê¤«¤Ã¤¿¤â ¤Î¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤·¤«¤·¡¢¼°¤¬¿¿¤Ë·ç¤±¤Æ¤¤¤ë¥Ç¡¼¥¿ÃÍ¤Ë (Î㤨¤Ð csv ¥Õ ¥¡¥¤¥ë¤Î¶õ¥Õ¥£¡¼¥ë¥É¤Î¤è¤¦¤Ë) °Í¸¤·¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï¤³¤ì¤é¤Î¥Á¥§¥Ã¥¯ ¤ò¤¹¤ê¤Ì¤±¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤ì¤ò NaN ÃͤÈɾ²Á¤¹¤ì¤Ð¡¢¤½¤ì¤Ï·ç»¥Ç¡¼ ¥¿ÅÀ¤Ç¤Ï¤Ê¤¯¡¢ÉÔÀµ¤Ê¥Ç¡¼¥¿¤È¤·¤Æ°·¤¤¤Þ¤¹¡£¤â¤·¤½¤Î¤è¤¦¤ÊÉÔÀµÃͤò¤¹¤Ù¤Æ ·ç»ÃͤȤ·¤ÆÅù¤·¤¯°·¤¤¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É set datafile missing NaN ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

112.23.5 Set datafile separator

¥³¥Þ¥ó¥É set datafile separator ¤Ï¡¢¤³¤Î¸å¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿Îó¤Î ʬΥʸ»ú¤¬¡¢¶õÇò (whitespace) ¤Ç¤Ê¤¯¤Æ¡¢¤³¤³¤Ç»ØÄꤹ¤ëʸ»ú¤Ç¤¢¤ë¤È gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤ÎºÇ¤â°ìÈÌŪ¤Ê»ÈÍÑÎã¤Ï¡¢É½·×»»¥½¥Õ ¥È¤ä¥Ç¡¼¥¿¥Ù¡¼¥¹¥½¥Õ¥È¤¬ºî¤ë csv (¥³¥ó¥Þ¶èÀÚ¤ê) ¥Õ¥¡¥¤¥ë¤òÆɤà¾ì¹ç¤Ç¤· ¤ç¤¦¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿Îó¤ÎʬΥʸ»ú¤Ï¶õÇò (whitespace) ¤Ç¤¹¡£

½ñ¼°:


     set datafile separator {whitespace | tab | comma | "<chars>"}

Îã:


     # ¥¿¥Ö¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ
     set datafile separator "\t"


     # ¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥Õ¥¡¥¤¥ë¤òÆþÎÏ
     set datafile separator comma


     # ÆþÎÏ¥Õ¥¡¥¤¥ë¤¬ * ¤« | ¤Î¤¤¤º¤ì¤«¤Ç¶èÀÚ¤é¤ì¤¿Îó¤ò»ý¤Ä¾ì¹ç
     set datafile separator "*|"

112.23.6 Set datafile commentschars

¥³¥Þ¥ó¥É set datafile commentschars ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ëÃæ¤Î¥³¥á¥ó¥È¹Ô ¤Î³«»Ïʸ»ú¤È¤·¤Æ¤É¤Îʸ»ú¤ò»È¤¦¤«¤ò»ØÄꤷ¤Þ¤¹¡£»ØÄꤷ¤¿Ê¸»ú¤ÎÃæ¤Î°ì¤Ä¤¬ ¥Ç¡¼¥¿¹Ô¤ÎºÇ½é¤ÎÈó¶õÇòʸ»ú¤È¤·¤Æ¸½¤ï¤ì¤¿¾ì¹ç¡¢¤½¤Î¥Ç¡¼¥¿¹Ô¤Î¤½¤ì°Ê¹ß¤Î Éôʬ¤ò̵»ë¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥Èʸ»úÎó¤Ï¡¢VMS ¤Ç¤Ï "#!"¡¢¤½¤ì°Ê³°¤Ç¤Ï "#" ¤Ç¤¹¡£

½ñ¼°:


     set datafile commentschars {"<string>"}
     show datafile commentschars
     unset commentschars

¤è¤Ã¤Æ¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Î°Ê²¼¤Î¹Ô¤Ï´°Á´¤Ë̵»ë¤µ¤ì¤Þ¤¹:


   # 1 2 3 4

¤¬¡¢°Ê²¼¤Î¹Ô


   1 # 3 4

¤Ï¡¢2 ÎóÌܤ˥´¥ß¤¬¤¢¤ê¡¢¤½¤Î¸å¤ËÍ­¸ú¤Ê¥Ç¡¼¥¿¤¬ 3 ÎóÌÜ¤È 4 ÎóÌܤˤ¢¤ë¤È ǧ¼±¤µ¤ì¤Þ¤¹¡£

Îã:


     set datafile commentschars "#!%"

112.23.7 Set datafile binary

¥³¥Þ¥ó¥É set datafile binary ¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß»þ¤Ë¥Ð¥¤¥Ê ¥ê¥Õ¥¡¥¤¥ë¤ò¥Ç¥Õ¥©¥ë¥È¤ÈÀßÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£½ñ¼°¤Ï¡¢¤½¤ì¤¬ plot ¤Þ¤¿¤Ï splot ¥³¥Þ¥ó¥É¤Ç»È¤ï¤ì¤ë¤Î¤ÈÀµ³Î¤ËƱ¤¸¤Ç¤¹¡£<binary list> ¤Ë ½ñ¤±¤ë¥­¡¼¥ï¡¼¥É¤Ë´Ø¤·¤Æ¤Ï¡¢¾Ü¤·¤¯¤Ï¡¢°Ê²¼»²¾È: binary matrix (115.1.1), binary general (99.2.1)¡£

½ñ¼°:


     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   # ¸½ºß¤ÎÀßÄê¤Î°ìÍ÷ɽ¼¨

112.24 ¾®¿ôÅÀÀßÄê (desimalsign)

¥³¥Þ¥ó¥É set decimalsign ¤Ï¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¤¢¤ë¤¤¤Ï set label ʸ »úÎó¤Ë½ñ¤«¤ì¤ë¿ô¤Î¾®¿ôÅÀµ­¹æ¤òÁªÂò¤·¤Þ¤¹¡£

½ñ¼°:


     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() ¤ò»È¤Ã¤Æ½ñ¼°²½ ¤¹¤ë¿ôÃͤÏÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿ '.' ¤Ë¤Ê¤ê¤Þ¤¹ (¾å½ñ¤­)¡£

112.25 ³Ê»Ò¾õ¥Ç¡¼¥¿½èÍý (dgrid3d)

¥³¥Þ¥ó¥É set dgrid3d ¤Ï¡¢Èó³Ê»Ò¾õ¥Ç¡¼¥¿¤«¤é³Ê»Ò¾õ¥Ç¡¼¥¿¤Ø¤Î¼ÌÁüµ¡Ç½ ¤òÍ­¸ú¤Ë¤·¡¢¤½¤Î¤¿¤á¤Î¥Ñ¥é¥á¡¼¥¿¤òÀßÄꤷ¤Þ¤¹¡£³Ê»Ò¾õ¥Ç¡¼¥¿¤Î¹½Â¤¤Ë¤Ä¤¤ ¤Æ¤Î¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: splot grid_data (115.2)¡£¤³¤Î½èÍý¤Ï¡¢3 ¼¡¸µ¶ÊÌ̤ؤÎÅö ¤Æ¤Ï¤á¤ÇÍøÍѤǤ­¤ë¤³¤È°Ê³°¤Ë¡¢2 ¼¡¸µ²¹ÅÙʬÉÛ¿Þ¤òÀ¸À®¤¹¤ë¤Î¤Ë¤â»È¤¨¤Þ¤¹¡£ ¤½¤Î¾ì¹ç¡¢³ÆÅÀ¤Î 'z' ¤ÎÃͤ϶ɽêŪ¤Ê½Å¤ßÉÕ¤±¤Ë´óÍ¿¤·¤Þ¤¹¡£

½ñ¼°:


     set dgrid3d {<rows>} {,{<cols>}} splines
     set dgrid3d {<rows>} {,{<cols>}} qnorm {<norm>}
     set dgrid3d {<rows>} {,{<cols>}} {gauss | cauchy | exp | box
                     | hann} {kdensity} {<dx>} {,<dy>}
     unset dgrid3d
     show dgrid3d

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï dgrid3d ¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Í­¸ú¤Ê¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë ¤«¤éÆɤ߹þ¤Þ¤ì¤ë 3 ¼¡¸µ¤Î¥Ç¡¼¥¿ÅÀ¤Ï¡¢³Ê»Ò¶ÊÌ̤ËÅö¤Æ¤Ï¤á¤ë¤Î¤Ë»ÈÍѤ¹¤ë ¡Ö»¶ºß¤·¤¿¡×¥Ç¡¼¥¿ (Èó³Ê»Ò¾õ¥Ç¡¼¥¿) ¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£³Ê»Ò¤ÎÀ£Ë¡¤Ï¡¢ set dgrid3d ʸ¤ÇÍ¿¤¨¤ë¥Ñ¥é¥á¡¼¥¿ row_size/col_size ¤Î¹Ô¿ô¡¢Îó¿ô¤ÇºÆ ʬ³ä¤¹¤ë»¶ºß¥Ç¡¼¥¿¤ò°Ï¤à¶ë·Á (bounding box) ¤«¤éµá¤á¤Þ¤¹¡£³Ê»Ò¤Ï x Êý ¸þ (¹Ô) ¤È y Êý¸þ (Îó) ¤ËÅù´Ö³Ö¤Ç¤¹¡£z ¤ÎÃͤϻ¶ºß¤¹¤ë¥Ç¡¼¥¿¤Î z ¤ÎÃͤΠ½Å¤ßÉÕ¤­¤ÎÊ¿¶Ñ¡¢¤Þ¤¿¤Ï¥¹¥×¥é¥¤¥óÊä´Ö¤È¤·¤Æ·×»»¤·¤Þ¤¹¡£¸À¤¤ÊѤ¨¤ì¤Ð¡¢µ¬ §Ū¤Ê´Ö³Ö¤Î³Ê»Ò¤òÀ¸À®¤·¡¢Á´¤Æ¤Î³Ê»ÒÅÀ¤Ç¸µ¥Ç¡¼¥¿¤Î³ê¤«¤Ê¶á»÷Ãͤòɾ²Á¤· ¤Þ¤¹¡£¤½¤·¤Æ¸µ¥Ç¡¼¥¿¤ÎÂå¤ï¤ê¤Ë¤³¤Î¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£

dgrid3d ¥â¡¼¥É¤¬Í­¸ú¤Ê´Ö¤Ï¡¢¤³¤ì¤ò»ÈÍѤ»¤º¤Ë³Ê»Ò¶ÊÌ̤òÀ¸À®¤¹¤ë¸Ä¡¹¤ÎÅÀ ¤äÀþʬ¤òÉÁ¤­¤¿¤¤¾ì¹ç¤Ï¡¢Âбþ¤¹¤ë splot ¥³¥Þ¥ó¥É¤Ë¥­¡¼¥ï¡¼¥É nogrid ¤òÄɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤ÎÎó¤Î¿ô¤Ï¹Ô¤Î¿ô¤ËÅù¤·¤¯¡¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 10 ¤Ç¤¹¡£

¸µ¤Î¥Ç¡¼¥¿¤«¤é¶á»÷Ãͤò·×»»¤¹¤ë¤¿¤á¤Î¤¤¤¯¤Ä¤«¤Î¥¢¥ë¥´¥ê¥º¥à¤¬ÍÑ°Õ¤µ¤ì¤Æ ¤¤¤Æ¡¢ÄɲäΥѥé¥á¡¼¥¿¤ò»ØÄê¤Ç¤­¤ë¤â¤Î¤â¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÊä´Ö¤Ï¡¢³Ê»Ò ÅÀ¤Ë¶á¤¤¥Ç¡¼¥¿ÅÀ¤Û¤É¡¢¤½¤Î³Ê»ÒÅÀ¤ËÂФ·¤Æ¤è¤ê¶¯¤¤±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

splines ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢Çö¤¤¤Ä¤®ÈĤò¸µ¤Ë¤·¤¿Êä´Ö·×»»¤ò¹Ô¤¤¤Þ¤¹¡£¤³¤ì ¤ÏÄɲåѥé¥á¡¼¥¿¤ò¼è¤ê¤Þ¤»¤ó¡£

qnorm ¥¢¥ë¥´¥ê¥º¥à¤Ï³Æ³Ê»ÒÅÀ¤ÇÆþÎϥǡ¼¥¿¤Î½Å¤ßÉÕ¤­Ê¿¶Ñ¤ò·×»»¤·¤Þ¤¹¡£ ³ÆÅÀ¤Ë¤Ï¡¢³Ê»ÒÅÀ¤«¤é¤Îµ÷Î¥¤ÎµÕ¿ô¤Î¤¢¤ë¥Ù¥­¾è¤Ç½Å¤ßÉÕ¤±¤·¤Þ¤¹¡£¤½¤Î¥Ù¥­ ¤ÏÄɲåѥé¥á¡¼¥¿¤ÎÀ°¿ôÃͤȤ·¤Æ»ØÄê¤Ç¤­¤Þ¤¹¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¤Ç¤¹¡£ ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

ºÇ¸å¤Ë¡¢½Å¤ßÉÕ¤­Ê¿¶Ñ¤Î·×»»ÍѤˡ¢¤¤¤¯¤Ä¤«¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô (kernel) ¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), ¤³¤³¤Ç z_i ¤Ï i ÈÖÌܤΥǡ¼¥¿¤ÎÃͤǡ¢d_i ¤Ï¸½ºß¤Î³Ê»ÒÅÀ¤È i ÈÖÌܤΥǡ¼¥¿ÅÀ¤Î°ÌÃÖ¤È ¤Îµ÷Î¥¤Ç¤¹¡£¤¹¤Ù¤Æ¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬¡¢¸½ºß¤Î³Ê»ÒÅÀ¤Ë¶á¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï Â礭¤Ê½Å¤ß¡¢±ó¤¤Êý¤Î¥Ç¡¼¥¿ÅÀ¤Ë¤Ï¾®¤µ¤¤½Å¤ß¤òÉÕ¤±¤Þ¤¹¡£

°Ê²¼¤Î½Å¤ßÉÕ¤±´Ø¿ô¤¬»ÈÍѤǤ­¤Þ¤¹:


     gauss :     w(d) = exp(-d*d)
     cauchy :    w(d) = 1/(1 + d*d)
     exp :       w(d) = exp(-d)
     box :       w(d) = 1                     d<1 ¤Î¾ì¹ç
                      = 0                     ¤½¤Î¾
     hann :      w(d) = 0.5*(1+cos(pi*d))     d<1 ¤Î¾ì¹ç
                 w(d) = 0                     ¤½¤Î¾

¤³¤ì¤é 5 ¤Ä¤ÎÊ¿³ê²½½Å¤ßÉÕ¤±´Ø¿ô¤Î¤¦¤Á°ì¤Ä¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢2 ¤Ä¤Þ¤Ç¤ÎÄÉ ²Ã¥Ñ¥é¥á¡¼¥¿ dx ¤È dy ¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£¤³¤ì¤é¤Ï¡¢µ÷Î¥¤Î·×»»»þ¤ËºÂɸ¤Î°ã ¤¤¤ò¥¹¥±¡¼¥ëÊÑ´¹¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹: d_i = sqrt( ((x-x_i)/dx)**2 + ((y-y_i)/dy)**2 ), ¤³¤³¤Ç¡¢x,y ¤Ï¸½ºß¤Î ³Ê»ÒÅÀ¤ÎºÂɸ¤Ç¡¢x_i,y_i ¤Ï i ÈÖÌܤΥǡ¼¥¿ÅÀ¤ÎºÂɸ¤Ç¤¹¡£dy ¤Î¥Ç¥Õ¥©¥ë¥È ¤ÎÃÍ¤Ï dx ¤Ç¡¢¤½¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 1 ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ dx ¤È dy ¤Ï¡¢¥Ç¡¼¥¿ÅÀ¤¬³Ê»ÒÅÀ¤Ø¡Ö¥Ç¡¼¥¿¤½¤ì¼«¿È¤Îñ°Ì¤Ç¡×¤Î´óÍ¿¤ò¹Ô¤¦ÈϰϤΠÀ©¸æ¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó¥­¡¼¥ï¡¼¥É kdensity ¤Ï¡¢½Å¤ßÉÕ¤±´Ø¿ô̾¤Î¸å¤í¤Ç¥ª¥×¥·¥ç¥ó¤Î ¥¹¥±¡¼¥ëÊÑ´¹¤Î¥Ñ¥é¥á¡¼¥¿¤ÎÁ°¤ËÃÖ¤¯¤â¤Î¤Ç¡¢¤³¤ì¤Ï¥¢¥ë¥´¥ê¥º¥à¤òÊѹ¹¤·¤Æ¡¢ ³Ê»ÒÅÀÍѤ˷׻»¤¹¤ëÃͤò½Å¤ß¤ÎÏ ( z = Sum_i w(d_i) * z_i ) ¤Ç¤Ï³ä¤é¤Ê¤¤ ¤è¤¦¤Ë¤·¤Þ¤¹¡£z_i ¤¬¤¹¤Ù¤ÆÄê¿ô¤Î¾ì¹ç¡¢¤³¤ì¤Ï»ö¼Â¾å 2 ÊÑ¿ô¤Î½Å¤ßÉÕ¤±É¾ ²Á¤òÉÁ²è¤·¤Þ¤¹: (¾å¤Î 5 ¤Ä¤Î¤¦¤Á¤Î°ì¤Ä¤Î) ½Å¤ßÉÕ¤±´Ø¿ô¤¬³Æ¥Ç¡¼¥¿ÅÀ¤ËÃÖ ¤«¤ì¡¢¤½¤ì¤é¤Î½Å¤ß¤ÎϤ¬¤¹¤Ù¤Æ¤Î³Ê»ÒÅÀ¤Çɾ²Á¤µ¤ì¡¢¤½¤·¤Æ¸µ¤Î¥Ç¡¼¥¿¤ÎÂå ¤ï¤ê¤Ë¤³¤Î³ê¤é¤«¤Ê¶ÊÌ̤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢1 ¼¡¸µ¤Î¥Ç¡¼¥¿½¸¹ç¤ËÂФ¹ ¤ë smooth kdensity ¥ª¥×¥·¥ç¥ó¤¬¹Ô¤¦¤³¤È¤È¤ª¤ª¤Þ¤«¤Ë¤ÏƱ¤¸¤Ç¤¹¡£»ÈÍÑ Îã¤Ë´Ø¤·¤Æ¤Ï¡¢kdensity2d.dem, heatmap_points.dem ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

Image figure_dgrid3d
¥ª¥×¥·¥ç¥ó dgrid3d ¤Ï¡¢»¶ºß¤¹¤ë¥Ç¡¼¥¿¤ò½Å¤ßÉÕ¤­Ê¿¶Ñ¤Çµ¬Â§Åª¤Ê³Ê»Ò¤Ë ÃÖ¤­ÊѤ¨¤ëñ½ã¤Ê»ÅÁȤߤ˲᤮¤Þ¤»¤ó¡£¤³¤ÎÌäÂê¤ËÂФ¹¤ë¤è¤êÀöÎý¤µ¤ì¤¿¼êË¡ ¤¬Â¸ºß¤·¤Þ¤¹¤Î¤Ç¡¢¤³¤Îñ½ã¤ÊÊýË¡¤¬ÉÔ½½Ê¬¤Ç¤¢¤ì¤Ð¡¢gnuplot ¤Î³°¤Ç¤½¤Î ¤è¤¦¤ÊÊýË¡¤Ç¥Ç¡¼¥¿¤òÁ°½èÍý¤¹¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£

¥Í¥Ã¥È¾å¤Î°Ê²¼¤Î¥Ç¥â¤â»²¾È ^ <a href="http://www.gnuplot.info/demo/dgrid3d.html"> dgrid3d ^ </a> ^ <a href="http://www.gnuplot.info/demo/scatter.html"> scatter ^ </a> heatmap_points

112.26 ²¾ÊÑ¿ô (dummy)

¥³¥Þ¥ó¥É set dummy ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î²¾ÊÑ¿ô̾¤òÊѹ¹¤·¤Þ¤¹¡£

½ñ¼°:


     set dummy {<dummy-var>} {,<dummy-var>}
     show dummy

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢gnuplot ¤Ï plot ¤Ç¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¡¢¤¢¤ë¤¤¤Ï¶ËºÂ ɸ¥â¡¼¥É¤Ç¤Ï "t", ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð "x" ¤òÆÈΩÊÑ¿ô (²¾ÊÑ¿ô) ¤È¤·¡¢Æ±ÍÍ¤Ë splot ¤Ç¤Ï¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï (splot ¤Ï¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï»È¤¨¤Þ¤»¤ó) "u" ¤È "v", ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð "x" ¤È "y" ¤òÆÈΩÊÑ¿ô¤È¤·¤Þ¤¹¡£

²¾ÊÑ¿ô¤Ï¡¢ÊªÍýŪ¤Ë°ÕÌ£¤Î¤¢¤ë̾Á°¡¢¤¢¤ë¤¤¤Ï¤è¤êÊØÍø¤Ê̾Á°¤È¤·¤Æ»È¤¦Êý¤¬ ÊØÍø¤Ç¤·¤ç¤¦¡£Î㤨¤Ð¡¢»þ´Ö¤Î´Ø¿ô¤òÉÁ²è¤¹¤ë¾ì¹ç:


     set dummy t
     plot sin(t), cos(t)

Îã:


     set dummy u,v
     set dummy ,s

ÂèÆó¤ÎÎã¤Ï¡¢2 ÈÖÌܤÎÊÑ¿ô¤ò s ¤È¤·¤Þ¤¹¡£²¾ÊÑ¿ô̾¤ò¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌ᤹ ¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£


     unset dummy

112.27 ʸ»ú¥¨¥ó¥³¡¼¥É (encoding)

¥³¥Þ¥ó¥É set encoding ¤Ïʸ»ú¤Î¥¨¥ó¥³¡¼¥É (encoding) ¤òÁªÂò¤·¤Þ¤¹¡£

½ñ¼°:


     set encoding {<value>}
     set encoding locale
     show encoding

Í­¸ú¤ÊÃÍ (value) ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£


  default     - ½ÐÎÏ·Á¼°¤Ë¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥ó¥³¡¼¥É¤Î»ÈÍѤòÌ¿Îá
  iso_8859_1  - UTF-8 ¤è¤êºÇ¤â°ìÈÌŪ¤ÊÀ¾¥è¡¼¥í¥Ã¥Ñ¥¨¥ó¥³¡¼¥É¡£¤³¤Î¥¨
                ¥ó¥³¡¼¥É¤Ï PostScript ¤ÎÀ¤³¦¤Ç¤Î 'ISO-Latin1' ¤Ç¤¹¡£
  iso_8859_15 - ¥æ¡¼¥íµ­¹æ¤ò´Þ¤à iso_8859_1 ¤Î°¡¼ï
  iso_8859_2  - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Ç»ÈÍѤµ¤ì¤ë¥¨¥ó¥³¡¼¥É
  iso_8859_9  - (Latin5 ¤È¤·¤ÆÃΤé¤ì¤ë) ¥È¥ë¥³¤Ç»ÈÍѤµ¤ì¤ë¥¨¥ó¥³¡¼¥É
  koi8r       - Îɤ¯»È¤ï¤ì¤ë Unix ¤Î¥­¥ê¥ëʸ»ú¥¨¥ó¥³¡¼¥É
  koi8u       - Unix ¤Î¥¦¥¯¥é¥¤¥ÊÃÏÊý¤Î¥­¥ê¥ëʸ»ú¥¨¥ó¥³¡¼¥É
  cp437       - MS-DOS ¤Î¥³¡¼¥É¥Ú¡¼¥¸
  cp850       - À¾¥è¡¼¥í¥Ã¥Ñ¤Î OS/2 ¤Î¥³¡¼¥É¥Ú¡¼¥¸
  cp852       - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Î OS/2 ¤Î¥³¡¼¥É¥Ú¡¼¥¸
  cp950       - MS ÈǤΠBig5 (emf terminal ¤Î¤ß)
  cp1250      - Ãæ±û/Åì¥è¡¼¥í¥Ã¥Ñ¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸
  cp1251      - ¥í¥·¥¢¡¢¥»¥ë¥Ó¥¢¡¢¥Ö¥ë¥¬¥ê¥¢¡¢¥Þ¥±¥É¥Ë¥¢¸ì (8 ¥Ó¥Ã¥È)
  cp1252      - À¾¥è¡¼¥í¥Ã¥Ñ¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸
  cp1254      - ¥È¥ë¥³¤Î MS Windows ¤Î¥³¡¼¥É¥Ú¡¼¥¸ (Latin5 ¤Î³ÈÄ¥)
  sjis        - Shift_JIS ÆüËܸ쥨¥ó¥³¡¼¥É
  utf8        - ³Æʸ»ú¤Î Unicode ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤Î¡¢²ÄÊÑĹ (¥Þ¥ë¥Á¥Ð
                ¥¤¥È) ɽ¸½

¥³¥Þ¥ó¥É set encoding locale ¤Ï¡¢Â¾¤Î¥ª¥×¥·¥ç¥ó¤È¤Ï°ã¤¤¡¢¤³¤ì¤Ï¸½ºß ¤Î¥í¥«¡¼¥ë¤ò¼Â¹Ô»þ¤Î´Ä¶­¤«¤é·èÄꤷ¤è¤¦¤È¤·¤Þ¤¹¡£¤¿¤¤¤Æ¤¤¤Î¥·¥¹¥Æ¥à¤Ç¤Ï ¤³¤ì¤Ï´Ä¶­ÊÑ¿ô LC_ALL, LC_CTYPE, LANG ¤Î¤¤¤º¤ì¤«¤Ë¤è¤Ã¤ÆÀ©¸æ¤µ¤ì¤Þ¤¹¡£ ¤³¤Î»ÅÁȤߤϡ¢Î㤨¤Ð wxt, pdf ½ÐÎÏ·Á¼°¤Ç¡¢UTF-8 ¤ä EUC-JP ¤Î¤è¤¦¤Ê¥Þ¥ë ¥Á¥Ð¥¤¥Èʸ»ú¥¨¥ó¥³¡¼¥É¤òÄ̤¹¤¿¤á¤ËɬÍפǤ¹¡£¤³¤Î¥³¥Þ¥ó¥É¤ÏÆüÉÕ¤ä¿ô»ú¤Ê ¤É¤Î¥í¥«¡¼¥ëÆÃÍ­¤Îɽ¸½¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£ °Ê²¼¤â»²¾È: set locale (112.45), set decimalsign (112.24)¡£

°ìÈ̤˥¨¥ó¥³¡¼¥É¤ÎÀßÄê¤Ï¡¢¤½¤ì¤¬¥Õ¥©¥ó¥È¤ÎÁªÂò¤Ë±Æ¶Á¤òÍ¿¤¨¤ë¤è¤¦¤Ë¡¢½Ð ÎÏ·Á¼°¤ÎÀßÄê¤ÎÁ°¤Ë¹Ô¤Ê¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£

112.28 ¸íº¹Àþ¤Îü (errorbars)

¥³¥Þ¥ó¥É set errorbars ¤Ï¡¢¸íº¹¥°¥é¥Õ (errorbar) ¤Îξü¡¢¤ª¤è¤Ó boxplot ¤Ë¤Ä¤¯È¢¤Ò¤²¤Îξü¤Î¥Þ¡¼¥¯¤òÀ©¸æ¤·¤Þ¤¹¡£

½ñ¼°:


     set errorbars {small | large | fullwidth | <size>} {front | back}
                   {line-properties}
     unset errorbars
     show errorbars

small ¤Ï 0.0 (¸òº¹Àþ¤Ê¤·)¡¢large ¤Ï 1.0 ¤ÈƱ¤¸¤Ç¤¹¡£¥µ¥¤¥º¤ò»ØÄꤷ ¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 1.0 ¤Ç¤¹¡£

¥­¡¼¥ï¡¼¥É fullwidth ¤Ï¡¢errorbar ¤òȼ¤¦ boxplot ¤È histograms ¤Ë¤Î ¤ß´ØÏ¢¤·¤Þ¤¹¡£¤³¤ì¤Ï errorbar ¤Îξü¤ÎÉý¤ò¡¢Âбþ¤¹¤ëÈ¢¤ÎÉý¤ÈƱ¤¸¤ËÀßÄê ¤·¤Þ¤¹¤¬¡¢È¢¤ÎÉý¼«ÂΤòÊѹ¹¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£

¥­¡¼¥ï¡¼¥É front, back ¤Ï¡¢ÅɤêÄÙ¤·Ä¹Êý·Á¤Î¤Ä¤¤¤¿ errorbar ¤Î¤ß¤Ë ´ØÏ¢¤·¤Þ¤¹ (boxes, candlesticks, histograms)¡£

¸íº¹Àþ (errorbar) ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï´ØÏ¢¤¹¤ëÈ¢¤Î¶­³¦Àþ¤ÈƱ¤¸Àþ°À­¤ÇÉÁ ²è¤·¤Þ¤¹¤¬¡¢¤³¤ì¤ò¸íº¹ÀþÍѤËÍÑ°Õ¤·¤¿Àþ°À­¤ËÊѹ¹¤Ç¤­¤Þ¤¹¡£


    set errorbars linecolor black linewidth 0.5 dashtype '.'

112.29 ÈóÀþ·Á´Ø¿ô²óµ¢ (fit)

¥³¥Þ¥ó¥É set fit ¤Ï¡¢fit ¥³¥Þ¥ó¥ÉÍѤΥª¥×¥·¥ç¥ó¤òÀ©¸æ¤·¤Þ¤¹¡£

½ñ¼°:


     set fit {nolog | logfile {"<filename>"|default}}
             {{no}quiet|results|brief|verbose}
             {{no}errorvariables}
             {{no}covariancevariables}
             {{no}errorscaling}
             {{no}prescale}
             {maxiter <value>|default}
             {limit <epsilon>|default}
             {limit_abs <epsilon_abs>}
             {start-lambda <value>|default}
             {lambda-factor <value>|default}
             {script {"<command>"|default}}
             {v4 | v5}
     unset fit
     show fit

¥ª¥×¥·¥ç¥ó logfile ¤Ï¡¢fit ¥³¥Þ¥ó¥É¤¬¤½¤Î½ÐÎϤò½ñ¤­½Ð¤¹¾ì½ê¤òÄêµÁ ¤·¤Þ¤¹¡£ °ú¿ô <filename> ¤Ï¡¢Ã±°ì°úÍÑÉ䤫Æó½Å°úÍÑÉä¤Ç°Ï¤àɬÍפ¬¤¢¤ê¤Þ ¤¹¡£¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï unset fit ¤ò»ÈÍѤ·¤¿¾ì¹ç ¤Ï¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤǤ¢¤ë "fit.log"¡¢¤Þ¤¿¤Ï´Ä¶­ÊÑ¿ô FIT_LOG ¤ÎÃͤ˥ꥻ¥Ã¥È¤µ¤ì¤Þ¤¹¡£Í¿¤¨¤é¤ì¤¿¥í¥°¥Õ¥¡¥¤¥ë̾¤¬ / ¤« \ ¤Ç ½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ì¤Ï¥Ç¥£¥ì¥¯¥È¥ê̾¤È²ò¼á¤µ¤ì¡¢¥í¥°¥Õ¥¡¥¤¥ë¤Ï¤½¤Î¥Ç¥£ ¥ì¥¯¥È¥ê¤Î "fit.log" ¤È¤Ê¤ê¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î¥í¥°¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤ë¾ðÊó¤Ï¡¢ÂÐÏ÷¿½ÐÎϤˤâ½ÐÎϤ· ¤Þ¤¹¡£set fit quiet ¤Ï¤½¤ÎÂÐÏ÷¿½ÐÎϤò¥ª¥Õ¤Ë¤·¡¢results ¤ÏºÇ½ª·ë²Ì ¤Î¤ß¤ò½ÐÎϤ·¤Þ¤¹¡£brief ¤Ï¡¢ÄÉ²Ã¤Ç fit ¤Î¤¹¤Ù¤Æ¤Î·«¤êÊÖ¤·¤Ë´Ø¤·¤Æ 1 ¹Ô¤ÎÍ×Ìó¤òÄ󶡤·¤Þ¤¹¡£verbose ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 4 ¤Î¤è¤¦¤Ê¾ÜºÙ¤Ê·«¤êÊÖ ¤·¤ÎÊó¹ð¤ò¹Ô¤¤¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó errorvariables ¤ò ON ¤Ë¤¹¤ë¤È¡¢fit ¥³¥Þ¥ó¥É¤Ç·×»»¤µ¤ì¤¿ ¸Ä¡¹¤ÎÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤¬¡¢¤½¤Î¥Ñ¥é¥á¡¼¥¿¤Î̾Á°¤Ë "_err" ¤ò¤Ä¤± ¤¿Ì¾Á°¤Î¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤Ë¥³¥Ô¡¼¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¼ç¤Ë¡¢Åö¤Æ¤Ï¤á´Ø¿ô¤È¥Ç¡¼ ¥¿¤ÎÉÁ²è¥°¥é¥Õ¤Î¾å¤Ë¥Ñ¥é¥á¡¼¥¿¤È¤½¤Î¸íº¹¤ò»²¾ÈÍѤ˽ÐÎϤ¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ ¤¹¡£Îã:


      set fit errorvariables
      fit f(x) 'datafile' using 1:2 via a, b
      print "error of a is:", a_err
      set label 1 sprintf("a=%6.2f +/- %6.2f", a, a_err)
      plot 'datafile' using 1:2, f(x)

¥ª¥×¥·¥ç¥ó errorscaling ¤ò»ØÄꤹ¤ë¤È (¥Ç¥Õ¥©¥ë¥È)¡¢¥Ñ¥é¥á¡¼¥¿¤Î·×»» ¸íº¹¤òÊäÀµ¦Ö¼«¾è (reduced ¦Ö-square) ¤Ç¿­½Ì¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢·ë²Ì¤È¤·¤Æ ÊäÀµ¦Ö¼«¾èÃͤˤʤ롢Åö¤Æ¤Ï¤á·×»»¤Îɸ½àÊк¹ (FIT_STDFIT) ¤ËÅù¤·¤¤¥Ç¡¼¥¿ ¸íº¹¤òÄ󶡤¹¤ë¤³¤È¤ÈƱÅù¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó noerrorscaling ¤Ç¤Ï¡¢ ɾ²Á¸íº¹¤Ï¡¢¿­½Ì¤µ¤ì¤Ê¤¤Åö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Îɸ½àÊк¹¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥Ç¡¼¥¿¤Î½Å¤ß¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢¥Ñ¥é¥á¡¼¥¿¤Î¸íº¹¤Ï¾ï¤Ë¿­½Ì¤µ¤ì¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó prescale ¤ò¥ª¥ó¤Ë¤¹¤ë¤È¡¢Marquardt-Levenberg ¥ë¡¼¥Á¥ó¤ËÅÏ ¤¹Á°¤Ë¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÃͤò¤½¤ì¤é¤Î½é´üÃͤ˽¾¤Ã¤Æ»öÁ°¤Ë¥¹¥±¡¼¥ëÊÑ´¹¤·¤Þ ¤¹¡£¤³¤ì¤Ï¡¢³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÂ礭¤µ¤Ë¤«¤Ê¤êÂ礭¤Ê°ã¤¤¤¬¤¢¤ë¾ì¹ç¤Ë¡¢ÂçÊÑÍ­ ¸ú¤Ç¤¹¡£¤¿¤À¤·¡¢½é´üÃͤ¬´°Á´¤Ë 0 ¤ÎÅö¤Æ¤Ï¤á¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï¡¢·è¤·¤Æ¤³¤Î ¥¹¥±¡¼¥ëÊÑ´¹¤Ï¹Ô¤¤¤Þ¤»¤ó¡£

È¿Éü¿ô¤Î¸Â³¦Ãͤϡ¢¥ª¥×¥·¥ç¥ó maxiter ¤ÇÀ©¸Â¤Ç¤­¤Þ¤¹¡£¤½¤ì¤ò 0 ¤« default ¤È¤¹¤ë¤È¡¢¤½¤ì¤Ï¸Â³¦¤¬¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó limit ¤Ï¡¢¼ý«¤ò¸¡½Ð¤¹¤ë¤¿¤á¤Î¤â¤Ã¤È¤â¾®¤µ¤¤¿ô»ú¤Î¸Â³¦ (1e-5) ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤòÊѹ¹¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¼«¾è»Äº¹¤ÎϤ¬¤³¤Î¿ôÃÍ Ì¤Ëþ¤ÎÈæΨ¤ÎÊѲ½¤·¤«¤·¤Ê¤¤¾ì¹ç¤Ï¡¢Åö¤Æ¤Ï¤á¤Ï¡Ö¼ý«¤·¤¿¡×¤ÈȽÃǤµ¤ì¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó limit_abs ¤Ï¡¢¼«¾è»Äº¹¤ÎϤÎÊѲ½¤Î¸Â³¦ (ÀäÂÐÃÍ) ¤òÄɲä· ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤¹¡£

¥¢¥ë¥´¥ê¥º¥à¤Ë´Ø¤¹¤ëÊ̤ÎÀ©¸æ¤ò¤·¤¿¤¤¾ì¹ç¡¢¤½¤·¤Æ Marquardt-Levenberg ¥¢¥ë¥´¥ê¥º¥à¤òÎɤ¯ÃΤäƤ¤¤ë¾ì¹ç¡¢¤½¤ì¤Ë±Æ¶Á¤òÍ¿¤¨¤ë°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬ ÍøÍѤǤ­¤Þ¤¹: lambda ¤Î½é´üÃͤϡ¢Ä̾KưŪ¤Ë ML-¹ÔÎ󤫤é·×»»¤µ¤ì¤Þ ¤¹¤¬¡¢É¬Íפʤé¤Ð¥ª¥×¥·¥ç¥ó start_lambda ¤ò»È¤Ã¤Æ¤½¤ì¤òÍ¿¤¨¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£¤½¤ì¤ò default ¤È¤¹¤ë¤È¡¢ºÆ¤Ó¼«Æ°ÀßÄ꤬ͭ¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó lambda_factor ¤Ï¡¢ÂоݤȤ¹¤ë´Ø¿ô¤Î¦Ö¼«¾èÃͤ¬°ÕÌ£¤¢¤ê¤²¤ËÁý²Ã ¤¹¤ë/¸º¾¯¤¹¤ë¤È¤­¤Ï¾ï¤Ë lambda ¤òÁý²Ã¤µ¤»¤ë/¸º¾¯¤µ¤»¤ë°ø»Ò¤òÀßÄꤷ¤Þ ¤¹¡£¤½¤ì¤ò default ¤È¤¹¤ë¤È¡¢¥Ç¥Õ¥©¥ë¥È¤Î°ø»Ò¤Ç¤¢¤ë 10.0 ¤Ë¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó script ¤Ï¡¢fit ¤òÃæÃǤ·¤¿¤È¤­¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³¥Þ¥ó ¥É¤ò»ØÄꤹ¤ë¤â¤Î¤Ç¤¹¡£°Ê²¼»²¾È: fit (88)¡£¤³¤ÎÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤Î replot ¤ä´Ä¶­ÊÑ¿ô FIT_SCRIPT ¤è¤ê¤âÍ¥Àè½ç°Ì¤Ï¾å¤Ç¤¹¡£

¥ª¥×¥·¥ç¥ó covariancevariables ¤ò¥ª¥ó¤Ë¤¹¤ë¤È¡¢ºÇ½ªÅª¤Ê¥Ñ¥é¥á¡¼¥¿´Ö ¤Î¶¦Ê¬»¶¤ò¥æ¡¼¥¶ÄêµÁÊÑ¿ô¤ËÊݸ¤·¤Þ¤¹¡£³Æ¥Ñ¥é¥á¡¼¥¿¤ÎÁȤËÂФ·¤Æ¤½¤Î¶¦Ê¬ »¶¤òÊݸ¤¹¤ëÊÑ¿ô̾¤Ï¡¢"FIT_COV_" ¤ËºÇ½é¤Î¥Ñ¥é¥á¡¼¥¿Ì¾¤È "_" ¤È 2 ¤ÄÌÜ ¤Î¥Ñ¥é¥á¡¼¥¿¤ò¤Ä¤Ê¤²¤¿Ì¾Á°¤Ë¤Ê¤ê¤Þ¤¹¡£Î㤨¤Ð¥Ñ¥é¥á¡¼¥¿ "a" ¤È "b" ¤ËÂÐ ¤·¤Æ¤Ï¡¢¤½¤Î¶¦Ê¬»¶ÊÑ¿ô̾¤Ï "FIT_COV_a_b" ¤È¤Ê¤ê¤Þ¤¹¡£

¥Ð¡¼¥¸¥ç¥ó 5 ¤Ç¤Ï¡¢¥³¥Þ¥ó¥É fit ¤Î½ñ¼°¤ÏÊѹ¹¤µ¤ì¡¢¥­¡¼¥ï¡¼¥É error ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ïñ°Ì½Å¤ß (unitweights) ¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ ¤·¤¿¡£¥ª¥×¥·¥ç¥ó v4 ¤Ç gnuplot ¥Ð¡¼¥¸¥ç¥ó 4 ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤ËÌá¤ê ¤Þ¤¹¡£°Ê²¼¤â»²¾È: fit (88)¡£

112.30 ¥Õ¥©¥ó¥È¥Ñ¥¹ (fontpath)

½ñ¼°:


     set fontpath "/directory/where/my/fonts/live"
     set term postscript fontfile <filename>

[version 5.4 ¤Ç¤ÏÈó¿ä¾©]

fontpath ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤¬ºî¤ë PostScript ½ÐÎÏ Æâ¤ËËä¤á¹þ¤à¥Õ¥©¥ó¥È¤Ë¤Î¤ß´Ø·¸¤·¤Þ¤¹¡£ ¾¤Î gnuplot ½ÐÎÏ·Á¼°¤Ë¤Ï²¿¤Î±Æ¶Á¤âÍ¿¤¨¤Þ¤»¤ó¡£ ¤¢¤Ê¤¿¤¬¥Õ¥©¥ó¥È¤òËä¤á¤³¤Þ¤Ê¤±¤ì¤Ð¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ï¤¢¤Ê¤¿¤Ë¤ÏɬÍפ¢¤ê¤Þ ¤»¤ó¤·¡¢Ëä¤á¤³¤à¾ì¹ç¤Ç¤â¡¢°Ê²¼¤Ë¼¨¤¹Â¾¤Î¥Ñ¥¹¤Ë¥Õ¥©¥ó¥È¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì ¹ç¤Ë¤Î¤ßɬÍפʤÀ¤±¤Ç¤¹¡£

°ÊÁ°¤ÎÈǤΠgnuplot ¤Ï¡¢¥Õ¥©¥ó¥È¤ò´Þ¤àÊ£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤òõº÷¤¹ ¤ë¤³¤È¤Ç¥Õ¥©¥ó¥È´ÉÍý¥½¥Õ¥È¤ò¤Þ¤Í¤Æ¤¤¤Þ¤·¤¿¡£ ¤·¤«¤·¸½ºß¤Ï¡¢°Ê²¼¤Î¾ì½ê¤ò¸¡º÷¤¹¤ëÊýË¡¤ËÃÖ¤­´¹¤ï¤Ã¤Æ¤¤¤Þ¤¹¡£ (1) set term postscript fontfile ¥³¥Þ¥ó¥É¤ÇÍ¿¤¨¤¿ÀäÂХѥ¹ (2) ¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê (¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê) (3) set loadpath ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¤¹¤Ù¤Æ (4) set fontpath ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê (5) ´Ä¶­ÊÑ¿ô GNUPLOT_FONTPATH ¤Ë»ØÄꤵ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê

Ãí°Õ: libgd ¤Î½ÐÎÏ·Á¼° (png gif jpeg sixel) ÍѤ˥ե¡¥¤¥ë̾¤Ç»ØÄꤹ¤ë¥Õ ¥©¥ó¥È¤Î¸¡º÷¥Ñ¥¹¤Ï¡¢´Ä¶­ÊÑ¿ô GDFONTPATH ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

112.31 ¼´¤Î¹ï¤ß½ñ¼° (format)

ºÂɸ¼´¤Î¹ï¤ß¤Î¸«½Ð¤·¤Ï¡¢¥³¥Þ¥ó¥É set format ¤Þ¤¿¤Ï set tics format ¤Þ¤¿¤Ï¸ÄÊ̤˥³¥Þ¥ó¥É set {¼´}tics format ¤Ç½ñ¼°¤òÀßÄê¤Ç¤­¤Þ¤¹¡£ÆþÎÏ ¥Ç¡¼¥¿¤ËÂФ¹¤ëÌÀ¼¨Åª¤Ê½ñ¼°¤Î»ÈÍÑË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: using format (99.3.11.1)¡£

½ñ¼°:


     set format {<axes>} {"<format-string>"} {numeric|timedate|geographic}
     show format

¤³¤³¤Ç¡¢<axes> (¼´) ¤Ï x, y, xy, x2, y2, z, cb¡¢¤Þ¤¿¤Ï²¿ ¤â»ØÄꤷ¤Ê¤¤¤« (¤½¤Î¾ì¹ç¤½¤Î½ñ¼°¤Ï¤¹¤Ù¤Æ¤Î¼´¤ËŬÍѤµ¤ì¤Þ¤¹) ¤Î¤¤¤º¤ì¤« ¤Ç¤¹¡£°Ê²¼¤Î 2 ¤Ä¤Î¥³¥Þ¥ó¥É¤ÏÁ´¤¯Æ±Åù¤Ç¤¹:


     set format y "%.2f"
     set ytics format "%.2f"

½ñ¼°Ê¸»úÎó¤ÎŤµ¤Ï 100 ʸ»ú¤Þ¤Ç¡¢¤ÈÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î½ñ¼° ʸ»úÎó¤Ï "% h" ¤Ç¡¢LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤Ç¤Ï "$%h$" ¤Ç¤¹¡£Â¾¤Ë "%.2f" ¤ä "%3.0em" ¤Î¤è¤¦¤Ê½ñ¼°¤¬¹¥¤Þ¤ì¤ë¤³¤È¤â¿¤¤¤Ç¤·¤ç¤¦¡£"set format" ¤Î¸å¤í ¤Ë²¿¤â¤Ä¤±¤º¤Ë¼Â¹Ô¤¹¤ë¤È¡¢¥Ç¥Õ¥©¥ë¥È¤ËÌᤷ¤Þ¤¹¡£

¶õʸ»úÎó "" ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¹ï¤ß¼«¿È¤Ïɽ¼¨¤·¤Þ¤¹¤¬¸«½Ð¤·¤Ï¤Ä¤±¤Þ¤»¤ó¡£ ¹ï¤ß¼«¿È¤ò¾Ã¤¹¤Ë¤Ï¡¢ unset xtics ¤Þ¤¿¤Ï set tics scale 0 ¤ò»ÈÍѤ· ¤Æ¤¯¤À¤µ¤¤¡£

½ñ¼°Ê¸»úÎó¤Ç¤Ï¡¢²þ¹Ôʸ»ú ( \n) ¤ä³Èĥʸ»úÎó½èÍý (enhanced text) ÍÑ¤Î¥Þ ¡¼¥¯¥¢¥Ã¥×¤â»È¤¨¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ï¡¢Ã±°ì°úÍÑÉä (') ¤Ç¤Ê¤¯ (") ¤ò»È¤Ã¤Æ ¤¯¤À¤µ¤¤¡£°Ê²¼¤â»²¾È: syntax (30)¡£ "%" ¤¬Æ¬¤Ë¤Ä¤«¤Ê¤¤Ê¸»ú¤Ï¤½¤Î¤Þ¤Þɽ¼¨¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢½ñ¼°Ê¸»úÎóÆâ¤Ë ¥¹¥Ú¡¼¥¹¤äʸ»úÎó¤Ê¤É¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð "%g m" ¤È¤¹¤ì¤Ð¡¢ ¿ôÃͤθå¤Ë " m" ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£"%" ¼«¿È¤òɽ¼¨¤¹¤ë¾ì¹ç¤Ë¤Ï "%g %%" ¤Î ¤è¤¦¤Ë 2 ¤Ä½Å¤Í¤Þ¤¹¡£

¹ï¤ß¤Ë´Ø¤¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤â»²¾È: set xtics (112.123)¡£¤Þ¤¿¡¢ ¤³¤ÎÊýË¡¤Ç½ÐÎϤµ¤ì¤ë¿ô»ú¤Ë¥Ç¥Õ¥©¥ë¥È°Ê³°¤Î¾®¿ôʬΥʸ»ú¤ò»È¤¦¤ä¤êÊý¤Ë¤Ä ¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set decimalsign (112.24)¡£ °Ê²¼¤â»²¾È ¥¨¥ì¥¯¥È¥í¥ó (ÅÅ»Ò) ¥Ç¥â (electron.dem).

112.31.1 Gprintf

ʸ»úÎó´Ø¿ô gprintf("format",x) ¤Ï¡¢gnuplot ¥³¥Þ¥ó¥É¤Î set format, set timestamp ¤Ê¤É¤ÈƱÍͤΡ¢gnuplot Æȼ«¤Î½ñ¼°»ØÄê»Ò¤ò»È¤¤¤Þ¤¹¡£¤³¤ì ¤é¤Î½ñ¼°»ØÄê»Ò¤Ï¡¢É¸½àŪ¤Ê C ¸À¸ì¤Î´Ø¿ô¤Ç¤¢¤ë sprintf() ¤Î¤â¤Î¤ÈÁ´¤¯Æ± ¤¸¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£gprintf() ¤Ï¡¢À°·Á²½¤µ¤ì¤ë°ú¿ô¤Ï°ì¤Ä¤·¤«¼õ¤±¤Ä¤±¤Þ¤» ¤ó¡£¤½¤Î¤¿¤á¤Ë¡¢gnuplot ¤Ë¤Ï sprintf("format",x1,x2,...) ´Ø¿ô¤âÍÑ°Õ¤µ ¤ì¤Æ¤¤¤Þ¤¹¡£gnuplot ¤Î½ñ¼°¥ª¥×¥·¥ç¥ó¤Î°ìÍ÷¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: format specifiers (112.31.2)¡£

112.31.2 ½ñ¼°»ØÄê»Ò (format specifiers)

»ÈÍѲÄǽ¤Ê½ñ¼° (»þ´Ö/ÆüÉե⡼¥É¤Ç¤Ê¤¤¾ì¹ç) ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:

ÌÜÀ¹¤ê¥é¥Ù¥ë¤Î¿ôÃͽñ¼°»ØÄê»Ò
½ñ¼° ÀâÌÀ
%f ¸ÇÄê¾®¿ôÅÀɽµ­
%e, %E »Ø¿ôɽµ­; »Ø¿ô¤ÎÁ°¤Ë "e", "E" ¤ò¤Ä¤±¤ë
%g, %G %e (¤Þ¤¿¤Ï %E) ¤È %f ¤Îάµ­
%h, %H %g ¤Ë "e%S" ¤Ç¤Ê¤¯ "x10^{%S}" ¤« "*10^{%S}" ¤ò¤Ä¤±¤ë
%x, %X 16 ¿Êɽµ­
%o, %O 8 ¿Êɽµ­
%t 10 ¿Ê¤Î²¾¿ôÉô
%l ¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë²¾¿ôÉô
%s ¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë²¾¿ôÉô; Êä½õñ°Ì (scientific power)
%T 10 ¿Ê¤Î»Ø¿ôÉô
%L ¸½ºß¤ÎÂпô¼Ü¤ÎÄì¤ò´ð¿ô¤È¤¹¤ë»Ø¿ôÉô
%S Êä½õñ°Ì¤Î»Ø¿ôÉô (scientific power)
%c Êä½õñ°Ìʸ»ú
%b ISO/IEC 80000 µ­Ë¡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ¤Î²¾¿ôÉô
%B ISO/IEC 80000 µ­Ë¡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) ¤ÎÀÜƬ¼­
%P ¦Ð¤ÎÇÜ¿ô

Êä½õñ°Ì ('scientific' power) ¤Ï¡¢»Ø¿ô¤¬ 3 ¤ÎÇÜ¿ô¤Ç¤¢¤ë¤è¤¦¤Ê¤â¤Î¤Ç¤¹¡£ Êä½õñ°Ì»Ø¿ô ("%c") ¤Îʸ»ú¤Ø¤ÎÊÑ´¹¤Ï -18 ¤«¤é +18 ¤Þ¤Ç¤Î»Ø¿ô¤ËÂФ·¤Æ ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÈϰϳ°¤Î»Ø¿ô¤Î¾ì¹ç¡¢½ñ¼°¤ÏÄ̾ï¤Î»Ø¿ô·Á¼°¤Ë Ìá¤ê¤Þ¤¹¡£

¤Û¤«¤Ë»È¤¦¤³¤È¤Î¤Ç¤­¤ë½¤¾þ»ì ("%" ¤È½ñ¼°»ØÄê»Ò¤Î´Ö¤Ë½ñ¤¯¤â¤Î) ¤Ë¤Ï¡¢ ¼¡¤Î¤¤¤¯¤Ä¤«¤¬¤¢¤ê¤Þ¤¹: "-" ¤Ï¿ô»ú¤òº¸µÍ¤á¤Ë¤·¡¢"+" ¤ÏÀµ¤Î¿ô¤Ë¤âÉä¹æ¤ò ¤Ä¤±¡¢" " (¶õÇò°ì¤Ä) ¤ÏÉé¤Î¿ô¤Ë "-" ¤ò¤Ä¤±¤ë¤Ù¤­¾ì½ê¤ËÀµ¤Î¿ô¤Î¾ì¹ç¤Ë¶õ Çò¤ò°ì¤Ä¤Ä¤±¡¢"#" ¤Ï¾®¿ôÅÀ°Ê²¼¤Î¿ô»ú¤¬ 0 ¤À¤±¤Ç¤¢¤Ã¤Æ¤â¾®¿ôÅÀ¤ò¤Ä¤±¡¢ Àµ¤ÎÀ°¿ô¤Ï½ÐÎÏÉý¤òÄê¤á¡¢½ÐÎÏÉý»ØÄê¤ÎľÁ°¤Î "0" (ʸ»ú¤Ç¤Ê¤¯¿ô»ú) ¤ÏÀèƬ ¤Ë¶õ¤¤¤¿Éôʬ¤ò¶õÇò¤ÇËä¤á¤ëÂå¤ï¤ê¤Ë 0 ¤ÇËä¤á¡¢¾®¿ôÅÀ¤Î¸å¤ËÈóÉé¤ÎÀ°¿ô¤ò ½ñ¤¤¤¿¤â¤Î¤ÏÀºÅÙ¤ò°ÕÌ£¤·¤Þ¤¹ (À°¿ô¤Î¾ì¹ç¤ÏºÇ¾®·å¡¢¾®¿ô¤Î¾ì¹ç¤Ï¾®¿ôÅÀ°Ê ²¼¤Î·å¿ô)¡£

¤³¤ì¤é¤ÎÁ´¤Æ¤Î½¤¾þ»ì¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤ OS ¤â¤¢¤ë¤Ç¤·¤ç¤¦¤·¡¢µÕ¤Ë¤³¤ì °Ê³°¤Î¤â¤Î¤ò¤â¥µ¥Ý¡¼¥È¤¹¤ë OS ¤â¤¢¤ë¤Ç¤·¤ç¤¦¡£µ¿¤ï¤·¤¤¾ì¹ç¤Ï¡¢Å¬Àڤʻñ ÎÁ¤òÄ´¤Ù¡¢¤½¤·¤Æ¼Â¸³¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

Îã:


     set format y "%t"; set ytics (5,10)          # "5.0" ¤È "1.0"
     set format y "%s"; set ytics (500,1000)      # "500" ¤È "1.0"
     set format y "%+-12.3f"; set ytics(12345)    # "+12345.000  "
     set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"
     set format y "%s*10^{%S}"; set ytic(12345)   # "12.345*10^{3}"
     set format y "%s %cg"; set ytic(12345)       # "12.345 kg"
     set format y "%.0P pi"; set ytic(6.283185)   # "2 pi"
     set format y "%.0f%%"; set ytic(50)          # "50%"


     set log y 2; set format y '%l'; set ytics (1,2,3)
     #"1.0", "1.0", "1.5" ¤Èɽ¼¨¤µ¤ì¤ë (3 ¤Ï 1.5 * 2^1 ¤Ê¤Î¤Ç)

´Ý¤á¤È»Ø¿ô¤¬É¬ÍפȤʤë¤è¤¦¤Ê½ñ¼°¤Ç 9.999 ¤ÎÍͤʿô»ú¤¬½ñ¤«¤ì¤ë¾ì¹ç¤Ï ÌäÂ꤬µ¯¤³¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£

¼´¤Î¥Ç¡¼¥¿·¿¤¬Æü»þ¥Ç¡¼¥¿ (time/date) ¤Î¾ì¹ç¡¢½ñ¼°Ê¸»úÎó¤Ï 'strftime' ´Ø¿ô ('gnuplot' ³°¡£"man strftime" ¤È¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤) ¤Ë´Ø¤¹¤ëÍ­¸ú¤Ê »ØÄê¤ò¹Ô¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£»È¤¨¤ëÆþÎϽñ¼°»ØÄê¤Î°ìÍ÷¤Ë´Ø¤·¤Æ¤Ï¡¢°Ê²¼»²¾È: set timefmt (112.96)¡£

112.31.3 Æü»þ¥Ç¡¼¥¿»ØÄê»Ò (time/date specifiers)

Æü»þ½ñ¼°»ØÄê¤Ë¤Ï¡¢Æü»þ»ØÄê¤ÈÁêÂлþ¹ï¤Î 2 ¤Ä¤Î¥°¥ë¡¼¥×¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì ¤é¤Ï¡¢ ¼´¤Î¹ï¤ß¤Î¥é¥Ù¥ë¤òÀ¸À®¤·¤¿¤ê¡¢»þ¹ï¤òʸ»úÎó¤Ë¥¨¥ó¥³¡¼¥É¤¹¤ë¤Î¤Ë »È¤ï¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set xtics time (112.123.3), strftime (15.3), strptime (15.3)¡£

Æü»þ½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

ÆüÉÕ»ØÄê»Ò
½ñ¼° ÀâÌÀ
%a ÍËÆü̾¤Î¾Êά·Á (Sun,Mon,...)
%A ÍËÆü̾ (Sunday,Monday,...)
%b, %h ·î̾¤Î¾Êά·Á (Jan,Feb,...)
%B ·î̾ (January,February,...)
%d Æü (01–31)
%D "%m/%d/%y" ¤Î´Êά·Á (½ÐÎϤΤß)
%F "%Y-%m-%d" ¤Î´Êά·Á (½ÐÎϤΤß)
%k »þ (0–23; 1 ·å¤Þ¤¿¤Ï 2 ·å)
%H »þ (00–23; ¾ï¤Ë 2 ·å)
%l »þ (1–12; 1 ·å¤Þ¤¿¤Ï 2 ·å)
%I »þ (01–12; ¾ï¤Ë 2 ·å)
%j ¤½¤Îǯ¤ÎÄÌ»»Æü (001–366)
%m ·î (01–12)
%M ʬ (00–60)
%p "am" ¤Þ¤¿¤Ï "pm"
%r "%I:%M:%S %p" ¤Î´Êά·Á (½ÐÎϤΤß)
%R "%H:%M" ¤Î´Êά·Á (½ÐÎϤΤß)
%S Éà (½ÐÎÏ¤Ç¤Ï 00–60 ¤ÎÀ°¿ô¡¢ÆþÎϤǤϼ¿ô)
%s 1970 ǯºÇ½é¤«¤é¤ÎÉÿô
%T "%H:%M:%S" ¤Î´Êά·Á (½ÐÎϤΤß)
%U ¤½¤Îǯ¤ÎÄÌ»»½µ (CDC/MMWR ±Ö³ØŪ½µ) (ÆþÎϤǤÏ̵»ë)
%w ÍËÆüÈÖ¹æ (0–6, ÆüÍË = 0)
%W ¤½¤Îǯ¤ÎÄÌ»»½µ (ISO 8601 ¤Î½µÈÖ¹æ) (ÆþÎϤǤÏ̵»ë)
%y À¾Îñ (0-99¡¢1969-2068 ǯ¤Î²¼ 2 ·å)
%Y À¾Îñ (4 ·å)
%z ¥¿¥¤¥à¥¾¡¼¥ó¡¢[+-]hh:mm
%Z ¥¿¥¤¥à¥¾¡¼¥ó̾¡¢Ê¸»úÎó¤Ï̵»ë

½ñ¼° %W (ISO ¤Î½µÈÖ¹æ) ¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: tm_week (15.3.17.4)¡£ ½ñ¼° %U (CDC/MMWR: ¥¢¥á¥ê¥«¼ÀÉÂͽËÉ´ÉÍý¥»¥ó¥¿¡¼±Ö³Ø½µÊó¤Î±Ö³ØŪ½µÈÖ¹æ) ¤Ï¡¢½µ¤¬·îÍ˳«»Ï¤Ç¤Ê¤¯ÆüÍ˳«»Ï¤Ç¤¢¤ë¤³¤È¤ò½ü¤±¤Ð %W ¤ÈƱÍͤǤ¹¡£ ·Ù¹ð: ¥Ð¡¼¥¸¥ç¥ó 5.4.2 ¤è¤êÁ°¤Î gnuplot ¤Ç¤Ï¡¢½ñ¼° %W ¤È %U ¤Ï¤¤¤º¤ì¤â ¿®Íê¤Ç¤­¤Þ¤»¤ó¡£"week_date.dem" ¤Îñ°Ì¥Æ¥¹¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

ÁêÂлþ¹ï½ñ¼°¤Ï¡¢»þ¹ï 0 ÃÏÅÀ¤Î¤¤¤º¤ì¤«¤Î¦¤Î»þ´Ö´Ö³Ö¤ÎŤµ¤òɽ¸½¤·¤Þ¤¹¡£ ÁêÂлþ¹ï½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

»þ¹ï»ØÄê»Ò
½ñ¼° ÀâÌÀ
%tD »þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤ÎÆüÉÕ
%tH »þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤Î»þ (24 ¤Ç¤Î´¬Ìᤷ¤Ê¤·)
%tM »þ¹ï 0 ¤Ø¤ÎÁêÂÐŪ¤ÊÀµÉé¤Îʬ
%tS ľÁ°¤Î tH, tM ¹àÌܤËÂбþ¤¹¤ëÀµÉé¤ÎÉÿô

¿ô»ú¤òɽ¤¹½ñ¼°¤Ë¤Ï¡¢ÀèƬ¤Ë 0 ¤òËä¤á¤ë¤¿¤á¤Ë "0" (¥¼¥í) ¤òÁ°¤Ë¤Ä¤±¤ë¤³ ¤È¤¬¤Ç¤­¡¢¤Þ¤¿ºÇ¾®¤Î½ÐÎÏÉý¤ò»ØÄꤹ¤ë¤¿¤á¤ËÀµ¤ÎÀ°¿ô¤òÁ°¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç ¤­¤Þ¤¹¡£½ñ¼° %S ¤È %t ¤ÏÀºÅÙ»ØÄê¤â¼õ¤±¤Ä¤±¤ë¤Î¤Ç¡¢¾®¿ô¤Î»þ/ʬ/Éäò½ñ¤¯ ¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

112.31.3.1 Îã (Examples)

ÆüÉÕ½ñ¼°¤ÎÎã:

x ¤ÎÃͤ¬¡¢1976 ǯ 12 ·î 25 Æü¤Î¿¼Ì뾯¤·Á°¤Î»þ¹ï¤ËÂбþ¤¹¤ëÉÿô¤Ç¤¢¤ë¤È ²¾Äꤷ¤Þ¤¹¡£¤³¤Î°ÌÃ֤μ´¤Î¹ï¤ß¥é¥Ù¥ëʸ»úÎó¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹:


     set format x                 # ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï "12/25/76 \n 23:11"
     set format x "%A, %d %b %Y"  # "Saturday, 25 Dec 1976"
     set format x "%r %D"         # "11:11:11 pm 12/25/76"
     set xtics time format "%B"   # "December"

»þ¹ï½ñ¼°¤ÎÎã:

ÆüÉÕ½ñ¼°»ØÄê¤Ï¡¢Éÿô¤Ç¤Î»þ´Ö¤ÎÃͤò¡¢¤¢¤ëÆÃÄê¤ÎÆü¤Î»þ·×¤Î»þ¹ï¤Ë¥¨¥ó¥³¡¼ ¥É¤·¤Þ¤¹¡£¤è¤Ã¤Æ¡¢»þ¤Ï 0 ¤«¤é 23 ¤Þ¤Ç¡¢Ê¬¤Ï 0 ¤«¤é 59 ¤Þ¤Ç¤Î¤ß¤òÆ°¤­¤Þ ¤¹¤¬¡¢¤½¤ì¤é¤ÎÉé¤ÎÃͤϡ¢¥¨¥Ý¥Ã¥¯ (1970 ǯ 1 ·î 1 Æü) ¤è¤êÁ°¤ÎÆüÉÕ¤ËÂÐ ±þ¤·¤Þ¤¹¡£Éÿô¤Ç¤Î»þ´Ö¤ÎÃͤò¡¢»þ´Ö 0 ¤ËÂФ¹¤ëÁêÂÐŪ¤Ê»þ/ʬ/ÉäοôÃÍ¤È ¤·¤Æ½ÐÎϤµ¤»¤ë¤Ë¤Ï¡¢»þ´Ö½ñ¼° %tH %tM %tS ¤ò»ÈÍѤ·¤Þ¤¹¡£-3672.50 ÉäÎÃÍ ¤Ï°Ê²¼¤Î¤è¤¦¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£


     set format x                 # ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï "12/31/69 \n 22:58"
     set format x "%tH:%tM:%tS"   # "-01:01:12"
     set format x "%.2tH hours"   # "-1.02 hours"
     set format x "%tM:%.2tS"     # "-61:12.50"

112.32 ³Ê»ÒÀþ (grid)

¥³¥Þ¥ó¥É set grid ¤Ï³Ê»ÒÀþ¤òÉÁ¤­¤Þ¤¹¡£

½ñ¼°:


     set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
              {{no}{m}x2tics} {{no}{m}y2tics} {{no}{m}rtics}
              {{no}{m}cbtics}
              {polar {<angle>}}
              {layerdefault | front | back}
              {{no}vertical}
              {<line-properties-major> {, <line-properties-minor>}}
     unset grid
     show grid

³Ê»ÒÀþ¤ÏǤ°Õ¤Î¼´¤ÎǤ°Õ¤ÎÂçÌÜÀ¹¤ê/¾®ÌÜÀ¹¤ê¤ËÂФ·¤ÆÍ­¸ú/̵¸ú¤Ë¤Ç¤­¡¢¤½¤Î ÂçÌÜÀ¹¤ê¤È¾®ÌÜÀ¹¤ê¤ËÂФ¹¤ëÀþ¼ï¡¢ÀþÉý¤â»ØÄê¤Ç¤­¡¢¸½ºß¤Î½ÐÎÏÁõÃÖ¤¬¥µ¥Ý¡¼ ¥È¤¹¤ëÈϰϤǡ¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ò»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹ (°Ê²¼»²¾È: set style line (112.86.8))¡£

2 ¼¡¸µÉÁ²è¤Ç¤Ï¶ËºÂɸ³Ê»Ò¤âÁªÂò¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot ¤¬¶ËºÂɸ¥â¡¼¥É (polar) ¤Î¤È¤­¤Î set grid ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤Ç¤¹¤¬¡¢ÌÀ¼¨Åª¤Ë set grid polar <angle> rtics ¤È¤¹¤ì¤Ð¡¢¶ËºÂɸ¥â¡¼¥É¤Ç¤¢¤ë¤Ê¤·¤Ë´Ø¤ï ¤é¤º¼Â¹Ô¤Ç¤­¤Þ¤¹¡£Æ±¿´±ß¤Ï r ¼´¤Î¼çÌÜÀ¹/ÉûÌÜÀ¹¤Ç¸òº¹¤¹¤ë¤è¤¦¤ËÉÁ¤­¡¢Æ° ·Â¤Ï <angle> ¤Î³Ñ¤ò¶õ¤±¤ÆÉÁ¤­¤Þ¤¹¡£Æ±¿´±ß¤Î¼þ°Ï¤ÎÌÜÀ¹¤ê¤Î¹ï¤ß¤Ï¡¢ set ttics ¤ÇÀ©¸æ¤·¤Þ¤¹¤¬¡¢¤³¤ì¤ÏÆ°·Â¤Î³Ê»ÒÀþ¤ò¿·¤¿¤Ë¤ÏÀ¸À®¤·¤Þ¤»¤ó¡£

set grid ¤¬ÉÁ¤¯Á°¤Ë¡¢É¬ÍפÊÌÜÀ¹¤ê¤ÏÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ gnuplot ¤Ï¡¢Â¸ºß¤·¤Ê¤¤ÌÜÀ¹¤ê¤ËÂФ¹¤ë³Ê»Ò¤ÎÉÁ²è¤ÎÌ¿Îá¤Ïñ¤Ë̵»ë¤·¤Þ¤¹¡£ ¤·¤«¤·¡¢¸å¤Ç¤½¤ÎÌÜÀ¹¤ê¤¬Í­¸ú¤Ë¤Ê¤ì¤Ð¤½¤ì¤ËÂФ¹¤ë³Ê»Ò¤âÉÁ¤­¤Þ¤¹¡£

¾®³Ê»ÒÀþ¤ËÂФ¹¤ëÀþ¼ï¤ò²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¡¢Âç³Ê»ÒÀþ¤ÈƱ¤¸Àþ¼ï¤¬»È¤ï¤ì¤Þ ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¶ËºÂɸ¤Î³ÑÅÙ¤Ï 30 Å٤Ǥ¹¡£

front ¤ò»ØÄꤹ¤ë¤È¡¢³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï³Ê»ÒÀþ¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È ¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤Ç³Ê»ÒÀþ¤¬¸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ç¤Ï layerdefault ¤Ç¡¢¤³¤ì¤Ï 2D ÉÁ²è¤Ç¤Ï back ¤ÈƱ¤¸¤Ç¤¹¡£ 3D ÉÁ²è¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢³Ê»Ò¤È¥°¥é¥Õ¤ÎÏȤò 2 ¤Ä¤ÎÉÁ²èñ°Ì¤ËʬΥ¤·¡¢³Ê»Ò ¤Ï¸å¤í¤Ë¡¢ÏȤÏÉÁ²è¥Ç¡¼¥¿¤Þ¤¿¤Ï´Ø¿ô¤ÎÁ°¤Ë½ñ¤­¤Þ¤¹¡£¤¿¤À¤·¡¢hidden3d ¥â¡¼¥É¤Ç¤Ï¡¢¤½¤ì¤¬¤½¤ì¼«¿È¤ÎʤӴ¹¤¨¤ò¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢³Ê»ÒÀþ¤Î½çÈ֤Υª ¥×¥·¥ç¥ó¤ÏÁ´¤Æ̵»ë¤µ¤ì¡¢³Ê»ÒÀþ¤â±£Àþ½èÍý¤Ë¤«¤±¤é¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢¼ÂºÝ¤Ë¤Ï³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢set border ¤Ë¤è¤ë¶­³¦Àþ¤È¤½¤ÎÌÜÀ¹ ¤ê¤Î¹ï¤ß (°Ê²¼»²¾È: set xtics (112.123)) ¤Ë¤â±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£

3 ¼¡¸µÉÁ²è¤Ç¤Ï¡¢x ¼´¤È y ¼´¤Î¹ï¤ß°ÌÃÖ¤ËÂФ¹¤ë³Ê»ÒÀþ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï z=0 ¤ËÊ¿¹Ô¤ÊÄìÌ̾å¤Ë¤·¤«ÉÁ¤­¤Þ¤»¤ó¤¬¡¢¥­¡¼¥ï¡¼¥É vertical ¤Ï¡¢³Ê»ÒÀþ ¤ò xz ÌÌ¤È yz Ì̤ˤâ zmin ¤«¤é zmax ¤Þ¤ÇÉÁ¤¯¤è¤¦¤Ë¤·¤Þ¤¹¡£

z ¤Î³Ê»ÒÀþ¤ÏÉÁ²è¤ÎÄìÌ̤ËÉÁ¤«¤ì¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¼þ¤ê¤ËÉôʬŪ¤ÊÈ¢¤¬ÉÁ²è ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¤¤¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: set border (112.6)¡£

112.33 ±£Àþ½èÍý (hidden3d)

set hidden3d ¥³¥Þ¥ó¥É¤Ï¶ÊÌÌÉÁ²è (°Ê²¼»²¾È: splot (115)) ¤Ç±£Àþ½èÍý¤ò¹Ô¤Ê ¤¦¤è¤¦¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤½¤Î½èÍý¤ÎÆâÉô¥¢¥ë¥´¥ê¥º¥à¤Ë´Ø¤¹¤ëÄɲõ¡Ç½¤â¤³¤Î¥³ ¥Þ¥ó¥É¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set hidden3d {defaults} |
                  { {front|back}
                    {{offset <offset>} | {nooffset}}
                    {trianglepattern <bitpattern>}
                    {{undefined <level>} | {noundefined}}
                    {{no}altdiagonal}
                    {{no}bentover} }
     unset hidden3d
     show hidden3d

gnuplot ¤ÎÄ̾ï¤Îɽ¼¨¤È¤Ï°Û¤Ê¤ê¡¢±£Àþ½èÍý¤Ç¤ÏÍ¿¤¨¤é¤ì¤¿´Ø¿ô¡¢¤Þ¤¿¤Ï¥Ç¡¼ ¥¿¤Î³Ê»ÒÀþ¤ò¡¢¼ÂºÝ¤Î¶ÊÌ̤¬¤½¤Î¶ÊÌ̤ÎÇظå¤Ë¤¢¤Ã¤Æ±£¤µ¤ì¤Æ¤¤¤ëÉÁ²èÍ×ÁÇ¤Ï ¸«¤»¤Ê¤¤¤Î¤ÈƱ¤¸¤è¤¦¤Ë½èÍý¤·¤Þ¤¹¡£¤³¤ì¤¬µ¡Ç½¤¹¤ë¤¿¤á¤Ë¤Ï¡¢¤½¤Î¶ÊÌ̤¬ '³Ê»Ò¾õ' (°Ê²¼»²¾È: splot datafile (115.1)) ¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¡¢¤Þ¤¿¤½¤ì¤é¤Ï with lines ¤« with linespoints ¤ÇÉÁ¤«¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£

hidden3d ¤¬Í­¸ú¤Ê¤È¤­¤Ï¡¢³Ê»ÒÀþ¤À¤±¤Ç¤Ê¤¯¡¢ÌÌÉôʬ¤äÅÚÂæ¤Î¾å¤ÎÅù¹âÀþ (°Ê²¼»²¾È: set contour (112.19)) ¤â±£¤µ¤ì¤Þ¤¹¡£Ê£¿ô¤ÎÌ̤òÉÁ²è¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ ³Æ¶ÊÌ̤ϼ«Ê¬¼«¿È¤È¾¤Î¶ÊÌ̤DZ£¤µ¤ì¤ëÉôʬ¤â»ý¤Á¤Þ¤¹¡£¶ÊÌ̾å¤Ø¤ÎÅù¹âÀþ¤Î ɽ¼¨ (set contour surface) ¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£

¥°¥é¥Õ¾å¤Ë¶ÊÌ̤¬°ì¤Ä¤â¤Ê¤¤¾õÂ֤Ǥ⡢hidden3d ¤Ï points, labels, vectors, impulses ¤Î 3 ¼¡¸µ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ vectors ¤Ï¡¢±£¤µ¤ì¤Ê¤¤Éôʬ¤ÏÀþʬ (ÌðÀè¤Ê¤·) ¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£¥°¥é ¥ÕÆâ¤Î³Æ¡¹¤ÎÉÁ²è¤ò¤³¤Î½èÍý¤«¤éÌÀ¼¨Åª¤Ë½ü³°¤·¤¿¤¤¤È¤­¤Ï¡¢with »ØÄê¤Ë ÆÃÊ̤Υª¥×¥·¥ç¥ó nohidden3d ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

hidden3d ¤Ï¡¢pm3d ¥â¡¼¥É¤ÇÉÁ²è¤µ¤ì¤¿¡¢Ã±¿§Åɤê¤Î¶ÊÌ̤ˤϱƶÁ¤òÍ¿¤¨¤Þ¤» ¤ó¡£pm3d ¤Î¶ÊÌ̤ËÂФ·¤ÆƱÍͤθú²Ì¤ò½ã¿è¤ËÆÀ¤¿¤¤¤Ê¤é¤Ð¡¢¤³¤ì¤ÎÂå¤ï¤ê¤Ë set pm3d depthorder ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£Ê£¿ô¤Î pm3d ¶ÊÌ̤ËÄ̾ï¤Î hidden3d ½èÍý¤òÁȤ߹ç¤ï¤»¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó set hidden3d front ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï¡¢hidden3d ½èÍý¤ÎÁ´¤Æ¤ÎÍ×ÁǤò¡¢pm3d ¶ÊÌ̤ò´Þ¤à »Ä¤ê¤Î¾¤ÎÉÁ²èÍ×ÁǤθå¤Ë¶¯À©Åª¤ËÉÁ²è¤¹¤ë¤â¤Î¤Ç¤¹¡£

´Ø¿ôÃͤϳʻҸÉΩÀþ¤Î¸òÅÀ¤Çɾ²Á¤µ¤ì¤Þ¤¹¡£¸«¤ë¤³¤È¤Î½ÐÍè¤ëÀþʬ¤òµá¤á¤ë¤È ¤­¤Ï¸Ä¡¹¤Î´Ø¿ôÃÍ¡¢¤¢¤ë¤¤¤Ï¥Ç¡¼¥¿ÅÀ¤Î´Ö¤Ï¤½¤Î¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤Ã¤ÆÀþ·ÁÊä ´Ö¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¡¢hidden3d ¤ÇÉÁ²è¤¹¤ë¾ì¹ç¤È nohidden3d ¤ÇÉÁ²è¤¹ ¤ë¾ì¹ç¤Ç´Ø¿ô¤Î¸«¤«¤±¤¬°Û¤Ê¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤Ð¡¢¸å¼Ô¤Î¾ì¹ç´Ø ¿ôÃͤϳÆɸËÜÅÀ¤Çɾ²Á¤µ¤ì¤ë¤«¤é¤Ç¤¹¡£¤³¤Î°ã¤¤¤Ë´Ø¤¹¤ëµÄÏÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢ °Ê²¼»²¾È: set samples (112.83), set isosamples (112.35)¡£

¶ÊÌ̤ᣤµ¤ì¤ëÉôʬ¤ò¾Ãµî¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ë¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤Ç À©¸æ¤µ¤ì¤ë¤¤¤¯¤Ä¤«¤ÎÄɲ媥ץ·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£defaults ¤ò»ØÄꤹ ¤ì¤Ð¤½¤ì¤é¤Ï¤¹¤Ù¤Æ¡¢°Ê²¼¤Ç½Ò¤Ù¤ë¤è¤¦¤Ê¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ defaults ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢ÌÀ¼¨Åª¤Ë»ØÄꤵ¤ì¤¿¥ª¥×¥·¥ç¥ó¤Î ¤ß¤¬±Æ¶Á¤ò¼õ¤±¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤Ï°ÊÁ°¤ÎÃͤ¬°ú¤­·Ñ¤¬¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢¤½¤ì ¤é¤Î¥ª¥×¥·¥ç¥ó¤ÎÃͤò¤¤¤Á¤¤¤Á½¤Àµ¤¹¤ë¤³¤È¤Ê¤¯¡¢Ã±¤Ë set {no}hidden3d ¤Î¤ß¤Ç±£Àþ½èÍý¤ò¥ª¥ó/¥ª¥Õ¤Ç¤­¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

ºÇ½é¤Î¥ª¥×¥·¥ç¥ó offset ¤Ï '΢¦' ¤ÎÀþ¤òÉÁ²è¤¹¤ëÀþ¤ÎÀþ¼ï¤Ë±Æ¶Á¤òÍ¿¤¨ ¤Þ¤¹¡£Ä̾ï¤Ï¶ÊÌ̤Îɽ΢¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢Î¢Â¦¤ÎÀþ¼ï¤Ï¡¢É½Â¦¤ÎÀþ¼ï¤è¤ê°ì ¤ÄÂ礭¤¤ÈÖ¹æ¤ÎÀþ¼ï¤¬»È¤ï¤ì¤Þ¤¹¡£offset <offset> ¤Ë¤è¤Ã¤Æ¡¢¤½¤ÎÄɲä¹ ¤ëÃͤò¡¢¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤È¤Ï°Û¤Ê¤ëÁýʬÃͤËÊѹ¹¤Ç¤­¤Þ¤¹¡£nooffset ¥ª¥× ¥·¥ç¥ó¤Ï offset 0 ¤ò°ÕÌ£¤·¡¢¤³¤ì¤Ïɽ΢¤ÇƱ¤¸Àþ¼ï¤ò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¼¡¤Î¥ª¥×¥·¥ç¥ó¤Ï trianglepattern <bitpattern> ¤Ç¤¹¡£<bitpattern> ¤Ï 0 ¤«¤é 7 ¤Þ¤Ç¤Î¿ô»ú¤Ç¡¢¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤È²ò¼á¤µ¤ì¤Þ¤¹¡£³Æ¶ÊÌ̤ϻ°³Ñ·Á¤Ë ʬ³ä¤µ¤ì¤Þ¤¹¤¬¡¢¤³¤Î¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤Î³Æ¥Ó¥Ã¥È¤Ï¤½¤ì¤é¤Î»°³Ñ·Á¤Î³ÆÊÕ¤Îɽ ¼¨¤ò·èÄꤷ¤Þ¤¹¡£¥Ó¥Ã¥È 0 ¤Ï³Ê»Ò¤Î¿åÊ¿ÊÕ¡¢¥Ó¥Ã¥È 1 ¤Ï³Ê»Ò¤Î¿âľÊÕ¡¢¥Ó¥Ã ¥È 2 ¤Ï¡¢¸µ¡¹¤Î³Ê»Ò¤¬ 2 ¤Ä¤Î»°³Ñ·Á¤Ëʬ³ä¤µ¤ì¤ë¤È¤­¤ÎÂгÑÊդǤ¹¡£¥Ç¥Õ¥© ¥ë¥È¤Î¥Ó¥Ã¥È¥Ñ¥¿¡¼¥ó¤Ï 3 ¤Ç¡¢¤³¤ì¤ÏÁ´¤Æ¤Î¿åÊ¿ÊդȿâľÊÕ¤òɽ¼¨¤·¡¢ÂÐ³Ñ ÊÕ¤Ïɽ¼¨¤·¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ÂгÑÊÕ¤âɽ¼¨¤¹¤ë¾ì¹ç¤Ï 7 ¤ò»ØÄꤷ¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó undefined <level> ¤Ï¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤ (·ç¤±¤Æ¤¤¤ë¥Ç¡¼¥¿ ¤Þ¤¿¤Ï̤ÄêµÁ¤Î´Ø¿ôÃÍ) ¤«¡¢¤Þ¤¿¤ÏÍ¿¤¨¤é¤ì¤¿ x,y,z ¤ÎÈϰϤòĶ¤¨¤Æ¤¤¤ë¥Ç ¡¼¥¿ÅÀ¤ËŬÍѤµ¤»¤ë¥¢¥ë¥´¥ê¥º¥à¤ò»Ø¼¨¤·¤Þ¤¹¡£¤½¤Î¤è¤¦¤ÊÅÀ¤Ï¡¢¤½¤ì¤Ç¤â ɽ¼¨¤µ¤ì¤Æ¤·¤Þ¤¦¤«¡¢¤Þ¤¿¤ÏÆþÎϥǡ¼¥¿¤«¤é¼è¤ê½ü¤«¤ì¤Þ¤¹¡£¼è¤ê½ü¤«¤ì¤Æ ¤·¤Þ¤¦ÅÀ¤ËÀܤ¹¤ëÁ´¤Æ¤Î¶ÊÌÌÍ×ÁǤÏƱÍͤ˼è¤ê½ü¤«¤ì¡¢¤è¤Ã¤Æ¶ÊÌ̤˷꤬À¸ ¤¸¤Þ¤¹¡£<level> = 3 ¤Î¾ì¹ç¡¢¤³¤ì¤Ï noundefined ¤ÈƱ¤¸¤Ç¡¢¤É¤ó¤ÊÅÀ¤â ¼Î¤Æ¤é¤ì¤Þ¤»¤ó¡£¤³¤ì¤Ï¾¤Î¾ì½ê¤Ç¤¢¤é¤æ¤ë¼ïÎà¤ÎÌäÂê¤ò°ú¤­µ¯¤³¤·ÆÀ¤ë¤Î¤Ç »È¤ï¤Ê¤¤¤Ù¤­¤Ç¤¹¡£<level> = 2 ¤Ç¤Ï̤ÄêµÁ¤ÎÅÀ¤Ï¼Î¤Æ¤é¤ì¤Þ¤¹¤¬¡¢ÈϰϤòĶ ¤¨¤¿ÅÀ¤Ï¼Î¤Æ¤é¤ì¤Þ¤»¤ó¡£<level> = 1 ¤Ç¤Ï¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¤¬¡¢ÈÏ°Ï ¤òĶ¤¨¤¿ÅÀ¤â¼Î¤Æ¤é¤ì¤Þ¤¹¡£

noaltdiagonal ¤ò»ØÄꤹ¤ë¤È¡¢undefined ¤¬Í­¸ú¤Î¤È¤­ (¤¹¤Ê¤ï¤Á <level> ¤¬ 3 ¤Ç¤Ê¤¤¾ì¹ç) ¤Ëµ¯¤³¤ë°Ê²¼¤Î¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤Î¼è°·¤¤¤òÊѹ¹¤Ç¤­¤Þ ¤¹¡£ÆþÎ϶ÊÌ̤γƳʻҾõ¤ÎÉôʬ¤Ï°ìÊý¤ÎÂгÑÀþ¤Ë¤è¤Ã¤Æ 2 ¤Ä¤Î»°³Ñ·Á¤Ëʬ³ä ¤µ¤ì¤Þ¤¹¡£Ä̾ï¤Ï¤½¤ì¤é¤ÎÂгÑÀþ¤ÎÁ´¤Æ¤¬³Ê»Ò¤ËÂФ·¤ÆƱ¤¸Êý¸þ¤ò¸þ¤¤¤Æ¤¤¤Þ ¤¹¡£¤â¤·¡¢¤¢¤ë³Ê»Ò¤Î 4 ¤Ä¤Î³Ñ¤Î¤¦¤Á°ì¤Ä¤¬ undefined ½èÍý¤Ë¤è¤ê¤È¤ê½ü ¤«¤ì¤Æ¤¤¤Æ¡¢¤½¤Î³Ñ¤¬Ä̾ï¤ÎÊý¸þ¤ÎÂгÑÀþ¤Ë¾è¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¤½¤ÎξÊý¤Î»° ³Ñ·Á¤¬¼è¤ê½ü¤«¤ì¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤·¤«¤·¡¢¤â¤·¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç¤¢¤ë altdiagonal ¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î³Ê»Ò¤Ë¤Ä¤¤¤Æ¤Ï¾Êý¸þ¤ÎÂгÑÀþ ¤¬Âå¤ï¤ê¤ËÁªÂò¤µ¤ì¡¢¶ÊÌ̤ηê¤ÎÂ礭¤µ¤¬ºÇ¾®¤Ë¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

bentover ¥ª¥×¥·¥ç¥ó¤Ïº£ÅÙ¤Ï trianglepattern ¤È¤È¤â¤Ëµ¯¤³¤ëÊ̤Τ³¤È ¤òÀ©¸æ¤·¤Þ¤¹¡£¤«¤Ê¤ê¤·¤ï¤¯¤Á¤ã¤Î¶ÊÌ̤Ǥϡ¢²¼¤Î ASCII ʸ»ú³¨¤Ë½ñ¤¤¤¿¤è ¤¦¤Ë¡¢¶ÊÌ̤Π1 ¤Ä¤Î³Ê»Ò¤¬ 2 ¤Ä¤Ëʬ¤±¤é¤ì¤¿»°³Ñ·Á¤Îɽ¤È΢¤ÎÈ¿ÂЦ¤¬¸«¤¨ ¤Æ¤·¤Þ¤¦¾ì¹ç (¤¹¤Ê¤ï¤Á¡¢¸µ¤Î»Í³Ñ·Á¤¬ÀÞ¤ê¶Ê¤²¤é¤ì¤Æ¤¤¤ë ('bent over') ¾ì¹ç) ¤¬¤¢¤ê¤Þ¤¹:


                                                             C----B
        ¸µ¤Î 4 ³Ñ·Á:     A--B      ɽ¼¨¤µ¤ì¤ë 4 ³Ñ·Á:        |\   |
     ("set view 0,0")    | /|    ("set view 75,75" perhaps)  | \  |
                         |/ |                                |  \ |
                         C--D                                |   \|
                                                             A    D

¶ÊÌ̤γʻҤÎÂгÑÊÕ¤¬ <bitpattern> ¤Î 2 bit ¤Ë¤è¤Ã¤Æ¸«¤¨¤ë¤è¤¦¤Ë¤Ï¤Ê¤Ã ¤Æ¤Ï¤¤¤Ê¤¤¾ì¹ç¡¢¾å¤ÎÂгÑÊÕ CB ¤Ï¤É¤³¤Ë¤â½ñ¤«¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¡¢¤½¤ì¤¬·ë ²Ì¤Îɽ¼¨¤òÍý²ò¤·¤Ë¤¯¤¤¤â¤Î¤Ë¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÇÄêµÁ¤µ¤ì¤ë bentover ¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³¤Î¤è¤¦¤Ê¾ì¹ç¤½¤ì¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤â¤·¤½¤¦¤·¤¿¤¯ ¤Ê¤¤¤Ê¤é¡¢nobentover ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼¤â»²¾È ±£Àþ½èÍý¤Î¥Ç¥â (hidden.dem)

¤ª¤è¤Ó Ê£»¨¤Ê±£Àþ¤Î¥Ç¥â (singulr.dem).

112.34 ¥³¥Þ¥ó¥ÉÍúÎò (history)

½ñ¼°:


  set history {size <N>} {quiet|numbers} {full|trim} {default}

ºÇ¶á¤Î gnuplot ¥³¥Þ¥ó¥ÉÍúÎò¤ò¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï $HOME/.gnuplot_history ¤ËÊݸ¤·¤Þ¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤º¡¢¤«¤Ä XDG ¥Ç¥¹¥¯¥È¥Ã¥×¥µ¥Ý¡¼¥È ¤¬Í­¸ú¤Ê¾ì¹ç¡¢gnuplot ¤ÏÂå¤ï¤ê¤Ë $XDG_STATE_HOME/gnuplot_history ¤ò»È ÍѤ·¤Þ¤¹¡£

gnuplot ¤Î½ªÎ»»þ¤Ë¥Ò¥¹¥È¥ê¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¹Ô¿ô¤ò¡¢history size ¤ÎÃÍ ¤ËÀ©¸Â¤·¤Þ¤¹¡£set history size -1 ¤È¤¹¤ë¤È¡¢¥Ò¥¹¥È¥ê¥Õ¥¡¥¤¥ë¤Ë½ñ¤­½Ð ¤¹¹Ô¿ô¤ÎÀ©¸Â¤¬¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥³¥Þ¥ó¥É history ¤Ï³Æ¥³¥Þ¥ó¥É¤ÎÁ°¤Ë¹ÔÈÖ¹æ¤ò½ÐÎϤ·¤Þ ¤¹¡£history quiet ¤Ï¡¢º£²ó¤Î¼Â¹Ô¤ËÂФ·¤Æ¤Î¤ßÈÖ¹æ¤ò¾Êά¤·¤Þ¤¹¤¬¡¢ set history quiet ¤Ï¡¢º£¸å¤Î¤¹¤Ù¤Æ¤Î history ¤ÎÈÖ¹æ¤ò¾Êά¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó trim ¤Ï¡¢¸½ºß¤Î¥³¥Þ¥ó¥É¤ËÂФ¹¤ëÁ°¤ÎƱ¤¸¤â¤Î¤òºï½ü¤¹¤ë¤³¤È ¤Ç¡¢¥³¥Þ¥ó¥ÉÍúÎòÆâ¤Î½ÅÊ£¤¹¤ë¹Ô¤Î¿ô¤ò¸º¤é¤·¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê: set history size 500 numbers trim

112.35 ¸ÉΩÀþ¥µ¥ó¥×¥ë¿ô (isosamples)

´Ø¿ô¤òÌ̤Ȥ·¤ÆÉÁ²è¤¹¤ë¾ì¹ç¤Î¸ÉΩÀþ (³Ê»Ò) ¤ÎÌ©Å٤ϥ³¥Þ¥ó¥É set isosamples ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set isosamples <iso_1> {,<iso_2>}
     show isosamples

³Æ¶ÊÌÌ¥°¥é¥Õ¤Ï <iso_1> ¸Ä¤Î u-¸ÉΩÀþ¤È <iso_2> ¸Ä¤Î v-¸ÉΩÀþ¤ò»ý¤Á¤Þ¤¹¡£ <iso_1> ¤Î¤ß»ØÄꤹ¤ì¤Ð¡¢<iso_2> ¤Ï <iso_1> ¤ÈƱ¤¸ÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢u, v ¤½¤ì¤¾¤ì 10 ËܤÎɸËܲ½¤¬¹Ô¤ï¤ì¤Þ¤¹¡£É¸ËÜ¿ô¤ò¤â¤Ã¤È ¿¤¯¤¹¤ì¤Ð¤è¤êÀµ³Î¤Ê¥°¥é¥Õ¤¬ºî¤é¤ì¤Þ¤¹¤¬¡¢»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î ¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤ÎÉÁ²è¤Ë¤Ï²¿¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£

¸ÉΩÀþ¤È¤Ï¡¢¶ÊÌ̤ΰì¤Ä¤ÎÇÞ²ðÊÑ¿ô¤ò¸ÇÄꤷ¤Æ¡¢¤â¤¦°ì¤Ä¤ÎÇÞ²ðÊÑ¿ô¤Ë¤è¤Ã¤Æ ÉÁ¤«¤ì¤ë¶ÊÀþ¤Î¤³¤È¤Ç¤¹¡£¸ÉΩÀþ¤Ï¡¢¶ÊÌ̤òɽ¼¨¤¹¤ëñ½ã¤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£ ¶ÊÌÌ s(u,v) ¤ÎÇÞ²ðÊÑ¿ô u ¤ò¸ÇÄꤹ¤ë¤³¤È¤Ç u-¸ÉΩÀþ c(v) = s(u0,v) ¤¬ ºî¤é¤ì¡¢ÇÞ²ðÊÑ¿ô v ¤ò¸ÇÄꤹ¤ë¤³¤È¤Ç v-¸ÉΩÀþ c(u) = s(u,v0) ¤¬¤Ç¤­¤Þ¤¹¡£

´Ø¿ô¤Î¶ÊÌÌ¥°¥é¥Õ¤¬±£Àþ½èÍý¤Ê¤·¤ÇÉÁ¤«¤ì¤Æ¤¤¤ë¾ì¹ç¡¢set samples ¤Ï ³Æ¸ÉΩÀþ¾å¤ÇɸËܲ½¤µ¤ì¤ëÅÀ¤Î¿ô¤òÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set samples (112.83), set hidden3d (112.33)¡£Åù¹âÀþÉÁ²è¥ë¡¼¥Á¥ó¤Ï¡¢´Ø¿ô¤ÎÅÀ¤ÎɸËܲ½¤Ï³Æ¸ÉΩÀþ¤Î¸òÅÀ ¤Ç¹Ô¤ï¤ì¤ë¤È²¾Äꤷ¤Æ¤¤¤ë¤Î¤Ç¡¢´Ø¿ô¤Î¶ÊÌ̤ÈÅù¹âÀþ¤Î²òÁüÅÙ¤òÊѹ¹¤¹¤ë¤È¤­ ¤Ï¡¢isosamples ¤ÈƱ¤¸¤è¤¦¤Ë samples ¤òÊѹ¹¤¹¤ë¤Î¤¬Ë¾¤Þ¤·¤¤¤Ç¤·¤ç¤¦¡£

112.36 ÅùÃͶÊÌÌ (isosurface)

½ñ¼°:


    set isosurface {mixed|triangles}
    set isosurface {no}insidecolor <n>

¥³¥Þ¥ó¥É splot $voxelgrid with isosurface ¤ÇÉÁ¤«¤ì¤ë¶ÊÌ̤ϡ¢¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï»Í³Ñ·Á¤È»°³Ñ·Á¤Îº®¹ç¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£»Í³Ñ·Á¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢¸«¤¿ ÌܤÎÊ£»¨¤µ¤Î°õ¾Ý¤ò¸º¤é¤¹¸ú²Ì¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ë¤Ï¡¢»°³Ñ·Á¤Î¤ß¤Ç ¥â¥¶¥¤¥¯·¿¶ÊÌ̤òÉÁ²è¤¹¤ë¥ª¥×¥·¥ç¥ó¤âÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ÅùÃͶÊÌ̤ÎÆâÉô¤Ï¡¢¸ÄÊ̤理ÇÅɤê¤Þ¤¹¡£¿§¤ÎÁªÂòË¡¤Ï¡¢ hidden3d ¶ÊÌ̤ξì¹ç¤ÈƱ¤¸¤Ç¡¢´ðËܤȤʤëÀþ¼ï¤Ë¥ª¥Õ¥»¥Ã¥È¤Î <n> ¤òÄɲä· ¤¿Ãͤò»ÈÍѤ·¤Þ¤¹¡£¶ÊÌ̤ÎÆ⦤ȳ°Â¦¤ÎξÊý¤òƱ¤¸¿§¤ÇÅɤë¤Ë¤Ï¡¢ set isosurface noinsidecolor ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

112.37 Isotropic

½ñ¼°:


    set isotropic
    unset isotropic

set isotropic ¤Ï¡¢¥°¥é¥Õ¤Î¥µ¥¤¥º¤È¥¢¥¹¥Ú¥¯¥ÈÈæ¤ò¡¢x, y, z ¼´¤Ë±è¤¦Ã± °ÌŤµ¤¬Á´¤¯Æ±¤¸¤Ë¤Ê¤ë¤è¤¦¤Ë¹ç¤ï¤»¤Þ¤¹¡£¤³¤ì¤Ï¼¡¤Î¥³¥Þ¥ó¥É¤ÈƱÃͤǡ¢¤³ ¤ì¤ÎÂå¤ï¤ê¤Ë»È¤¨¤Þ¤¹: set size ratio -1; set view equal xyz¡£ ¤³¤ì¤Ï¡¢2 ¼¡¸µ¡¢3 ¼¡¸µ¥°¥é¥Õ¤ÎξÊý¤Ë±Æ¶Á¤·¤Þ¤¹¡£

unset isotropic ¤Ï¡¢2 ¼¡¸µ¡¢3 ¼¡¸µ¥°¥é¥Õ¤ÎξÊý¤Ç¤½¤Î«Çû¤ò³«Êü¤·¤Þ ¤¹¡£¤³¤ì¤Ï°Ê²¼¤Î¸Å¤¤¥³¥Þ¥ó¥É¤ÈƱÃͤǤ¹¤¬¡¢³Ð¤¨¤ë¤Ë¤Ï¤³¤ì¤ÎÊý¤¬´Êñ¤Ç¤· ¤ç¤¦: set size noratio; set view noequal_axes¡£

112.38 Jitter

½ñ¼°:


     set jitter {overlap <yposition>} {spread <factor>} {wrap <limit>}
                {swarm|square|vertical}

Îã:


     set jitter                    # 1 ʸ»úÉýÆâ¤ÎÅÀ¤Î jitter
     set jitter overlap 1.5        # 1.5 ʸ»úÉýÆâ¤ÎÅÀ¤Î jitter
     set jitter over 1.5 spread 0.5  # Ʊ¾å¡¢¤·¤«¤· x ¤Î°ÜÆ°¤ÏȾʬÉý

¥Ç¡¼¥¿¤Î 1 ¤Ä¡¢¤Þ¤¿¤ÏξÊý¤ÎºÂɸ¤¬Î¥»¶ÃͤËÀ©¸Â¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢Â¿¤¯¤ÎÅÀ ¤¬´°Á´¤Ë¸ß¤¤¤Î¿¿¾å¤Ë¾è¤Ã¤«¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£jitter (Íɤ餮) ¤Ï¡¢¤³¤ì¤é ½Å¤Ê¤ëÅÀ¤ò¡¢¤½¤ì¤é¤ÎºÂɸ¤Ë¤º¤é¤·ÃͤòÍ¿¤¨¤ë¤³¤È¤Ç¤½¤ÎÅÀ¤ò˼¾õ¤Ë¹­¤²¤Þ¤¹¡£ ÅÀ¤¬½Å¤Ê¤Ã¤Æ¤¤¤ë¤È¸«¤Ê¤¹¤¿¤á¤ÎïçÃͤϡ¢Ê¸»úÉýñ°Ì¡¢¤¢¤ë¤¤¤ÏǤ°Õ¤ÎºÂɸ¥ª ¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ»ØÄê¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: coordinates (11)¡£jitter ¤Ï¡¢2 ¼¡ ¸µ¥°¥é¥Õ¤Î with points ¤È with impulses ¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢ 3 ¼¡¸µ¤Î¥Ü¥¯¥»¥ë¥Ç¡¼¥¿¤ÎÉÁ²è¤Ë¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Î jitter Æ°ºî¤Ï¡¢ÅÀ¤ò x Êý¸þ¤Î¤ß°ÜÆ°¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¡Ö¥Ó¡¼ ¥¹¥©¡¼¥à¥°¥é¥Õ¡×(bee swarm plot) ¤È¸Æ¤Ð¤ì¤ëÆÈÆäΥѥ¿¡¼¥ó¤òºî¤ê¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó¤Î¥­¡¼¥ï¡¼¥É square ¤Ï¡¢°ÜÆ°¤¹¤ëÅÀ¤Î x ºÂɸ¤Ë²Ã¤¨¤Æ¡¢ overlap ¤Ç»ØÄꤷ¤¿µ÷Î¥¤À¤±¤Ï¾¯¤Ê¤¯¤È¤âÎ¥¤ì¤¿ÊÌ¡¹¤Î³¬Áؤˤ¤¤ë¤è¤¦¤Ë y ºÂɸ¤â·¤¨¤Þ¤¹¡£

jitter ¤ò x ¤Ç¤Ï¤Ê¤¯ y (¤Î¤ß) ¤Ë±è¤ï¤»¤ë¤Ë¤Ï¡¢¥­¡¼¥ï¡¼¥É vertical ¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

ʸ»úñ°Ì¤Ç¤ÎºÇÂç¤Î°ÜÆ°µ÷Î¥¤Ï¡¢¥­¡¼¥ï¡¼¥É wrap ¤ÇÀ©¸Â¤ò¤«¤±¤é¤ì¤Þ¤¹¡£

½Å¤Ê¤ê¤ÎȽÄê´ð½à¤È¡¢Íɤ餮¤ÎÂ礭¤µ¤Ï¡¢¤¤¤º¤ì¤â¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ʸ»úñ °Ì¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è¤Ã¤Æ¥°¥é¥Õ¤Î¸«¤¿Ìܤϡ¢½ÐÎÏ·Á¼°¤Î¥Õ¥© ¥ó¥È¥µ¥¤¥º¡¢¥­¥ã¥ó¥Ð¥¹¥µ¥¤¥º¡¢³ÈÂçΨ¤Ë¤è¤Ã¤ÆÊѹ¹¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤³¤ì¤ò Èò¤±¤ë¤Ë¤Ï¡¢½Å¤Ê¤ê¤ÎȽÄê´ð½à¤ò y ºÂɸ·Ï¤Îñ°Ì (¥­¡¼¥ï¡¼¥É first) ¤Ç »ØÄꤷ¡¢ÅÀ¤Î¥µ¥¤¥º¤È³ÈÂç·¸¿ô¤òŬÀÚ¤ÊÃͤËÄ´À°¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: coordinates (11), pointsize (112.73)¡£

·Ù¹ð: jitter ¤Ï¡¢"pointsize variable" ¤ÈξΩ¤·¤Þ¤»¤ó¡£

set jitter ¤Ï¡¢3 ¼¡¸µ¤Î¥Ü¥¯¥»¥ë¥Ç¡¼¥¿¤Ç¤âÍ­ÍѤǤ¹¡£¥Ü¥¯¥»¥ë³Ê»Ò¥Ç¡¼ ¥¿¤Ï¡¢¶ÑÅù¤ËÇÛÃÖ¤µ¤ì¤¿ÅÀ¤Îµ¬Â§Àµ¤·¤¤³Ê»Ò¤Ç¤¢¤ë¤¿¤á¡¢Â¿¤¯¤Î»ëÊý¸þ¤Ç¡¢ÅÀ ¤¬½Å¤Ê¤Ã¤¿¤ê¡¢¥â¥¢¥ì¥Ñ¥¿¡¼¥ó¤òÀ¸À®¤·¤¿¤ê¤·¤Þ¤¹¡£¤½¤ì¤é¤ÎÉûºîÍѤϡ¢³Æ³Ê »ÒÅÀ¤«¤é¥é¥ó¥À¥à¤Ë°ÜÆ°¤µ¤»¤¿¾ì½ê¤ËÉÁ²è¤¹¤ëµ­¹æ¤òÃÖ¤¯¤³¤È¤ÇÈò¤±¤ë¤³¤È¤¬ ²Äǽ¤Ç¤¹¡£

112.39 ËÞÎã (key)

¥³¥Þ¥ó¥É set key ¤Ï¡¢ÉÁ²èÎΰèÆâ¤Î³Æ¥°¥é¥Õ¤ËÂФ¹¤ë¥¿¥¤¥È¥ë¤È¥µ¥ó¥×¥ë (Àþʬ¡¢ÅÀ¡¢È¢) ¤ò»ý¤ÄËÞÎã (¤Þ¤¿¤ÏɽÂê) ¤òÍ­¸ú¤Ë¤·¤Þ¤¹¡£ËÞÎã¤Îµ¡Ç½¤Ï¡¢ set key off ¤« unset key ¤È¤¹¤ë¤³¤È¤Ç̵¸ú¤Ë¤Ç¤­¤Þ¤¹¡£ËÞÎã¤Î¸Ä¡¹¤Î ¹àÌܤˤĤ¤¤Æ¤Ï¡¢Âбþ¤¹¤ë plot ¥³¥Þ¥ó¥É¤Ç¥­¡¼¥ï¡¼¥É notitle ¤ò»ÈÍѤ¹ ¤ë¤³¤È¤Ç̵¸ú¤Ë¤Ç¤­¤Þ¤¹¡£ËÞÎã¤Î¥¿¥¤¥È¥ëʸ»úÎó¤Ï¡¢¥ª¥×¥·¥ç¥ó set key autotitle ¤ä¡¢¸Ä¡¹¤Î plot ¤ä splot ¥³¥Þ¥ó¥É¾å¤Î title ¥­¡¼¥ï¡¼¥É¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£

ËÞÎã¤ÎÇÛÃ֤˱ƶÁ¤¹¤ë¥ª¥×¥·¥ç¥ó¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È: key placement (112.39.6)¡£
ËÞÎã¤ÎÆâÍƤ˱ƶÁ¤¹¤ë¥ª¥×¥·¥ç¥ó¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È:key layout (112.39.5)¡£

½ñ¼° (Âç°èŪ¥ª¥×¥·¥ç¥ó):


     set key {on|off} {default}
           {font "<face>,<size>"} {{no}enhanced}
           {{no}title "<text>" {<font or other text options>}}
           {{no}autotitle {columnheader}}
           {{no}box {<line properties>}} {{no}opaque {fc <colorspec>}}
           {width <width_increment>} {height <height_increment>}
     unset key

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ËÞÎã¤Ï¥°¥é¥ÕÎΰè¤ÎÆ⦤α¦¾å¤Î³Ñ¤ËÃÖ¤­¤Þ¤¹¡£ ÄɲäΠfont »ØÄê¤Ï¡¢ËÞÎã¤Î¤¹¤Ù¤Æ¤ÎÍ×ÁǤËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹¡£ ËÞÎã¤Îĺ¾å¤Ë¡¢ËÞÎã¤Î²£ÉýÁ´ÂΤËÅϤ롢ËÞÎãÁ´ÂÎÍѤΥª¥×¥·¥ç¥ó¤Î¥¿¥¤¥È¥ë¤ò Í¿¤¨¤ë¤³¤â¤Ç¤­¤Þ¤¹¡£¤³¤Î¥¿¥¤¥È¥ë¤Ë¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è¥¿¥¤¥È¥ë¤Î¥Õ¥©¥ó¥È¡¢¿§¡¢ °ÌÃÖ¹ç¤ï¤»¡¢³Èĥʸ»úÎó½èÍý¤È¤ÏÊ̤Τâ¤Î¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

ËÞÎãÆâ¤Ë¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Î³ÆÍ×ÁǤËÂФ·¤Æ¡¢¤½¤Î¥¿¥¤¥È¥ëʸ»úÎó¤È¡¢¤½¤Î ¥°¥é¥Õ¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò¼¨¤¹Àþʬ¤«µ­¹æ¤«·Á¤¬ 1 ¹Ô¤Çɽ¸½¤µ¤ì¤Þ¤¹¡£¥¿¥¤¥È ¥ëʸ»úÎó¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤·¤Þ¤¹¤¬¡¢plot ¥³¥Þ¥ó¥ÉÃæ¤Ë title "text" ¤ò Æþ¤ì¤ë¤³¤È¤ÇÌÀ¼¨Åª¤ËÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£plot ¥³¥Þ¥ó¥É¤Ç¥­¡¼¥ï¡¼¥É notitle ¤ò»È¤¦¤È¤½¤Î¥°¥é¥Õ¤ÎËÞÎã¹Ô¤òÀ¸À®¤·¤Þ¤»¤ó¤¬¡¢¥¿¥¤¥È¥ë¤À¤±¤ò¾Ã ¤·¤¿¤¤¾ì¹ç¤Ï plot ¥³¥Þ¥ó¥É¤Ç title "" ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£

Åù¹âÀþÉÁ²è¤Ç¤Ï¡¢ËÞÎãÆâ¤ËÂбþ¤¹¤ë¹Ô¤òÄɲä·¤Þ¤¹ (°Ê²¼»²¾È: cntrlabel (112.15))¡£ ¥Õ¥¡¥¤¥ë̾¤ä´Ø¿ô̾¤ÎÂå¤ï¤ê¤Ë¥­¡¼¥ï¡¼¥É keyentry ¤òÍ¿¤¨¤¿¥À¥ß¡¼¤Î plot ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ç¡¢ËÞÎãÆâ¤Ë;ʬ¤Ë¹Ô¤òÄɲ乤뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£°Ê²¼ »²¾È: keyentry (112.39.3)¡£

ËÞÎã¤Î²ó¤ê¤ËÏȤò¡¢¥æ¡¼¥¶»ØÄêÀþ°À­¤ÇÉÁ¤¯¤³¤È¤â¤Ç¤­¤Þ¤¹ (box {...})¡£ height ¤È width ¤ÎÁýʬ¤Ï¡¢Ê¸»úÉýñ°Ì¤Ç»ØÄꤷ¡¢¤½¤ì¤Ï¤½¤Îʬ¤À¤±ËÞÎã ¤ÎÈ¢¤Î¥µ¥¤¥º¤òÂ礭¤¯¤·¤¿¤ê¾®¤µ¤¯¤·¤¿¤ê¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¼ç¤ËËÞÎã¤Î¥¨¥ó¥È ¥ê¤ò°Ï¤à¶­³¦¤òÂ礭¤¯¤¹¤ë¤Î¤ËÍ­ÍѤǤ¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ËÞÎã¤Ï°ì¤Ä¤Î¥°¥é¥Õ¤ÈƱ»þ¤Ëºî¤é¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ËÞÎã¤Î µ­¹æ¤È¥¿¥¤¥È¥ë¤Ï¡¢¤½¤ì¤ËÂбþ¤¹¤ë¥°¥é¥Õ¤ÈƱ»þ¤ËÉÁ¤«¤ì¤Þ¤¹¡£¤½¤ì¤Ï¡¢¿·¤· ¤¤¥°¥é¥Õ¤¬»þ¤Ë¤ÏËÞÎã¤Î¾å¤ËÍ×ÁǤò¤«¤Ö¤»¤ÆÇÛÃÖ¤·¤¦¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ set key opaque ¤Ï¡¢ËÞÎã¤ò¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤ÎÉÁ²è¤¬½ª¤Ã¤¿¸å¤ËÀ¸À®¤µ¤»¤Þ ¤¹¡£¤³¤Î¾ì¹ç¡¢ËÞÎã¤ÎÎΰè¤òÇØ·Ê¿§¤«»ØÄꤷ¤¿¿§¤ÇÅɤê¤Ä¤Ö¤·¡¢¤½¤Î¸å¤ÇËÞÎ㠤ε­¹æ¤È¥¿¥¤¥È¥ë¤ò½ñ¤­¤Þ¤¹¡£ set key noopaque ¤Ç¥Ç¥Õ¥©¥ë¥È¤ËÉüµ¢¤Ç¤­¤Þ¤¹¡£

ËÞÎã¤Îʸ»úÎó¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï³Èĥʸ»úÎó¥â¡¼¥É (enhanced) ¤ò»ÈÍѤ·¤Þ ¤¹¡£¤³¤ì¤Ï¥ª¥×¥·¥ç¥ó noenhanced ¤ÇÊѹ¹¤Ç¤­¡¢ËÞÎãÁ´ÂΡ¢¤¢¤ë¤¤¤ÏËÞÎ㥿 ¥¤¥È¥ë¤Î¤ß¡¢¤¢¤ë¤¤¤Ï¥°¥é¥Õ¥¿¥¤¥È¥ëËè¤ËÊѹ¹¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£

set key default ¤Ï¡¢°Ê²¼¤Î¥Ç¥Õ¥©¥ë¥È¤Î key ¤ÎÀßÄê¤òÉüµ¢¤·¤Þ¤¹¡£


    set key notitle
    set key nobox noopaque
    set key fixed right top vertical Right noreverse enhanced autotitle
    set key noinvert samplen 4 spacing 1 width 0 height 0
    set key maxcolumns 0 maxrows 0

112.39.1 3 ¼¡¸µ¥°¥é¥Õ¤ÎËÞÎã (3D key)

3 ¼¡¸µ¥°¥é¥Õ (splot) ¤ÎËÞÎã¤ÎÇÛÃ֤ϡ¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï fixed ¥ª¥×¥·¥ç ¥ó¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤Ï¡¢inside ¤Ë¤è¤ëÇÛÃ֤˻÷¤Æ¤¤¤Þ¤¹¤¬¡¢½ÅÍפʰ㤤 ¤¬°ì¤Ä¤¢¤ê¤Þ¤¹¡£3 ¼¡¸µ¥°¥é¥Õ¤Î»ëÅÀ¤¬²óž¤·¤¿¤ê¥¹¥±¡¼¥ë¤¹¤ë¤È¡¢¤½¤ì¤Ëȼ ¤Ê¤Ã¤ÆÉÁ²è¤Î¶­³¦¤âÊѲ½¤·¤Þ¤¹¡£ËÞÎã¤ÎÇÛÃÖ¤¬ inside ¤Î¾ì¹ç¤Ï¡¢»ëÅÀ¤¬ÊÑ ¹¹¤¹¤ë¤È¤­¤Ë¤³¤ì¤é¤Î¶­³¦¤¬°ÜÆ°¤¹¤ë¤¿¤á¡¢ËÞÎã¤â°ÜÆ°¤·¤Þ¤¹¡£fixed ¤Î¾ì ¹ç¤Ï¡¢»ë³Ñ¤ä¥¹¥±¡¼¥ë¤ÎÊѹ¹¤ò̵»ë¤·¤ÆËÞÎã¤òÇÛÃÖ¤¹¤ë¤Î¤Ç¡¢¥°¥é¥Õ¤¬²óž¤· ¤Æ¤â¡¢ËÞÎã¤Î°ÌÃ֤ϥ­¥ã¥ó¥Ð¥¹¤Î°ì¤Ä¤Î¾ì½ê¤Ë¸ÇÄꤵ¤ì¤¿¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹¡£

¤Ê¤ª¡¢2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢fixed ¥ª¥×¥·¥ç¥ó¤Ï´°Á´¤Ë inside ¤ÈƱ¤¸¤Ç¤¹¡£

splot ¤ÇÅù¹âÀþ¤ò½ñ¤¯¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï°Û¤Ê¤ëÀþ¼ï¤Î¸Ä¡¹¤ÎÅù¹âÀþ¥ì¥Ù ¥ë¤ËÂФ·¤Æ¡¢ÊÌ¡¹¤ÎËÞÎã¤Î¹àÌܤòÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢°Ê²¼»²¾È: set cntrlabel (112.15)¡£

112.39.2 ËÞÎã¤Î¥µ¥ó¥×¥ë (key examples)

°Ê²¼¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°ÌÃÖ¤ËËÞÎã¤òɽ¼¨¤·¤Þ¤¹:


     set key default

°Ê²¼¤Ï¡¢ËÞÎã¤ò¥¹¥¯¥ê¡¼¥óºÂɸ¤Ç¤Î»ØÄê°ÌÃÖ (±¦¾å) ¤ËÇÛÃÖ¤·¤Þ¤¹¡£


     set key at screen 0.85, 0.85

°Ê²¼¤Ï¡¢ËÞÎã¤ò¥°¥é¥Õ¤è¤ê²¼ (±ü) ¤ËÃÖ¤­¡¢¿âľÊý¸þ¤ÎÉý¤òºÇ¾®²½¤·¤Þ¤¹¡£


     set key below horizontal

°Ê²¼¤Ï¡¢ËÞÎã¤ò¥°¥é¥ÕÎΰè¤Îº¸²¼¶ù¤ËÃÖ¤­¡¢Ê¸»úÎó¤Ïº¸Â·¤¨¤È¤·¡¢¾å¤ËËÞÎã¤Î ¥¿¥¤¥È¥ë¤òÍ¿¤¨¡¢²ó¤ê¤òÂÀ¤¤¶­³¦Àþ¤ÎÏȤǰϤߤޤ¹¡£


     set key left bottom Left title 'Legend' box lw 3

112.39.3 ËÞÎã¹Ô¤ÎÄɲà (extra key entries)

Image figure_keyentry
Ä̾³Æ¥°¥é¥Õ¤ËÂФ·¤ÆËÞÎãÆâ¤Ë 1 ¹Ô¤Î¥¨¥ó¥È¥ê¤¬¼«Æ°À¸À®¤µ¤ì¤Þ¤¹¡£ËÞÎã Æâ¤Ë¸«¤¿Ìܤò¤è¤êºÙ¤«¤¯À©¸æ¤·¤¿¤¤¾ì¹ç¤Ï¡¢¥³¥Þ¥ó¥É plot, splot ¤Ë¥­ ¡¼¥ï¡¼¥É keyentry ¤ò¤Ä¤±¤ë¤³¤È¤Ç¡¢Í¾Ê¬¤ËËÞÎã¹Ô¤òÄɲäǤ­¤Þ¤¹¡£plot ¤Ë¥Õ¥¡¥¤¥ë̾¤ä´Ø¿ô̾¤òÍ¿¤¨¤ëÂå¤ï¤ê¤Ë¡¢keyentry ¤ò¤½¤Î¾ì½ê¤Ë»ØÄꤷ¡¢ ¥¹¥¿¥¤¥ë¾ðÊó (ËÞÎã¤Îµ­¹æ¤òÀ¸À®¤¹¤ë¤Î¤Ë»ÈÍѤµ¤ì¤ë) ¤È¥¿¥¤¥È¥ë¤ò¤½¤Î¸å¤í ¤Ë»ØÄꤷ¤Þ¤¹¡£Ä̾ï¤Î¥¿¥¤¥È¥ë¥Õ¥©¥ó¥È¡¢Ê¸»ú¿§¡¢at ºÂɸ¡¢³Èĥʸ»úÎó½è Íý¤ËÂФ¹¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¤¹¤Ù¤ÆŬÍѤ·¤Þ¤¹¡£ Îã:


    set key outside right center
    plot $HEATMAP matrix with image notitle, \
         keyentry "Outcomes" left, \
         keyentry with boxes fc palette cb 0 title "no effect", \
         keyentry with boxes fc palette cb 1 title "threshold", \
         keyentry with boxes fc palette cb 3 title "typical range", \
         keyentry                            title "as reported in [12]", \
         keyentry with boxes fc palette cb 5 title "strong effect"

keyentry "Outcomes" left ¤Î¹Ô¤Ï¡¢Ä̾ï¤ÎËÞÎã¤òÊÝ»ý¤¹¤ë¥¹¥Ú¡¼¥¹¤Ë¡¢Ê¸ »úÎó¤òº¸Â·¤¨¤ÇÇÛÃÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ËÞÎã¤ÎÉýÁ´ÂΤËÅϤäƥ¿¥¤¥È¥ë¤òËä¤á¹þ ¤Þ¤»¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£Æ±¤¸ keyentry ¤Ë title ¤âÍ¿¤¨¤¿¾ì¹ç¤Ï¡¢Î¾Êý ¤Îʸ»úÎó¤¬Æ±¤¸¹Ô¤Ë¸½¤ì¡¢¤½¤ì¤Ë¤è¤ê 2 Îó¤ÎËÞÎã¤Î¥¨¥ó¥È¥ê¤ÎÀ¸À®¤¬²Äǽ¤Ë ¤Ê¤ê¤Þ¤¹¡£ °ÌÃÖ¹ç¤ï¤»ÍѤΥ­¡¼¥ï¡¼¥É left/right/center ¤ä, boxed ¤Ê¤É¤¬ÍøÍÑ¤Ç ¤­¤Þ¤¹¡£ Îã:


    plot ..., keyentry "West Linn" boxed title "locations"

112.39.4 ËÞÎã¤Î¼«Æ°¥¿¥¤¥È¥ë (key autotitle)

set key autotitle ¤Ï¡¢ËÞÎã¤Î³Æ¥°¥é¥Õ¤ò¡¢plot ¥³¥Þ¥ó¥É¤Ç»ÈÍѤ·¤¿¥Ç¡¼ ¥¿¥Õ¥¡¥¤¥ë¤ä´Ø¿ô¤Î̾Á°¤Ë¤è¤Ã¤ÆÆÃÄꤹ¤ë¤è¤¦¤Ë¤·¤Þ¤¹¤¬¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È ¤ÎµóÆ°¤Ç¤¹¡£set key noautotitle ¤Ï¡¢¤½¤Î¼«Æ°Åª¤Ê¥°¥é¥Õ¤Î¥¿¥¤¥È¥ëÉÕ¤± ¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ ¥³¥Þ¥ó¥É set key autotitle columnheader ¤Ï¡¢³ÆÆþÎϥǡ¼¥¿¤ÎÀèƬ¹Ô¤Î³Æ Îó¤Î¥¨¥ó¥È¥ê¤ò¥Æ¥­¥¹¥Èʸ»úÎó¤È²ò¼á¤·¡¢Âбþ¤¹¤ëÉÁ²è¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤È¤· ¤Æ»ÈÍѤ·¤Þ¤¹¡£ÉÁ²è¤µ¤ì¤ëÎ̤¬¡¢Ê£¿ô¤ÎÎó¥Ç¡¼¥¿¤Î´Ø¿ô¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢ gnuplot ¤Ï¤É¤ÎÎó¤ò¥¿¥¤¥È¥ë¤ÎÉÁ²è¤Ë»È¤¨¤Ð¤¤¤¤¤Î¤«¤ï¤«¤ê¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î ¾ì¹ç¡¢plot ¥³¥Þ¥ó¥É¾å¤Ç¡¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤ËÌÀ¼¨Åª¤Ë¥¿¥¤¥È¥ë¤ÎÎó¤ò»ØÄê ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£


     plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines

Ãí°Õ: set key autotitle columnheader ¤È¤¹¤ë¤È¡¢¤¿¤È¤¨ËÞÎã (key) ¤¬ unset key ¤Ç̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ç¤â¡¢1 ÎóÌܤò¥Ç¡¼¥¿¤È¤·¤Æ¤Ç¤Ï¤Ê¤¯¡¢ Îó¤Î¥Ø¥Ã¥À¤È¤·¤Æ½èÍý¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢stats ¤ä fit ¤Î¤è¤¦¤ËËÞÎã¤òºî ¤é¤Ê¤¤¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¤âƱÍͤǤ¹¡£¥Ç¡¼¥¿¤ÎÀèƬ¹Ô¤ò¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤Ç¤Ï ¤Ê¤¯ columnheader ¤È¤·¤Æ»ÈÍѤ·¤¿¤¤¾ì¹ç¤Ï¡¢set datafile columnheaders ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£

¤Þ¤¿¡¢¤¤¤º¤ì¤Î¾ì¹ç¤Ç¤â¡¢plot ¥³¥Þ¥ó¥É¤ËÌÀ¼¨Åª¤Ê title ¤ä notitle ¥­¡¼¥ï¡¼¥É¤ò»ØÄꤹ¤ì¤Ð¡¢¤½¤ì¤Ï set key autotitle ¤Ë¤è¤ëÀßÄê¤è¤êÍ¥Àè ¤µ¤ì¤Þ¤¹¡£

112.39.5 ËÞÎã¤Î¥ì¥¤¥¢¥¦¥È (key layout)

ËÞÎã¤Î¥ì¥¤¥¢¥¦¥ÈÍÑ¥ª¥×¥·¥ç¥ó:


    set key {vertical | horizontal}
           {maxcols {<max no. of columns> | auto}}
           {maxrows {<max no. of rows> | auto}}
           {columns <exact no. of columns>}
           {keywidth [screen|graph] <fraction>}
           {Left | Right}
           {{no}reverse} {{no}invert}
           {samplen <sample_length>} {spacing <line_spacing>}
           {width <width_increment>} {height <height_increment>}
           {title {"<text>"} {{no}enhanced} {center | left | right}}
           {font "<face>,<size>"} {textcolor <colorspec>}

ËÞÎã¤ÎÍ×ÁǤò¼«Æ°Åª¤Ë¹Ô¡¢¤Þ¤¿¤ÏÎó¤Ëʤ٤ë¤ä¤êÊý¤Ï¡¢¾å¤Î¥­¡¼¥ï¡¼¥É¤Î±Æ¶Á ¤ò¼õ¤±¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢vertical ¤Ç¡¢¤³¤ì¤Ï²Äǽ¤Ê¸Â¤êÎó¿ô¤ò¾¯¤Ê¤¯ ¤·¤è¤¦¤È¤·¤Þ¤¹¡£³ÆÍ×ÁǤϡ¢¿âľÊý¸þ¤Ë;͵¤¬¤¢¤ë¤¦¤Á¤Ï½Ä¤Ë·¤¨¤Æʤ٤ޤ¹ ¤¬¡¢Â­¤ê¤Ê¤¯¤Ê¤ì¤Ð¿·¤·¤¤Îó¤Ëʤ٤ޤ¹¡£¿âľÊý¸þ¤ÎÉý¤Ï¡¢'maxrows' ¤Ç¾å¸Â ¤òÀßÄê¤Ç¤­¤Þ¤¹¡£ horizontal ¤Î¾ì¹ç¤Ï¡¢²Äǽ¤Ê¸Â¤ê¹Ô¿ô¤ò¾¯¤Ê¤¯¤·¤è¤¦¤È¤·¡¢¿åÊ¿Êý¸þ¤ÎÉý ¤Ï¡¢'maxcols' ¤Ç¾å¸Â¤òÀßÄê¤Ç¤­¤Þ¤¹¡£

¼«Æ°¤ÇÁªÂò¤µ¤ì¤ë¹Ô¿ô¡¢Îó¿ô¤Ë¤ÏËþ­¤Ç¤­¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£¤½¤Î¾ì¹ç¡¢ set key columns <N> ¤ÇÎó¿ô¤òÌÀ³Î¤Ë»ØÄê¤Ç¤­¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥µ¥ó¥×¥ëÉý (samplen) ¤ÈÁ´ÂΤÎËÞÎãÉý (keywidth) ¤âÄ´À°¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ ¤»¤ó¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ºÇ½é¤ÎÉÁ²è¤Î¥é¥Ù¥ë¤¬ËÞÎã¤Î°ìÈÖ¾å¤Ë¸½¤ï¤ì¡¢¤½¤ì¤Ë³¤¯¥é ¥Ù¥ë¤¬¤½¤Î²¼¤Ëʤó¤Ç¹Ô¤­¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó invert ¤Ï¡¢ºÇ½é¤Î¥é¥Ù¥ë¤òËÞ Îã¤Î°ìÈÖ²¼¤ËÃÖ¤­¡¢¤½¤ì¤Ë³¤¯¥é¥Ù¥ë¤ò¤½¤Î¾å¤Ëʤ٤ƹԤ­¤Þ¤¹¡£¤³¤Î¥ª¥×¥· ¥ç¥ó¤Ï¡¢ËÞÎã¤Î¥é¥Ù¥ë¤Î½Ä¤ÎʤӤνçÈÖ¤ò¡¢ÀѤ߾夲·Á¼°¤Î¥Ò¥¹¥È¥°¥é¥à (histograms) ¤ÎÈ¢¤Î½çÈ֤˹ç¤ï¤»¤ë¤È¤­¤ËÊØÍø¤Ç¤·¤ç¤¦¡£

set key title "text" ¤Ï¡¢ËÞÎã¤Î¾å¤Ë¡¢Á´ÂΤËÅϤ륿¥¤¥È¥ë¤òÃÖ¤­¤Þ¤¹¡£ ¤½¤Î¥¿¥¤¥È¥ë¤Î¥Õ¥©¥ó¥È¡¢Ê¸»úÎó¤Î¹Ô·¤¨¡¢¤ª¤è¤Ó¤½¤Î¾¤Îʸ»ú°À­¤Ï¡¢¤³¤Î ¥³¥Þ¥ó¥É¤Î "text" ¤Îľ¸å¤ËɬÍפʥ­¡¼¥ï¡¼¥É¤òÃÖ¤¯¤³¤È¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£ ¾¤Î¾ì½ê¤Ç»ØÄꤷ¤¿¥Õ¥©¥ó¥È¤äʸ»úÎó¤Î°À­¤Ï¡¢ËÞÎãÆâ¤Î¤¹¤Ù¤Æ¤Îʸ»úÎó¤ËŬ ÍѤ·¤Þ¤¹

¥Ç¥Õ¥©¥ë¥È¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢¥¹¥¿¥¤¥ë¥µ¥ó¥×¥ë (¿§¡¢Àþ¡¢ÅÀ¡¢·Á¾õÅù) ¤òËÞÎ㠤γƹԤκ¸¤ËÃÖ¤­¡¢¥¿¥¤¥È¥ëʸ»úÎó¤ò±¦¤ËÃÖ¤­¤Þ¤¹¡£¤³¤Î¥µ¥ó¥×¥ë¤Èʸ»úÎó¤Î °ÌÃ֤ϡ¢reverse ¥­¡¼¥ï¡¼¥É¤ÇµÕž¤Ç¤­¤Þ¤¹¡£ËÞÎãÆâ¤Î¥°¥é¥Õ¥¿¥¤¥È¥ë¤Î¹Ô ·¤¨¤Ï¡¢Left¡¢Right (¥Ç¥Õ¥©¥ë¥È) ¤Ç»Ø¼¨¤·¤Þ¤¹¡£¥¹¥¿¥¤¥ë¥µ¥ó¥×¥ë¤Î ¿åÊ¿Êý¸þ¤ÎÉý¤Ï¡¢¤Û¤Üʸ»úÉýñ°Ì¤Î¿ôÃͤÇÀßÄê¤Ç¤­¤Þ¤¹ (samplen)¡£


TeX, LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤ä¡¢À°·Á¾ðÊó¤¬Ê¸»úÎó¤ËËä¤á¹þ¤Þ¤ì¤ë½ÐÎÏ·Á¼°¤ò»È

¤¦¾ì¹ç¤Ï¡¢gnuplot ¤ÏɬÍפÊÉý¤Î¸«ÀѤ꤬¤¦¤Þ¤¯¤Ï¤Ç¤­¤Þ¤»¤ó¤Î¤Ç¡¢¼«Æ°Åª ¤ÊËÞÎã¤Î¥ì¥¤¥¢¥¦¥È¤Ï¡¢¸«¤¹¤Ü¤é¤·¤¤¤â¤Î¤Ë¤Ê¤êÆÀ¤Þ¤¹¡£ËÞÎã¤òº¸¤ËÃÖ¤¯¾ì¹ç ¤Ï¡¢set key left Left reverse ¤È¤¤¤¦Áȹ礻¤¬¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤·¡¢Å¬ ÀÚ¤ÊÎó¿ô¤äÁ´ÂΤÎËÞÎãÉý¤ò¶¯À©Åª¤ËÀßÄꤹ¤ë¤È¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

112.39.6 ËÞÎã¤ÎÇÛÃÖ (key placement)

ËÞÎã¤ÎÇÛÃÖÍÑ¥ª¥×¥·¥ç¥ó:


     set key {inside | outside | fixed}
             {lmargin | rmargin | tmargin | bmargin}
             {at <position>}}
             {left | right | center} {top | bottom | center}
             {offset <dx>,<dy>}

¤³¤ÎÀá¤Ç¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤µ¤ì¤ëÄ̾ï¤ÎËÞÎã¤ÎÇÛÃÖ¤ÎÀâÌÀ¤ò¤·¤Þ¤¹¡£Æó¼¡Åª¤Ê ËÞÎã¤Î¹½À®¤ä¡¢Â¾¤Î¾ì½ê¤Ø¤ÎÉÁ²è¥¿¥¤¥È¥ë¤ÎÇÛÃ֤ˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: multiple keys (112.39.9)¡£

ÇÛÃ֤λÅÁȤߤòÍý²ò¤¿¤á¤ÎºÇ¤â½ÅÍפʳµÇ°¤Ï¡¢¥°¥é¥ÕÎΰ衢¤¹¤Ê¤ï¤ÁÆ⤫³°¤« ¤È¤¤¤¦¤³¤È¤È¡¢¥°¥é¥ÕÎΰè¤Î¶­³¦¤È¤Î´Ö¤Î;Çò (margin) ¤ò¹Í¤¨¤ë¤³¤È¤Ç¤¹¡£ ¥°¥é¥ÕÎΰè¤Ë±è¤Ã¤Æ¡¢¥­¡¼¥ï¡¼¥É left/center/right (l/c/r) ¤È top/center/bottom (t/c/b) ¤Ï¡¢ËÞÎã (key) ¤ò¤½¤ÎÎΰè¤ÎÆ⦤Τɤ³¤ËÃÖ ¤¯¤«¤òÀ©¸æ¤·¤Þ¤¹¡£ ¥â¡¼¥É inside ¤Ç¤Ï¡¢ËÞÎã¤Ï¥­¡¼¥ï¡¼¥É left (l), right (r), top (t), bottom (b), center (c) ¤Ë¤è¤Ã¤Æ°Ê²¼¤Î¿Þ¤Î¤è¤¦¤ËÉÁ²èÎΰè¤Î¶­³¦ ¤Ë¸þ¤«¤Ã¤Æ½ÐÎϤµ¤ì¤Þ¤¹:


    t/l   t/c   t/r


    c/l    c    c/r


    b/l   b/c   b/r

¥â¡¼¥É outside ¤Ç¤â¾å¤ÈƱÍͤ˼«Æ°Åª¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¤¬¡¢¥°¥é¥ÕÎΰè¤Î¶­ ³¦¤ËÂФ·¤Æ¡¢¤È¤¤¤¦¤è¤ê¤â¤à¤·¤í¸«¤¿ÌܤËÂФ·¤Æ¡¢¤È¤¤¤¦¤Ù¤­¤Ç¤·¤ç¤¦¡£¤¹¤Ê ¤ï¤Á¡¢¥°¥é¥Õ¤Î¶­³¦¤Ï¡¢¥°¥é¥ÕÎΰè¤Î³°¤ÎËÞÎã¤Î¾ì½ê¤òºî¤ë¤¿¤á¤Ë¡¢Æâ¦¤Ë°Ü Æ°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Ï¾¤Î¥é¥Ù¥ë¤Î¼ÙËâ¤ò¤·¤Þ¤¹¤·¡¢¤â¤·¤« ¤·¤¿¤é½ÐÎϥǥХ¤¥¹¤Ë¤è¤Ã¤Æ¤Ï¥¨¥é¡¼¤ò°ú¤­µ¯¤³¤¹¤«¤â¤·¤ì¤Þ¤»¤ó¡£ËÞÎã¤Î½Ð ÎϤ˹ç¤ï¤»¤Æ¤É¤ÎÉÁ²è¶­³¦¤¬°ÜÆ°¤¹¤ë¤«¤Ï¡¢¾å¤Ë½Ò¤Ù¤¿ËÞÎã¤Î°ÌÃÖ¡¢¤ª¤è¤Ó½Å ¤Í¾å¤²¤ÎÊý¸þ¤Ë°Í¸¤·¤Þ¤¹¡£4 Êý¸þ¤ÎÃ濴·¤¨¤Î¥ª¥×¥·¥ç¥ó (center) ¤Ë´Ø ¤·¤Æ¤Ï¡¢¤É¤Î¶­³¦¤¬Æ°¤¯¤Î¤«¤Ë´Ø¤¹¤ë¤¢¤¤¤Þ¤¤¤µ¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢³Ñ¤Ø¤Î½ÐÎÏ ¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢½Å¤Í¾å¤²Êý¸þ¤¬ vertical ¤Î¾ì¹ç¤Ïº¸¤Þ¤¿¤Ï±¦¤Î ¶­³¦¤¬¡¢horizontal ¤Î¾ì¹ç¤Ï¾å¤Þ¤¿¤Ï²¼¤Î¶­³¦¤¬¡¢¤½¤ì¤¾¤ìÆ⦤ËŬÀÚ¤Ë °ÜÆ°¤·¤Þ¤¹¡£

;Çò (margin) ¤Î½ñ¤­Êý¤Ï¡¢½Å¤Í¾å¤²¤ÎÊý¸þ¤Ë¤«¤«¤ï¤Ê¤¤¼«Æ°Åª¤ÊÇÛÃÖ¤ò²Äǽ ¤Ë¤·¤Æ¤¤¤Þ¤¹¡£lmargin (lm), rmargin (rm), tmargin (tm), bmargin (bm) ¤Î¤¦¤Á¤Î°ì¤Ä¤ò¡¢Ì·½â¤·¤Ê¤¤ 1 Êý¸þ¤Î¥­¡¼¥ï¡¼¥É¤ÈÁȤ߹ç¤ï ¤»¤Æ»ÈÍѤ·¤¿¾ì¹ç¡¢ËÞÎã¤Î°ÌÃ֤ϡ¢°Ê²¼¤Î¿Þ¤Ë¼¨¤¹¤è¤¦¤Ë¥Ú¡¼¥¸¤Î³°Â¦¤Ë±è¤Ã ¤ÆÇÛÃÖ¤µ¤ì¤Þ¤¹¡£ ¥­¡¼¥ï¡¼¥É above ¤È over ¤Ï tmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¡¢¥­¡¼¥ï¡¼¥É below ¤È under ¤Ï bmargin ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£


         l/tm  c/tm  r/tm


    t/lm                  t/rm


    c/lm                  c/rm


    b/lm                  b/rm


         l/bm  c/bm  r/bm

°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤È¤Î¸ß´¹À­¤Î¤¿¤á¤Ë¡¢above, over, below, under ¤Ë l/c/r ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥­¡¼¥ï¡¼¥É¤¬¤Ê¤¤¤È¡¢center ¤È horizontal ¤ò»ÈÍѤ·¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É outside ¤Ë t/b/c ¤ä½Å¤Í¾å¤²Êý¸þ¤Î¥­¡¼¥ï¡¼¥É ¤¬¤Ê¤¤¤È¡¢top, right, vertical (¤Ä¤Þ¤ê¾å¤Î t/rm ¤ÈƱ¤¸) ¤ò»ÈÍѤ· ¤Þ¤¹¡£

ËÞÎã¤Î°ÌÃÖ (<position>) ¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÈƱÍÍñ¤Ë x,y,z ¤ò»ØÄꤷ ¤Æ¤â¤¤¤¤¤Ç¤¹¤¬¡¢¤½¤ÎºÇ½é¤Î¥µ¥ó¥×¥ë¹Ô¤ÎºÂɸ¤ÎºÂɽ·Ï¤òÁªÂò¤¹¤ë¤¿¤á¤Î 5 ¤Ä¤Î¥­¡¼¥ï¡¼¥É (first, second, graph, screen, character) ¤ò Ƭ¤Ë¤Ä¤±¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£<position> ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Î left, right, top, bottom, center ¤Î¸ú²Ì¤Ï¡¢ label ¥³¥Þ¥ó¥É¤ÇÇÛÃÖ¤µ¤ì¤ëʸ»úÎó¤Î¾ì¹ç¤ÈƱ¤¸¤è¤¦¤Ë´ð½à°ÌÃ֤ΰÌÃÖ·¤¨¤Ë »ÈÍѤµ¤ì¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢left ¤ÏËÞÎ㤬 <position> ¤Î±¦¤ËÃÖ¤«¤ì¤Æº¸¹ç ¤ï¤»¤Ç½ÐÎϤµ¤ì¤Þ¤¹¡£Â¾¤Î¾ì¹ç¤âƱÍͤǤ¹¡£

112.39.7 ËÞÎã¤Î°ÌÃÖ¤ÎÈùÄ´À° (key offset)

ËÞÎã (key) ¤ÎÇÛÃÖ¥ª¥×¥·¥ç¥ó¤È¤Ï̵´Ø·¸¤Ë¡¢ËÞÎã¤ÎºÇ½ªÅª¤Ê¾ì½ê¤ò¡¢°ÌÃ֤Π¤º¤ì (offset) ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¤â¼êÆ°¤Ç°ÌÃÖ¹ç¤ï¤»¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤¤¤Ä¤â¤Î¤è¤¦¤Ë¡¢¤º¤ì¤Î x, y À®Ê¬¤Ï character, graph, screen ¤Î¤¤¤º¤ì¤Î ºÂɸ¤Ç¤âÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

112.39.8 ËÞÎã¤Î¥µ¥ó¥×¥ë (key samples)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥°¥é¥Õ¾å¤Î³ÆÉÁ²è¤ÏËÞÎã (key) Æâ¤Ë¤½¤ì¤¾¤ì¤ËÂбþ¤¹¤ë¥¨ ¥ó¥È¥ê¤òÀ¸À®¤·¤Þ¤¹¡£¤³¤Î¥¨¥ó¥È¥ê¤Ë¤Ï¡¢ÉÁ²è¥¿¥¤¥È¥ë¤È¡¢¤½¤ÎÉÁ²è¤Ç»È¤ï¤ì ¤ë¤Î¤ÈƱ¤¸¿§¡¢Æ±¤¸Åɤê¤Ä¤Ö¤·Â°À­¤Ë¤è¤ëÀþ/ÅÀ/È¢ ¤Î¥µ¥ó¥×¥ë¤¬Æþ¤ê¤Þ¤¹¡£ font ¤È textcolor °À­¤Ï¡¢ËÞÎãÆâ¤Ë¸½¤ï¤ì¤ë¸Ä¡¹¤ÎÉÁ²è¥¿¥¤¥È¥ë¤Î¸«¤¿Ìܤò À©¸æ¤·¤Þ¤¹¡£textcolor ¤ò "variable" ¤Ë¥»¥Ã¥È¤¹¤ë¤È¡¢ËÞÎã¤Î³Æ¥¨¥ó¥È¥ê¤Î ʸ»úÎó¤Ï¡¢ÉÁ²è¥°¥é¥Õ¤ÎÀþ¤äÅɤê¤Ä¤Ö¤·¿§¤ÈƱ¤¸¿§¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ÊÁ° ¤Î¤¢¤ë»þ´ü¤Î gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎµóÆ°¤Ç¤·¤¿¡£

¥°¥é¥Õ¶ÊÀþ¤Î¥µ¥ó¥×¥ë¤ÎÀþʬ¤ÎŤµ¤Ï samplen ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£¤½¤ÎŤµ ¤Ï¡¢ÌÜÀ¹¤ê¤ÎŤµ¤È <sample_length>*(ʸ»úÉý) ¤ÎϤȤ·¤Æ·×»»¤·¤Þ¤¹¡£ ÅÀ¤Îµ­¹æ¤Ï¡¢¥µ¥ó¥×¥ëÀþʬ¤ÎÃæ±û¤Ë½ñ¤«¤ì¤ë¤¿¤á¡¢¤³¤ì¤ÏËÞÎãÆâ¤ÎÅÀ¤Î¥µ¥ó¥× ¥ë°ÌÃ֤ˤâ (Àþʬ¤ÏÉÁ¤«¤Ê¤¯¤Æ¤â) ±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

ËÞÎã¤Î¥Ù¡¼¥¹¥é¥¤¥ó´Ö³Ö¤Ï¡¢¸½ºß¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ËÂФ¹¤ë¡Ö1 ¹Ô¶õ¤­¡× (single space) ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï set key spacing <line-spacing> ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£

<width_increment> ¤Ï¡¢Ê¸»úÎó¤ÎŤµ¤Ë²Ã¤¨¤¿¤ê¸º¤é¤·¤¿¤ê¤¹¤ëÉý (²¿Ê¸»úʬ ¤«) ¤òɽ¤¹¿ôÃͤǤ¹¡£¤³¤ì¤Ï¡¢ËÞÎã¤Ë³°ÏȤò½ñ¤­¡¢Ê¸»úÎó¤ËÀ©¸æʸ»ú¤ò»È¤¦¾ì ¹ç¤Ë¤À¤±Í­ÍѤǤ·¤ç¤¦¡£gnuplot ¤Ï³°ÏȤÎÉý¤ò·×»»¤¹¤ë¤È¤­¤Ï¡¢¥é¥Ù¥ëʸ»ú Îó¤Îʸ»ú¿ô¤òñ½ã¤Ë¿ô¤¨¤ë¤À¤±¤Ê¤Î¤Ç¡¢¤½¤ì¤ò½¤Àµ¤¹¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£

112.39.9 Ê£¿ô¤ÎËÞÎã¤Î½¸Ìó (multiple keys)

Image figure_multiple_keys
³Æ¥°¥é¥Õ¤Î¥¿¥¤¥È¥ë¤ò¡¢¤¹¤Ù¤Æ¼«Æ°Åª¤ËÀ¸À®¤µ¤ì¤ëËÞÎã (key) Æâ¤Ëɽ¼¨¤µ¤» ¤ëÂå¤ï¤ê¤Ë¡¢É½Âê¤äËÞÎã¤ò¼êÆ°¤ÇÇÛÃÖ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Î㤨 ¤Ð¿½ÅÉÁ²è¥â¡¼¥É (multiplot) ¤Ç¤Î³Æ¥°¥é¥ÕÍ×ÁǤËÂФ¹¤ëɽÂê¤ò 1 ²Õ½ê¤Ë½¸ Ì󤷤ƺî¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£


      set multiplot layout 3,2 columnsfirst
      set style data boxes
      plot $D using 0:6  lt 1 title at 0.75, 0.20
      plot $D using 0:12 lt 2 title at 0.75, 0.17
      plot $D using 0:13 lt 3 title at 0.75, 0.14
      plot $D using 0:14 lt 4 title at 0.75, 0.11
      set label 1 at screen 0.75, screen 0.22 "Custom combined key area"
      plot $D using 0:($6+$12+$13+$14) with linespoints title "total"
      unset multiplot

112.40 ¥é¥Ù¥ë (label)

set label ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤Ë¤è¤Ã¤ÆǤ°Õ¤Î¸«½Ð¤· (label) ¤ò¥°¥é¥ÕÃæ ¤Ëɽ¼¨¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set label {<tag>} {"<label text>"} {at <position>}
               {left | center | right}
               {norotate | rotate {by <degrees>}}
               {font "<name>{,<size>}"}
               {noenhanced}
               {front | back}
               {textcolor <colorspec>}
               {point <pointstyle> | nopoint}
               {offset <offset>}
               {nobox} {boxed {bs <boxstyle>}}
               {hypertext}
     unset label {<tag>}
     show label

°ÌÃÖ (<position>) ¤Ï x,y ¤« x,y,z ¤Î¤É¤Á¤é¤«¤Ç»ØÄꤷ¡¢ºÂɸ·Ï¤ò»ØÄꤹ¤ë ¤Ë¤Ï¤½¤ÎºÂɸ¤ÎÁ°¤Ë first, second, polar, graph, screen, character ¤ò¤Ä¤±¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£

¥¿¥° (<tag>) ¤Ï¸«½Ð¤·¤ò¼±Ê̤¹¤ë¤¿¤á¤ÎÀ°¿ôÃͤǤ¹¡£¥¿¥°¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿ ¾ì¹ç̤»ÈÍѤΤâ¤Î¤ÇºÇ¤â¾®¤µ¤¤Ãͤ¬¼«Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£¸½ºß¤Î¸«½Ð¤· ¤òÊѹ¹¤¹¤ë¤È¤­¤Ï¤½¤Î¥¿¥°¤ÈÊѹ¹¤·¤¿¤¤¹àÌܤò»ØÄꤷ¤Æ set label ¥³¥Þ¥ó ¥É¤ò»È¤¤¤Þ¤¹¡£

<label text> ¤Ïʸ»úÎóÄê¿ô¤Ç¤â¹½¤¤¤Þ¤»¤ó¤·¡¢Ê¸»úÎóÊÑ¿ô¡¢¤Þ¤¿¤Ïʸ»úÎó¤Î Ãͤò»ý¤Ä¼°¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£°Ê²¼»²¾È: strings (28), sprintf (15.3), gprintf (112.31.1)¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢»ØÄꤷ¤¿ÅÀ x,y,z ¤Ë¸«½Ð¤·¤Îʸ¾Ï¤Îº¸Ã¼¤¬Íè¤ë¤è¤¦¤ËÇÛÃÖ ¤µ¤ì¤Þ¤¹¡£x,y,z ¤ò¸«½Ð¤·¤Î¤É¤³¤Ë·¤¨¤ë¤«¤òÊѹ¹¤¹¤ë¤Ë¤ÏÊÑ¿ô <justification> ¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤ì¤Ë¤Ï¡¢left, right, center ¤Î ¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤­¡¢¤½¤ì¤¾¤ìʸ¾Ï¤Îº¸¡¢±¦¡¢¿¿Ã椬»ØÄꤷ¤¿ÅÀ¤ËÍè¤ë¤è¤¦ ¤ËÇÛÃÖ¤µ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ÉÁ²èÈϰϤγ°¤Ë¤Ï¤ß½Ð¤ë¤è¤¦¤Ê»ØÄê¤âµö¤µ¤ì¤Þ ¤¹¤¬¡¢ºÂɸ¼´¤Î¸«½Ð¤·¤ä¾¤Îʸ»úÎó¤È½Å¤Ê¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£

È¢ÏÈÉÕ¤­¤Î¥é¥Ù¥ë¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£°Ê²¼»²¾È: set style textbox (112.86.14)¡£²óž¤µ¤»¤¿Ê¸»úÎó¤ÎÈ¢ÉÕ¤±¤Ï¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤¬²Ä ǽ¤Ê¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

rotate ¤ò»ØÄꤹ¤ë¤È¥é¥Ù¥ë¤Ï½Ä½ñ¤­¤Ë¤Ê¤ê¤Þ¤¹¡£rotate by <degrees> ¤ò»ØÄꤹ¤ë¤È¡¢Ê¸»úÎó¤Î¥Ù¡¼¥¹¥é¥¤¥ó¤ò»ØÄꤷ¤¿³Ñ¤ËÀßÄꤷ¤Þ¤¹¡£¤¿¤À¤·¡¢Ê¸ »úÎó¤Î²óž¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£

¥Õ¥©¥ó¥È¤È¤½¤Î¥µ¥¤¥º¤Ï¡¢½ÐÎÏ·Á¼°¤¬¥Õ¥©¥ó¥È¤ÎÀßÄê¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð font "<name>{,<size>}" ¤ÇÌÀ¼¨Åª¤ËÁªÂò¤Ç¤­¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤½ÐÎÏ·Á¼°¤Ç ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¥ó¥È¤¬»È¤ï¤ì¤Þ¤¹¡£

Ä̾ï¤Ï¡¢¸½ºß¤Î½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¡¢¥é¥Ù¥ëʸ»úÎó¤ÎÁ´¤Æ¤Îʸ»úÎó ¤Ë³Èĥʸ»úÎó½èÍý¥â¡¼¥É (enhanced text mode) ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ noenhanced ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¡¢ÆÃÄê¤Î¥é¥Ù¥ë¤ò³Èĥʸ»úÎó½èÍý¤«¤é³°¤¹¤³ ¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥é¥Ù¥ë¤¬Î㤨¤Ð¥¢¥ó¥À¡¼¥¹¥³¥¢ (_) ¤ò´Þ¤ó¤Ç¤¤¤ë¾ì ¹ç¤Ê¤É¤ËÍ­ÍѤǤ¹¡£°Ê²¼»²¾È: enhanced text (13)¡£

front ¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢¸«½Ð¤·¤Ï¥Ç¡¼¥¿¤Î¥°¥é¥Õ¤Î¾å¤Ë½ñ¤«¤ì¤Þ¤¹¡£back ¤¬Í¿¤¨¤é¤ì¤ë¤È (¥Ç¥Õ¥©¥ë¥È)¡¢¸«½Ð¤·¤Ï¥°¥é¥Õ¤Î²¼¤Ë½ñ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¦¤³¤È¤Ç¡¢Ì©¤Ê¥Ç¡¼¥¿¤Ë¤è¤Ã¤Æ¸«½Ð¤·¤¬±£¤µ¤ì¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤±¤ë¤³¤È ¤¬½ÐÍè¤Þ¤¹¡£

textcolor <colorspec> ¤Ï¸«½Ð¤·Ê¸»úÎó¤Î¿§¤òÊѹ¹¤·¤Þ¤¹¡£<colorspec> ¤Ï Àþ¼ï¡¢rgb ¿§¡¢¤Þ¤¿¤Ï¥Ñ¥ì¥Ã¥È¤Ø¤Î³äÅö¤Î¤¤¤º¤ì¤«¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: colorspec (20.1), palette (15.3)¡£textcolor ¤Ï¡¢tc ¤È¾Êά²Äǽ¤Ç¤¹¡£


  `tc default` ¤Ï¡¢Ê¸»ú¿§¤ò¥Ç¥Õ¥©¥ë¥È¤Ë¤·¤Þ¤¹¡£
  `tc lt <n>` ¤Ï¡¢Ê¸»ú¿§¤òÀþ¼ï <n> (line type)¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£
  `tc ls <n>` ¤Ï¡¢Ê¸»ú¿§¤ò line style <n> ¤ÈƱ¤¸¤â¤Î¤Ë¤·¤Þ¤¹¡£
  `tc palette z` ¤Ï¡¢¸«½Ð¤·¤Î z ¤Î°ÌÃÖ¤ËÂбþ¤·¤¿¥Ñ¥ì¥Ã¥È¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
  `tc palette cb <val>` ¤Ï¡¢¿§¸«ËÜ (colorbox) ¤Î <val> ¤Î¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
  `tc palette fraction <val>` (0<=val<=1) ¤Ï¡¢[0:1] ¤«¤é `palette` ¤Î
      ³¥¿§³¬Ä´/¥«¥é¡¼¤Ø¤Î¼ÌÁü¤ËÂбþ¤·¤¿¿§¤Ë¤Ê¤ê¤Þ¤¹¡£
  `tc rgb "#RRGGBB"`, `tc rgb "0xRRGGBB"` ¤Ï¡¢Ç¤°Õ¤Î 24-bit RGB ¿§¤ò
      ÀßÄꤷ¤Þ¤¹¡£
  `tc rgb 0xRRGGBB` ¤âƱ¤¸¤Ç¤¹ (16 ¿ÊÄê¿ôÃͤˤϰúÍÑÉä¤ÏÉÔÍ×)¡£

<pointstyle> ¤¬¥­¡¼¥ï¡¼¥É lt, pt, ps ¤È¤È¤â¤ËÍ¿¤¨¤é¤ì¤ë¤È (°Ê²¼ »²¾È: style (99.10))¡¢Í¿¤¨¤é¤ì¤¿¥¹¥¿¥¤¥ë¤È¡¢Í¿¤¨¤é¤ì¤¿Àþ¼ï¤Î¿§¤Ç¸«½Ð¤·°ÌÃÖ¤Ë ÅÀ (point) ¤¬ÉÁ²è¤µ¤ì¡¢¸«½Ð¤·Ê¸»úÎó¤Ï¾¯¤·°ÜÆ°¤µ¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó ¤Ï mouse ³ÈÄ¥¤µ¤ì¤¿½ÐÎÏ·Á¼°¤Ç¤Î¥é¥Ù¥ë¤ÎÇÛÃ֤ˡ¢¥Ç¥Õ¥©¥ë¥È¤Ç»ÈÍѤµ¤ì ¤Æ¤¤¤Þ¤¹¡£¸«½Ð¤·Ê¸»úÎó¶á¤¯¤ÎÅÀ¤ÎÉÁ²èµ¡Ç½¤ò off (¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È) ¤Ë¤¹ ¤ë¤Ë¤Ï¡¢nopoint ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

¤½¤Î°ÜÆ°¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢<pointstyle> ¤¬Í¿¤¨¤é¤ì¤ì¤Ð pointsize ¤Î ñ°Ì¤Ç 1,1 ¤Ç¡¢<pointstyle> ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 0,0 ¤Ç¤¹¡£°ÜÆ°¤Ï¡¢ ÄɲäΠoffset <offset> ¤Ç¤âÀ©¸æ¤Ç¤­¤Þ¤¹¡£¤³¤³¤Ç¡¢<offset> ¤Ï x,y ¤« ¤Þ¤¿¤Ï x,y,z ¤Î·Á¼°¤Ç¤¹¤¬¡¢¤½¤ì¤ËºÂɸ·Ï¤òÁªÂò¤·¤Æ¡¢¤½¤ÎÁ°¤Ë first, second, graph, screen, character ¤Î¤¤¤º¤ì¤«¤ò¤Ä¤±¤ë¤³¤È¤â¤Ç¤­ ¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£

¤â¤·°ì¤Ä (¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å¤Î) ¼´¤¬»þ´Ö¼´¤Ç¤¢¤ë¾ì¹ç¡¢ºÂɸ¤Ï timefmt ¤Î½ñ¼°¤Ë¤·¤¿¤¬¤Ã¤Æ°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤ÇÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£°Ê²¼ »²¾È: set xdata (112.118), set timefmt (112.96)¡£

set label ¤Ë´Ø¤·¤ÆÍ­¸ú¤Ê¥ª¥×¥·¥ç¥ó¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë labels ¤Ç¤âÍ­¸ú ¤Ç¤¹¡£°Ê²¼»²¾È: labels (54)¡£¤³¤Î¾ì¹ç¡¢textcolor, rotate, pointsize ¤Î°À­¤Î¸å¤í¤Ë¥­¡¼¥ï¡¼¥É variable ¤ò¤Ä¤±¤Æ¡¢¤½¤ì¤é¤ò¸ÇÄêÃͤǤʤ¤¤è¤¦ ¤Ë¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¤½¤Î¾ì¹ç¸Ä¡¹¤Î¥é¥Ù¥ë¤ÎÂбþ¤¹¤ë°À­Ãͤϡ¢using »ØÄê¤ÎÄɲÃÎó¤Ë¤è¤ê·èÄꤷ¤Þ¤¹¡£

112.40.1 Examples

Îã:

(1,2) ¤Î°ÌÃÖ¤Ë "y=x" ¤È½ñ¤¯¾ì¹ç:


     set label "y=x" at 1,2

Symbol ¥Õ¥©¥ó¥È¤Î¥µ¥¤¥º 24 ¤Î "¥·¥°¥Þ" (¦²) ¤ò¥°¥é¥Õ¤Î¿¿Ãæ¤Ë½ñ¤¯¾ì¹ç:


     set label "S" at graph 0.5,0.5 center font "Symbol,24"

¸«½Ð¤· "y=x^2" ¤Î±¦Ã¼¤¬ (2,3,4) ¤ËÍè¤ë¤è¤¦¤Ë¤·¡¢¥¿¥°ÈÖ¹æ¤È¤·¤Æ 3 ¤ò»È¤¦ ¾ì¹ç:


     set label 3 "y=x^2" at 2,3,4 right

¤½¤Î¸«½Ð¤·¤òÃæ±û·¤¨¤Ë¤¹¤ë¾ì¹ç:


     set label 3 center

¥¿¥°ÈÖ¹æ 2 ¤Î¸«½Ð¤·¤òºï½ü¤¹¤ë¾ì¹ç:


     unset label 2

Á´¤Æ¤Î¸«½Ð¤·¤òºï½ü¤¹¤ë¾ì¹ç:


     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

112.40.2 ¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È (hypertext)

½ÐÎÏ·Á¼°¤ÎÃæ¤Ë¤Ï (wxt, qt, svg, canvas, win) ¥°¥é¥Õ¾å¤ÎÆÃÄê¤Î°ÌÃ֤䥭 ¥ã¥ó¥Ð¥¹Æâ¤Î¤½¤Î¾¤ÎÉôʬ¤Ë¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤òŽ¤êÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¤â¤Î ¤¬¤¢¤ê¤Þ¤¹¡£¥Þ¥¦¥¹¤ò¤½¤Î¾ì½ê¤Ë»ý¤Ã¤Æ¤¤¤¯¤È¡¢Ê¸»úÎó¤ò´Þ¤àÈ¢¤¬¥Ý¥Ã¥×¥¢¥Ã ¥×¤µ¤ì¤Þ¤¹¤¬¡¢¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¤½¤ì¤Ï²¿¤â ɽ¼¨¤·¤Þ¤»¤ó¡£¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤òŽ¤êÉÕ¤±¤ë¤Ë¤Ï¡¢¤½¤Î¥é¥Ù¥ë¤Î point °À­¤òÍ­¸ú¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ³Èĥʸ»úÎóÀ©¸æ½ñ¼°¤Ï¡¢¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¥é¥Ù¥ë¤Ë¤ÏŬÍѤµ¤ì¤Þ¤»¤ó¡£ Îã:


     set label at 0,0 "Plot origin" hypertext point pt 1
     plot 'data' using 1:2:0 with labels hypertext point pt 7 \
          title 'mouse over point to see its order in data set'


     # ¤³¤Î pm3d ¶ÊÌ̾å¤ÎǤ°Õ¤Î¾ì½ê¤Ë¥Þ¥¦¥¹¤òÃÖ¤¯¤È¤½¤Î Z ºÂɸ¤ò¥Ï¥¤
     # ¥Ñ¡¼¥Æ¥­¥¹¥È¤È¤·¤Æɽ¼¨
     splot '++' using 1:2:(F($1,$2)) with pm3d, \
           '++' using 1:2:(F($1,$2)):(sprintf("%.3f", F($1,$2))) \
                 with labels \
                 hypertext point lc rgb "0xff000000" notitle

wxt ¤È qt ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢Ê¸»úÎó¤¬É½¼¨¤µ¤ì¤¿¤¢¤È¤Ë¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥ÈÉôʬ¤ò º¸¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤½¤Î¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤¬¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ë¥³¥Ô¡¼¤µ¤ì¤Þ¤¹¡£

»î¸³Ãʳ¬¤Îµ¡Ç½ (»ÅÍͤκ٤«¤¤Éôʬ¤ÏÊѹ¹¤Î²ÄǽÀ­¤¢¤ê) - "image{<xsize>,<ysize>}:<filename>{ \n<caption text>}" ¤Î·Á¼°¤Îʸ»úÎó¤Ï ¥Ý¥Ã¥×¥¢¥Ã¥×¥Ü¥Ã¥¯¥¹Æâ¤Ç²èÁü¥Õ¥¡¥¤¥ë¤òɽ¼¨¤µ¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¥µ¥¤¥º»Ø Äê¤Ë¤è¤ê¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥¤¥º 300x200 ¤òÊѹ¹¤Ç¤­¤Þ¤¹¡£Ç§¼±¤¹¤ë²èÁü¥Õ¥¡¥¤ ¥ë¤Î·¿¤Ï½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ°ã¤¤¤Þ¤¹¤¬¡¢*.png ¤Ï¾ï¤Ë OK ¤Ç¤¹¡£²èÁü¥Õ¥¡¥¤¥ë ̾¤Î¸å¤í¤Ë½ñ¤¤¤¿Ê¸»úÎó¤Ï¡¢Ä̾ï¤Î¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¤ÈƱÍͤËɽ¼¨¤·¤Þ¤¹¡£ Îã:


     set label 7 "image:../figures/Fig7_inset.png\nFigure 7 caption..."
     set label 7 at 10,100 hypertext point pt 7

112.41 Àþ¼ï (linetype)

¥³¥Þ¥ó¥É set linetype ¤Ï³Æ¼ïÉÁ²è¤Ë»ÈÍѤµ¤ì¤ë´ðËÜŪ¤ÊÀþ¼ï (linetype) ¤òºÆÄêµÁ¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢ "set style line" ¤Î¤â¤Î¤ÈÁ´¤¯Æ±¤¸¤Ç¤¹¡£¥é¥¤¥ó¥¹¥¿¥¤¥ë¤È°ã¤¦¤È¤³¤í¤Ï¡¢ set linetype ¤Ë¤è¤ëºÆÄêµÁ¤Ï±Ê³Ū¤Ê¤³¤È¤Ç¡¢¤³¤ì¤Ï reset ¤Î±Æ¶Á¤ò¼õ ¤±¤Þ¤»¤ó¡£¤·¤«¤·¡¢reset session ¤Ç½é´üÀþ¼ï¤Î°À­¤òÉüµ¢¤·¤Þ¤¹¡£

Î㤨¤Ð¡¢Àþ¼ï 1 ¤È 2 ¤ò°Ê²¼¤Î¤è¤¦¤ËºÆÄêµÁ¤·¤Æ¤ß¤Þ¤¹:


     set linetype 1 lw 2 lc rgb "blue" pointtype 6
     set linetype 2 lw 2 lc rgb "forest-green" pointtype 8

¤¹¤ë¤È¡¢¤½¤ì¤é¤ÎÀþ¼ï¤ÎºÇ½é¤Î¸«¤¿Ìܤ¬¤É¤¦¤Ç¤¢¤Ã¤¿¤«¤Ë´Ø¤ï¤é¤º¡¢lt 1 ¤ò »ÈÍѤ·¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¤â¤Î¤¬¡¢¤½¤Î¸å¤ÏÂÀ¤¤ÀÄÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÀ­¼Á¤Ï¡¢lt 1 ¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿°ì»þŪ¤Ê¥é¥¤¥ó¥¹¥¿¥¤¥ë¤ÎÄêµÁ¤Î¤è¤¦¤Ê¤â¤Î¤Ë¤âŬÍѤµ¤ì ¤Þ¤¹¡£Æ±Íͤˡ¢Àþ¼ï 2 ¤Ï¡¢¤½¤Î¸å¤ÏÂÀ¤¤ÎÐÀþ¤Ë¤Ê¤ê¤Þ¤¹¡£

¤³¤Î»ÅÁȤߤϡ¢gnuplot ¤Ç»ÈÍѤ¹¤ëÀþ¼ïÎó¤ËÂФ¹¤ë¸Ä¿ÍŪ¤Ê¹¥¤ß¤òÀßÄꤹ¤ë¤Î ¤Ë¤â»È¤¨¤Þ¤¹¡£¤½¤ì¤ò¹Ô¤¦¤Ë¤Ï¡¢¼Â¹Ô»þ½é´ü²½¥Õ¥¡¥¤¥ë ~ /.gnuplot ¤Ë¡¢Î㤨 ¤Ð°Ê²¼¤Î¤è¤¦¤Ê¤½¤ìÍѤΥ³¥Þ¥ó¥ÉÎó¤òÄɲ乤뤳¤È¤ò¤ª´«¤á¤·¤Þ¤¹:


     set linetype 1 lc rgb "dark-violet" lw 2 pt 1
     set linetype 2 lc rgb "sea-green"   lw 2 pt 7
     set linetype 3 lc rgb "cyan"        lw 2 pt 6 pi -1
     set linetype 4 lc rgb "dark-red"    lw 2 pt 5 pi -1
     set linetype 5 lc rgb "blue"        lw 2 pt 8
     set linetype 6 lc rgb "dark-orange" lw 2 pt 3
     set linetype 7 lc rgb "black"       lw 2 pt 11
     set linetype 8 lc rgb "goldenrod"   lw 2
     set linetype cycle 8

¤³¤¦¤¹¤ë¤È¡¢¤¢¤Ê¤¿¤¬ gnuplot ¤ò¼Â¹Ô¤¹¤ëÅÙ¤ËÀþ¼ï¤Ï¤³¤ì¤é¤ÎÃͤ˽é´ü²½¤µ ¤ì¤Þ¤¹¡£Àþ¼ï¤Ï¤¢¤Ê¤¿¤¬¹¥¤à¿ô¤À¤±½é´ü²½¤Ç¤­¤Þ¤¹¡£ºÆÄêµÁ¤·¤Ê¤¤¾ì¹ç¤Ï¡¢¤½ ¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î°À­¤ò»ý¤Á³¤±¤Þ¤¹¡£Î㤨¤ÐÀþ¼ï 3 ¤òºÆÄêµÁ¤«¤é³°¤»¤Ð¡¢ ¤½¤ì¤ÏÀÄ¤Ç pt 3, lw 1 ¤È¤Ê¤ê¤Þ¤¹¡£

ƱÍͤΥ¹¥¯¥ê¥×¥È¥Õ¥¡¥¤¥ë¤Ç¡¢¥Æ¡¼¥Þ¥Ù¡¼¥¹¤Î¿§ÁªÂò¤ÎÄêµÁ¤ò¹Ô¤Ã¤¿¤ê¡¢ÆÃÄê ¤ÎÉÁ²è¥¿¥¤¥×¡¢¤¢¤ë¤¤¤ÏÆÃÄê¤Î½ÐÎÏ·Á¼°ÍѤ˿§¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤ê¤¹¤ë¤³¤È ¤â²Äǽ¤Ç¤¹¡£

¥³¥Þ¥ó¥É set linetype cycle 8 ¤Ï¡¢Â礭¤ÊÈÖ¹æ¤ÎÀþ¼ï¤ËÂФ·¤Æ¤Ï¿§¤äÀþÉý ¤Ë´Ø¤¹¤ë¤³¤ì¤é¤ÎÄêµÁ¤òºÆÍøÍѤ¹¤ë¤³¤È¤ò gnuplot ¤ËÅÁ¤¨¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢ Àþ¼ï (linetype) 9-16, 17-24 Åù¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤ÈƱ¤¸¿§¡¢Éý¤ÎÎó¤ò»ÈÍѤ· ¤Þ¤¹¡£¤¿¤À¤·¡¢ÅÀ¤Î°À­ (pointtype, pointsize, pointinterval) ¤Ï¡¢¤³¤Î ¥³¥Þ¥ó¥É¤Î±Æ¶Á¤Ï¼õ¤±¤Þ¤»¤ó¡£unset linetype cycle ¤Ï¤³¤Îµ¡Ç½¤ò̵¸ú¤Ë ¤·¤Þ¤¹¡£Â礭¤ÊÀþ¼ïÈÖ¹æ¤ÎÀþ¤Î°À­¤òÌÀ¼¨Åª¤ËÄêµÁ¤·¤¿¾ì¹ç¤Ï¡¢¤½¤ì¤Ï¾®¤µ¤¤ ÈÖ¹æ¤ÎÀþ¼ï¤Î°À­¤ÎºÆÍøÍѤè¤ê¤âÍ¥À褵¤ì¤Þ¤¹¡£

112.42 Âè 2 ¼´¤È¤ÎÂбþ (link)

½ñ¼°:


     set link {x2 | y2} {via <expression1> inverse <expression2>}
     unset link

¥³¥Þ¥ó¥É set link ¤Ï¡¢x ¼´¤È x2 ¼´¡¢¤Þ¤¿¤Ï y ¼´¤È y2 ¼´¤Î´Ö¤ÎÂбþ¤ò ÀßÄꤷ¤Þ¤¹¡£<expression1> ¤Ï¡¢Âè 1 ¼´¤ÎºÂɸ¤òÂè 2 ¼´¤Ë¼ÌÁü¤¹¤ë¿ô¼°¤Ç¤¹ ¤¬¡¢<expression2> ¤ÏÂè 2 ¼´¤ÎºÂɸ¤òÂè 1 ¼´¤Ë¼ÌÁü¤¹¤ë¿ô¼°¤Ç¤¹¡£

Îã:


     set link x2

¤³¤ì¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÎºÇ¤âñ½ã¤Ê·Á¼°¤Ç¡¢x2 ¼´¤òÈÏ°Ï (range) ¤â¿­½Ì (scale) ¤âÊý¸þ¤â x ¼´¤ÈÁ´¤¯Æ±¤¸¤Ë¤·¤Þ¤¹¡£set xrange, set x2range ¤ä set auto x ¤Ê¤É¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤³¤Î¾ì¹ç x ¼´¤Ë¤â x2 ¼´¤Ë¤âºîÍѤ·¤Þ ¤¹¡£


     set link x2 via x**2 inverse sqrt(x)
     plot "sqrt_data" using 1:2 axes x2y1, "linear_data" using 1:2 axes x1y1

¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢x ¼´¤È x2 ¼´¤Î¡¢½çÊý¸þ¤ÈµÕÊý¸þ¤ÎÂбþ¤òÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£ ½çÊý¸þ¤ÎÂбþ¤Ï¡¢x2 ¼´¤Î¹ï¤ß¥é¥Ù¥ë¤È¡¢¥Þ¥¦¥¹¤Î x2 ºÂɸ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È ¤¤¡¢µÕÊý¸þ¤ÎÂбþ¤Ï¡¢x2 ¼´·Ï¤Ç»ØÄꤵ¤ì¤¿ºÂɸ¤òÉÁ²è¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£¤³ ¤ÎÂбþ¤Ï¡¢ÈóÉé¤Î x ºÂɸ¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£y2 ¼´¤Ë Âбþ¤µ¤»¤¿¾ì¹ç¡¢<expression1> ¤È <expression2> ¤Ë¤Ï²¾ÊÑ¿ô¤È¤·¤Æ y ¤ò»È ¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£

112.43 Lmargin

¥³¥Þ¥ó¥É set lmargin ¤Ïº¸¤Î;Çò¤Î¥µ¥¤¥º¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼ »²¾È: set margin (112.49)¡£

112.44 Æɤ߹þ¤ß¸¡º÷¥Ñ¥¹ (loadpath)

loadpath ¤ÎÀßÄê¤Ï¡¢call, load, plot, splot ¥³¥Þ¥ó¥É¤Î¥Ç¡¼¥¿ ¥Õ¥¡¥¤¥ë¡¢¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤Î¸¡º÷¥Ñ¥¹¤òÄɲÃÄêµÁ¤·¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤¬¸½ºß¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢loadpath ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¸¡º÷¤µ ¤ì¤Þ¤¹¡£

½ñ¼°:


     set loadpath {"pathlist1" {"pathlist2"...}}
     show loadpath

¥Ñ¥¹Ì¾¤Ïñ°ì¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î¥Ñ¥¹Ì¾¤Î¥ê¥¹¥È¤È¤·¤ÆÆþÎϤ·¤Þ ¤¹¡£Ê£¿ô¤Î¥Ñ¥¹¤«¤é¤Ê¤ë¥Ñ¥¹¥ê¥¹¥È¤Ï OS ¸ÇÍ­¤Î¥Ñ¥¹¶èÀڤꡢÎ㤨¤Ð Unix ¤Ç ¤Ï¥³¥í¥ó (':'), MS-DOS, Windows, OS/2 ¤Ç¤Ï¥»¥ß¥³¥í¥ó (';') Åù¤Ç¶èÀÚ¤ê ¤Þ¤¹¡£show loadpath, save, save set ¥³¥Þ¥ó¥É¤Ï¡¢OS ¸ÇÍ­¤Î¥Ñ¥¹¶è ÀÚ¤ê¤ò¥¹¥Ú¡¼¥¹ (' ') ¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£

´Ä¶­ÊÑ¿ô GNUPLOT_LIB ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ÎÆâÍÆ¤Ï loadpath ¤ËÄÉ ²Ã¤µ¤ì¤Þ¤¹¤¬¡¢show loadpath ¤Ï¡¢set loadpath ¤È GNUPLOT_LIB ¤ÎÃͤò ÊÌ¡¹¤Ëɽ¼¨¤·¤Þ¤¹¤·¡¢save, save set ¥³¥Þ¥ó¥É¤Ï¡¢GNUPLOT_LIB ¤ÎÃͤΠÊý¤Ï̵»ë¤·¤Þ¤¹¡£

112.45 ¥í¥±¡¼¥ë (locale)

locale ¤ÎÀßÄê¤Ï {x,y,z}{d,m}tics ¤¬½ñ¤¯ÆüÉդθÀ¸ì¤ò·èÄꤷ¤Þ¤¹¡£

½ñ¼°:


     set locale {"<locale>"}

<locale> ¤Ë¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥·¥¹¥Æ¥à¤Ç»È¤¦¤³¤È¤Î½ÐÍè¤ëǤ°Õ¤Î¸À¸ì¤ò »ØÄê¤Ç¤­¤Þ¤¹¡£²Äǽ¤Ê¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¥·¥¹¥Æ¥à¤Î¥É¥­¥å¥á¥ó¥È¤ò»²¾È¤· ¤Æ¤¯¤À¤µ¤¤¡£¥³¥Þ¥ó¥É set locale "" ¤Ï¡¢´Ä¶­ÊÑ¿ô LC_TIME, LC_ALL, ¤Þ ¤¿¤Ï LANG ¤«¤é¥í¥«¡¼¥ë¤ÎÃͤò·èÄꤷ¤è¤¦¤È¤·¤Þ¤¹¡£

¾®¿ôÅÀ¤Ë´Ø¤¹¤ë locale ¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set decimalsign (112.24)¡£ ʸ»ú¥¨¥ó¥³¡¼¥É¤ò¸½ºß¤Î¥í¥«¡¼¥ë¤Î¤â¤Î¤ËÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢°Ê²¼»²¾È: set encoding (112.27)¡£

112.46 Âпô¼´ (logscale)

½ñ¼°:


     set logscale <axes> {<base>}
     unset logscale <axes>
     show logscale

¤³¤³¤Ç¡¢<axes> (¼´) ¤Ï¡¢x, x2, y, y2, z, cb, r ¤ÎǤ°Õ¤Î ½ç½ø¤ÎÁȤ߹礻¤¬²Äǽ¤Ç¤¹¡£<base> ¤Ï¡¢ÂпôÌÜÀ¹¤ê¤ÎÄì¤Ç¤¹ (¥Ç¥Õ¥©¥ë¥È¤Î Äì¤Ï 10)¡£¼´¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢r °Ê³°¤Î¤¹¤Ù¤Æ¤Î¼´¤¬ÂоݤȤʤê¤Þ ¤¹¡£¥³¥Þ¥ó¥É unset logscale ¤Ï¡¢¤¹¤Ù¤Æ¤Î¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤·¤Þ¤¹¡£ Âпô¼´¤ËÂФ·¤Æ¤Ä¤±¤é¤ì¤ëÌÜÀ¹¤ê¤Î¹ï¤ß¤Ï¡¢Åù´Ö³Ö¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯ ¤À¤µ¤¤¡£°Ê²¼»²¾È: set xtics (112.123)¡£

Îã:

x, z ξ¼´¤Ë¤Ä¤¤¤ÆÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:


     set logscale xz

y ¼´¤Ë¤Ä¤¤¤ÆÄì 2 ¤È¤¹¤ëÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:


     set logscale y 2

pm3d plot ÍÑ¤Ë z ¤È¿§¤Î¼´¤ËÂпôÌÜÀ¹¤ê¤òÀßÄꤹ¤ë:


     set logscale zcb

z ¼´¤ÎÂпôÌÜÀ¹¤ê¤ò²ò½ü¤¹¤ë:


     unset logscale z

112.47 ¥Þ¥¯¥í (macros)

¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ç¤Ï¡¢¥Þ¥¯¥íÃÖ´¹¤Ï¾ï¤ËÍ­¸ú¤Ç¤¹¡£¥³¥Þ¥ó¥É¥é ¥¤¥óÆâ¤Î @<stringvariablename> ¤Î·Á¼°¤ÎÉôʬʸ»úÎó¤Ï¡¢Ê¸»úÎóÊÑ¿ô <stringvariablename> ¤Ë´Þ¤Þ¤ì¤ë¥Æ¥­¥¹¥Èʸ»úÎó¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£°Ê²¼ »²¾È: substitution (29)¡£

112.48 3 ¼¡¸µºÂɸ·Ï (mapping)

¥Ç¡¼¥¿¤¬ splot ¤ËµåÌ̺Âɸ¤ä±ßÃìºÂɸ¤ÇÍ¿¤¨¤é¤ì¤¿¾ì¹ç¡¢set mapping ¥³¥Þ¥ó¥É¤Ï gnuplot ¤Ë¤½¤ì¤ò¤É¤Î¤è¤¦¤Ë°·¤¦¤«¤ò»ØÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£

½ñ¼°:


     set mapping {cartesian | spherical | cylindrical}

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥«¡¼¥Æ¥·¥¢¥óºÂɸ (Ä̾ï¤Î x,y,z ºÂɸ) ¤¬»È¤ï¤ì¤Þ¤¹¡£

µåÌ̺Âɸ¤Ç¤Ï¡¢¥Ç¡¼¥¿¤Ï 2 ¤Ä¤« 3 ¤Ä¤ÎÎó (¤Þ¤¿¤Ï¤½¤Î¸Ä¿ô¤Î using ¥¨¥ó ¥È¥ê) ¤È¤·¤ÆÍ¿¤¨¤é¤ì¤Þ¤¹¡£ºÇ½é¤Î 2 ¤Ä¤Ï¡¢set angles ¤ÇÀßÄꤵ¤ì¤¿Ã±°Ì ¤Ç¤ÎÊý°Ì³Ñ (theta) ¤È¶Ä³Ñ (phi) (¤¹¤Ê¤ï¤Á "·ÐÅÙ" ¤È "°ÞÅÙ") ¤È¤ß¤Ê¤µ¤ì ¤Þ¤¹¡£È¾·Â r ¤Ï¡¢¤â¤· 3 ÎóÌܤΥǡ¼¥¿¤¬¤¢¤ì¤Ð¤½¤ì¤¬»È¤ï¤ì¡¢¤â¤·¤Ê¤±¤ì¤Ð 1 ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£³ÆÊÑ¿ô¤Î x,y,z ¤È¤ÎÂбþ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:


     x = r * cos(theta) * cos(phi)
     y = r * sin(theta) * cos(phi)
     z = r * sin(phi)

¤³¤ì¤Ï¡¢"¶ËºÂɸ·Ï" ¤È¤¤¤¦¤è¤ê¡¢¤à¤·¤í "Ãϳؾå¤ÎºÂɸ·Ï" (°ÞÅÙ¡¢·ÐÅÙ) ¤Ë ÁêÅö¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (¤¹¤Ê¤ï¤Á¡¢phi ¤Ï z ¼´¤È¤Ê¤¹³Ñ¡¢¤È¤¤¤¦ ¤è¤êÀÖÆ»¤«¤é·×¤Ã¤¿¶Ä³Ñ¡¢¤Ë¤Ê¤ê¤Þ¤¹)¡£

±ßÃìºÂɸ¤Ç¤Ï¡¢¥Ç¡¼¥¿¤Ï¤ä¤Ï¤ê 2 ¤Ä¤« 3 ¤Ä¤ÎÎó¤ÇÍ¿¤¨¤é¤ì¡¢ºÇ½é¤Î 2 ¤Ä¤Ï theta (set angle ¤Ç»ØÄꤵ¤ì¤¿Ã±°Ì¤Î) ¤È z ¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£È¾·Â r ¤Ï µåÌ̺Âɸ¤Î¾ì¹ç¤ÈƱÍÍ¡¢3 ÎóÌܤΥǡ¼¥¿¤¬¤¢¤ì¤Ð¤½¤ì¤¬¡¢¤Ê¤±¤ì¤Ð 1 ¤ÈÀßÄê ¤µ¤ì¤Þ¤¹¡£³ÆÊÑ¿ô¤Î x,y,z ¤È¤ÎÂбþ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:


     x = r * cos(theta)
     y = r * sin(theta)
     z = z

mapping ¤Î¸ú²Ì¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Î using »ØÄê¤Ç¼Â¸½¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹¤¬¡¢Â¿¤¯¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤¬½èÍý¤µ¤ì¤ë¾ì¹ç¤Ï mapping ¤ÎÊý¤¬ÊØ Íø¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢mapping ¤ò»È¤Ã¤Æ¤¤¤Æ¤â¡¢¤â¤·¥Õ¥¡¥¤¥ë¤Î¥Ç¡¼¥¿¤Î½ç ÈÖ¤¬Å¬ÀڤǤʤ«¤Ã¤¿¤é·ë¶É using ¤¬É¬ÍפˤʤäƤ·¤Þ¤¤¤Þ¤¹¡£

mapping ¤Ï plot ¤Ç¤Ï²¿¤â¤·¤Þ¤»¤ó¡£ world.dem: mapping ¤Î¥Ç¥â¡£

112.49 ¼þ°Ï¤Î;Çò (margin)

margin (¼þ°Ï¤Î;Çò) ¤È¤Ï¡¢ÉÁ²èÎΰè¤Î¶­³¦¤«¤é¥­¥ã¥ó¥Ð¥¹¤Î°ìÈÖ³°Â¦¤Þ¤Ç ¤Î´Ö³Ö¤Î¤³¤È¤Ç¤¹¡£¤³¤Î;Çò¤ÎÂ礭¤µ¤Ï¼«Æ°Åª¤Ë¤È¤é¤ì¤Þ¤¹¤¬¡¢¥³¥Þ¥ó¥É set margin ¤ÇÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£show margin ¤Ï¸½ºß¤ÎÀßÄê¤òɽ ¼¨¤·¤Þ¤¹¡£ÉÁ²èÎΰè¤Î¶­³¦¤«¤éÆ⦤ÎÉÁ²èÍ×ÁǤޤǤδֳ֤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï °Ê²¼»²¾È: set offsets (112.63)¡£

½ñ¼°:


     set lmargin {{at screen} <margin>}
     set rmargin {{at screen} <margin>}
     set tmargin {{at screen} <margin>}
     set bmargin {{at screen} <margin>}
     set margins <left>, <right>, <bottom>, <top>
     show margin

<margin> ¤Î¥Ç¥Õ¥©¥ë¥È¤Îñ°Ì¤Ë¤Ï¡¢Å¬ÀڤȻפï¤ì¤ë¡¢Ê¸»ú¤Î¹â¤µ¤ÈÉý¤¬»È¤ï ¤ì¤Þ¤¹¡£Àµ¤ÎÃͤÏ;Çò¤ÎÀäÂÐŪ¤ÊÂ礭¤µ¤òÄêµÁ¤·¡¢Éé¤ÎÃÍ (¤Þ¤¿¤Ï̵»ØÄê) ¤Ï gnuplot ¤Ë¤è¤Ã¤Æ¼«Æ°·×»»¤µ¤ì¤ëÃͤò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£3 ¼¡¸µÉÁ²è¤Ç¤Ï º¸¤Î;Çò (lmargin) ¤Î¤ß¤¬Ê¸»ú¤ÎÂ礭¤µ¤òñ°Ì¤È¤·¤ÆÀßÄê¤Ç¤­¤Þ¤¹¡£

¥­¡¼¥ï¡¼¥É at screen ¤Ï¡¢¤½¤Î;Çò¤Î»ØÄ꤬Á´ÂΤÎÉÁ²èÎΰè¤ËÂФ¹¤ë³ä¹ç ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢Â¿½ÅÉÁ²è (multiplot) ¥â¡¼¥É¤Ç¤Î 2D, 3D ¥°¥é¥Õ¤Î³Ñ¤òÀµ³Î¤Ë·¤¨¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¤³¤ÎÇÛÃ֤ϸ½ºß¤Î set origin ¤ä ¤ä set size ¤ÎÃͤò̵»ë¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï¿½ÅÉÁ²èÆâ¤Î¥°¥é¥Õ ¤ÎÇÛÃÖ¤ÎÊ̤ÎÊýË¡¤È¤·¤Æ»È¤ï¤ì¤ë¤³¤È¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£

ÉÁ²è¤Î;Çò¤ÏÄ̾ïÌÜÀ¹¤ê¡¢ÌÜÀ¹¤ê¤Î¸«½Ð¤·¡¢¼´¤Î¸«½Ð¤·¡¢ÉÁ²è¤Î¥¿¥¤¥È¥ë¡¢ ÆüÉÕ¡¢¤½¤·¤Æ¶­³¦¤Î³°¤Ë¤¢¤ë¾ì¹ç¤ÎËÞÎã (key) ¤Î¥µ¥¤¥ºÅù¤ò¸µ¤Ë·×»»¤µ¤ì¤Þ ¤¹¡£¤·¤«¤·¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¤¬¶­³¦¤Ç¤Ê¤¯¼´¤ÎÊý¤Ë¤Ä¤¤¤Æ¤¤¤ë¾ì¹ç (Î㤨¤Ð set xtics axis ¤Ë¤è¤Ã¤Æ)¡¢ÌÜÀ¹¤ê¤Î¹ï¤ß¼«¿È¤È¤½¤Î¸«½Ð¤·¤Ï;Çò¤Î·×»»¤Ë ¤Ï´Þ¤Þ¤ì¤Þ¤»¤ó¤·¡¢Í¾Çò¤Ë½ñ¤«¤ì¤ë¾¤Îʸ»úÎó¤Î°ÌÃ֤η׻»¤Ë¤â´Þ¤Þ¤ì¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢¼´¤È¶­³¦¤¬Èó¾ï¤Ë¶á¤¤¾ì¹ç¡¢¼´¤Î¸«½Ð¤·¤¬Â¾¤Îʸ»úÎó¤ò¾å½ñ¤­¤¹¤ë²Ä ǽÀ­¤ò¼¨º¶¤·¤Þ¤¹¡£

112.50 Micro

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¼´¤Î¹ï¤ß¥é¥Ù¥ë¤ÎÀ¸À®¤Ë»ÈÍѤ¹¤ë²Ê³Ø·Ï½ÐÎϤΤ¿¤á¤Î½ñ¼°»Ø Äê»Ò "%c" ¤Ï¡¢¡Ö¥Þ¥¤¥¯¥í¡×(10^-6) ¤ò¼¨¤¹ÀÜƬ¼­¤È¤·¤Æ¾®Ê¸»ú¤Î u ¤ò»È¤¤ ¤Þ¤¹¡£¥³¥Þ¥ó¥É set micro ¤Ï¡¢¤½¤ì¤È¤Ï°Û¤Ê¤ë°õ»úÍÑʸ»ú (unicode U+00B5) ¤ò»ÈÍѤ¹¤ë¤è¤¦ gnuplot ¤Ë»Ø¼¨¤·¤Þ¤¹¡£¤½¤Îʸ»ú¤òɽ¸½¤¹¤ë¤Î¤Ë»È ÍѤµ¤ì¤ë¥Ð¥¤¥ÈÎó¤Ï¡¢¸½ºß¤Î encoding ¤Ë°Í¸¤·¤Þ¤¹¡£°Ê²¼»²¾È: format specifiers (112.31.2), encoding (112.27)¡£

¸½ºß¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ë¤è¤ë¥Ç¥Õ¥©¥ë¥È¤¬Ëþ­¤¤¤«¤Ê¤¤¾ì¹ç¡¢Íߤ·¤¤É½¸½¤ò À¸À®¤¹¤ëʸ»úÎó¤ò¥ª¥×¥·¥ç¥ó¤È¤·¤ÆÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢latex ·Ï ¤Î½ÐÎÏ·Á¼°¤Ç¤ÏÍ­ÍѤǡ¢Î㤨¤Ð°Ê²¼¤Î¤è¤¦¤Ë¤Ç¤­¤Þ¤¹¡£


    set micro "{\textmu}"

112.51 Minussign

gnuplot ¤Ï¤Û¤È¤ó¤É¤Î½ñ¼°ÉÕ¤­ÆþÎÏ¤Ï C ¸À¸ì¤Î¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤Ç¤¢¤ë sprintf() ¤Ç½èÍý¤·¤Þ¤¹¡£¤·¤«¤·¡¢gnuplot ¤Ë¤ÏÆȼ«¤Î½ñ¼°²½¥ë¡¼¥Á¥ó gprintf() ¤â¤¢¤ê¡¢¤½¤ì¤Ï¼´¤Î¹ï¤ßʸ»úÎó¤ÎÀ¸À®¤Ë»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£C ¤Î¥é ¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤Ï¡¢-7 ¤Î¤è¤¦¤ÊÉé¤Î¿ô¤Îɽ¼¨¤Ë¤Ï¾ï¤Ë¥Ï¥¤¥Õ¥óʸ»ú (ASCII \055) ¤ò»ÈÍѤ·¤Þ¤¹¤¬¡¢¤à¤·¤í¤½¤ÎÌÜŪ¤Ç¤Ï¡¢¤½¤ì¤È¤Ï°Û¤Ê¤ë°õ»úÍѤΥޥ¤¥Ê ¥¹Éä¹æʸ»ú (Unicode U+2212) ¤ò»È¤¤ ¡Ý7 ¤Î¤è¤¦¤Ëɽ¼¨¤·¤¿¤¤¤È¿¤¯¤Î¿Í¡¹ ¤Ï»×¤¦¤Ç¤·¤ç¤¦ (ÌõÃí: ¸¶Ê¸¤Ç¤Ï '7' ¤ÎÁ°¤Ï Unicode ¤Î¡Ö¥Þ¥¤¥Ê¥¹µ­¹æ¡×¤¬ »È¤ï¤ì¤Æ¤¤¤ë¤¬¡¢¤³¤³¤Ç¤Ï JIS ¤ÎÁ´³Ñ¥Þ¥¤¥Ê¥¹µ­¹æ 245D ¤òÍѤ¤¤¿)¡£¥³¥Þ¥ó ¥É


    set minussign

¤Ï¡¢gprintf() ¤Î¿ô»ú¤Î½ÐÎϤˡ¢¥Ï¥¤¥Õ¥ó¤ÎÂå¤ï¤ê¤Ë¥Þ¥¤¥Ê¥¹Éä¹æʸ»ú¤ò»ÈÍÑ ¤¹¤ë¤è¤¦»Ø¼¨¤·¤Þ¤¹¡£UTF-8 ¥í¥±¡¼¥ë¤Ç¤Ï¤½¤ì¤Ï Unicode U+2212 ¤ËÂбþ¤¹¤ë ¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»úÎó¤Ë¤Ê¤ê¡¢Window ¥³¡¼¥É¥Ú¡¼¥¸ 1252 ¥í¥±¡¼¥ë¤Ç¤Ï¡¢¤³¤ì ¤Ï 8 ¥Ó¥Ã¥Èʸ»ú¤Î ALT+150 ("en dash") ¤Ë¤Ê¤ê¤Þ¤¹¡£¥³¥Þ¥ó¥É set minussign ¤Ï¡¢¼´¤Î¹ï¤ß¤Î¥é¥Ù¥ë¤È¡¢gprintf ¤òÌÀ¼¨Åª¤Ë¸Æ¤Ó½Ð¤·¤ÆÀ¸ À®¤µ¤ì¤¿Ê¸»úÎó¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î¾ì¹ç¤Î¥Ï¥¤¥Õ¥ó¤ò´Þ¤àʸ»úÎó¤Ë ¤Ï²¿¤é±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£°Ê²¼»²¾È: gprintf (112.31.1)¡£

LaTeX ¤Ï¡¢¤½¤ì¼«¿È¤¬Éé¤ÎÉä¹æ¤ò¼«Á°¤Ç½èÍý¤¹¤ë»ÅÁȤߤò»ý¤Ã¤Æ¤¤¤ë¤¿¤á¡¢¤³ ¤Î¥³¥Þ¥ó¥É¤Ï¡¢LaTeX ·Ï¤Î½ÐÎÏ·Á¼°¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï̵»ë¤µ¤ì¤ë¤³¤È¤ËÃí °Õ¤·¤Æ¤¯¤À¤µ¤¤¡£postscript ½ÐÎÏ·Á¼°¤ò»ÈÍѤ¹¤ë¾ì¹ç¤â¡¢gnuplot ¤Î postscript ÍÑÁ°½èÍý¥ë¡¼¥Á¥ó¤¬ ascii ¤Î¥Ï¥¤¥Õ¥ó¥³¡¼¥É \055 ¤ò minus ¤È¤¤¤¦Ì¾Á°¤Î°Û¤Ê¤ëʸ»ú¤ËÊÑ´¹¤¹¤ë¤Î¤Ç¡¢¤³¤Î¥³¥Þ¥ó¥É¤ÏɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

Îã (utf8 ¥í¥±¡¼¥ë¤ò²¾Äê):


    set minus
    A = -5
    print "A = ",A                 # ¥Ï¥¤¥Õ¥ó¤ò´Þ¤àʸ»úÎó¤ò½ÐÎÏ
    print gprintf("A = %g",A)      # U+2212 ʸ»ú¤ò´Þ¤àʸ»úÎó¤ò½ÐÎÏ
    set label "V = -5"             # ¥Ï¥¤¥Õ¥ó¤ò´Þ¤à¥é¥Ù¥ë
    set label sprintf("V = %g",-5) # ¥Ï¥¤¥Õ¥ó¤ò´Þ¤à¥é¥Ù¥ë
    set label gprintf("V = %g",-5) # U+2212 ¤ò´Þ¤à¥é¥Ù¥ë

112.52 Çò¹õ¥â¡¼¥É (monochrome)

½ñ¼°:


    set monochrome {linetype N <linetype properties>}

¥³¥Þ¥ó¥É set monochrome ¤Ï¡¢Àþ¼ï·²¤ÎÊ̤ÎÀßÄêË¡¤òÁªÂò¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï ¿§¤Î°ã¤¤¤Ç¤Ï¤Ê¤¯¡¢ÅÀÀþ/ÇËÀþ¥Ñ¥¿¡¼¥ó¤äÀþÉý¤Î°ã¤¤¤Ë¤è¤ë¤â¤Î¤Ç¤¹¡£¤³¤Î¥³ ¥Þ¥ó¥É¤Ï¡¢gnuplot ¤Î°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¤¢¤ë½ÐÎÏ·Á¼°¤Ç monochrome ¥ª¥×¥· ¥ç¥ó¤È¤·¤ÆÄ󶡤·¤Æ¤¤¤¿¤â¤Î¤ËÃÖ¤­´¹¤ï¤ë¤â¤Î¤Ç¡¢¸åÊý¸ß´¹À­¤Î¤¿¤á¡¢¤½¤ì¤é ¤Î½ÐÎÏ·Á¼°¤Ç "mono" ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢°ÅÌÛ¤Ç set monochrome ¤ò ¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ Î㤨¤Ð¡¢


    set terminal pdf mono

¤Ï¡¢°Ê²¼¤ÈƱÅù¤Ç¤¹¡£


    set terminal pdf
    set mono

Çò¹õ¥â¡¼¥É (monochrome) ¤ÎÁªÂò¤Ï¡¢ÌÀ¼¨Åª¤Ê RGB ¿§¡¢¥Ñ¥ì¥Ã¥È¿§¤ò»ÈÍѤ· ¤Æ¤Î¥«¥é¡¼¤ÎÀþ¤ÎÉÁ²è¤ò˸¤²¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢°Ê²¼¤â»²¾È: set palette gray (112.67.4)¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 6 ¤Ä¤ÎÇò¹õÀþ¼ï¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¤½¤ì¤é¤Î°À­¤òÊѹ¹ ¤·¤¿¤ê¡¢Çò¹õÀþ¼ï¤òÄɲ乤뤳¤È¤Ï¡¢¥Õ¥ë·Á¼°¤Ç¤½¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤³¤È ¤Ç¤Ç¤­¤Þ¤¹¡£Çò¹õÀþ¼ï¤Ë¤Û¤É¤³¤µ¤ì¤¿Êѹ¹¤Ï¡¢¥«¥é¡¼¤ÎÀþ¼ï¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ ¤»¤ó¤·¡¢¤½¤ÎµÕ¤âƱÍͤǤ¹¡£¥«¥é¡¼Àþ¼ï¤ËÉüµ¢¤¹¤ë¤Ë¤Ï¡¢unset monochrome ¤«¡¢set color ¤È¤·¤Æ¤¯¤À¤µ¤¤¡£

112.53 ¥Þ¥¦¥¹ (mouse)

¥³¥Þ¥ó¥É set mouse ¤Ï¡¢¸½ºß¤ÎÂÐÏ÷¿½ÐÎÏ·Á¼°¤ËÂФ·¤Æ¥Þ¥¦¥¹µ¡Ç½¤òÍ­¸ú ¤Ë¤·¤Þ¤¹¡£¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£

¥Þ¥¦¥¹¥â¡¼¥É¤Ï 2 ¼ïÎàÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£2 ¼¡¸µ¥â¡¼¥É¤Ï¡¢plot ¥³¥Þ¥ó¥É ¤È splot ¤Î 2 ¼¡¸µ¼Í±Æ (¤¹¤Ê¤ï¤Á¡¢z ¤Î²óž³Ñ¤¬ 0, 90, 180, 270, 360 Å٤Πset view¡¢¤ª¤è¤Ó set view map) ¤ÇÆ°ºî¤·¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢ ¥Þ¥¦¥¹°ÌÃÖ¤¬ÄÉÀפµ¤ì¡¢¥Þ¥¦¥¹¥Ü¥¿¥ó¤äÌð°õ¥­¡¼¤ò»È¤Ã¤Æ³ÈÂ礷¤¿¤ê»ëÅÀ°ÜÆ° ¤·¤¿¤ê¤Ç¤­¤Þ¤¹¡£¥°¥é¥Õ¤ËÂбþ¤¹¤ëËÞÎã¤Î¥¿¥¤¥È¥ë¤äÊ̤ʥ¦¥£¥¸¥§¥Ã¥È¥¢¥¤¥³ ¥ó¤Ê¤É¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¡¢¸Ä¡¹¤Î¥°¥é¥Õ¤ÎÉÁ²è¤ò¥ª¥ó/¥ª¥Õ¤ËÀÚ¤êÂؤ¨¤ë ¤³¤È¤ò¥µ¥Ý¡¼¥È¤¹¤ë½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ¤¹¡£

splot ¤Ë¤è¤ë 3 ¼¡¸µ¥°¥é¥Õ¤ËÂФ·¤Æ¤Ï¡¢¥°¥é¥Õ¤Î»ëÊý¸þ (view) ¤È½Ì¼Ü¤Î Êѹ¹¤¬¡¢¤½¤ì¤¾¤ì¥Þ¥¦¥¹¥Ü¥¿¥ó 1 ¤È 2 (¤Ë¤è¤ë¥É¥é¥Ã¥°) ¤Ç¹Ô¤¨¤Þ¤¹¡£¥Ü¥¿ ¥ó 2 ¤Î¿âľÊý¸þ¤Î¥É¥é¥Ã¥°¤ò shift ¥­¡¼¤ÈƱ»þ¤Ë¹Ô¤¦¤È¡¢z ¼´¤Î°ìÈÖ²¼¤Î°Ì ÃÖ (xyplane) ¤ò¾å²¼¤·¤Þ¤¹¡£¤³¤ì¤é¤Î¥Ü¥¿¥ó¤Ë¤µ¤é¤Ë <ctrl> ¥­¡¼¤ò²¡¤¹ ¤È¡¢ºÂɸ¼´¤Ïɽ¼¨¤µ¤ì¤Þ¤¹¤¬¡¢¥Ç¡¼¥¿¤Îɽ¼¨¤Ï¾Ã¤¨¤Þ¤¹¡£¤³¤ì¤ÏÂ礭¤Ê¥Ç¡¼¥¿ ¤ËÂФ·¤ÆÍ­ÍѤǤ·¤ç¤¦¡£¥Þ¥¦¥¹¥Ü¥¿¥ó 3 ¤Ï¡¢z ¼´¤Î¸þ¤­ (azimuth) ¤òÀ©¸æ¤· ¤Þ¤¹ (°Ê²¼»²¾È: set view azimuth (112.104.1))¡£

½ñ¼°:


     set mouse {doubleclick <ms>} {nodoubleclick}
               {{no}zoomcoordinates}
               {zoomfactors <xmultiplier>, <ymultiplier>}
               {noruler | ruler {at x,y}}
               {polardistance{deg|tan} | nopolardistance}
               {format <string>}
               {mouseformat <int> | <string> | function <f(x,y)>}
               {{no}labels {"labeloptions"}}
               {{no}zoomjump} {{no}verbose}
     unset mouse

¥ª¥×¥·¥ç¥ó noruler ¤È ruler ¤Ï¡¢Ä구 (ruler) µ¡Ç½¤ò off, on ¤Ë¤·¤Þ ¤¹¡£ruler ¤Ë¤ÏºÂɸ¤òÍ¿¤¨¤Æ¸¶ÅÀ¤òÀßÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ruler ¤¬ on ¤Î´Ö¡¢ruler ¤Î¸¶ÅÀ¤«¤é¥Þ¥¦¥¹¤Þ¤Ç¤Î¥æ¡¼¥¶Ã±°Ì¤Ç¤Îµ÷Î¥¤¬Ï¢Â³Åª¤Ëɽ¼¨ ¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ruler ¤Î¥È¥°¥ë¥¹¥¤¥Ã¥Á¤Ï 'r' ¤Ë¥­¡¼³ä¤êÅö¤Æ ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó polardistance ¤Ï¡¢¥Þ¥¦¥¹¥«¡¼¥½¥ë¤«¤éÄ구 (ruler) ¤Þ¤Ç¤Îµ÷ Î¥¤ò¶ËºÂɸ¤Ç¤âɽ¼¨ (µ÷Î¥¡¢¤ª¤è¤Ó³ÑÅÙ¤Þ¤¿¤Ï·¹¤­) ¤¹¤ë¤«¤É¤¦¤«¤ò·èÄꤷ¤Þ ¤¹¡£¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥­¡¼³ä¤êÅö¤Æ '5' ¤ËÂбþ¤·¤Þ¤¹¡£

¥Ü¥¿¥ó 2 ¤Î gnuplot ¤Î±Ê³Ū¤Ê¥é¥Ù¥ë¤òÄêµÁ¤¹¤ë¤Ë¤Ï¡¢¥ª¥×¥·¥ç¥ó labels ¤ò»ÈÍѤ·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï nolabels ¤Ç¡¢¥Ü¥¿¥ó 2 ¤Ïñ¤Ë°ì»þ Ū¤Ê¥é¥Ù¥ë¤ò¥Þ¥¦¥¹°ÌÃÖ¤ËÉÁ²è¤·¤Þ¤¹¡£¥é¥Ù¥ë¤Ï¸½ºß¤Î mouseformat ¤ÎÀß Äê¤Ë½¾¤Ã¤Æ½ñ¤«¤ì¤Þ¤¹¡£labeloptions ʸ»úÎó¤Ï¡¢¥³¥Þ¥ó¥É set label ¥³ ¥Þ¥ó¥É¤ËÅϤµ¤ì¤Þ¤¹¡£¤½¤Î¥Ç¥Õ¥©¥ë¥È¤Ï "point pointtype 1" ¤Ç¡¢¤³¤ì¤Ï¥é ¥Ù¥ë°ÌÃ֤˾®¤µ¤¤¥×¥é¥¹ (+) ¤òÉÁ²è¤·¤Þ¤¹¡£°ì»þŪ¤Ê¥é¥Ù¥ë¤Ï¡¢¤½¤Î¼¡¤Î replot¡¢¤Þ¤¿¤Ï¥Þ¥¦¥¹¥º¡¼¥àÁàºî¤Ç¤Ï¸½¤ì¤Þ¤»¤ó¡£±Ê³Ū¤Ê¥é¥Ù¥ë¤Ï¡¢¥é¥Ù ¥ë¤ÎÅÀ¤Î¾å¤Ç Ctrl ¥­¡¼¤ò²¡¤·¤Æ¥Ü¥¿¥ó 2 ¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤³¤È¤Ç¾Ã¤¹¤³¤È¤¬ ¤Ç¤­¤Þ¤¹¡£¼ÂºÝ¤Î¥é¥Ù¥ë¤Î°ÌÃ֤ˤɤì°Ì¶á¤¯¤Ç¥¯¥ê¥Ã¥¯¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤« ¤ÎïçÃͤâ pointsize ¤Ç·èÄꤵ¤ì¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó verbose ¤¬ ON ¤Î¾ì¹ç¡¢¼Â¹Ô»þ¤ÎÊó¹ð¥³¥Þ¥ó¥É¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 6 ¤òÂǤĤ³¤È¤Ç ON/OFF ¤¬¥¹¥¤ ¥Ã¥Á¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï verbose ¤Ï OFF ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¥É¥é¥¤¥Ð¥¦¥£¥ó¥É¥¦¾å¤Ç 'h' ¤òÂǤĤȡ¢¥Þ¥¦¥¹¤È¥­¡¼³ä¤êÅö¤Æ¤ÎÀâÌÀ¤òɽ¼¨ ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î¥­¡¼³ä¤êÅö¤Æ¡¢¤¹¤Ê¤ï¤Á bind ¥³¥Þ¥ó¥É¤Ë¤è ¤ë hotkeys ¤âɽ¼¨¤·¤Þ¤¹¡£¥æ¡¼¥¶ÄêµÁ¤Î¥­¡¼³ä¤êÅö¤Æ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥­¡¼ ³ä¤êÅö¤Æ¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼¤â»²¾È: bind (22.1)¡£

112.53.1 Doubleclick

¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤Î²òÁüÅ٤ϥߥêÉà (ms) ñ°Ì¤ÇÍ¿¤¨¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥Ü¥¿¥ó 1 ÍѤΤâ¤Î¤Ç¡¢¸½ºß¤Î¥Þ¥¦¥¹°ÌÃÖ¤ò¥¯¥ê¥Ã¥×¥Ü¡¼¥É (clipboard) ¤Ë¥³¥Ô¡¼¤¹ ¤ë¤Î¤Ë»È¤¦½ÐÎÏ·Á¼°¤¬¤¢¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 300 ms ¤Ç¤¹¡£¤³¤ì¤ò 0 ms ¤ËÀßÄꤹ¤ë¤È¥·¥ó¥°¥ë¥¯¥ê¥Ã¥¯¤Ç¤½¤Î¥³¥Ô¡¼¤ò¹Ô¤¦¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

112.53.2 Format

¥³¥Þ¥ó¥É set mouse format ¤Ï¡¢sprintf() ¤ËÂФ¹¤ë½ñ¼°Ê¸»úÎó¤Î»ØÄê¤Ç¡¢ ¥Þ¥¦¥¹¥«¡¼¥½¥ë¤Î [x,y] ºÂɸ¤òÉÁ²è¥¦¥£¥ó¥É¥¦¤È¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤Ë¤É¤Î¤è¤¦ ¤Ëɽ¼¨¤¹¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï "% #g" ¤Ç¤¹¡£

¤³¤ÎÀßÄê¤Ï¡¢"set mouse mouseformat" ¤òÃÖ¤­´¹¤¨¤ë¤â¤Î¤Ç¤¹¡£

112.53.3 Mouseformat

½ñ¼°:


    set mouse mouseformat i
    set mouse mouseformat "custom format"
    set mouse mouseformat function string_valued_function(x, y)

¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥Þ¥¦¥¹°ÌÃÖ¤òÊó¹ð¤¹¤ë¤Î¤Ë»ÈÍѤ¹¤ë½ñ¼°¤òÀ©¸æ¤·¤Þ¤¹¡£ À°¿ô¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢²¼¤Îɽ¤Î½ñ¼°¥ª¥×¥·¥ç¥ó¤Î°ì¤Ä¤òÁªÂò¤Ç¤­¤Þ¤¹¡£ ʸ»úÎó¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤ò½ñ¼°¥ª¥×¥·¥ç¥ó 7 ¤Î sprintf() ¤ËÂФ¹¤ë½ñ¼°¤È ¤·¤Æ»ÈÍѤ·¤Þ¤¹¤¬¡¢x, y ¤ËÂбþ¤¹¤ë 2 ¤Ä¤Î¼Â¿ô»ØÄê»Ò¤ò»ý¤ÄɬÍפ¬¤¢¤ê¤Þ¤¹¡£

ºÇ¸å¤Îʸ»úÎó¤òÊÖ¤¹¥«¥¹¥¿¥à´Ø¿ô¤Î»ØÄê¤Ï¡Ö»î¸³Ãʳ¬¡×¤Ç¤¹¡£¤½¤ì¤Ï¡¢¥¹¥¯¥ê ¡¼¥óºÂɸ¤«¤é¥°¥é¥ÕºÂɸ¤Ø¤ÎµÕ¤ÎÂбþ¤¬ x, y ¤ÎξÊý¤òÁȤǹÍθ¤¹¤ëɬÍפ¬¤¢ ¤ë¤è¤¦¤ÊºÂɸ·Ï¤ÎÆɤ߽Ф·¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£Îã¤Ë¤Ä¤¤¤Æ¤Ï¡¢map_projection ¥Ç¥â¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

Îã:


    set mouse mouseformat "mouse x,y = %5.2g, %10.3f"

¤³¤Îʸ»úÎó¤ò¤Þ¤¿¥ª¥Õ¤Ë¤¹¤ë¤Ë¤Ï¡¢set mouse mouseformat "" ¤È¤·¤Þ¤¹¡£

°Ê²¼¤Î½ñ¼°¤¬ÍøÍѲÄǽ¤Ç¤¹:


0   ¥Ç¥Õ¥©¥ë¥È (1 ¤ÈƱ¤¸)
1   ¼´¤ÎºÂɸ                            1.23, 2.45
2   ¥°¥é¥ÕºÂɸ (0 ¤«¤é 1 ¤Þ¤Ç)         /0.00, 1.00/
3   x = timefmt     y = ¼´ºÂɸ         [(`set timefmt` ¤ÎÀßÄê), 2.45]
4   x = ÆüÉÕ        y = ¼´ºÂɸ         [31. 12. 1999, 2.45]
5   x = »þ¹ï        y = ¼´ºÂɸ         [23:59, 2.45]
6   x = ÆüÉÕ/»þ¹ï   y = ¼´ºÂɸ         [31. 12. 1999 23:59, 2.45]
7   `set mouse mouseformat <format-string>` ¤Ë¤è¤ë½ñ¼°
8   `set mouse mouseformat function <func>` ¤Ë¤è¤ë½ñ¼°

112.53.4 ¥Þ¥¦¥¹¥¹¥¯¥í¡¼¥ë (scrolling)

¥Þ¥¦¥¹¥Û¥¤¡¼¥ë¤Ï¡¢2 ¼¡¸µ¡¢3 ¼¡¸µ¤ÎξÊý¤Î¥°¥é¥Õ¤Ç¡¢x ¼´¡¢y ¼´¤ÎÈϰϤòÄ´ Àᤷ¤Þ¤¹¡£¤³¤ÎÄ´Àá¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¸½ºß¤ÎÈϰϤΠ10% ¤ÎÁý²Ã¤Ç¤¹¤¬¡¢¤³ ¤ì¤Ï¡¢set mouse zoomfactor <x-multiplier>,<y-multiplier> ¤ÇÊѹ¹¤Ç¤­ ¤Þ¤¹¡£

112.53.5 Zoom

¸½ºß¤Î¥Þ¥¦¥¹°ÌÃÖÃæ¿´¤Î¥º¡¼¥à¥¤¥ó/¥º¡¼¥à¥¢¥¦¥È¤ÎÈæΨ¤Ï¡¢¥Þ¥¦¥¹¥Û¥¤¡¼¥ë ¤ÇÀ©¸æ¤·¤Þ¤¹ (°Ê²¼»²¾È: scrolling (112.53.4))¡£

2 ¼¡¸µ¥°¥é¥Õ¤ÎÁªÂò¤·¤¿Îΰè¤ò¹­¤²¤ë¤Ë¤Ï¡¢¥Þ¥¦¥¹¤Î¥É¥é¥Ã¥°¤Ç³ÈÂçÈϰϤÎÀþ °ú¤­¤ò¹Ô¤¤¡¢¤½¤·¤Æº¸¥Þ¥¦¥¹¥Ü¥¿¥ó¤ò²¡¤¹¤³¤È¤Ç¹Ô¤¤¤Þ¤¹¡£¥°¥é¥Õ¥¦¥£¥ó¥É¥¦ ¾å¤Ç¥Û¥Ã¥È¥­¡¼ 'u' ¤ò¥¿¥¤¥×¤¹¤ë¤³¤È¤Ç¸µ¤Î¥°¥é¥Õ¤ËÉü¸µ¤Ç¤­¤Þ¤¹¡£¥Û¥Ã¥È ¥­¡¼ 'p' ¤È 'n' ¤Ï¡¢³ÈÂçÁàºî¤ÎÍúÎò¤ò¸åÊý¤ÈÁ°Êý¤Ë¤¿¤É¤ê¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó zoomcoordinates ¤Ï¡¢³ÈÂç¤ÎºÝ¤Ë¡¢³ÈÂç¤ÎÏȤÎü¤Ë¤½¤ÎºÂɸ¤ò ½ñ¤¯¤«¤É¤¦¤«¤ò·èÄꤷ¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï ON ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó zoomjump ¤¬ ON ¤Î¾ì¹ç¡¢¥Ü¥¿¥ó 3 ¤Ë¤è¤ë³ÈÂçÈϰϤÎÁªÂò¤ò³« »Ï¤¹¤ë¤È¡¢¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤Ï¼«Æ°Åª¤Ë¾¯¤·¤À¤±¤º¤ì¤¿°ÌÃ֤˰ÜÆ°¤·¤Þ¤¹¡£¤³¤ì ¤Ï¡¢¤´¤¯¾®¤µ¤¤ (¤Þ¤¿¤Ï¶õ¤Ç¤µ¤¨¤¢¤ë) ³ÈÂçÈϰϤòÁªÂò¤·¤Æ¤·¤Þ¤¦¤³¤È¤òÈò¤± ¤ë¤Î¤ËÊØÍø¤Ç¤·¤ç¤¦¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï zoomjump ¤Ï OFF ¤Ç¤¹¡£

112.54 Mttics

¶ËºÂɸ¥°¥é¥Õ¤Î¼þ°Ï¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set mttics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£°Ê ²¼»²¾È: set mxtics (112.57)¡£

112.55 ¿½ÅÉÁ²è¥â¡¼¥É (multiplot)

¥³¥Þ¥ó¥É set multiplot ¤Ï gnuplot ¤ò¿½ÅÉÁ²è¥â¡¼¥É¤Ë¤·¤Þ¤¹¡£¤³¤ì ¤Ï¡¢Ê£¿ô¤Î¥°¥é¥Õ¤òƱ¤¸¥Ú¡¼¥¸¤äƱ¤¸¥¹¥¯¥ê¡¼¥ó¥¦¥£¥ó¥É¥¦¤ËÎÙ¤êƱ»Î¤ËÊ ¤Ù¤Æɽ¼¨¤·¤Þ¤¹¡£

½ñ¼°:


     set multiplot
         { title <page title> {font <fontspec>} {enhanced|noenhanced} }
         { layout <rows>,<cols>
           {rowsfirst|columnsfirst} {downwards|upwards}
           {scale <xscale>{,<yscale>}} {offset <xoff>{,<yoff>}}
           {margins <left>,<right>,<bottom>,<top>}
           {spacing <xspacing>{,<yspacing>}}
         }
     set multiplot {next|previous}
     unset multiplot

½ÐÎÏ·Á¼° (terminal) ¤Ë¤è¤Ã¤Æ¤Ï¡¢¥³¥Þ¥ó¥É unset multiplot ¤¬Í¿¤¨¤é¤ì ¤ë¤Þ¤Ç²¿¤ÎÉÁ²è¤âɽ¼¨¤µ¤ì¤Ê¤¤¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¤³¤Î¥³¥Þ¥ó¥É¤Ë¤è¤ê ¥Ú¡¼¥¸Á´ÂΤÎÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¡¢gnuplot ¤Ïɸ½à¤Îñ°ìÉÁ²è¥â¡¼¥É¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤½¤ì°Ê³°¤Î½ÐÎÏ·Á¼°¤Ç¤Ï¡¢³Æ plot ¥³¥Þ¥ó¥É¤¬¤½¤ì¤¾¤ìɽ¼¨¤ò¹¹¿·¤·¤Þ¤¹¡£

¥³¥Þ¥ó¥É clear ¤Ï¡¢¼¡¤ÎÉÁ²è¤Ë»È¤¦Ä¹Êý·ÁÎΰè¤ò¾Ã¤¹¤Î¤Ë»È¤¨¤Þ¤¹¡£Åµ·¿ Ū¤Ë¤Ï¡¢Â礭¤¤¥°¥é¥Õ¤ÎÆâÉô¤Ë¾®¤µ¤Ê¥°¥é¥Õ¤òÁÞÆþ¤¹¤ë¤è¤¦¤Ê¾ì¹ç¤ËɬÍפǤ¹¡£

ÄêµÁºÑ¤Î¸«½Ð¤·¤ä¥Ù¥¯¥È¥ë¤Ï¡¢³ÆÉÁ²è¤Ë¤ª¤¤¤Æ¡¢Ëè²ó¸½ºß¤Î¥µ¥¤¥º¤È¸¶ÅÀ¤Ë½¾ ¤Ã¤Æ½ñ¤«¤ì¤Þ¤¹ (¤½¤ì¤é¤¬ screen ºÂɽ·Ï¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç)¡£¤½¤ì °Ê³°¤ÎÁ´¤Æ¤Î set ¤ÇÄêµÁ¤µ¤ì¤ë¤â¤Î¤â³ÆÉÁ²è¤¹¤Ù¤Æ¤ËŬÍѤµ¤ì¤Þ¤¹¡£¤â¤· 1 ÅÙ¤ÎÉÁ²è¤Ë¤À¤±¸½¤ï¤ì¤ÆÍߤ·¤¤¤â¤Î¤òºî¤ê¤¿¤¤¤Ê¤é¡¢¤½¤ì¤¬Î㤨¤ÐÆüÉÕ (timestamp) ¤À¤È¤·¤¿¤é¡¢set multiplot ¤È unset multiplot ¤Ç°Ï¤Þ¤ì ¤¿¥Ö¥í¥Ã¥¯Æâ¤Î plot (¤Þ¤¿¤Ï splot, replot) Ì¿Îá¤Î°ì¤Ä¤ò set time ¤È unset time ¤Ç¤Ï¤µ¤ó¤Ç¤¯¤À¤µ¤¤¡£

multiplot ¤Î¥¿¥¤¥È¥ë¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è¥¿¥¤¥È¥ë¤¬¤¢¤Ã¤¿¤È¤·¤Æ¤â¡¢¤½¤ì¤È¤ÏÊÌ ¤Î¤â¤Î¤Ç¡¢¥Ú¡¼¥¸¤Î¾åÉô¤Ë¤½¤Î¤¿¤á¤Î¥­¥ã¥ó¥Ð¥¹Á´ÂΤÎÉý¤Ë¤ï¤¿¤ë¥¹¥Ú¡¼¥¹¤¬ ³ÎÊݤµ¤ì¤Þ¤¹¡£

layout ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¤è¤êÎɤ¤°ÌÃÖ·è¤á¤ò¤·¤¿¤¤¾ì¹ç¤Ï¡¢ ¥³¥Þ¥ó¥É set origin ¤È set size ³ÆÉÁ²è¤ÇÀµ¤·¤¤°ÌÃÖ¤ËÀßÄꤹ¤ëɬÍפ¬ ¤¢¤ê¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set origin (112.64), set size (112.84)¡£

Îã:


     set multiplot
     set size 0.4,0.4
     set origin 0.1,0.1
     plot sin(x)
     set size 0.2,0.2
     set origin 0.5,0.5
     plot cos(x)
     unset multiplot

¤³¤ì¤Ï¡¢cos(x) ¤Î¥°¥é¥Õ¤ò¡¢sin(x) ¤Î¾å¤ËÀѤ߽ŤͤÆɽ¼¨¤·¤Þ¤¹¡£

set size ¤È set origin ¤ÏÁ´ÂΤÎÉÁ²èÎΰè¤ò»²¾È¤·¡¢¤½¤ì¤Ï³ÆÉÁ²è¤ÇÍø ÍѤµ¤ì¤Þ¤¹¡£°Ê²¼¤â»²¾È: set term size (8)¡£ÉÁ²è¶­³¦¤ò°ìÎó¤Ë·¤¨¤¿¤¤¤Ê¤é ¤Ð¡¢set margin ¥³¥Þ¥ó¥É¤Ç¡¢¶­³¦¤Î³°¤Î;Çò¥µ¥¤¥º¤òƱ¤¸¥µ¥¤¥º¤Ë·¤¨¤ë ¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¤½¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢°Ê²¼»²¾È: set margin (112.49)¡£Í¾Çò¥µ¥¤¥º ¤Ïʸ»ú¥µ¥¤¥ºÃ±°Ì¤ÎÀäÂÐŪ¤Ê¿ôÃÍñ°Ì¤ò»ÈÍѤ¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤è ¤Ã¤Æ»Ä¤Ã¤¿¥¹¥Ú¡¼¥¹¤ËÉÁ¤«¤ì¤ë¥°¥é¥Õ¤Ïɽ¼¨¤¹¤ë¥Ç¥Ð¥¤¥¹¤Îɽ¼¨¥µ¥¤¥º¤Ë°Í¸ ¤·¤Þ¤¹¡£Î㤨¤Ð¡¢¥×¥ê¥ó¥¿¤È¥Ç¥£¥¹¥×¥ì¥¤¤Îɽ¼¨¤Ï¿ʬ°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤· ¤ç¤¦¡£

¥ª¥×¥·¥ç¥ó layout ¤Ë¤è¤ê¡¢³ÆÉÁ²è¤ÎÁ°¤Ë¤½¤ì¤¾¤ìÍ¿¤¨¤Æ¤¤¤¿ set size ¤ä set origin ¥³¥Þ¥ó¥É¤Ê¤·¤Ë¡¢Ã±½ã¤ÊÊ£¿ô¥°¥é¥Õ¤ÎÉÁ²è¤òºîÀ®¤Ç¤­¤Þ¤¹¡£ ¤½¤ì¤é¤ÎÀßÄê¤Ï¼«Æ°Åª¤Ë¹Ô¤Ê¤ï¤ì¡¢¤¤¤Ä¤Ç¤â¤½¤ÎÀßÄê¤òÊѹ¹¤Ç¤­¤Þ¤¹¡£ layout ¤Ç¤Ïɽ¼¨¤Ï <rows> ¹Ô¤È <cols> Îó¤Î³Ê»Ò¤Ëʬ³ä¤µ¤ì¡¢³Æ³Ê»Ò¤Ï¡¢ ¤½¤Î¸å¤Ë³¤¯Âбþ¤¹¤ë̾Á°¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¹Ô (rowsfirst)¡¢¤¢¤ë¤¤¤ÏÎó (columnsfirst) ¤¬Àè¤ËËä¤á¤é¤ì¤Æ¹Ô¤­¤Þ¤¹¡£ÉÁ²è¥°¥é¥Õ¤ÎÀѤ߾夲¤Ï²¼Êý¸þ (downwards) ¤Ë¡¢¤Þ¤¿¤Ï¾åÊý¸þ (upwards) ¤Ë¿­¤Ó¤ë¤è¤¦¤Ë¤Ç¤­¤Þ¤¹¡£¥Ç ¥Õ¥©¥ë¥È¤Ï rowsfirst ¤Ç downwards ¤Ç¤¹¡£ ¥³¥Þ¥ó¥É set multiplot next ¤È set multiplot previous ¤Ï¡¢¥ì¥¤¥¢¥¦ ¥È¥ª¥×¥·¥ç¥ó¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Î¤ß¤Ë´Ø·¸¤·¤Þ¤¹¡£next ¤Ï¡¢³Ê»ÒÆâ¤Î¼¡ ¤Î°ÌÃÖ¤ò¥¹¥­¥Ã¥×¤·¡¢¶õÇò¤ò»Ä¤·¤Þ¤¹¡£prev ¤Ï¡¢Ä¾Á°¤ËÉÁ²è¤·¤¿°ÌÃ֤ξ Á°¤Î³Ê»Ò°ÌÃÖ¤ËÌá¤ê¤Þ¤¹¡£

³ÆÉÁ²è¤Ï scale ¤Ç¿­½Ì¤ò¡¢offset ¤Ç°ÌÃÖ¤ÎÊ¿¹Ô°ÜÆ°¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­ ¤Þ¤¹¡£scale ¤ä offset ¤Î y ¤ÎÃͤ¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï¡¢x ¤ÎÃͤ¬¤½¤ì¤Ë»ÈÍÑ ¤µ¤ì¤Þ¤¹¡£unset multiplot ¤Ë¤è¤ê¼«Æ°ÇÛÃÖµ¡Ç½¤Ï¥ª¥Õ¤Ë¤Ê¤ê¡¢¤½¤·¤Æ set size ¤È set origin ¤ÎÃÍ¤Ï set multiplot layout ¤ÎÁ°¤Î¾õÂÖ¤Ë Éüµ¢¤µ¤ì¤Þ¤¹¡£

Îã:


     set size 1,1
     set origin 0,0
     set multiplot layout 3,2 columnsfirst scale 1.1,0.9
     [ ¤³¤³¤Ë¤Ï 6 ¤Ä¤Þ¤Ç¤ÎÉÁ²è¥³¥Þ¥ó¥É ]
     unset multiplot

¾å¤ÎÎã¤Ç¤Ï 6 ¤Ä¤ÎÉÁ²è¤¬ 2 Îó¤ÎÃæ¤Ë¾å¤«¤é²¼¤Ø¡¢º¸¤«¤é±¦¤Ø¤ÈËä¤á¤é¤ì¤Æ¹Ô ¤­¤Þ¤¹¡£³ÆÉÁ²è¤Ï¿åÊ¿¥µ¥¤¥º¤¬ 1.1/2¡¢¿âľ¥µ¥¤¥º¤¬ 0.9/3 ¤È¤Ê¤ê¤Þ¤¹¡£

¾¤Ë¤â¡¢¤½¤Î¥ì¥¤¥¢¥¦¥ÈÆâ¤Î¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤Ë°ìÍͤʥޡ¼¥¸¥ó¤ò¥ª¥×¥·¥ç¥ó layout margins ¤È spacing ¤ÇÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¤³¤ì¤Ï°ì½ï¤Ë »È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£margins ¤Ï¡¢³Ê»ÒÇÛÃÖ¤ÎÊ£¿ô¥°¥é¥ÕÁ´ÂΤγ°Â¦¤ËÂФ¹ ¤ë¥Þ¡¼¥¸¥ó¤òÀßÄꤷ¤Þ¤¹¡£

spacing ¤Ï¡¢ÎÙÀܤ¹¤ëÉôʬ¥°¥é¥Õ´Ö¤Î·ä´Ö¤òÍ¿¤¨¤Þ¤¹¤¬¡¢character ¤« screen ñ°Ì¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£Ã±°ì¤ÎÃͤò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤Ï x, y ¤ÎξÊý¤ÎÊý¸þ¤Ë»ÈÍѤµ¤ì¤Þ¤¹¤¬¡¢2 ¤Ä¤Î°Û¤Ê¤ëÃͤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

°ì¤Ä¤ÎÃͤËñ°Ì¤¬¤Ê¤±¤ì¤Ð¡¢Ä¾Á°¤Î¥Þ¡¼¥¸¥óÀßÄê¤Î¤â¤Î¤ò»ÈÍѤ·¤Þ¤¹¡£

Îã:


     set multiplot layout 2,2 margins 0.1, 0.9, 0.1, 0.9 spacing 0.0

¤³¤Î¾ì¹ç¡¢º¸¤Ë¤¢¤ë¥°¥é¥Õ¤Îº¸¤Î¶­³¦¤Ï¡¢¥¹¥¯¥ê¡¼¥óºÂɸ¤Î 0.1 ¤ËÃÖ¤«¤ì¡¢ ±¦¤Ë¤¢¤ë¥°¥é¥Õ¤Î±¦¤Î¶­³¦¤Ï¥¹¥¯¥ê¡¼¥óºÂɸ 0.9 ¤Î¾ì½ê¤ËÃÖ¤«¤ì¤ë¡¢Åù¤È¤Ê ¤ê¤Þ¤¹¡£³Æ¥°¥é¥Õ¤Î·ä´Ö¤Ï 0 ¤Ë»ØÄꤷ¤Æ¤¤¤ë¤Î¤Ç¡¢Æ⦤ζ­³¦Àþ¤Ï½Å¤Ê¤ê¤Þ ¤¹¡£

Îã:


     set multiplot layout 2,2 margins char 5,1,1,2 spacing screen 0, char 2

¤³¤ì¤Ï¡¢º¸¤Î¥°¥é¥Õ¤Î¶­³¦¤Ï¡¢¥­¥ã¥ó¥Ð¥¹¤Îº¸Ã¼¤«¤é 5 ʸ»úÉý¤Î¾ì½ê¤Ë¡¢±¦ ¤Î¥°¥é¥Õ¤Î±¦¤Î¶­³¦¤Ï¡¢¥­¥ã¥ó¥Ð¥¹¤Îü¤«¤é 1 ʸ»úÉý¤Î¾ì½ê¤Ë¤¢¤ë¤è¤¦¤Ê¥ì ¥¤¥¢¥¦¥È¤òÀ¸À®¤·¤Þ¤¹¡£²¼¤Î¥Þ¡¼¥¸¥ó¤Ï 1 ʸ»úʬ¤Î¹â¤µ¡¢¾å¤Î¥Þ¡¼¥¸¥ó¤Ï 2 ʸ»úʬ¤Î¹â¤µ¤Ë¤Ê¤ê¤Þ¤¹¡£¥°¥é¥Õ´Ö¤Î¿åÊ¿Êý¸þ¤Î·ä´Ö¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢½ÄÊý¸þ ¤Ë¤Ï 2 ʸ»úʬ¤Î¹â¤µ¤ËÅù¤·¤¤·ä´Ö¤¬¤¢¤ê¤Þ¤¹¡£

Îã:


     set multiplot layout 2,2 columnsfirst margins 0.1,0.9,0.1,0.9 spacing 0.1
     set ylabel 'ylabel'
     plot sin(x)
     set xlabel 'xlabel'
     plot cos(x)
     unset ylabel
     unset xlabel
     plot sin(2*x)
     set xlabel 'xlabel'
     plot cos(2*x)
     unset multiplot

°Ê²¼»²¾È: remultiplot (106), new multiplots (4.9)¡£¤Þ¤¿°Ê²¼¤â»²¾È multiplot ¤Î¥Ç¥â (multiplt.dem)

112.56 Mx2tics

x2 (¾å) ¼´¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set mx2tics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics (112.57)¡£

112.57 ¾®ÌÜÀ¹¤ê¹ï¤ß (mxtics)

x ¼´¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set mxtics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£unset mxtics ¤Ë¤è¤Ã¤Æ¤½¤ì¤òɽ¼¨¤µ¤»¤Ê¤¯¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£Æ±ÍͤÎÀ©¸æ¥³¥Þ¥ó¥É¤¬³Æ¼´ Ëè¤ËÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

½ñ¼°:


     set mxtics <freq>
     set mxtics default
     set mxtics time <N> <units>
     unset mxtics
     show mxtics

¤³¤ì¤é¤Î½ñ¼°¤Ï mytics, mztics, mx2tics, my2tics, mrtics, mttics, mcbtics ¤ËÂФ·¤Æ¤âƱ¤¸¤Ç¤¹¡£

<freq> ¤Ï¡¢ÂçÌÜÀ¹¤ê´Ö¤Î¡¢¾®ÌÜÀ¹¤ê¤Ë¤è¤Ã¤Æʬ³ä¤µ¤ì¤ë¶è´Ö¤Î¿ô¤Ç¤¢¤ê¡¢¾® ÌÜÀ¹¤ê¤Î¿ô¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Ä̾ï¤ÎÀþ·Á¼´¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢2 (ÌÜ À¹¤ê 1 ¤Ä) ¤« 5 (ÌÜÀ¹¤ê 4 ¤Ä) ¤Ç¡¢¤³¤ì¤ÏÂçÌÜÀ¹¤ê¤Î´Ö³Ö¤Ë¤è¤Ã¤Æ·è¤Þ¤ê¤Þ ¤¹¡£

default ¤ò»ØÄꤹ¤ë¤È¾®ÌÜÀ¹¤ê¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÃͤËÌá¤ê¤Þ¤¹¡£

set mxtics time <N> <units> ¤Ï¡¢ÂçÌÜÀ¹¤ê¤¬»þ¹ï¥â¡¼¥É¤Î¾ì¹ç¤Ë¤Î¤ßŬÍÑ ¤·¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics time (112.57.1)¡£

¼´¤¬Âпô¼´¤Ç¤¢¤ë¾ì¹ç¡¢Ê¬³ä¶è´Ö¤Î¿ô¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÍ­°Õ¤Ê¿ô¤Ë¥»¥Ã¥È¤µ¤ì ¤Þ¤¹ (10 ¸Ä¤ÎŤµ¤ò¸µ¤Ë¤·¤Æ)¡£<freq> ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ì¤Ð¤½¤Á¤é¤¬Í¥À褵 ¤ì¤Þ¤¹¡£¤·¤«¤·¡¢Âпô¼´¤Ç¤ÏÄ̾ï¤Î¾®ÌÜÀ¹¤ê (Î㤨¤Ð 1 ¤«¤é 10 ¤Þ¤Ç¤Î 2, 3, ..., 8, 9 ¤Î¹ï¤ß) ¤Ï¡¢9 ¤Ä¤ÎÉôʬ¶è´Ö¤·¤«¤¢¤ê¤Þ¤»¤ó¤¬¡¢<freq> ¤ÎÀßÄê¤Ï 10 ¤È¤¹¤ë¤³¤È¤Ç¤½¤¦¤Ê¤ê¤Þ¤¹¡£

¾®ÌÜÀ¹¤ê¤òǤ°Õ¤Î°ÌÃÖ¤ËÀßÄꤹ¤ë¤Ë¤Ï¡¢("<label>" <pos> <level>, ...) ¤Î ·Á¼°¤ò set {x|x2|y|y2|z}tics ¤Ç»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£¤¿¤À¤·¡¢<label> ¤Ï ¶õ ("") ¤Ç¡¢<level> ¤ò 1 ¤Ë¤·¤Þ¤¹¡£

¥³¥Þ¥ó¥É set m{x|x2|y|y2|z}tics ¤Ï¡¢ÂçÌÜÀ¹¤ê¤¬°ìÍͤδֳ֤ξì¹ç¤Ë¤Î¤ß Ư¤­¤Þ¤¹¡£¤â¤·Á´¤Æ¤ÎÂçÌÜÀ¹¤ê¤¬ set {x|x2|y|y2|z}tics ¤Ë¤è¤Ã¤Æ¼êÆ°¤Ç ÇÛÃÖ¤µ¤ì¤¿¾ì¹ç¤Ï¡¢¤³¤Î¾®ÌÜÀ¹¤ê¤Î¥³¥Þ¥ó¥É¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£¼«Æ°Åª¤ÊÂçÌÜÀ¹ ¤ê¤ÎÇÛÃ֤ȼêÆ°¤Î¾®ÌÜÀ¹¤ê¤ÎÇÛÃ֤ϡ¢set {x|x2|y|y2|z}tics ¤È set {x|x2|y|y2|z}tics add ¤È¤ò»È¤¦¤³¤È¤Ç¶¦Â¸¤Ç¤­¤Þ¤¹¡£

Îã:


     set xtics 0, 5, 10
     set xtics add (7.5)
     set mxtics 5

¤³¤Î¾ì¹ç¡¢ÂçÌÜÀ¹¤ê¤Ï 0,5,7.5,10¡¢¾®ÌÜÀ¹¤ê¤Ï 1,2,3,4,6,7,8,9 ¤Î¾ì½ê


     set logscale y
     set ytics format ""
     set ytics 1e-6, 10, 1
     set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \
                    "10^-4" 0.0001)
     set mytics 10

¤³¤Î¾ì¹ç¡¢ÂçÌÜÀ¹¤ê¤Ï»ØÄꤵ¤ì¤¿½ñ¼°¤Ç¡¢¾®ÌÜÀ¹¤ê¤ÏÂпôŪ¤ËÇÛÃÖ

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¾®ÌÜÀ¹¤ê¤Îɽ¼¨¤Ï¡¢Àþ·Á¼´¤Ç¤Ï¥ª¥Õ¤Ç¡¢Âпô¼´¤Ç¤Ï¥ª¥ó¤Ë¤Ê¤Ã ¤Æ¤¤¤Þ¤¹¡£¤½¤ÎÀßÄê¤Ï¡¢ÂçÌÜÀ¹¤ê¤ËÂФ¹¤ë axis|border ¤È {no}mirror ¤Î»ØÄê¤ò·Ñ¾µ¤·¤Þ¤¹¡£¤³¤ì¤é¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set xtics (112.123)¡£

112.57.1 Mxtics time

½ñ¼°:


    set mxtics time <N> {seconds|minutes|hours|days|weeks|months|years}

¤³¤ì¤Ï¡¢gnuplot ¥Ð¡¼¥¸¥ç¥ó 6 ¤ÇƳÆþ¤µ¤ì¤¿¿·¤·¤¤¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Ç¤¹¡£ ¤³¤ì¤Ï¡¢¾®ÌÜÀ¹¤ê¤Î¹ï¤ß¤ò¡¢ÂçÌÜÀ¹¤ê¶è´Ö¤ËÂФ¹¤ëʬ³ä°ÌÃ֤ǤϤʤ¯¡¢»þ¹ïñ °Ì¤Î¤¢¤ëÀ°¿ôÈÖ¹æ¤Î¾ì½ê¤ËÀµ³Î¤ËÇÛÃÖ¤·¤Þ¤¹¡£

ÂçÌÜÀ¹¤ê¤¬»þ¹ï¥â¡¼¥É (set xdata time ¤« set xtics time) ¤Î¾ì¹ç¤Ï¡¢ ¾®ÌÜÀ¹¤ê¤òÀ¸À®¤·¤Ê¤¤¤Î¤¬¿·¤·¤¤¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£

set mxtics ¤ä set mxtics <freq> ¤Ç¡¢6 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÎµóÆ°¤ËÌá ¤»¤Þ¤¹¤¬¡¢¤³¤ì¤Ë¤Ï¾ï¤ËÌäÂê¤òÊú¤¨¤Æ¤¤¤Þ¤·¤¿¡£Î㤨¤Ð¡¢72 ǯ´Ö³Ö¤ËÂФ·¤Æ ¼«Æ°Ê¬³äµ¡Ç½¤ÏÂçÌÜÀ¹¤ê¤ò 12 ǯ´Ö³Ö¤Ë¡¢¾®ÌÜÀ¹¤ê¤ò 5 ǯ´Ö³Ö¤Ë¤·¤Æ¤·¤Þ¤Ã ¤Æ¤¤¤Þ¤·¤¿¡£

¤·¤«¤· set mxtics time 2 years ¤ò»È¤¨¤Ð¡¢Àµ³Î¤Ë 1 ǯÃÖ¤­¤Îǯ»Ï¤á¤Î¤È ¤³¤í¤Ë¾®ÌÜÀ¹¤ê¹ï¤ß¤òÃÖ¤­¤Þ¤¹¡£set mxtics time 1 month ¤Ï¡¢³Æ·î¤ÎÆü¿ô ¤¬Åù¤·¤¯¤Ê¤¤¤Ç¤¹¤¬¡¢1 ·î 1 Æü¡¢2 ·î 1 Æü¡¢3 ·î 1 Æü¡¢... ¤Î³Æ·î 1 Æü¤Î ¾ì½ê¤ËÀµ¤·¤¯¹ï¤ß¤òÃÖ¤­¤Þ¤¹¡£

112.58 My2tics

y2 (±¦) ¼´¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set my2tics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics (112.57)¡£

112.59 Mytics

y ¼´¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set mytics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics (112.57)¡£

112.60 Mztics

z ¼´¤Î¾®ÌÜÀ¹¤ê¹ï¤ß¤Î°õ¤Ï set mztics ¤ÇÀ©¸æ¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: set mxtics (112.57)¡£

112.61 Nonlinear

½ñ¼°:


     set nonlinear <axis> via f(axis) inverse g(axis)
     unset nonlinear <axis>

¤³¤Î¥³¥Þ¥ó¥É¤Ï¥³¥Þ¥ó¥É set link ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢2 ¤Ä¤Î¥ê¥ó¥¯¤µ¤ì¤¿¼´ ¤Î°ìÊý¤Î¤ß¤òɽ¼¨¤¹¤ëÅÀ¤¬°ã¤¤¤Þ¤¹¡£±£¤µ¤ì¤ë¼´¤ÏÀþ·Á¼´¤Î¤Þ¤Þ¤Ç¤¹¡£É½¼¨¤¹ ¤ë¼´¤Ë±è¤¦ºÂɸ¤Ï¡¢g(x) ¤òŬÍѤ·¤Æ±£¤ì¤Æ¤¤¤ë¼´¤ÎºÂɸ¤«¤é³ä¤êÅö¤Æ¤é¤ì¡¢ f(x) ¤Ïɽ¼¨¤¹¤ë¼´¤ÎºÂɸ¤ò±£¤ì¤Æ¤¤¤ëÀþ·Á¼´¤ËÂбþ¤µ¤»¤Þ¤¹¡£ÊÑ´¹¼°¤ÈµÕÊÑ ´¹¼°¤ÎξÊý¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¤³¤ì¤¬¤É¤Î¤è¤¦¤Ëµ¡Ç½¤¹¤ë¤«¤òÍý²ò¤¹¤ë¤Ë¤Ï¡¢x2 ¼´¤¬Âпô¼´¤Î¾ì¹ç¤ò¹Í¤¨¤Æ ¤ß¤Æ¤¯¤À¤µ¤¤¡£


     set x2ange [1:1000]
     set nonlinear x2 via log10(x) inverse 10**x

¤³¤ÎÎã¤Ï¡¢set log x2 ¤ÈƱ¤¸¸ú²Ì¤òÀ¸¤ß¤Þ¤¹¡£¤³¤Î¾ì¹ç±£¤ì¤Æ¤¤¤ë¼´¤Ï¡¢ [log10(xmin):log10(xmax)] ¤ò·×»»¤¹¤ë¤³¤È¤Ç [0:3] ¤ÎÈϰϤˤʤê¤Þ¤¹¡£

ÊÑ´¹´Ø¿ô f(), g() ¤Ï¡¢ÈóÀþ·Á¼´Ëè¤ËŬÀڤʥÀ¥ß¡¼ÊÑ¿ô¤ò»È¤Ã¤ÆÄêµÁ¤¹¤ëɬÍ× ¤¬¤¢¤ê¤Þ¤¹¡£


   axis: x x2   dummy variable x
   axis: y y2   dummy variable y
   axis: z cb   dummy variable z
   axis: r      dummy variable r

Îã:


     set xrange [-3:3]
     set nonlinear x via norm(x) inverse invnorm(x)

¤³¤ÎÎã¤Ï³ÎΨ¥¹¥±¡¼¥ë ("¥×¥í¥Ó¥Ã¥È") ¤Î x ¼´¤òºîÀ®¤·¡¢ÎßÀÑÀµµ¬Ê¬ÉÛ´Ø¿ô Phi(x) ¤Î¥°¥é¥Õ¤¬Àþ·Á¤Î y ¼´¤ËÂФ·¤ÆľÀþ¤È¤Ê¤ê¤Þ¤¹¡£

Îã:


     logit(p) = log(p/(1-p))
     logistic(a) = 1. / (1. + exp(-a))
     set xrange [.001 : .999]
     set nonlinear y via logit(y) inverse logistic(y)
     plot logit(x)

¤³¤ÎÎã¤Ï¥í¥¸¥Ã¥È¥¹¥±¡¼¥ë¤Î y ¼´¤òºîÀ®¤·¡¢Àþ·Á¤Î x ¼´¤ËÂФ¹¤ë logit(x) ¤Î¥°¥é¥Õ¤¬Ä¾Àþ¤Ë¤Ê¤ê¤Þ¤¹¡£

Îã:


     f(x) = (x <= 100) ? x : (x < 500) ? NaN : x-390
     g(x) = (x <= 100) ? x : x+390
     set xrange [0:1000] noextend
     set nonlinear x via f(x) inverse g(x)
     set xtics add (100,500)
     plot sample [x=1:100] x, [x=500:1000] x

¤³¤ÎÎã¤Ï "ÀÚÃǼ´" ¤òºîÀ®¤·¤Þ¤¹¡£x ºÂɸ¤Ïº¸¤Ë 0 ¤«¤é 100¡¢±¦¤Ë 500 ¤«¤é 1000 ¤¬Ê¤ӡ¢¤½¤Î´Ö¤Ë 10 Éý¤Î¾®¤µ¤Ê·ä´Ö¤¬¤Ç¤­¤Þ¤¹¡£100 < x < 500 ¤Î´Ö ¤Î¥Ç¡¼¥¿¤ÏÉÁ²è¤µ¤ì¤º¡¢¤³¤ì¤Ï´üÂÔÄ̤ê¤ÎÆ°ºî¤ò¤·¤Þ¤¹¡£

112.62 ¿Þ·Á¥ª¥Ö¥¸¥§¥¯¥È (object)

¥³¥Þ¥ó¥É set object ¤Ï¡¢¤½¤Î¸å¤Î¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤Ë¸½¤ì¤ëñ°ì¤Î¥ª¥Ö¥¸¥§ ¥¯¥È¤òÄêµÁ¤·¤Þ¤¹¡£¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤¤¤¯¤Ä¤Ç¤âÄêµÁ¤Ç¤­¤Þ¤¹¡£¥ª¥Ö¥¸¥§¥¯¥È¤Î ·¿¤Ï¡¢¸½ºß¤Ï rectangle (ĹÊý·Á)¡¢circle (±ß)¡¢ellipse (Âʱß) ¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£Ä¹Êý·Á¤Ï¡¢¥³¥Þ¥ó¥É set style rectangle ¤Ë¤è¤Ã¤Æ ÀßÄꤵ¤ì¤¿¥¹¥¿¥¤¥ë¤Î°À­¤ÎÁÈ (ÅɤêÄÙ¤·¡¢¿§¡¢¶­³¦) ¤ò¥Ç¥Õ¥©¥ë¥È¤È¤·¤Æ¼õ ¤±·Ñ¤®¤Þ¤¹¡£¸Ä¡¹¤Î¥ª¥¸¥§¥¯¥È¤Ï¡¢ÄêµÁ»þ¡¢¤Þ¤¿¤Ï¸å¤«¤é¤Î¥³¥Þ¥ó¥É¤ÇÊÌ¡¹¤Î ¥¹¥¿¥¤¥ë°À­¤òÍ¿¤¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£

2 ¼¡¸µ¥°¥é¥Õ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¼´ºÂɸ¡¢¥°¥é¥ÕºÂɸ (graph)¡¢¶ËºÂɸ¡¢¥¹ ¥¯¥ê¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤ÎÁȤ߹ç¤ï¤»¤Ç¤âÄêµÁ¤Ç¤­¤Þ¤¹¡£ 3 ¼¡¸µ¥°¥é¥Õ¤Î¥ª¥Ö¥¸¥§¥¯¥È»ØÄê¤Ç¤Ï¡¢¥°¥é¥ÕºÂɸ¤Ï»È¤¨¤Þ¤»¤ó¡£3 ¼¡¸µ¤ÎĹ Êý·Á¤ÈÂʱߤϡ¢¥¹¥¯¥ê¡¼¥óºÂɸ¤À¤±¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

½ñ¼°:


   set object <index>
       <object-type> <object-properties>
       {front|back|behind|depthorder}
       {clip|noclip}
       {fc|fillcolor <colorspec>} {fs <fillstyle>}
       {default} {lw|linewidth <width>} {dt|dashtype <dashtype>}
   unset object <index>

<object-type> ¤Ï¡¢rectangle, ellipse, circle, polygon ¤Î¤¤¤º¤ì ¤«¤Ç¤¹¡£¸Ä¡¹¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î·¿¤Ï¡¢¤½¤Î·¿¤ËÆÃÍ­¤ÎÀ­¼Á¤â¤¤¤¯¤Ä¤«»ý¤Ã¤Æ¤¤ ¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó front, back, behind ¤Ï¡¢¥°¥é¥Õ¼«¿È¤ÎÉÁ²è¤ÎÁ°¡¢¤¢¤ë¤¤ ¤Ï¸å¤Î¤É¤Á¤é¤ËÉÁ¤¯¤«¤òÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼»²¾È: layers (21)¡£ front ¤ò»ØÄꤹ¤ë¤È¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁǤÎÁ° (¾å) ¤ËÉÁ²è¤µ ¤ì¤Þ¤¹¤¬¡¢front ¤È»ØÄꤵ¤ì¤¿¥é¥Ù¥ë¤è¤ê¤Ï¸å¤í (²¼) ¤Ë¤Ê¤ê¤Þ¤¹¡£back ¤ò»ØÄꤹ¤ë¤È¡¢¤¹¤Ù¤Æ¤ÎÉÁ²èÍ×ÁÇ¡¢¤¹¤Ù¤Æ¤Î¥é¥Ù¥ë¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¡£ behind ¤Ï¡¢¼´¤ä back ¤ÎĹÊý·Á¤ò´Þ¤à¤¹¤Ù¤Æ¤Î¤â¤Î¤Î¸å¤í¤ËÇÛÃÖ¤µ¤ì¤Þ ¤¹¡£¤è¤Ã¤Æ¡¢


   set object rectangle from screen 0,0 to screen 1,1 behind

¤Ï¡¢¥°¥é¥Õ¤ä¥Ú¡¼¥¸Á´ÂΤÎÇطʤ˿§¤ò¤Ä¤±¤ë¤Î¤ËÍøÍѤǤ­¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤ÎĺÅÀ¤¬¥¹¥¯¥ê¡¼¥óºÂɸ ¤ÇÍ¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥°¥é¥Õ¶­³¦¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤µ¤ì¤Þ¤¹¡£noclip ¤È ÀßÄꤹ¤ë¤È¡¢¥°¥é¥Õ¶­³¦¤Ç¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥¹¥¯¥ê¡¼¥ó¥µ ¥¤¥º¤ËÂФ¹¤ë¥¯¥ê¥Ã¥Ô¥ó¥°¤Ï¹Ô¤ï¤ì¤Þ¤¹¡£

¥ª¥Ö¥¸¥§¥¯¥È¤ÎÅɤêÄÙ¤·¤Î¿§¤Ï <colorspec> ¤Ç»ØÄꤷ¤Þ¤¹¡£fillcolor ¤Ï fc ¤È¾Êά¤Ç¤­¤Þ¤¹¡£ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Ï <fillstyle> ¤Ç»ØÄꤷ¤Þ¤¹¡£¾ÜºÙ ¤Ï¡¢°Ê²¼»²¾È: colorspec (20.1), fillstyle (112.86.4)¡£¥­¡¼¥ï¡¼¥É default ¤ò»ØÄꤹ ¤ë¤È¡¢¤³¤ì¤é¤Î°À­¤ÏÉÁ²è¤¬¼ÂºÝ¤Ë¹Ô¤ï¤ì¤ë¤È¤­¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¼õ¤±·Ñ ¤®¤Þ¤¹¡£°Ê²¼»²¾È: set style rectangle (112.86.10)¡£

112.62.1 ĹÊý·Á (rectangle)

½ñ¼°:


   set object <index> rectangle
       {from <position> {to|rto} <position> |
        center <position> size <w>,<h> |
        at <position> size <w>,<h>}

ĹÊý·Á¤Î°ÌÃ֤ϡ¢ÂгѤ˸þ¤«¤¤¹ç¤¦ 2 ¤Ä¤ÎĺÅÀ (º¸²¼¤È±¦¾å) ¤Î°ÌÃÖ¡¢¤¢¤ë ¤¤¤ÏÃæ¿´ÅÀ¤Î°ÌÃ֤Ȳ£Éý (<w>) ¤È½ÄÉý (<h>) ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£¤¤¤º¤ì¤Î¾ì¹ç ¤âÅÀ¤Î°ÌÃ֤ϡ¢¼´¤ÎºÂɸ (first, second)¡¢¥°¥é¥ÕÎΰèÆâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ­¤Þ¤¹ (°Ê²¼»²¾È: coordinates (11))¡£¥ª¥×¥·¥ç¥ó at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£

Îã:


   # ºÂɸ¼´¤Ç°Ï¤Þ¤ì¤¿ÎΰèÁ´ÂΤÎÇطʤò¿å¿§¤Ë
   set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
   set object 1 rect fc rgb "cyan" fillstyle solid 1.0


   # º¸²¼³Ñ¤¬ 0,0, ±¦¾å³Ñ¤¬ 2,3 ¤ÎÀÖ¤¤»Í³Ñ¤ò°ì¤ÄÃÖ¤¯
   set object 2 rect from 0,0 to 2,3 fc lt 1


   # ÀĤ¤¶­³¦¤Î¶õ (ÅɤêÄÙ¤µ¤Ê¤¤) ĹÊý·Á¤òÃÖ¤¯
   set object 3 rect from 0,0 to 2,3 fs empty border rgb "blue"


   # ĺÅÀ¤Ï°ÜÆ°¤·¤Ê¤¤¤Þ¤Þ¡¢ÅɤêÄÙ¤·¤È¿§¤ò¥Ç¥Õ¥©¥ë¥È¤ËÊѹ¹
   set object 2 rect default

¥¹¥¯¥ê¡¼¥óºÂɸ¤ÇĹÊý·Á¤Î³Ñ¤ò»ØÄꤹ¤ë¤È¡¢¤½¤ì¤Ï¸½ºß¤Î¥°¥é¥ÕÎΰè¤Îü¤ò±Û ¤¨¤ë¤³¤È¤â²Äǽ¤Ç¤¹¤¬¡¢¤½¤Î¾¤Î¾ì¹ç¤ÏĹÊý·Á¤Ï¥°¥é¥ÕÆâ¤Ë¼ý¤Þ¤ë¤è¤¦¤Ë¥¯¥ê ¥Ã¥Ô¥ó¥°¤µ¤ì¤Þ¤¹¡£

112.62.2 Â汧 (ellipse)

½ñ¼°:


   set object <index> ellipse {at|center} <position> size <w>,<h>
       {angle <orientation>} {units xy|xx|yy}
       {<other-object-properties>}

ÂʱߤΰÌÃ֤ϡ¢Ãæ¿´¤ò»ØÄꤷ¡¢¤½¤Î¸å¤í¤ËÉý¤È¹â¤µ (¼ç¼´¤ÈÉû¼´) ¤ò»ØÄꤷ¤Þ ¤¹¡£¥­¡¼¥ï¡¼¥É at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£Ãæ¿´¤Î°ÌÃ֤λØÄê¤Ë¤Ï¡¢ ¼´¤ÎºÂɸ (first, second)¡¢¥°¥é¥ÕÎΰèÆâ¤ÎÁêÂкÂɸ (graph)¡¢¥¹¥¯¥ê ¡¼¥óºÂɸ (screen) ¤Î¤¤¤º¤ì¤«¤ò»ÈÍѤǤ­¤Þ¤¹ (°Ê²¼»²¾È: coordinates (11))¡£ ¼ç¼´¤ÈÉû¼´¤ÎŤµ¤Ï¡¢¼´¤ÎºÂɸ¤ÇÍ¿¤¨¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Âʱߤθþ¤­ (orientation) ¤Ï¡¢¿åÊ¿¼´¤ÈÂʱߤμ缴¤È¤Î´Ö¤Î³ÑÅ٤ǻØÄꤷ¤Þ¤¹¡£³ÑÅÙ¤òÍ¿ ¤¨¤Ê¤±¤ì¤Ð¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÂʱߤθþ¤­¤¬Âå¤ï¤ê¤Ë»È¤ï¤ì¤Þ¤¹ (°Ê²¼»²¾È: set style ellipse (112.86.11))¡£¥­¡¼¥ï¡¼¥É units ¤Ï¡¢Âʱߤμ´¤Î½Ì¼Ü¤ÎÀ©¸æ¤Ë»È ÍѤ·¤Þ¤¹¡£units xy ¤Ï¡¢¼ç¼´¤Ï x ¼´¤Îñ°Ì¤Ç¡¢Éû¼´¤Ï y ¼´¤Îñ°Ì¤Ç·×»» ¤·¤Þ¤¹¤¬¡¢units xx ¤Ïξ¼´¤È¤â x ¼´¤Îñ°Ì¤Ç½Ì¼Ü¤·¡¢units yy ¤Ïξ¼´ ¤È¤â y ¼´¤Îñ°Ì¤Ë¤Ê¤ê¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ï xy ¤Ç¤¹¤¬¡¢set style ellipse units ¤ÎÀßÄê¤Ç¤¤¤Ä¤Ç¤âÊÑ ¹¹¤Ç¤­¤Þ¤¹¡£

Ãí°Õ: x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬Åù¤·¤¯¤Ê¤¤¾ì¹ç (¤½¤·¤Æ units xy ¤Î¾ì¹ç)¡¢²ó ž¸å¤Î¼ç¼´¤ÈÉû¼´¤ÎÈæ¤ÏÀµ¤·¤¯¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

set object ellipse size <2r>,<2r> ¤È set object circle <r> ¤È¤Ï¡¢ °ìÈ̤ˤÏƱ¤¸¤³¤È¤Ë¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£circle ¤ÎȾ·Â¤Ï¾ï ¤Ë x ¼´¤Îñ°Ì¤Ç·×¤é¤ì¡¢¤è¤Ã¤Æ x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬°ã¤Ã¤¿¤ê¡¢ÉÁ²è¤Î¥¢¥¹ ¥Ú¥¯¥ÈÈ椬 1 ¤Ç¤Ê¤¯¤Æ¤â¡¢¾ï¤Ë±ß¤¬À¸À®¤µ¤ì¤Þ¤¹¡£units ¤¬ xy ¤ËÀßÄê ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢'set object ellipse' ¤Ç¤Ï¡¢ºÇ½é¤Î <2r> ¤Ï x ¼´¤Îñ°Ì¤Ç¡¢ ¸å¤í¤Î <2r> ¤Ï y ¼´¤Îñ°Ì¤Ç·×¤é¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï x ¼´¤È y ¼´¤Î½Ì¼Ü¤¬Æ± ¤¸¤Ç¡¢¤«¤ÄÉÁ²è¤Î¥¢¥¹¥Ú¥¯¥ÈÈ椬 1 ¤Ç¤¢¤ë¾ì¹ç¤Î¤ß±ß¤òÀ¸À®¤¹¤ë¤³¤È¤ò°ÕÌ£ ¤·¤Þ¤¹¡£¤·¤«¤·¡¢units ¤ò xx ¤ä yy ¤Ë¥»¥Ã¥È¤¹¤ì¤Ð¡¢¥³¥Þ¥ó¥É set object ¤Ç»ØÄꤷ¤¿Ä¾·Â¤ÏƱ¤¸Ã±°Ì¤Ç·×»»¤µ¤ì¤ë¤Î¤Ç¡¢ÂʱߤÏÀµ¤·¤¤¥¢ ¥¹¥Ú¥¯¥ÈÈæ¤ò»ý¤Á¡¢ÉÁ²è¤ò¥ê¥µ¥¤¥º¤·¤Æ¤â¤½¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£

112.62.3 ±ß (circle)

½ñ¼°:


   set object <index> circle {at|center} <position> size <radius>
       {arc [<begin>:<end>]} {no{wedge}}
       {<other-object-properties>}

±ß¤Î°ÌÃ֤ϡ¢Ãæ¿´¤ò»ØÄꤷ¡¢¤½¤Î¸å¤í¤ËȾ·Â¤ò»ØÄꤷ¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É at ¤È center ¤ÏƱ¤¸°ÕÌ£¤Ç¤¹¡£2 ¼¡¸µ¥°¥é¥Õ¤Ç¤Ï¡¢°ÌÃÖ¤ÈȾ·Â¤ÏǤ°Õ¤ÎºÂɸ·Ï ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: coordinates (11)¡£3 ¼¡¸µ¥°¥é¥Õ¤Î±ß¤Ë¤Ï¥°¥é¥ÕºÂ ɸ¤Ï»È¤¨¤Þ¤»¤ó¡£¤½¤Î¤É¤Î¾ì¹ç¤Ç¤â¡¢È¾·Â¤Ï¼´¡¢¥°¥é¥Õ¡¢¥¹¥¯¥ê¡¼¥ó¤Î¿åÊ¿Êý ¸þ¤Î½Ì¼Ü¤ËÂФ·¤Æ·×¤é¤ì¡¢¿åÊ¿Êý¸þ¤È¿âľÊý¸þ¤Î½Ì¼Ü¤Ë¤º¤ì¤¬¤¢¤Ã¤Æ¤â¡¢·ë²Ì ¤¬¾ï¤ËÀµ¤·¤¯±ß¤Ë¤Ê¤ë¤è¤¦¤Ëľ¤µ¤ì¤Þ¤¹¡£±ß¤ò¥°¥é¥Õ¤ÎºÂɸ¤ÇÉÁ¤­¤¿¤¤ (¤Ä¤Þ ¤ê¿åÊ¿¼´¤È¿âľ¼´¤Î¥¹¥±¡¼¥ë¤¬°ã¤¦¾ì¹ç¤Ë¤Ï¤½¤ì¤¬ÂʱߤȤ·¤Æɽ¼¨¤µ¤ì¤ë¤è¤¦ ¤Ë¤·¤¿¤¤) ¾ì¹ç¤Ï¡¢Âå¤ï¤ê¤Ë set object ellipse ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢´°Á´¤Ê±ß¤¬ÉÁ²è¤µ¤ì¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó¤Î arc ¤Ë³«»Ï³Ñ¤È ½ªÎ»³Ñ¤òÅÙ¤òñ°Ì¤È¤·¤Æ»ØÄꤹ¤ë¤È±ß¸Ì¤òÉÁ²è¤·¤Þ¤¹¡£±ß¸Ì¤Ï¡¢¾ï¤ËÈ¿»þ·×²ó ¤ê¤ËÉÁ¤«¤ì¤Þ¤¹¡£

°Ê²¼¤â»²¾È: set style circle (112.86.9), set object ellipse (112.62.2)¡£

112.62.4 ¿³Ñ·Á (polygon)

½ñ¼°:


   set object <index> polygon
       from <position> to <position> ... {to <position>}

¤Þ¤¿¤Ï


       from <position> rto <position> ... {rto <position>}

¿³Ñ·Á¤Î°ÌÃ֤ϡ¢ÄºÅÀ¤Î°ÌÃÖ¤ÎÎó¤òÍ¿¤¨¤ë¤³¤È¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£¤½¤ì¤é¤Ë¤Ï¡¢ Ǥ°Õ¤ÎºÂɸ·Ï¤¬»È¤¨¤Þ¤¹¡£ÁêÂÐŪ¤ÊºÂɸ (rto) ¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¡¢¤½¤ÎºÂɸ ·Ï¤ÏÁ°¤ÎĺÅÀ¤ÈƱ¤¸ºÂɸ·Ï¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£°Ê²¼»²¾È: coordinates (11)¡£

Îã:


   set object 1 polygon from 0,0 to 1,1 to 2,0
   set object 1 fc rgb "cyan" fillstyle solid 1.0 border lt -1

112.62.4.1 Depthorder

¥ª¥×¥·¥ç¥ó set object N depthorder ¤Ï¡¢3 ¼¡¸µÂ¿³Ñ·Á¥ª¥Ö¥¸¥§¥¯¥È¤Î¤ß ¤ËŬÍѤµ¤ì¤Þ¤¹¡£¥ª¥Ö¥¸¥§¥¯¥È¤ò front/back/behind ¤Î¥ì¥¤¥ä¤Ç¤Ï¤Ê¤¯¡¢¥½ ¡¼¥È¤µ¤ì¤¿ pm3d »ÍÊÕ·Á¤Î¥ê¥¹¥È¤ÎÃæ¤ËÆþ¤ì¡¢set pm3d depthorder ¤Î¿¼¤µ ¤Î½ç¤ËÉÁ²è¤·¤Þ¤¹¡£pm3d ¶ÊÌ̤ǻȤ¦¾ì¹ç¡¢Î¾Ì̤ο§ÉÕ¤±¤Ï object fillcolor ¤ò linestyle ¤Ç»ØÄꤹ¤ë¤³¤È¤ÇÀ¸À®¤Ç¤­¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢Â¿³Ñ·Á¤ÎºÇ½é¤Î 3 ¤Ä¤ÎĺÅÀ¤Î½ç½ø¤¬¡Öɽ΢¡×¤ò·èÄꤷ¤Þ¤¹¡£

3 ¼¡¸µÂ¿³Ñ·Á¤Ç¤Ï¤Ê¤¤¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤³¤Îµ¡Ç½¤òÀßÄꤹ¤ë¤È¡¢¤½¤ì¤Ï¿ʬÁ´¤¯ ÉÁ²è¤µ¤ì¤Þ¤»¤ó¡£

112.63 ¥°¥é¥Õ°ÌÃÖ¤ÎÄ´À° (offsets)

¼«Æ°½Ì¼Ü¤Ï¡¢x ¼´¤È y ¼´¤ÎÈϰϤòÉÁ²è¤µ¤ì¤ë¥Ç¡¼¥¿¤ÎºÂɸ¤Ë¹ç¤ï¤»¤Þ¤¹¡£¥ª ¥Õ¥»¥Ã¥È¤Ï¡¢¤³¤ÎÈϰϤò¹­¤²¤ë»ÅÁȤߤòÄ󶡤·¡¢¤½¤ì¤Ë¤è¤ê¥Ç¡¼¥¿¤ÈÉÁ²èÈÏ°Ï ¤Î¶­³¦¤Î´Ö¤Ë·ä´Ö¤òºî¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤½¤¦¤¹¤ë¤È¡¢¼«Æ°½Ì¼Üµ¡Ç½¤Ï¡¢¤½¤ì¤¬ set autoscale noextend ¤ä set xrange noextend ¤Ë¤è¤Ã¤ÆÍÞ¤¨¤é¤ì¤Æ¤¤ ¤Ê¤¤¾ì¹ç¤Ï¡¢¼´¤Î¼¡¤ÎÌÜÀ¹¤ê¤Ëã¤Ã¤¹¤ë¤Þ¤Ç¤µ¤é¤Ë¤½¤ì¤¾¤ì¤ÎÈϰϤò³ÈÄ¥¤·¤Þ ¤¹¡£°Ê²¼»²¾È: noextend (112.3.1)¡£ ¥ª¥Õ¥»¥Ã¥È¤Ï¡¢x1, y1 ¼´¤Î½Ì¼Ü¤Ë¤Î¤ß±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

½ñ¼°:


     set offsets <left>, <right>, <top>, <bottom>
     unset offsets
     show offsets

³Æ¥ª¥Õ¥»¥Ã¥È¤ÏÄê¿ô¡¢¤Þ¤¿¤Ï¿ô¼°¤¬»È¤¨¡¢¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 0 ¤Ç¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢º¸±¦¤Î¥ª¥Õ¥»¥Ã¥È¤Ï x1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¡¢¾å²¼¤Î¥ª¥Õ ¥»¥Ã¥È¤Ï y1 ¼´¤ÈƱ¤¸Ã±°Ì¤Ç»ØÄꤷ¤Þ¤¹¤¬¡¢¥­¡¼¥ï¡¼¥É "graph" ¤òÍѤ¤¤ë¤³ ¤È¤ÇÁ´¥°¥é¥Õ¥µ¥¤¥º¤ËÂФ¹¤ë³ä¹ç¤È¤·¤Æ¥ª¥Õ¥»¥Ã¥È¤ò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ ÈóÀþ·Á¼´ (nonlinear axes) ¤ËÂФ·¤Æ¤Ï¡¢"graph" ¤Ë¤è¤ë¥ª¥Õ¥»¥Ã¥È¤Î¤ß²Äǽ ¤Ç¤¹¡£

Àµ¤Î¥ª¥Õ¥»¥Ã¥È¤ÎÃͤϡ¢¼´¤ÎÈϰϤò»ØÄꤵ¤ì¤¿Êý¸þ¤Ø¿­¤Ð¤·¤Þ¤¹¡£Î㤨¤ÐÀµ¤Î ²¼Êý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤Ï y ¤ÎºÇ¾®Ãͤò¤è¤ê¾®¤µ¤ÊÃͤˤ·¤Þ¤¹¡£Éé¤Î¥ª¥Õ¥»¥Ã¥È Ãͤϡ¢¼«Æ°½Ì¼Ü¤È¥¯¥ê¥Ã¥Ô¥ó¥°¤ËÂФ·¤Æ°­¤¯±Æ¶Á¤·¤Þ¤¹¡£

Îã:


     set autoscale noextend
     set offsets graph 0.05, 0, 2, 2
     plot sin(x)

¤³¤Î sin(x) ¤Î¥°¥é¥Õ¤Î y ¤ÎÈÏ°Ï¤Ï [-3:3] ¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì¤Ï¡¢´Ø¿ô¤Î y ¤ÎÈÏ°Ï¤Ï [-1:1] ¤Ë¼«Æ°½Ì¼Ü¤µ¤ì¤Þ¤¹¤¬¡¢¿âľÊý¸þ¤Î¥ª¥Õ¥»¥Ã¥È¤¬Ã¼¤Ë¤½¤ì¤¾ ¤ì 2 ¤òÄɲ乤뤿¤á¤Ç¤¹¡£x ¤ÎÈÏ°Ï¤Ï [-11:10] ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥Ç¥Õ ¥©¥ë¥È¤¬ [-10:10] ¤Ç¡¢º¸¤ËÁ´ÈϰϤΠ0.05 ¤Î³ä¹çʬ¹­¤²¤é¤ì¤ë¤¿¤á¤Ç¤¹¡£

112.64 ¥°¥é¥Õ°ÌÃ֤λØÄê (origin)

¥³¥Þ¥ó¥É set origin ¤Ï¥¹¥¯¥ê¡¼¥ó¾å¤Ç¶ÊÌÌÉÁ²è¤Î¸¶ÅÀ¤ò»ØÄê (¤¹¤Ê¤ï¤Á¡¢ ¥°¥é¥Õ¤È¤½¤Î;Çò) ¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£¤½¤ÎºÂɸ·Ï¤Ï¥¹¥¯¥ê¡¼¥óºÂɸ·Ï (screen) ¤ÇÍ¿¤¨¤Þ¤¹¡£¤³¤ÎºÂɸ·Ï¤Ë´Ø¤¹¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£

½ñ¼°:


     set origin <x-origin>,<y-origin>

112.65 ½ÐÎÏÀè»ØÄê (output)

½ñ¼°:


     set output {"<filename>"}
     unset output
     show output

ÈóÂÐÏ÷¿½ÐÎÏ·Á¼°¤Ç¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÀ¸À®¤·¤¿¥°¥é¥Õ¤Ï stdout ¤ËÁ÷¤ê¤Þ ¤¹¡£¥³¥Þ¥ó¥É set output ¤Ï¡¢¤½¤Î½ÐÎϤò»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤ä¥Ç¥Ð¥¤¥¹¤Ë¥ê ¥À¥¤¥ì¥¯¥È¤·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ç³«¤¤¤¿¥Õ¥¡¥¤¥ë¤Ï¡¢¼¡¤Î set/unset output ¥³¥Þ¥ó¥É¡¢¤Þ¤¿¤Ï¼¡¤Î½ÐÎÏ·Á¼°¤ÎÊѹ¹¡¢¤Þ¤¿¤Ï gnuplot ¤ò½ªÎ»¤¹¤ë¤Þ ¤Ç³«¤¤¤¿¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

ÂÐÏ÷¿½ÐÎÏ·Á¼°¤Ç¤Ï¡¢set output ¤Ï̵»ë¤·¤Þ¤¹¡£


¥Õ¥¡¥¤¥ë̾¤Ï°úÍÑÉä¤Ç°Ï¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¥Õ¥¡¥¤¥ë̾¤ò¾Êά¤·¤¿¾ì¹ç¡¢

¤½¤Î¥³¥Þ¥ó¥É¤Ï unset output ¤ÈƱ¤¸¤Ë¤Ê¤ê¡¢¤½¤ì¤ÏľÁ°¤Î set output ¤Ç³«¤¤¤¿Ç¤°Õ¤Î½ÐÎÏ¥Õ¥¡¥¤¥ë¤òÊĤ¸¡¢¿·¤·¤¤½ÐÎÏ¤Ï stdout ¤ËÁ÷¤ê¤Þ¤¹¡£

set terminal ¤È set output ¤ÎξÊý¤ò»ØÄꤹ¤ë¾ì¹ç¡¢set terminal ¤ò Àè¤Ë»ØÄꤹ¤ëÊý¤¬°ÂÁ´¤Ç¤¹¡£¤½¤ì¤Ï¡¢¤¢¤ë¼ï¤Î terminal ¤Ç¤Ï¡¢OS ¤¬É¬Í×¤È ¤¹¤ë¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£Î㤨¤Ð¡¢¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ËÂÐ ¤·¤ÆÊÌ¡¹¤Î open ¥³¥Þ¥ó¥É¤òɬÍפȤ¹¤ë¤è¤¦¤Ê OS ¤Ê¤É¤¬¤½¤ì¤Ë³ºÅö¤·¤Þ¤¹¡£

¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È¤¹¤ë´Ä¶­¤Ç¤Ï¡¢¥Ñ¥¤¥×½ÐÎϤâÍ­ÍѤǤ¹¡£Î㤨¤Ð°Ê²¼¤ÎÄ̤ê¤Ç ¤¹:


     set output "|lpr -Plaser filename"
     set term png; set output "|display png:-"

MS-DOS ¤Ç¤Ï¡¢set output "PRN" ¤È¤¹¤ë¤Èɸ½à¤Î¥×¥ê¥ó¥¿¤Ë½ÐÎϤµ¤ì¤Þ¤¹¡£

112.66 Overflow

½ñ¼°:


    set overflow {float | NaN | undefined}
    unset overflow

gnuplot ¤Î¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï¡¢64 ¥Ó¥Ã¥ÈÀ°¿ô±é»»¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢ 2^53 ¤«¤é 2^63 (¤ª¤ª¤Þ¤«¤Ë¤Ï 10^16 ¤«¤é 10^19) ¤ÎÀ°¿ôɾ²Á¤ÎÊý¤¬¡¢IEEE 754 ¤ÎÉâÆ°¾®¿ô±é»»¤ò»ÈÍѤ¹¤ëɾ²Á¤è¤ê¤âÀºÅ٤ι⤤ÃͤòÊÝ»ý¤¹¤ë¤³¤È¤ò°ÕÌ£ ¤·¤Þ¤¹¡£¤·¤«¤· IEEE ÉâÆ°¾®¿ôɽ¸½¤Ï¡¢ÀºÅ٤ϵ¾À·¤Ë¤¹¤ëÂå¤ï¤ê¤Ë¡¢¤ª¤ª¤Þ¤« ¤Ë¤Ï [-10^307 : 10^307] ¤ÎÁ´ÈϰϤò¥«¥Ð¡¼¤·¤Þ¤¹¤¬¡¢À°¿ô±é»»¤Ï¡¢¤½¤Î·ë²Ì ¤¬ [-2^63 : 2^63] ¤ÎÈϰϳ°¤Ë¤Ê¤ë¾ì¹ç¤Ï¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤·¤Þ¤¹¡£¤½¤Î¥ª¡¼¥Ð ¡¼¥Õ¥í¡¼¤¬µ¯¤­¤¿¾ì¹ç¤Ë²¿¤ò¤µ¤»¤ë¤«¤Ï¥³¥Þ¥ó¥É set overflow ¤Ë¤è¤êÀ©¸æ ¤Ç¤­¤Þ¤¹¡£¤½¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

set overflow ¤Ï¡¢set overflow float ¤ÈƱ¤¸¤Ç¡¢·ë²Ì¤òÀ°¿ô¤È¤·¤ÆÊÖ¤¹ Âå¤ï¤ê¤Ë¼Â¿ôÃͤȤ·¤ÆÊÖ¤·¤Þ¤¹¡£¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£

¥³¥Þ¥ó¥É unset overflow ¤Ï¡¢À°¿ô±é»»¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤ò̵»ë¤¹¤ë¤è¤¦¤Ë ¤·¤Þ¤¹¡£¥¨¥é¡¼¤Ï½Ð¤Þ¤»¤ó¡£32 ¥Ó¥Ã¥ÈÀ°¿ô±é»»¤·¤«¤Ç¤­¤Ê¤¤´Ä¶­¤Ç¡¢5.4 ¤è ¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤ÎµóÆ°¤Ë¶á¤Å¤±¤¿¤¤¾ì¹ç¤Ï¡¢¤³¤ì¤ò»ÈÍѤ¹¤ë¤È ¤¤¤¤¤Ç¤·¤ç¤¦¡£

¥³¥Þ¥ó¥É reset ¤Ï¡¢¥ª¡¼¥Ð¡¼¥Õ¥í¡¼½èÍý¤Î¾õÂ֤˱ƶÁ¤òÍ¿¤¨¤Þ¤»¤ó¡£

Á°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢32 ¥Ó¥Ã¥È±é»»¤ËÀ©¸Â¤µ¤ì¡¢À°¿ô¥ª¡¼¥Ð¡¼¥Õ¥í ¡¼¤Ï̵»ë¤·¤Æ¤¤¤Þ¤·¤¿¡£¤·¤«¤·¡¢ÁȤ߹þ¤ß±é»»¤Î°ìÉô¤Ï¡¢À°¿ô°ú¿ô¤òÍ¿¤¨¤Æ¤â ´°Á´¤ËÀ°¿ô±é»»¤ò¹Ô¤¦¤È¤Ï¸Â¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ë¤Ï¡¢»Ø¿ô ±é»» N**M ¤ä¡¢Ï¤α黻 (°Ê²¼»²¾È: summation (15.5)) ¤Ê¤É¤¬´Þ¤Þ¤ì¤Þ¤¹¡£¤³¤ì ¤é¤Î±é»»¤Ï¡¢¸½ºß¤ÏÀ°¿ô°ú¿ô¤òÍ¿¤¨¤¿¾ì¹ç¤ÏÀ°¿ôÃͤòÊÖ¤·¡¢¤½¤ì¤é¤òÆâºßŪ¤Ë ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤Î±Æ¶Á¤ò¼õ¤±¤ä¤¹¤¯¤¹¤ë¤³¤È¤Ç set overflow ¤Î¾õÂ֤˻ÙÇÛ ¤µ¤ì¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£

112.66.1 Float

À°¿ô±é»»¼°¤¬À©¸ÂÈÏ°Ï (64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤Ï [-2^63 : 2^63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í ¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤ÏÂå¤ï¤ê¤ËÉâÆ°¾®¿ôÃͤȤ·¤ÆÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼ ¤È¤·¤Æ¤Ï°·¤ï¤ì¤Þ¤»¤ó¡£ Îã:


    gnuplot> set overflow float
    gnuplot> A = 2**62 - 1;  print A, A+A, A+A+A
    4611686018427387903 9223372036854775806 1.38350580552822e+19

112.66.2 NaN

À°¿ô±é»»¼°¤¬À©¸ÂÈÏ°Ï (64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤Ï [-2^63 : 2^63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í ¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤Ï NaN (Èó¿ô) ¤òÊÖ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼¤È¤·¤Æ¤Ï°· ¤ï¤ì¤Þ¤»¤ó¡£ Îã:


    gnuplot> set overflow NaN
    gnuplot> print 10**18, 10**19
    1000000000000000000 NaN

112.66.3 Undefined

À°¿ô±é»»¼°¤¬À©¸ÂÈÏ°Ï (64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤Ï [-2^63 : 2^63]) ¤ò¥ª¡¼¥Ð¡¼¥Õ¥í ¡¼¤·¤¿¾ì¹ç¡¢¤½¤Î·ë²Ì¤Ï̤ÄêµÁÃͤȤʤê¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥¨¥é¡¼¤È¤·¤Æ°·¤ï¤ì¤Þ ¤¹¡£ Îã:


    gnuplot> set overflow undefined
    gnuplot> A = 10**19
                 ^
             undefined value

112.66.4 Affected operations

set overflow ¤Î¾õÂ֤ϡ¢°Ê²¼¤ÎÀ°¿ô±é»»


    + - * / **

¤È¡¢ÁȤ߹þ¤ß¤Îϱ黻 sum ¤Ë±Æ¶Á¤·¤Þ¤¹¡£

¤³¤ì¤é¤Î±é»»¤Ï¤¹¤Ù¤Æ¡¢°ú¿ô¤¬¤¹¤Ù¤ÆÀ°¿ô¤Ê¤é¤Ð¡¢¤½¤Îɾ²Á¤Ç¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ ¤¬µ¯¤­¤Ê¤¤¸Â¤ê¡¢À°¿ôÃͤηë²Ì¤òÊÖ¤·¤Þ¤¹¡£

set overflow ¤Ï¡¢°Ê²¼¤ÎÏÀÍý±é»»¡¢¥Ó¥Ã¥È±é»»¤Ë¤Ï±Æ¶Á¤·¤Þ¤»¤ó¡£


    << >>  | ^ &

ϤÎɾ²Á¤Î²áÄø¤Î¤É¤³¤«¤Ç¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¬µ¯¤­¤¿¾ì¹ç¤Ï¡¢ set overflow float ¤È¤¹¤ë¤È¡¢ºÇ½ªÅª¤ÊϤ¬À°¿ô¤ÎÀ©¸ÂÈÏ°ÏÆâ¤Ë¤ª¤µ¤Þ¤ë ¾ì¹ç¤Ç¤¢¤Ã¤Æ¤â¡¢¼Â¿ôÃͤòÊÖ¤¹¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

112.67 ¥Ñ¥ì¥Ã¥È (palette)

¥Ñ¥ì¥Ã¥È¤Ï¡¢¿§¤Î½¸¹ç¤Ç¡¢Ä̾ï¤Ï°ì¤Ä°Ê¾å¤ÎÃʳ¬Åª¤Ê¥°¥é¥Ç¡¼¥·¥ç¥ó¤Î·Á¼°¤Ç ½ç½ø¤Å¤±¤é¤ì¡¢pm3d ¶ÊÌ̤䲹ÅÙʬÉÛ¿Þ (heatmap)¡¢¤½¤Î¾¤ÎÉÁ²èÍ×ÁǤò¿§ ÉÕ¤±¤¹¤ë¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£plot ¤Î z ºÂɸ¤«¡¢ÄɲäΥǡ¼¥¿Îó¤Î³¥¿§³¬Ä´Ãͤ¬ ¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Î¿§¤Ë¼«Æ°Åª¤Ë¼ÌÁü¤µ¤ì¤Þ¤¹¡£ ¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÉÁ²è¥¹¥¿¥¤¥ë pm3d ¤ò»ÈÍѤ¹¤ë¥°¥é¥Õ¤Î ÎÙ¤ËÊ̤Υ«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox) ¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£¥«¥é¡¼¥Ü¥Ã¥¯¥¹ ¤Ï¡¢¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤ê̵¸ú¤Ë¤·¤¿¤ê¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: set colorbox (112.17)¡£ °Ê²¼¤â»²¾È: show palette (114.3), test palette (118)¡£

½ñ¼°:


     set palette
     set palette {
                { gray | color }
                { gamma <gamma> }
                {   rgbformulae <r>,<g>,<b>
                  | defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }
                  | file '<filename>' {datafile-modifiers}
                  | colormap <colormap-name>
                  | functions <R>,<G>,<B>
                }
                { cubehelix {start <val>} {cycles <val>} {saturation <val>} }
                { viridis }
                { model { RGB | CMY | HSV {start <radians>} } }
                { positive | negative }
                { nops_allcF | ps_allcF }
                { maxcolors <maxcolors> }
              }

¥Ñ¥ì¥Ã¥È¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÊýË¡¤ÇÄêµÁ¤Ç¤­¤Þ¤¹¡£

Image figure_palette1
- ÀÖ¡¢ÎС¢ÀĤÎÍ×ÁǤËÂФ¹¤ë¸ø¼°¤ò¡¢0 ¤«¤é 1 ¤Î³¥¿§³¬Ä´ÊÑ¿ô¤Î´Ø¿ô¤È¤·¤Æ Í¿¤¨¤ë¤³¤È¡£ set palette rgbformulae ¤Ë¤è¤ê¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤µ¤ì¤Æ¤¤¤ë 36 ¸Ä¤Î¸ø¼° ¤«¤éÁª¤Ö¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£set palette functions ¤Ë¤è¤ê¡¢¤¢¤Ê¤¿¼«¿È¤Î´Ø ¿ô¤òÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
- z ¤ÎÈÏ°ÏÁ´ÂΤò¡¢ÉôʬŪ¤Ë 1 ¤Ä¡¢¤Þ¤¿¤ÏÊ£¿ô¤Î³ê¤é¤«¤Ê¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ç ʤ¤¦¤è¤¦»ØÄꤹ¤ë¤¿¤á¤Ë set palette defined ¤ò»È¤¦¤³¤È¡£
- »öÁ°¤ËÊݸ¤·¤¿¥Ñ¥ì¥Ã¥È¤ò¡¢¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤ËÆɤ߹þ¤à (load) ¤³¤È¡£ set palette file ¤Ï¡¢Êݸ¤·¤¿¥Ñ¥ì¥Ã¥È¤ò¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤ß¤Þ¤¹¡£ set palette colormap ¤Ï¡¢Êݸ¤·¤¿¥«¥é¡¼¥Þ¥Ã¥×¤«¤é RGB ¤ÎÀ®Ê¬¤òŸ³«¤· ¤Þ¤¹¡£
- ɬÍפʤ饫¥¹¥¿¥Þ¥¤¥ºÍѤÎÄɲåѥé¥á¡¼¥¿ÉÕ¤­¤Ç̾Á°ÉÕ¤­¥Ñ¥ì¥Ã¥È¤ò»ØÄê¡£ ¸½ºßÄ󶡤·¤Æ¤¤¤ë̾Á°ÉÕ¤­¥Ñ¥ì¥Ã¥È¤Ï¡¢cubehelix (¥Ñ¥¿¡¼¥ó¤Î²¤Ç¥«¥¹¥¿ ¥Þ¥¤¥º²Äǽ) ¤È viridis ¤Ç¤¹¡£

¥ª¥×¥·¥ç¥ó¤Î¤Ê¤¤ set palette ¤Ï¡¢¥Ç¥Õ¥©¥ë¥ÈÃͤËÌᤷ¤Þ¤¹¡£

set palette negative ¤Ï¡¢¥Ñ¥ì¥Ã¥È¤ÎÊý¸þ¤òµÕž¤·¤Þ¤¹¡£Î㤨¤Ð¡¢ set palette viridis negative ¤Ï¡¢ÀĤ«¤é²«¿§¤Ç¤Ï¤Ê¤¯¡¢²«¿§¤«¤éÀĤؤΠ¥°¥é¥Ç¡¼¥·¥ç¥ó¤òºîÀ®¤·¤Þ¤¹¡£

set palette gray ¤Ï¡¢³¥¿§³¬Ä´¤Î¥Ñ¥ì¥Ã¥È¤ËÀÚ¤êÂؤ¨¤Þ¤¹¡£ set palette color ¤ÏºÇ¤âºÇ¶á¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤ËÌᤷ¤Þ¤¹¡£

pm3d ¥«¥é¡¼¶ÊÌ̤Ǥϡ¢³ÆÈù¾®»ÍÊÕ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃͤò¡¢ÈÏ °Ï [min_z, max_z] ¤«¤é³¥¿§³¬Ä´ÃͤÎÈÏ°Ï (¾ï¤Ë [0:1]) ¤Ø¤Î¼ÌÁü¤ÇÊÑ´¹¤¹¤ë ¤³¤È¤Ë¤è¤ê¡¢¤½¤Î»ÍÊÕ·Á¤Î³¥¿§³¬Ä´Ãͤ¬ÆÀ¤é¤ì¤Þ¤¹¡£¥Ñ¥ì¥Ã¥È¤Ï¡¢¤½¤Î³¥¿§³¬ Ä´Ãͤ«¤é RGB ¿§¤Ø¤Î¼ÌÁü¤Ç¤¹¡£

¥Ñ¥ì¥Ã¥È¿§¤ò¡¢ÌÀ¼¨Åª¤Ê¿§»ØÄê¤Ç¤â¸ÀµÚ¤Ç¤­¤Þ¤¹ (°Ê²¼»²¾È: colorspec (20.1))¡£ ¤³¤ì¤Ï¡¢¥ª¥Ö¥¸¥§¥¯¥È¤«¥é¥Ù¥ë¤Ë¥Ñ¥ì¥Ã¥È¿§¤ò³ä¤êÅö¤Æ¤ë¤È¤­¤ËÊØÍø¤Ç¤¹¡£

¥Ñ¥ì¥Ã¥È¤Ï¡¢3 ¼ïÎà¤Î¿§¶õ´Ö RGB, CMY, HSV ¤Î¤¤¤º¤ì¤Ç¤âÄêµÁ¤Ç¤­¤Þ¤¹¡£°Ê ²¼»²¾È: set palette model (112.67.11)¡£ ¤¤¤º¤ì¤Î¿§¶õ´Ö¤Ç¤â¡¢¤½¤Î¿§À®Ê¬¤Ï¤¹¤Ù¤Æ [0,1] ¤ÎÈϰϤËÀ©¸Â¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

112.67.1 Rgbformulae


    set palette rgbformulae <function 1>, <function 2>, <function 3>

¤³¤Î̾Á°¤È¤Ï´Ø·¸¤Ê¤¯¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏÁ´¤Æ¤Î¿§¶õ´Ö¤ËŬÍѤµ¤ì¤Þ¤¹¡£ ¤¢¤Ê¤¿¤Ï¡¢³Æ¿§À®Ê¬¤ËÂФ·¤Æ¡¢¤¢¤é¤«¤¸¤áÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë 36 ¸Ä¤Î³ä¤êÅö¤Æ´Ø ¿ô¤Î¤¦¤Á¤Î°ì¤Ä¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Í­¸ú¤Ê³ä¤êÅö¤Æ´Ø¿ô¤Î°ìÍ÷¤Ï¡¢ show palette rgbformulae ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ï¡¢ set palette rgbformulae 7,5,15 ¤Ç¤¹¡£RGB ¤Î¿§¶õ´Ö¤Ç¤Ï¡¢¤³¤ì¤Ï 7 È֤Π´Ø¿ô¤òÀÖ¤ÎÀ®Ê¬¤Î¼ÌÁü¤Ë»ÈÍѤ·¡¢5 È֤δؿô¤òÎÐÀ®Ê¬¤Î¼ÌÁü¡¢15 È֤δؿô¤ò ÀÄÀ®Ê¬¤Î¼ÌÁü¤Ë»ÈÍѤ·¤Þ¤¹¡£´Ø¿ôÈÖ¹æ¤È¤·¤ÆÉé¤ÎÃͤò»ÈÍѤ¹¤ë¤È¡¢¤½¤ì¤Ï³ä¤ê Åö¤Æ¤òµÕ¡¢¤¹¤Ê¤ï¤Á f(gray) ¤Ç¤Ê¤¯¡¢f(1-gray) ¤Î¼ÌÁü¤Ë¤è¤ëÀ®Ê¬¤Ë¤·¤Þ¤¹¡£

Image figure_palette2
RGB ¤Î¿§¶õ´Ö¤Ç¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÎɤ¤³ä¤êÅö¤Æ¸ø¼°¤¬¤¢¤ê¤Þ¤¹:


  7,5,15   ... ¥Ç¥Õ¥©¥ë¥È (¹õ-ÀÄ-ÀÖ-²«)
  3,11,6   ... ÎÐ-ÀÖ-»ç
  23,28,3  ... ³¤ (ÎÐ-ÀÄ-Çò)
  21,22,23 ... ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò)
  30,31,32 ... ¹õ-ÀÄ-»ç-²«-Çò
  33,13,10 ... Æú (ÀÄ-ÎÐ-²«-ÀÖ)
  34,35,36 ... AFM ²¹ÅÙ¿§ (¹õ-ÀÖ-²«-Çò)

HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È:


  3,2,2    ... ÀÖ-²«-ÎÐ-¿å¿§-ÀÄ-»ç-ÀÖ

112.67.2 Defined

³¥¿§¤«¤é RGB ¤Ø¤ÎÂбþ¤Ï palette defined ¤ò»È¤¦¤³¤È¤Ç¼êÆ°¤ÇÀßÄê¤Ç¤­¤Þ ¤¹: ¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ï RGB ¤ÎÃͤòÍ¿¤¨¤ë¤¿¤á¤ËÄêµÁ¤µ¤ì»ÈÍѤµ¤ì¤Þ¤¹¡£ ¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ï¡¢[0,1] ¤Î³¥¿§Ãͤ«¤é [0,1]x[0,1]x[0,1] ¤Î RGB ¶õ´Ö¤Ø¤Î ¶èʬŪ¤ËÀþ·Á¤Ê¼ÌÁü¤Ç¤¹¡£¤½¤ÎÀþ·ÁÊä´Ö¤Ë»È¤ï¤ì¤ë³¥¿§ÃÍ¤È RGB ÃͤÎÁȤò»Ø Äꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:

½ñ¼°:


     set palette  defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }

¤³¤³¤Ç N ¡æ 2 ¤Ç¡¢<grayN> ¤Ï [0,1] ¤Ë³ä¤êÅö¤Æ¤ë³¥¿§ÃͤǤ¹¡£¤½¤ì¤ËÂбþ ¤¹¤ë RGB ¿§ <colorN> ¤Ï¡¢3 ¼ïÎà¤ÎÊýË¡¤Ç»ØÄê¤Ç¤­¤Þ¤¹:


    <color> :=  { <r> <g> <b> | '<color-name>' | '#rrggbb' }

ÀÖ¡¢ÎС¢ÀĤËÂбþ¤¹¤ë¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿ 3 ¤Ä¤ÎÃÍ (¤½¤ì¤¾¤ì [0,1] Æâ)¡¢°ú ÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿¿§Ì¾¡¢¤Þ¤¿¤Ï°úÍÑÉä¤Ç¤¯¤¯¤é¤ì¤¿ X ·Á¼°¤Î»ØÄêÊý¼°¡¢¤Î¤¤ ¤º¤ì¤«¤Ç¤¹¡£¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÄêµÁ¤Ç¤Ï¡¢¤³¤ì¤é¤Î 3 ¼ï¤Î·¿¤ò¼«Í³¤ËÁÈ¤ß¹ç ¤ï¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¿§¶õ´Ö¤È¤·¤Æ RGB ¤Ç¤Ê¤¤¤â¤Î¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¿§ ̾ "red" ¤Ï¾¯¤·°ã¤Ã¤¿¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£»ÈÍѤǤ­¤ë¿§Ì¾¤Ï show colornames ¤Ç¤½¤Î°ìÍ÷¤ò¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

<gray> ¤ÎÃͤϼ¿ô¤Î¾º½ç¤Ëʤ٤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤½¤ÎÎó¤ÎÃͤϼ«Æ°Åª¤Ë [0,1] ¤ËÊÑ´¹¤µ¤ì¤Þ¤¹¡£

¥«¥Ã¥³¤Ä¤­¤Î¥°¥é¥Ç¡¼¥·¥ç¥ó¤ÎÄêµÁ¤Ê¤·¤Ç set palette defined ¤È¤·¤¿¾ì ¹ç¡¢RGB ¿§¶õ´Ö¤Ë¤·¡¢¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤¿¥Õ¥ë¥¹¥Ú¥¯¥È¥ë¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò »ÈÍѤ·¤Þ¤¹¡£¥°¥é¥Ç¡¼¥·¥ç¥ó¤òɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»È ÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

Îã:

³¥¿§¤Î¥Ñ¥ì¥Ã¥È (Ìò¤ËΩ¤¿¤Ê¤¤¤¬¶µ·±Åª¤Ê) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:


     set palette model RGB
     set palette defined ( 0 "black", 1 "white" )

ÀÄ-²«-À֤Υѥì¥Ã¥È (Á´¤Æ¤¬Åù²Á¤Î) ¤òÀ¸À®¤¹¤ë¤Ë¤Ï:


     set palette defined ( 0 "blue", 1 "yellow", 2 "red" )
     set palette defined ( 0 0 0 1, 1 1 1 0, 2 1 0 0 )
     set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" )

HSV ¿§¶õ´Ö¤Ç¤Î¥Õ¥ë¥«¥é¡¼¥¹¥Ú¥¯¥È¥ë:


     set palette model HSV
     set palette defined ( 0 0 1 1, 1 1 1 1 )
     set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1)

Àְʳ°¤Î¤¢¤ë¿§Áê¤Ç´¬¤­¿Ê¤á¤¿ HSV ¥Õ¥ë¥«¥é¡¼¥¹¥Ú¥¯¥È¥ë


     set palette model HSV start 0.15
     set palette defined ( 0 0 1 1, 1 1 1 1 )

Åù´Ö³Ö¤Ê¾¯¤·¤Î¿§¤À¤±¤Î¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:


     set palette model RGB maxcolors 4
     set palette defined ( 0 "yellow", 1 "red" )

'¸òÄÌ¿®¹æ' (³ê¤é¤«¤Ç¤Ï¤Ê¤¯ gray = 1/3, 2/3 ¤ÇÄ·¤Ó¤ò»ý¤Ä):


     set palette model RGB
     set palette defined (0 "dark-green", 1 "green", \
                          1 "yellow",     2 "dark-yellow", \
                          2 "red",        3 "dark-red" )

112.67.3 Functions


    set palette functions <f1(gray)>, <f2(gray)>, <f3(gray)>

¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢set palette rgbformulae ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢³Æ¿§À®Ê¬¤Ë ÂФ·¤Æ¡¢ÄêµÁºÑ¤ß¤Î´Ø¿ôÈÖ¹æ¤ò»ØÄꤹ¤ëÂå¤ï¤ê¤Ë¼ÂºÝ¤Î´Ø¿ô¤òÍ¿¤¨¤ë¤³¤È¤¬°ã ¤¤¤Þ¤¹¡£³Æ´Ø¿ô¤Î¥À¥ß¡¼ÊÑ¿ô¤¬É¬Íפʤ顢¤½¤ì¤Ï "gray" ¤È¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ ¤»¤ó¡£´Ø¿ô¤Ï¡¢[0,1] ¤ÎÈϰϤΠgray ¤ÎÃͤò¡¢[0,1] Æâ¤ÎÃͤ˼ÌÁü¤·¤Ê¤ì¤Ð¤Ê ¤ê¤Þ¤»¤ó¡£

Îã:

¥Õ¥ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤¹¤ë¤Ë¤Ï:


     set palette model HSV functions gray, 1, 1

¹õ¤«¤é¶â¿§¤Ø¤ÎÎɤ¤¥Ñ¥ì¥Ã¥È:


     set palette model RGB functions 1.1*gray**0.25, gray**0.75, 0

¥¬¥ó¥ÞÊäÀµ¤ÎÇò¹õ¤Î¥Ñ¥ì¥Ã¥È:


     gamma = 2.2
     map(gray) = gray**(1./gamma)
     set palette model RGB functions map(gray), map(gray), map(gray)

112.67.4 Gray

set palette gray ¤Ï¡¢0.0 = ¹õ¤«¤é 1.0 = Çò¤Ø¤Î³¥¿§³¬Ä´ (¥°¥ì¥¤¥¹¥±¡¼ ¥ë) ¥Ñ¥ì¥Ã¥È¤ËÀÚ¤êÂؤ¨¤Þ¤¹¡£³¥¿§³¬Ä´¥Ñ¥ì¥Ã¥È¤«¤é¡¢Ä¾Á°¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È ¤Ë¤Þ¤¿Ì᤹¤Ë¤Ï¡¢set palette color ¤È¤¹¤ë¤Î¤¬´Êñ¤Ç¤¹¡£

112.67.5 Cubehelix

¥ª¥×¥·¥ç¥ó "cubehelix" ¤Ï¤¢¤ë¥Ñ¥ì¥Ã¥È²¤òÄêµÁ¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¡¢³¥¿§³¬ Ä´Ãͤ¬ 0 ¤«¤é 1 ¤ËÁý²Ã¤¹¤ë¤ÈÀµÌ£¤Î´¶³Ð¸÷ÅÙ¤¬Ã±Ä´¤ËÁý²Ã¤¹¤ë°ìÊý¡¢¤½¤Î¥Ñ ¥ì¥Ã¥È¤Î¿§Áê (hue) ¤Ïɸ½à¿§Áê´Ä¤ò²ó¤Ã¤ÆÊѲ½¤·¤Þ¤¹¡£


     D A Green (2011) http://arxiv.org/abs/1108.5083

start ¤Ï¡¢¿§Áê´Ä¤Ë±è¤Ã¤¿³«»ÏÅÀ¤ò¥é¥¸¥¢¥óñ°Ì¤Ç·èÄꤷ¤Þ¤¹¡£ cycles ¤Ï¡¢¥Ñ¥ì¥Ã¥È¤ÎÈϰϤòÅϤäƿ§Áê´Ä¤ò²¿²ó²ó¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£ saturation (ºÌÅÙ) ¤¬Â礭¤¤¤È¡¢¤è¤ê¤¢¤¶¤ä¤«¤Ê¿§¤Ë¤Ê¤ê¤Þ¤¹¡£1 ¤è¤êÂ礭 ¤¤ºÌÅ٤ϡ¢¸Ä¡¹¤Î RGB À®Ê¬¤ò¥¯¥ê¥Ã¥Ô¥ó¥°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¡¢¸÷ÅÙ¤ÏñĴ¤Ç¤Ï ¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£set palette gamma ¤â¥Ñ¥ì¥Ã¥È¤Ë±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥ÈÃͤϰʲ¼¤ÎÄ̤ê¤Ç¤¹¡£


     set palette cubehelix start 0.5 cycles -1.5 saturation 1
     set palette gamma 1.5

112.67.6 Viridis


     set palette viridis

¥Ñ¥ì¥Ã¥È "viridis" ¤Ï¡¢¿§³Ð¤Ë¾ã³²¤Î¤¢¤ë¥æ¡¼¥¶¸þ¤±¤ÎÀĤ«¤é²«¿§¤Ø¤Î¥°¥é ¥Ç¡¼¥·¥ç¥ó¤Ç¤¹¡£viridis ¤Ï¡¢Ste'fan van der Walt ¤È Nathaniel Smith ¤Ë ¤è¤ê³«È¯¤µ¤ì¤Þ¤·¤¿¡£¤½¤ì¤Ï¡¢´¶³ÐŪ¤ÊÌÀ¤ë¤µ (µ±ÅÙ) ¤Î¶á»÷Ū¤ËÀþ·Á¤Ê¥°¥é ¥Ç¡¼¥·¥ç¥ó¤È¤Ê¤ê¤Þ¤¹¡£gnuplot ¤¬»ÈÍѤ¹¤ë¥«¥é¡¼¥Þ¥Ã¥×ÈǤϡ¢°Ê²¼¤Ë´ð¤Å¤¤ ¤Æ¤¤¤Þ¤¹¡£


     "Viridis - Colorblind-Friendly Color Maps for R", Garnier et al (2021)
     https://CRAN.R-project.org/package=viridis

112.67.7 Colormap

set palette colormap <name> ¤Ï¡¢»öÁ°¤Ë colormap ¤È¤·¤ÆÊݸ¤·¤¿ÄêµÁºÑ ¤ß¤Î¥°¥é¥Ç¡¼¥·¥ç¥ó¤òÆɤ߹þ¤ß¤Þ¤¹¡£¤½¤Î¥«¥é¡¼¥Þ¥Ã¥×¤Î¥¢¥ë¥Õ¥¡¥Á¥ã¥ó¥Í¥ë (Æ©²á) ¾ðÊó ¤Ï¡¢¤½¤ì¤¬¤¢¤Ã¤¿¤È¤·¤Æ¤â¡¢¿§¤ÎÃͤ¬¥Ñ¥ì¥Ã¥ÈÄêµÁ¤Ë¥³¥Ô¡¼¤µ¤ì ¤ëºÝ¤Ë¼º¤ï¤ì¤Þ¤¹¡£ °Ê²¼»²¾È: colormap (112.11)¡£

112.67.8 File

set palette file ¤Ï´ðËÜŪ¤Ë set palette defined (<gradient>) ¤ÈƱ ¤¸¤Ç¡¢¤³¤Î <gradient> ¤ò¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤«¤éÆɤ߹þ ¤ß¤Þ¤¹¡£¿§¤ÎÃͤϡ¢Ã±°ì¤Î RGB 3 ¤ÄÁȤΠ24 ¥Ó¥Ã¥ÈÀ°¿ô (using Îó¤¬ 1 ¤Ä ¤« 2 ¤Ä¤Î¾ì¹ç) ¤«¡¢¤Þ¤¿¤Ï 3 ¤Ä¤ÎÊÌ¡¹¤Ê R, G, B À®Ê¬¤Î¼Â¿ôÃÍ (using Îó¤¬ 3 ¤Ä¤« 4 ¤Ä¤Î¾ì¹ç) ¤Î¤¤¤º¤ì¤«¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£ºÇ½é¤ÎÆþÎÏÎó¤ËÌÀ¼¨Åª ¤Ê³¥¿§Ãͤ¬Í¿¤¨¤é¤ì¤Ê¤¤¾ì¹ç¤Ï¡¢¹ÔÈÖ¹æ¤ò¤½¤ì¤È¤·¤Æ»È¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢¿§¼´ ¤Ë±è¤Ã¤ÆÅù´Ö³Ö¤Ê¥Ñ¥ì¥Ã¥È¤òÀ¸À®¤·¤Þ¤¹¡£

¥Õ¥¡¥¤¥ë¤ÏÄ̾ï¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤È¤·¤ÆÆɤà¤Î¤Ç¡¢Á´¤Æ¤Î¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë½¤¾þ »Ò¤¬»È¤¨¤Þ¤¹¡£HSV ¿§¶õ´Ö¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢R ¤Ï¼ÂºÝ¤Ë¤Ï H ¤ò»Ø¤¹¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¥°¥é¥Ç¡¼¥·¥ç¥ó¤òɽ¼¨¤¹¤ë¤Ë¤Ï show palette gradient ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ ¤¤¡£

Îã:

RGB ¤Î¥Ñ¥ì¥Ã¥È¤ò [0,255] ¤ÎÈϰϤÇÆɤ߹þ¤à:


     set palette file 'some-palette' using ($1/255):($2/255):($3/255)

Åù´Ö³Ö¤ÎÆú¿§ (ÀÄ-ÎÐ-²«-ÀÖ) ¥Ñ¥ì¥Ã¥È:


     set palette model RGB file "-" using 1:2:3
     0 0 1
     0 1 0
     1 1 0
     1 0 0
     e

ÌÀ¼¨Åª¤Ê³¥¿§ÃÍ»ØÄê¤È RGB ÃÍ»ØÄê¤ÇƱ¤¸¤³¤È¤ò:


     set palette model RGB file "-" using 1:2
     1  0x0000ff
     2  0x00ff00
     3  0xffff00
     4  0xff0000
     e

¥Ð¥¤¥Ê¥ê¥Ñ¥ì¥Ã¥È¥Õ¥¡¥¤¥ë¤âƱÍͤ˥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: binary general (99.2.1)¡£R,G,B ¤Î double ¤Î¥Ç¡¼¥¿¤Î 64 ¸Ä¤Î 3 ¤ÄÁȤò¥Õ¥¡¥¤¥ë palette.bin ¤Ë½ÐÎϤ·¡¢¤½¤ì¤òÆɤ߹þ¤àÎã:


     set palette file "palette.bin" binary record=64 using 1:2:3

112.67.9 ¥¬¥ó¥ÞÊäÀµ (gamma correction)

set palette gamma <gamma> ¤Ï³¥¿§³¬Ä´¼ÌÁü (set palette gray) ¤È cubehelix ¤Î¥«¥é¡¼¥Ñ¥ì¥Ã¥È·Á¼°¤ËÂФ·¤Æ¼«Æ°Åª¤Ê¥¬¥ó¥ÞÊäÀµ¤ò¹Ô¤¤¤Þ¤¹¡£ gamma = 1 ¤Ï¡¢Àþ·Á¤Î¸÷ÅÙ¥°¥é¥Ç¡¼¥·¥ç¥ó¤òÀ¸À®¤·¤Þ¤¹¡£°Ê²¼»²¾È: test palette (118)¡£

³¥¿§³¬Ä´¼ÌÁü¤ËÂФ·¤Æ <gamma> ¤Î¥Ç¥Õ¥©¥ë¥È¤Ï 1.5 ¤Ç¡¢Ä̾ï¤ÏŬÀÚ¤ÊÃͤǤ¹¡£

¥¬¥ó¥ÞÊäÀµ¤Ï¡¢cubehelix ¥«¥é¡¼¥Ñ¥ì¥Ã¥È·Á¼°¤Ë¤ÏŬÍѤµ¤ì¤Þ¤¹¤¬¡¢Â¾¤Î¿§·Á ¼°¤Ë¤ÏŬÍѤµ¤ì¤Þ¤»¤ó¡£¤·¤«¤·¡¢ÌÀ¼¨Åª¤Ê¿§´Ø¿ô¤Ë¥¬¥ó¥ÞÊäÀµ¤ò¼ÂÁõ¤¹¤ë¤Î¤Ï Æñ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£

Îã:


     set palette model RGB
     set palette functions gray**0.64, gray**0.67, gray**0.70

Êä´Ö¤µ¤ì¤¿¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò»È¤Ã¤Æ¥¬¥ó¥ÞÊäÀµ¤ò¹Ô¤¦¤Ë¤Ï¡¢Å¬Åö¤Ê¿§¤ËÃæ´Ö¤Î Ãͤò»ØÄꤷ¤Þ¤¹¡£


     set palette defined ( 0 0 0 0, 1 1 1 1 )

¤ÎÂå¤ï¤ê¤ËÎ㤨¤Ð°Ê²¼¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤:


     set palette defined ( 0 0 0 0, 0.5 .73 .73 .73, 1 1 1 1 )

¤Þ¤¿¤Ï¡¢Àþ·ÁÊä´Ö¤¬ "¥¬¥ó¥ÞÊäÀµ" ¤ÎÊä´Ö¤Ë½½Ê¬Îɤ¯Å¬¹ç¤¹¤ë¤Þ¤Ç¤è¤êÎɤ¤Ãæ ´Ö¤ÎÅÀ¤òõ¤·¤Æ¤¯¤À¤µ¤¤¡£

112.67.10 ºÇÂ翧¿ô (maxcolors)

set palette maxcolors <N> ¤Ï¥Ñ¥ì¥Ã¥È¤ò¡¢Ï¢Â³¤Ê¥Ñ¥ì¥Ã¥È¤ÎÅù´Ö³Ö¤Ê¶è´Ö ¤«¤é¥µ¥ó¥×¥ê¥ó¥°¤·¤¿ N ¸Ä¤ÎÎ¥»¶Åª¤Ê¿§¤ËÀ©¸Â¤·¤Þ¤¹¡£Î¥»¶Åª¤Ê N ¸Ä¤Î¿§¤ò ÉÔÅù´Ö³Ö¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢Ã±°ì¤ÎϢ³¥Ñ¥ì¥Ã¥È¤ÎÂå¤ï¤ê¤Ë set palette defined ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¤³¤ì¤ÎÂè°ì¤Î»ÈÍÑÌÜŪ¤Ï¡¢Î¥»¶Åª¤Ê¿§¤½¤ì¤¾¤ì¤¬ÃͤÎÈϰϤòÂåɽ¤¹¤ë¤â¤Î¤Ç¡¢ ¤½¤ì¤Ë¤è¤Ã¤Æ²¹ÅÙʬÉÛ¿Þ¤òÀ¸À®¤¹¤ë¤³¤È¤Ç¤¹¡£

2 ¤ÄÌܤλÈÍÑÌÜŪ¤Ï¡¢¸ÂÄꤵ¤ì¤¿¿§¿ô (Î㤨¤Ð gif ¤ä sixel ¤Ç¤Ï 256 ¿§) ¤·¤«¥µ¥Ý¡¼¥È¤·¤Ê¤¤½ÐÎÏ·Á¼°¤Ç¤Î½èÍý¤Ç¤¹¡£gnuplot ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¿§¤Ï ¤½¤Î¤¦¤Á¤Î¤¤¤¯¤Ä¤«¤Þ¤Ç¤ò»ÈÍѤ¹¤ë¤Î¤Ç¡¢¥Ñ¥ì¥Ã¥È¤¬ÍøÍѤǤ­¤ë¿§¿ô¤Ï¤µ¤é¤Ë À©¸Â¤µ¤ì¤Þ¤¹¡£¤è¤Ã¤Æ¡¢Ê£¿ô¤Î¥Ñ¥ì¥Ã¥È¤ò»ÈÍѤ¹¤ë multiplot ¤Ç¤Ï¡¢ºÇ½é¤Î ¥Ñ¥ì¥Ã¥È¤¬ÍøÍѲÄǽ¤Ê¿§°ÌÃÖ¤ò»È¤¤ÀڤäƤ·¤Þ¤Ã¤Æ¼ºÇÔ¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢¤½¤ì ¤¾¤ì¤Î¥Ñ¥ì¥Ã¥È¤Ç»ÈÍѤǤ­¤ë¿§¿ô¤òÀ©¸Â¤¹¤ë¤³¤È¤Ç¡¢²óÈò¤Ç¤­¤Þ¤¹¡£

112.67.11 ¿§¶õ´Ö¥â¥Ç¥ë (color model)


    set palette model { RGB | CMY | HSV {start <radians>} }

¿§¶õ´Ö¤Ï¡¢model ¤ò RGB, HSV, CMY ¤È¤¹¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ RGB ¤Ï¡¢É¸½àŪ¤ÊÀÖ (Red)¡¢ÎÐ (Green)¡¢ÀÄ (Blue) ¤Ë¡¢CMY ¤Ï¿å¿§ (Cyan)¡¢ »ç (Magenta)¡¢²«¿§ (Yellow) ¤Ë¡¢HSV ¤Ï ¿§Áê(Hue)¡¢ºÌÅÙ (Saturation)¡¢ ÌÀÅÙ (Value) ¤Ë´ð¤Å¤¯¿§¶õ´Ö¤Ç¤¹¡£HSV ¿§¶õ´Ö¤Ç¤Ï¡¢H ¤¬ 0 ¤«¤é 1 ¤ËÊѲ½ ¤¹¤ë¤Î¤Ë±þ¤¸¤Æ¿§Áê´ÄÁ´ÂΤò°ì²ó¤ê¤·¡¢¤è¤Ã¤Æ H=0 ¤È H=1 ¤ÏƱ¤¸¿§¤ò¼¨¤¹¤³ ¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤½¤Î²óž¤Î³«»Ï¤È½ªÎ»°ÌÃÖ¤ÏÀ֤Ǥ¹¡£¥ª¥×¥· ¥ç¥ó¥Ñ¥é¥á¡¼¥¿ start ¤Ï¤½¤ì¤ò¤º¤é¤¹¤Î¤Ç¡¢¤è¤Ã¤Æ set palette model HSV start 0.3 ¤Î¸å¤Ç¤Ï¡¢H=0 ¤È H=1 ¤Ï¤¤¤º¤ì¤âÎÐ¤Ë Âбþ¤·¤Þ¤¹¡£

¥«¥é¡¼¥â¥Ç¥ë¤Ë´Ø¤¹¤ë¤µ¤é¤Ê¤ë¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤: http://en.wikipedia.org/wiki/Color_space

(ÌõÃí: ÆüËܸì¤Ç¤Ï "http://ja.wikipedia.org/wiki/¿§¶õ´Ö" ¤¬¤¢¤ê¤Þ¤¹¡£)

¥Ñ¥ì¥Ã¥È¥ª¥×¥·¥ç¥ó¤Ë´Ø¤¹¤ë¥Þ¥Ë¥å¥¢¥ë¤Ï¡¢RGB ¿§¶õ´Ö¤Ë¤Ä¤¤¤Æ½ñ¤«¤ì¤Æ¤¤¤Þ ¤·¤¿¤¬¡¢Î㤨¤Ð¤½¤ì¤Î R ¤Ï¡ÖºÇ½é¤Î¿§À®Ê¬¡×¤ò°ÕÌ£¤·¡¢¤è¤Ã¤Æ¼ÂºÝ¤Ë»ÈÍÑ ¤·¤Æ¤¤¤ë¿§¶õ´Ö¤Ë¤è¤Ã¤Æ¤Ï H¡¢C ¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

112.67.12 Postscript

¤³¤Î¥»¥¯¥·¥ç¥ó¤ÎÆâÍƤϡ¢set term postscript color ¤«¤é¤Î½ÐÎÏ¤Î¤ß¤Ë´Ø Ï¢¤·¤Æ¤¤¤Þ¤¹¡£¥Ñ¥ì¥Ã¥È¤ò set palette rgbforumulae ¤ÇÄêµÁ¤·¤Æ¤¤¤ë¾ì¹ç¡¢ gnuplot ¤ÏÍ׵ᤷ¤¿²òÀÏŪ¤ÊÀ®Ê¬´Ø¿ô¤Î postscript ¤Ç¤Î¼ÂÁõ¤ò¡¢pm3d ¤ÎÉÁ ²è¤ÎľÁ°¤Ë¥Ø¥Ã¥À¤È¤·¤Æ½ñ¤­¤Þ¤¹¡£/g ¤ä /cF ¤ÎÄêµÁ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ÄÌ ¾ï¤Ï¡¢palette ¤¬»ÈÍѤ¹¤ë 3 ¤Ä¤Î¸ø¼°¤ÎÄêµÁ¤Î¤ß¤ò½ñ¤­½Ð¤»¤Ð¤½¤ì¤Ç¤è¤¯¤Æ¡¢ ¤½¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó nops_allcF ¤Ç¤¹¡£¥ª¥×¥·¥ç¥ó ps_allcF ¤Ï¡¢¤½¤ÎÂå¤ï¤ê¤Ë 36 ¸Ä¤Î¸ø¼°Á´¤Æ¤ÎÄêµÁ¤ò½ñ¤­½Ð¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢°ì¤Ä ¤Î¥°¥é¥ÕÆâ¤Ç¶ÊÌÌËè¤Ë°ã¤¦¥Ñ¥ì¥Ã¥È¤ò»È¤¦¤¿¤á¤Ë postscript ¥Õ¥¡¥¤¥ë¤òÊÔ½¸ ¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£

postscript ¥Õ¥¡¥¤¥ë¤Ë pm3d ¶ÊÌ̤ò½ñ¤­½Ð¤¹¾ì¹ç¡¢¤½¤Î¸å¤Ç gnuplot ¤ËÉÕ° ¤¹¤ë awk ¥¹¥¯¥ê¥×¥È pm3dCompress.awk ¤ò¼Â¹Ô¤¹¤ë¤È¤½¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º ¤ò¾®¤µ¤¯¤Ç¤­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£¥Ç¡¼¥¿¤¬»Í³Ñ·Á¤Î³Ê»Ò¾õ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ awk ¥¹¥¯¥ê¥×¥È pm3dConvertToImage.awk ¤ò»È¤¦¤³¤È¤Ç¤è¤êÂ礭¤Ê°µ½ÌΨ¤¬ ÆÀ¤é¤ì¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ ¤¤¤º¤ì¤â¥¹¥¯¥ê¥×¥È¤â gnuplot ¤È¤È¤â¤ËÇÛÉÛ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ »ÈÍÑË¡:


   awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
   awk -f pm3dConvertToImage.awk thefile.ps >smallerfile.ps

112.68 ÇÞ²ðÊÑ¿ô¥â¡¼¥É (parametric)

set parametric ¥³¥Þ¥ó¥É¤Ï plot ¤ª¤è¤Ó splot ¤Î°ÕÌ£¤òÄ̾ï¤Î´Ø¿ôÉÁ ²è¤«¤éÇÞ²ðÊÑ¿ôɽ¼¨ (parametric) ´Ø¿ôÉÁ²è¤ËÊѹ¹¤·¤Þ¤¹¡£unset parametric ¤ò»È¤¨¤Ð¸µ¤ÎÉÁ²è¥â¡¼¥É¤ËÌá¤ê¤Þ¤¹¡£

½ñ¼°:


     set parametric
     unset parametric
     show parametric

2 ¼¡¸µ¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¤Ï¡¢ÇÞ²ðÊÑ¿ôɽ¼¨´Ø¿ô¤Ï¤Ò¤È¤Ä¤ÎÇÞ²ðÊÑ¿ô¤ËÂФ¹¤ë 2 ¤Ä¤Î´Ø¿ô¤ÇÄê¤á¤é¤ì¤Þ¤¹¡£Îã¤È¤·¤Æ¤Ï plot sin(t),cos(t) ¤È¤¹¤ë¤³¤È¤Ë¤è¤Ã ¤Æ±ß¤¬ÉÁ¤±¤Þ¤¹ (¥¢¥¹¥Ú¥¯¥ÈÈ椬Àµ¤·¤¯ÀßÄꤵ¤ì¤Æ¤¤¤ì¤Ð¡£°Ê²¼»²¾È: set size (112.84))¡£gnuplot ¤Ï¡¢Î¾Êý¤Î´Ø¿ô¤¬ÇÞ²ðÊÑ¿ô¤Ë¤è¤ë plot ¤Î¤¿¤á¤Ë Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Þ¤¹¡£

3 ¼¡¸µ¥°¥é¥Õ¤Ë¤ª¤¤¤Æ¤ÏÌÌ¤Ï x = f(u,v), y = g(u,v), z = h(u,v) ¤ÇÄê¤á ¤é¤ì¤Þ¤¹¡£¤è¤Ã¤Æ 3 ¤Ä¤Î´Ø¿ô¤òÁȤǻØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£Îã¤È¤·¤Æ¤Ï¡¢ cos(u)*cos(v),cos(u)*sin(v),sin(u) ¤È¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆµåÌ̤¬ÉÁ¤±¤Þ¤¹¡£ gnuplot ¤Ï¡¢3 ¤ÄÁ´Éô¤Î´Ø¿ô¤¬ÇÞ²ðÊÑ¿ô¤Ë¤è¤ë splot ¤Î¤¿¤á¤ËÍ¿¤¨¤é¤ì ¤Æ¤¤¤Ê¤±¤ì¤Ð¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Þ¤¹¡£

¤³¤ì¤Ë¤è¤Ã¤Æɽ¸½¤Ç¤­¤ë´Ø¿ô·²¤Ï¡¢Ã±½ã¤Ê f(x) ·¿¤Î´Ø¿ô·²¤ÎÆâÊñ¤¹¤ë¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹¡£¤Ê¤¼¤Ê¤é¤Ð¡¢2 ¤Ä (3 ¤Ä) ¤Î´Ø¿ô¤Ï x, y (, z) ¤ÎÃͤòÆÈΩ¤Ë·×»» ¤¹¤ëµ­½Ò¤¬¤Ç¤­¤ë¤«¤é¤Ç¤¹¡£¼ÂºÝ¡¢t,f(t) ¤Î¥°¥é¥Õ¤Ï¡¢°ìÈÖÌܤδؿô¤Î¤è¤¦ ¤Ê¹±Åù´Ø¿ô¤òÍѤ¤¤Æ x ¤ÎÃͤ¬·×»»¤µ¤ì¤ë¾ì¹ç¤Ë f(x) ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤ë¥° ¥é¥Õ¤ÈÅù²Á¤Ç¤¹¡£Æ±Íͤˡ¢3 ¼¡¸µ¤Ç¤Î u,v,f(u,v) ¤ÎÉÁ²è¤Ï¡¢f(x,y) ¤ÈÅù²Á ¤Ç¤¹¡£

ÇÞ²ðÊÑ¿ôɽ¼¨´Ø¿ô¤Ï¡¢x ¤Î´Ø¿ô¡¢y ¤Î´Ø¿ô (¡¢z ¤Î´Ø¿ô)¤Î½ç¤Ë»ØÄꤷ¡¢¤½¤ì ¤é¤Ï¶¦Ä̤ÎÇÞ²ðÊÑ¿ô¤ª¤è¤Ó¤½¤ÎÊÑ°è¤ÇÄêµÁ¤µ¤ì¤ë¤³¤È¤Ëα°Õ¤·¤Æ²¼¤µ¤¤¡£

¤µ¤é¤Ë¡¢set parametric ¤Î»ØÄê¤Ï¡¢¿·¤·¤¤ÊÑ¿ôÊÑ°è¤ò»ÈÍѤ¹¤ë¤³¤È¤ò°Å¤Ë Àë¸À¤·¤Þ¤¹¡£Ä̾ï¤Î f(x) ¤ä f(x,y) ¤¬ xrange¡¢yrange (¡¢zrange) ¤ò»ÈÍÑ ¤¹¤ë¤Î¤ËÂФ·¤Æ¡¢ÇÞ²ðÊÑ¿ô¥â¡¼¥É¤Ç¤Ï¤½¤ì¤Ë²Ã¤¨¤Æ¡¢trange, urange, vrange ¤ò»ÈÍѤ·¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÑ°è¤Ï set trange, set urange, set vrange ¤Ë¤è¤Ã¤ÆľÀÜ»ØÄꤹ¤ë¤³¤È¤â¡¢plot ¤ä splot ¤Ç»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ ¸½»þÅÀ¤Ç¤Ï¡¢¤³¤ì¤é¤ÎÇÞ²ðÊÑ¿ô¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÊÑ°è¤Ï [-5:5] ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¾­ÍèŪ¤Ë¤Ï¤³¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¤â¤Ã¤ÈÍ­°Õ¤Ê¤â¤Î¤ËÊѹ¹¤¹¤ëͽÄê¤Ç¤¹¡£

112.69 Ê¿¹ÔÉÁ²è¼´ÀßÄê (paxis)

½ñ¼°:


     set paxis <axisno> {range <range-options> | tics <tic-options>}
     set paxis <axisno> label <label-options> { offset <radial-offset> }
     show paxis <axisno> {range | tics}

¥³¥Þ¥ó¥É set paxis ¤Ï¡¢Ê¿¹ÔºÂɸÉÁ²è (parallel axis) ¤È¥¯¥â¤ÎÁ㥰¥é¥Õ (spiderplot) ¤Î p1, p2, ... ¼´¤Î°ì¤Ä¤ËºîÍѤ¹¤ë¤³¤È°Ê³°¤Ï¡¢set xrange ¤ä set xtics ¤ÈƱ¤¸¤Ç¤¹¡£°Ê²¼»²¾È: parallelaxes (58), set xrange (112.122), set xtics (112.123)¡£range ¤È tics ¥³¥Þ¥ó¥É¤Ø¤ÎÄ̾ï¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¿¹ÔºÂɸÉÁ ²è¥¹¥¿¥¤¥ë¤Ë¤Ï°ÕÌ£¤Î¤Ê¤¤¤â¤Î¤â¤¢¤ê¤Þ¤¹¤¬¡¢°ì±þ¤¹¤Ù¤Æ¤ò¼õ¤±¤Ä¤±¤Þ¤¹¡£

set paxis <axisno> label <label-options> ¤Ï¡¢spiderplot ÍѤǡ¢¤½¤Î¾ ¤Ç¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£Ê¿¹ÔºÂɸÉÁ²è¤Î¼´¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Î title ¥ª¥×¥·¥ç ¥ó¤Ç¥é¥Ù¥ëÉÕ¤±¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï xtic ¥é¥Ù¥ë¤òÀ¸À®¤¹¤ë¤Î¤Ç¡¢set xtics ¤âɬÍפȤʤ뤳¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¼´¤ÎÀþ¼ï°À­¤Ï¡¢set style parallelaxis ¤ÇÀ©¸æ¤·¤Þ¤¹¡£

112.70 Pixmap

½ñ¼°:


     set pixmap <index> {"filename" | colormap <name>}
                at <position>
                {width <w> | height <h> | size <w>,<h>}
                {front|back|behind} {center}
     show pixmaps
     unset pixmaps
     unset pixmap <index>

¥³¥Þ¥ó¥É set pixmap ¤Ï¡¢¤½¤Î¸å¤Ë³¤¯ plot ¤Çɽ¼¨¤µ¤ì¤ë¥ª¥Ö¥¸¥§¥¯¥È¤ò ÄêµÁ¤¹¤ë¥³¥Þ¥ó¥É set object ¤È»÷¤Æ¤¤¤Þ¤¹¡£¤½¤Î¥Ô¥¯¥¹¥Þ¥Ã¥×¤ò¹½À®¤¹¤ë R/G/B/alpha ¤ÎÃͤÎĹÊý·ÁÇÛÎó¤¬ png, jpeg, gif ¥Õ¥¡¥¤¥ë¤Î¤¤¤º¤ì¤«¤«¤éÆÉ ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£gnuplot ½ÐÎϾå¤Î°ÌÃ֤ȥԥ¯¥¹¥Þ¥Ã¥×¤¬ÀêÍ­¤¹¤ëÈϰϤϡ¢Ç¤°Õ ¤ÎºÂɸ·Ï (°Ê²¼»²¾È: coordinates (11)) ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£at <position> ¤Ç Í¿¤¨¤¿ºÂɸ¤Ï¡¢¥­¡¼¥ï¡¼¥É center ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥Ô¥¯¥¹¥Þ¥Ã¥× ¤Îº¸²¼³Ñ¤ò°ÕÌ£¤·¤Þ¤¹¡£

width <x-extent> ¤ò»ÈÍѤ·¤ÆÉÁ²è¤¹¤ë¥Ô¥¯¥¹¥Þ¥Ã¥×¤Î x ¤ÎÈϰϤò »ØÄꤷ ¤¿¾ì¹ç¡¢¸µ¤Î²èÁü¤Î¥¢¥¹¥Ú¥¯¥ÈÈ椬ÊÝ»ý¤µ¤ì¡¢¼´¤Î¥¹¥±¡¼¥ë¤ä²óž¤Ç¤Ï¥¢¥¹¥Ú ¥¯¥ÈÈæ¤â¥Ô¥¯¥¹¥Þ¥Ã¥×¤Î¸þ¤­¤âÊѹ¹¤·¤Þ¤»¤ó¡£height <y-extent> ¤ò»ÈÍѤ· ¤Æ y ¤ÎÈϰϤò»ØÄꤷ¤¿¾ì¹ç¤âƱÍͤǤ¹¡£size <x-extent> <y-extent> ¤ò»È ÍѤ·¤Æ x ¤È y ¤ÎÈϰϤÎξÊý¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¸µ¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤òÊѹ¹¤·¤Þ¤¹¡£ ¥µ¥¤¥º¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ô¥¯¥»¥ëñ°Ì¤Ç¤Î¸µ¤Î¥µ¥¤¥º¤ò»ÈÍѤ·¤Þ¤¹ (¤è¤Ã¤Æ¤½ ¤Î¼ÂºÝ¤Î¥µ¥¤¥º¤Ï¡¢½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Þ¤¹)¡£

¥Ô¥¯¥¹¥Þ¥Ã¥×¤Ï¡¢¥°¥é¥Õ¤Î¶­³¦¤Ç¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤»¤ó¡£¥ª¥Ö¥¸¥§¥¯¥È¤ä¥ì¥¤ ¥ä¤Î°ìÈÌŪ¤ÊµóÆ°¤ËÂФ¹¤ëÎã³°¤È¤·¤Æ¡¢behind ¥ì¥¤¥ä¤Ë³ä¤êÅö¤Æ¤¿¥Ô¥¯¥¹ ¥Þ¥Ã¥×¤Ï¡¢multiplot ¤Ç¤ÏºÇ½é¤Î plot ¤Ç¤Î¤ßÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢°ì¤Ä¤ÎÇØ ·ÊÍѤΥԥ¯¥¹¥Þ¥Ã¥×¤ò¡¢multiplot ¤Î¤¹¤Ù¤Æ¤Î¥Ñ¥Í¥ë¤Ç¶¦Í­¤¹¤ë¤³¤È¤ò²Äǽ¤Ë ¤·¤Þ¤¹¡£

Îã:


     # ¤¹¤Ù¤Æ¤Î¥°¥é¥Õ¤ÎÇطʤȤ·¤Æ¥°¥é¥Ç¡¼¥·¥ç¥ó¤ò»ÈÍÑ
     # ¥­¥ã¥ó¥Ð¥¹Á´ÂΤòËä¤á¤ë¤è¤¦ x, y ¤ÎξÊý¤ò¥ê¥µ¥¤¥º¤¹¤ë
     set pixmap 1 "gradient.png"
     set pixmap 1 at screen 0, 0 size screen 1, 1 behind


     # ¥°¥é¥Õ¤Î³Æ¥Ú¡¼¥¸¤Î±¦²¼¤Ë¥í¥´¤ò¤òÇÛÃÖ
     set pixmap 2 "logo.jpg"
     set pixmap 2 at screen 0.95, 0 width screen 0.05 behind


     # ¤¢¤ë 3 ¼¡¸µºÂɸ¤Ë¾®¤µ¤¤²èÁü¤òÇÛÃÖ
     # ¤½¤ì¤ÏÉÁ²è¤µ¤ì¤Æ¤¤¤ë¶ÊÌ̤ËÄ¥¤êÉÕ¤¤¤Æ¤¤¤ë¤è¤¦¤Ë°ÜÆ°¤¹¤ë¤¬¡¢
     # ¾ï¤ËÁ°¤ò¸þ¤­Ä¾Î©¤·Â³¤±¤ë
     set pixmap 3 "image.png" at my_x, my_y, f(my_x,my_y) width screen .05
     splot f(x,y)

112.70.1 ¥«¥é¡¼¥Þ¥Ã¥×¤«¤éºî¤ë pixmap (pixmap from colormap)

pixmap ¤Î¤â¤¦°ì¤Ä¤ÎÍøÍÑÌÜŪ¤Ï¡¢¸½ºßÍ­¸ú¤Ê¥Ñ¥ì¥Ã¥È¤ËÂФ·¤Æ¼«Æ°Åª¤Ëºî¤é ¤ì¤ë¥«¥é¡¼¥Ü¥Ã¥¯¥¹¤È¤ÏÊ̤ˡ¢Ì¾Á°ÉÕ¤­¥«¥é¡¼¥Þ¥Ã¥×¤ËÂФ¹¤ë¥«¥é¡¼¥Ü¥Ã¥¯¥¹ ¤òºî¤ë¤³¤È¤Ç¤¹¡£


    set pixmap <index> colormap <name> at <position> size <width>, <height>

112.71 Pm3d

pm3d ¤Ï splot ¤Î°ì¤Ä¤Î¥¹¥¿¥¤¥ë¤Ç¡¢¥Ñ¥ì¥Ã¥È¤Ë³ä¤êÉÕ¤±¤é¤ì¤¿ 3 ¼¡¸µ¡¢ 4 ¼¡¸µ¥Ç¡¼¥¿¤ò¡¢¥«¥é¡¼/³¥¿§¤Î¿§ÃÏ¿Þ¤ä¶ÊÌ̤Ȥ·¤ÆÉÁ²è¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢³Ê »Ò¾õ¤Î¥Ç¡¼¥¿¤äÈó³Ê»Ò¾õ¤Î¥Ç¡¼¥¿¤òÁ°½èÍý¤Ê¤·¤ËÉÁ²è¤Ç¤­¤Þ¤¹¡£pm3d ¤Î¥¹¥¿ ¥¤¥ë¥ª¥×¥·¥ç¥ó¤Ï¡¢Â¾¤Î 3 ¼¡¸µÉÁ²èÍ×ÁǤò¹½ÃÛ¤¹¤ë¤Î¤Ë»È¤ï¤ì¤ëñ¿§Â¿³Ñ·Á ¤Ë¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£

½ñ¼° (¥ª¥×¥·¥ç¥ó¤ÏǤ°Õ¤Î½ç¤ÇÍ¿¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹):


     set pm3d {
                { at <position> }
                { interpolate <steps/points in scan, between scans> }
                { scansautomatic | scansforward | scansbackward
                                 | depthorder {base} }
                { flush { begin | center | end } }
                { ftriangles | noftriangles }
                { clip | clip1in | clip4in }
                { {no}clipcb }
                { corners2color
                  { mean|geomean|harmean|rms|median|min|max|c1|c2|c3|c4 }
                }
                { {no}lighting
                  {primary <fraction>} {specular <fraction>}
                  {spec2 <fraction>}
                }
                { {no}border {retrace} {<linestyle-options>}}
                { implicit | explicit }
                { map }
              }
     show pm3d
     unset pm3d

pm3d ¤Î¶ÊÌ̤ϡ¢splot ¥³¥Þ¥ó¥É¤ËÍ¿¤¨¤¿½ç¤ËϢ³¤·¤ÆÉÁ²è¤¹¤ë¤³¤È¤ËÃí°Õ¤· ¤Æ¤¯¤À¤µ¤¤¡£Àè¤ËÉÁ¤«¤ì¤¿¥°¥é¥Õ¤Ï¡¢¸å¤Î¥°¥é¥Õ¤Ç±£¤µ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ ¤½¤ì¤òÈò¤±¤ë¤¿¤á¤Ë¡¢scan ¥ª¥×¥·¥ç¥ó¤Î depthorder ¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç ¤­¤Þ¤¹¡£

pm3d ¶ÊÌ̤ϡ¢É½¼¨ÏȤÎÅ·°æ (top) ¤äÄìÌÌ (bottom) ¤Ë¼Í±Æ¤Ç¤­¤Þ¤¹¡£ °Ê²¼»²¾È: pm3d position (112.71.5)¡£ °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢°Û¤Ê¤Ã¤¿¹â¤µ¤Ç 3 ¤Ä¤Î¿§ÉÕ¤­¤Î¶ÊÌ̤òÉÁ¤­¤Þ¤¹:


     set border 4095
     set pm3d at s
     splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t

°Ê²¼¤â»²¾È: set palette (112.67), set cbrange (112.153), set colorbox (112.17)¡£¤½¤·¤Æ¥Ç¥â¥Õ ¥¡¥¤¥ë demo/pm3d.dem ¤â»²¹Í¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

112.71.1 With pm3d (ÌÀ¼¨Åª¤Ê pm3d; pm3d explicit)

½ñ¼°


    splot DATA using (x):(y):(z){:(color)} with pm3d
               { at <position>}
               {fs|fillstyle <fillstyle>} {fc|fillcolor <colorspec>}
               {zclip [zmin:zmax]}

¤¹¤Ù¤Æ¤Î pm3d ¶ÊÌ̤ÎÉÁ²è°À­¤Ï¡¢set pm3d ¤ò»È¤Ã¤ÆÀ©¸æ¤Ç¤­¤Þ¤¹¡£¥Ç¥Õ ¥©¥ë¥È¤Ç¤Ï¡¢¶ÊÌÌÁ´ÂΤò»ÍÊÕ·Á¤Î³Ê»Ò¤È¤·¤ÆÉÁ²è¤·¡¢³Æ³Ê»Ò¤Ï z ºÂɸ¤Ë³ä¤ê Åö¤Æ¤é¤ì¤ë¥Ñ¥ì¥Ã¥È¿§¤Ç¿§ÉÕ¤±¤·¤Þ¤¹¡£4 ÈÖÌܤÎÆþÎÏÎó¤òÍ¿¤¨¤ë¤È¡¢¥Ñ¥ì¥Ã¥È ¤Î³ä¤êÅö¤Æ¤Ï z ¤ÎÃͤǤʤ¯¤½¤ÎÃͤò»ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: pm3d fillcolor (112.71.11), pm3d color_assignment (112.71.8)¡£

set pm3d implicit ¤¬Í­¸ú¤Ê¾õÂÖ¤Ç with pm3d °Ê³°¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò»È ÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢plot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë with pm3d ¤ò»ÈÍѤ¹¤ë¾ì¹ç¡¢ ÉÁ²è¥ª¥×¥·¥ç¥ó¤òÄɲ乤뤳¤È¤¬²Äǽ¤Ç¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢Æ±¤¸¥°¥é¥Õ¾å¤Ç¡¢°ã ¤¦¶ÊÌ̤ËÊÌ¡¹¤Î¿§ÉÕ¤±¤Î»ÅÁȤߤò»È¤¦¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£

»î¸³Ãʳ¬: ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î gnuplot ¤Ï¡¢¥ª¥×¥·¥ç¥ó zclip ¤òƳÆþ¤·¤Æ¤¤ ¤Æ¡¢¤½¤ì¤Ï z ¤ÎÃͤζ­³¦¤Ç¶ÊÌ̤ò³ê¤é¤«¤Ê¶ÊÌ̤òÀ¸À®¤¹¤ë¤è¤¦¤Ë¥¯¥ê¥Ã¥Ô¥ó ¥°¤·¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ï¡¢2 ¿§¤Î 3 ¼¡¸µ¶ÊÌ̤Îĺ¾å¤ÎÉôʬ¤ò½ù¡¹¤Ë¾Ã¤·¤Æ¤¤¤¯ ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤òɽ¼¨¤·¤Þ¤¹¡£


    set style line 101 lc "gray"
    set style line 102 lc "blue"
    set pm3d depthorder
    do for [i=0:N] {
        splot f(x,y) with pm3d fillcolor ls 101 zclip [* : zmax-(i*delta)]
        pause 0.2  # ¥¢¥Ë¥á¡¼¥·¥ç¥ó¥Õ¥ì¡¼¥à´Ö³Ö¤Ï 1/5 ÉÃ
    }

112.71.2 °ÅÌÛŪ¤Ê pm3d (pm3d implicit)

splot ¥³¥Þ¥ó¥É¤ÇÌÀ¼¨Åª¤Ë with pm3d ¤ò»ØÄꤷ¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿¤ä´Ø ¿ôÉÁ²è¥¹¥¿¥¤¥ë (style) ¤¬Âç°èŪ¤Ë pm3d ¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤¢¤ë ¤¤¤Ï¡¢pm3d ¥â¡¼¥É¤¬ set pm3d implicit ¤È¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢pm3d ¤Î¥« ¥é¡¼¶ÊÌ̤òÉÁ²è¤·¤Þ¤¹¡£¸å¤Î 2 ¤Ä¤Î¾ì¹ç¤Ï¡¢plot ¥³¥Þ¥ó¥É¤Ç»ØÄꤷ¤¿¥¹¥¿¥¤ ¥ë¤ÇÀ¸À®¤¹¤ëÌÖÌÜ¤Ë pm3d ¶ÊÌ̤òÄɲ乤ë·Á¤ÇÉÁ²è¤·¤Þ¤¹¡£Î㤨¤Ð¡¢


     splot 'fred.dat' with lines, 'lola.dat' with lines

¤Ï¡¢³Æ¥Ç¡¼¥¿½¸¹çËè¤ËÀÞ¤ìÀþ¤Ë¤è¤ëÌÖÌÜ¤È pm3d ¶ÊÌ̤ÎξÊý¤òÉÁ²è¤·¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó explicit (ÌÀ¼¨Åª) ¤¬ ON (¤Þ¤¿¤Ï implicit ¤¬ OFF) ¤Î¾ì¹ç ¤Ï¡¢Â°À­ with pm3d ¤ò»ØÄꤷ¤¿¥°¥é¥Õ¤Î¤ß¤¬ pm3d ¶ÊÌ̤Ȥ·¤ÆÉÁ²è¤µ¤ì¤Þ ¤¹¡£Î㤨¤Ð


     splot 'fred.dat' with lines, 'lola.dat' with pm3d

¤Ï¡¢'freq.dat' ¤ÏÀÞ¤ìÀþ¤Ç (Àþ¤Î¤ß¤Ç)¡¢'lola.dat' ¤Ï pm3d ¶ÊÌ̤ÇÉÁ²è¤· ¤Þ¤¹¡£

gnuplot ¤Îµ¯Æ°»þ¤Ï¤½¤Î¥â¡¼¥É¤Ï explicit (ÌÀ¼¨Åª) ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£Îò »ËŪ¡¢¤½¤·¤Æ¸ß´¹À­¤Î¤¿¤á¤Ë¡¢¥³¥Þ¥ó¥É set pm3d; (¤¹¤Ê¤ï¤Á¥ª¥×¥·¥ç¥ó¤¬ ¤Ê¤¤¾ì¹ç) ¤È set pm3d at X ... (¤¹¤Ê¤ï¤Á at ¤¬ºÇ½é¤Î¥ª¥×¥·¥ç¥ó¤Î¾ì ¹ç) ¤Ï¥â¡¼¥É¤ò implicit (°ÅÌÛŪ) ¤ËÊѹ¹¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É set pm3d; ¤Ï¡¢¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó¤ò¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ËÀßÄꤷ¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿/´Ø¿ô¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò pm3d ¤Ë¤·¤¿¤¤¾ì¹ç¤Ï¡¢Î㤨¤Ð


     set style data pm3d

¤È¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¥ª¥×¥·¥ç¥ó implicit ¤È explicit ¤Ï¸úÎϤò»ý¤Á¤Þ ¤»¤ó¡£

112.71.3 Pm3d ¤Î¥¢¥ë¥´¥ê¥º¥à (algorithm)

¤Þ¤º¡¢ÃÏ¿Þ/¶ÊÌ̤¬¤É¤Î¤è¤¦¤ËÉÁ¤«¤ì¤ë¤Î¤«¤Ë¤Ä¤¤¤Æµ­½Ò¤·¤Þ¤¹¡£ÆþÎϥǡ¼¥¿ ¤Ï¡¢´Ø¿ô¤òɾ²Á¤·¤ÆÆÀ¤é¤ì¤ë¤«¤Þ¤¿¤Ï splot data file ¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£ ¶ÊÌ̤ϡ¢Áöºº (¸ÉΩÀþ) ¤Î·«¤êÊÖ¤·¤Ç¹½À®¤µ¤ì¤Þ¤¹¡£pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ç¤Ï¡¢ ºÇ½é¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤È¡¢¼¡¤ÎÁöºº¤Ç¸¡½Ð¤µ¤ì¤¿Â¾¤Î 2 ÅÀ¤Î ´Ö¤ÎÎΰ褬¡¢¤³¤ì¤é 4 ÅÀ¤Î z ¤ÎÃÍ (¤Þ¤¿¤ÏÄɲ䵤줿 'color' ÍѤÎÎó¤ÎÃÍ¡¢ °Ê²¼»²¾È: using (99.3.11)) ¤Ë½¾¤Ã¤Æ³¥¿§¤Ç (¤Þ¤¿¤Ï ¥«¥é¡¼¤Ç) Åɤé¤ì¤Þ¤¹¡£¥Ç¥Õ¥© ¥ë¥È¤Ç¤Ï 4 ¤Ä¤Î³Ñ¤ÎÃͤÎÊ¿¶ÑÃͤ¬»È¤ï¤ì¤Þ¤¹¤¬¡¢¤½¤ì¤Ï¥ª¥×¥·¥ç¥ó corners2color ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£¤½¤ì¤Ê¤ê¤Î¶ÊÌ̤òÉÁ¤¯¤¿¤á¤Ë¤Ï¡¢ÎÙ¤ê¹ç¤¦ 2 ÅÀ¤ÎÁöºº¤¬¸òº¹¤·¤Æ¤Ï¤¤¤±¤Ê¤¯¤Æ¡¢¶áÀÜÅÀÁöººËè¤ÎÅÀ¤Î¿ô¤¬°ã¤¤¤¹¤®¤Æ¤Ï¤¤ ¤±¤Þ¤»¤ó¡£¤â¤Á¤í¤ó¡¢ºÇ¤âÎɤ¤¤Î¤ÏÁöºº¤ÎÅÀ¤Î¿ô¤¬Æ±¤¸¤³¤È¤Ç¤¹¡£Â¾¤Ë¤Ï²¿¤â ɬÍפǤϤ¢¤ê¤Þ¤»¤ó (Î㤨¤Ð¥Ç¡¼¥¿¤Ï³Ê»Ò¾õ¤Ç¤¢¤ëɬÍפâ¤Ê¤¤)¡£Â¾¤Ë¤â¤³¤Î pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢ÆþÎϤµ¤ì¤¿ (·×¬¤µ¤ì¤¿¡¢¤¢¤ë¤¤¤Ï·×»»¤µ¤ì¤¿) ÎÎ°è ¤Î³°¤Ë¤Ï²¿¤âÉÁ¤«¤Ê¤¤¡¢¤È¤¤¤¦Ä¹½ê¤¬¤¢¤ê¤Þ¤¹¡£

¶ÊÌ̤ο§¤Å¤±¤Ï¡¢°Ê²¼¤Î¤è¤¦¤ÊÆþÎϥǡ¼¥¿¤Ë´Ø¤·¤Æ¹Ô¤ï¤ì¤Þ¤¹:

1. ´Ø¿ô¡¢¤Þ¤¿¤Ï 1 ¤Ä¤« 3 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ¾å¤Ë½Ò¤Ù ¤¿»Í³Ñ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤ÎÊ¿¶ÑÃÍ (¤Þ¤¿¤Ï corners2color) ¤«¤é¡¢³¥ ¿§¤ÎÈÏ°Ï [0:1] ¤òÍ¿¤¨¤ë zrange ¤Þ¤¿¤Ï cbrange ¤ÎÈÏ°Ï [min_color_z,max_color_z] ¤Ø¤ÎÂбþ¤Ë¤è¤ê¡¢³¥¿§/¥«¥é¡¼¤ÎÃͤ¬ÆÀ¤é¤ì¤Þ¤¹¡£ ¤³¤ÎÃͤϡ¢Ä¾Àܳ¥¿§¤Î¿§ÃÏ¿ÞÍѤγ¥¿§¤ÎÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Àµµ¬²½ ¤µ¤ì¤¿³¥¿§¤ÎÃͤò¥«¥é¡¼¤ËÂбþ¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£´°Á´¤ÊÀâÌÀ¤Ï¡¢°Ê²¼ »²¾È: set palette (112.67)¡£

2. 2 ¤Ä¤« 4 ¤Ä¤Î¥Ç¡¼¥¿Î󤫤é¤Ê¤ë¥Ç¡¼¥¿¤Î splot: ³¥¿§/¥«¥é¡¼¤ÎÃͤϡ¢z ¤ÎÃͤÎÂå¤ï¤ê¤ËºÇ¸å¤ÎÎó¤ÎºÂɸ¤ò»È¤Ã¤ÆÆÀ¤é¤ì¤Þ¤¹¤Î¤Ç¡¢¿§¤È z ºÂɸ¤¬ÆÈΩ ¤Ê¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï 4 ¼¡¸µ¥Ç¡¼¥¿¤ÎÉÁ²è¤Ë»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¾¤ÎÃí°Õ:

1. ʪÍý³Ø¼Ô¤Î´Ö¤Ç¤Ï¡¢gnuplot ¤Îʸ½ñ¤ä¥½¡¼¥¹¤Ë¸½¤ï¤ì¤ë 'iso_curve' (¸É ΩÀþ) ¤È¤¤¤¦¸ÀÍÕ¤è¤ê¤â¡¢¾å¤Ç¸ÀµÚ¤·¤¿ 'Áöºº (scan)' ¤È¤¤¤¦¸ÀÍÕ¤ÎÊý¤¬»È ¤ï¤ì¤Æ¤¤¤Þ¤¹¡£1 ÅÙ¤ÎÁöºº¤È¾¤ÎÁöºº¤Îµ­Ï¿¤Ë¤è¤ê¿§ÃÏ¿Þ¤òɾ²Á¤¹¤ë¡¢¤È¤¤¤¦ ¤Î¤Ï¤½¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¡£

2. 'gray' ¤ä 'color' ¤ÎÃÍ (scale) ¤Ï¡¢³ê¤é¤«¤ËÊѲ½¤¹¤ë¥«¥é¡¼¥Ñ¥ì¥Ã¥È¤Ø ¤Î¡¢Ï¢Â³¤ÊÊÑ¿ô¤ÎÀþ·Á¼ÌÁü¤Ç¤¹¡£¤½¤Î¼ÌÁü¤ÎÍͻҤÏÉÁ²è¥°¥é¥Õ¤ÎÎÙ¤ËĹÊý·Á¤Ç ɽ¼¨¤µ¤ì¤Þ¤¹¡£¤³¤Îʸ½ñ¤Ç¤Ï¤½¤ì¤ò "¥«¥é¡¼¥Ü¥Ã¥¯¥¹ (colorbox)" ¤È¸Æ¤Ó¡¢ ¤½¤ÎÊÑ¿ô¤ò¥«¥é¡¼¥Ü¥Ã¥¯¥¹¼´¤ÎÊÑ¿ô¤È¸Æ¤Ó¤Þ¤¹¡£°Ê²¼»²¾È: set colorbox (112.17), set cbrange (112.153)¡£

112.71.4 ¸÷¸»¥â¥Ç¥ë (lighting)

½ñ¼°:


    set pm3d lighting {primary <frac>} {specular <frac>} {spec2 <frac>}
    set pm3d spotlight {rgb <color>} {rot_x <angle>} {rot_z <angle>}
                       {Phong <value>} {default}

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢pm3d ¤Î¿§¤Î³ä¤êÅö¤Æ¤Ï¡¢¸þ¤­¤ä»ëÊý°Ì¤Ë¤Ï°Í¸¤·¤Þ¤»¤ó¡£ ¤½¤Î¾õÂÖ¤Ï set pm3d nolighting ¤ËÂбþ¤·¤Þ¤¹¡£ °ìÊý¡¢¥³¥Þ¥ó¥É set pm3d lighting ¤Ï¡¢°ìÅÀ¤ÎÅÀ¸÷¸»¤«¤é¤Î¾ÈÌÀ¤«¤é¤Î 50% ¤Î¸÷¤Ë¤è¤ëñ½ã¤Ê¸÷¸»¥â¥Ç¥ë¤òÁªÂò¤·¤Þ¤¹¡£¼þ°Ï¤ÎÌÀ¤ë¤µ¤ËÂФ¹¤ë¤½¤Î¸÷ ¸»¤Î¶¯ÅÙ¤Ï set pm3d lighting primary <fraction> ¤ÇÄ´À°¤Ç¤­¤Þ¤¹¡£È¿¼Í ¸÷ (specular) ¤ò´Þ¤Þ¤»¤ëÅٹ礤¤Ï¡¢¤½¤ÎÈæΨ (fraction) ¤ÎÀßÄ꤬¤Ç¤­¤Þ¤¹:


    set pm3d lighting primary 0.50 specular 0.0   # ¥Ï¥¤¥é¥¤¥È¤Ê¤·
    set pm3d lighting primary 0.50 specular 0.6   # ¶¯¤¤¥Ï¥¤¥é¥¤¥È

¥Ù¥¿Åɤê (solid color) ¤Î pm3d ¶ÊÌ̤ϡ¢È¿¼Í¸÷¤Î¥Ï¥¤¥é¥¤¥È¤¬¤Ê¤¤¤È¤È¤Æ ¤âÊ¿¤é¤Ë¸«¤¨¤ë·¹¸þ¤¬¤¢¤ê¤Þ¤¹¡£

¼ç¸÷¸»¤Î¥Ï¥¤¥é¥¤¥È¤Ï¶ÊÌ̤ÎÊÒ¦¤Ë¤·¤«±Æ¶Á¤òÍ¿¤¨¤Ê¤¤¤Î¤Ç¡¢Â¾¤ÎÊý¸þ¤«¤é¸÷ ¤ë 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Î¾ÈÌÀ¤òÄɲ乤ë¤È¤¤¤¤¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£¤³¤Î 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Î¶¯¤µ¤Ï¡¢"spec2 <fraction>" (ÈæΨ) ¤ÇÀßÄꤷ¤Þ¤¹¡£ 2 ÈÖÌܤΥ¹¥Ý¥Ã¥È¥é¥¤¥È¤Ï¡¢spec2 ¤¬À¸¤Î¾ì¹ç¤Ë¤Î¤ß¸÷¸»¥â¥Ç¥ë¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£ ¤½¤ÎÊý¸þ¡¢¿§¡¢È¿¼Í¥â¥Ç¥ë¤Ï¡¢"set pm3d spotlight" ¤ÇÀ©¸æ¤·¤Þ¤¹¡£¤³¤Î¥¹ ¥Ý¥Ã¥È¥é¥¤¥È¤ÎÍøÍÑË¡¤È°ÌÃÖ¼è¤ê¤Ï¡¢ÂÐÏ÷Á¼°¤Î¥Ç¥â spotlight.dem ¤ÇÀâ ÌÀ¤·¤Æ¤¤¤Þ¤¹¡£ hidden_compare.dem ¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ (ñ¿§Åɤê¶ÊÌ̤Πhidden3d ¤È pm3d ¤Î½èÍý¤ÎÈæ³Ó)

Îã:


    set pm3d lighting primary 0.8 spec 0.4 spec2 0.4
    set pm3d spot rgb "blue"

112.71.5 Pm3d ¤Î°ÌÃÖ (position)

pm3d ¤Î¿§ÉÕ¤±¶ÊÌ̤ϡ¢¤½¤Î¶ÊÌ̤ÎËÜÅö¤Î z ¤Î°ÌÃÖ¡¢¤Þ¤¿¤ÏÄìÌ̤«Å·°æ¤ÎÊ¿ÌÌ ¤Ë¼Í±Æ¤òÉÁ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢¥ª¥×¥·¥ç¥ó at ¤Ë¡¢b, t, s ¤Î 6 ¤Ä¤Þ¤Ç¤ÎÁȹ礻¤Îʸ»úÎó¤ò¤Ä¤±¤Æ»ØÄꤹ¤ë¤³¤È¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£Î㤨¤Ð at b ¤ÏÄìÌ̤ΤߤËÉÁ²è¤·¤Þ¤¹¤·¡¢at st ¤ÏºÇ½é¤Ë¶ÊÌ̤ËÉÁ¤¤¤Æ¤½¤ì¤«¤é Å·°æÌ̤ËÉÁ¤­¤Þ¤¹¤·¡¢at bstbst ¤Ï ... Ìò¤Ë¤ÏΩ¤¿¤Ê¤¤¤Ç¤·¤ç¤¦¡£

Åɤé¤ì¤¿»Í³Ñ·Á¤Ï¡¢¼¡¤«¤é¼¡¤Ø¤ÈÉÁ²è¤µ¤ì¤Æ¹Ô¤­¤Þ¤¹¡£¤³¤ì¤Ï¡¢¸å¤ËÉÁ¤¯»Í³Ñ ·Á¤¬¡¢°ÊÁ°¤ËÉÁ¤¤¤¿»Í³Ñ·Á¤òʤ¤Ã¤¿¤ê¡¢½Å¤Ê¤Ã¤¿¤ê¤·¤Þ¤¹¡£ºÇ½é¤ËÁöºº¤µ¤ì¤ë ¥Ç¡¼¥¿¤òºÇ½é¤ËÉÁ¤¯¤«ºÇ¸å¤ËÉÁ¤¯¤«¤òÀÚ¤êÂؤ¨¤ë¥¹¥¤¥Ã¥Á¥ª¥×¥·¥ç¥ó scansforward ¤È scansbackward ¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë¥È¤Ï scansautomatic ¤Ç¡¢¤³¤ì¤Ï gnuplot ¼«¿È¤ËÁöºº¤Î½ç¤ò¿ä¬¤µ¤»¤Þ¤¹¡£¥ª¥× ¥·¥ç¥ó depthorder ¤Ï»Í³Ñ·Á¤Î½ç½ø¤ò»ëÅÀ¤«¤é¤Îµ÷Î¥¤Ç¥½¡¼¥È¤¹¤ë¤³¤È¤Ç´° Á´¤ËºÆ¹½À®¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¤«¤Ê¤êÊ£»¨¤Ê¶ÊÌ̤Ǥâ»ë³ÐŪ¤Ê¤â¤Î¤Ë¤¹¤ë¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: pm3d depthorder (112.71.6)¡£

112.71.6 Áöºº¤Î½çÈÖ (scanorder)


    set pm3d {scansautomatic | scansforward | scansbackward | depthorder}

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢pm3d ¤Îñ¿§Åɤê¶ÊÌ̤ò¹½À®¤¹¤ë»Í³Ñ·Á¤Ï¡¢¤½¤ì¤é¤¬¶ÊÌ̤Π³Ê»ÒÅÀ¤Ë±è¤Ã¤Æ½Ð²ñ¤¦½çÈÖ¤ËÅɤêÄÙ¤µ¤ì¤Þ¤¹¡£¤³¤Î½çÈ֤ϡ¢¥ª¥×¥·¥ç¥ó scansautomatic|scansforward|scansbackward ¤ÇÀ©¸æ¤Ç¤­¤Þ¤¹¡£¤³¤ì¤é ¤ÎÁöºº (scan) ¥ª¥×¥·¥ç¥ó¤Ï¡¢°ìÈ̤ˤϱ£Ì̽èÍý¤È¤ÏξΩ¤·¤Þ¤»¤ó¡£

2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢»Í³Ñ·Á¤ÎÅÀ¤Î¼è¤ê»Ï¤á¤ò¡¢ ξÊý¤ÎÁöºº¤ÎºÇ½é¤«¤é (flush begin) ¤Ë¤¹¤ë¤«¡¢ºÇ¸å¤«¤é (flush end) ¤Ë¤¹¤ë¤«¡¢¿¿Ã椫¤é (flush center) ¤Ë¤¹¤ë¤«¤ò·èÄꤷ¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ flush (center|end) ¤Ï scansautomatic ¤È¤ÏξΩ¤»¤º¡¢¤è¤Ã¤Æ flush center ¤Þ¤¿¤Ï flush end ¤ò»ØÄꤷ¤Æ scansautomatic ¤¬ÀßÄꤵ ¤ì¤¿¾ì¹ç¡¢¤½¤ì¤Ï̵¸À¤Ç scansforward ¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£

2 ²ó¤ÎϢ³¤¹¤ëÁöºº¤ÇÅÀ¤Î¿ô¤¬Æ±¤¸¤Ç¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¸Ä¡¹¤ÎÁöºº¤ÇÅÀ¤¬Â­¤ê¤Ê ¤¤¾ì¹ç¤Ë¡¢Áöºº¤ÎºÇ¸å¤Ë¿§»°³Ñ·Á¤òÉÁ¤¯¤«¤É¤¦¤«¤ò¥ª¥×¥·¥ç¥ó ftriangles ¤Ï»Ø¼¨¤·¤Þ¤¹¡£¤³¤ì¤Ï³ê¤é¤«¤Ê¿§ÃϿޤζ­³¦¤òÉÁ¤¯¤Î¤Ë»È¤ï¤ì¤Þ¤¹¡£

gnuplot ¤Ï¡¢¶ÊÌ̤Îñ¿§Åɤê¤Ë¤ª¤¤¤Æ¤Ï¡¢ËÜÅö¤Î±£Ì̽èÍý¤Ï¹Ô¤¤¤Þ¤»¤ó¤¬¡¢¤¿ ¤¤¤Æ¤¤¤Ï±ó¤¤Êý¤«¤é¶á¤¤Êý¤Ø½ç¤Ë»Í³Ñ·ÁÍ×ÁǤòÅɤêÄÙ¤¹¤³¤È¤Ç½½Ê¬¤Ê¤Ç¤­¤¢¤¬ ¤ê¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥â¡¼¥É¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¤ÇÁªÂò¤Ç¤­¤Þ¤¹:


     set pm3d depthorder

Âç°èŪ¤Ê¥ª¥×¥·¥ç¥ó¤Ç¤¢¤ë set hidden3d ¤Ï¡¢pm3d ¶ÊÌ̤ˤϱƶÁ¤·¤Ê¤¤¤³ ¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¥ª¥×¥·¥ç¥ó depthorder ¤Ï¡¢splot with boxes ¤Çºî¤Ã¤¿ºÙŤ¤Ä¹Êý·Á¤Ë ŬÍѤ¹¤ë¤È¡¢Îɤ¯¤Ê¤¤·ë²Ì¤òÀ¸¤à·¹¸þ¤¬¤¢¤ê¤Þ¤¹¡£¤½¤Î¾ì¹ç¡¢¥­¡¼¥ï¡¼¥É base ¤òÄɲ乤뤳¤È¤Ç¡¢z=0 ¤ÎÊ¿Ì̤ÈÈ¢¤Î¶¦ÄÌÉôʬ¤Ç¿¼¤µ¤Î¥½¡¼¥È¤ò¹Ô¤¦ ¤¿¤á¾¯¤·¤Þ¤·¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤Î·Á¼°¤Î¥°¥é¥Õ¤Ï¡¢¸÷¸»¥â¥Ç¥ë (lighting) ¤òÄÉ ²Ã¤¹¤ì¤Ð¹¹¤Ë²þÁ±¤Ç¤­¤Þ¤¹¡£ Îã:


    set pm3d depthorder base
    set pm3d lighting
    set boxdepth 0.4
    splot $DATA using 1:2:3 with boxes

112.71.7 ¥¯¥ê¥Ã¥Ô¥ó¥° (clipping)

½ñ¼°:


    set pm3d {clip | clip1in | clip4in}
    set pm3d {no}clipcb

pm3d ¶ÊÌ̤侤Π3 ¼¡¸µ¥ª¥Ö¥¸¥§¥¯¥È¤ò¹½À®¤¹¤ë»ÍÊÕ·Á¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¸½ ºß¤Î zrange ¤Ë´Ø¤·¤Æ³ê¤é¤«¤Ë¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹¡£¤³¤ì¤Ï¡¢gnuplot 5.0 °Ê Á°¤È¤Ï°Û¤Ê¤ëµóÆ°¤Ç¤¹¡£2 ¼¡¸µ¼Í±Æ (set view map) ¤Ç¤Ï¡¢¤³¤Î¥â¡¼¥É¤Ï xrange ¤È yrange ¤ËÂФ·¤Æ¤â¥¯¥ê¥Ã¥Ô¥ó¥°¤·¤Þ¤¹¡£

¤½¤ì¤È¤ÏÊ̤ˡ¢4 ¤Ä¤Î³ÑÁ´Éô¤¬ x, y, z ¤ÎÈÏ°ÏÆâ¤Ç¤¢¤ë»ÍÊÕ·ÁÁ´ÂÎ (set pm3d clip4in)¡¢¤Þ¤¿¤Ï¾¯¤Ê¤¯¤È¤â 1 ¤Ä¤Î³Ñ¤¬ x, y, z ¤ÎÈÏ°ÏÆâ¤Ç¤¢ ¤ë»ÍÊÕ·ÁÁ´ÂÎ (set pm3d clip1in)¤òÉÁ²è¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥¯¥ê¥Ã¥Ô¥ó¥°¤¹ ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó clip, clip1in, clip4in ¤ÏÁê¸ß¤ËÇÓ¾ Ū¤Ç¤¹¡£

¶õ´ÖºÂɸ x, y, z ¥Ù¡¼¥¹¤Î¥¯¥ê¥Ã¥Ô¥ó¥°¤È¤ÏÊ̤ˡ¢»ÍÊÕ·Á¤òÉÁ²è¤¹¤ë¤«¤É¤¦ ¤«¤òºÇ½ªÅª¤Ê¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃͤǷèÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ clipcb: (¥Ç¥Õ¥©¥ë¥È) cbmin ̤Ëþ¤Î¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃÍ¤Ï cbmin ¤È¤·¤Æ¡¢ cbmax ¤è¤êÂ礭¤¤¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃÍ¤Ï cbmax ¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ noclipcb: cbrange ³°¤Î¥Ñ¥ì¥Ã¥È¥«¥é¡¼ÃͤλÍÊÕ·Á¤Ï²¿¤âÉÁ²è¤·¤Þ¤»¤ó¡£

112.71.8 ¿§¤Î³ä¤êÅö¤Æ

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢pm3d ¤Î¿§¤Ï¡¢¤½¤Î¶ÊÌÌ¤Î³Ê»Ò¤Î³Æ 4 ÊÕ·ÁËè¤Ë¸ÄÊ̤˳ä¤êÅö ¤Æ¤é¤ì¤Þ¤¹¡£¶ÊÌÌÁ´ÂΤ˰ìÍͤʿ§¤ò³ä¤êÅö¤Æ¤ë¤è¤¦¤Ê¾¤ÎºÌ¿§¤Î»ÅÁȤߤˤĤ¤ ¤Æ¤Ï¡¢°Ê²¼»²¾È: pm3d fillcolor (112.71.11)¡£

³Æ»ÍÊÕ·Á¤Ë¤Ï°ì¤Ä¤Î³¥¿§/¥«¥é¡¼ÃÍ (¥°¥é¥Ç¡¼¥·¥ç¥ó¤Ç¤Ï¤Ê¤¤) ¤ò³ä¤êÅö¤Æ¤Þ ¤¹¡£¤½¤ÎÃͤϡ¢corners2color <option> ¤Ë½¾¤Ã¤Æ»ÍÊÕ·Á¤Î 4 ¤Ä¤Î³Ñ¤Î z ºÂɸ¤«¤é·×»»¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢¤½¤ÎÃͤò¸½ºß¤Î¥Ñ¥ì¥Ã¥È¤«¤é¿§¤òÁªÂò¤¹¤ë¤Î¤Ë »ÈÍѤ·¤Þ¤¹¡£°Ê²¼»²¾È: set palette (112.67)¡£ °ì¤Ä¤Î splot ¥³¥Þ¥ó¥ÉÆâ¤Ç¥Ñ¥ì¥Ã¥È¤òÊѹ¹¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

4 ÎóÌܤ˥ǡ¼¥¿¤òÍ¿¤¨¤¿¾ì¹ç¡¢¸Ä¡¹¤Î»Í³Ñ·Á¤ÎºÌ¿§¤Ï¾å¤ÈƱÍͤ˹Ԥ¤¤Þ¤¹¤¬¡¢ ¿§¤ÎÃÍ¤Ï z ¤ÎÃͤȤÏÊ̤Ȥߤʤµ¤ì¤Þ¤¹¡£Ê̤κ̿§¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢4 ÎóÌÜ ¤Î¥Ç¡¼¥¿¤Ë RGB ¿§¤òÍ¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê²¼»²¾È: rgbcolor variable (20.1.4)¡£ ¤³¤Î¾ì¹ç¡¢ÉÁ²è¥³¥Þ¥ó¥É¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹:


     splot ... using 1:2:3:4 with pm3d lc rgb variable

z ¤ÎÃͤÎÈϰϤȶÊÌ̤理ÎÃͤÎÈϰϤϡ¢set zrange, set cbrange, set log z, set log cb Åù¤Ë¤è¤Ã¤ÆÆÈΩ¤ËÄ´À°¤·ÆÀ¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À ¤µ¤¤¡£

112.71.9 Corners2color

pm3d ¶ÊÌ̤γƻͳѷÁ¤Î¿§¤Ï¡¢¤½¤Î 4 ¤Ä¤ÎĺÅÀ¤Î¿§¤ÎÃͤ˴ð¤Å¤¤¤Æ³ä¤êÅö¤Æ¤é ¤ì¤Þ¤¹¡£<option> ¤Ï 'mean' (¥Ç¥Õ¥©¥ë¥È)¡¢'geomean', 'harmean', 'rms', 'median' ¤Ç¡¢¶ÊÌ̤Υ«¥é¡¼¤ÎÊ¿³ê²½¤Ë´ö¤Ä¤«¤Î¼ïÎà¤òÍ¿¤¨¡¢'min','max' ¤Ï ¤½¤ì¤¾¤ìºÇ¾®ÃÍ¡¢ºÇÂçÃͤòÁªÂò¤·¤Þ¤¹¡£¤³¤ì¤é¤Ï±ÔÉҤʡ¢¤¢¤ë¤¤¤ÏµÞ·ã¤Ê¥Ô¡¼ ¥¯Ãͤò»ý¤Ä¤è¤¦¤Ê¥Ô¥¯¥»¥ë¥¤¥á¡¼¥¸¤ä¿§ÃÏ¿Þ¤òºî¤ë¤È¤­¤Ë¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£ ¤½¤Î¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢¤à¤·¤í¥ª¥×¥·¥ç¥ó 'c1', 'c2', 'c3', 'c4' ¤ò»È¤Ã¤Æ¡¢ »Í³Ñ·Á¤Î¿§¤Î³äÅö¤Ë¤¿¤À°ì¤Ä¤Î³Ñ¤Î z ºÂɸ¤ò»È¤¦¤è¤¦¤Ë¤¹¤ì¤Ð¤¤¤¤¤Ç¤·¤ç¤¦¡£ ¤É¤Î³Ñ¤¬ 'c1' ¤ËÂбþ¤¹¤ë¤Î¤«¤òÃΤ뤿¤á¤Ë¤Ï²¿²ó¤«¼Â¸³¤·¤Æ¤ß¤ëɬÍפ¬¤¢¤ë ¤Ç¤·¤ç¤¦¡£¤½¤Î¸þ¤­¤ÏÉÁ²è¤ÎÊý¸þ¤Ë°Í¸¤·¤Æ¤¤¤Þ¤¹¡£ pm3d ¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢¥«¥é¡¼¶ÊÌ̤òÆþÎϥǡ¼¥¿ÅÀ¤ÎÈϰϤγ°¤Ë¤ÏÉÁ¤«¤Ê¤¤¤Î ¤Ç¡¢¥ª¥×¥·¥ç¥ó 'c<j>' ¤Ï¡¢³Ê»Ò¤Î 2 ¤Ä¤Î¤Ø¤ê¤Ë±è¤Ã¤¿¥Ô¥¯¥»¥ë¤¬¡¢¤É¤Î»Í ³Ñ·Á¤Î¿§¤Ë¤â´óÍ¿¤·¤Ê¤¤¡¢¤È¤¤¤¦·ë²Ì¤ò¤â¤¿¤é¤·¤Þ¤¹¡£Î㤨¤Ð¡¢pm3d ¥¢¥ë¥´ ¥ê¥º¥à¤ò 4x4 ¤Î¥Ç¡¼¥¿ÅÀ¤Î³Ê»Ò¤ËŬÍѤ¹¤ë¥¹¥¯¥ê¥×¥È demo/pm3d.dem (À§ È󸫤Ƥ¯¤À¤µ¤¤) ¤Ç¤Ï¡¢(4-1)x(4-1)=9 ¿§¤·¤«¤Ê¤¤Ä¹Êý·Á¤¬À¸À®¤µ¤ì¤Þ¤¹¡£

112.71.10 Border


    set pm3d border {retrace} {line-properties}
    set pm3d noborder

¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢³Æ»Í³Ñ·Á¤Î¶­³¦Àþ¤ò¡¢»Í³Ñ·Á¤¬ÉÁ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤ËÉÁ²è¤· ¤Þ¤¹¡£ÄɲäÎÀþ°À­ (Àþ¼ï¡¢¿§¡¢ÀþÉý) ¤ÏǤ°Õ¤Ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Éý 1 ¤Î ¹õ¤Î¼ÂÀþ¤Ç¶­³¦¤ò½ñ¤­¤Þ¤¹¡£

set pm3d border retrace ¤Ï¡¢»ÍÊÕ·Á¤ÎÅɤë¤Î¤ÈƱ¤¸¿§¤Ç¶­³¦¤òÅɤ餻¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢·ë²Ì¤È¤·¤Æ noborder ¤ÈƱ¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢½ÐÎϥ⡼¥É¤Ë¤è¤Ã ¤Æ¤Ï¡¢ÎÙÀܤ·¤¿ÅɤêÄÙ¤·»ÍÊÕ·Á¤Î´Ö¤Î¥¢¥ó¥Á¥¨¥¤¥ê¥¢¥¹¤Ë¤è¤ëÉû»ºÊª¤Ë¶ì¤·¤à ¤«¤â¤·¤ì¤Þ¤»¤ó¡£¶­³¦¤òºÆÉÁ²è (retrace) ¤¹¤ë¤³¤È¤Ç¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤ÏÂ礭 ¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤é¤ÎÉû»ºÊª¤ò±£¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

112.71.11 Fillcolor


    splot FOO with pm3d fillcolor <colorspec>

ÉÁ²è¥¹¥¿¥¤¥ë with pm3d ¤Ï¡¢splot ¥³¥Þ¥ó¥É¾å¤Ç fillcolor Äɲ媥ץ·¥ç ¥ó¤ò¼õ¤±¤Ä¤±¤Þ¤¹¡£¤½¤Î»ØÄê¤Ï¡¢pm3d ¶ÊÌÌÁ´ÂΤËŬÍѤµ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: colorspec (20.1)¡£¤¿¤¤¤Æ¤¤¤Î fillcolor »ØÄê¤Ç¤Ïñ°ì¿§¤Îñ¿§Åɤê¤Ë¤Ê¤ê¤Þ¤¹¤¬ ¶ÊÌ̤Îɽ΢¤ÎÍ×ÁǤò¶èÊ̤¹¤ë¤¿¤á¤Î¸÷¸»¥â¥Ç¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¸«¤¿Ìܤò²ò ¼á¤¹¤ë¤Î¤¬Æñ¤·¤¤¤Ç¤·¤ç¤¦¡£°Ê²¼»²¾È: pm3d lighting (112.71.4)¡£

2,3 ÆÃÊ̤ÊÎã¤ò¾Ò²ð¤·¤Þ¤¹¡£with pm3d fillcolor palette ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È ¤Î pm3d ¤Î¥Ñ¥ì¥Ã¥È¥Ù¡¼¥¹¤ÎÇÛ¿§¤ÈÁ´¤¯Æ±¤¸·ë²Ì¤òÀ¸À®¤·¤Þ¤¹¤Î¤Ç¡¢Ìò¤ËΩ¤Ä ¥ª¥×¥·¥ç¥ó¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ with pm3d fillcolor linestyle N ¤Ï¿¾¯°ÕÌ£¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢ gnuplot ¤Î hidden3d ¥â¡¼¥É¤ò»È¤Ã¤¿¾ì¹ç¤ÎÇÛ¿§¤Î»ÅÁȤߤÈƱÍÍ¡¢pm3d ¶Ê Ì̤ξ妤Ȳ¼Â¦¤Ë°Û¤Ê¤ë¿§¤ò³ä¤êÅö¤Æ¤ëÊѼï¤Ç¤¹¡£Àþ¼ï N ¤ò¾å¦¤Î¶ÊÌ̤ˡ¢ Àþ¼ï N+1 ¤ò²¼Â¦¤Î¶ÊÌ̤˻ÈÍѤ·¤Þ¤¹¡£¡Ö¾å¦¡×¤È¡Ö²¼Â¦¡×¤Ï¡¢Áöºº (scan) ½ç½ø¤Ë°Í¸¤·¤Þ¤¹¤Î¤Ç¡¢pm3d scansbackward ¤È pm3d scansforward ¤Ç¤Ï ÇÛ¿§¤¬µÕ¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ÎÇÛ¿§¥ª¥×¥·¥ç¥ó¤Ï¡¢ pm3d depthorder ¤È¤Ç¤ÏºÇŬ¤Ëµ¡Ç½¤·¤Þ¤¹¤¬¡¢¤½¤ì¤Ï»ÄÇ°¤Ê¤¬¤éÁöºº½ç½ø¤Î À©¸æ¤òµö¤·¤Þ¤»¤ó¤Î¤Ç¡¢Âå¤ï¤ê¤ËÀþ¼ï N ¤È N+1 ¤ÇÄêµÁ¤µ¤ì¤ë¿§¤òÆþ¤ìÂؤ¨¤Ê ¤¤¤È¤¤¤±¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£

112.71.12 Interpolate

¥ª¥×¥·¥ç¥ó interpolate m,n ¤Ï¡¢¤è¤êºÙ¤«¤ÊÌÖÌܤòºî¤ë¤¿¤á¤Ë³Ê»ÒÅÀ´Ö¤ò Êä´Ö¤·¤Þ¤¹¡£¥Ç¡¼¥¿ÉÁ²è¤ËÂФ·¤Æ¤Ï¡¢¤³¤ì¤Ï¿§¤Î¶ÊÌ̤ò³ê¤é¤«¤Ë¤·¡¢¤½¤Î¶ÊÌÌ ¤ÎÀí¤ê¤òÊäÀµ¤·¤Þ¤¹¡£´Ø¿ôÉÁ²è¤ËÂФ·¤Æ¤Ï¡¢¤³¤ÎÊä´Ö¤Ï¤Û¤È¤ó¤É°ÕÌ£¤Ï¤¢¤ê¤Þ ¤»¤ó¤«¤é¡¢´Ø¿ôÉÁ²è¤Î¾ì¹ç¤ÏÉáÄÌ samples ¤ä isosamples ¤ò»È¤Ã¤ÆɸËÜ ¿ô¤òÁý²Ã¤µ¤»¤ë¤Î¤¬¤¤¤¤¤Ç¤·¤ç¤¦¡£

Àµ¤Î m, n ¤ËÂФ·¤Æ¤Ï³Æ»Í³Ñ·Á¡¢¤Þ¤¿¤Ï»°³Ñ·Á¤Ï¡¢¤½¤ì¤¾¤ì¤ÎÊý¸þ¤Ë m ²ó¡¢ n ²óÊä´Ö¤µ¤ì¤Þ¤¹¡£Éé¤Î m, n ¤Ç¤ÏÊä´Ö¤ÎÉÑÅ٤ϡ¢¾¯¤Ê¤¯¤È¤â |m|, |n| ÅÀ¤¬ ÉÁ²è¤µ¤ì¤ë¤è¤¦¤ËÁªÂò¤µ¤ì¤Þ¤¹¡£¤³¤ì¤ÏÆÃÊ̤ʳʻҴؿô¤È¸«¤Ê¤¹¤³¤È¤¬¤Ç¤­¤Þ ¤¹¡£

Ãí°Õ: interpolate 0,0 ¤Ï¡¢¼«Æ°Åª¤ËºÇŬ¤ÊÊä´Ö¶ÊÌÌÅÀ¿ô¤òÁªÂò¤·¤Þ¤¹¡£

Ãí°Õ: corners2color ¤Ç´ö²¿Ê¿¶Ñ (geomean) ¤Î¤è¤¦¤ÊÈóÀþ·Áɾ²Á¤¬ÀßÄꤵ¤ì ¤Æ¤¤¤¿¤È¤·¤Æ¤â¡¢¸½ºß¤Î¿§¤ÎÊä´Ö¤Ï¾ï¤ËÀþ·ÁÊä´Ö¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£

112.71.13 Èó¿ä¾©¤Ê¥ª¥×¥·¥ç¥ó

Èó¿ä¾©¤Ê¥ª¥×¥·¥ç¥ó set pm3d map ¤Ï¡¢°Ê²¼¤ÈƱÅù¤Ç¤¹¡£ set pm3d at b; set view map; set style data pm3d; set style func pm3d;

Èó¿ä¾©¤Ê¥ª¥×¥·¥ç¥ó set pm3d hidden3d N ¤Ï¡¢°Ê²¼¤ÈƱÅù¤Ç¤¹¡£ set pm3d border ls N

112.72 Pointinterval ¤ÎÈ¢¥µ¥¤¥º (pointintervalbox)

Àþ°À­ pointinterval, pointnumber ¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë linespoints ¤Ç¤Î¤ß»È¤ï¤ì¤Þ¤¹¡£pointinterval ¤ä pointnumber ¤ÎÃͤòÉé¡¢Î㤨¤Ð -N ¤È ¤¹¤ë¤È¡¢ÅÀ¤Îµ­¹æ¤òÉÁ¤¯Á°¤Ë¡¢³ÆÅÀ¤Îµ­¹æ¤Î¸å¤í¤ÎÈ¢ (¼ÂºÝ¤Ë¤Ï±ß) ¤ÎÉôʬ ¤òÇØ·Ê¿§¤ÇÅɤê¤Ä¤Ö¤¹¤³¤È¤Ç¾Ã¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É set pointintervalbox ¤Ï ¤½¤Î¾Ã¤¹Îΰè¤ÎÂ礭¤µ (Ⱦ·Â) ¤òÀ©¸æ¤·¤Þ¤¹¡£»ØÄꤹ¤ëÃͤϥǥե©¥ë¥È¤ÎȾ·Â (= pointsize) ¤ËÂФ¹¤ëÇÜΨ¤Ç¤¹¡£unset pointintervalbox ¤Ï¡¢ÅÀµ­¹æ¤Î Çطʤκï½ü¤ò¤ä¤á¤Þ¤¹¡£

112.73 ÅÀ¥µ¥¤¥º (pointsize)

¥³¥Þ¥ó¥É set pointsize ¤ÏÉÁ²è¤Ç»È¤ï¤ì¤ëÅÀ¤ÎÂ礭¤µ¤òÊѹ¹¤·¤Þ¤¹¡£

½ñ¼°:


     set pointsize <multiplier>
     show pointsize

¥Ç¥Õ¥©¥ë¥È¤Ï 1.0 ÇܤǤ¹¡£²èÁü¥Ç¡¼¥¿½ÐÎϤǤϡ¢Â礭¤¤¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÊý ¤¬¸«¤ä¤¹¤¤¤Ç¤·¤ç¤¦¡£

°ì¤Ä¤ÎÉÁ²è¤ËÂФ¹¤ë¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ï plot ¥³¥Þ¥ó¥É¤Î¾å¤Ç¤âÊѹ¹¤Ç¤­¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: plot with (99.10)¡£

¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ÎÀßÄê¤Ï¡¢É¬¤º¤·¤âÁ´¤Æ¤Î½ÐÎÏ·Á¼°¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤ï¤± ¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

112.74 ¶ËºÂɸ¥â¡¼¥É (polar)

¥³¥Þ¥ó¥É set polar ¤Ï¥°¥é¥Õ¤ÎÉÁ²èÊýË¡¤ò xy ľ¸òºÂɸ·Ï¤«¤é¶ËºÂɸ·Ï¤Ë Êѹ¹¤·¤Þ¤¹¡£

½ñ¼°:


     set polar
     set polar grid <grid options>
     unset polar
     show polar

¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï¡¢²¾ÊÑ¿ô (t) ¤Ï³ÑÅ٦Ȥò°ÕÌ£¤·¤Þ¤¹¡£t ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÈÏ °Ï¤Ï [0:2*pi] ¤Ç¤¹¤¬¡¢Ã±°Ì¤È¤·¤ÆÅÙ¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤ì¤Ð [0:360] ¤È¤Ê¤ê¤Þ ¤¹ (°Ê²¼»²¾È: set angles (112.1))¡£

¥³¥Þ¥ó¥É unset polar ¤ÏÉÁ²èÊýË¡¤ò¥Ç¥Õ¥©¥ë¥È¤Î xy ľ¸òºÂɸ·Ï¤ËÌᤷ¤Þ ¤¹¡£

set polar ¥³¥Þ¥ó¥É¤Ï 2 ¼¡¸µÉÁ²è¤Ë¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£Æ±ÍͤΠ3 ¼¡¸µµ¡ ǽ¤Î¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set mapping (112.48)¡£

¶ËºÂɸ¥â¡¼¥É¤Ç¤Ï t ¤Î¿ô¼°¤Î°ÕÌ£¤Ï r=f(t) ¤È¤Ê¤ê¡¢t ¤Ï²óž³Ñ¤È¤Ê¤ê¤Þ¤¹¡£ trange ¤Ï´Ø¿ô¤ÎÄêµÁ°è (³ÑÅÙ) ¤òÀ©¸æ¤·¡¢rrange, xrange, yrange ¤Ï¤½¤ì¤¾ ¤ì¥°¥é¥Õ¤Î x,y Êý¸þ¤ÎÈϰϤòÀ©¸æ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÈÏ°Ï¤È rrange ¤Ï¼«Æ°Åª¤ËÀßÄꤵ¤ì¤ë¤«¡¢¤Þ¤¿¤ÏÌÀ¼¨Åª¤ËÀßÄê¤Ç¤­¤Þ¤¹¡£¾ÜºÙ¤Ë´Ø¤· ¤Æ¤Ï¡¢°Ê²¼»²¾È: set rrange (112.81), set xrange (112.122)¡£

Îã:


     set polar
     plot t*sin(t)
     set trange [-2*pi:2*pi]
     set rrange [0:3]
     plot t*sin(t)

ºÇ½é¤Î plot ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î³ÑÅÙ¤ÎÈϰϤΠ0 ¤«¤é 2*pi ¤ò»È¤¤¤Þ¤¹¡£Æ°·Â Êý¸þ¤È¥°¥é¥Õ¤Î¥µ¥¤¥º¤Ï¼«Æ°Åª¤Ë¿­½Ì¤µ¤ì¤Þ¤¹¡£2 ÈÖÌܤΠplot ¤Ï³ÑÅÙ¤ÎÄê µÁ°è¤ò³ÈÄ¥¤·¡¢¥°¥é¥Õ¤Î¥µ¥¤¥º¤ò¸¶ÅÀ¤«¤é 3 ¤ÎÉý¤ËÀ©¸Â¤·¤Þ¤¹¡£¤³¤ì¤Ï x,y ¤Î¤½¤ì¤¾¤ì¤ÎÊý¸þ¤ò [-3:3] ¤ËÀ©¸Â¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¶ËºÂɸ¥°¥é¥Õ¤Ï³ÑÅÙ 0 (¦È=0) ¤¬±¦¸þ¤­¤Ç¡¢Áý²Ã¤ÏÈ¿»þ·×²ó¤ê ¤È¤Ê¤ë¤è¤¦¤Ë¸þ¤­¤Å¤±¤é¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤Î 0 ¤Î¸þ¤­¤ÈÁý²ÃÊý¸þ¤ÎξÊý¤òÌÀ¼¨ Ū¤ËÊѹ¹²Äǽ¤Ç¤¹¡£°Ê²¼»²¾È: set theta (112.91)¡£

set size square ¤È¤¹¤ë¤È gnuplot ¤Ï¥¢¥¹¥Ú¥¯¥ÈÈæ (½Ä²£¤ÎÈæ) ¤ò 1 ¤Ë ¤¹¤ë¤Î¤Ç±ß¤¬ (ÂʱߤǤʤ¯) ±ß¤Ë¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±¿´±ß¤Î¼þ°Ï¤ÎÌÜÀ¹ ¤ê¤Î¹ï¤ß¤Ï¡¢set ttics ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£ °Ê²¼¤â»²¾È ¶ËºÂɸ¤Î¥Ç¥â (polar.dem)

¤ª¤è¤Ó ¶ËºÂɸ¥Ç¡¼¥¿¤ÎÉÁ²è (poldat.dem)¡£

112.74.1 ¶ËºÂɸ³Ê»Ò (polar grid)

½ñ¼°:


     set polar grid {<theta_segments>, <radial_segments>}
                    { qnorm {<power>} | gauss | cauchy | exp | box | hann }
                    { kdensity } { scale <scale> }
                    {theta [min:max]} {r [min:max]}

¶ËºÂɸ³Ê»Ò¤ÎÀßÄê¤Ï¡¢ÉÁ²è¥¹¥¿¥¤¥ë with surface ¤ÈÁȤ߹ç¤ï¤»¤Æ¶ËºÂɸ¤Î ÅÀ½¸¹ç¤«¤é²¹ÅÙʬÉÛ¿Þ (heat map) ¤òÀ¸À®¤¹¤ë¤Î¤Ë»È¤¤¤Þ¤¹¡£Ì̤ϡ¢±ß¤òËä¤á ¿Ô¤¯¤¹³Ê»Ò¤«¤é¤Ê¤ê¡¢¤½¤ì¤Ë¤è¤ê¦È¤È r ¤ÎÎ¥»¶Åª¤ÊÈϰϤǷÁºî¤ëÉôʬ¤Ç±ß¤ò ʬ³ä¤·¤Þ¤¹¡£

³ÆÉôʬ¤Ë¤Ï¡¢¸Ä¡¹¤Î»¶ºßÅÀ [x,y,z] ¤ÎÆþÎϽ¸¹ç¤«¤é¥Õ¥£¥ë¥¿Áàºî¤ÎŬÍÑ¤Ë¤è ¤êƳ¤«¤ì¤ëÃͤò³ä¤êÅö¤Æ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥£¥ë¥¿¤Ï qnorm 1 ¤Ç¡¢¤³¤ì ¤Ï³ÆÅÀ¤Î¡¢³Ê»ÒÉôʬ¤ÎÃæ¿´¤«¤é¤½¤ÎÅÀ¤Þ¤Ç¤Îµ÷Î¥¤ÎµÕ¿ô¤Ç½Å¤ß¤Å¤±¤µ¤ì¤¿ z ÃͤÎÊ¿¶Ñ¤ò¼è¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

¾¤Î¥Õ¥£¥ë¥¿Áàºî gauss, cauchy, exp, box, hann ¤Ë´Ø¤·¤Æ¤Ï¡¢¤Û¤«¤Î¾ì½ê ¤Ç¾Ü¤·¤¯ÀâÌÀ¤·¤Æ¤¤¤Þ¤¹¡£°Ê²¼»²¾È: dgrid3d (112.25)¡£

kdensity: ¤³¤Î¥­¡¼¥ï¡¼¥É¤Ï¡¢gnuplot ¤Ë¡¢½Å¤ß¤Ä¤­¤ÎÊ¿¶Ñ¤ÎÂå¤ï¤ê¤Ë¡¢ ¤¹¤Ù¤Æ¤ÎÅÀ¤«¤é¤Î´óÍ¿¤Î½Å¤ßÉÕ¤­¤ÎϤò»ÈÍѤ¹¤ë¤³¤È¤ò»Ø¼¨¤·¤Þ¤¹¡£

scale: ¤³¤Î¥¹¥±¡¼¥ë°ø»Ò (¥Ç¥Õ¥©¥ë¥È¤Ï 1.0) ¤Ï¡¢½Å¤ß·×»»¤ÇÃͤò»È¤¦Á° ¤Ë¡¢¤¹¤Ù¤Æ¤Îµ÷Î¥¤ËÂФ·¤Æ¥¹¥±¡¼¥ê¥ó¥°¤òŬÍѤ·¤Þ¤¹¡£

¥Þ¥¹¥­¥ó¥°: ¤¹¤Ù¤Æ¤ÎÆþÎÏÅÀ¤ò¡¢³Ê»ÒÃͤò·×»»¤¹¤ë¤Î¤Ë»ÈÍѤ·¤Þ¤¹¡£´°Á´¤Ë ³Ê»Ò¤ÎÄ¥¤é¤ì¤¿Ì̤ϡ¢¾ï¤Ë¦È¤ÎÈÏ°Ï [0:360] ¡¢¤ª¤è¤Ó¼«Æ°½Ì¼Ü¡¢¤Þ¤¿¤ÏÁ°¤Ë ¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É set rrange ¤ÇÄêµÁ¤µ¤ì¤ëÆ°·ÂÈϰϤËÅϤê¤Þ¤¹¡£¤·¤«¤· Ì̤μºݤ˥°¥é¥Õ¤Ë¸½¤ì¤ëÉôʬ¤Ï¡¢¦È¤ä r ¤Î²¼¸Â¡¢¾å¸Â¤Ë¤è¤Ã¤ÆÀÚ¤êÍ¤¿ ¤¯¤µ¤Ó·¿¾õ¤ËÀ©¸Â¤Ç¤­¤Þ¤¹¡£¦È¤ÎÈϰϤÏÅÙñ°Ì¤ÇÍ¿¤¨¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

Image figure_polar_grid
Î㤨¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥µ¥¤¥º¤Ë¤ª¤¤¤Æ¼«Æ°½Ì¼Ü¤µ¤ì¤¿¤¹¤Ù¤Æ¤ÎÆþÎÏÅÀ ¤ò¼¨¤¹¥°¥é¥Õ¤òÀ¸À®¤·¤Þ¤¹¡£¤¹¤Ù¤Æ¤ÎÆþÎÏÅÀ¤Î´óÍ¿¤ÏÊ¿¶Ñ¤Ç¤Ï¤Ê¤¯Ï¤Ǥ¢¤Ã ¤Æ (kdensity)¡¢·ë²Ì¤È¤·¤Æ¤Î³Ê»ÒÌ̤Τ¯¤µ¤ÓÉôʬ¤Î¤ß¤òɽ¼¨¤·¤Þ¤¹¡£


    set rrange [0:*]
    set polar grid qnorm kdensity theta [0:190]
    plot DATA with surface, DATA with points

112.75 Print ¥³¥Þ¥ó¥É¤Î½ÐÎÏÀè (print)

¥³¥Þ¥ó¥É set print ¤Ï print ¥³¥Þ¥ó¥É¤Î½ÐÎϤò¥ê¥À¥¤¥ì¥¯¥È¤·¤Þ¤¹¡£

½ñ¼°:


     set print
     set print "-"
     set print "<filename>" [append]
     set print "|<shell_command>"
     set print $datablock [append]

¥Ñ¥é¥á¡¼¥¿¤Ê¤·¤Î set print ¤Ï¡¢½ÐÎϤò <STDERR> ¤ËÉüµ¢¤µ¤»¤Þ¤¹¡£"-" ¤È¤¤¤¦ <filename> ¤Ï <STDOUT> ¤ò°ÕÌ£¤·¤Þ¤¹¡£append ¥Õ¥é¥°¤Ï¥Õ¥¡¥¤¥ë ¤òÄɲà (append) ¥â¡¼¥É¤Ç³«¤¯¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ñ¥¤¥×¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥×¥é ¥Ã¥È¥Û¡¼¥à¾å¤Ç¤Ï¡¢<filename> ¤¬ "|" ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤¿¤é¡¢<shell_command> ¤Ø¤Î¥Ñ¥¤¥×¤¬³«¤«¤ì¤Þ¤¹¡£

¥³¥Þ¥ó¥É print ¤ÎÂоݤÏ̾Á°ÉÕ¤­¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£¥Ç¡¼¥¿ ¥Ö¥í¥Ã¥¯Ì¾¤Ï '$' ¤Ç»Ï¤Þ¤ê¤Þ¤¹¡£°Ê²¼»²¾È: inline data (18)¡£ ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤Øʸ»úÎó¤ò½ÐÎϤ¹¤ë¾ì¹ç¡¢²þ¹Ôʸ»ú¤¬Æþ¤Ã¤Æ¤¤¤ë¤È¡¢¤½¤ì¤Ï Ê£¿ô¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¹Ô¤òÀ¸À®¤¹¤ë¤è¤¦¤ËŸ³«¤µ¤ì¤Þ¤¹¡£

112.76 PostScript ÄêµÁ¥Õ¥¡¥¤¥ë¥Ñ¥¹ (psdir)

¥³¥Þ¥ó¥É set psdir <directory> ¤Ï¡¢postscript ½ÐÎÏ·Á¼°¤¬ prologue.ps ¤äʸ»ú¥¨¥ó¥³¡¼¥ÉÍѤΥե¡¥¤¥ë¤òõ¤¹¤Î¤Ë»ÈÍѤ¹¤ë¸¡º÷¥Ñ¥¹¤òÀ©¸æ¤·¤Þ¤¹¡£¤³ ¤Î»ÅÁȤߤϡ¢ÊÌ¤Ë¥í¡¼¥«¥ë¤Ë¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿ prolog ¥Õ¥¡¥¤¥ë·²¤ÈÀÚ¤êÂؤ¨ ¤ë¤Î¤Ë»È¤¨¤Þ¤¹¡£¸¡º÷¤Î½çÈ֤ϰʲ¼¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£


     1) `set psdir` ¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê
     2) ´Ä¶­ÊÑ¿ô GNUPLOT_PS_DIR ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê
     3) ÁȤ߹þ¤Þ¤ì¤¿¥Ø¥Ã¥À¡¼¡¢¤Þ¤¿¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥·¥¹¥Æ¥à¥Ç¥£¥ì¥¯¥È¥ê
     4) `set loadpath` ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê

112.77 ¶ËºÂɸ¤ÎÆ°·Â¼´ (raxis)

¥³¥Þ¥ó¥É set raxis ¤È unset raxis ¤Ï¡¢Æ°·Â¼´¤ò³Ê»ÒÀþ¤È x ¼´¤«¤éʬ Î¥¤·¤ÆÉÁ²è¤¹¤ë¤«¤É¤¦¤«¤òÀÚ¤êÂؤ¨¤Þ¤¹¡£¸½ºß¤Î rrange ¤ÎºÇ¾®Ãͤ¬ 0 ¤Ç¤Ê ¤¤ (¤½¤·¤Æ¼«Æ°½Ì¼Ü¤Ç¤Ê¤¤) ¾ì¹ç¡¢¥°¥é¥Õ¤È¼´¤¬¸¶ÅÀ¤Ë㤷¤Ê¤¤¤³¤È¤ò¼¨¤¹Çò ´Ý¤¬¶ËºÂɸ¥°¥é¥Õ¤ÎÃæ¿´¤ËÉÁ¤«¤ì¤Þ¤¹¡£¼´¤ÎÀþ¤Ï¡¢¥°¥é¥Õ¤Î¶­³¦¤ÈƱ¤¸Àþ¼ï¤Ç ÉÁ²è¤µ¤ì¤Þ¤¹¡£°Ê²¼»²¾È: polar (112.74), rrange (112.81), rtics (112.82), rlabel (112.79), set grid (112.32)¡£

112.78 Rgbmax

½ñ¼°:


    set rgbmax {1.0 | 255}
    unset rgbmax

rgbimage ¥°¥é¥Õ¤Î RGB (ÀÖ¡¢ÎС¢ÀÄ) ¿§À®Ê¬¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï [0:255] ¤Î ÈϰϤÎÀ°¿ôÃͤǤ¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£set rgbmax 1.0 ¤È¤¹¤ë¤È¡¢gnuplot ¤Ï rgbimage ¤ä rgbalpha ¤Ç¤Î¥°¥é¥Õ¤Î¿§À®Ê¬¤ÎÀ¸À®¤Ë»È¤¦¥Ç¡¼¥¿Ãͤò¡¢ [0:1] ¤ÎÈϰϤμ¿ôÃͤǤ¢¤ë¤È¤ß¤Ê¤·¤Þ¤¹¡£unset rgbmax ¤Ï¡¢¤½¤ì¤ò¥Ç¥Õ ¥©¥ë¥È¤ÎÀ°¿ôÃͤÎÈÏ°Ï [0:255] ¤ËÌᤷ¤Þ¤¹¡£

112.79 Rlabel

¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢r ¼´¤Î¾å¤Ë¥é¥Ù¥ë¤òÇÛÃÖ¤·¤Þ¤¹¡£¤½¤Î¥é¥Ù¥ë¤Ï¡¢¥°¥é¥Õ¤¬¶Ë ºÂɸ¥â¡¼¥É (polar) ¤Ç¤¢¤ë¤«Èݤ«¤Ë´Ø¤ï¤é¤ºÉ½¼¨¤µ¤ì¤Þ¤¹¡£ÄɲäλØÄꥭ¡¼ ¥ï¡¼¥É¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼»²¾È: set xlabel (112.120)¡£

112.80 Rmargin

¥³¥Þ¥ó¥É set rmargin ¤Ï±¦¤Î;Çò¤Î¥µ¥¤¥º¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: set margin (112.49)¡£

112.81 Rrange

¥³¥Þ¥ó¥É set rrange ¤Ï¶ËºÂɸ¥â¡¼¥É¤Î¥°¥é¥Õ¤ÎÆ°·ÂÊý¸þ¤ÎÈϰϤòÀßÄꤷ¤Þ ¤¹¡£¤³¤ì¤Ï xrange ¤È yrange ¤ÎξÊý¤âÀßÄꤷ¤Æ¤·¤Þ¤¤¤Þ¤¹¡£Î¾¼Ô¤Ï¡¢ [-(rmax-rmin) : +(rmax-rmin)] ¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ì¤Î¸å¤Ç xrange ¤ä yrange ¤òÊѹ¹¤·¤Æ¤â (Î㤨¤Ð³ÈÂ礹¤ë¤¿¤á¤Ë)¡¢¤½¤ì¤Ï rrange ¤òÊѹ¹¤·¤Ê¤¤ ¤Î¤Ç¡¢¥Ç¡¼¥¿ÅÀ¤Ï rrange ¤Ë´Ø¤·¤Æ¥¯¥ê¥Ã¥Ô¥ó¥°¤µ¤ì¤¿¤Þ¤Þ¤È¤Ê¤ê¤Þ¤¹¡£Â¾¤Î ¼´¤È¤Ï°ã¤¤¡¢r ¼´¤Î¼«Æ°½Ì¼Ü¤Ç¤Ï¾ï¤Ë rmin = 0 ¤È¤Ê¤ê¤Þ¤¹¡£reverse ¤Ç¤Ï ¼«Æ°½Ì¼Ü¥Õ¥é¥°¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£ Ãí°Õ: rmin ¤òÉé¤ÎÃͤòÀßÄꤹ¤ë¤È¡¢Í½´ü¤»¤Ì·ë²Ì¤òÀ¸¤à²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

112.82 Rtics

¥³¥Þ¥ó¥É set rtics ¤Ï¡¢Æ°·Â¼´¤Ë±è¤Ã¤ÆÌÜÀ¹¤ê¤òÇÛÃÖ¤·¤Þ¤¹¡£ÌÜÀ¹¤ê¤È¤½ ¤Î¸«½Ð¤·¤Ï¸¶ÅÀ¤Î±¦Â¦¤ËÉÁ¤«¤ì¤Þ¤¹¡£¥­¡¼¥ï¡¼¥É mirror ¤Ï¡¢¤½¤ì¤é¤ò¸¶ÅÀ ¤Îº¸Â¦¤Ë¤âÉÁ¤­¤Þ¤¹¡£¤½¤Î¾¤Î¥­¡¼¥ï¡¼¥É¤Ë´Ø¤¹¤ëÏäˤĤ¤¤Æ¤Ï°Ê²¼»²¾È: polar (112.74), set xtics (112.123), set mxtics (112.57)¡£

112.83 ¥µ¥ó¥×¥ë¿ô (samples)

´Ø¿ô¤Î¥°¥é¥Õ¤Ï¡¢Í¿¤¨¤é¤ì¤¿¸Ä¿ô¤Î x ¤ÎÃͤǤδؿôÃͤΥµ¥ó¥×¥ê¥ó¥°¤È¡¢¤½ ¤ì¤é¤ÎÃÍ f(x0)..f(x1)..f(x2).. ¤ò·ë¤ÖÀþʬ¤òÉÁ²è¤¹¤ë¤³¤È¤Ç¹½À®¤·¤Æ¤¤¤Þ ¤¹¡£´Ø¿ô¡¢¤Þ¤¿¤Ï¥Ç¡¼¥¿¤ÎÊä´Ö¤Ë´Ø¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥µ¥ó¥×¥ê¥ó¥°¿ô¤Ï¡¢¥³¥Þ ¥ó¥É set samples ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£plot ¤ä splot ¥³¥Þ¥ó¥É¤Î¸Ä¡¹¤Î Í×ÁǤΥµ¥ó¥×¥ê¥ó¥°ÈÏ°Ï (sampling range) ¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢°Ê²¼»²¾È: plot sampling (99.7)¡£

½ñ¼°:


     set samples <samples_1> {,<samples_2>}
     show samples

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥µ¥ó¥×¥ë¿ô¤Ï 100 ÅÀ¤ÈÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÃͤòÁý¤ä¤¹¤È ¤è¤êÀµ³Î¤ÊÉÁ²è¤¬½ÐÍè¤Þ¤¹¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë ¤ÎÉÁ²è¤Ë¤Ï²¿¤Î±Æ¶Á¤âÍ¿¤¨¤Þ¤»¤ó¤¬¡¢Êä´Ö/¶á»÷¤Î¥ª¥×¥·¥ç¥ó¤¬»È¤ï¤ì¤Æ¤¤¤ë ¾ì¹ç¤Ï¤½¤Î¸Â¤ê¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼»²¾È: plot smooth (99.3.8), set cntrparam (112.16), set dgrid3d (112.25)¡£

2 ¼¡¸µ¤Î¥°¥é¥ÕÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤­¤Ï <samples_1> ¤ÎÃͤΤߤ¬´Ø·¸¤·¤Þ¤¹¡£

±£Àþ½èÍý¤Ê¤·¤Ç¶ÊÌÌÉÁ²è¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¤­¤Ï¡¢samples ¤ÎÃͤϸÉΩÀþËè¤Ëɾ²Á ¤µ¤ì¤ë¥µ¥ó¥×¥ë¿ô¤Î»ØÄê¤Ë¤Ê¤ê¤Þ¤¹¡£³Æ v-¸ÉΩÀþ¤Ï <samples_1> ¸Ä¤Î¥µ¥ó¥× ¥ëÅÀ¤ò»ý¤Á¡¢u-¸ÉΩÀþ¤Ï <samples_2> ¸Ä¤Î¥µ¥ó¥×¥ë¿ô¤ò»ý¤Á¤Þ¤¹¡£<samples_1> ¤Î¤ß»ØÄꤹ¤ë¤È¡¢<samples_2> ¤ÎÃÍ¤Ï <samples_1> ¤ÈƱ¤¸ÃͤËÀßÄꤵ¤ì¤Þ¤¹¡£ °Ê²¼¤â»²¾È: set isosamples (112.35)¡£

112.84 ¥°¥é¥ÕÎΰ襵¥¤¥º (size)

½ñ¼°:


     set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
     show size

<xscale> ¤È <yscale> ¤ÏÉÁ²èÁ´ÂΤγÈÂç¤ÎÇÜΨ¤Ç¡¢ÉÁ²èÁ´ÂΤȤϥ°¥é¥Õ¤È¥é ¥Ù¥ë¤È;Çò¤ÎÉôʬ¤ò´Þ¤ß¤Þ¤¹¡£

Îò»ËŪ¤ÊÃí°Õ: gnuplot ¤Î°ÊÁ°¤ÎÈǤǤϡ¢set size ¤ÎÃͤò¡¢½ÐÎϤ¹¤ëÉÁ ²èÎΰè (¥­¥ã¥ó¥Ð¥¹) ¤Î¥µ¥¤¥º¤òÀ©¸æ¤¹¤ë¤Î¤Ë¤â»È¤Ã¤Æ¤¤¤¿½ÐÎÏ·Á¼°¤â¤¢¤ê¤Þ ¤·¤¿¤¬¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ·Á¼°¤¬¤½¤¦¤À¤Ã¤¿¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£¸½ºß¤Ï¡¢ 'set size' ¤È 'set term ... size' ¤Î 2 ¤Ä¤Ï¡¢¤Ï¤Ã¤­¤ê°ã¤¦Â°À­¤òÀß Äꤷ¤Þ¤¹¡£

set term <terminal_type> size <x ñ°Ì>, <y ñ°Ì> ¤Ï¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë¤Î ¥µ¥¤¥º¡¢¤Þ¤¿¤Ï "¥­¥ã¥ó¥Ð¥¹" ¤Î¥µ¥¤¥º¤òÀ©¸æ¤·¤Þ¤¹¡£¥µ¥¤¥º¥Ñ¥é¥á¡¼¥¿¤ÎÍ­ ¸ú¤Êñ°Ì¤Ë¤Ä¤¤¤Æ¤Ï¡¢¸Ä¡¹¤Î½ÐÎÏ·Á¼°¤Î¥Ø¥ë¥×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï¡¢¥°¥é¥Õ¤Ï¤½¤Î¥­¥ã¥ó¥Ð¥¹Á´ÂΤËÉÁ²è¤µ¤ì¤Þ¤¹¡£

set size <xscale>, <yscale> ¤Ï¡¢ÉÁ²è¼«ÂΤò¥­¥ã¥ó¥Ð¥¹¤Î¥µ¥¤¥º¤ËÂФ·¤Æ ÁêÂÐŪ¤Ë¿­½Ì¤µ¤»¤Þ¤¹¡£1.0 ¤è¤ê¾®¤µ¤¤¿­½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Ï¥­¥ã¥ó ¥Ð¥¹Á´ÂΤòËä¤á¤º¡¢1.0 ¤è¤êÂ礭¤¤¿­½ÌÃͤò»ØÄꤹ¤ë¤È¡¢¥°¥é¥Õ¤Î°ìÉôʬ¤Î¤ß ¤¬¥­¥ã¥ó¥Ð¥¹Á´ÂΤ˹礦¤è¤¦¤ËÉÁ²è¤µ¤ì¤Þ¤¹¡£1 ¤è¤êÂ礭¤¤¿­½ÌÃͤò»ØÄꤹ¤ë ¤È¡¢¤¢¤ë½ÐÎÏ·Á¼°¤Ç¤ÏÌäÂ꤬µ¯¤³¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

ratio ¤Ï¡¢»ØÄꤷ¤¿ <xscale>, <yscale> ¤ÎÉÁ²èÈÏ°ÏÆâ¤Ç¡¢¥°¥é¥Õ¤Î¥¢¥¹¥Ú ¥¯¥ÈÈæ (½Ä²£Èæ) ¤ò <r> ¤Ë¤·¤Þ¤¹ (<r> ¤Ï x Êý¸þ¤ÎŤµ¤ËÂФ¹¤ë y Êý¸þ¤Î Ťµ¤ÎÈæ)¡£

<r> ¤ÎÃͤòÉé¤Ë¤¹¤ë¤È¤½¤Î°ÕÌ£¤Ï°ã¤Ã¤ÆÍè¤Þ¤¹¡£<r>=-1 ¤Î¤È¤­¡¢x ¼´¡¢y ¼´ ¤ÎÁÐÊý¤Îñ°Ì (¤Ä¤Þ¤ê 1) ¤ÎÌÜÀ¹¤ê¤ÎŤµ¤¬Æ±°ì¡¢¤¹¤Ê¤ï¤ÁÅùĹ (isotropic) ¤Ë¤Ê¤ë¤è¤¦ÀßÄꤷ¤Þ¤¹¡£°Ê²¼¤â»²¾È: set isotropic (112.37)¡£ ¤³¤ì¤Ï¡¢3 ¼¡¸µÍѤΥ³¥Þ¥ó¥É set view equal xy ¤Î 2 ¼¡¸µ¤Ç¤ÎƱÅùʪ¤Ç¤¹¡£ <r>=-2 ¤Î¤È¤­¡¢y ¼´¤Îñ°ÌÌÜÀ¹¤ê¤ÎŤµ¤Ï x ¼´¤Îñ°ÌÌÜÀ¹¤ê¤ÎŤµ¤Î 2 ÇÜ ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£<r> ¤¬Éé¤ÎÃͤ˴ؤ·¤Æ°Ê²¼Æ±ÍͤǤ¹¡£°Ê²¼¤â»²¾È: set isotropic (112.37)¡£

gnuplot ¤¬»ØÄꤵ¤ì¤¿¥¢¥¹¥Ú¥¯¥ÈÈæ¤Î¥°¥é¥Õ¤ò¤Á¤ã¤ó¤È½ñ¤±¤ë¤«¤ÏÁªÂò¤µ¤ì ¤ë½ÐÎÏ·Á¼°¤Ë°Í¸¤·¤Þ¤¹¡£¥°¥é¥Õ¤ÎÎΰè¤Ï½ÐÎϤλØÄꤵ¤ì¤¿Éôʬ¤Ë¤Á¤ã¤ó¤È¼ý ¤Þ¤ê¡¢¥¢¥¹¥Ú¥¯¥ÈÈ椬 <r> ¤Ç¤¢¤ë¤è¤¦¤ÊºÇÂç¤ÎĹÊý·Á¤È¤Ê¤ê¤Þ¤¹ (¤â¤Á¤í¤ó ŬÅö¤Ê;Çò¤â»Ä¤·¤Þ¤¹¤¬)¡£

set size square ¤Ï set size ratio 1 ¤ÈƱ¤¸°ÕÌ£¤Ç¤¹¡£

noratio ¤È nosquare ¤Ï¤¤¤º¤ì¤â¥°¥é¥Õ¤ò¤½¤Î½ÐÎÏ·Á¼° (terminal) ¤Ç¤Î ¥Ç¥Õ¥©¥ë¥È¤Î¥¢¥¹¥Ú¥¯¥ÈÈæ¤ËÌᤷ¤Þ¤¹¤¬¡¢<xscale> ¤È <yscale> ¤Ï¤½¤Î¥Ç¥Õ ¥©¥ë¥È¤ÎÃÍ (1.0) ¤Ë¤ÏÌᤷ¤Þ¤»¤ó¡£

ratio ¤È square ¤Ï 3 ¼¡¸µÉÁ²è¤Ç¤Ï°ÕÌ£¤ò»ý¤Á¤Þ¤»¤ó¤¬¡¢set view map ¤ò»ÈÍѤ·¤¿ 3 ¼¡¸µÉÁ²è¤Î 2 ¼¡¸µ¼Í±Æ¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£ °Ê²¼¤â»²¾È: set view equal (112.104.2)¡£¤³¤ì¤Ï¡¢3 ¼¡¸µ¤Î x ¼´¤È y ¼´¤ò¶¯À©Åª¤ËƱ¤¸¥¹¥±¡¼¥ë¤Ë ¤·¤Þ¤¹¡£

Îã:

¥°¥é¥Õ¤¬¸½ºß¤Î¥­¥ã¥ó¥Ð¥¹¤òËä¤á¤ë¤è¤¦¤ÊÂ礭¤µ¤ËÀßÄꤷ¤Þ¤¹:


     set size 1,1

¥°¥é¥Õ¤òÄ̾ï¤ÎȾʬ¤ÎÂ礭¤µ¤ÇÀµÊý·Á¤Ë¤·¤Þ¤¹:


     set size square 0.5,0.5

¥°¥é¥Õ¤Î¹â¤µ¤ò²£Éý¤Î 2 Çܤˤ·¤Þ¤¹:


     set size ratio 2

112.85 ¥¯¥â¤ÎÁ㥰¥é¥Õ (spiderplot)

¥³¥Þ¥ó¥É set spiderplot ¤Ï¡¢ºÂɸ¤Î²ò¼á¤ò¶ËºÂɸ¤ËÀÚ¤êÂؤ¨¡¢³Æ¥Ç¡¼¥¿ÅÀ ¤Ï¡¢Æ°·Â¼´¤Ë±è¤Ã¤¿°ÌÃ֤˳ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£paxis 1 ¤ÏÄ̾ï±ôľ¸þ¤­¤Ç¡¢2 ¤«¤é N ¤Þ¤Ç¤Î¼´¤Ï¡¢»þ·×²ó¤ê¤ËÅù´Ö³Ö¤ËÇÛÃÖ¤µ¤ì¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢ÉÁ ²è¤ÎÁ°¤Ëȯ¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¥°¥é¥Õ¤Ë°Ê²¼¤ÈƱÍͤθú²Ì¤âÄÉ ²Ã¤·¤Þ¤¹¡£


    set style data spiderplot
    unset border
    unset tics
    set key noautotitle
    set size ratio 1.0

ÉÁ²è¸ì¤Ë¤³¤ì¤é¤ò¸µ¤Î¾õÂÖ¤ËÉüµ¢¤¹¤ë¤Ë¤Ï¡¢reset ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£

112.86 ÉÁ²è¥¹¥¿¥¤¥ëÀßÄê (style)

¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤Ï¡¢set style data ¤È set style function ¤ÇÀßÄê¤Ç¤­¤Þ¤¹¡£´Ø¿ô¤ä¥Ç¡¼¥¿¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë¤ò¸Ä¡¹¤ËÊѹ¹¤¹ ¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plot with (99.10)¡£¥¹¥¿¥¤¥ë¤Î°ìÍ÷Á´ÂΤϡ¢°Ê²¼ »²¾È: plotting styles (II), plot with (99.10)¡£

½ñ¼°:


     set style function <style>
     set style data <style>
     show style function
     show style data

»ØÄê¤Ç¤­¤ëÉÁ²èÍ×ÁǤΥǥե©¥ë¥È¥¹¥¿¥¤¥ë¤âÀßÄê¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set style arrow <n> <arrowstyle>
     set style boxplot <boxplot style options>
     set style circle radius <size> {clip|noclip}
     set style ellipse size <size> units {xy|xx|yy} {clip|noclip}
     set style fill <fillstyle>
     set style histogram <histogram style options>
     set style line <n> <linestyle>
     set style rectangle <object options> <linestyle> <fillstyle>
     set style textbox {<n>} {opaque|transparent} {{no}border} {fillcolor}
     set style watchpoint labels <label options>

112.86.1 Ìð°õ¥¹¥¿¥¤¥ëÀßÄê (set style arrow)

Ìð°õ (arrow) ¤Î¥¹¥¿¥¤¥ë¤Î½¸¹ç¤Ï set style arrow ¤ò»È¤Ã¤ÆÄêµÁ¤¹¤ë¤³¤È ¤¬¤Ç¤­¤Þ¤¹¡£³Æ¥¹¥¿¥¤¥ë¤Ï¡¢¤½¤ì¼«¿È¤ÎÉý¡¢ÅÀ¼ï¡¢¿§¤Ê¤É¤ò»ý¤Á¡¢¤½¤Î¤¿¤á¤½ ¤ì¤é¤ò¸å¤Ç»È¤¦¤È¤­¤Ë¤¤¤Á¤¤¤ÁƱ¤¸¾ðÊó¤ò·«¤êÊÖ¤·¤Æ»ØÄꤷ¤Ê¤¯¤Æ¤â¡¢¤½¤ì¤ò ÈÖ¹æ <index> ¤Ç»²¾È¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set style arrow <index> default
     set style arrow <index> {nohead | head | backhead | heads}
                             {size <length>,<angle>{,<backangle>} {fixed}}
                             {filled | empty | nofilled | noborder}
                             {front | back}
                             { {linestyle | ls <line_style>}
                               | {linetype | lt <line_type>}
                                 {linewidth | lw <line_width}
                                 {linecolor | lc <colorspec>}
                                 {dashtype | dt <dashtype>} }
     unset style arrow
     show style arrow

<index> ¤ÏÀ°¿ô¤Ç¡¢¤½¤ì¤ÇÌð¤Î¥¹¥¿¥¤¥ë (arrowstyle) ¤òÆÃÄꤷ¤Þ¤¹¡£

default ¤ò»ØÄꤹ¤ë¤È¡¢Á´¤Æ¤Î arrow ¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤Ï¤½¤Î¥Ç¥Õ¥©¥ë ¥È¤ÎÃͤˤʤê¤Þ¤¹¡£

<index> ¤Î arrowstyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£<index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£

¥³¥Þ¥ó¥É plot ¤Þ¤¿¤Ï splot ¤«¤é¸Æ¤Ó½Ð¤·¤¿ arrow ¥¹¥¿¥¤¥ë¤Ë¤Ï¡¢¥Ç¡¼ ¥¿Ëè²ÄÊѤÊÀþ¿§ (lc variable ¤ä lc rgb variable) ¤òÆþ¤ì¤ë¤³¤È¤â¤Ç¤­¡¢ ¤½¤ì¤Ï¤½¤ì¤ËÂбþ¤¹¤ë using »ØÄê¤Ë¤è¤ë¥Ç¡¼¥¿¤ÎÄɲÃÎó¤¬É¬ÍפȤʤê¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¡¢set arrow ¤ÇºîÀ®¤¹¤ë¸ÄÊ̤Πarrow ¤ËÂФ·¤Æ¤Ï¡¢¤½¤Î¥¹¥¿¥¤¥ë ¤Ï¿ʬͭ±×¤Ê¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

nohead ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢ÌðÀè¤Î¤Ê¤¤Ì𡢤¹¤Ê¤ï¤ÁÀþʬ¤ò½ñ¤¯¤³¤È¤â¤Ç¤­ ¤Þ¤¹¡£¤³¤ì¤ÏÉÁ²è¤Î¾å¤ËÀþʬ¤òÉÁ¤¯Ê̤ÊÊýË¡¤òÍ¿¤¨¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1 ¤Ä¤ÎÌðÀ褬¤Ä¤¤¤Æ¤¤¤Þ¤¹¡£heads ¤Î»ØÄê¤ÇÀþʬ¤Îξü¤ËÌðÀ褬ÉÁ¤«¤ì¤Þ¤¹¡£

ÌðÀè¤ÎÂ礭¤µ¤Ï size <length>,<angle> ¤Þ¤¿¤Ï size <length>,<angle>,<backangle> ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£<length> ¤ÏÌðÀè ¤Î³Æ»Þ¤ÎŤµ¤Ç¡¢<angle> ¤ÏÌðÀè¤Î»Þ¤ÈÌð¼´¤¬¤Ê¤¹³ÑÅÙ (ñ°Ì¤ÏÅÙ) ¤Ç¤¹¡£ <length> ¤Îñ°Ì¤Ï x ¼´¤ÈƱ¤¸¤Ç¤¹¤¬¡¢¤½¤ì¤Ï <length> ¤ÎÁ°¤Ë first, second, graph, screen, character ¤ò¤Ä¤±¤ë¤³¤È¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£ ¾ÜºÙ¤Ï¡¢°Ê²¼»²¾È: coordinates (11)¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤È¤Æ¤âû¤¤Ìð¤ÎÌðÀè¤Ï¾®¤µ¤¯¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¡¢size ¥³ ¥Þ¥ó¥É¤Î¸å¤í¤Ë fixed ¤ò»È¤¦¤³¤È¤Ç̵¸ú¤Ë¤Ç¤­¤Þ¤¹¡£

<backangle> ¤Ï¡¢ÌðÀè¤Î¸å¤í¤ÎÉôʬ¤ÎÌ𼴤ȤÎÀÚ¤ê³Ñ (<angle> ¤ÈƱ¤¸Êý ¸þ¡¢Ã±°Ì¤ÏÅÙ) ¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¥¹¥¿¥¤¥ë¤¬ nofilled ¤Î¾ì¹ç¤Ï¤³¤ì¤ò̵»ë¤· ¤Þ¤¹¡£

filled ¤ò»ØÄꤹ¤ë¤È¡¢ÌðÀè¤Î²ó¤ê¤ÎÀþ (¶­³¦Àþ) ¤òÉÁ¤­¡¢ÌðÀè¤òÅɤê¤Ä¤Ö ¤·¤Þ¤¹¡£noborder ¤ò»ØÄꤹ¤ë¤È¡¢ÌðÀè¤ÏÅɤê¤Ä¤Ö¤·¤Þ¤¹¤¬¡¢¶­³¦Àþ¤ÏÉÁ¤­ ¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¡¢ÌðÀè¤ÎÀèü¤¬¥Ù¥¯¥È¥ë¤Î½ªÅÀ¥Ô¥Ã¥¿¥ê¤Î¾ì½ê¤ËÃÖ¤«¤ì¡¢¤½ ¤ÎÌðÀè¤ÏÁ´ÂΤȤ·¤Æ¾¯¤·¾®¤µ¤¯¤Ê¤ê¤Þ¤¹¡£ÅÀÀþ¤ÇÌð¤òÉÁ¤¯¾ì¹ç¤Ï¡¢ÅÀÀþ¤Î¶­³¦ Àþ¤Ï±ø¤¤¤Î¤Ç¡¢¾ï¤Ë noborder ¤ò»È¤¦¤Ù¤­¤Ç¤¹¡£ÌðÀè¤ÎÅɤê¤Ä¤Ö¤·¤Ï¡¢¤¹¤Ù ¤Æ¤Î½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£

Àþ¼ï¤Ï¥æ¡¼¥¶¤ÎÄêµÁ¤·¤¿¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤«¤éÁª¤Ö¤³¤È¤â¤Ç¤­¤Þ¤¹¤· (°Ê²¼»²¾È: set style line (112.86.8))¡¢ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë <line_type> ¤ÎÃÍ (¥Ç¥Õ ¥©¥ë¥È¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Î¥ê¥¹¥È¤ÎÈÖ¹æ) ¤½¤·¤Æ <linewidth> (¥Ç¥Õ¥©¥ë¥È ¤ÎÉý¤ÎÇÜ¿ô) ¤ò»È¤Ã¤Æ¤³¤³¤ÇÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

¤·¤«¤·¡¢¥æ¡¼¥¶¡¼ÄêµÁºÑ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¤¬ÁªÂò¤µ¤ì¤¿¾ì¹ç¡¢¤½¤Î°À­ (Àþ¼ï¡¢ Éý) ¤Ï¡¢Ã±¤Ë¾¤Î set style arrow ¥³¥Þ¥ó¥É¤ÇŬÅö¤ÊÈÖ¹æ¤ä lt, lw ¤Ê¤É¤ò»ØÄꤷ¤Æ¤â¡¢Êѹ¹¤Ï¤Ç¤­¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ²¼¤µ¤¤¡£

front ¤ò»ØÄꤹ¤ë¤È¡¢Ìð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î¾å¤ËÉÁ¤«¤ì¤Þ¤¹¡£back ¤¬»Ø Äꤵ¤ì¤¿¾ì¹ç (¥Ç¥Õ¥©¥ë¥È) ¤ÏÌð¤Ï¥°¥é¥Õ¤Î¥Ç¡¼¥¿¤Î²¼¤ËÉÁ¤«¤ì¤Þ¤¹¡£front ¤ò»È¤¨¤Ð¡¢Ì©½¸¤·¤¿¥Ç¡¼¥¿¤ÇÌ𤬸«¤¨¤Ê¤¯¤Ê¤ë¤³¤È¤òËɤ°¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Îã:

ÌðÀ褬¤Ê¤¯¡¢ÇܤÎÉý¤¬Ìð¤òÉÁ¤¯¤Ë¤Ï:


     set style arrow 1 nohead lw 2
     set arrow arrowstyle 1

¤½¤Î¾¤ÎÎã¤Ë¤Ä¤¤¤Æ¤Ï¡¢°Ê²¼»²¾È: set arrow (112.2)¡£

112.86.2 Boxplot ¥¹¥¿¥¤¥ë»ØÄê (boxplot)

¥³¥Þ¥ó¥É set style boxplot ¤Ë¤è¤ê¡¢ÉÁ²è¥¹¥¿¥¤¥ë boxplot ¤ÇÀ¸À®¤¹¤ë ÉÁ²è¤Î¥ì¥¤¥¢¥¦¥È¤òÊѹ¹¤Ç¤­¤Þ¤¹¡£

½ñ¼°:


     set style boxplot {range <r> | fraction <f>}
                       {{no}outliers} {pointtype <p>}
                       {candlesticks | financebars}
                       {medianlinewidth <width>}
                       {separation <x>}
                       {labels off | auto | x | x2}
                       {sorted | unsorted}

boxplot ¤ÎÈ¢¤Ï¡¢¾ï¤Ë¥Ç¡¼¥¿ÅÀ¤ÎÂè°ì»Íʬ°Ì¤«¤éÂè»°»Íʬ°Ì¤ÎÃͤÎÈϰϤˤ«¤« ¤Ã¤Æ¤¤¤Þ¤¹¡£È¢¤«¤é±äŤµ¤ì¤ëÈ¢¤Ò¤²¤Î¸Â³¦¤Ï¡¢2 ¤Ä¤Î°Û¤Ê¤ëÊýË¡¤ÇÀ©¸æ¤Ç¤­ ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢È¢¤Ò¤²¤Ï¡¢¤½¤ÎÈ¢¤Î¤½¤ì¤¾¤ì¤Îü¤«¤é¡¢»Íʬ°ÌÈϰϤΠ1.5 ÇÜ (¤¹¤Ê¤ï¤Á¡¢¤½¤ÎÈ¢¤Î¸·Ì©¤Ê¿âľÊý¸þ¤Î¹â¤µ) ¤ËÅù¤·¤¤ÈϰϤˤޤDZäĹ ¤µ¤ì¤Þ¤¹¡£È¢¤Ò¤²¤½¤ì¤¾¤ì¤Ï¡¢¥Ç¡¼¥¿½¸¹ç¤Î¤¢¤ëÅÀ¤Ë°¤¹¤ë y ¤ÎÃͤǽªÎ»¤¹ ¤ë¤è¤¦¤Ë¡¢¥á¥¸¥¢¥ó¤Ë¸þ¤«¤Ã¤ÆÀÚ¤ê¼Î¤Æ¤é¤ì¤Þ¤¹¡£»Íʬ°ÌÈϰϤÎÃúÅÙ 1.5 ÇÜ ¤ÎÃͤÎÅÀ¤¬¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤«¤é¡¢È¢¤Ò¤²¤Ï¤½¤Î̾Ìܾå¤ÎÈϰϤè¤ê¤âû¤¯¤Ê ¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï°Ê²¼¤ËÂбþ¤·¤Þ¤¹¡£


     set style boxplot range 1.5

¤â¤¦°ì¤Ä¤ÎÊýË¡¤È¤·¤Æ¡¢È¢¤Ò¤²¤¬¤«¤«¤ëÅÀ¤ÎÁí¿ô¤Î³ä¹ç (fraction) ¤ò»ØÄꤹ ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤½¤ÎÈϰϤϥ᥸¥¢¥óÃͤ«¤é¡¢¥Ç¡¼¥¿½¸¹ç¤Î»ØÄê ¤·¤¿Ê¬¤ò°Ï¤¤¹þ¤à¤Þ¤Ç¡¢ÂоΤ˱䍵¤ì¤Þ¤¹¡£¤³¤Î¤È¤­¤â¡¢¸Ä¡¹¤ÎÈ¢¤Ò¤²¤Ï¥Ç ¡¼¥¿½¸¹çÆâ¤ÎÅÀ¤Îü¤Þ¤Ç¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¡£¥Ç¡¼¥¿½¸¹ç¤Î 95% ¤ÎÅÀ¤ò¤Ï¤ë¤Ë¤Ï °Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£


     set style boxplot fraction 0.95

È¢¤Ò¤²¤ÎÈϰϤγ°¤Ë¤¢¤ëǤ°Õ¤ÎÅÀ¤Ï¡¢outliers (¸ÉΩ¤·¤¿É¸ËÜÃÍ) ¤È¸«¤Ê¤µ¤ì ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤é¤ò¤Ò¤È¤Ä¤Ò¤È¤Ä±ß (pointtype 7) ¤ÇÉÁ¤­¤Þ¤¹¤¬¡¢ ¥ª¥×¥·¥ç¥ó nooutliers ¤Ï¤³¤ì¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ ÉÁ²è¤µ¤ì¤Ê¤¤ outliers ¤Ï¡¢autoscaling ¤Ë¤Ï±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï boxplot ¤Ï candlesticks ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤·¤Þ¤¹¤¬¡¢ financebars ¤È»÷¤¿¥¹¥¿¥¤¥ë¤ÇÉÁ²è¤¹¤ë¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¡£

È¢¤Î¶­³¦¤ÈƱ¤¸Àþ¼ï¤ò»È¤Ã¤Æ¡¢¥á¥¸¥¢¥ó¤ò¼¨¤¹²£ÃÇÀþ¤òÉÁ¤­¤Þ¤¹¤¬¡¢¤½¤Î¥á¥¸ ¥¢¥óÀþ¤ò¤è¤êÂÀ¤¯¤·¤¿¤±¤ì¤Ð¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ç¤­¤Þ¤¹¡£


     set style boxplot medianlinewidth 2.0

¥á¥¸¥¢¥óÀþ¤¬É¬Íפʤ±¤ì¤Ð¡¢¤½¤ì¤ò 0 ¤Ë¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤¡£

boxplot ¤Î using »ØÄ꤬ 4 ÎóÌܤò»ý¤Ä¾ì¹ç¡¢¤½¤ÎÎó¤ÎÃͤϤ¢¤ë°ø»ÒÊÑ¿ô¤ÎÎ¥ »¶Åª¤Ê¥ì¥Ù¥ëÃͤǤ¢¤ë¤È¸«¤Ê¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤½¤Î°ø»ÒÊÑ¿ô¤Î¥ì¥Ù¥ë¤Î¿ô¤È Ʊ¤¸¤À¤±¤ÎÊ£¿ô¤Î boxplot ¤¬ÉÁ¤«¤ì¤Þ¤¹¡£¤½¤ì¤é¤Î boxplot ¤ÎÎÙ¤ê¹ç¤¦¤â¤Î Ʊ»Î¤Îµ÷Î¥¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 1.0 (x ¼´¤Îñ°Ì¤Ç) ¤Ç¤¹¤¬¡¢¤³¤Î´Ö³Ö¤Ï¥ª¥×¥· ¥ç¥ó separation ¤ÇÊѹ¹¤Ç¤­¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó labels ¤Ï¡¢¤³¤ì¤é¤Î boxplot (¤½¤ì¤¾¤ì¥Ç¡¼¥¿½¸¹ç¤Î¤¢¤ëÉôʬ ¤ËÂбþ¤¹¤ë) ¤Î¤É¤³¤Ë¡¢¤É¤Î¤è¤¦¤Ë¥é¥Ù¥ë¤ò¤Ä¤±¤ë¤«¤ò·èÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë ¥È¤Ç¤Ï°ø»Ò¤ÎÃͤò¿åÊ¿¼´ (x ¤« x2 ¤Î¤¤¤º¤ì¤« plot ¤Ç»È¤ï¤ì¤Æ¤¤¤ëÊý) ¤ÎÌÜ À¹¥é¥Ù¥ë¤Ë½ÐÎϤ·¤Þ¤¹¡£¤³¤ì¤Ï¥ª¥×¥·¥ç¥ó¤Î labels auto ¤ËÂбþ¤·¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó labels x, labels x2 ¤Ë¤è¤Ã¤Æ¡¢¶¯À©Åª¤Ë x ¼´¡¢x2 ¼´¤Ë¤½ ¤ì¤¾¤ì½ÐÎϤµ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤·¡¢labels off ¤Ç¥ª¥Õ¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­ ¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢°ø»ÒÊÑ¿ô¤Î°Û¤Ê¤ë¥ì¥Ù¥ë¤ËÂбþ¤¹¤ë boxplot ¤ÏÀ°Î󲽤Ϥ» ¤º¡¢¥Ç¡¼¥¿¥Õ¥¡¥¤¥ë¤Ë¤½¤Î¥ì¥Ù¥ë¤¬¸½¤ì¤ë½çÈÖ¤ËÉÁ²è¤·¤Þ¤¹¡£¤³¤ÎµóÆ°¤Ï¥ª¥× ¥·¥ç¥ó¤Î unsorted ¤ËÂбþ¤·¤Þ¤¹¤¬¡¢¥ª¥×¥·¥ç¥ó sorted ¤ò»ÈÍѤ¹¤ë¤È¡¢ ¤Þ¤º¥ì¥Ù¥ë¤ò¼­½ñ½ç¤Ë¥½¡¼¥È¤·¡¢¤½¤Î½ç¤Ë boxplot ¤òÉÁ²è¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó separation, labels, sorted, unsorted ¤Ï¡¢plot ¤Ë 4 ÎóÌܤλØÄê¤òÍ¿¤¨¤¿¾ì¹ç¤Î¤ß¸úÎϤò»ý¤Á¤Þ¤¹¡£

°Ê²¼»²¾È: boxplot (37), candlesticks (39), financebars (45)¡£

112.86.3 ¥Ç¡¼¥¿ÉÁ²è¥¹¥¿¥¤¥ë»ØÄê (set style data)

¥³¥Þ¥ó¥É set style data ¤Ï¥Ç¡¼¥¿ÉÁ²è¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤¥ë ¤òÊѹ¹¤·¤Þ¤¹¡£

½ñ¼°:


     set style data <plotting-style>
     show style data

ÁªÂò¹àÌܤˤĤ¤¤Æ¤Ï¡¢°Ê²¼»²¾È: plotting styles (II)¡£show style data ¤Ï ¸½ºß¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¡¼¥¿ÉÁ²è¥¹¥¿¥¤¥ë¤òɽ¼¨¤·¤Þ¤¹¡£

112.86.4 ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë»ØÄê (set style fill)

¥³¥Þ¥ó¥É set style fill ¤Ï¡¢boxes, histograms, candlesticks, filledcurves ¤Ç¤ÎÉÁ²è¤Ë¤ª¤±¤ëÉÁ²èÍ×ÁǤΥǥե©¥ë¥È¤Î¥¹¥¿¥¤¥ë¤ÎÀßÄê¤Ë»È ¤ï¤ì¤Þ¤¹¡£¤³¤Î¥Ç¥Õ¥©¥ë¥È¤Ï¡¢¸Ä¡¹¤ÎÉÁ²è¤ËÅɤêÄÙ¤·¥¹¥¿¥¤¥ë (fillstyle) ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¾å½ñ¤­¤Ç¤­¤Þ¤¹¡£ set obj ¤ÇÀ¸À®¤¹¤ëĹÊý·Á (rectangle) ¤ÎÅɤêÄÙ¤·¥¹¥¿¥¤¥ë¤Ë¤Ï¡¢ÊÌ¤Î¥Ç ¥Õ¥©¥ë¥È¤¬¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ °Ê²¼»²¾È: set style rectangle (112.86.10)¡£

½ñ¼°:


     set style fill {empty
                     | {transparent} solid {<density>}
                     | {transparent} pattern {<n>}}
                    {border {lt} {lc <colorspec>} | noborder}

¥Ç¥Õ¥©¥ë¥È¤ÎÅɤê¤Ä¤Ö¤·¥¹¥¿¥¤¥ë (fillstyle) ¤Ï empty ¤Ç¤¹¡£

¥ª¥×¥·¥ç¥ó solid ¤Ï¡¢½ÐÎÏ·Á¼°¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î¿§¤Ç¤Îñ¿§ Åɤê¤ò¹Ô¤¤¤Þ¤¹¡£¥Ñ¥é¥á¡¼¥¿ <density> ¤ÏÅɤê¤Ä¤Ö¤·¿§¤Î¶¯¤µ¤òɽ¤·¤Æ¤¤¤Æ <density> ¤¬ 0.0 ¤Ê¤éÈ¢¤Ï¶õ¡¢<density> ¤¬ 1.0 ¤Ê¤éÈ¢¤Ï¤½¤ÎÆâÉô¤Ï¸½ºß¤Î Àþ¼ï¤È´°Á´¤ËƱ¤¸¿§¤ÇÅɤé¤ì¤Þ¤¹¡£½ÐÎÏ·Á¼°¤Ë¤è¤Ã¤Æ¤Ï¡¢¤³¤Î¶¯¤µ¤òϢ³Ū¤Ë ÊѲ½¤µ¤»¤é¤ì¤ë¤â¤Î¤â¤¢¤ê¤Þ¤¹¤¬¡¢¤½¤Î¾¤Î¤â¤Î¤Ï¡¢ÉôʬŪ¤ÊÅɤê¤Ä¤Ö¤·¤Î´ö ¤Ä¤«¤Î¥ì¥Ù¥ë¤ò¼ÂÁõ¤·¤Æ¤¤¤ë¤Ë²á¤®¤Þ¤»¤ó¡£¥Ñ¥é¥á¡¼¥¿ <density> ¤¬Í¿¤¨¤é ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤Ë¤Ê¤ê¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó pattern ¤Ï¡¢½ÐÎϥɥ饤¥Ð¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤ë¥Ñ¥¿¡¼¥ó¤Ç¤ÎÅÉ ¤ê¤Ä¤Ö¤·¤ò¹Ô¤¤¤Þ¤¹¡£ÍøÍѤǤ­¤ëÅɤê¤Ä¤Ö¤·¥Ñ¥¿¡¼¥ó¤Î¼ïÎà¤È¿ô¤Ï½ÐÎϥɥ饤 ¥Ð¤Ë°Í¸¤·¤Þ¤¹¡£Åɤê¤Ä¤Ö¤·¤Î boxes ¥¹¥¿¥¤¥ë¤ÇÊ£¿ô¤Î¥Ç¡¼¥¿½¸¹ç¤òÉÁ²è¤¹ ¤ë¾ì¹ç¤½¤Î¥Ñ¥¿¡¼¥ó¤Ï¡¢Ê£¿ô¤Î¶ÊÀþ¤ÎÉÁ²è¤Ë¤ª¤±¤ëÀþ¼ï¤Î¼þ´ü¤ÈƱÍÍ¡¢Í­¸ú¤Ê ¥Ñ¥¿¡¼¥ó¤ò¡¢¥Ñ¥¿¡¼¥ó <n> ¤«¤é»Ï¤á¤Æ¼þ´üŪ¤ËÍøÍѤ·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó empty ¤Ï¡¢È¢¤òÅɤê¤Ä¤Ö¤·¤Þ¤»¤ó¤¬¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£

ÅɤêÄÙ¤·¿§ (fillcolor <colorspec>) ¤Ï¡¢ÅɤêÄÙ¤·¥¹¥¿¥¤¥ë (fill style) ¤«¤éʬΥ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤¹¤Ê¤ï¤Á¡¢fillstyle ¤ÏÉÁ²èÍ×ÁǤ䥪¥Ö¥¸¥§¥¯¥È¤ÇÊÌ ¡¹¤Î¿§¤ò»ý¤Ã¤¿¤Þ¤Þ¶¦Í­¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£fillstyle ¤ò¼õ¤±¤Ä¤±¤ëÂçÄñ¤Î ¾ì½ê¤Ç fillcolor ¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£fillcolor ¤Ï fc ¤Î¾Êά·Á¤â»È¤¨¤Þ¤¹¡£ »ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢ÅɤêÄÙ¤·¿§¤Ï¸½ºß¤ÎÀþ¼ï (linetype) ¤«¤é¼è¤ê¤Þ¤¹¡£ Îã:


     plot FOO with boxes fillstyle solid 1.0 fillcolor "cyan"

112.86.4.1 Set style fill border

¥­¡¼¥ï¡¼¥É border ¤Ï¡¢ÅɤêÄÙ¤·¥ª¥Ö¥¸¥§¥¯¥È¤ò¸½ºß¤ÎÀþ¼ï¤È¿§¤Î¼ÂÀþ¤Ç°Ï ¤à¤è¤¦¤Ë¤·¤Þ¤¹¡£¤½¤ÎÀþ¤Î¿§¤Ï¡¢linetype ¤ä linecolor ¤òÄɲûØÄꤹ¤ì¤ÐÊÑ ¹¹¤Ç¤­¤Þ¤¹¡£noborder ¤Ï¡¢¶­³¦¤ÎÀþ¤òÉÁ¤«¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£ Îã:


    # ÅɤêÄÙ¤·¤Ï¶¯ÅÙȾʬ¡¢¶­³¦¤ÏƱ¤¸¿§¤ÇÁ´¶¯ÅÙ
    set style fill solid 0.5 border
    # ÅɤêÄÙ¤·¤ÏȾʬƩ²á¡¢¶­³¦¤Ï¼ÂÀþ¤Î¹õ (Àþ¼ï -1)
    set style fill transparent solid 0.5 border -1
    # ¸½ºß¤Î¿§¤Ç¤Î¥Ñ¥¿¡¼¥óÅɤêÄÙ¤·¡¢¶­³¦¤ÏÀþ¼ï 5 ¤Î¿§¤Ç
    plot ... with boxes fillstyle pattern 2 border lt 5
    # ¿å¿§ (cyan) ¤Ç¤ÎÎΰè¤ÎÅɤêÄÙ¤·¡¢¶­³¦¤ÏÀÄ
    plot ... with boxes fillcolor "cyan" fs solid border linecolor "blue"

Ãí°Õ: fill ¥¹¥¿¥¤¥ë¤Î border (¶­³¦) °À­¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¥â¡¼¥É¤Î closed (ÊĶÊÀþ) ¤Î with filledcurves ¤Î¥°¥é¥Õ¤Ë¤·¤«±Æ¶Á¤òÍ¿¤¨¤Þ¤»¤ó¡£

112.86.4.2 Æ©ÌÀ²½ (set style fill transparent)

¤¤¤¯¤Ä¤«¤Î½ÐÎÏ·Á¼°¤Ï¡¢Ã±¿§ÅɤêÎΰè¤Î transparent (Æ©ÌÀ²½) °À­¤ò¥µ¥Ý ¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£transparent solid ¤ÎÎΰèÅɤê¤Ä¤Ö¤·¤Ç¤Ï¡¢density (Ì©ÅÙ) ¥Ñ¥é¥á¡¼¥¿¤Ï¥¢¥ë¥Õ¥¡ÃͤȤ·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£¤Ä¤Þ¤ê¡¢Ì©ÅÙ 0 ¤Ï´°Á´ ¤ÊÆ©ÌÀ¤ò¡¢Ì©ÅÙ 1 ¤Ï´°Á´¤ÊÉÔÆ©ÌÀ¤ò°ÕÌ£¤·¤Þ¤¹¡£transparent pattern ¤ÎÅÉ ¤ê¤Ä¤Ö¤·¤Ç¤Ï¡¢¥Ñ¥¿¡¼¥ó¤ÎÇطʤ¬´°Á´¤ÊÆ©ÌÀ¤«´°Á´¤ÊÉÔÆ©ÌÀ¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£

Æ©ÌÀ¤ÊÅɤê¤Ä¤Ö¤·Îΰè¤ò´Þ¤à¥°¥é¥Õ¤ò¸«¤¿¤êºî¤Ã¤¿¤ê¤¹¤ë¤Î¤Ë¤Ï¡¢Ê̤ÊÀ©¸Â¤¬ ¤¢¤ê¤¦¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Î㤨¤Ð¡¢png ½ÐÎÏ·Á¼°¤Ç¤Ï¡¢"truecolor" ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÆ©ÌÀ²½¤ÎÅɤêÄÙ¤·¤¬ÍøÍѤǤ­¤Þ¤¹¡£ PDF ¥Õ¥¡¥¤¥ë¤Ë¤ÏÆ©ÌÀ²½Îΰ褬Àµ¤·¤¯µ­½Ò¤µ¤ì¤Æ¤¤¤Æ¤â¡¢PDF ¤Îɽ¼¨¥½¥Õ¥È¤Ë ¤è¤Ã¤Æ¤Ï¤½¤ì¤òÀµ¤·¤¯É½¼¨¤Ç¤­¤Ê¤¤¤³¤È¤â¤¢¤ê¤¨¤Þ¤¹¡£¼ÂºÝ¤Ë PostScript ¥× ¥ê¥ó¥¿¤Ç¤ÏÌäÂê¤Ï¤Ê¤¤¤Î¤Ë¡¢Ghostscript/gv ¤Ç¤Ï¥Ñ¥¿¡¼¥óÅɤê¤Ä¤Ö¤·Îΰè¤ò Àµ¤·¤¯É½¼¨¤Ç¤­¤Þ¤»¤ó¡£

112.86.5 ´Ø¿ôÉÁ²è¥¹¥¿¥¤¥ë»ØÄê (set style function)

¥³¥Þ¥ó¥É set style function ¤Ï´Ø¿ôÉÁ²è¤ËÂФ¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÉÁ²è¥¹¥¿¥¤ ¥ë (lines, points, filledcurves ¤Ê¤É) ¤òÊѹ¹¤·¤Þ¤¹¡£°Ê²¼»²¾È: plotting styles (II)¡£

½ñ¼°:


     set style function <plotting-style>
     show style function

112.86.6 ¥Ò¥¹¥È¥°¥é¥à¥¹¥¿¥¤¥ë»ØÄê (set style histogram)

°Ê²¼»²¾È: histograms (50)¡£

112.86.7 Àþ¥¹¥¿¥¤¥ë½ç»ØÄê (set style increment)

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢Æ±¤¸¥°¥é¥Õ¾å¤Î¼¡¤ÎÉÁ²è¤Ï¡¢¼¡¤ÎÀþ¼ï¤Ç¹Ô¤ï¤ì¤Þ¤¹¡£ set style increment userstyles ¤Ï¤³¤ì¤òÊѹ¹¤·¡¢Âå¤ï¤ê¤Ë¥æ¡¼¥¶ÄêµÁ¥é ¥¤¥ó¥¹¥¿¥¤¥ëÈÖ¹æ¤Ë±è¤Ã¤Æ¹Ô¤¦¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤·¤¿¡£

Èó¿ä¾©: gnuplot ¤¬»ÈÍѤ¹¤ëÀþ¼ï¤ÎÈϰϤòÍ­ÍѤʤâ¤Î¤ËºÆÄêµÁ¤¹¤ë¤Ë¤Ï¡¢¤³¤ì ¤ÎÂå¤ï¤ê¤Ë set linetype ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£°Ê²¼»²¾È: set linetype (112.41)¡£

112.86.8 Àþ¥¹¥¿¥¤¥ë»ØÄê (set style line)

½ÐÎÏÁõÃ֤ˤϤª¤Î¤ª¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀþ¼ï¤ÈÅÀ¼ï¤Î½¸¹ç¤¬¤¢¤ê¡¢¤½¤ì¤é¤Ï¥³¥Þ¥ó ¥É test ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£set style line ¤ÏÀþ¼ï¤ÈÀþÉý¡¢ÅÀ¼ï¤È ÅÀ¤ÎÂ礭¤µ¤ò¡¢¸Ä¡¹¤Î¸Æ¤Ó½Ð¤·¤Ç¡¢¤½¤ì¤é¤Î¾ðÊó¤òÁ´Éô»ØÄꤹ¤ëÂå¤ï¤ê¤Ë¡¢Ã± ¤Ê¤ëÈÖ¹æ¤Ç»²¾È¤Ç¤­¤ë¤è¤¦¤Ë¤¢¤é¤«¤¸¤áÄêµÁ¤¹¤ë¤â¤Î¤Ç¤¹¡£

½ñ¼°:


     set style line <index> default
     set style line <index> {{linetype  | lt} <line_type> | <colorspec>}
                            {{linecolor | lc} <colorspec>}
                            {{linewidth | lw} <line_width>}
                            {{pointtype | pt} <point_type>}
                            {{pointsize | ps} <point_size>}
                            {{pointinterval | pi} <interval>}
                            {{pointnumber | pn} <max_symbols>}
                            {{dashtype | dt} <dashtype>}
                            {palette}
     unset style line
     show style line

default ¤Ï¡¢Á´¤Æ¤Î¥é¥¤¥ó¥¹¥¿¥¤¥ë¥Ñ¥é¥á¡¼¥¿¤ò¤½¤ì¤ÈƱ¤¸ index ¤ò»ý¤Ä Àþ¼ï (linetype) ¤ËÀßÄꤷ¤Þ¤¹¡£

<index> ¤Î linestyle ¤¬´û¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢Â¾¤ÎÁ´¤Æ¤ÏÊݸ¤µ¤ì¤¿¤Þ¤Þ¡¢Í¿ ¤¨¤é¤ì¤¿¥Ñ¥é¥á¡¼¥¿¤Î¤ß¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£<index> ¤¬Â¸ºß¤·¤Ê¤±¤ì¤Ð¡¢»ØÄꤵ ¤ì¤Ê¤«¤Ã¤¿Ãͤϥǥե©¥ë¥È¤ÎÃͤˤʤê¤Þ¤¹¡£

¤³¤Î¤è¤¦¤Ë¤Ä¤¯¤é¤ì¤ë¥é¥¤¥ó¥¹¥¿¥¤¥ë¤Ï¡¢¥