Re: plot on condition
- To: mathgroup at smc.vnet.net
- Subject: [mg56249] Re: plot on condition
- From: bghiggins at ucdavis.edu
- Date: Wed, 20 Apr 2005 05:30:52 -0400 (EDT)
- References: <d42lcj$3lb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Steven, Try this pnts={{1,2},{5,4},{3,2},{2,6}, {5,3}}; cnd={7,3,5,8,3}; Show[Graphics[MapIndexed[If[ cnd[[First[#2]]] == 3, {Blue, AbsolutePointSize[6], Point[#1]}, {Green, AbsolutePointSize[6], Point[#1]}] &, pnts], {PlotRange -> Automatic, AspectRatio -> GoldenRatio^(-1), DisplayFunction :> $DisplayFunction, ColorOutput ->Automatic, Axes -> Automatic, AxesOrigin -> Automatic, PlotLabel -> None, AxesLabel -> None, Ticks -> Automatic}]] Cheers, Brian