@couet Sorry, one more thing. Perhaps you already noticed, but the line
gr->GetXaxis()->SetRangeUser(12.75403,12.88079);
is not changing my x axis to only show that range. Does this line only work for histograms only? If so, how could I change the x axis range without histograms?