Index: branches/czw_branch/20101203/tools/czarplot.pl
===================================================================
--- branches/czw_branch/20101203/tools/czarplot.pl	(revision 29907)
+++ branches/czw_branch/20101203/tools/czarplot.pl	(revision 30118)
@@ -126,11 +126,20 @@
 
 
-my $plotter = new czartool::Plotter(
-        $gpc1Db, 
-        $czarDb, 
-        "%Y%m%d-%H%M%S", 
-        $savingToFile ? "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8" : "X11", 
-        $path, 
-        $save_temps);
+my $plotter = undef; 
+if ($savingToFile) {
+
+    $plotter = czartool::Plotter->new_file(
+            $gpc1Db,
+            $czarDb,
+            $path,
+            $save_temps);
+}
+else {
+
+    $plotter = czartool::Plotter->new_display(
+            $gpc1Db, 
+            $czarDb, 
+            $save_temps);
+}
 
 # sort out times
@@ -168,5 +177,5 @@
 elsif ($nebulous) {$plotter->plotDiskUsageHistogram();}
 if ($magicMask) {
-    
+
     if ($exposureId) {$plotter->plotMagicMaskFractionForThisExposure($exposureId);}
     else {$plotter->plotMagicMaskFraction($begin, $end);}
