Is subplot supported in App Designer R2017a and if not when might it be supported?
13 次查看(过去 30 天)
显示 更早的评论
I am wondering is subplot supported in App Designer R2017a and if not when might it be supported?
2 个评论
Chris Portal
2017-5-9
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
2017-5-9
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.
采纳的回答
Steven Lord
2017-5-8
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 个评论
Steven Lord
2018-10-31
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.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!