Problems with legends in Matlab 2020a
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Benalcazar
el 9 de Abr. de 2020
Respondida: Vinai Datta Thatiparthi
el 15 de Abr. de 2020
Ihave just installed Matlab 2020a, and I'm having issues with the format of the legends in my plots. I haven't had this issue in other versions of Matlab.
The problem is that some elements are not ploted in the legend. For instance, if I run one of Matlab's examples:
x = linspace(0,pi);
y1 = cos(x);
plot(x,y1)
hold on
y2 = cos(2*x);
plot(x,y2)
legend('cos(x)','cos(2x)')
I get this plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283109/image.jpeg)
Oddly enough, when I go to Edit / Copy Figure, the legend is allright:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/283110/image.jpeg)
I don't know what is going on. Can someone help me figure this out?
0 comentarios
Respuestas (1)
Vinai Datta Thatiparthi
el 15 de Abr. de 2020
Hello Daniel,
I wasn't able to reproduce the issue that you describe at my end, however, I did find another instance where this similar error/issue was raised. Find this link HERE.
Please do a clean reinstall of MATLAB and update your graphics drivers to get MATLAB to work as earlier.
Hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!