Is there a way to make the grid of latitude/longitude bolder when I use worldmap('World')

조회 수: 10 (최근 30일)
Hello, I am very new to this.
I am looking to make the grid of the lat/lon bolder when I use: worldmap('Word').
I plot a colormap over it and I can barely see the grid anymore. Is there a way I can make it bolder?
From this example:
openExample('map/SetUpWorldMapAndDrawCoastlinesExample')
Thank you

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 9월 14일
편집: Cris LaPierre 2020년 9월 14일
You could try something like this:
% Code example with slight change (w=)
w=worldmap('World');
load coastlines
plotm(coastlat,coastlon)
% Find grid line objects and modify line width
p=findobj(w,'Tag','Parallel');
m=findobj(w,'Tag','Meridian');
p.LineWidth = 5;
m.LineWidth = 5;
Remove the semicolons or use the property inspector to see what other porperties are accessible for modifying.
  댓글 수: 2
Cris LaPierre
Cris LaPierre 2024년 5월 22일
Ane even better way is to use gridm
% Code example with slight change (w=)
w=worldmap('World');
load coastlines
plotm(coastlat,coastlon)
% Modify grid line width
gridm('GLineWidth',5);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by