Axis Disappearing after Zooming in

조회 수: 6 (최근 30일)
N/A
N/A 2023년 4월 13일
댓글: N/A 2023년 4월 13일
Hi,
I plotted somthing and after using xlim and ylim for zooming out, axies disappeared. How can I solve the problem?
thanks,
  댓글 수: 2
Walter Roberson
Walter Roberson 2023년 4월 13일
Good question. It seems to have something to do with the view combined with something like camera position.
For example, if you
view([0 91])
then the x axes comes into sight.
N/A
N/A 2023년 4월 13일
it doesn't work. I attached the Fig6.fig file... could you please help me the x and y axies come into sight?

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

채택된 답변

Walter Roberson
Walter Roberson 2023년 4월 13일
Okay, what is happening is that your surface has a rectangular at z = 0, with the interesting data at negative z. The surface has been colored white in that area, and the FaceAlpha = 1 so it is opaque.
The rectangular plate at the top is hiding the axes. You can get a bunch of it back just by asking for the axes to be drawn on top.
fig = openfig('Fig6.fig');
ax = gca(fig);
ax.Layer = 'top';
  댓글 수: 1
N/A
N/A 2023년 4월 13일
Thank you very much it works

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by