IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40088 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 11, 2017, 12:26:41 PM (9 years ago)
Author:
eugene
Message:

get the path to the gnuplot binary from the xml config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/Plotter.pm

    r40055 r40088  
    3939        "deleted_local");
    4040
    41 my $GNUPLOT="/home/panstarrs/ipp/local/bin/gnuplot";
     41# my $GNUPLOT="/home/panstarrs/ipp/local/bin/gnuplot";
     42# my $GNUPLOT="/data/ippc64.1/ippitc/local/bin/gnuplot";
    4243
    4344###########################################################################
     
    142143    }
    143144       
     145    $self->{GNUPLOT} = $self->{_config}->getGnuplotExec();
    144146
    145147    $self->{_czarDb} = $self->{_config}->getCzarDbInstance();
     
    264266    my ($self, $gnuplotFiles, $outputFile, $label, $selectedStage, $beginTime, $endTime, $interval) = @_;
    265267
    266     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     268    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    267269    use FileHandle;
    268270    GP->autoflush(1);
     
    445447    close(GNUDAT);
    446448
    447     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     449    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    448450    use FileHandle;
    449451    GP->autoflush(1);
     
    577579    $title .= " for '$label'\\nFrom '$fromTime' to '$toTime' HST";
    578580
    579     open (GP, "|$GNUPLOT -persist > /dev/null 2>&1") or die "no gnuplot";
     581    open (GP, "|$self->{GNUPLOT} -persist > /dev/null 2>&1") or die "no gnuplot";
    580582    use FileHandle;
    581583    GP->autoflush(1);
     
    649651    $self->getTimeSpacing($timeDiff, \$divX, \$timeFormat);
    650652
    651     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     653    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    652654    use FileHandle;
    653655    GP->autoflush(1);
     
    693695    my $totalPercent = sprintf("%.1f%%", $totalUsed);
    694696
    695     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     697    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    696698    use FileHandle;
    697699    GP->autoflush(1);
     
    738740    my $totalPercent = sprintf("%.1f%%", $totalUsed);
    739741
    740     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     742    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    741743    use FileHandle;
    742744    GP->autoflush(1);
     
    802804
    803805
    804     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     806    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    805807    use FileHandle;
    806808    GP->autoflush(1);
     
    926928
    927929    # make histogram
    928     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     930    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    929931    use FileHandle;
    930932    GP->autoflush(1);
     
    949951
    950952    # make cumulative distribution
    951     open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
     953    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
    952954    use FileHandle;
    953955    GP->autoflush(1);
Note: See TracChangeset for help on using the changeset viewer.