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.


Chrisantha schrieb:
> Dear All,
> 
> 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?
> 
> Yours Ever,
> Chrisantha Fernando.
> 
> www.chrisantha.com
> Dept. of Biology.
> University of Sussex. 
> 
example data:
A = Table[{Random[], Random[], Hue[Random[]]}, {100}];

Show[Graphics[A /. {x_?NumericQ, y_, c_} :> Sequence[c, Disk[{x, y},
0.005]]], Axes -> True]

-- 
Peter Pein
Berlin


  • Prev by Date: Re: Freeware Mathematica packages(don't know the exact term)
  • Next by Date: Re: evaluate assuming odd integers?
  • 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.