フィルターのクリア

Add Geoplot to cartesian plot

12 ビュー (過去 30 日間)
Ajmal Rasheeda Satheesh
Ajmal Rasheeda Satheesh 2023 年 1 月 25 日
回答済み: Smit 2023 年 2 月 7 日
I have a cartesian coordinate plot as shown below (with x and y being distances in meters), if I know the (lat,lon) of the origin (0,0), is it possible to overlay a map onto the plot?, with the limits not getting messed up?
Thank you for the help

回答 (1 件)

Smit
Smit 2023 年 2 月 7 日
Hi Ajmal,
I understand you are trying to overlay your Cartesian co-ordinate plot onto a map.
It might be possible to overlay your graph on a map instead using the “axesm” function.
An example of a map being created using the “axesm” function is as follows
coast = load('coast');
axesm('pcarree', 'Origin', 180,'MLabelParallel','south', ...
'Frame', 'on', 'Grid', 'on', 'Meridian', 'on', 'Parallel', 'on');
mapShow = geoshow(coast.lat, coast.long,'Color','black');
Then you can add your own axes to the map.
You can refer the documentation of “axesm” and “geoshow” for more information on the functions.

カテゴリ

Help Center および File ExchangeGeographic Plots についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by