Index: trunk/MagicSoft/Mars/mhbase/MH3.cc
===================================================================
--- trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5143)
+++ trunk/MagicSoft/Mars/mhbase/MH3.cc	(revision 5300)
@@ -478,45 +478,31 @@
 
     // FIXME: Do it in Paint()
-    if (str.Contains("COL", TString::kIgnoreCase))
+    /*
+     if (str.Contains("COL", TString::kIgnoreCase))
+    {
         SetColors();
-
-    if (fHist->TestBit(kIsLogx) && fHist->GetEntries()>0) gPad->SetLogx();
-    if (fHist->TestBit(kIsLogy) && fHist->GetEntries()>0) gPad->SetLogy();
-    if (fHist->TestBit(kIsLogz) && fHist->GetEntries()>0) gPad->SetLogz();
-
-    // Set pretty color palette
-    gStyle->SetPalette(1, 0);
-
-    TVirtualPad *padsave = gPad;
-
-    TProfile* h0;
-    if ((h0 = (TProfile*)gPad->FindObject(fNameProfX)))
-    {
-        // Get projection for range
-        TProfile *p = ((TH2*)fHist)->ProfileX(fNameProfX, -1, 9999, "s");
-
-        // Move contents from projection to h3
-        h0->Reset();
-        h0->Add(p);
-        delete p;
-
-        // Set Minimum as minimum value Greater Than 0
-        //h0->SetMinimum(GetMinimumGT(*h0));
-    }
-    if ((h0 = (TProfile*)gPad->FindObject(fNameProfY)))
-    {
-        // Get projection for range
-        TProfile *p = ((TH2*)fHist)->ProfileY(fNameProfY, -1, 9999, "s");
-
-        // Move contents from projection to h3
-        h0->Reset();
-        h0->Add(p);
-        delete p;
-
-        // Set Minimum as minimum value Greater Than 0
-        //h0->SetMinimum(GetMinimumGT(*h0));
-    }
-
-    gPad = padsave;
+        return;
+    }
+    */
+
+    if (str.Contains("log", TString::kIgnoreCase))
+    {
+        if (fHist->TestBit(kIsLogx) && fHist->GetEntries()>0) gPad->SetLogx();
+        if (fHist->TestBit(kIsLogy) && fHist->GetEntries()>0) gPad->SetLogy();
+        if (fHist->TestBit(kIsLogz) && fHist->GetEntries()>0) gPad->SetLogz();
+    }
+
+    if (str.Contains("upd", TString::kIgnoreCase))
+    {
+
+        // Set pretty color palette
+        // gStyle->SetPalette(1, 0);
+
+        TProfile* h0;
+        if ((h0 = (TProfile*)gPad->FindObject(fNameProfX)))
+            ((TH2*)fHist)->ProfileX(fNameProfX, -1, 9999, "s");
+        if ((h0 = (TProfile*)gPad->FindObject(fNameProfY)))
+            ((TH2*)fHist)->ProfileY(fNameProfY, -1, 9999, "s");
+    }
 }
 
@@ -550,4 +536,6 @@
     if (!only)
         fHist->Draw(str);
+
+    AppendPad("upd");
 
     if (str.Contains("PROFX", TString::kIgnoreCase) && fDimension==2)
@@ -562,4 +550,5 @@
     {
         TProfile *p = ((TH2*)fHist)->ProfileY(fNameProfY, -1, 9999, "s");
+        p->UseCurrentStyle();
         p->SetLineColor(kBlue);
         p->Draw(only?"":"same");
@@ -568,5 +557,5 @@
     }
 
-    AppendPad("");
+    AppendPad("log");
 }
 
