필터 지우기
필터 지우기

How do I fill the image completely into the chart in App Designer?

조회 수: 4 (최근 30일)
besaret koçak
besaret koçak 2023년 10월 18일
편집: DGM 2023년 10월 24일
When I show the image on the chart, there are gaps in the right and bottom parts of the chart. How can I close these gaps?
  댓글 수: 4
Dyuman Joshi
Dyuman Joshi 2023년 10월 22일
이동: Dyuman Joshi 2023년 10월 23일
I will need more information to provide a working suggestion then.
Can you share the code you are working with?
DGM
DGM 2023년 10월 24일
편집: DGM 2023년 10월 24일
Check that the XData and YData properties of the image object correspond to the XLim and YLim properties of the axes object. It looks like your axes are set to a fixed 300x250 and your image is smaller.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 10월 23일
One possible solution for your plotted data without the white areas at the bottom and on the righthand side is exaplained via this simple demo example.
P =peaks();
figure(1)
imagesc(P) % Good data is plotted
% Let's make some changes to the data P.
% Add some data points intentionally:
P(end:end+10, :)=255;
P(:,end:end+10) =255;
figure(2)
imagesc(P) % Yellowish area is added
% xlim([0, 60])
% ylim([0, 60])
axis tight
% Let's remove yellowish area: SOLUTION
P_ok = P;
P_ok(end-10:end, :)=[];
P_ok(:,end-10:end, :)=[];
figure(3)
imagesc(P_ok) % Back to the original data

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by