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

SNMP编程

开发平台:

C/C++

  1. use GIFgraph::bars;
  2. print STDERR "Processing sample 1-3n";
  3. @data = ( 
  4.     ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
  5.     [    5,   12,   24,   33,   19,    8,    6,    15,    21],
  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 => 'Bars in front of each other',
  13. y_tick_number => 8,
  14. y_label_skip => 2,
  15. overwrite => 1,
  16. );
  17. $my_graph->plot_to_gif( "sample13.gif", @data );
  18. exit;