Skip to content

Commit

Permalink
Fix spectra plotting option on Indirect SofQW GUI. Refs #7468
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Jul 18, 2013
1 parent 693c41f commit ae5946b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Indirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1700,11 +1700,11 @@ void Indirect::sOfQwClicked()
{
pyInput += "importMatrixWorkspace(sqwOutput).plotGraph2D()\n";
}
else if ( m_uiForm.sqw_cbPlotType->currentText() == "Specta" )
else if ( m_uiForm.sqw_cbPlotType->currentText() == "Spectra" )
{
pyInput +=
"nspec = mtd[sqwOuput].getNumberHistograms()\n"
"plotSpectra(sqwOutput, range(0, nspec)\n";
"nspec = mtd[sqwOutput].getNumberHistograms()\n"
"plotSpectrum(sqwOutput, range(0, nspec))\n";
}

QString pyOutput = runPythonCode(pyInput).trimmed();
Expand Down

0 comments on commit ae5946b

Please sign in to comment.