def plot(param, show = 1):
"""Returns the plot of spectrum as a pyplot object or plot it on the screen
Keyword arguments:
param -- Output spectrum file
show -- Optional, plot the spectrum on the screen. Enabled by default.
"""
s = sed.SED()
s.grmonty(param)
plt = pylab.plot(s.lognu, s.ll)
if show == 1:
pylab.show()
else:
return plt
评论列表
文章目录