Resize Axes with constrained layout
Constrained layout attempts to resize subplots in a figure so that there are no overlaps between Axes objects and labels on the Axes.
See Constrained layout guide for more details and Tight layout guide for an alternative.
import matplotlib.pyplot as plt
def example_plot(ax):


