Fix legend color problem

This should fix issue #4228


https://support.astron.nl/lofar_issuetracker/issues/4228