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

SNMP编程

开发平台:

C/C++

  1. use GIFgraph::bars;
  2. use GIFgraph::colour;
  3. print STDERR "Processing sample 1-1n";
  4. @data = ( 
  5.     ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
  6.     [    1,    2,    5,    6,    3,  1.5,    1,     3,     4],
  7. );
  8. $my_graph = new GIFgraph::bars();
  9. $my_graph->set( 
  10. x_label => 'X Label',
  11. y_label => 'Y label',
  12. title => 'A Simple Bar Chart',
  13. y_max_value => 8,
  14. y_tick_number => 8,
  15. y_label_skip => 2,
  16. );
  17. $my_graph->plot_to_gif( "sample11.gif", @data );
  18. exit;