Lines in legend are missing

1 回表示 (過去 30 日間)
Romy Schipper
Romy Schipper 2019 年 11 月 12 日
コメント済み: Star Strider 2019 年 11 月 12 日
I have made a simple plot using the following code:
figure(1)
plot(CO2(3:end,1),CO2(3:end,2) - mean(CO2(3:end,2)))
hold on
plot(CO2(3:end,1), diff_CO2(2:end))
hold on
plot(CO2(3:end,1), diff(diff_CO2))
title('Global carbon dioxide emissions')
xlabel('Time in years')
ylabel('CO2 in parts per minute')
legend({'Demeaned series', '1st difference', '2nd difference'}, 'Location','northwest')
Everything is as it;s supposed to be, appart from the fact that the lines are missing in the legend. I have reinstalled the student version of 2019b so maybe it has to do with that. But anyone tips how to solve this?
Output:

採用された回答

Star Strider
Star Strider 2019 年 11 月 12 日
This appears to be a problem with current AMD graphics card drivers.
The easiest solution seems to be:
opengl('software')
and then:
opengl('save','software')
See the documentation on opengl for a detailed discussion.
I intend to mention this to AMD, however if you also want to, please do!
  2 件のコメント
Romy Schipper
Romy Schipper 2019 年 11 月 12 日
Thanks! Solved immediately! :)
Star Strider
Star Strider 2019 年 11 月 12 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by