Updating legend and sizing