Draw and adjust x range of TMultiGraph in log scale

TMultiGraph_Logx.C (2.4 KB)

I’m trying to draw TMultiGraph and adjust x range of it. I need to draw it in log scale. When I used TCanvas::SetLogx, SetLimits of Xaxis of TMultigraph is not working. Anybody have idea?

In the attached file, my macro file for example, L40 is not working if I remove comment on L42. I’m using Root 6.10.08. Thank you in advance.

Try:

mg->GetXaxis()->SetLimits(1, 6e6);

Thank you. It works. How stupid I’m… Thank you very much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.