フィルターのクリア

Images being shrunk when added to uiaxes in AppDesigner

18 ビュー (過去 30 日間)
CeeDubbya
CeeDubbya 2018 年 1 月 5 日
コメント済み: CeeDubbya 2018 年 1 月 8 日
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.

回答 (1 件)

Chris Perkins
Chris Perkins 2018 年 1 月 8 日
Hi,
Take a look at Duncan's answer on this MATLAB Answers post:
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.
  2 件のコメント
CeeDubbya
CeeDubbya 2018 年 1 月 8 日
I tried the method outlined in that answer, however the image still shows up smaller, but it does appear that the stretching is working because the image seems to stretch to the shape of the uiaxes, it's just smaller. It seems as if the position stored for the axes in the app is not accurate to the layout in design view.
CeeDubbya
CeeDubbya 2018 年 1 月 8 日
I just tried programmatically altering the axes position in debug mode, shifting the location but not size with reference to the axes' position(3:4), and the size stays the same... So not sure what is happening to the image display within the axes after calling imshow.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by