How to undo axis(gca,'image')

1 次查看(过去 30 天)
raym
raym 2023-11-16
回答: Voss 2023-11-16
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?

采纳的回答

Voss
Voss 2023-11-16
set(gca,'DataAspectRatioMode','auto')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by