set ¸í·É¿¡ ´ëÇؼ...
¿©Áö²¯ ³ª¿Ô½À´Ï´Ù¸¸, gnuplotÀÇ customize´Â º¸Åë set ¶ó°í ÀÔ·ÂÇÕ´Ï´Ù.
gnuplot>set 'option'¼³Á¤µÈ ȯ°æÀ» º¸±â À§Çؼ´Â ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÕ´Ï´Ù.
gnuplot>show 'option'option¿¡´Â º¸°í ½ÍÀº °ÍÀ» ÀÔ·ÂÇÕ´Ï´Ù. ¸ðµç ȯ°æÀ» º¸°í ½ÍÀº °æ¿ì¿¡´Â
gnuplot>show all·Î ÇÕ´Ï´Ù. ¾Æ¹«°Íµµ ¼³Á¤µÇ¾î ÀÖÁö ¾Ê¾Æµµ defaultÀÇ ¼³Á¤ÀÌ Ç¥½ÃµË´Ï´Ù.
gnuplot>plot [-2*pi:2*pi]cos(x)¶ó°í ÀÔ·ÂÇØ º¸¼¼¿ä. ÀÌ°ÍÀ¸·Î Ç¥½ÃÇÏ´Â ·çÇÁÀÇ xÃàÀÇ ¹üÀ§´Â -2pi·ÎºÎÅÍ 2pi°¡ µË´Ï´Ù. ¿©±â¼ pi´Â ¿øÁÖÀ²ÀÔ´Ï´Ù.
¿©±â¼ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÏ°Ô µÇ¸é xÃà»Ó¸¸ ¾Æ´Ï¶ó yÃàÀÇ ¹üÀ§µµ ÁöÁ¤ÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
gnuplot>plot [-2*pi:2*pi][-1.5:1.5]cos(x)
Áï, plotÀÇ µÚ ÇÔ¼ö, µ¥ÀÌÅÍÆÄÀÏÀÇ ¾Õ¿¡ ±×·¡ÇÁÀÇ ¹üÀ§¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. 3Â÷¿øÀÇ °æ¿ìµµ µ¿ÀÏÇÏ°Ô Àû¿ëµË´Ï´Ù. ¶Ç ´ÙÀ½°ú °°ÀÌ ÁöÁ¤ÇØ yÃุÀÇ ¹üÀ§¸¦ ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ÁöÁ¤ÇÏÁö ¾Ê´Â ÃàÀÇ ¹üÀ§´Â ÀÓÀÇÀÇ °ªÀ» ÃëÇÕ´Ï´Ù. »óÇÑÀ̳ª ÇÏÇѸ¸À» ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
gnuplot>plot [:2*pi]cos(x)
set xrange[x_min:x_max] set yrange[y_min:y_max] set zrange[z_min:z_max]·Îµµ °°Àº °á°ú¸¦ ³ªÅ¸³À´Ï´Ù. *_min¿¡´Â ÃÖ¼Ò°ªÀ», *_max¿¡´Â ÃÖ´ë°ªÀ» ¾¹´Ï´Ù. [:]¾ÈÀº À§¿¡¼ ¼³¸íÇÑ °Í°ú °°ÀÌ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ¿Í °°ÀÌ ÇØ ¹üÀ§¸¦ ÁöÁ¤ ÇßÀ»¶§´Â ÀÌÈÄÀÇ ±×·¡ÇÁÀÇ Ãâ·Â¿¡ ¿µÇâÀ» ÁÙ ¼ö ÀÖ½À´Ï´Ù. ¿ø·¡ÀÇ ±âº»°ªÀ¸·Î µ¹¸®°í ½ÍÀ» ¶§¿¡´Â
gnuplot>set autoscale 'axes'axes¿¡´Â ¹üÀ§¸¦ ÁöÁ¤ÇÏ´Â ÁÂÇ¥ÃàÀ» ÁöÁ¤ÇÏ¸é µË´Ï´Ù. ÁöÁ¤ÇÒ ¼ö ÀÖ´Â 'axes'´Â x,y,z,xyÀÇ 4°¡ÁöÀÔ´Ï´Ù. ¸ðµÎ µÇµ¹¶ó°í ½ÍÀ»¶§¿¡´Â ±×³É
gnuplot>set autoscale¶ó°í ÇÏ¸é µË´Ï´Ù.
gnuplot>set xtics start,incr,end¿©±â¼ start´Â ´«±ÀÀÇ ½ÃÀÛ, incrÀº ´«±ÝÀÇ Æø, end´Â Á¾·áÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¿É¼Ç ytics, zticsµµ °°½À´Ï´Ù. ¿¹¸¦ µé¾î, xÃàÀÇ ´«±ÝÀ» -3¿¡¼ 3±îÁö 0.5ÀÇ ÆøÀ¸·Î »õ±â°í, yÃàÀÇ ´«±ÝÀ» 0¿¡¼ 1±îÁö 0.2ÀÇ ÆøÀ¸·Î »õ±â°í, exp(x**2)ÀÇ ±×·¡ÇÁ¸¦ Ãâ·ÂÇϱâ À§Çؼ´Â
gnuplot>set xtics -3,0.5,3 gnuplot>set ytics 0,0.2,1 gnuplot>plot [-3:3][0:1]exp(-x**2)¿Í °°ÀÌ ½ÇÇàÇÕ´Ï´Ù.
¶Ç, °°Àº °£°ÝÀÇ ´«±Ý³ª´©±â»Ó¸¸ ¾Æ´Ï¶ó, ´«±ÝÀ» ³ª´©´Â À§Ä¡¸¦ ÀÚÀ¯·Ó°Ô ÁöÁ¤ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
gnuplot>set xtics {position{,position, ...})°ú °°ÀÌ ÁöÁ¤ÇÕ´Ï´Ù. postionÀº ºÙÀÌ°í ½ÍÀº ´«±ÝÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¿¹¸¦ µé¸é,
gnuplot>set xtics(0,pi/8,pi/4,pi/2,pi) gnuplot>plot [0:pi]sin(x**2)
gnuplot>set xtics("min"-pi,"counter"0,"max"pi) gnuplot>plot [-pi:pi]sin(x**2)
gnuplot>set xtics¿©±â¼ xticsÀÇ °æ¿ì´Â xÃà, ytics, ztics´Â y,zÃàÀÇ °ªÀ» µÇµ¹¸³´Ï´Ù. ¶Ç, ´«±ÝÀ» ºÙÀÌÁö ¾Ê´Â °æ¿ì´Â
gnuplot>set noxtics¶ó°í ÇØ ÁÖ¸é µË´Ï´Ù.
gnuplot>set title "title"¿Í °°ÀÌ ¼³Á¤ÇÕ´Ï´Ù. "title"¿¡´Â Ç¥½ÃÇÏ°í ½ÍÀº Á¦¸ñÀ» ""·Î ÀÔ·ÂÇÕ´Ï´Ù. Á¦¸ñÀº ±×·¡ÇÁÀÇ »óºÎ Áß¾Ó¿¡ Ç¥½ÃµË´Ï´Ù.
gnuplot>set title "example" gnuplot>splot sin(x)-cos(y)
gnuplot>set title "title" x,yx,y¿¡´Â ¼öÄ¡¸¦ ´ëÀÔÇÕ´Ï´Ù. ¿À¸¥ÂÊÀ¸·Î x, À§ÂÊÀ¸·Î y¸¸Å À̵¿ÇÕ´Ï´Ù.
gnyplot>set title "example" 30 gnuplot>splot sin(x)-cos(y)
gnuplot>set title¶ó°í ÀÔ·ÂÇÕ´Ï´Ù.
gnuplot>set xlabel "label" gnuplot>set ylabel "label" gnyplot>set zlabel "label"ÀÌ label¿¡ ÁöÁ¤µÈ ¹®ÀÚ°¡ ÃàÀÇ ¶óº§·Î¼ Ç¥½ÃµË´Ï´Ù. ¶óº§ÀÇ Ç¥½ÃÀ§Ä¡´Â 2Â÷¿ø¿¡¼´Â xÃàÀÇ Áß¾Ó°ú yÃàÀÇ ÁÂÃø À§¿¡, 3Â÷¿ø¿¡¼´Â xÃàÀÇ Áß¾Ó, yÃàÀÇ Áß¾Ó, zÃàÀÇ »óºÎ°¡ µË´Ï´Ù. Á¦¸ñ°ú °°¿¡ "label"ÀÇ µÚ¿¡
gnuplot>set xlabel "label" x,yÁ¦¸ñ ÁöÁ¤¿¡¼¿Í °°ÀÌ x,y¿¡ ¼öÄ¡¸¦ ³Ö¾î ¿À¸¥ÂÊÀ¸·Î x, À§ÂÊÀ¸·Î y¸¸Å À§Ä¡ÇÕ´Ï´Ù.
gnuplot>set xlabel "Input" 30 gnuplot>set ylabel "Output" gnuplot>plot [-pi/2:pi/2]cos(x**3)
gnuplot>set xlabel¶ó°í ÇÏ¸é µË´Ï´Ù. :)
gnuplot>plot expression title "curve_name"±×·¡ÇÁÀÇ ¹æÁ¤½Ä µ¥ÀÌÅÍ ÆÄÀÏ "expression"À¸ -·Î¼ "curve_name"ÀÌ È¸éÀÇ ¿À¸¥ÂÊ »ó´Ü¿¡ Ç¥½ÃµË´Ï´Ù.
gnuplot>plot [-pi/2:pi/2]sin(x) title "KEY 1"
gnuplot>set key x,y»ïÂ÷¿øÀÇ °æ¿ì´Â
gnuplot>set key x,y,z¿Í °°ÀÌ ÇØÁÖ¸é ÁÂÇ¥ÀÇ (x,y,z)ÀÇ À§Ä¡¿¡ -°¡ Ç¥½ÃµË´Ï´Ù. ¶Ç, -À» Ç¥½ÃÇÏÁö ¾Ê´Â °æ¿ì´Â ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
gnuplot>set nokey
set zerozxis : xÃà, yÃàÀ» Á¡¼±À¸·Î Ç¥½Ã set nozeroaxis : xÃà, yÃàÀ» Ç¥½Ã¾ÊÀ½ set xzeroaxis : xÃàÀ» Á¡¼±À¸·Î Ç¥½Ã set xnozeroaxis : xÃàÀ» Ç¥½ÃÇÏÁö ¾ÊÀ½ÀÌ ¸í·ÉÀº 2Â÷¿øÀÇ °æ¿ì¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ¸í·ÉÀ̹ǷÎ, ÁÂÇ¥ÃàÀÇ ¼³Á¤À» ÇÑ ÈÄ¿¡ 3Â÷¿øÀÇ ±×·¡ÇÁ¸¦ ±×·Áµµ ¾î¶² ¿µÇâÀÌ ¾ø½À´Ï´Ù.
set border : ±×·¡ÇÁÀÇ °æ°è¸¦ Ç¥½Ã set noborder : ±×·¡ÇÁÀÇ °æ°è¸¦ Ç¥½ÃÇÏÁö ¾ÊÀ½ gnuplot>set noborder gnuplot>splot [-pi:pi][-pi/2:pi/2]sin(x)*cos(y)
gnuplot>set grid : °ÝÀÚÀÇ Ç¥½Ã gnuplot>set nogrid : °ÝÀÚ Ç¥½Ã¾ÊÀ½
gnuplot>set logscale 'axes''axes'¿¡ log ½ºÄÉÀÏ·Î ÇÏ´Â ÃàÀ» ÁöÁ¤ÇÕ´Ï´Ù. ÃàÀÇ ÁöÁ¤¿¡´Â x,y,z¹× ±× ¸ðµç ´ëĪµÇ´Â ÃàÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÃàÀÇ ÁöÁ¤À» »ý·«ÇÑ °æ¿ì¿¡´Â ¸ðµç ÃàÀÌ log ½ºÄÉÀÏÀÌ µË´Ï´Ù.
gnuplot>set logscale xy gnuplot>splot [1:100][1:100]log(x)*log(y)
gnuplot>set nologscale 'axes'logscaleÀÇ ¸í·É°ú °°¿¡ 'axes'¿¡´Â x,y,z ¹× ±× ¸ðµç ´ëĪÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.