Appdesigner: Multiple layers - Hide an axis and access one underneath.

1 view (last 30 days)
I am trying to set-up two small axes and then a larger one over the top of them. Ideally, when I press a button, I would be able to switch between the two views (the two small axes or the one large axis).
The only way I have been able to find to do this so far, is to create a graph, delete it when I don't need it and then re-create it later on.
I tried using the 'Visible' option, but that just leaves a grey square over ther area and so it is not really invisible, as it obscures the underlying image (axis).
Is there a better/easier way to accomplish this, please ?

Accepted Answer

Marco Frieslaar
Marco Frieslaar on 3 Oct 2018
Not to worry, I have found my own answer.
I have played around with the 'Position' of the plot and set it to [0 0 0 0] when I want it to vanish and then back to the original position settings when I want it to re-appear.
In effect, it is always present, it just becomes really, really tiny when I want it to disappear.

More Answers (0)

Categories

Find more on Graphics Performance 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!