Titles and axis labels

Python

Create the axes in their final layout. Plot each dataset. Then supply one title and one axis label for each panel:

import matplotlib.pyplot as plt
import erlab.plotting as eplt

fig, axes = plt.subplots(1, 2, figsize=(6.4, 3.0), layout="compressed")

eplt.plot_array(
    constant_energy_map,
    ax=axes[0],
    cmap="Greys",
    gamma=0.5,
    aspect="equal",
)
axes[1].plot(edc.eV, edc, color="0.2")
eplt.fermiline(ax=axes[1], orientation="v", linestyle="--")

eplt.set_titles(axes, ["Constant energy map", "Energy distribution curve"])
eplt.set_xlabels(axes, [r"$k_x$ (Å$^{-1}$)", r"$E-E_F$ (eV)"])
eplt.set_ylabels(axes, [r"$k_y$ (Å$^{-1}$)", "Intensity (arb. units)"])

(Source code)

Constant energy map and energy distribution curve with distinct scientific axis labels

The default sequence is row-major. Use order="F" when the labels must follow the columns first. The number of labels must match the number of axes. Pass one string when all panels need the same label.

See erlab.plotting.set_titles(), erlab.plotting.set_xlabels(), and erlab.plotting.set_ylabels() for text-formatting arguments.

Figure Composer

Add constant_energy_map and edc to the figure as sources. Then create this ordered recipe:

  1. In Layout, select subplots. Set Rows to 1 and Columns to 2.

  2. Add an Image Plot step for constant_energy_map on the left axes. Set Aspect to equal.

  3. Add a Line/Profile step for edc on the right axes.

  4. Add an ERLab Method step on the right axes. Select fermiline, and set Orientation to v.

  5. Add an ERLab Method step on both axes. Select set_titles, keep Order set to C (Row), and enter Constant energy map and Energy distribution curve on separate lines in Text.

  6. Add another ERLab Method step on both axes. Select set_xlabels, and enter $k_x$ (Å$^{-1}$) and $E-E_F$ (eV) on separate lines in Text.

  7. Add another ERLab Method step on both axes. Select set_ylabels, and enter $k_y$ (Å$^{-1}$) and Intensity (arb. units) on separate lines in Text.

Keep the three label steps after the plotting steps. This order replaces labels that a plotting step supplies from the source coordinates.