change legend name of ROC

4 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2022 年 9 月 15 日
コメント済み: Elysi Cochin 2022 年 9 月 17 日
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

採用された回答

KSSV
KSSV 2022 年 9 月 15 日
plotroc(Ts,Y)
hLegend = findobj(gcf, 'Type', 'Legend');
%get text
hLegend.String
% Change
hLegend.String {'One' 'Two' 'Three'} % put your strings here; I assume three are there
  1 件のコメント
Elysi Cochin
Elysi Cochin 2022 年 9 月 17 日
hLegend.String = {'One' 'Two' 'Three'}

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

その他の回答 (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