fixed color assignment in mahal plot