Re: [Matplotlib-users] using .set_clip_path methods

2014-07-08 Thread Denis-Alexander Engemann
... 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 Engemann < de

Re: [Matplotlib-users] using .set_clip_path methods

2014-07-08 Thread Denis-Alexander Engemann
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 image using > normalized

[Matplotlib-users] using .set_clip_path methods

2014-07-08 Thread Denis-Alexander Engemann
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