Index: trunk/MagicSoft/Mars/datacenter/macros/plotstat.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/plotstat.C	(revision 8982)
+++ trunk/MagicSoft/Mars/datacenter/macros/plotstat.C	(revision 8983)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: plotstat.C,v 1.5 2008-06-06 17:02:07 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: plotstat.C,v 1.6 2008-06-19 15:18:57 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -322,6 +322,5 @@
     query[0]  = "select SUM(TIME_TO_SEC(TIMEDIFF(fRunStop, fRunStart)))/3600 ";
     query[0] += "from RunData left join RunProcessStatus on RunData.fRunNumber=RunProcessStatus.fRunNumber ";
-    query[0] += "where fRunTypeKey=2 and ";
-    query[0] += " not ISNULL(fRawFileAvail)";
+    query[0] += "where fRunTypeKey=2 and not ISNULL(fRawFileAvail)";
 
     // 1: All data
@@ -386,6 +385,7 @@
     MH::SetBinning(&h8, &binsp, &binst);
     h8.SetNameTitle("ObsTime", "Distribution of observation time per exposure");
-    h8.SetXTitle("Obs. time per exposure [h]");
-    h8.SetYTitle("Counts");
+    h8.SetXTitle("Observation Period");
+    h8.SetYTitle("Obs. time per exposure [h]");
+    h8.SetZTitle("Counts");
     h8.SetDirectory(0);
 
@@ -447,4 +447,5 @@
     TH1 * p = h8.ProjectionY();
 
+    p->SetYTitle("Counts");
     p->SetDirectory(0);
     p->SetBit(kCanDelete);
@@ -579,5 +580,4 @@
         p->SetBit(TH1::kNoStats);
         p->SetTitle("");
-        p->SetXTitle("Obs. time per exposure [h]");
         p->SetYTitle("Counts");
         p->SetDirectory(0);
