Re: [Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-03 Thread Peter Skomoroch
Mike, Thanks for the tip, I was also thinking of using some kind of nonlinear transform onto a 1D segmented colormap... I'll let you know if I come up with a solution. -Pete On Tue, Mar 3, 2009 at 8:27 AM, Michael Droettboom wrote: > I don't think there's anything that will directly do what y

Re: [Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-03 Thread Michael Droettboom
I don't think there's anything that will directly do what you want. However, you can provide a list of colors (one entry for each point) to scatter(), (the c kwarg) so you can generate your colors however you need to beforehand. If you come up with a solution that's generic enough, we would de

[Matplotlib-users] encoding 2 variables with hue / intensity

2009-03-02 Thread Peter Skomoroch
Is there any way to encode 2 variables in a matplotlib colormap? The idea is to replicate this dataspora R scatterplot in matplotlib: http://www.dataspora.com/gameday/pitcher/daisuke-matsuzaka/493137 "The bottom strip of charts encode two dimensions with color -- blue or red hue indicates pitch