Hi, On 5/16/07, Thorsten Kranz <[EMAIL PROTECTED]> wrote: > Hi, I have a question about the command "imshow". Is there a way to have > such a colorplot only limited to a circular area? > > I want to have it look like the colorplots in > > http://www.uke.uni-hamburg.de/kliniken/neurologie/downloads/klinik-neurologie/Hummel_Figure7.jpg
I have used the same sort of plots for the polar regions, where you sometimes want to concentrate on one single annulus. One thing you can do is to have a mask, with the same size as your matrix. You calcualte r_ij = sqrt(xi*xi + yj*yj), set a threshold U and let the mask be equal to 1 if r<=U, or else 0. When you apply the mask, the area outside your radius of interest will be masked out. I know, I know... long winded :) Cheers, Jose ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users