change legend name of ROC

1 view (last 30 days)
Elysi Cochin
Elysi Cochin on 15 Sep 2022
Commented: Elysi Cochin on 17 Sep 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Accepted Answer

KSSV
KSSV on 15 Sep 2022
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 Comment
Elysi Cochin
Elysi Cochin on 17 Sep 2022
hLegend.String = {'One' 'Two' 'Three'}

Sign in to comment.

More Answers (0)

Categories

Find more on ROC - AUC in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by