In 'wblplot' command how to alter legend?

조회 수: 6 (최근 30일)
iyyappan c
iyyappan c 2017년 12월 2일
답변: Gautam 2024년 9월 18일
While plotting legends displayed with reference, confidence &data. How to remove the reference and confidence line in 'wblplot' program.

답변 (1개)

Gautam
Gautam 2024년 9월 18일
To display only certain lines on the plot you can pass in the handles to the line objects as a parameter to the “legend” function. This ensures that only the lines for which the handles have been passed as the argument are displayed in the legend window
The code below demonstrates this
r = wblrnd(1.2,1.5,50,1);
p = wblplot(r);
l = legend([p(1)], "data");

카테고리

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