How to change the central longitude to 180E of world map for a 3D scatter plot?

1 回表示 (過去 30 日間)
Subhodh Sharma
Subhodh Sharma 2023 年 5 月 24 日
Hello community,
I have 3D aircraft temperature data at different lat,lon,altitude. I want to create 3D scatter plot with world map at base having 180E at centre (basically pacific at the middle). My longitude ranges from -180 to 180 and latitude -90 to 90. I have tried but no succes. Here is the block of code that I am developing. I am using R2022b.
close all; figure('Name','Temperature'); f=set(gcf, 'Position', [600 500 1400 800]);
ax11=axes;
h = scatter3(ax11,Lon,Lat, Alt, 5, Temperature, 'MarkerFaceColor', 'Flat');
colorbar();
hold on
load coastlines.mat
plot(ax11,coastlon,coastlat,'k')
Here, I want to put central longitude=180E.
Looking forward to your answers.
Thanks in advance.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by