Why legend is missing when I use xline function?
8 次查看(过去 30 天)
显示 更早的评论
I am trying to use xline function but legend is having problem when I use xline funtion
you can see below code and plot
clear
x = 1:0.1:10;
y = sin(x);
plot (x,y)
xline(3,'r','example')
legend('why not visble')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/289373/image.png)
2 个评论
Mathias Andersen
2020-5-1
Might want to see here
As I have no problem with legend on the code you posted
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!