Skip to content

Commit

Permalink
Ensured that the guess is removed from the plot after fit
Browse files Browse the repository at this point in the history
Refs #13983
  • Loading branch information
Elliot Oram authored and Elliot Oram committed Oct 15, 2015
1 parent a86a397 commit 5003fcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MantidQt/CustomInterfaces/src/Indirect/IqtFit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5003fcd

Please sign in to comment.