![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1287050/image.png)
Add Geoplot to cartesian plot
조회 수: 12 (최근 30일)
이전 댓글 표시
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1274215/image.png)
Thank you for the help
댓글 수: 0
답변 (1개)
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');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1287050/image.png)
Then you can add your own axes to the map.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!