Why does my axes disappear when putting a background image?
古いコメントを表示
Good evening. I have the following problem. I am using this code to put an image in a Gui in the background, the objects that I have in the Gui remain visible on the image, except for my 2 axes that I have in the GUI, which seem to be hidden in the image. What should I do to make them look? Thank you.
ha = axes('units','normalized', ...
'position',[0 0 1 1]);
uistack(ha,'bottom');
I=imread('eight.tif');
hi = imagesc(I)
colormap gray
set(ha,'handlevisibility','off', ...
'visible','off')
axes('position',[0.3,0.35,0.4,0.4])
6 件のコメント
Pedro Guevara
2020 年 4 月 1 日
Walter Roberson
2020 年 4 月 1 日
ha = axes('units','normalized', ...
'position',[0 0 1 1]);
uistack(ha,'bottom');
I=imread('eight.tif');
hi = imagesc(ha, I)
colormap(ha,gray)
set(ha,'handlevisibility', 'off', ...
'visible', 'off', ...
'position', [0.3,0.35,0.4,0.4])
Pedro Guevara
2020 年 4 月 1 日
編集済み: Pedro Guevara
2020 年 4 月 1 日
Image Analyst
2020 年 4 月 1 日
Does the new axes overlap any of the existing axes? If so, it will make them disappear I think. At least with subplot() it does. Please post screenshots before and after displaying the image.
Walter Roberson
2020 年 4 月 2 日
set the axes Layer property to 'top' (default is 'bottom')
Pedro Guevara
2020 年 4 月 2 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!