TGraph axis SetTitle

TGraphErrors X-axis does not seem to be working for me,

root [0]
Attaching file roc_curve_electrons_run2_var6.root as _file0...
(class TFile *) 0x7fee7c10ed40
root [1] .ls
TFile**		roc_curve_electrons_run2_var6.root
 TFile*		roc_curve_electrons_run2_var6.root
  KEY: TGraph	g1;1	ROC curve - electrons
  KEY: TGraphErrors	Graph;1	Graph
root [2] g1->GetTitle()
(const char *) "ROC curve - electrons"
root [3] g1->GetXaxis()->SetTitle("Signal efficiency")
root [4] g1->GetXaxis()->GetTitle()
(const char *) ""
root [5] g1->Draw("")
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
root [6]


Thanks much for help!
Yuriy

Try:
g1->SetTitle(“ROC curve - electrons;Signal efficiency;something unknown”);

Does not work either :frowning: . Same plot again.

root [0]
Attaching file roc_curve_electrons_run2_var6.root as _file0...
(class TFile *) 0x7fe98c8e9090
root [1] g1->SetTitle("ROC curve - electrons;Signal efficiency;something unknown");
root [2] g1->Draw()
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
root [3]

Regards,
Yuriy

First:
TGraph *g1; _file0->GetObject(“g1”, g1);