Is your feature request related to a problem? Please describe.
Sometimes it is useful to normalize spectra according to lethargy and not set the max value to be unity. This is particularly useful for comparing items over depletion (watching peaks shift and grow) or comparing different concepts.
Describe the solution you'd like
Add a new keyword argument to spectrumPlot that controls if the spectra should be divided by the maximum value, e.g.,
det.spectrumPlot(normalize=True, unitMax=False)
or, if we also want to allow normalized such that the area under the curve is one, maybe a by="max" or by="area" or by=None could work.
Describe alternatives you've considered
Doing it all by hand
Is your feature request related to a problem? Please describe. Sometimes it is useful to normalize spectra according to lethargy and not set the max value to be unity. This is particularly useful for comparing items over depletion (watching peaks shift and grow) or comparing different concepts.
Describe the solution you'd like Add a new keyword argument to
spectrumPlot
that controls if the spectra should be divided by the maximum value, e.g.,or, if we also want to allow normalized such that the area under the curve is one, maybe a
by="max"
orby="area"
orby=None
could work.Describe alternatives you've considered Doing it all by hand
Additional context N/A