multiple isntances of custom ChartContainer in a figure

1 回表示 (過去 30 日間)
J. Alex Lee
J. Alex Lee 2021 年 2 月 3 日
回答済み: J. Alex Lee 2021 年 2 月 3 日
I defined a custom matlab.graphics.chartcontainer.ChartContainer class.
When trying to populate a uigridlayout with multiple instances of the class, only the last created one appears (the others show up as deleted instances).
Is it not possible to have multiple instances of a custom chartcontainer class in a single figure?

採用された回答

J. Alex Lee
J. Alex Lee 2021 年 2 月 3 日
Oops, documentation says that the Parent of an instance of chartcontainer can only be one of
Figure object (default) | Panel object | Tab object | TiledChartLayout object
Not so intuitive, especially since it doesn't error out when you attempt to give it uigridlayout parent.
Work-around was to wrap in a uipanel at creation.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeveloping Chart Classes についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by