Multiple plot handles to the same figure

조회 수: 5 (최근 30일)
Daniell Algar
Daniell Algar 2013년 2월 1일
Hi,
I have two handles created with something like,
hTri= trimesh();
hFill= fill3();
where two figures act as parent's for hTri, say hTRiP, and the parent for hFill is hFillP.
I would now and then like to display both hTri and hFill in the same figur, say hTriP.
I've tried to set the 'Parent' and 'Children' properties for hTri and hFill, to hTriP. Either I'm doing something wrong or I'm in a blind of what to do... I do not wish to re-plot the figures, just show them both sometimes in the same figure, sometimes in two separate.
Thanks for any help!

채택된 답변

Shashank Prasanna
Shashank Prasanna 2013년 2월 1일
Have you tried copyobj? you can use this to reparent a copy:
  댓글 수: 1
Daniell Algar
Daniell Algar 2013년 2월 1일
I didn't know about that function! I had tried to copy the handles myself without any luck.
It solved it for me, thank you very much!!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jurgen
Jurgen 2013년 2월 1일
  댓글 수: 1
Daniell Algar
Daniell Algar 2013년 2월 1일
Thank you, I'll keep those in mind :).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by