I’m trying to draw the same TGraph in two pad of a canvas but with 2 different x range. The problem is that I get always the same range in the two plot; that is I get two identical plot. Can you help me?
I used this code:
Tcanvas *canvas = new TCanvas(); canvas->Divide(2,1); canvas->cd(1); graph->Draw("AL"); canvas->cd(2); graph->GetXaxis()->SetRangeUser(a,b); graph->Draw("AL");
Moreover I would like to use two different title for the two plot… maybe I need to clone the TGraph object and then modify it? Can you explain how I could do?