Unify legends


Close #1068.