Apply same patch object on multiple subplots
5 views (last 30 days)
Show older comments
Lina KORONFEL
on 28 Jul 2020
Commented: Lina KORONFEL
on 29 Jul 2020
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 Comments
Accepted Answer
Walter Roberson
on 28 Jul 2020
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.
More Answers (0)
See Also
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!