Axes in Appdesigner disappear

8 visualizaciones (últimos 30 días)
Clemens
Clemens el 9 de Mayo de 2018
Respondida: Cris LaPierre el 9 de Nov. de 2018
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 comentario
Clemens
Clemens el 9 de Mayo de 2018
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.

Iniciar sesión para comentar.

Respuestas (1)

Cris LaPierre
Cris LaPierre el 9 de Nov. de 2018
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.

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by