Energy in meV¶
Python¶
Plot the data in eV. Then scale the displayed tick labels and unit prefix:
import matplotlib.pyplot as plt
import erlab.plotting as eplt
fig, ax = plt.subplots(figsize=(3.4, 2.1), layout="compressed")
cut.qplot(ax=ax)
eplt.scale_units(ax, "y", si=-3)
Call erlab.plotting.scale_units() after plot commands that can replace the tick
formatter. Confirm that the axis label contains meV. The energy coordinates in cut
remain in eV. A custom tick formatter is not supported. Restore the default Matplotlib
scalar formatter before you apply this procedure.
Figure Composer¶
Layout: In Layout, use one axes.
Sources: In Sources, choose Add… and add the two-dimensional
cutarray.Recipe: Add an Image Plot step that targets the axes. Set Image data to
cut.Add an ERLab Method step after the image. Select
scale_units, target the same axes, set Axis toy, and set SI exponent to-3.