Newer
Older
m_fullCurve->detach();
m_previewCurve->attach(m_plot);
}
m_previewCurve->setVisible(true);
m_plot->replot();
m_plot->setTitle("Preview Plot");
this->setPlotAxisLabels();
/** Calculate and show the full (integrated) line, using the latest
* integrated workspace. The apply() method must have been called
* before calling this. */
void LineViewer::showFull()
{
if (!m_sliceWS) return;
this->choosePlotAxis();
MantidQwtIMDWorkspaceData curveData(m_sliceWS, false,
VMD(), VMD(), Mantid::API::VolumeNormalization);
if (m_currentPlotAxis != PlotDistance)
curveData.setTransform(m_transformToOriginal_full, m_plotOriginalDimensionIndex);
m_fullCurve->setData(curveData);
if (m_previewCurve->isVisible())
{
m_previewCurve->setVisible(false);
m_previewCurve->detach();
m_fullCurve->attach(m_plot);
}
m_fullCurve->setVisible(true);
m_plot->replot();
m_plot->setTitle("Integrated Line Plot");
this->setPlotAxisLabels();