´ÙÀ½ÀÌÀüÂ÷·Ê

5. 3Â÷¿ø Ç÷Ô

5.1 ÇÔ¼öÀÇ Ç÷Ô

3Â÷¿øÀÇ ±×·¡ÇÁ¸¦ Ç÷ÔÇϱâ À§Çؼ­´Â ´ÙÀ½°ú °°Àº ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù.
        gnuplot>splot 'expression'
expression¿¡ Ãâ·ÂÇÏ°í ½ÍÀº ÇÔ¼ö z=f(x,y)¸¦ ÀÔ·ÂÇÕ´Ï´Ù. ¿¹¸¦ µé¸é
        gnuplot>splot exp(x)+exp(y)

¶ó°í ÀÔ·ÂÇϸé

¿Í °°ÀÌ Ç¥½ÃµË´Ï´Ù. ¿©±â¼­ "exp(x)"´Â ÀÚ¿¬´ë¼ö eÀÇ x½ÂÀ» ¶æÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù.

µ¥ÀÌÅÍÀÇ Ç÷Ô

3Â÷¿ø¿¡¼­ µ¥ÀÌÅ͸¦ Ç÷ÔÇÏ´Â °æ¿ì¿¡´Â splot ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù. 2Â÷¿ø ÇÔ¼öÀÇ °æ¿ì¿Í µ¿ÀÏÇÏ°Ô
        gnuplot>splot "data file"
¶Ç´Â
        gnuplot>splot 'data file'
¿Í °°ÀÌ ' ȤÀº " ·Î µÑ·¯½á ÁöÁ¤ÇÕ´Ï´Ù.

3Â÷¿øÀÇ µ¥ÀÌÅÍ Ç÷ÔÀ¸·Î´Â 2°³ÀÇ ¸ðµå°¡ ÀÖ¾î, ¿ëµµ¿¡ µû¶ó ¾î´À ÂÊÀÎÁö¸¦ ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

5.2 noparametric plot : zÀÇ °ª¸¸À» °¡Áö´Â 3Â÷¿ø µ¥ÀÌÅÍ Ç÷Ô

¸ÕÀú, noparametric¸ðµå·Î Çϱâ À§Çؼ­´Â ÇÁ·ÒÇÁÆ® »ó¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇÕ´Ï´Ù.
        gnuplot>set noparametric
ÀÌÁ¦ noparametric mode°¡ µË´Ï´Ù. ÃÖÃÊÀÇ ¼³Á¤Àº ÀÌ ¸ðµåÀ̹ǷΠƯº°È÷ ÁöÁ¤ÇØ ÁÙ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ´ÙÀ½°ú °°Àº µ¥ÀÌÅÍ°¡ ÀÖ´Ù°í ÇսôÙ.
                #text3.txt
                1
                1
                1
                                -- °ø¹é
                2
                2
                2
                                -- °ø¹é
                4
                4 
                4
                                -- °ø¹é
                8       
                8
                8
ÀÌÁ¦ ÀÌ µ¥ÀÌÅÍÆÄÀÏ 'text3.txt' È­ÀÏÀ» Ç÷ÔÇØ º¾½Ã´Ù.
        gnuplot>splot "text3.txt" with linespoints
Çϸé x, yÃàÀÇ °ªÀº ÀÚµ¿ÀûÀ¸·Î ÁÖ¾îÁö°í, ÀÌÇÏ °°°Ô Ç¥½ÃµË´Ï´Ù.

5.3 paramertric plot : x,y,z ¸ðµç °ªÀ» °¡Áö´Â 3Â÷¿ø µ¥ÀÌÅÍ Ç÷Ô

noparametric ¸ðµå¿Í °°Àº ¸ð¾ç¿¡¼­ parametric ¸ðµå¸¦ »ç¿ëÇϱâ À§ÇØ ´ÙÀ½ÀÇ ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù.
        gnuplot>set parametric
ÀÌ°ÍÀ¸·Î parametric ¸ðµå°¡ µË´Ï´Ù. »õ·Î¿î ¿¹¸¦ µé¾îº¸°Ú½À´Ï´Ù.
                #text4.txt
                #x      y       z
                4.514   0.014   0.466
                4.575   0.016   0.510
                4.635   0.016   0.557
                4.699   0.013   0.599
                4.786   0.09    0.611
                                        -- °ø¹é
                4.514   -0.014  0.466
                4.575   -0.016  0.510
                4.635   -0.016  0.557
                4.699   -0.013  0.599
                4.786   -0.010  0.611
                                        -- °ø¹é
                4.533   -0.064  0.415
                4.604   -0.065  0.440
                4.676   -0.065  0.464
                4.746   -0.065  0.488
                4.816   -0.043  0.525
ÀÌ·¯ÇÑ µ¥ÀÌÅ͸¦ Ç÷ÔÇϱâ À§Çؼ­´Â
        gnuplot>splot "text4.txt" with linespoints
¶ó°í ÇÕ´Ï´Ù.


´ÙÀ½ÀÌÀüÂ÷·Ê