Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Removing subplots

Subject: Removing subplots

From: Nissan

Date: 30 Apr, 2006 02:32:48

Message: 1 of 2

Hi,

I've a GUI application on which i draw plots using the subplot
function.

at some point i want to remove all the subplots.

i've tried using "clf" but it removed the menu that i've created (using
GUIDE).

how can i remove the subplots without remvoing the menu?

thank you.

Subject: Removing subplots

From: Laurens Schalekamp

Date: 1 May, 2006 09:50:31

Message: 2 of 2

Nissan,

You can use the DELETE function along with a handle to the subplot.

% Create subplot
a1 = subplot(2,1,1);

% remove it
delete(a1)

HTH,
Laurens
The MathWorks, Inc.

Nissan wrote:
> Hi,
>
> I've a GUI application on which i draw plots using the subplot
> function.
>
> at some point i want to remove all the subplots.
>
> i've tried using "clf" but it removed the menu that i've created (using
> GUIDE).
>
> how can i remove the subplots without remvoing the menu?
>
> thank you.
>

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us