plot legend modifed