When running a GUI that has a timer callback, I notice that loading other GUI figures often fails (incorrect rendering). Is this known behavior? Are there any workarounds? I assume that the code loading the figures isn't immune to a timer spontaneously injecting code ... (e.g. updating the current figure or axes).
Edit: I'm using Matlab 2016a or newer (need to check specific version) on Windows 7. The code to load the figure is:
After running this line the figure is rendered incorrectly. The figure is the wrong size and components are not where they are supposed to be.
The loaded figures have been created by GUIDE with no code generation (just figure layout). The remaining code (not shown) only adds callbacks and updates display strings; no components are created or positions/sizes changed.
3 Comments
Steven Lord (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/357790-timer-causes-drawing-problem-when-loading-a-figure#comment_486598
Jim Hokanson (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/357790-timer-causes-drawing-problem-when-loading-a-figure#comment_486759
Jan (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/357790-timer-causes-drawing-problem-when-loading-a-figure#comment_486823
Sign in to comment.