Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*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 2002

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

Search the Archive

Re: Colored ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36896] Re: Colored ListPlot
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Tue, 1 Oct 2002 04:45:29 -0400 (EDT)
  • References: <an8sm0$6r6$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

John,
It is easier to do without ListPlot:

Make some data,

dat= Table[Random[],{10},{3}];

Show[Graphics[{PointSize[.05],{Hue[2/3#3],Point[{#1,#2}]}&@@@dat}
      ],
    Frame->True
    ];

If the points need to be joined then something like

Show[Graphics[{
        Line /@Partition[dat[[All,{1,2}]],2,1],
        PointSize[.05],{Hue[2/3#3],Point[{#1,#2}]}&@@@dat
        }
      ],
    Frame->True
    ];
--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


<Moranresearch at aol.com> wrote in message news:an8sm0$6r6$1 at smc.vnet.net...
> I have a list of points l1={xi,yi,zi} how can I make a 2D list plot of
> {xi,yi} where the color of each point is zi ? Thank you. John
>
>




  • Prev by Date: RE: Colored ListPlot
  • Next by Date: Re: Solve simultaneous eqns
  • Previous by thread: RE: Colored ListPlot
  • Next by thread: Re: Colored ListPlot