필터 지우기
필터 지우기

Apply same patch object on multiple subplots

조회 수: 1 (최근 30일)
Lina KORONFEL
Lina KORONFEL 2020년 7월 28일
댓글: Lina KORONFEL 2020년 7월 29일
What is the most efficient way to apply the same patch object to two subplots on the same figure? I currently get the patch object shown only on the last subplot of the figure, but not the rest.

채택된 답변

Walter Roberson
Walter Roberson 2020년 7월 28일
copyobj() the patch object into the axes of the subplot.
Note: if you try to set the Parent property of the patch to be the subplot, then it will move to that subplot rather than being duplicated. Any given object can only have one Parent, but you can use copyobj() to clone to place elsewhere.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by