I am drawing a TMultiGraph called total_graph in a ROOT script using this piece of code:
total_graph->Draw(“AL”);
total_graph->SetTitle(“Charge State Probability”);
total_graph->GetXaxis()->SetRangeUser(0, 200);
total_graph->GetYaxis()->SetRangeUser(0, 100);
total_graph->Draw(“AL”);
If I take out the first line, total_graph->Draw(“AL”), the interpreter complains about the GetXaxis() method. If I put the line, total_graph->SetTitle() method just before the last line, total_graph->Draw(“AL”), the title does not appear. Why does the order of these methods or whether the graph is drawn change whether they work or not?