matplotlib make subplot resize based on data code example Example: subplot adjust python plt.subplots_adjust(wspace=0.5)