필터 지우기
필터 지우기

Grid line not showing for y-axis

조회 수: 6 (최근 30일)
BN
BN 2020년 4월 13일
댓글: BN 2020년 4월 13일
Hey all, the figure that I have is generated via geoshow, that look like this:
In order to cut the blank part between 40 to 45 (x-axis) I used:
axis equal
But after that, although small grid lines above x-axis values remain, for Y-axis they are all disappeared:
I found that this issue was acquired due to white background of the map. So if there is any idea how can I do to have small grid lines like x-axis for the y-axis without having blank space in figure I would be so grateful.

채택된 답변

Adam Danz
Adam Danz 2020년 4월 13일
I could not recreate the problem. Try
box on
% or
box(axisHandle, 'on')
  댓글 수: 3
Adam Danz
Adam Danz 2020년 4월 13일
The map image appears to be on top of the axes and blocking the axis ticks. If you adjust the xlim so that there is some space around the edges, you'll the the y-ticks.
This line will add 2% of space to the left and right of the x limit.
% ax is the axis handle
xlim(ax, xlim(ax)+range(xlim(ax))*[-.02, .02])
Repeat for ylim if needed.
BN
BN 2020년 4월 13일
Very good idea, Thank you so much

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by