Why legend is missing when I use xline function?

27 vues (au cours des 30 derniers jours)
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa le 1 Mai 2020
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 commentaires
Mathias Andersen
Mathias Andersen le 1 Mai 2020
Might want to see here
As I have no problem with legend on the code you posted
Jeevan Kumar Bodaballa
Jeevan Kumar Bodaballa le 1 Mai 2020
helped a lot
Thank you

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by