필터 지우기
필터 지우기

Changing clim on previous imagesc in a subplot

조회 수: 8 (최근 30일)
Mason
Mason 2013년 2월 8일
Hello,
I am making imagesc subplots and at the end i am finding max values within a loop.
I tried using h = imagesc() then "set(h, 'CLim', [somevalue, somevalue])" but then found out you cant use handles in this way with imagesc.
How can i change the clim values on those plots?
Thanks!

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 8일
imagesc() does not itself create subplots. subplot() creates subplots. You need to record the output from the subplot() call and use it as the handle for the set()
thisax = subplot(2,3,5); %for example
imagesc()
set(thisax, 'CLim', [somevalue, somevalue]);

추가 답변 (1개)

Mason
Mason 2013년 2월 8일
ah ha! awesome, thanks! Makes total sense.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by