Index: trunk/ippMonitor/czartool/czartool/Plotter.pm
===================================================================
--- trunk/ippMonitor/czartool/czartool/Plotter.pm	(revision 40087)
+++ trunk/ippMonitor/czartool/czartool/Plotter.pm	(revision 40088)
@@ -39,5 +39,6 @@
         "deleted_local");
 
-my $GNUPLOT="/home/panstarrs/ipp/local/bin/gnuplot";
+# my $GNUPLOT="/home/panstarrs/ipp/local/bin/gnuplot";
+# my $GNUPLOT="/data/ippc64.1/ippitc/local/bin/gnuplot";
 
 ###########################################################################
@@ -142,4 +143,5 @@
     }
         
+    $self->{GNUPLOT} = $self->{_config}->getGnuplotExec();
 
     $self->{_czarDb} = $self->{_config}->getCzarDbInstance();
@@ -264,5 +266,5 @@
     my ($self, $gnuplotFiles, $outputFile, $label, $selectedStage, $beginTime, $endTime, $interval) = @_;
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -445,5 +447,5 @@
     close(GNUDAT);
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -577,5 +579,5 @@
     $title .= " for '$label'\\nFrom '$fromTime' to '$toTime' HST";
 
-    open (GP, "|$GNUPLOT -persist > /dev/null 2>&1") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist > /dev/null 2>&1") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -649,5 +651,5 @@
     $self->getTimeSpacing($timeDiff, \$divX, \$timeFormat);
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -693,5 +695,5 @@
     my $totalPercent = sprintf("%.1f%%", $totalUsed);
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -738,5 +740,5 @@
     my $totalPercent = sprintf("%.1f%%", $totalUsed);
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -802,5 +804,5 @@
 
 
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -926,5 +928,5 @@
 
     # make histogram
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
@@ -949,5 +951,5 @@
 
     # make cumulative distribution
-    open (GP, "|$GNUPLOT -persist") or die "no gnuplot";
+    open (GP, "|$self->{GNUPLOT} -persist") or die "no gnuplot";
     use FileHandle;
     GP->autoflush(1);
