diff --git a/src/classes/PMusrCanvas.cpp b/src/classes/PMusrCanvas.cpp index 86eaf403..4d82776c 100644 --- a/src/classes/PMusrCanvas.cpp +++ b/src/classes/PMusrCanvas.cpp @@ -2577,6 +2577,14 @@ void PMusrCanvas::PlotData() fHistoFrame->GetXaxis()->SetRangeUser(fXmin, fXmax); fHistoFrame->GetYaxis()->SetRangeUser(fYmin, fYmax); + // set all histo/theory ranges properly + for (UInt_t i=0; iGetXaxis()->SetRangeUser(fXmin, fXmax); + fData[i].data->GetYaxis()->SetRangeUser(fYmin, fYmax); + fData[i].theory->GetXaxis()->SetRangeUser(fXmin, fXmax); + fData[i].theory->GetYaxis()->SetRangeUser(fYmin, fYmax); + } + // set x-axis label fHistoFrame->GetXaxis()->SetTitle("time (#mus)"); // set y-axis label