使用gscatter画图时还算比较顺眼的颜色
1.color=[1,0,0;1,0.5,0;1,0.84,0;1,1,0;0.67,1,0.18;0,1,0.5;0,1,0;0,1,1;0,0.75,1;0.12,0.56,1;0,0,1;0.48,0.40,0.93; 0.63,0.13,0.94;1,0,1;1,0.07,0.57]
gscatter(X(1,:),X(2,:),old_label,color);%legend(‘off’)
效果如图1
2.color=[1,1,0;1,0,1;0,1,1;1,0,0;0,1,0;0,0,1;1,0.5,0;0.85,0.44,0.84;0.63,0.31,0.94;0,0.79,0.34;0.98,0.5,0.45;0.5,0.1,0.16;0.12,0.56,1;0.13,0.55,0.13;0,0,0;] 效果如图2
3.color=[]
效果如图3