I'm looking for a simple way to get gscatter
to choose more sensible colors.
As you can see in the picture below, groups 3 and 4 have very similar colors, which are difficult to distinguish.
I'm plotting my data using gscatter(X(:,1),X(:,4),assigns , [], [] )
.
I know I can use scatter
to manually get more sensible colors by creating a colormap that has the same number of colors as the number of groups I have, but then how do I get a nice legend like gscatter produces without looping over each group?
So, is there a simple(r) way to get more sensible colors with gscatter
?
Thanks.