legend bar not visible

조회 수: 7 (최근 30일)
Martin Stump
Martin Stump 2019년 11월 26일
댓글: Star Strider 2019년 11월 26일
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?
untitled.png
figure;
x=1:1000;
hold on;
plot(x,x);
plot(x,x+100);
plot(x,x+200);
hold off;
legend('does','not','work');

채택된 답변

Star Strider
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')
See the documentation on opengl for more information
  댓글 수: 2
Martin Stump
Martin Stump 2019년 11월 26일
thank you very much. It worked. I would have never guessed that, because it works on other plot scripts...
Star Strider
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 CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by