필터 지우기
필터 지우기

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