Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Scott Seidman <namdiesttocs@mindspring.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Add to a subplot
Date: 18 Sep 2008 23:52:26 GMT
Organization: Your Company
Lines: 22
Message-ID: <Xns9B1DCA2B1DBE5scottseidmanmindspri@130.133.1.4>
References: <710ce99f-25f3-4072-917a-969f8fcbad76@k13g2000hse.googlegroups.com> <ujBAk.14864$Dj1.9847@newsfe01.iad> <bf4db45e-1a07-4cfd-a7a2-761bb080180f@d45g2000hsc.googlegroups.com>
X-Trace: individual.net kd/yaC4B5cdkvqs6527DCgdCS+ltHpkoyFnaI1fdJuddZ8kjE=
Cancel-Lock: sha1:cCmcJvbfZY7BSeH2x5+Q76dOn4c=
User-Agent: Xnews/5.04.25
Xref: news.mathworks.com comp.soft-sys.matlab:490865


Aaron Fude <aaronfude@gmail.com> wrote in news:bf4db45e-1a07-4cfd-a7a2-
761bb080180f@d45g2000hsc.googlegroups.com:

> How do you get the existing axis from a particular subplot? Not sure
> what to call get() on. And then how do you make the obtained axes the
> current axes? I know how to get them but not how to set them.

You keep track of things before its too late!!

h = subplot(...)

returns the handle of the axes of the subplot when its created.  Handle 
graphics, in general, is just a matter of bookkeeping.


Other than that, you'd need to use Findobj on the figure to pull out all 
the axes, and then figure out somehow (by position maybe??) what handle 
matches what axes.

-- 
Scott
Reverse name to reply