- 积分
- 49
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-11-23
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
subplot3= subplot(3,2,3,'Parent',figure1);
hold(subplot3,'on');
scatter(date_3,speed_2,30,'ro','Parent',subplot3,'MarkerFaceColor','flat',...
'MarkerEdgeColor','none');
scatter(date_4,speed_3,30,'go','Parent',subplot3,'MarkerFaceColor','flat',...
'MarkerEdgeColor','none');
plot(date_2,speed_1,'Parent',subplot3,'DisplayName','Wind speed','Color',[0 0 0]);
leg_fig1 = legend('Wind speed>8 m/s','Wind speed>10 m/s','Wind speed', 'Location', 'NorthWest');
legend(subplot3, 'boxoff');
如图,我用scatter分别标注了红色和绿色两种颜色的,为什么legend标注出来的都变成了绿色的了。
有没有大神可以指教一样~~谢谢啦!!!!!!!!
|
|