How to add Border of country on a figure?

21 views (last 30 days)
HI all,
i owuld like to add on the figure below the border fo indonesia country. Does anyone where to download it and how to add it in the code also copied below, please?
Cheers
% add path to matlab functions:
addpath ('C:\Matlab_download\m_map1.4\m_map\');
m_proj('lambert','long',[90 146.64],'lat',[-12 14.15]);
[CS,CH]=m_etopo2('contourf',[-10000:100:0 ],'edgecolor','none');
m_gshhs_f('patch',[.7 .7 .7],'edgecolor','none');
m_grid('linest','none','tickdir','out','box','fancy','fontsize',16);
colormap(m_colmap('blues'));
caxis([-10000 000]);
[ax,h]=m_contfbar([.70 .95],.83,CS,CH,'endpiece','no','axfrac',.05);
title(ax,'meters')
set(gcf,'color','w');
  2 Comments
Jonathan Demmer
Jonathan Demmer on 31 Aug 2022
Hi,
Thank you very much for the link but it is not included in my figure when I added it in the code. Do you know how to do that?
% add path to matlab functions:
addpath ('C:\Matlab_download\m_map1.4\m_map\');
addpath ('C:\Matlab_download\borders_v3.1.2\borders\');
borders('indonesia','facecolor','#808000');
hold on
m_proj('lambert','long',[90 146.64],'lat',[-12 14.15]);
[CS,CH]=m_etopo2('contourf',[-10000:100:0 ],'edgecolor','none');
m_gshhs_f('patch',[.7 .7 .7],'edgecolor','none');
m_grid('linest','none','tickdir','out','box','fancy','fontsize',16);
colormap(m_colmap('water'));
caxis([-10000 000]);
[ax]=m_contfbar([.8 .95],.82,CS,CH,'endpiece','no','axfrac',.03,'xticks','xticklabels');
title(ax,'Depth (m)','fontsize',16)
m_ruler([.8 .95],.75,'tickdir','out','ticklen',[.007 .007]);
m_northarrow(94,-9.2,4.5,'type',4,'aspect',1.5,'linewi',1);
set(gcf,'color','w');

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements 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!

Translated by