What does this mean? what is exactly the type Root? >>Error:Handles of type Root cannot be made the current Axes.

5 visualizaciones (últimos 30 días)
i declare at the opening function of my gui the axes as : handles.axesroi=0; And i use this : axes(handles.axesroi) under the graph that i want to show but i have this error (Handles of type Root cannot be made the current Axes.) any ideas of what is going wrong?
  1 comentario
abbxucy11
abbxucy11 el 12 de Dic. de 2016
in my gui i have 3 axes and there must be a different graph plotted on each axes. when i make the first two graphs everything shows up at the right axes that was supposed to be,but when i plot the 3rd graph that should appear on the 3rd axes , everything gets confused and the graphs dont appear where they should be. any ideas what is going wrong?

Iniciar sesión para comentar.

Respuesta aceptada

Adam
Adam el 11 de Dic. de 2016
Why are you trying to assign 0 as an axes? You already had an axes there in GUIDE I assume, judging by the name and the fact you have 'handles' at all so just using
axes(handles.axesroi)
should work fine if you hadn't previously set it to 0. You should rarely need to use a command like this though. Explicitly plotting on a given axes is far better than bringing it into focus and then plotting on the axes currently in focus.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by