Gallery of Examples#
This gallery contains the commented code for short examples illustrating simple tasks that can be performed with HyperSpy.
Markers#
Gallery of examples on using HyperSpy markers.
Circle Markers with Radius Dependent Coloring
Varying number of arrows per navigation position
Add/Remove items from existing Markers
Creating Markers from a signal
Signal Creation#
Below is a gallery of examples on creating a signal and plotting.
Creates a signal1D from a text file
Creates a signal1D from tabular data
Data Visualization#
This gallery shows how to plot data using the convenience functions
plot_spectra()
, plot_images()
and
plot_signals()
.
Unlike the plot()
, these functions
can plot multiple signal together and can be useful to compose figure
comparing signals, etc.
Loading, saving and exporting#
Below is a gallery of examples on loading, saving and exporting data.
Adjust contrast and save RGB images
Model fitting#
Below is a gallery of examples on model fitting.
Making Custom Layouts for Plots#
Below is a gallery of examples on making simple custom layouts for plotting data
using matplotlib.figure.SubFigure
.
Note
Plotting data with subfigures is slower than using separates figures.
Region of Interest#
Below is a gallery of examples on using regions of interest with HyperSpy signals.
Create Map from ROI in signal space
Create Map from CircleROI in signal space
Extract line profile from image interactively
Interactive integration of one dimensional signal
Simple simulations#
Below is a gallery of examples on simulating signals which can be used to test HyperSpy functionalities
Simple simulation (2 Gaussians)