Index: trunk/tools/czartool/Plotter.pm
===================================================================
--- trunk/tools/czartool/Plotter.pm	(revision 29710)
+++ trunk/tools/czartool/Plotter.pm	(revision 29712)
@@ -132,9 +132,5 @@
 
     # now delete temp dat files
-    foreach my $stage (keys %gnuplotFiles) {
-        
-        unlink($gnuplotFiles{$stage});
-    
-    }
+    foreach my $stage (keys %gnuplotFiles) {unlink($gnuplotFiles{$stage});}
 }
 
@@ -182,5 +178,5 @@
     if ($numOfPlots == 0 ) {
 
-        print "Warning: No plots could be generated for stage '$selectedStage' and label '$label' during time period '$beginTime', '$endTime'\n";
+#        print "Warning: No plots could be generated for stage '$selectedStage' and label '$label' during time period '$beginTime', '$endTime'\n";
         return;
     } 
@@ -216,5 +212,5 @@
     my $outputFile = createImageFileName($self, $label, undef, "h", 0);
 
-    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_".$label."_h.XXXXX", DIR => '/tmp', SUFFIX => '.dat');
+    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_".$label."_h.XXXXX", DIR => '/tmp', SUFFIX => 'dat');
     open (GNUDAT, ">".$tmpFile->filename);
 
@@ -429,5 +425,6 @@
     my ($minX, $maxX, $minY, $maxY, $timeDiff);
 
-    my $gnuplotFile = $self->{_czarDb}->createStorageTimeSeriesData($fromTime, $toTime, \$minX, \$maxX, \$minY, \$maxY, \$timeDiff);
+    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_storage_timeseries.XXXXX", DIR => '/tmp', SUFFIX => 'dat');
+    $self->{_czarDb}->createStorageTimeSeriesData($tmpFile, $fromTime, $toTime, \$minX, \$maxX, \$minY, \$maxY, \$timeDiff);
 
     my $timeFormat = undef;
@@ -453,9 +450,8 @@
         "set ylabel \"Available (TB)\";" .
         "plot " . 
-        "'$gnuplotFile' using 1:2 title \"Available\" with lines lt 2 lw 2\n";
+        "'".$tmpFile->filename."' using 1:2 title \"Available\" with lines lt 2 lw 2\n";
 
     print GP "\n";
     close GP;
-    unlink($gnuplotFile);
 }
 
@@ -471,5 +467,5 @@
         my $outputFile = "$prefix/czarplot_hosts_space.png";
     my $limit = 97.0;
-    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_hosts_space.XXXXX", DIR => '/tmp', SUFFIX => '.dat');
+    my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_hosts_space.XXXXX", DIR => '/tmp', SUFFIX => 'dat');
     $self->{_czarDb}->createHostsData($limit, $tmpFile);
 
