import matplotlib.pyplot as plt
import numpy as np

x = np.arange(10)
y = np.random.default_rng(0).normal(size=(4, 10))
fig, axs = plt.subplots(2, 2)
for i in range(2):
   for j in range(2):
      axs[i, j].plot(x, y[i, :] * (i + 1) + j + 0.25 * x)
      axs[i, j].set_title(
         "A long title that collides with neighboring labels",
         fontsize=10,
      )
      axs[i, j].set_xlabel("x axis", fontsize=10)
      axs[i, j].set_ylabel("y axis", fontsize=10)