Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!b1g2000hsg.googlegroups.com!not-for-mail
From: avan <avan.sp@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: drawing a line to a specific plot
Date: Thu, 10 Apr 2008 01:55:29 -0700 (PDT)
Organization: http://groups.google.com
Lines: 25
Message-ID: <9a9c8d46-c6e3-4f52-9ac9-5124f87a3b9e@b1g2000hsg.googlegroups.com>
References: <ftjada$oni$1@fred.mathworks.com> <ftjaj4$fvk$1@canopus.cc.umanitoba.ca>
NNTP-Posting-Host: 145.88.209.33
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1207817730 29537 127.0.0.1 (10 Apr 2008 08:55:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 10 Apr 2008 08:55:30 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: b1g2000hsg.googlegroups.com; posting-host=145.88.209.33; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.13) 
Xref: news.mathworks.com comp.soft-sys.matlab:462139



On Apr 9, 10:57 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
wrote:
> In article <ftjada$on...@fred.mathworks.com>,
>
> David Doria <daviddo...@gmail.com> wrote:
> >figure
> >a=subplot(2,1,1);
> >b=subplot(2,1,2);
> >how do I use line() to plot to a? I think it says in the
> >documentation that you can't actually do that, is this correct?
>
> line(x,y,z,'Parent',a);
> --
>   "Walter exemplified class."                     -- Paul Tagliabue


Or

>>figure
>>a=subplot(2,1,1);
>>b=subplot(2,1,2);
>>axes(a)
>>line(x,y,z);

avan