When using plt.subplots(), we can specify that the subplots should share the x axis and/or y axis to avoid cluttering.
Returning to the 3x4 subplots example earlier, suppose we turn on the shared axes option in plt.subplots() by supplying sharex=True and sharey=True as arguments, as in:
fig, axarr = plt.subplots(3,4,sharex=True,sharey=True)
We now obtain the following figure. Compared to the preceding example, it looks neater with the subplot axis labels removed except for the leftmost and bottom ones: