[Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Karl Young
I have 2 float arrays of the same dimension which I use to generate a 3rd array, again of the same dimension, containing integers from a small set (I obtain the 3rd array via clustering in the 2 dimensional space of points obtained as values from the same location in the initial 2 arrays).

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread John Hunter
On Thu, Jun 4, 2009 at 6:38 PM, Karl Youngkarl.yo...@ucsf.edu wrote: I have 2 float arrays of the same dimension which I use to generate a 3rd array, again of the same dimension, containing integers from a small set (I obtain the 3rd array via clustering in the 2 dimensional space of points

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Young, Karl
Subject: Re: [Matplotlib-users] consistent colors between imshow and scatter On Thu, Jun 4, 2009 at 6:38 PM, Karl Youngkarl.yo...@ucsf.edu wrote: I have 2 float arrays of the same dimension which I use to generate a 3rd array, again of the same dimension, containing integers from a small set (I

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Eric Firing
Young, Karl wrote: Thanks for the tip and sorry I didn't include a complete code snippet; the current code involves images (scipy.ndimage) and clustering code and I thought that was a little too much too include; I'll try to extract something simpler. I guess the main question is how to use a

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Young, Karl
Hi Eric, Thanks much - I'll try that. From: Eric Firing [efir...@hawaii.edu] Sent: Friday, June 05, 2009 10:43 AM To: Young, Karl Cc: John Hunter; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] consistent colors between imshow

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Karl Young
hmmm... in response to John's earlier request I cobbled a simple example but that seems to work; either there's a strange error in the more complex version or my misunderstanding of color maps is messing with me. Anyway, for the record, here's an example of what I want to do (that actually