Denis-Alexander Engemann
2014-12-19 23:01:01 UTC
Dear list,
I would like to create a custom image clipping mask using patches. My
constraint is that my patch is required to have an outer and multiple inner
outlines.
To provide an analogy, think of a mask used for disguise where you leave
three holes, two for the eyes, one for the mouth.
I have the xy coordinates for the 'head', and the xy coordinates for each
of the holes that I don't want to be hidden by the ensuing clipping mask.
What's the matplotlib way to construct my desired path + patch from that?
Note, it's important in my case to use a patch object. What I need to do
would not work by simply masking my image using a masked array.
Any pointer would be highly appreciated --
Denis
I would like to create a custom image clipping mask using patches. My
constraint is that my patch is required to have an outer and multiple inner
outlines.
To provide an analogy, think of a mask used for disguise where you leave
three holes, two for the eyes, one for the mouth.
I have the xy coordinates for the 'head', and the xy coordinates for each
of the holes that I don't want to be hidden by the ensuing clipping mask.
What's the matplotlib way to construct my desired path + patch from that?
Note, it's important in my case to use a patch object. What I need to do
would not work by simply masking my image using a masked array.
Any pointer would be highly appreciated --
Denis