sample94.pl
来自「mrtg 监控,请认真阅读您的文件包然后写出其具体功能」· PL 代码 · 共 23 行
PL
23 行
use GIFgraph::pie;
print STDERR "Processing sample 9-4\n";
@data = (
[ qw( 1st 2nd 3rd 4th 5th 6th 7th ) ],
[ sort { $b <=> $a} (5.6, 2.1, 3.03, 4.05, 1.34, 0.2, 2.56) ]
);
$my_graph = new GIFgraph::pie( 260, 300 );
$my_graph->set(
start_angle => 90,
'3d' => 0
);
$my_graph->set_legend( 'Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon', 'Forget', 'Rest');
$my_graph->plot_to_gif( "sample94.gif", \@data );
exit;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?