[Yt-dev] color maps

Matthew Turk matthewturk at gmail.com
Sun Jan 11 18:49:42 PST 2009


Hi Stephen,

Try using 'c':

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.scatter

-Matt

On Sun, Jan 11, 2009 at 6:40 PM, Stephen Skory <stephenskory at yahoo.com> wrote:
> Matt,
>
> I added a new callback in r1101 to print the halo particles, and I'm wondering how I can go about coloring each group separately? I made an array 'color' that works without error when used in the color= part of scatter, but changing the values of 'color' doesn't change the color of the points plotted. I think I need to pick a color map but it's not clear to me how to do that. I'm thinking that I'd also apply the same color map to the HopCircleCallback. Do you have any hints on how to do this?
>
> Take your time, of course! I am finishing work for the evening; I'm not waiting around on you.
>
> Thanks!
>
>  _______________________________________________________
> sskory at physics.ucsd.edu           o__  Stephen Skory
> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
> ________________________________(_)_\(_)_______________
>
>



More information about the yt-dev mailing list