Enter legend in different file formats