| svggraph. SVGGraph´Â SVG ±×·¡ÇÁ / ´ÙÀ̾î±×·¥ / Â÷Æ® / Ç÷ÔÀ» »ý¼ºÇϱâÀ§ÇÑ Perl È®ÀåÀÚÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
svggraph. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Teun van Eijsden
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~teun/SVGGraph-0.07/SVGGraph.pm
svggraph. ű×
svggraph. ¼³¸í
SVGGraph´Â SVG ±×·¡ÇÁ / ´ÙÀ̾î±×·¥ / Â÷Æ® / Ç÷ÔÀ» »ý¼ºÇϱâÀ§ÇÑ Perl È®ÀåÀÚÀÔ´Ï´Ù. SVGGraph´Â SVG ±×·¡ÇÁ / ´ÙÀ̾î±×·¥ / Â÷Æ® / Ç÷ÔÀ» »ý¼ºÇϱâÀ§ÇÑ Perl È®ÀåÀÚÀÔ´Ï´Ù. Svggraph¸¦ »ç¿ëÇϽʽÿÀ. my @a = (1, 2, 3, 4); my @b = (3, 4, 3.5, 6.33); Àμâ "Content-Type : Image / SVG-XMLNN"; ³» $ svggraph = »õ·Î¿î svggraph; Àμâ svggraph-> creategraph ({ 'Á¦¸ñ'=> À繫 °á°ú Q12002 '}, );ÀÌ ¸ðµâÀº ÁÂÇ¥°¡ÀÖ´Â ¼¼Æ®¸¦ ±×·¡ÇÁ·Î º¯È¯ÇÕ´Ï´Ù. Gnuplot°¡ µÉ °ÍÀÔ´Ï´Ù. ±×°ÍÀº SVG (È®Àå °¡´ÉÇÑ º¤ÅÍ ±×·¡ÇÈ) Çü½ÄÀÇ ±×·¡ÇÁ¸¦ ¸¸µì´Ï´Ù. ±×°ÍÀº µÎ °¡Áö ½ºÅ¸ÀÏ, verticalbars ¹× ½ºÇöóÀÎÀ» °¡Áö°í ÀÖ½À´Ï´Ù. ±×°ÍÀº °¡º¿î ¹«°Ô°¡µÇµµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù. ÀÎÅÍ³Ý ºê¶ó¿ìÀú°¡ SVG¸¦ Ç¥½Ã ÇÒ ¼ö¾ø´Â °æ¿ì, Adobe.Com.Examples¿¡¼ Ç÷¯±×ÀÎÀ» ´Ù¿î·ÎµåÇϽʽÿÀ. http://pearlshed.nl/svggraph/1.png ¹× http : // ÆÞħÀ» ÂüÁ¶ÇϽʽÿÀ. NL / SVGGRAPH / 2.PNGLONG ÄÚµå ¿¹ : #! / usr / bin / perl -w -i. ¾ö°ÝÇÑ »ç¿ë; svggraph¸¦ »ç¿ëÇϽʽÿÀ; ### x °ªÀ» °¡Áø ¹è¿ my @a = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 18, 19 , 20); ### y °ªÀ» °¡Áø ¹è¿ @b = (-5, 2, 1, 5, 8, 8, 9, 5, 4, 10, 2, 1, 5, 8, 8, 9, 5, 4, 10, 5); @c = (6, -4, 2, 1, 5, 8, 8, 9, 5, 4, 10, 2, 1, 5, 8, 8, 9, 5, 4, 10); My @d = (1, 2, 3, 4, 9, 8, 7, 6, 5, 12, 30, 23, 12, 17, 13, 23, 12, 10, 20, 11); @e = (3, 1, 2, -3, -4, -9, -8, -7, 6, 5, 12, 30, 23, 12, 17, 13, 23, 12, 10, 20) ...¿¡ ### INITIALISE MY $ svggraph = »õ·Î¿î svggraph; ### ¾Æ÷Çü ÄÜÅÙÃ÷ À¯ÇüÀ» ÀμâÇϹǷΠºê¶ó¿ìÀú°¡ "content-type : image / svg-xmlnn"À» ±â´ëÇÒ ¼öÀÖ´Â MIME À¯ÇüÀ» ¾Ë°í ÀÖ½À´Ï´Ù. ### ±×·¡ÇÁ Àμâ $ svggraph-> creategraph ({ 'graphtype'=> 'verticalbars', ### verticalbars ¶Ç´Â spline 'imageHeight'=> 300, ### Àüü svg À̹ÌÁö 'barwidth'ÀÇ ÃÑ ³ôÀÌ => 8, ### ¹Ù ¶Ç´Â Çȼ¿ÀÇ µµÆ®ÀÇ Æø 'HoriunitDistance'=> 20, ### ÀÌ°ÍÀº 1 x ´ÜÀ§ 'Á¦¸ñ'=> 'À繫 °á°ú Q12002', 'titlestyle »çÀÌÀÇ Çȼ¿ ´ÜÀ§ÀÇ °Å¸®ÀÔ´Ï´Ù '=>'±Û²Ã Å©±â : 24; ä¿ì±â : # ff0000; ','xlabel '=> week', 'xlabelstyle'=> '±Û²Ã Å©±â : 16, ä¿ì±â : darkblue', 'ylabel'=> '¼öÀÍ (x1000 usd) ','ylabelstyle '=>'±Û²Ã Å©±â : 16; ä¿ì±â : °¥»ö ','legendoffset '=> '10, 10'### ¿ÞÂÊ »ó´Ü¿¡¼ Çȼ¿ ´ÜÀ§}, , , ); ¿ä±¸ »çÇ× : ¡¤ Perl.
svggraph. °ü·Ã ¼ÒÇÁÆ®¿þ¾î