Index: trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc	(revision 7842)
+++ trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc	(revision 7971)
@@ -224,5 +224,13 @@
     TString str(opt);
 
+    // This is not done automatically anymore since root 5.12/00
+    // and it is necessary to force a proper update of the axis.
     TH1 *h = fGraph->GetHistogram();
+    if (h)
+    {
+        delete h;
+        fGraph->SetHistogram(0);
+        h = fGraph->GetHistogram();
+    }
 
     h->SetXTitle("Time");
Index: trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc	(revision 7842)
+++ trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc	(revision 7971)
@@ -291,5 +291,13 @@
     }
 
+    // This is not done automatically anymore since root 5.12/00
+    // and it is necessary to force a proper update of the axis.
     TH1 *h = fGraph->GetHistogram();
+    if (h)
+    {
+        delete h;
+        fGraph->SetHistogram(0);
+        h = fGraph->GetHistogram();
+    }
 
     h->SetXTitle("Time");
Index: trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc	(revision 7842)
+++ trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc	(revision 7971)
@@ -264,5 +264,4 @@
      while ((obj=Next())) *fLog << obj << " " << obj->GetName() << " " << obj->ClassName() << " " << Next.GetOption() << endl;
      */
-
     if (!fGraph)
         return;
@@ -284,13 +283,26 @@
     }
 
-    // SetPoint deletes the histogram!
-    if (fUseEventNumber)
-        fGraph->GetHistogram()->SetXTitle("Event Number");
-    else
-    {
-        fGraph->GetHistogram()->SetXTitle("Time");
-        fGraph->GetHistogram()->GetXaxis()->SetLabelSize(0.033);
-        fGraph->GetHistogram()->GetXaxis()->SetTimeFormat("%H:%M %F1995-01-01 00:00:00 GMT");
-        fGraph->GetHistogram()->GetXaxis()->SetTimeDisplay(1);
+    // This is not done automatically anymore since root 5.12/00
+    // and it is necessary to force a proper update of the axis.
+    TH1 *h = fGraph->GetHistogram();
+    if (h)
+    {
+        delete h;
+        fGraph->SetHistogram(0);
+        h = fGraph->GetHistogram();
+    }
+    if (h)
+    {
+        TAxis *axe = h->GetXaxis();
+        // SetPoint deletes the histogram!
+        if (fUseEventNumber)
+            axe->SetTitle("Event Number");
+        else
+        {
+            axe->SetTitle("Time");
+            axe->SetLabelSize(0.033);
+            axe->SetTimeFormat("%H:%M %F1995-01-01 00:00:00 GMT");
+            axe->SetTimeDisplay(1);
+        }
     }
 
@@ -300,6 +312,6 @@
     // This is a workaround if the TGraph has only one point.
     // Otherwise MStatusDisplay::Update hangs.
-    gPad->GetListOfPrimitives()->Remove(fGraph);
-    fGraph->Draw(fGraph->GetN()<2 ? "A" : str.Data());
+//    gPad->GetListOfPrimitives()->Remove(fGraph);
+//    fGraph->Draw(fGraph->GetN()<2 ? "A" : str.Data());
     //gPad->GetListOfPrimitives()->Add(fGraph, fGraph->GetN()<2 ? "A" : opt);
     //    AppendPad(str);
@@ -319,4 +331,6 @@
     pad->SetBorderMode(0);
     AppendPad(opt);
+
+    fGraph->Draw("A");
 }
 
