Various legend-related adjustments