How can I display longitude and latitude values in a projected figure?

조회 수: 3 (최근 30일)
Szabó-Takács Beáta
Szabó-Takács Beáta 2016년 6월 15일
답변: Tom W 2016년 11월 8일
Dear All,
I created a map with eqdcylin projection by the following way:
axesm('eqdcylin','maplatlimit',[26.5861 71.8699],'maplonlimit',[-34.748 60.8422]);
pcolorm(lat,lon,IU2);
colormap(jet)
I attached the result. I would like display the longitude and latitude values in the map. I have ever tried to use
load coast
plotm(lat,long)
based on http://www.esrl.noaa.gov/psd/data/narr/format.html but it does not work. Can someone suggest me a solution?
  댓글 수: 2
Chad Greene
Chad Greene 2016년 6월 15일
"It does not work" is not a description of the problem.
Amy Haskins
Amy Haskins 2016년 6월 17일
I'm not exactly sure what you mean by "display the longitude and latitude values in the map". If your looking for grid lines with labels, then try this:
gridm on
mlabel on
plabel on

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

답변 (1개)

Tom W
Tom W 2016년 11월 8일
noticed you had
plotm(lat,long)
did you mean "lon" instead of "long"
Also, look into the m_plot package, it's an old open-source build, allows you to choose the projection first (m_proj), then plot (m_plot)...

태그

Community Treasure Hunt

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

Start Hunting!

Translated by