devctrl.data.spectrum.plot.add_E_axis#
- add_E_axis(ax, label=True, draw_ticklabels=None)[source]#
Add a top axis that shows energy in eV. Primary axis must be wavelength in nm :param ax: Matplotlib axes :param label: True to use the label for ‘E’, False for no label or str for custom label :param draw_xticklabels: True/False or None to draw them if a label is drawn