barak.plot.plot_ticks_wa¶
- barak.plot.plot_ticks_wa(ax, wa, fl, height, ticks, keeponly=None, labels=True)[source]¶
plot a ticks on a wavelength scale.
This plots ticks (such as those returned by find_tau()) on a spectrum.
Parameters : ax : matplotlib axes
The axes on which to plot the ticks.
wa, fl : array_like
wavelength and flux of spectrum. wa must be sorted.
height : float
tick height in flux units.
ticks : record array
A record array of the sort returned by find_tau. The fields wa, wa0, and name are required.
keeponly : str
If this is not None (the default), then only plot ticks that contain this string in their name.
labels : bool (True)
Whether to plot labels next to the tickmarks.
Returns : Ticks, Tlabels : Matplotlib collection of tickmarks and tick labels.
The artists corresponding to the ticks and their labels.