MathGroup Archive 2005

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

Search the Archive

Re: How to plot individual 2D data points, where each must have its own color.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58989] Re: [mg58957] How to plot individual 2D data points, where each must have its own color.
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Tue, 26 Jul 2005 04:01:54 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Chrisantha,

> I have a list of data
> 
> 
> A = {{x,y,z}, {x2,y2,z2}.....{xn,yn,zn}}
> 
> where x, and y are coordinates of points, and z is the color 
> of that point. How can I plot this on a 2D plot?

How about this?  Generate some data
	data = {#, Random[], Random[]} & /@ Range[32];

And plot it
	temp = Graphics[{Hue[data[[#, 3]]], PointSize[.02], Point[{data[[#,
1]],
             data[[#, 2]]}]}] & /@ Range[Length@data];
	Show[temp, PlotRange -> {0, 1}, Frame -> True];

>From memory, a similar question was asked very recently.

Regards,

Dave.


  • Prev by Date: Re: Freeware Mathematica packages(don't know the exact term)
  • Next by Date: Re: Freeware Mathematica packages(don't know the exact term)
  • Previous by thread: Re: How to plot individual 2D data points, where each must have its own color.
  • Next by thread: Re: How to plot individual 2D data points, where each must have its own color.