\(\renewcommand\AA{\unicode{x212B}}\)

Displaying 2D Data

Plotting All Spectra

We have previously seen how to plot one or more rows from a dataset. Here we will show how to visually inspect entire datasets.

  1. Reload the MAR11060 dataset, but this time with no SpectraMin/Max limits.
  2. Right click the workspace in the workspace list and select “Plot > Colorfill”. This will create a fairly boring purple display of the data, because one spectrum contains much higher counts than any of the other spectra, and the color scale has adjusted accordingly.
  3. To make the colour fill plot more sensitive to its smaller features, open the Plot Options Menu by clicking on the Gear Icon. Click on the Images Tab of this menu and adjust the Scale to “Logarithmic” and click “Apply”. (Note you could have changed the scale by right-clicking on the plot image and setting “Color bar” to “Log”)
  4. While you are here feel free to change the other Figure options to see what is possible! I personally like to change the Colormap to “twilight”.
ColourFillPlotMar11060

If you would like to create your own colormap, there is more information here.

Slice Viewer

This is a useful tool to investigate 2D image data. You can rapidly look through the spectrum and bin data for any point in the 2D map. This is one of the features of Mantid we are currently developing and will gain more functionality in the future.

  1. Launch the Spectrum Viewer just right-click on the MAR11060 Workspace and select ‘Show Slice Viewer’.
  2. Change the scale of the colorbar in the drop-down menu to SymmetricLog10.
  3. Toggle the Lineplots on with the graphical menu button.
  4. Change the Colorbar Maximum to 200
  5. Move your cursor around the plot to see the corresponding lineplots
Slice Viewer