Re: Points conditionnal Coloring
- To: mathgroup at smc.vnet.net
- Subject: [mg119002] Re: Points conditionnal Coloring
- From: Peter Pein <petsie at dordos.net>
- Date: Thu, 19 May 2011 07:43:19 -0400 (EDT)
- References: <iqtn7b$ik2$1@smc.vnet.net>
Am 17.05.2011 13:46, schrieb Louis-Alexandre: > Hi, > > I am trying to plot some points, and color them according to a particular Value. > > dalist is of that kind : {{x1,y1,z1},{x2,y2,z2},... ,{xN, yN,zN}} > > So I need a simple 2D plot where the color of the point will depend on the z value. > > What I have : > > Graphics[{Hue[#3], Point[{#1, #2}]}& @@@ dalist, Axes -> {True, True}] > > Obviously this Hue[] is wrong. > > Many thanks fo any help you could provide, > Hi, a little bit easier than Alexei's version: Graphics[{Hue[#3], Point[{#1, #2}]} & @@@ Transpose[MapAt[Rescale, Transpose[dalist], 3]], Axes -> {True, True}] Peter