Re: How to color each point in ListPlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg80259] Re: How to color each point in ListPlot?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 16 Aug 2007 04:40:47 -0400 (EDT)
- Organization: Uni Leipzig
- References: <f9udvf$b31$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, the point coordinates are collected in a single Point[{coord1,coord2,coord3, ..}] and so ListPlot[lst] /. Point[p_] :> ({Hue[Random[]], Point[#]} & /@ p) will help Regards Jens P_ter wrote: > Hello, > I have two lists: list1 are the data to be plotted, (7,5,9,etc.}. list2 is a list of colors I want to assign to each point. Both lists are equally long. > Now I first construct a list of {{Hue[..],Point[..]}, etc.}, make Graphics of it etc. > My question is: can ListPlot do this at once with ColorFunction? Now I get the impression "only one color for one set of data". > with friendly greetings, > P_ter >