MATLAB Answers

Problems with legends in Matlab 2020a

45 ビュー (過去 30 日間)
Daniel Benalcazar
Daniel Benalcazar 2020 年 4 月 9 日
回答済み: Vinai Datta Thatiparthi 2020 年 4 月 15 日
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:
Oddly enough, when I go to Edit / Copy Figure, the legend is allright:
I don't know what is going on. Can someone help me figure this out?

  0 件のコメント

Sign in to comment.

回答 (1 件)

Vinai Datta Thatiparthi
Vinai Datta Thatiparthi 2020 年 4 月 15 日
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 件のコメント

Sign in to comment.

タグ

製品


リリース

R2020a

Translated by