Changing the background color when using the world map

When using worldmap.m from MATLAB Mapping, the default background color (in other words, the ocean) is "none". How can I change this to a different color?

h = worldmap('World')
+3
source share
1 answer

Using the functions findobjand set, you can put a background patch, and then use it setto change the color.

h = worldmap('World')
p = findobj(h,'type','patch'); % Find background
set(p,'FaceColor',[1 1 1]); % Change background to white
+5
source

Source: https://habr.com/ru/post/1783279/


All Articles