Why do App Designer UIaxes elements start to disappear?

2 views (last 30 days)
Hi,
I encountered the following problem designing apps using the app designer framework:
Objects of the type matlab.ui.control.UIAxes start to disappear in the GUI (visibly) if the number of instantiated matlab.ui.control.UIAxes objects get larger. In my case, I have about 40-50 matlab.ui.control.UIAxes objects instantiated in multiple tabs and sub / sub-sub tabs.
More details:
  • matlab.ui.control.UIAxes objects only disappear visibly, meaning, they still exist, are not deleted, or empty or anything of the kind. they simply are not visible anymore. any operations on properties or methods of the object are still possible, but again, the object remains invisible
  • turning on and off the visibility parameter does not solve the problem
  • instantiating the matlab.ui.control.UIAxes in debug mode one by one using the F10 key results in the following behavior: at first, some matlab.ui.control.UIAxes object is visible in the GUI, but disappears after some more matlab.ui.control.UIAxes objects have been instantiated
  • the problem is not caused by overlaying the object with other objects. to exclude this option, I have checked the code. Further, the instantiating the matlab.ui.control.UIAxes objects in different order results in different objects turning invisible at different points in time. Hence, I assume, that I am not overlaying any objects in any way, so that they turn invisible
  • I have not yet encountered a similar problem with other gui elements (e.g. tables). However matlab.ui.control.UIAxes objects are by far the largest number of gui elements in my app
@MathWorks: Hence:
  • do you have any idea of the root cause?
  • is there some sort of maximum number of matlab.ui.control.UIAxes objects?
  • how can this problem be fixed?
Thanks!

Answers (1)

Bob Blaine
Bob Blaine on 2 Mar 2017
Hi Klaus,
Up until the 2017a release of MATLAB there was a limit of 16 UIAxes in a MATLAB session. This was a limitation of the underlying graphics system that is being used by App Designer. In the 2017a release, that limitation was removed. If you are using 2017a and still running into this problem, let us know.

Categories

Find more on Develop Apps Using App Designer 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!