Barak 0.3.2 documentation

barak.spec.plotlines

«  barak.spec.plotatmos   ::   Contents   ::   barak.spec.read  »

barak.spec.plotlines

barak.spec.plotlines(z, ax, atmos=None, lines=None, labels=False, ls='dotted', color='k', trim=False, fontsize=10, **kwargs)[source]

Draw vertical dotted lines showing expected positions of absorption and emission lines, given a redshift.

Parameters :

atmos : list of float pairs, or True (None)

Regions of atmospheric absorption to plot. If True, it uses an internal list of regions.

lines : stuctured array, optional

If given, it must be a record array with fields ‘name’ and ‘wa’.

Returns the mpl artists representing the lines. :

«  barak.spec.plotatmos   ::   Contents   ::   barak.spec.read  »