Hi Anton, Why do you need to redefine TGraph::PaintGraph ? You can call TGraph::Paint(option) where you remove the option "P" of option. That's all Rene Brun On Thu, 30 Nov 2000 FOKIN@tsl.uu.se wrote: > Hi rooters, > I am trying to inherit a class from TGraphAsymmErrors and then overload > TGraph::PaintGraph() to paint points in different colors. Although all > members are public/protected, there are things like > > const Int_t NPMAX = 2052; > > static Double_t xwork[NPMAX]; > static Double_t ywork[NPMAX]; > static Double_t xworkl[NPMAX]; > static Double_t yworkl[NPMAX]; > > in TGraph.cxx used in TGraph::PaintGraph(). If I redefine > them in my cxx file, it doesn't work well, namely it shows > an empty graph. > > Rene, could you make this work variable static members of > TGraph? > > Best regards, > Anton >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET