Thread Subject: clear axes

Subject: clear axes

From: Juan Xu!

Date: 9 Nov, 2011 18:13:12

Message: 1 of 2

Hi,

I have created an axes. Initally I have an empty- 2D- grid and I want and after plotting something I want to come back to my empty grid axes. So I have tried with command cla (labels won't remove but it's a easy task to delete it) and it will work unless i plot something in 3D. In this case, the empty grid has three dimensions. Any idea to return always to my initially axes?

Thank you!

Juan Xu!

Subject: clear axes

From: Richard Quist

Date: 9 Nov, 2011 19:06:56

Message: 2 of 2

On 11/9/2011 1:13 PM, Juan Xu! wrote:
> Hi,
>
> I have created an axes. Initally I have an empty- 2D- grid and I want and
> after plotting something I want to come back to my empty grid axes. So I have
> tried with command cla (labels won't remove but it's a easy task to delete it)
> and it will work unless i plot something in 3D. In this case, the empty grid
> has three dimensions. Any idea to return always to my initially axes?
>
> Thank you!
>
> Juan Xu!
Assuming ax is your axes handle,
    cla(ax, 'reset')
should work.

Hope that helps.

--
Rich

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
cla Juan Xu! 9 Nov, 2011 13:14:15
clear axes Juan Xu! 9 Nov, 2011 13:14:15
rssFeed for this Thread

Contact us at files@mathworks.com