Hi,
Is there a way to draw a non-continuos x axis in TGraph?
For example I have
Double_t x1[5] = {1.,2.,3.,4.,5.}
Double_t x2[5] = {48.,49.,50.,51.,52}
Double_t y1[5] = {18.,9.,20.,21.,12}
TGraph *g1 = new TGraph(5,x1,y1);
TGraph g2 = new TGraph(5,x2,y1);
TMultiGraph mg = new TMultiGraph();
mg->Add(g1,"p")
mg->Add(g2,"p")
mg->Draw(“a”)
Now I would like the x axis to go from 1 to 5, then have the next number as 48, since there’s nothing between 5 and 48.
Is this possible?
Thanks in advance!
- Sujeewa