gscatter seems to be doing something wrong
显示 更早的评论
Im using gscatter group plots. This is the code for one of them.
I make gscatter group the plots based on the values from datalim. This is a matrix with the same size as "data".
But this only works when H < 2.0. As soon as I put H >= 2.1 then it gives me the wrong colors.
H = 2.0;
for limx = 1:21
for limy = 1:12
if data(limx,limy) < Hs
datalim(limx,limy) = 1;
else
datalim(limx,limy) = 0;
end
end
gscatter(months,data(limx,:),datalim12(limx,:),'rg')
hold on
end
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Purple 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!