Hi,
Is there a way to set the axis range for a TSpline3? Right now I do something like (simplified):
TH1Dh = new TH1D(“h”, “h”, 100, -1, 1);
h->FillRandom(“gaus”);
TSpline3s = new TSpline3(h, “l”, -0.1, 0.1);
I thought -0.1, 0.1 would set the range in the constructor:
root.cern.ch/root/html/TSpline3. … 3:TSpline3
however this does not seem to work. I also do not see a method like TSpline::GetXaxis() that I can use to set the axis range. The strange thing is after I draw, I can select the TAxis so I don’t know which object this belongs to. However after zooming, the TSpline3 is not always redrawn correctly, I get some error like:
“Error in TGraphPainter::PaintGraphHist: X must have N+1 values with option N”
Is there some other way to do this?
Thanks,
Eric