Note
Go to the end to download the full example code
Generate synthetic spectra
In this example, we will use RamanSPy to generate synthetic spectra.

import ramanspy as rp
# Generate synthetic spectra
spectra = rp.synth.generate_spectra(5, 1000, realistic=True)
rp.plot.spectra(spectra, plot_type='single stacked')
rp.plot.show()
Total running time of the script: (0 minutes 0.115 seconds)