¾Õ¿¡¼ »ìÆìº» ¸ðµç ³»¿ëµéÀº gnuplot ÇÁ·ÒÇÁÆ® »ó¿¡¼ Á÷Á¢ ÀÔ·ÂÇÏ´Â ¹æ¹ýÀ̾ú°í, »ç½Ç ÀÌ ¹æ¹ýÀº Àß ¾²ÀÌÁö ¾ÊÁö¸¸ gnuplotÀÇ Àü¹ÝÀûÀÎ ±â´ÉÀ» ¾Ë¾Æº¸°íÀÚ »ç¿ëÇÏ¿´´Ù. ½ÇÁ¦ gnuplotÀ» »ç¿ëÇÒ ¶§ gnuplotÀÇ ¿©·¯ ¸í·Éµé°ú ¼³Á¤À» ´ã°í ÀÖ´Â ÆÄÀÏÀ» »ý¼ºÇÏ¿© ±× ÆÄÀÏÀ» Àоîµé¿© ÀÛ¾÷À» ÇÏ°Ô µÈ´Ù. gnuplotÀÌ ÀоîµéÀÏ ÀÛ¾÷ÆÄÀÏÀº ÆÄÀÏÀÇ À̸§Àº »ó°ü¾øÀÌ Çü½Ä¸¸ ASCII ÅØ½ºÆ® ÆÄÀÏÀÌ¸é µÈ´Ù.
$ cat test.plot #test.plot set term post set output 'test.eps' set xlab "Time(hour)" set ylab "Distance(meter)" set title "Velocity of My Car" set nokey plot "test.dat" with linespoints $ gnuplot test.plot $ |
´ëºÎºÐÀÇ ¸®´ª½º¿ë ÇÁ·Î±×·¥µéÀÌ ±×·¯ÇϵíÀÌ ¹«¼Ò½ÄÀÌ Èñ¼Ò½ÄÀÌ´Ù. µð·ºÅ丮¸¦ »ìÆìº¸¸é test.eps ÆÄÀÏÀÌ »ý¼ºµÇ¾î ÀÖ´Â °ÍÀ» È®ÀÎÇÒ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ÀÌ·¸°Ô ÆÄÀÏÀ» ºÒ·Áµé¿© ½ÇÇàÇÏ°Ô ÇÁ·ÒÇÁÆ® »ó¿¡¼ Á÷Á¢ ÀÔ·ÂÇÏ´Â °Íº¸´Ù ÈξÀ ´õ ½Ã°£À» ÁÙÀÏ ¼ö ÀÖ°Ô µÇ°í shell script¿ÍÀÇ ¿¬µ¿µµ ½¬¿öÁö°Ô µÈ´Ù. ÀÌÁ¦ gnuplotÀÇ »ç¿ë¿¡ ¾î´À Á¤µµ Àͼ÷ÇØ Á³´Ù°í º¸°í ½ÇÁ¦·Î »ç¿ëµÉ ¼ö ÀÖÀ»¸¸ÇÑ script¸¦ Çϳª ºÐ¼®Çغ¸ÀÚ.