- 论坛徽章:
- 5
|
本帖最后由 pitonas 于 2014-06-16 06:02 编辑
{:2_172:}举个栗子
data:- __DATA__
- 1 30-60 20 30 [/tr]
- 1 30-60 22 32 [/tr]
- 1 30-60 28 38 [/tr]
- 1 30-60 50 60 [/tr]
- 1 30-60 52 62 [/tr]
- 1 70-90 70 80 [/tr]
- 1 70-90 72 82 [/tr]
- 1 70-90 78 88 [/tr]
- 2 40-60 42 52 [/tr]
- 2 70-90 72 82 [/tr]
- 2 70-90 76 92 [/tr]
- 2 100-140 102 112 [/tr]
- 2 100-140 118 128 [/tr]
复制代码 生成的图: class1
代码: [ part 1 ]- #!/usr/bin/perl
- my ( $img_width, $img_height ) = ( 400, 200 );
- my ( $box_color, $line_color ) = qw/green black/;
- my ( $line_width, $point_size ) = ( 2, 1 );
- my $font_size = 8;
- my $title_font_size = $font_size + 2;
- my $line_position = 0.5; # mid: 0.5 or top: 1
- my $offset = 10;
复制代码 代码: [ part 2 ]
{:2_172:} {:2_172:} http://bbs.chinaunix.net/forum.p ... ;extra=#pid24209814 |
|