Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Plot a line to a specific axis?
Date: Thu, 11 Oct 2007 20:11:43 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <fem01v$8ge$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1192133503 8718 172.30.248.38 (11 Oct 2007 20:11:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Oct 2007 20:11:43 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:432513



It seems from the help that the line() function will only
plot to the current axis, is this correct?

for example, i have a (2,1) subplot that i want to alternate
plotting lines on.  

I did h1=subplot(2,1,1);
h2=subplot(2,1,2);

but line(h1, [xcoords], [ycoords]) doesn't work!

Any suggestions?

Thanks,

David