legend adjustment