How do I change the color scheme of a basemap in MATLAB?
4 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 7 月 20 日
編集済み: MathWorks Support Team
2025 年 2 月 3 日 7:04
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
2025 年 1 月 25 日 0:00
編集済み: MathWorks Support Team
2025 年 2 月 3 日 7:04
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. To access the documentation for “wmsread” functionality and associated workflow in MATLAB R2020a, execute the following command in the command window:
>> web(fullfile(docroot, 'map/ref/wmsread.html'))
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.
For information regarding the current release, please visit the following link:
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!