Re: [Matplotlib-users] Masking with patches

2008-10-30 Thread Pierre GM
Søren, Why wouldn't you allocate a 'zorder' to each mask, corresponding to a layer nb. That way, if a same pixel is shared by 2 masks or more, you take the one with the highest zorder. That could be done as easily as definind a `maskstack` list, with element `i` the mask with zorder `i`. Now, th

[Matplotlib-users] Masking with patches

2008-10-29 Thread Søren Nielsen
Hi, I'm making a masking function that can mask out certain areas of an image using different types of masks, and display them using patches. I want to add a function where a user can move a mask that has already been created. I can use the picker = True to have it return the patch being clicked