Skip to content
Snippets Groups Projects
Unverified Commit 5610739a authored by Hahn, Steven's avatar Hahn, Steven Committed by GitHub
Browse files

Merge pull request #23702 from mantidproject/23699_Indirect_MSDPlotOutputParameterOptions

Indirect - MSD Fit - Add option to choose which output parameter to plot
parents adb48d47 cb8b34a3
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,9 @@ Improvements
- When the InelasticDiffSphere, InelasticDiffRotDiscreteCircle, ElasticDiffSphere or ElasticDiffRotDiscreteCircle
Fit Types are selected in the ConvFit Tab, the Q values are retrieved from the workspaces, preventing a crash
when plotting a guess.
- The Plot Result buttons in MSDFit and F(Q)Fit are disabled after a Run when the result workspace only has one
- The Plot buttons in MSDFit and F(Q)Fit are disabled after a Run when the result workspace only has one
data point to plot.
- There is now an option to choose which output parameter to plot in MSDFit.
- An option to skip the calculation of Monte Carlo Errors on the I(Q,t) Tab has been added.
- During the calculation of Monte Carlo Errors, a progress bar is now shown.
......
......@@ -223,6 +223,9 @@
</item>
<item>
<widget class="QComboBox" name="cbPlotType">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>100</width>
......@@ -244,6 +247,9 @@
</item>
<item>
<widget class="QPushButton" name="pbPlot">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Plot</string>
</property>
......
......@@ -58,11 +58,13 @@ void MSDFit::updateModelFitTypeString() {
m_msdFittingModel->setFitType(selectedFitType().toStdString());
}
void MSDFit::updatePlotOptions() {}
void MSDFit::updatePlotOptions() {
IndirectFitAnalysisTab::updatePlotOptions(m_uiForm->cbPlotType);
}
void MSDFit::plotClicked() {
setPlotResultIsPlotting(true);
IndirectFitAnalysisTab::plotResult("All");
IndirectFitAnalysisTab::plotResult(m_uiForm->cbPlotType->currentText());
setPlotResultIsPlotting(false);
}
......@@ -79,6 +81,7 @@ void MSDFit::setRunEnabled(bool enabled) {
void MSDFit::setPlotResultEnabled(bool enabled) {
m_uiForm->pbPlot->setEnabled(enabled);
m_uiForm->cbPlotType->setEnabled(enabled);
}
void MSDFit::setFitSingleSpectrumEnabled(bool enabled) {
......@@ -98,7 +101,7 @@ void MSDFit::setRunIsRunning(bool running) {
}
void MSDFit::setPlotResultIsPlotting(bool plotting) {
m_uiForm->pbPlot->setText(plotting ? "Plotting..." : "Plot Result");
m_uiForm->pbPlot->setText(plotting ? "Plotting..." : "Plot");
setPlotResultEnabled(!plotting);
}
......
......@@ -121,13 +121,44 @@
<string>Output</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Plot Output:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="cbPlotType">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>All</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbPlot">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Plot Result</string>
<string>Plot</string>
</property>
<property name="checked">
<bool>false</bool>
......
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