Fix x-axis label bug (reported by Gerland Morris).
This commit is contained in:
parent
a837b1c420
commit
e3d5d03fca
@ -4697,7 +4697,8 @@ void PMusrCanvas::PlotData(Bool_t unzoom)
|
||||
// set x-axis label
|
||||
PMsrRunList runs = *fMsrHandler->GetMsrRunList();
|
||||
TString setup = fRunList->GetSetup(*runs[0].GetRunName());
|
||||
if (strcmp(setup, "TRIUMF/BNQR") || strcmp(setup, "TRIUMF/BNMR")) {
|
||||
// For BNMR/BNQR runs use seconds
|
||||
if (fPlotType == MSR_PLOT_BNMR) {
|
||||
fHistoFrame->GetXaxis()->SetTitle("time (s)");
|
||||
} else {
|
||||
fHistoFrame->GetXaxis()->SetTitle("time (#mus)");
|
||||
@ -4991,7 +4992,8 @@ void PMusrCanvas::PlotDifference(Bool_t unzoom)
|
||||
// set x-axis label
|
||||
PMsrRunList runs = *fMsrHandler->GetMsrRunList();
|
||||
TString setup = fRunList->GetSetup(*runs[0].GetRunName());
|
||||
if (strcmp(setup, "TRIUMF/BNQR") || strcmp(setup, "TRIUMF/BNMR")) {
|
||||
// For BNMR/BNQR runs use seconds
|
||||
if (fPlotType == MSR_PLOT_BNMR) {
|
||||
fHistoFrame->GetXaxis()->SetTitle("time (s)");
|
||||
} else {
|
||||
fHistoFrame->GetXaxis()->SetTitle("time (#mus)");
|
||||
@ -6115,7 +6117,8 @@ void PMusrCanvas::PlotAverage(Bool_t unzoom)
|
||||
if (fCurrentPlotView == PV_DATA) {
|
||||
PMsrRunList runs = *fMsrHandler->GetMsrRunList();
|
||||
TString setup = fRunList->GetSetup(*runs[0].GetRunName());
|
||||
if (strcmp(setup, "TRIUMF/BNQR") || strcmp(setup, "TRIUMF/BNMR")) {
|
||||
// For BNMR/BNQR runs use seconds
|
||||
if (fPlotType == MSR_PLOT_BNMR) {
|
||||
xAxisTitle = TString("time (s)");
|
||||
} else {
|
||||
xAxisTitle = TString("time (#mus)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user