I am trying to use the ax.set_position() function to modify the positions of subplots in a figure. This works correctly for axes that I create using plt.subplot
ax.set_position()