skip legend entries in property editor?

1 回表示 (過去 30 日間)
Martin Muehlegger
Martin Muehlegger 2020 年 3 月 4 日
コメント済み: Martin Muehlegger 2020 年 3 月 5 日
I have a .fig file where i'd like to delete the first 8 legend entries without effecting the other ones. Figure is attached. tried it with property editor but it doesn't work. I'm running 2017b.

回答 (1 件)

Bhaskar R
Bhaskar R 2020 年 3 月 5 日
ax = gca;
ax_data = ax.Children;
legend(ax_data(1:5), fliplr(ax.Legend.String(9:end)))
  1 件のコメント
Martin Muehlegger
Martin Muehlegger 2020 年 3 月 5 日
Ouh always forget fliplr.... But how to do this in the figure property editor?

サインインしてコメントする。

カテゴリ

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