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

1 view (last 30 days)
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.

Answers (1)

Walter Roberson
Walter Roberson on 6 Mar 2013
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 Comments
Cristina
Cristina on 7 Mar 2013
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 on 8 Mar 2013
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.

Sign in to comment.

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!