![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1774565/image.png)
In 'wblplot' command how to alter legend?
1 回表示 (過去 30 日間)
古いコメントを表示
While plotting legends displayed with reference, confidence &data. How to remove the reference and confidence line in 'wblplot' program.
0 件のコメント
回答 (1 件)
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");
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1774565/image.png)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!