legend bar not visible
6 次查看(过去 30 天)
显示 更早的评论
Hello
I'm having troubles with the legend function. It somehow stopped working. If I plot three (or one, does not matter) plots in one figure and want to put a legend inside, the color bars don't show up. Any ideas?

figure;
x=1:1000;
hold on;
plot(x,x);
plot(x,x+100);
plot(x,x+200);
hold off;
legend('does','not','work');
0 个评论
采纳的回答
Star Strider
2019-11-26
This is a problem with recent versions of AMD video drivers.
The generally-accepted solution is:
opengl('software')
and if you want to:
opengl('save','software')
2 个评论
Star Strider
2019-11-26
As always, my pleasure!
I encountered it on my laptop (Ryzen-Radeon) although not on my desktop (Ryzen-Nvidia).
I intend to tell AMD about this, just haven’t yet.
更多回答(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!