Skip to content

Is there a way to synthesize a spectrum for specific x axis values? #73

Answered by georgievgeorgi
nicocopez asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, here is the example:

import numpy as np
import ramanchada2 as rc2

xarr = np.array([1, 1.1, 2, 2.2, 3, 3.3, 4, 4.4, 5, 5.5])
yarr = np.random.exponential(size=len(xarr))
rc2.spectrum.Spectrum(x=xarr, y=yarr).plot(fmt=':.')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nicocopez
Comment options

nicocopez Mar 24, 2023
Maintainer Author

@georgievgeorgi
Comment options

Answer selected by nicocopez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants