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?
What does this mean? what is exactly the type Root? >>Error:Handles of type Root cannot be made the current Axes.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
Réponse acceptée
Adam
le 11 Déc 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!