changed legend for grouped spectrum