Re: Colors in ScatterPlot3D?
- To: mathgroup at smc.vnet.net
- Subject: [mg51022] Re: Colors in ScatterPlot3D?
- From: "Peltio" <peltio at twilight.zone>
- Date: Fri, 1 Oct 2004 04:50:03 -0400 (EDT)
- References: <cjgih6$q5a$1@smc.vnet.net>
- Reply-to: "Peltio" <peltioNOSP at Mdespammed.com.invalid>
- Sender: owner-wri-mathgroup at wolfram.com
"Klaus G" ha scritto ><< Graphics`Graphics3D` > >atable = Table[Random[Integer, {1, 10}], {50}, {3}]; >colortable = Table[Random[Real, {0, 1}], {50}] Try this to build a list of points with prepended the color directive: coloredPoints = Transpose[{atable, colortable}] /. { p_List, col_ } -> { RGBColor[col, 0, 0], Point[p] } And then use Graphics3D directly to show them all: Show[Graphics3D[coloredPoints], Axes -> True] (you can add other directive such as size, and let it depend upon the coordinates of each point). cheers, Peltio invalid address in reply-to. crafty demunging required to mail me.