Fixed labels issues in plotting.
This commit is contained in:
@ -152,11 +152,11 @@ 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());
|
||||||
rge[i]->SetFillColor(TColor::kWhite);
|
rge[i]->SetFillColor(TColor::kWhite);
|
||||||
legend->AddEntry(rge[i], legtit);
|
legend->AddEntry(rge[i], legtit);
|
||||||
|
|
||||||
delete fileGraph;
|
delete fileGraph;
|
||||||
@ -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();
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user