Clearing Subplots & getting the original view
Mostra commenti meno recenti
Hi,
In my GUI, on pushing a button, I split one "axes" (handle: plot) into 3 subplots (ax1, ax2, ax3); & once I have done this, I clear it using the commands: cla(ax1);cla(ax2);cla(ax3).
But if I click on the pushbutton again; MATLAB crashes.
I tried debugging, it gives an error when executing the axes handle: axes(handles.plot);
Is it because the axes is still divided into 3 subplots???
Because when I tried clearing the axes using: cla(handles.plot, 'reset'); I get an error: Bad Handle.
Is there a way to clear subplots and plot on that area again on clicking the pushbutton?
Or is there a way to clear the subplots by calling the tag of the parent axes?
Please advise on this.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Subplots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!