Fred Mailhot wrote:
> Hi there,
> 
> I've got 4 time series that live in a 2-d space (imagine points at
> (1,1), (1,2),(2,1), and (2,2) that drift a little over time), and I'm
> using scatter() to show them. How can I plot so that each of the
> groups of points has the same colour?
> 
> I've checked the docs and examples and can't seem to find quite what
> I'm looking for. A sample script or indication of where to look in the
> docs would be appreciated.
> 
> Many thanks!
> Fred.


What you can do is something like this:

   x = arange(4) # just some test-data
   y = x**2

   c = ['#ff0000', '#cc3300', '#996600', '#66cc00'] # the color sequence

   pylab.scatter(x,y, color=c)

I think you get what you are looking for if you do this for each group 
separately.

Manuel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to