How to fix rendering issue in AppDesigner axes?
Show older comments
Folks,
I am trying to use:
set(0,'DefaultFigureRenderer','opengl')
to fix an issue I have in AppDesigner. The axes legend shows a dashed line as a corrupted version half way between continuous and dashed. I have tried that above set command in the startupFcn(app) function with painters and zbuffer, but to no avail. 80% of the time the figure is created, this happens. The other 20% of the fime the correct dashed line appears in the legend. Same exact line is being drawn in these tests. It seems like a race issue. Can anyone help? 2020a
Thanks,
Kris

4 Comments
Eric Delgado
on 13 Oct 2022
Edited: Eric Delgado
on 13 Oct 2022
Can you save and share a figure (.fig) instead of this image? What's the version of your OS? Try to update your OS and the driver of your graphic. And... (see below)
% Instead of:
% set(0,'DefaultFigureRenderer','opengl')
% Try:
opengl hardware
% And after the commands of plot and legend...
drawnow
Kristoffer Walker
on 13 Oct 2022
Edited: Kristoffer Walker
on 13 Oct 2022
Eric Delgado
on 14 Oct 2022
Can you put in here the answer for those two commands?
system('winver')
opengl info
Kristoffer Walker
on 14 Oct 2022
Answers (0)
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!