Hi,
i need to know how i can plot this map ?

8 件のコメント

Dyuman Joshi
Dyuman Joshi 2023 年 10 月 27 日
Please attach the data you are working with.
ahmad Saad
ahmad Saad 2023 年 10 月 27 日
Hi
i need to just draw it irrespect to the sites of stations..
you can put any site just for example
thanks
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 27 日
As you are working with R2018a, your only option is geobubble.
However, you can't change the markers, thus you are stuck with bubbles.
ahmad Saad
ahmad Saad 2023 年 10 月 27 日
Hi again
no problem with bubbles.
i need the map to not to be in grey color
i need it to e white
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 27 日
The water bodies will be colored gray/grey, you can not change that.
%% Example
tsunamis = readtable('tsunamis.xlsx');
geobubble(tsunamis.Latitude,tsunamis.Longitude,tsunamis.MaxHeight)
ahmad Saad
ahmad Saad 2023 年 10 月 27 日
i mean the background to be white not grey
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 27 日
Yes, that's what I am saying.
The countries will be shown as white, but the oceans, seas and any water bodies will be gray in color. You can not change that.
ahmad Saad
ahmad Saad 2023 年 10 月 27 日
thanks a lot

サインインしてコメントする。

 採用された回答

Cris LaPierre
Cris LaPierre 2023 年 10 月 27 日
編集済み: Cris LaPierre 2023 年 10 月 27 日

0 投票

load coastlines.mat
axesm('mercator','MapLatLimit',[5 35],'MapLonLimit',[60 100],'grid','on',...
'MLineLocation',10,'PLineLocation',5,'MeridianLabel','on','ParallelLabel','on',...
'LabelFormat','none','MLabelParallel',0)
plotm(coastlat,coastlon)
plotm(17.842,73.089,'r*')
plotm(9.177,77.852,'b*')
xlabel('LONGITUDE(Deg. East)')
ylabel('LATITUDE (Deg. North)')

6 件のコメント

ahmad Saad
ahmad Saad 2023 年 10 月 27 日
where are the lat and long scales ?
Cris LaPierre
Cris LaPierre 2023 年 10 月 27 日
編集済み: Cris LaPierre 2023 年 10 月 27 日
Updated.
You can control the appearance of the map via axesm-based map properties. Enter these as Name-Value pairs as input arguments to axesm.
ahmad Saad
ahmad Saad 2023 年 10 月 27 日
thanks for response
but is it possible to improve theshape and the appearance of the map.
(adjust the location of scales to be outside the frame)
Cris LaPierre
Cris LaPierre 2023 年 10 月 28 日
There are probably better ways to do this, but here's what worked for me
load coastlines.mat
ax = axesm('mercator','MapLatLimit',[5 35],'MapLonLimit',[60 100],'grid','on',...
'MLineLocation',10,'PLineLocation',5,'MeridianLabel','on','ParallelLabel','on',...
'LabelFormat','none','MLabelParallel',0,'Frame','on');
plotm(coastlat,coastlon)
plotm(17.842,73.089,'r*')
plotm(9.177,77.852,'b*')
% hide lines
box off
color = get(gcf,'Color');
set(ax,'XColor',color,'YColor',color)
% add labels
xlabel(ax,'LONGITUDE(Deg. East)','Color','k')
ylabel(ax,'LATITUDE (Deg. North)','Color','k')
ax.YLabel.Position(1) = ax.YLabel.Position(1) - 0.05;
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 28 日
Just a note, axesm and plotm requires Mapping Toolbox.
ahmad Saad
ahmad Saad 2023 年 10 月 28 日
Thanks, it is much better.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2023 年 10 月 27 日

コメント済み:

2023 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by