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

4 次查看(过去 30 天)
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 个评论
abbxucy11
abbxucy11 2016-12-12
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?

请先登录,再进行评论。

采纳的回答

Adam
Adam 2016-12-11
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by