Dear list,
I'm having a very simple use case where I want to clip an image using
normalized xy coordinates.
Here 0, 0 would be the middle of the X and Y axes and the radius would be
0.5.
For some reason reason the following code does not achieve what I want:
https://gist.github.com/dengemann/9081
And to anticipate the question, I'm using a recent Anaconda for Mac OS X
with matplotlib version 1.3.1.
On Tue, Jul 8, 2014 at 4:55 PM, Denis-Alexander Engemann <
denis.engem...@gmail.com> wrote:
> Dear list,
>
> I'm having a very simple use case where I want to clip an
... I meanwhile figured it out myself.
https://gist.github.com/dengemann/9081fc259ee5d03ffc6a
It wasn't clear to me that one needs to pass the transform of the axis
object.
Hope it will help someone else in the future.
Best,
Denis
On Tue, Jul 8, 2014 at 5:08 PM, Denis-Alexander Eng
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 t
gt;
> Constructing a patch from a path is as simple as (untested):
>
> import matplotlib.patches as mpatches
> patch = mpatches.PathPatch(my_path, facecolor='red', edgecolor='yellow')
> axes.add_patch(patch)
>
>
> HTH,
>
> Phil
>
>
> On 19
a play, and let us know how you get on.
>
> Best,
>
> Phil
>
> On 22 December 2014 at 11:15, Denis-Alexander Engemann <
> denis.engem...@gmail.com> wrote:
>
>> Thanks Phil,
>>
>> just to make sure I inderstand the logic of PathPatch. Does it cut out