Improve display of legend

Display legends in PDF with multiple columns and with a readable size