devctrl.data.spectrum.plot.add_wl_axis#

add_wl_axis(ax, label=True, draw_ticklabels=None, ticklabel_va='baseline')[source]#

Add a top axis that shows wavelength in nm. Primary axis must be energy in eV :param ax: Matplotlib axes :param label: True to use the PrsData label for ‘wl’, False for no label or str for custom label :param draw_xticklabels: True/False or None to draw them if a label is drawn :param ticklabel_va: Vertical alignment of tick labels. Use None or “center” if your font has descenders