/usr/share/doc/perl-GDGraph/samples
NameSizeModeActions
error.pl1790644editdlrm
logo.gif26690644editdlrm
logo.png29270644editdlrm
Makefile23660644editdlrm
make_index.pl14250644editdlrm
rgb.txt171200644editdlrm
sample1A.pl11030644editdlrm
sample1B.pl9580644editdlrm
sample11.pl9300644editdlrm
sample12.pl8950644editdlrm
sample13.pl8050644editdlrm
sample14.pl25080644editdlrm
sample15.pl9990644editdlrm
sample16.pl12490644editdlrm
sample17.pl10610644editdlrm
sample18.pl30870644editdlrm
sample19.pl28870644editdlrm
sample21.pl7050644editdlrm
sample22.pl5630644editdlrm
sample23.pl27590644editdlrm
sample29.pl7320644editdlrm
sample31.pl7060644editdlrm
sample41.pl8070644editdlrm
sample42.dat1030644editdlrm
sample42.pl9740644editdlrm
sample51.pl6650644editdlrm
sample52.pl8730644editdlrm
sample53.pl12800644editdlrm
sample54.dat314680644editdlrm
sample54.pl10390644editdlrm
sample55.pl6650644editdlrm
sample56.pl11870644editdlrm
sample57.pl5790644editdlrm
sample58.pl7150644editdlrm
sample61.pl13670644editdlrm
sample62.pl8380644editdlrm
sample63.pl10530644editdlrm
sample64.pl14550644editdlrm
sample71.pl26240644editdlrm
sample72.pl10600644editdlrm
sample91.pl5120644editdlrm
sample92.pl6160644editdlrm
sample93.pl4910644editdlrm
sample94.pl6850644editdlrm
sample95.pl26820644editdlrm
save.pl2880644editdlrm
Edit: /usr/share/doc/perl-GDGraph/samples/sample18.pl (3087B)
no strict; # TODO fix this use GD::Graph::bars; use GD::Graph::hbars; require 'save.pl'; # CONTRIB Edwin Hildebrand. # # See changes in bars.pm: Check for bar height rounding errors when # stacking bars. @dat = qw( 991006 991007 991114 991117 991118 991119 991120 991121 991122 991123 991124 991125 991126 991127 991128 991129 991130 991201 991204 991205 991206 991207 991208 ); @sub = qw(0 0 0 0 0 0 0 0 1 1 1 1 2 3 1 1 1 1 2 2 6 8 8); @def = qw(0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0); @rej = qw(0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0); @opn = qw(4 4 4 5 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3); @ass = qw(0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0); @wrk = qw(1 2 2 2 2 2 1 1 2 2 2 1 1 1 1 1 1 1 1 1 3 6 5); @fin = qw(0 0 0 0 0 0 1 0 0 0 0 1 1 1 2 2 2 2 2 2 2 2 2); @ver = qw(0 0 0 0 0 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1); @con = qw(0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0); @tst = qw(0 0 0 0 0 0 0 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1); @rev = qw(0 0 0 0 0 0 0 0 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1); @cco = qw(0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0); @cls = qw(0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0); @sld = qw(0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 3 3 3 4); # setup x data push(@data,\@dat); # push x labels into plot data push(@data,\@sub); push(@data,\@def); push(@data,\@rej); push(@data,\@opn); push(@data,\@ass); # push x values into plot data push(@data,\@wrk); # (push order must match legend label order) push(@data,\@fin); push(@data,\@ver); push(@data,\@con); push(@data,\@tst); push(@data,\@rev); push(@data,\@cco); push(@data,\@cls); push(@data,\@sld); # setup legend labels @legend = qw( Submitted Deferred Rejected Opened Assigned Work Finished Verified Configured Tested Reviewed Closed-CO Closed Sealed ); my @names = qw/sample18 sample18-h/; for my $graph (GD::Graph::bars->new(600, 400), GD::Graph::hbars->new(600, 400)) { my $name = shift @names; print STDERR "Processing $name\n"; # set graph legend $graph->set_legend(@legend); # set graph options $graph->set( 'dclrs' => [ qw(lblue lyellow blue yellow lgreen lred green red purple orange pink dyellow) ], 'title' => "States by Time", 'x_label' => "Time", 'y_label' => "# OF thingies", 'long_ticks' => 1, 'tick_length' => 0, 'x_ticks' => 0, 'x_label_position' => .5, 'y_label_position' => .5, 'cumulate' => 1, 'bgclr' => 'white', 'transparent' => 0, 'interlaced' => 1, 'y_tick_number' => 5, 'y_number_format' => '%d', #'y_max_value' => 25, #'y_min_value' => 0, 'y_plot_values' => 1, 'x_plot_values' => 1, 'zero_axis' => 1, ); $graph->set('x_labels_vertical'=> 1) unless $name =~/-h$/; $graph->plot(\@data); save_chart($graph, $name); } 1;