0
如何使用scatter
标记和颜色为gscatter
,这是使用gscatter的唯一方法吗?scatter like gsctater Matlab
GSCATTER(X,Y,G,CLR,SYM,SIZ) specifies the colors, markers, and size to use.
如果这是不可能的,你怎么能写散点图看起来类似于gscatter?
如何使用scatter
标记和颜色为gscatter
,这是使用gscatter的唯一方法吗?scatter like gsctater Matlab
GSCATTER(X,Y,G,CLR,SYM,SIZ) specifies the colors, markers, and size to use.
如果这是不可能的,你怎么能写散点图看起来类似于gscatter?
您也可以在scatter
中使用不同的标记和颜色。对于一个简单的语法,你可以做到以下几点:
scatter(x,y,'bo')%# blue color, 'o' as markings
scatter(x,y,'rx')%# red color, 'x' as markings
同样,替代b,r,g,k,w,y,c,m
为蓝,红,绿,黑,白,黄,青和品红和o,x,*,.,d
为界,十字架,明星,圆点钻石作为标记。
您还可以使用更长的形式为scatter(x,y,'property1','value1','property2'...)
定义颜色,标志,标线大小等
要使用scatter
,您可以使用hold on
和彼此顶部绘制不同的散点图绘制多个组。