diff --git a/MantidPlot/src/Spectrogram.cpp b/MantidPlot/src/Spectrogram.cpp
index 5c9195f342c20993a9a3f1901818792cb3c09cb9..e9e76deb7ac2bac12f6bda260f9bc3e8402f3f7e 100644
--- a/MantidPlot/src/Spectrogram.cpp
+++ b/MantidPlot/src/Spectrogram.cpp
@@ -211,15 +211,19 @@ void Spectrogram::updateData(
 }
 
 /**
- * Check all histograms in a matrix workspace to make sure that minX and maxX cover all x -values.
+ * Check all histograms in a matrix workspace to make sure that minX and maxX
+ * cover all x -values.
  * @param workspace :: A workspace being plotted.
- * @param minX :: The minimum value on the Spectrogram's x axis. Updated if workspace is ragged.
- * @param maxX :: The maximum value on the Spectrogram's x axis. Updated if workspace is ragged.
+ * @param minX :: The minimum value on the Spectrogram's x axis. Updated if
+ * workspace is ragged.
+ * @param maxX :: The maximum value on the Spectrogram's x axis. Updated if
+ * workspace is ragged.
  */
-void Spectrogram::checkRaggedMatrixWorkspace(const Mantid::API::Workspace* workspace, Mantid::coord_t& minX, Mantid::coord_t& maxX) {
+void Spectrogram::checkRaggedMatrixWorkspace(
+    const Mantid::API::Workspace *workspace, Mantid::coord_t &minX,
+    Mantid::coord_t &maxX) {
   auto matrixWorkspace =
-      dynamic_cast<const Mantid::API::MatrixWorkspace*>(
-          workspace);
+      dynamic_cast<const Mantid::API::MatrixWorkspace *>(workspace);
   if (matrixWorkspace) {
     for (size_t iHisto = 0; iHisto < matrixWorkspace->getNumberHistograms();
          ++iHisto) {
diff --git a/MantidPlot/src/Spectrogram.h b/MantidPlot/src/Spectrogram.h
index c6a1aec54605b5b989f08c12f9f39b261d625b69..d76b365914fc2aaebaa0e5a9412d2a060805f788 100644
--- a/MantidPlot/src/Spectrogram.h
+++ b/MantidPlot/src/Spectrogram.h
@@ -190,7 +190,8 @@ protected:
                     const QwtScaleMap &yMap,
                     const QwtRasterData::ContourLines &lines) const;
   void createLabels();
-  void checkRaggedMatrixWorkspace(const Mantid::API::Workspace* workspace, Mantid::coord_t& minX, Mantid::coord_t& maxX);
+  void checkRaggedMatrixWorkspace(const Mantid::API::Workspace *workspace,
+                                  Mantid::coord_t &minX, Mantid::coord_t &maxX);
 
   //! Pointer to the source data matrix
   Matrix *d_matrix;