Eliminated the border and fixed the position of the legend box in the quad plot