How to change yellow fill to white in 'mapshow'

3 views (last 30 days)
I used 'mapshow(S);' to plot shape file.
The plot is filled with yellow colour.
I need only boundary (fill with white)
How to change yellow to white

Accepted Answer

Chunru
Chunru on 14 Sep 2021
p = shaperead('concord_hydro_area.shp');
p = 98×1 struct array with fields:
Geometry BoundingBox X Y AREA PERIMETER
mapshow(p, 'FaceColor', 'y') % change 'y' to 'w' for white

More Answers (0)

Categories

Find more on Special Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!