Why legend is missing when I use xline function?

조회 수: 21 (최근 30일)
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa 2020년 5월 1일
댓글: Jeevan Kumar Bodaballa 2020년 5월 1일
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')
  댓글 수: 2
Mathias Andersen
Mathias Andersen 2020년 5월 1일
Might want to see here
As I have no problem with legend on the code you posted
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa 2020년 5월 1일
helped a lot
Thank you

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

답변 (0개)

카테고리

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