Delate the xlabeltick of the worldmap

조회 수: 4 (최근 30일)
xiaoyan
xiaoyan 2014년 11월 7일
댓글: xiaoyan 2014년 11월 7일
when I plot a hemisphere map use the worldmap as follow, I do not want to show the latitude and longitude label(0 30N 60N). which property I should set.
h=worldmap([-2 89.9],[-180 180]); setm(h,'mapprojection','giso','frame','on','grid','off') load coast geoshow(lat,long,'DisplayType', 'polygon','FaceColor',[0.5 0.5 0.5])

채택된 답변

Orion
Orion 2014년 11월 7일
my bad, I pasted the wrong code. you need two lines
h=worldmap([-2 89.9],[-180 180]);
setm(h,'mapprojection','giso','frame','on','grid','off')
load coast
geoshow(lat,long,'DisplayType', 'polygon','FaceColor',[0.5 0.5 0.5])
set(findall(h,'Tag','PLabel'),'visible','off')
set(findall(h,'Tag','MLabel'),'visible','off')
  댓글 수: 1
xiaoyan
xiaoyan 2014년 11월 7일
It works. Thank you very much

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

추가 답변 (1개)

Orion
Orion 2014년 11월 7일
to make the y and x tick invisibles
set(findall(h,'Tag',{'PLabel','MLabel'}),'visible','off')
and actually, these are not Xtick or Ytick properties, they are text object created by worldmap.
  댓글 수: 1
xiaoyan
xiaoyan 2014년 11월 7일
sorry, it doesn't work. I want to get the figure like(Fig1) , your suggestion results the fig2.

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

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by