How do I change the color scheme of a basemap in MATLAB?
9 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-7-20
编辑: MathWorks Support Team
2023-5-4
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.
采纳的回答
MathWorks Support Team
2023-5-4
编辑:MathWorks Support Team
2023-5-4
In MATLAB 2023a and onwards, you can modify the appearance, including colors and fonts, of vector basemaps. Please take a look at the following documentation page to learn how to do so:
Modifying color properties of a “basemap” is not directly supported earlier than MATLAB R2023a. 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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!