[ROOT] Overloading TGraph::PaintGraph()

From: FOKIN@tsl.uu.se
Date: Thu Nov 30 2000 - 14:56:56 MET


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