Perl Programming Course for Bioinformatics and Internet
3D graphs
sample code


   use GD::Graph::bars3d; # also "lines3d","pie3d"
   my @data = (
      ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
      [ 1203,  3500,  3973,  2859,  3012,  3423,  1230]
   );
   my $graph = new GD::Graph::bars3d( 400, 300 );
   $graph->set(
           x_label           => 'Day of the week',
           y_label           => 'Number of hits',
           title             => 'Daily Summary of Web Site',
   );
   my $gd = $graph->plot( \@data );


GD::Graph::bars3d

GD::Graph::lines3d

GD::Graph::pie3d


Table of contents
Previous | Next