Mapshow with specific color?

5 ビュー (過去 30 日間)
Raunak
Raunak 2015 年 5 月 30 日
回答済み: Walter Roberson 2015 年 5 月 30 日
Hi,
I have a shapefile of the world map and a shapefile of the distribution of a bird. I want to superimpose the distribution map on the world map. However, the colors of both the maps are the same. How do I change the color so that one stands out over the other?
My code is:
W=shaperead('worldmap.shp');
S=shaperead('birddistribution.shp');
figure(1)
hold on
mapshow(W)
mapshow(S)
So both the plots are of the same color as default in Matlab. mapshow(S, 'Color, 'black') returns an error
Error using set
Invalid property found.
Object Name : patch
Property Name : 'Color'.
geoshow() also ends up using mapshow with the same error. How do I do this??

採用された回答

Walter Roberson
Walter Roberson 2015 年 5 月 30 日
mapshow(S, 'FaceColor, 'black')

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by