mpl.pyplot.GridSpec.set_height_ratios

GridSpec.set_height_ratios(height_ratios)