Is subplot supported in App Designer R2017a and if not when might it be supported?

43 views (last 30 days)
alm !
alm ! on 8 May 2017
Commented: Steven Lord on 31 Oct 2018
I am wondering is subplot supported in App Designer R2017a and if not when might it be supported?
  2 Comments
Walter Roberson
Walter Roberson on 9 May 2017
Chris: although I have not used App Designer, I know that some of my programs vary the number of subplots dynamically.
For example in one of my programs, I use nargin() to detect the number of variables a user-provided function needs, and then I plot the results of the function varying each of the variables against each other (more precisely, I run the function over a number of inputs, and I project the results by pairs of variables.) This needs n*(n+1)/2 subplots, number not known at the time of design.

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 8 May 2017
The subplot function creates axes, not uiaxes. I don't believe there's a way to make subplot directly create uiaxes instead, but you could call subplot to create axes in your desired layout (perhaps in an invisible figure set to the same size as your uifigure), get those axes' Position properties, and create uiaxes in those same positions in the uifigure.
This does seem like a reasonable enhancement request, though. Please contact Technical Support using the Contact Us link in the upper-right corner of this page and ask them to enter this enhancement into the enhancement database. If you describe your use case so they can capture it in the enhancement request, that will be useful to the developers considering the request in the future.
  2 Comments
Steven Lord
Steven Lord on 31 Oct 2018
Following up: according to the Release Notes, support for subplot in App Designer was added in release R2018b. There are a few steps you will need to follow to do so. See the documentation page linked in that release note for details.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!

Translated by