How do I fill the image completely into the chart in App Designer?
4 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1514774/image.png)
4 个评论
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?
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!