Legend for plotroc precompiled?

조회 수: 2 (최근 30일)
wolss
wolss 2019년 7월 1일
편집: Kritika Bansal 2019년 7월 19일
Hi, I'm asking how to change the legend of the plotroc that I can get graphic of, from the code I export from nntraintool (nprtool).
In fact, in this plot it represents "class1" and "class2", but I'd want to subscribe this with "Yes", "No", because I'm testing a Neurale Pattern Recognition Network to verify if there is or not a subject behind a wall.
thank you anyway!!

답변 (1개)

Kritika Bansal
Kritika Bansal 2019년 7월 18일
편집: Kritika Bansal 2019년 7월 19일
Hi,
As per my understanding, you are trying to change the legend of the roc curves which are being plotted using plotroc() function. You wish to change the legend to actual name of the classes instead of the default ‘class 1’, ‘class 2’, etc.
You can change the legend of the plot by following the below steps:
  1. Get current axes:
axesUserData = get(gca, userdata);
2. Modify the legend:
legend(axesUserData.lines, Yes, No);
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 7월 18일
Probably needs to be legend() instead of Legend()

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by