Note
Go to the end to download the full example code.
Remove Background
This example removes a constant background from a dataset.
Load the data
import lumispy as lum
import matplotlib.pyplot as plt
cl1 = lum.data.asymmetric_peak_map()
Display the original data

Now we remove the background and display the data
If the parameter signal_range is not given, it can be selected interactively, see hyperspy.api.signals.Signal1D.remove_background().

Total running time of the script: (0 minutes 5.268 seconds)