Index: trunk/tools/czartool/Czarplot.pm
===================================================================
--- trunk/tools/czartool/Czarplot.pm	(revision 28783)
+++ trunk/tools/czartool/Czarplot.pm	(revision 28802)
@@ -189,12 +189,23 @@
         $divX = 7200;
     }
-    # if more than one day's data plotted, show daily tics
+    # if less than 1 week's data is data plotted, show daily tics
+    elsif ($timeDiff < 604800) {
+        
+        $timeFormat = "%m/%d";
+        $divX = 86400;
+    }
     else {
-        
-        $timeFormat = "%m/%d %H:%M";
-        $divX = 86400;
-    }
+
+        $timeFormat = "%m/%d";
+        $divX = 172800;
+    }
+
 
     my $numOfPlots = keys %$gnuplotFiles;
+    my $title = undef;
+
+    # sort out plot title
+    if ($numOfPlots == 1) {foreach my $stage (keys %$gnuplotFiles) { $title = "'".$stage."'";}}
+    else {$title = "'All stages'"}
 
     open (GP, "|/usr/bin/gnuplot -persist") or die "no gnuplot";
@@ -205,5 +216,5 @@
         "set term $self->{_outputFormat};" .
         "set output \"$outputFile\";" .
-        "set title \"All stages for '$label' since $fromTime\";" .
+        "set title \"$title for '$label' since $fromTime\";" .
         "set key left top;" .
         "set xdata time;" .
