[MATLAB R2020a] My legend doesn't have any lines
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I've plotted three sets of data. When I use legend, however, the text shows up but there aren't any colors. Does anyone know what's wrong? I'm using MATLAB R2020a.
Code:
hold on;
plot(t_out_B, mag_r_B-mag_r_A)
plot(t_out_C, mag_r_C-mag_r_A)
plot(t_out_D, mag_r_D-mag_r_A)
legend('Two body with J2', 'Two body with J2 and J3', 'Two body with atmospheric drag')
hold off;
Output:
回答 (2 件)
Star Strider
2020 年 4 月 21 日
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')
I intend to mention this to AMD, however if you also want to, please do!
0 件のコメント
Chris Jennings
2020 年 5 月 7 日
Well, it's a work around not a very good solution because it stops using the graphics card for all opengl commands.
This can result in very slow graphics, e.g. rotating in 3D becomes slow and stutters.
I will be very interested to hear if AMD is going to come out with a driver fix ...
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!