sample91.pl
上传用户:shbosideng
上传日期:2013-05-04
资源大小:1555k
文件大小:0k
源码类别:

SNMP编程

开发平台:

C/C++

  1. use GIFgraph::pie;
  2. print STDERR "Processing sample 9-1n";
  3. @data = ( 
  4.     ["1st","2nd","3rd","4th","5th","6th"],
  5.     [    4,    2,    3,    4,    3,  3.5]
  6. );
  7. $my_graph = new GIFgraph::pie( 250, 200 );
  8. #$my_graph = new GIFgraph::pie( );
  9. $my_graph->set( 
  10. title => 'A Pie Chart',
  11. label => 'Label',
  12. axislabelclr => 'black',
  13. pie_height => 36,
  14. );
  15. $my_graph->plot_to_gif( "sample91.gif", @data );
  16. exit;