void HistogramPage::plotPolarization(const LogHistogram &totalHistogram, const LogHistogram &rfiHistogram) { if(_totalHistogramButton.get_active()) { _plot.StartLine("Total histogram", "Amplitude in arbitrary units (log)", "Frequency (log)"); addHistogramToPlot(totalHistogram); if(_fitButton.get_active() || _subtractFitButton.get_active()) { plotFit(totalHistogram, "Fit to total"); } if(_drawSlopeButton.get_active()) { plotSlope(totalHistogram, "Fitted slope", false); } if(_drawSlope2Button.get_active()) { plotSlope(totalHistogram, "Fitted slope", true); } updateSlopeFrame(totalHistogram); } if(_rfiHistogramButton.get_active()) { _plot.StartLine("RFI histogram", "Amplitude in arbitrary units (log)", "Frequency (log)"); addHistogramToPlot(rfiHistogram); if(_fitButton.get_active() || _subtractFitButton.get_active()) { plotFit(rfiHistogram, "Fit to RFI"); } updateSlopeFrame(rfiHistogram); if(_drawSlopeButton.get_active()) { plotSlope(rfiHistogram, "Fitted slope", false); } if(_drawSlope2Button.get_active()) { plotSlope(rfiHistogram, "Fitted slope", true); } } if(_notRFIHistogramButton.get_active()) { _plot.StartLine("Non-RFI histogram", "Amplitude in arbitrary units (log)", "Frequency (log)"); LogHistogram histogram(totalHistogram); histogram -= rfiHistogram; addHistogramToPlot(histogram); if(_fitButton.get_active() || _subtractFitButton.get_active()) { plotFit(histogram, "Fit to Non-RFI"); } } }
void IndirectFitPlotPresenter::plotResult(MatrixWorkspace_sptr result) { plotInput(result, 0); plotFit(result, 1); plotDifference(result, 2); updatePlotRange(m_model->getResultRange()); }