fig, ax = plt.subplots() x,y,height,width = 0,1,1,1 ax.set_position((x,y,height, width), which='both')