Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: [mg59012] Re: How to plot individual 2D data points, where each must have its own color.
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Tue, 26 Jul 2005 04:03:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/25/05 at 1:12 AM, ctf20 at sussex.ac.uk (Chrisantha) wrote:

>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?

Show[Graphics[{Hue@Last@#,Point@Most@#}&/@A],Frame->True];

This assumes the z values are reals between 0 and 1. If instead the z values are RGB triples, substitute RGBColor for Hue in the above.
--
To reply via email subtract one hundred and four


  • 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.