Images being shrunk when added to uiaxes in AppDesigner
13 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to load images into uiaxes created using the design view in appdesigner with imshow and imagesc. I can get the images to load into each axes object, however the image, axes outline, and axes title shrink to about a fourth of the size of the original set in the design view.
I have tried setting the aspect ratios to [1 1 1] and stretching the images to fit within the axes, however these solutions do not help. Also, when I check the axes object size before and after loading the image they are the same.
Why might this happen and how can I fix it? Thanks.
0 个评论
回答(1 个)
Chris Perkins
2018-1-8
Hi,
Take a look at Duncan's answer on this MATLAB Answers post:
https://www.mathworks.com/matlabcentral/answers/360670-imshow-in-app-designer-image-size-doesn-t-fit
If you remove the first line of Duncan's answer and replace 'Flower.jpg' with your image, then it should display the image at the full size of your axes.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!