change plot legend properties