I should add that at no position in my code (searched all the called functions) I clear any of the axes or change its visibility.
Axes in Appdesigner disappear
4 次查看(过去 30 天)
显示 更早的评论
Hey everyone,
I have created an app in Matlab (R_2018a) Appdesigner which (besides running some calculations) can display several plots. I have 4 axes (UIAxes) which a function can plot to. Which axes the plot is sent to and what data I want to be displayed is decided via a Toggle Button Group and a Radio Button Group, respectively). However, after changing the selections in the Radio Button Group and the Toggle Button Group a little (when running the app), one of the axes disappears (not just its content, but the entire axes, although the property app.UIAxes1.Visible is still = 'On'). I struggle to reproduce the error reliably. At one point, when Matlab crashed, I got an error message saying that something in the Matlab-internal function OnCleanup is going wrong. Realizing that this is not the best problem description and struggling to recreate the error in a minimal working example, I was wondering whether anyone has encountered a similar problem.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190439/image.png)
回答(1 个)
Cris LaPierre
2018-11-9
I've seen something similar. When an axes (or control) has invalid data, it is not rendered. I would suggest checking what is being set in that axes. I seem to recall error messages in the command window indicating there was an issue and that the item would not be included until it was fixed.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!