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

29 Ansichten (letzte 30 Tage)
I am wondering is subplot supported in App Designer R2017a and if not when might it be supported?
  2 Kommentare
Chris Portal
Chris Portal am 9 Mai 2017
I'd be curious to learn more about this use case. Are you looking to create a separate figure window with a grid of UIAXES? Or are you looking to have grid of UIAXES be contained inside of an app you are building?
If it's meant to be a separate window, you can call FIGURE/AXES from your app's code and create a separate window with a subplot layout.
If it's meant to be contained within an app, you would typically drag & drop and arrange the UIAXES you need as part of laying out your app. I would be interested in learning more why that wouldn't work.
Thanks!
Walter Roberson
Walter Roberson am 9 Mai 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Steven Lord
Steven Lord am 8 Mai 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 Kommentare
Steven Lord
Steven Lord am 31 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

chrisw23
chrisw23 am 31 Okt. 2018
subplot support for App Designer not before R2018 b

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by