From 12511fe66215cd637fa170f9de6de4cf1789857f Mon Sep 17 00:00:00 2001 From: nemu Date: Wed, 15 Sep 2010 10:46:46 +0000 Subject: [PATCH] adopted unzoom to "improvement" r33665 in root-5.27.04 also for Fourier --- src/classes/PMusrCanvas.cpp | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index 4d82776c..e9e7f1db 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -2858,6 +2858,14 @@ void PMusrCanvas::PlotFourier() fHistoFrame = fDataTheoryPad->DrawFrame(xmin, 1.05*ymin, xmax, 1.05*ymax); + // set ranges for Fourier and Fourier theory + for (UInt_t i=0; iGetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierRe->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierRe->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierRe->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + } + // set x-axis title fHistoFrame->GetXaxis()->SetTitle(xAxisTitle.Data()); @@ -2902,6 +2910,14 @@ void PMusrCanvas::PlotFourier() fHistoFrame = fDataTheoryPad->DrawFrame(xmin, 1.05*ymin, xmax, 1.05*ymax); + // set ranges for Fourier and Fourier theory + for (UInt_t i=0; iGetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierIm->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierIm->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierIm->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + } + // set x-axis title fHistoFrame->GetXaxis()->SetTitle(xAxisTitle.Data()); @@ -2956,6 +2972,18 @@ void PMusrCanvas::PlotFourier() fHistoFrame = fDataTheoryPad->DrawFrame(xmin, 1.05*ymin, xmax, 1.05*ymax); + // set ranges for Fourier and Fourier theory + for (UInt_t i=0; iGetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierRe->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierRe->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierRe->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].dataFourierIm->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierIm->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierIm->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierIm->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + } + // set x-axis title fHistoFrame->GetXaxis()->SetTitle(xAxisTitle.Data()); @@ -3002,6 +3030,13 @@ void PMusrCanvas::PlotFourier() fHistoFrame = fDataTheoryPad->DrawFrame(xmin, 1.05*ymin, xmax, 1.05*ymax); + for (UInt_t i=0; iGetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierPwr->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierPwr->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierPwr->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + } + // set x-axis title fHistoFrame->GetXaxis()->SetTitle(xAxisTitle.Data()); @@ -3044,6 +3079,13 @@ void PMusrCanvas::PlotFourier() fHistoFrame = fDataTheoryPad->DrawFrame(xmin, 1.05*ymin, xmax, 1.05*ymax); + for (UInt_t i=0; iGetXaxis()->SetRangeUser(xmin, xmax); + fData[i].dataFourierPhase->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + fData[i].theoryFourierPhase->GetXaxis()->SetRangeUser(xmin, xmax); + fData[i].theoryFourierPhase->GetYaxis()->SetRangeUser(1.05*ymin, 1.05*ymax); + } + // set x-axis title fHistoFrame->GetXaxis()->SetTitle(xAxisTitle.Data());