MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Points conditionnal Coloring

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118971] Re: Points conditionnal Coloring
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 18 May 2011 07:16:17 -0400 (EDT)

Why is the Hue wrong?

data = RandomReal[{0, 1}, {50, 3}];

ListPointPlot3D[data,
 ColorFunction -> Function[{x, y, z}, Hue[z]], 
 PlotRange -> {{-0.1, 1.1}, {-0.1, 1.1}, Automatic},
 ViewPoint -> {.5, .5, 10}]

Graphics[{Hue[#3], Point[{#1, #2}]} & @@@ data,
 PlotRange -> {{-0.1, 1.1}, {-0.1, 1.1}},
 Axes -> {True, True}]


Bob Hanlon

---- Louis-Alexandre <laeh at nyu.edu> wrote: 

=============
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,





  • Prev by Date: Re: Get["file.mx"] doesn't work
  • Next by Date: ListSurfacePlot3D-Question
  • Previous by thread: Points conditionnal Coloring
  • Next by thread: Re: Points conditionnal Coloring