Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 5602)
+++ trunk/MagicSoft/Mars/Changelog	(revision 5603)
@@ -47,4 +47,13 @@
        this fixed the problem that searching for fPedestals was
        overwritten in MExtractTime
+
+   * macros/readrep.C:
+     - added the missing '.' dot to MTime in a comment
+
+   * mhbase/MH3.cc:
+     - draw profile by default not in blue but in the same color as the
+       histogram. Use 'BLUE' option to get the old behaviour
+     - fixed handling of 'same' option
+     - propagate title of axis to profile histogram
 
 
Index: trunk/MagicSoft/Mars/mhbase/MH3.cc
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5602)
+++ trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5603)
@@ -547,4 +547,5 @@
 //   PROFY: Draw a y-profile into the histogram (for 2D histograms only)
 //   ONLY:  Draw the profile histogram only (for 2D histograms only)
+//   BLUE:  Draw the profile in blue color instead of the histograms line color
 //
 // If the kIsLog?-Bit is set the axis is displayed lkogarithmically.
@@ -565,4 +566,6 @@
 
     Bool_t only = str.Contains("ONLY", TString::kIgnoreCase) && fDimension==2;
+    Bool_t same = str.Contains("SAME", TString::kIgnoreCase) && fDimension==2;
+    Bool_t blue = str.Contains("BLUE", TString::kIgnoreCase) && fDimension==2;
     // FIXME: We may have to remove all our own options from str!
     if (!only)
@@ -574,8 +577,11 @@
     {
         TProfile *p = ((TH2*)fHist)->ProfileX(fNameProfX, -1, 9999, "s");
-        p->SetLineColor(kBlue);
-        p->Draw(only?"":"same");
+        p->UseCurrentStyle();
+        p->SetLineColor(blue ? kBlue : fHist->GetLineColor());
+        p->Draw(only&&!same?"":"same");
         p->SetBit(kCanDelete);
         p->SetDirectory(NULL);
+        p->SetXTitle(fHist->GetXaxis()->GetTitle());
+        p->SetYTitle(fHist->GetYaxis()->GetTitle());
     }
     if (str.Contains("PROFY", TString::kIgnoreCase) && fDimension==2)
@@ -583,8 +589,10 @@
         TProfile *p = ((TH2*)fHist)->ProfileY(fNameProfY, -1, 9999, "s");
         p->UseCurrentStyle();
-        p->SetLineColor(kBlue);
-        p->Draw(only?"":"same");
+        p->SetLineColor(blue ? kBlue : fHist->GetLineColor());
+        p->Draw(only&&!same?"":"same");
         p->SetBit(kCanDelete);
         p->SetDirectory(NULL);
+        p->SetYTitle(fHist->GetXaxis()->GetTitle());
+        p->SetXTitle(fHist->GetYaxis()->GetTitle());
     }
 
