Change Legend Markers after legend creation in App Designer

1 回表示 (過去 30 日間)
Joel Möllering
Joel Möllering 2018 年 1 月 3 日
回答済み: Neil Guertin 2018 年 1 月 4 日
Hello, After reading through the documentation, I discovered that using legend() with more than 1 output allows changing legend icon properties. However, legend doesn't allow that in App Designer. That's a bummer because if App Designer is intended to make apps, it should allow full customization of whatever a person wants to show in the app. So, my question is: anyone knows any workaround to be able un-link the automatic legend marker icons? (I mean, right now, if I change the marker Size in the plot, the legend updates automatically, but I don't want that, I want the size of the icons to remain static.)

採用された回答

Neil Guertin
Neil Guertin 2018 年 1 月 4 日
There is no currently supported way to get access to the icons of a legend in App Designer. As a workaround you could create an invisible line with the desired marker size and use a reference to it in the legend instead.
The multiple output version of legend is a compatibility measure for a syntax used long ago and is not available on the newer version of the legend used in App Designer.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by