Icon for legend not showing in graphs
5 views (last 30 days)
Show older comments
Connor Fitzgerald
on 1 Oct 2020
Commented: Star Strider
on 1 Oct 2020
Hello,
Please refer to the image attached. I would like to know why the icons for my Fit and Confidence bounds in my legend are not displaying?
Code for graph:
figure
mdl_avgM = fitlm(maxes_x,maxes_y);
plot(mdl_avgM);
Thanks in advance.
0 Comments
Accepted Answer
Star Strider
on 1 Oct 2020
This is a problem with certain AMD graphics drivers. Updating to the newest driver version solved it for me.
6 Comments
Star Strider
on 1 Oct 2020
Connor Fitzgerald —
I discovered that fix when I did an occasional upgrade to a new AMD Radeon Graphics driver on my (relatively recent) laptop, and then did the same with my newer desktop. The opengl fix was an interim solution. (Checking driver updates every few months is something I’ve done for years. AMD does not always alert with new driver notifications, only when there’s a major upgrade or bug fix.)
More Answers (1)
Adam Danz
on 1 Oct 2020
Edited: Adam Danz
on 1 Oct 2020
This annoying problem has popped up for me too, recently.
If you're experiencing the same problem I have, you can fix it a few ways,
1. Set opengl rendering method to software
opengl software
2. or set the line widths to some value greater than 0.6 (default is 0.5).
Notice that this also affects the legend box. The line width of the legend box can be set using
leg = legend(__);
leg.LineWidth= .601;
% or
legend(__,'LineWidth',0.601)
I experienced the problem for the first time after updating to a brand new laptop with Win 10 but never had the problem on my much-older laptop with Win 7.
1 Comment
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!