Clearing Subplots & getting the original view
古いコメントを表示
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!