How to undo axis(gca,'image')

4 vues (au cours des 30 derniers jours)
raym
raym le 16 Nov 2023
Réponse apportée : Voss le 16 Nov 2023
I use imagesc to show a demo:
imagesc % a photo shows, with blank on top, stretchable by the resize of the window
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
axis(gca,'auto')% the blank on top come back, but no longer stretchable by the resize of the window
Is there a way to reset to the initial version that stretchable?

Réponse acceptée

Voss
Voss le 16 Nov 2023
set(gca,'DataAspectRatioMode','auto')

Plus de réponses (0)

Catégories

En savoir plus sur Images 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!

Translated by