필터 지우기
필터 지우기

delete "watermark" automatically created by tabpanel constructor v.2.8.1?

조회 수: 4 (최근 30일)
Cristina
Cristina 2013년 3월 6일
I have used tabpanel constructor v.2.8.1 in matlab 7.8.0 (R2009a) to create a GUI with several tabs. In one of the tabs I have some axes. After I wrote in the axes property inspector their tag and the axes_CreateFcn, it automatically include, when I closed that tab's GUIDE, a copy of those axes in the middle of all tabs within the GUI , as if it was a watermark. If the editor for each tab is opened, that watermark/axes doesn't appear (so I can't delete it). But running the GUI it does. In fact, as I have a function to change the image displayed in the axes, the "watermark" changes when that function is called. I have managed to delete it when the GUI is run including in the code "delete(gca)", but it continues appearing when opening tabpanel.
I know it's quite strange but it happend twice already. Any ideas to remove it from tabpanel? Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 6일
GUIDE is not written to be able to handle tabbed panels. GUIDE is written with the expectation that everything you have created on a figure is non-overlapping and that if something is not currently visible it is only because its Visiblity was set 'off', not because something overlays it.
  댓글 수: 2
Cristina
Cristina 2013년 3월 7일
yes I know, that's what I used tabpanel constructor, because I didn't need to write the whole code. I wanted to know if there is some way of fix that problem. If you mean that there's no solution, that's also an answer.
Walter Roberson
Walter Roberson 2013년 3월 8일
If you rewrite the GUIDE generated code sufficiently, of course it can be done. My experiences with GUIDE convinced me it was easier to rewrite without GUIDE than to fix up GUIDE code afterwards. But that's my opinion.
I do not have enough patience with GUIDE to go through to debug an issue like what you have seen.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by