Fix x-axis label bug (reported by Gerland Morris).
This commit is contained in:
parent
af4040228b
commit
b8dc67fa1a
@ -4690,7 +4690,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)");
|
||||||
@ -4984,7 +4985,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)");
|
||||||
@ -6105,7 +6107,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)");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user