I am trying to add a box around my legend but the position of the box and the height of it are off. Also the line itself does not look straight and the thicknesses change from w