Multiple plot handles to the same figure

4 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by