IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 26, 2010, 9:18:39 AM (16 years ago)
Author:
Serge CHASTEL
Message:

Merging trunk in branch

Location:
branches/sc_branches/trunkTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/trunkTest

  • branches/sc_branches/trunkTest/tools/czartool/Czarplot.pm

    r28923 r29060  
    55use strict;
    66
    7 my @allStages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
     7my @allStages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
    88
    99
     
    7575    if ($numOfPlots == 0 ) {
    7676
    77         print "Warning: No plots could be generated for '$label' during time period '$beginTime', '$endTime'\n";
     77        print "Warning: No plots could be generated for stage '$selectedStage' and label '$label' during time period '$beginTime', '$endTime'\n";
    7878        return;
    7979    }
     
    103103    my ($processed, $pending, $faults);
    104104    my $stage = undef;
     105    my $pendingMinusFaults = undef;
    105106    foreach $stage (@allStages) {
    106107
    107108        $self->{_czarDb}->countProcessedPendingAndFaults($label, $stage, $beginTime, $endTime, \$processed, \$pending, \$faults);
    108         print GNUDAT "$stage $processed, $pending, $faults\n";
     109
     110        $pendingMinusFaults = $pending - $faults;
     111        print GNUDAT "$stage $faults $processed, $pendingMinusFaults\n";
    109112    }
    110113
     
    258261        if ($numOfPlots == 1) {
    259262
    260             print GP "'" . $gnuplotFiles->{$stage} . "' using 1:4 title \"Processed\" with lines lt 2,";
    261             print GP "'" . $gnuplotFiles->{$stage} . "' using 1:2 title \"Pending\" with lines lt 4,";
    262             print GP "'" . $gnuplotFiles->{$stage} . "' using 1:3 title \"Faults\" with lines lt 7";
     263            print GP "'" . $gnuplotFiles->{$stage} . "' using 1:4 title \"Processed\" with lines lt 2 lw 2,";
     264            print GP "'" . $gnuplotFiles->{$stage} . "' using 1:2 title \"Pending\" with lines lt 4 lw 2,";
     265            print GP "'" . $gnuplotFiles->{$stage} . "' using 1:3 title \"Faults\" with lines lt 7 lw 2";
    263266        }
    264267        # when plotting multiple stages, show only processed
    265268        else {
    266             print GP "'" . $gnuplotFiles->{$stage} . "' using 1:4 title \"$stage\" with lines";
     269            print GP "'" . $gnuplotFiles->{$stage} . "' using 1:4 title \"$stage\" with lines lw 2";
    267270        }
    268271        $firstIn = 0;
     
    339342        "set boxwidth;" .
    340343        "set style data histogram;" .
    341         "set style histogram cluster gap 3;" .
     344 "set style histogram rowstacked;" .
    342345        "set style fill solid border -1;" .
    343         "set bmargin 5;" .
    344346        "set ylabel \"Exposures\";" .
    345         "plot '$inputFile' using 2:xtic(1) title \"Processed\" lt 2, '' using 3 title \"Pending\" lt 4, '' using 4 title \"Faults\" lt 7;" .
     347        "set boxwidth 0.75;" .
     348        "plot '$inputFile' using 2:xtic(1) title \"Faults\" lt 1, '' using 3 title \"Processed\" lt 2, '' using 4 title \"Pending\" lt 7;" .
    346349        "\n";
     350
     351
    347352
    348353    close GP;
Note: See TracChangeset for help on using the changeset viewer.