HyperSpy: multidimensional data analysis toolbox

HyperSpy is an open source Python library which provides tools to facilitate the interactive data analysis of multidimensional datasets that can be described as multidimensional arrays of a given signal (e.g. a 2D array of spectra a.k.a spectrum image).

HyperSpy aims at making it easy and natural to apply analytical procedures that operate on an individual signal to multidimensional arrays, as well as providing easy access to analytical tools that exploit the multidimensionality of the dataset.

Its modular structure makes it easy to add features to analyze different kinds of signals. Currently there are specialized tools for electron energy-loss spectroscopy (EELS) and energy dispersive X-rays (EDX) data analysis.


HyperSpy provides tools that operate on numpy arrays without subclassing them and therefore it is fully compatible with the scientific Python ecosystem. It provides, amongst others:

  • Named and scaled axes.
  • Axes indexing by name.
  • Non-equivalent axes: HyperSpy distinguishes between signal and navigation axes.
  • Iteration over the navigation axes.
  • Advanced data indexing capabilities including separate indexing for the signal and navigation axes and data indexing using using axis units.
  • Visualization tools for n-dimensional spectra and images based on matplotlib.
  • Curve fitting.
  • Easy access to machine learning e.g. PCA, ICA...
  • Reading and writing of multidimensional datasets in multiple file formats.
  • Modular design for easy extensibility.
  • Specialized classes for electron-energy loss spectroscopy (EELS) and energy-dispersive X-rays (EDX) data analysis.

HyperSpy is released under the GPL v3 license and is actively developed and used in research (see the Bibliography section of the User Guide)


HyperSpy training at the IMC2014

Published on 2014-04-01

HyperSpy training at the IMC2014 on the 7th of September 2014 in Prague, Czech Republic.

Read more…

HyperSpy talks and training at SHIRE2014

Published on 2014-04-01

Two HyperSpy-related talks and a HyperSpy training @ SHIRE2014 on the 10-11 April 2014 in Sheffield, UK.

Read more…

HyperSpy 0.7 has been released!

Published on 2014-04-01

We are proud to announce a new release of Hyperspy.

Read more…

Important: Read this before uninstalling HyperSpy

Published on 2013-11-28

Uninstalling HyperSpy in Windows can, in exceptional circumstances, delete unrelated files. If you have installed this version of HyperSpy in Windows please read this before uninstalling HyperSpy.

Citing HyperSpy

All of the authors of HyperSpy are connected with academic and scientific research, so it is important to us to be able to show the impact of our work in other projects and fields.

If HyperSpy contributes to a project that leads to a scientific publication, please acknowledge this fact by citing the project. Please, read on how to cite HyperSpy here