Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to draw an irregular shape on GUI axes?
Date: Fri, 3 Aug 2007 15:28:45 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 25
Message-ID: <f8vhjd$go7$1@canopus.cc.umanitoba.ca>
References: <f8td95$i7t$1@fred.mathworks.com> <f8tg0t$46b$1@fred.mathworks.com> <f8tm7f$5gf$1@fred.mathworks.com> <f8vfa2$9ar$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1186154925 17159 192.70.172.160 (3 Aug 2007 15:28:45 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 3 Aug 2007 15:28:45 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:422357


In article <f8vfa2$9ar$1@fred.mathworks.com>,
Kathleen  <quisquiliae2@hotmail.com> wrote:

>One more question: I have an animated object that needs to 
>be visible *over* the polygon (i.e., polygon needs to be 
>in the background). Right now, the polygon covers and 
>obscures the animation.

>How can I layer these objects so that the polygon shape is 
>in the background?

The newest object (that is, constructed more recently)
is the one that will be displayed on top.

See also the documentation on uistack()

Also, I can't think right at the second of exactly which page this
is documented on, but you can set the Children property of
handle graphics objects to change the order they stack in.
When you get() the Children property, the first child in the list
will be the one that appears on top, so to change the order,
set() the Children property to an appropriate permutation of
the original.
-- 
  Prototypes are supertypes of their clones.           -- maplesoft