How to fix rendering issue in AppDesigner axes?

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

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
Unfortunately that does not fix the issue. Thank you though for the suggestion. OS is Windows 10. Not sure about the driver of graphic or how to find that out.
Can you put in here the answer for those two commands?
system('winver')
opengl info
Eric, thank you. Windows 10 Version 21H2 (OS Build 19044.2006).
Version: '4.6.0 NVIDIA 472.91'
Vendor: 'NVIDIA Corporation'
Renderer: 'Quadro T2000 with Max-Q Design/PCIe/SSE2'
RendererDriverVersion: '30.0.14.7291'
RendererDriverReleaseDate: '13-Dec-2021'
MaxTextureSize: 32768
Visual: 'Visual 0x09, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samples)'
Software: 'false'
HardwareSupportLevel: 'full'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 1
Extensions: {403×1 cell}
MaxFrameBufferSize: 32768

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 11 Oct 2022

Commented:

on 14 Oct 2022

Community Treasure Hunt

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

Start Hunting!