Skip to content
Snippets Groups Projects
Commit 2822605f authored by Roman Tolchenov's avatar Roman Tolchenov
Browse files

Fixed some bugs related to this algorithm. re #2802

parent fc59f69c
No related merge requests found
......@@ -179,8 +179,8 @@ namespace Mantid
// Fit the function
API::IAlgorithm_sptr fit = createSubAlgorithm("Fit");
fit->initialize();
//fit->setProperty("InputWorkspace",data.ws);
fit->setPropertyValue("InputWorkspace",data.ws->getName());
fit->setProperty("InputWorkspace",data.ws);
//fit->setPropertyValue("InputWorkspace",data.ws->getName());
fit->setProperty("WorkspaceIndex",j);
fit->setPropertyValue("Function",fun);
fit->setPropertyValue("StartX",getPropertyValue("StartX"));
......@@ -292,7 +292,7 @@ namespace Mantid
std::string propName = "OUTPUTWORKSPACE_" + boost::lexical_cast<std::string>(data.period);
if (load->existsProperty(propName))
{
DataObjects::Workspace2D_sptr rws1 = load->getProperty(propName);
Workspace_sptr rws1 = load->getProperty(propName);
out.ws = boost::dynamic_pointer_cast<DataObjects::Workspace2D>(rws1);
}
}
......
......@@ -349,10 +349,18 @@ void SequentialFitDialog::showPlot()
QStringList colNames;
colNames << t->name() + "_" + parName << t->name() + "_" + parName + "_Err";
MultiLayer* ml = m_fitBrowser->m_appWindow->multilayerPlot(t,colNames,ui.cbCurveType->currentIndex());
// set plot titles
Graph* g = ml->activeGraph();
if (g)
{
g->setXAxisTitle(ui.cbLogValue->currentText());
if (ui.ckbLogPlot->isChecked())
{
g->setXAxisTitle(ui.cbLogValue->currentText());
}
else
{
g->setXAxisTitle("Spectra");
}
g->setYAxisTitle(parName);
g->setTitle("");
}
......
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