Fixed labels issues in plotting.

This commit is contained in:
2012-11-22 14:52:48 +00:00
parent c014a44317
commit e393bc0288

View File

@ -152,7 +152,7 @@ void plotRge(TString &names)
legtit += path; legtit += path;
legtit += "="; legtit += "=";
legtit += name; legtit += name;
legtit += " (keV)"; legtit += " (eV)";
cout << endl << legtit << endl ; cout << endl << legtit << endl ;
rge[i]->SetTitle(str.Data()); rge[i]->SetTitle(str.Data());
@ -164,6 +164,8 @@ void plotRge(TString &names)
cout << endl; cout << endl;
mg->Draw("APC"); mg->Draw("APC");
mg->GetXaxis()->SetTitle("Depth [nm]");
mg->GetYaxis()->SetTitle("Normalized Stopping Profile [%/nm]");
legend->Draw(); legend->Draw();