This question is closed. Reopen it to edit or answer.
Setting handle within multiple axes with GUIDE?
1 view (last 30 days)
Hello, thanks for reading this,
I want to use multiple axes within a GUIDE gui I created, how can I handle the handle of multiple axes programmatically?
I've been given and experimented with this code:
which sets the gca to a subplotted axes you click on, but that is a manual process. How can I set it without the need for the callback Windowbuttonupfcn?
Supreeth Subbaraya on 4 Aug 2014
The current axes handle (gca) is set to a axes of a subplot that is clicked on. So you do not need the “ Windowbuttonupfcn ” callback function. You can check this by commenting out the code on line number 5, and then click the subplots and see how the value of gca changes.
Also, if you want to set the existing axes “h” as the current axes, you can use the command “ axes(h)”. You can find the documentation for axes here