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

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

boldgridMapping Toolboxworldworldmap

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

Best Answer

  • 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.
  • Add a Comment

    Your email address will not be published. Required fields are marked *