Thread Subject: drawing a line to a specific plot

Subject: drawing a line to a specific plot

From: David Doria

Date: 9 Apr, 2008 20:54:02

Message: 1 of 3

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?

Thanks,

Dave

Subject: drawing a line to a specific plot

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 9 Apr, 2008 20:57:08

Message: 2 of 3

In article <ftjada$oni$1@fred.mathworks.com>,
David Doria <daviddoria@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

Subject: drawing a line to a specific plot

From: avan

Date: 10 Apr, 2008 08:55:29

Message: 3 of 3

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

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com