Adjust the placement of the legend