diff --git a/Code/Mantid/MantidQt/API/src/PlotAxis.cpp b/Code/Mantid/MantidQt/API/src/PlotAxis.cpp index bc26fc37d7c8a7ed4442dae22be606158edb9674..2aedc81ffc7be409cd58873bdd6fd19d32c0827c 100644 --- a/Code/Mantid/MantidQt/API/src/PlotAxis.cpp +++ b/Code/Mantid/MantidQt/API/src/PlotAxis.cpp @@ -90,6 +90,12 @@ namespace MantidQt */ void PlotAxis::titleFromYData(const Mantid::API::MatrixWorkspace &workspace) { + if( !workspace.YUnitLabel().empty() ) + { + m_title = QString::fromStdString(workspace.YUnitLabel()); + return; + } + m_title = QString::fromStdString(workspace.YUnit()); if(workspace.isDistribution() && workspace.axes() > 0 && workspace.getAxis(0)->unit()) { diff --git a/Code/Mantid/scripts/SANS/ISISCommandInterface.py b/Code/Mantid/scripts/SANS/ISISCommandInterface.py index e97760b78fe1c1929e58183a6a6b616ea33beabd..c9f9c8cf9d570cc0968de65001f27e997d4aaf94 100644 --- a/Code/Mantid/scripts/SANS/ISISCommandInterface.py +++ b/Code/Mantid/scripts/SANS/ISISCommandInterface.py @@ -536,6 +536,8 @@ def WavRangeReduction(wav_start=None, wav_end=None, full_trans_wav=None, name_su if resetSetup: _refresh_singleton() + + mtd[retWSname].setYUnitLabel("I(q) (cm-1)") return retWSname