Set top/right/bottom/left legend position.