Axes in Appdesigner disappear

4 次查看(过去 30 天)
Clemens
Clemens 2018-5-9
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.
  1 个评论
Clemens
Clemens 2018-5-9
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.

请先登录,再进行评论。

回答(1 个)

Cris LaPierre
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.

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by