Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Patch to specific axes without uistack?

Subject: Patch to specific axes without uistack?

From: Nate Jensen

Date: 16 Oct, 2011 01:17:31

Message: 1 of 3

I have a gui that creates a patch on a different figure.

Is there a way to do this without having to use uistack?

Thanks,
Nate

Subject: Patch to specific axes without uistack?

From: Steven_Lord

Date: 17 Oct, 2011 03:18:47

Message: 2 of 3



"Nate Jensen" <natejensen88@gmail.com> wrote in message
news:j7dbbb$27a$1@newscl01ah.mathworks.com...
> I have a gui that creates a patch on a different figure.
>
> Is there a way to do this without having to use uistack?

Specify the Parent property with the handle to the axes in which you want
the patch created as the property value in your call to PATCH.

ax = axes;
patch(x, y, 'Parent', ax);

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Patch to specific axes without uistack?

From: Nate Jensen

Date: 17 Oct, 2011 13:25:27

Message: 3 of 3

"Steven_Lord" <slord@mathworks.com> wrote in message <j7g6qp$nhk$1@newscl01ah.mathworks.com>...
> Specify the Parent property with the handle to the axes in which you want
> the patch created as the property value in your call to PATCH.
>
> ax = axes;
> patch(x, y, 'Parent', ax);
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Awesome thanks.

Tags for this Thread

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.

Contact us