Skip to content
Snippets Groups Projects
Commit 5003fcd1 authored by Elliot Oram's avatar Elliot Oram
Browse files

Ensured that the guess is removed from the plot after fit

Refs #13983
parent a86a3976
No related branches found
No related tags found
No related merge requests found
......@@ -475,6 +475,9 @@ void IqtFit::updatePlot() {
MatrixWorkspace_sptr ws = boost::dynamic_pointer_cast<MatrixWorkspace>(
outputGroup->getItem(specNo));
if (ws) {
if (m_uiForm.ckPlotGuess->isChecked()) {
m_uiForm.ppPlot->removeSpectrum("Guess");
}
m_uiForm.ppPlot->addSpectrum("Fit", ws, 1, Qt::red);
m_uiForm.ppPlot->addSpectrum("Diff", ws, 2, Qt::blue);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment