SetRangeUser and SetTitle working with THStacks and TH1F obj

I once had similar problems. Here’s what I’ve found to be working (don’t ask me why, no idea).

THStack *hs = (THStack *)0;
hs = new THStack(*hs_ORIG); // do not modify the "hs_ORIG" THStack, create a copy
hs->Draw("H NOSTACK");
hs->GetHistogram()->SetXTitle("My X Title");
hs->GetHistogram()->SetYTitle("My Y Title");
hs->GetXaxis()->SetTitleOffset(1.0);
hs->GetYaxis()->SetTitleOffset(1.5);
hs->GetYaxis()->CenterTitle(kTRUE);
hs->GetXaxis()->SetLimits(0, 10.001); // "xmin", "xmax"
hs->SetMinimum(1.95e8); // "ymin"
hs->SetMaximum(2.02e12); // "ymax"
TH1 *h = (TH1 *)0;
h = ((TH1 *)(hs_ORIG->GetStack()->Last()))->DrawCopy("H"); // copy of the THStack "sum"
h->SetTitle("My Title");
h->SetLineColor(2);
h->SetAxisRange(0, 9.999, "X"); // "xmin", "xmax"
h->SetAxisRange(1, 1600e9, "Y"); // "ymin", "ymax"
h->Draw("H");