barak.spec.plot¶
- barak.spec.plot(w, f=None, e=None, c=None, ax=None, show=True, yperc=0.98, alpha=0.8, linewidth=1.0, linestyle='steps-mid', flcolor='blue', cocolor='red')[source]¶
Plots spectrum.
Returns the matplotlib artists that represent the flux, error and continuum curves.
Can also give a single argument that is a record array with fields wa, fl and optionally er, co.
>>> from utilities import get_data_path >>> sp = read(get_data_path() + 'tests/spSpec-52017-0516-139.fit.gz') >>> lines = plot(sp.wa, sp.fl, sp.er, sp.co, show=False)