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