How to undo axis(gca,'image')
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I use imagesc to show a demo:
imagesc % a photo shows, with blank on top, stretchable by the resize of the window
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1541557/image.png)
axis(gca,'image')% the photo is locked to 1:1 pixel size and the axe limit fix to the entire image, not stretchable even resize the window
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1541562/image.png)
axis(gca,'auto')% the blank on top come back, but no longer stretchable by the resize of the window
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1541567/image.png)
Is there a way to reset to the initial version that stretchable?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Visual Exploration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!