Axis Disappearing after Zooming in
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
N/A
am 13 Apr. 2023
Kommentiert: N/A
am 13 Apr. 2023
Hi,
I plotted somthing and after using xlim and ylim for zooming out, axies disappeared. How can I solve the problem?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1355313/image.jpeg)
thanks,
2 Kommentare
Walter Roberson
am 13 Apr. 2023
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.
Akzeptierte Antwort
Walter Roberson
am 13 Apr. 2023
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';
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!