Adjustments to legend positioning