MATLAB: How to change the color scheme of a basemap in MATLAB

basemapcolorMapping Toolboxwms

 I have a “basemap” I am using with “geoaxes.” How can I change the color of elements within the “basemap?” For example, I would like to change the background color of an ocean floor “basemap” from black to blue.

Best Answer

Modifying color properties of a “basemap” is not currently directly supported as of MATLAB R2020b. A workaround involves using Web Map Services (WMS) functions to read the “basemap” from a compliant server and produce an image and raster reference object. See the following link for additional information on “wmsread” functionality and associated workflow:
The image is an array representing RGB pixels of the target “basemap.” This image representation can be modified like any other array to change pixel color.