Hi,
I would like to create a TGraph2D and draw it with a prefined axis range (using cont4z). I can limit the axis, but I cannot extend them…?
Finally, I would like to draw some lines, circles and arcs on top.
I found this:
but using the SetHistogram() causes a crash
c1->cd(1);
//gPad->DrawFrame(-125/2,-65/2,125/2,65/2);
TH2I *h = new TH2I("h","h",10,-125./2,125./2,10,-65./2,65./2);
gr->SetHistogram(h);
//h->Draw("cont4z");
gr->Draw("cont4z");
//gr->GetXaxis()->SetRange(-125/2,125/2);
TLine *l1 = new TLine(-0.5,0,0.5,0); l1->Draw();
the gPad Stuff causes strange behaviour of the axis ticks…
and finally the line is not in the coordinate system of the TGraph…wtf
I’m searching for something like SetLimits()
Thanks
Georg
_ROOT Version:_6.28/06
Platform: Windows
Compiler: VS