Apply same patch object on multiple subplots
5 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!