How to rotate a map?

조회 수: 5 (최근 30일)
HADJ MOHAMMED
HADJ MOHAMMED 2023년 11월 8일
댓글: Dyuman Joshi 2023년 11월 9일
I have SST data in .nc format and I proceeded with this script
ncinfo('filename')
ncdisp('filename')
variable_name=ncread('filenema','variable_name')
[laty, lonx] = meshgrid (lat,lon)
mean_sst = mean(analysed_sst,3)
imagesc(lon,lat,mean_sst)
and I got this result but the map of South Korea is rotated, what can be the problem?
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2023년 11월 8일
In the high-level version of the imagesc(), the direction of y-axis is reversed (along with some other changes), as can observed from the figure as well.
Another method to revert it back, aside from Chunru's answer below, is change the y-direction property to normal -
ax = gca;
ax.YDir = 'normal';

댓글을 달려면 로그인하십시오.

답변 (1개)

Chunru
Chunru 2023년 11월 8일
It is upside down. Add the following:
axis xy
  댓글 수: 2
HADJ MOHAMMED
HADJ MOHAMMED 2023년 11월 9일
where I add it Please? because it didn't change
Dyuman Joshi
Dyuman Joshi 2023년 11월 9일
Add it after the imagesc() call

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by