Index: trunk/Mars/mhvstime/MHPixVsTime.cc
===================================================================
--- trunk/Mars/mhvstime/MHPixVsTime.cc	(revision 12879)
+++ trunk/Mars/mhvstime/MHPixVsTime.cc	(revision 12880)
@@ -16,7 +16,7 @@
 !
 !
-!   Author(s): Thomas Bretz, 12/2002 <mailto:tbretz@astro.uni-wuerzburg.de>
-!
-!   Copyright: MAGIC Software Development, 2000-2004
+!   Author(s): Thomas Bretz, 12/2002 <mailto:thomas.bretz@epfl.ch>
+!
+!   Copyright: MAGIC Software Development, 2000-2012
 !
 !
@@ -214,26 +214,16 @@
 void MHPixVsTime::Draw(Option_t *opt)
 {
-
-    if (fGraph->GetN()==0)
-        return;
-
     TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this);
     pad->SetBorderMode(0);
+    pad->SetGrid();
 
     AppendPad("");
-
-    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");
+
     if (!fNameTime.IsNull())
     {
@@ -244,5 +234,5 @@
     }
 
-
+    TString str(opt);
     if (!str.Contains("A"))
         str += "A";
@@ -257,6 +247,3 @@
 
     fGraph->Draw(str);
-
-    pad->Modified();
-    pad->Update();
-}
+}
Index: trunk/Mars/mhvstime/MHPixVsTime.h
===================================================================
--- trunk/Mars/mhvstime/MHPixVsTime.h	(revision 12879)
+++ trunk/Mars/mhvstime/MHPixVsTime.h	(revision 12880)
@@ -61,5 +61,2 @@
 
 #endif
-
-
-
Index: trunk/Mars/mhvstime/MHSectorVsTime.cc
===================================================================
--- trunk/Mars/mhvstime/MHSectorVsTime.cc	(revision 12879)
+++ trunk/Mars/mhvstime/MHSectorVsTime.cc	(revision 12880)
@@ -16,7 +16,7 @@
 !
 !
-!   Author(s): Thomas Bretz, 3/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
-!
-!   Copyright: MAGIC Software Development, 2000-2006
+!   Author(s): Thomas Bretz, 3/2004 <mailto:thomas.bretz@epfl.ch>
+!
+!   Copyright: MAGIC Software Development, 2000-2012
 !
 !
@@ -282,11 +282,38 @@
 }
 
-void MHSectorVsTime::Paint(Option_t *opt)
-{
-    if (!fGraph)
-        return;
-
-    if (fGraph->GetN()==0)
-        return;
+// --------------------------------------------------------------------------
+//
+// This displays the TGraph like you expect it to be (eg. time on the axis)
+// It should also make sure, that the displayed time always is UTC and
+// not local time...
+//
+void MHSectorVsTime::Draw(Option_t *opt)
+{
+    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph);
+    pad->SetBorderMode(0);
+    pad->SetGrid();
+
+    AppendPad("");
+
+    // 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();
+
+    h->SetXTitle("Time");
+
+    if (!fNameTime.IsNull())
+    {
+        TAxis *axe = h->GetXaxis();
+        axe->SetTimeFormat("%H:%M %F1995-01-01 00:00:00 GMT");
+        axe->SetTimeDisplay(1);
+        axe->SetLabelSize(0.033);
+        h->GetYaxis()->SetTitleOffset(1.15);
+    }
+
+    // If this is set to early the plot remains empty in root 5.12/00
+    if (fMinimum!=-1111)
+        fGraph->SetMinimum(fMinimum);
+    if (fMaximum!=-1111)
+        fGraph->SetMaximum(fMaximum);
 
     TString str(opt);
@@ -301,50 +328,5 @@
     }
 
-    // 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");
-
-    if (!fNameTime.IsNull())
-    {
-        TAxis *axe = h->GetXaxis();
-        axe->SetTimeFormat("%H:%M %F1995-01-01 00:00:00 GMT");
-        axe->SetTimeDisplay(1);
-        axe->SetLabelSize(0.033);
-        h->GetYaxis()->SetTitleOffset(1.15);
-    }
-
-    // If this is set to early the plot remains empty in root 5.12/00
-    if (fMinimum!=-1111)
-        fGraph->SetMinimum(fMinimum);
-    if (fMaximum!=-1111)
-        fGraph->SetMaximum(fMaximum);
-
-    // 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());
-}
-
-// --------------------------------------------------------------------------
-//
-// This displays the TGraph like you expect it to be (eg. time on the axis)
-// It should also make sure, that the displayed time always is UTC and
-// not local time...
-//
-void MHSectorVsTime::Draw(Option_t *opt)
-{
-    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph);
-    pad->SetBorderMode(0);
-    pad->SetGridx();
-    pad->SetGridy();
-    AppendPad(opt);
+    fGraph->Draw(str.Data());
 }
 
Index: trunk/Mars/mhvstime/MHSectorVsTime.h
===================================================================
--- trunk/Mars/mhvstime/MHSectorVsTime.h	(revision 12879)
+++ trunk/Mars/mhvstime/MHSectorVsTime.h	(revision 12880)
@@ -85,5 +85,4 @@
 
     void Draw(Option_t *o=NULL);
-    void Paint(Option_t *o=NULL);
 
     void RecursiveRemove(TObject *obj);
Index: trunk/Mars/mhvstime/MHVsTime.cc
===================================================================
--- trunk/Mars/mhvstime/MHVsTime.cc	(revision 12879)
+++ trunk/Mars/mhvstime/MHVsTime.cc	(revision 12880)
@@ -16,7 +16,7 @@
 !
 !
-!   Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
-!
-!   Copyright: MAGIC Software Development, 2000-2007
+!   Author(s): Thomas Bretz, 11/2003 <mailto:thomas.bretz@epfl.ch>
+!
+!   Copyright: MAGIC Software Development, 2000-2012
 !
 !
@@ -112,6 +112,4 @@
 
     fGraph = error ? new TGraphErrors : new TGraph;
-    fGraph->SetPoint(0, 0, 0); // Dummy point!
-    fGraph->SetEditable();     // Used as flag: First point? yes/no
     fGraph->SetMarkerStyle(kFullDotMedium);
 }
@@ -161,8 +159,4 @@
     if (fError && !fError->PreProcess(plist))
         return kFALSE;
-
-    fGraph->Set(1);
-    fGraph->SetPoint(0, 0, 0); // Dummy point!
-    fGraph->SetEditable();     // Used as flag: First point? yes/no
 
     TString title(fData ? GetRule() : (TString)"Graph");
@@ -245,9 +239,10 @@
     if (fN==fNumEvents)
     {
+        /*
         if ((fMaxPts>0 && fGraph->GetN()>fMaxPts) || fGraph->IsEditable())
         {
             fGraph->RemovePoint(0);
             fGraph->SetEditable(kFALSE);
-        }
+        }*/
 
         const Double_t val = fMean/fN*fScale;
@@ -284,32 +279,22 @@
 }
 
-void MHVsTime::Paint(Option_t *opt)
-{
-    if (!fGraph)
-        return;
-
-    if (fGraph->GetN()==0)
-        return;
-
-    TString str(opt);
-    if (!str.Contains("A"))
-        str += "A";
-    if (!str.Contains("P"))
-        str += "P";
-    if (str.Contains("same", TString::kIgnoreCase))
-    {
-        str.ReplaceAll("same", "");
-        str.ReplaceAll("A", "");
-    }
+// --------------------------------------------------------------------------
+//
+// This displays the TGraph like you expect it to be (eg. time on the axis)
+// It should also make sure, that the displayed time always is UTC and
+// not local time...
+//
+void MHVsTime::Draw(Option_t *opt)
+{
+    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph);
+    pad->SetBorderMode(0);
+    pad->SetGrid();
+
+    AppendPad("");
 
     // 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)
     {
@@ -336,22 +321,16 @@
         fGraph->SetMaximum(fMaximum);
 
-
-    // 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());
-}
-
-// --------------------------------------------------------------------------
-//
-// This displays the TGraph like you expect it to be (eg. time on the axis)
-// It should also make sure, that the displayed time always is UTC and
-// not local time...
-//
-void MHVsTime::Draw(Option_t *opt)
-{
-    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph);
-    pad->SetBorderMode(0);
-    AppendPad(opt);
+    TString str(opt);
+    if (!str.Contains("A"))
+        str += "A";
+    if (!str.Contains("P"))
+        str += "P";
+    if (str.Contains("same", TString::kIgnoreCase))
+    {
+        str.ReplaceAll("same", "");
+        str.ReplaceAll("A", "");
+    }
+
+    fGraph->Draw(str.Data());
 }
 
Index: trunk/Mars/mhvstime/MHVsTime.h
===================================================================
--- trunk/Mars/mhvstime/MHVsTime.h	(revision 12879)
+++ trunk/Mars/mhvstime/MHVsTime.h	(revision 12880)
@@ -82,5 +82,4 @@
 
     void Draw(Option_t *opt=NULL);
-    void Paint(Option_t *opt=NULL);
 
     MParContainer *New() const;
