You have an example of a broken axis in matplotlib examples: Broken axis
In your example, the subheadings will simply separate the y axis instead of the x axis, and the constraints will be set on the x axis.
Example with a line:
fig, (ax1, ax2) = plt.subplots(1, 2, sharey=True) x = [1, 2, 3, 4, 5, 51, 52, 53, 54, 55] y = [4, 3, 4, 5, 4, 3, 4, 5, 6, 4] ax1.bar(x, y) ax2.bar(x, y)
source share