Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
在MATLAB映射工具箱中使用worldmap.m时,背景(也就是海洋)的默认颜色为“无”。如何将其更改为其他颜色?
h = worldmap('World') 回答: 使用findobj和set函数,可以定位背景色块,然后使用set更改颜色。 h = worldmap('World') p = findobj(h,'type','patch'); % Find background set(p,'FaceColor',[1 1 1]); % Change background to white 更多&回答... |
![]() |
![]() |