Problems with graphics in app designer

I am developing an interface with app designer and I have one problems related to graphics.
I want to enlarge one of the graphics to make it bigger and the other graphics do not disappear despite putting them invisible and they appear on top of the enlarged graphic. I attach a picture in which you see the prblem.
Thanks for your help

4 Comments

Which graphics do you want to disappear?
I want the gray squares that appear in the corners to disappear.
I have made the following code but it appears as seen in the photo.
app.Graph1.Visible = 'off';
app.Graph3.Visible = 'off';
app.Graph4.Visible = 'off';
Can you share your app in a zip file?
If I attach it. The problem is that the data received is from a micro so you will not be able to represent that graph.

Sign in to comment.

Answers (1)

Hi Guillermo,
UIAxes behaves like a conventional axes and a uicontainer at the same time for visibility purposes. It has a non-transparent background that cannot be hidden. This is done so that we can support axis off workflows where users still want to see the plots inside of the Axes.
Here is a decent workaround. Create the uiaxes (the one that you want to hide) in a uipanel and hide the panel itself. This requires small changes to your app but will resolve your problem.
Hope this helps.

Categories

Find more on Graphics Objects in Help Center and File Exchange

Answered:

on 16 Apr 2018

Community Treasure Hunt

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

Start Hunting!