Scroll to navigation

GNUPLOT(1) General Commands Manual GNUPLOT(1)

̾Á°

gnuplot - ÂÐÏ÷¿¥°¥é¥ÕÉÁ²è¥×¥í¥°¥é¥à

·Á¼°

gnuplot [X11 options] [options] [file ...]

µ¡Ç½ÀâÌÀ

gnuplot ¤Ï¡¢¥³¥Þ¥ó¥ÉÆþÎÏÊý¼°¤ÎÂÐÏÃŪ¤ÊÉÁ²è¥×¥í¥°¥é¥à¤Ç¤¹¡£

¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÊ£¿ô¤Î¥Õ¥¡¥¤¥ë̾¤òÍ¿¤¨¤ë¤È¡¢ gnuplot ¤Ï³Æ¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤¿½çÈÖ¤ËÆɤ߹þ¤ß¡¢¼Â¹Ô¤·¡¢ ¤½¤·¤ÆºÇ¸å¤Î¥Õ¥¡¥¤¥ë¤ò½èÍý¤·¤¿¤é½ªÎ»¤·¤Þ¤¹¡£ ¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢ gnuplot ¤ÏÂÐÏ÷¿¤Ç¥³¥Þ¥ó¥É¤ÎÆþÎϤòÂ¥¤·¤Þ¤¹¡£

gnuplot ¤Ï°Ê²¼¤Î¤è¤¦¤ÊÆÃħ¤ò»ý¤Á¤Þ¤¹:

C ¤Î±é»»»Ò¤ä C ¤Î¿ô³Ø¥é¥¤¥Ö¥é¥ê´Ø¿ô¡¢ ¤½¤·¤Æ ** ¤ä sgn() ¤Ê¤É¤Î¤è¤¦¤Ë C ¤Ë¤Ï¤Ê¤¤¤è¤¦¤Ê¤â¤Î¤òÍѤ¤¤Æɽ¸½¤µ¤ì¤¿ Ǥ°Õ¸Ä¿ô¤Î´Ø¿ô¤ÎÉÁ²è¡£

¥æ¡¼¥¶ÄêµÁÄê¿ô¡¢¥æ¡¼¥¶ÄêµÁ´Ø¿ô¡£

Ê£ÁÇ¿ô¤ÎÈϰϤǤΤ¹¤Ù¤Æ¤Î·×»»¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¼Â¿ôÉôʬ¤Î¤ß¤¬ÉÁ²è¤µ¤ì¤Þ¤¹¤¬¡¢ ¤³¤ì¤òÊѹ¹¤¹¤ë¤¿¤á¤Ë imag() ¤ä abs(), arg() ¤Î¤è¤¦¤Ê´Ø¿ô¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

¥Õ¥¡¥¤¥ë¤Î¥æ¡¼¥¶¥Ç¡¼¥¿¤ÎÉÁ²èÍѤο¤¯¤Îɽ¼¨¥¹¥¿¥¤¥ë·Á¼°¡£²óµ¢¶ÊÌÌ¡¢ ¸íº¹Àþ (errorbars)¡¢È¢¤Ò¤²»Íʬ°Ì (boxplots)¡¢¥Ò¥¹¥È¥°¥é¥à (histograms)¡¢ ²¹ÅÙʬÉÛ¡¢²èÁü¥Ç¡¼¥¿¤Î´Êñ¤Ê½èÍýµ¡Ç½¤Ê¤É¤â»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ °Ê²¼¤Î Web ¾å¤Ë¡¢¥Ç¥â¤ò½¸¤á¤¿¤â¤Î¤¬ÃÖ¤¤¤Æ¤¢¤ê¤Þ¤¹:
http://gnuplot.info/demo

ÈóÀþ·Á¤ÎºÇ¾®Æó¾èË¡¡£

2 ¼¡¸µ¡¢3 ¼¡¸µÉÁ²è¤È¥Þ¥¦¥¹¤Ë¤è¤ë³ÈÂç¡¢²óžÀ©¸æ¡¢¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È¡£

¥·¥§¥ë¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤È¥³¥Þ¥ó¥É¥é¥¤¥óÃÖ´¹¡£

load ¤È save¡£

¶Ë¤á¤Æ¿¤¯¤Î¼ïÎà¤Î½ÐÎϥǥХ¤¥¹¡¢½ÐÎÏ¥Õ¥¡¥¤¥ë·Á¼°¤Î¥µ¥Ý¡¼¥È¡£

¥ª¥×¥·¥ç¥ó

-p, --persist ¤Ï¡¢ gnuplot ¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤¿¸å¤âÉÁ²è¥¦¥£¥ó¥É¥¦¤ò»Ä¤·¤Þ¤¹¡£

-c scriptname ARG1 ARG2 ... ¤Ï¡¢ gnuplot ¤Î "call" ¤Î»ÅÁȤߤǥ¹¥¯¥ê¥×¥È scriptname ¤òÆɤ߹þ¤ß¡¢ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î»Ä¤ê¤Ï¤½¤ì¤Ø¤Î°ú¿ô¤È¤·¤ÆÅϤ·¤Þ¤¹¡£

-d, --default ¤Ï¡¢ ¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Çµ¯Æ°¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gnuplotrc ¤ä ~/.gnuplot ¤òµ¯Æ°»þ¤Ë¤ÏÆɤ߹þ¤ß¤Þ¤»¤ó¡£

-e "command list" ¤Ï¡¢ ¼¡¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤àÁ°¤Ë»ØÄꤷ¤¿¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£

-h, --help ¤Ï¡¢»ÈÍÑË¡¤ÎÍ×Ìó¤òɽ¼¨¤·¤Þ¤¹¡£

-V ¤Ï¡¢¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤·¤Þ¤¹¡£

X11 ¥ª¥×¥·¥ç¥ó

x11 ½ÐÎÏ·Á¼°¤Ë´Ø¤·¤Æ¤Ï¡¢gnuplot ¤Ï geometry ¤ä¥Õ¥©¥ó¥È¡¢ ÇØ·Ê¿§¤Ê¤É¤ÎÄ̾ï¤Î X Toolkit ¥ª¥×¥·¥ç¥ó¤ä¥ê¥½¡¼¥¹¤Î»ØÄê¤ò¼õ¤±¤Ä¤±¤Þ¤¹¡£ ¤½¤ì¤éÄ̾ï¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢X(1) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ gnuplot ÆÃÍ­¤ÎÄɲäΠX ¤Î¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ¤Ï¡¢ gnuplot ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç help x11 ¤È¤·¤Æ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Â¾¤Î½ÐÎÏ·Á¼°¤Ç¤Ï²¿¤â¤·¤Þ¤»¤ó¡£

´Ä¶­ÊÑ¿ô

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

¥Ç¥Õ¥©¥ë¥È¤Ç»ÈÍѤµ¤ì¤ë½ÐÎÏ·Á¼° (terminal) ¤Î̾Á°¡£ ¤³¤ì¤Ï¡¢gnuplotrc ¤ä .gnuplot Åù¤Î½é´ü²½¥Õ¥¡¥¤¥ë¤ä¡¢ ¤½¤·¤Æ¤â¤Á¤í¤ó¤½¤Î¸å¤Ë¥³¥Þ¥ó¥É "set terminal" ¤Ç ÌÀ¼¨Åª¤Ë»ØÄꤷ¤¿¤â¤Î¤ÎÊý¤¬Í¥À褵¤ì¤Þ¤¹¡£
¥Ø¥ë¥×¥Õ¥¡¥¤¥ë (gnuplot.gih) ¤Î¥Ñ¥¹Ì¾¡£
¥Õ¥¡¥¤¥ë .gnuplot ¤ò¸¡º÷¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¡£
¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤Î½ÐÎÏÍѤΥե£¥ë¥¿¡£
"shell" ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë»È¤ï¤ì¤ë¥×¥í¥°¥é¥à¡£
Åö¤Æ¤Ï¤á (fit) ¤¬ÃæÃǤµ¤ì¤¿¤È¤­¤Ë¼Â¹Ô¤¹¤ë gnuplot ¥³¥Þ¥ó¥É¤Î»ØÄê ("help fit" »²¾È)¡£
Åö¤Æ¤Ï¤á (fit) ¤Î»ÈÍѤ¹¤ë¥í¥°¥Õ¥¡¥¤¥ë¤Î̾Á°¡£
¥Ç¡¼¥¿¤ä¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¤Î¸¡º÷¥Ç¥£¥ì¥¯¥È¥ê¤ÎÄɲÃÄêµÁ¡£¤½¤ÎÊÑ¿ô¤Ï¡¢ °ì¤Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤«¡¢¤Þ¤¿¤Ï ':' ¶èÀÚ¤ê¤ÇÊ£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê̾¤ò ¤Ä¤Ê¤²¤Æ½ñ¤¤¤¿¤â¤Î¤Ç¤¹¡£GNUPLOT_LIB ¤ÎÃͤÏÊÑ¿ô "loadpath" ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï "save" ¤ä "save set" ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£
½ÐÎÏ·Á¼°¤ÎÃæ¤Ë¤Ï gd ¥é¥¤¥Ö¥é¥ê·Ðͳ¤Ç TrueType ¥Õ¥©¥ó¥È¤ò°·¤¨¤ë¤â¤Î¤¬ ¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤Ï¤½¤ì¤é¤Î½ÐÎÏ·Á¼°¤ËÂФ¹¤ë¥Õ¥©¥ó¥È¤Î ¸¡º÷¥Ñ¥¹¤òÍ¿¤¨¤Þ¤¹¡£
gd ¥é¥¤¥Ö¥é¥ê·Ðͳ¤Ç TrueType ¥Õ¥©¥ó¥È¤ò°·¤¦½ÐÎÏ·Á¼°¤Î¥Ç¥Õ¥©¥ë¥È¥Õ¥©¥ó¥È¡£
postscript ½ÐÎÏ·Á¼°¤¬»ÈÍѤ¹¤ë¥Õ¥©¥ó¥È¸¡º÷¥Ñ¥¹¡£ ½ñ¼°¤Ï GNUPLOT_LIB ¤ÈƱ¤¸¤Ç¤¹¡£ GNUPLOT_FONTPATH ¤ÎÃͤÏÊÑ¿ô "fontpath" ¤ËÄɲ䵤ì¤Þ¤¹¤¬¡¢ ¤½¤ì¤Ï "save" ¤ä "save set" ¥³¥Þ¥ó¥É¤Ç¤ÏÊݸ¤µ¤ì¤Þ¤»¤ó¡£
postscript ½ÐÎÏ·Á¼°¤¬Ãµ¤¹³°Éô (prologue) ÄêµÁ¥Õ¥¡¥¤¥ë¤ÎÃÖ¤­¾ì½ê¡£ ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Îºî¶È¤Ë¤è¤ê¡¢gnuplot ¤Ë¤Ï¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤¬ ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ïñ¤Ë¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¤¢¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥Ñ¥¹¤¬ Ëä¤á¹þ¤Þ¤ì¤ë¤«¤¬ÊѤï¤ê¤Þ¤¹¡£¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿ÄêµÁ¥Õ¥¡¥¤¥ë¤Ç postscript ½ÐÎϤò ¥Æ¥¹¥È¤¹¤ë¾ì¹ç¤Ï¡¢¤³¤Î´Ä¶­ÊÑ¿ô¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£"help postscript prologue" »²¾È¡£

¥Õ¥¡¥¤¥ë

gnuplot ¤Ï¡¢µ¯Æ°»þ¤Ë gnuplotrc ¤È¤¤¤¦¥·¥¹¥Æ¥àÁ´ÂÎÍѤΠ½é´ü²½¥Õ¥¡¥¤¥ë¤òõ¤·¤Þ¤¹¡£ ¤³¤Î¥Õ¥¡¥¤¥ë¤Î¡¢gnuplot ¤¬Ãµ¤½¤¦¤È¤¹¤ëɸ½àŪ¤ÊÃÖ¤­¾ì½ê¤Ï¡¢ ¥³¥Þ¥ó¥É "show loadpath" ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
.gnuplot
¥·¥¹¥Æ¥àÁ´ÂÎÍѤνé´ü²½¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤ó¤À¸å¤Ç¡¢ gnuplot ¤Ï¸Ä¿ÍÍѤνé´ü²½¥Õ¥¡¥¤¥ë¤ò ¤½¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê (HOME) ¾å¤Çõ¤·¤Þ¤¹¡£ ¤³¤³¤Ë¤Ï¡¢Àµ¤·¤¤ gnuplot ¥³¥Þ¥ó¥É¤Ê¤é²¿¤ò½ñ¤¤¤Æ¤â¤¤¤¤¤Î¤Ç¤¹¤¬¡¢ °ìÈÌŪ¤Ë¤Ï¡¢¤è¤¯»È¤¦½ÐÎÏ·Á¼°¤Î»ØÄê¤ä¡¢Àþ¼ï¤ÎÀßÄê¡¢ ¤è¤¯»È¤¦´Ø¿ô¤äÊÑ¿ô¤ÎÄêµÁ¤òÀßÄꤹ¤ëÄøÅÙ¤ËÍÞ¤¨¤Æ¤ª¤­¤Þ¤¹¡£
¥³¥Þ¥ó¥É "fit" ¤Ë¤è¤Ã¤Æ½ÐÎϤµ¤ì¤ë¥í¥°¥Õ¥¡¥¤¥ë¤Î¥Ç¥Õ¥©¥ë¥È¤Î̾Á°¡£

ºî¼Ô

¸µ¡¹¤Îºî¼Ô: Thomas Williams, Colin Kelley gnuplot ¥Ð¡¼¥¸¥ç¥ó 3.8 °Ê¹ß¡¢¥½¡¼¥¹°ì¼°¤Ï¡¢SourceForge ¾å¤Ç¡¢ ¤È¤Æ¤â¿¤¯¤Î´óÍ¿¼Ô¤Ë¤è¤Ã¤Æ¶¦Æ±¤ÇÊݼ餵¤ì¤Æ¤¤¤Þ¤¹¡£

¥Ð¥°

¥Ð¥°¤¬¤¢¤ì¤Ð¡¢SouceForge ¾å¤Î bug tracker ¥×¥í¥¸¥§¥¯¥È¤ò»È¤Ã¤ÆÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£

»²¾È

¸Ä¡¹¤Î¥³¥Þ¥ó¥É¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢°õºþ¤µ¤ì¤¿¥Þ¥Ë¥å¥¢¥ë¤ä¥ª¥ó¥é¥¤¥ó¥Ø¥ë¥×¤ò»²¾È¡£
¥×¥í¥¸¥§¥¯¥È Web ¥µ¥¤¥È: http://gnuplot.info

2014 ǯ 6 ·î 11 Æü 4th Berkeley Distribution