[SciPy-User] Plot Baseline Problem

Stephen P. Molnar s.molnar at sbcglobal.net
Tue Oct 9 14:40:14 EDT 2018


I have attached code that I wrote to plot Infrared spectra. The x axis of
the plot (attached) runs from 400 to 4000, which is the range of the
infrared portion of the electromagnetic spectrum.

The spectrum of the sample runs from 400 to 2800.

My question is how can I expand the data plot from 2800 to 4000 (the
intensity is 0.0 in that range)?  Of course this is not the case for each
spectrum

The only thing I've found via Google is
https://stackoverflow.com/questions/47190853/extend-baseline-of-stem-plot-
in-matplotlib-to-axis-limits.

I appreciate your assistance.

Thanks in advance.

Stephen P. Molnar, Ph.D.		Life is a fuzzy set
www.molecular-modeling.net		Stochastic and Multivariate
(614)312-7528 (c)
Skype: smolnar1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: InfraredPlots_44a.py
Type: application/octet-stream
Size: 744 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20181009/7805b7da/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 20901 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20181009/7805b7da/attachment-0001.png>


More information about the SciPy-User mailing list