Ternary legend: Minor layout tweaks