Re: plot on condition
- To: mathgroup at smc.vnet.net
- Subject: [mg56234] Re: plot on condition
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Wed, 20 Apr 2005 05:30:08 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d42lcj$3lb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Graphics[ MapThread[ {If[3 == #2, RGBColor[0, 0, 1], RGBColor[0, 1, 0]], Point[#1]} &, {pnts, cnd} ], Frame -> True ] //Show ??? Regards Jens schrieb im Newsbeitrag news:d42lcj$3lb$1 at smc.vnet.net... > hello > my question about plotting a list of points but > with some condition depends on > the status of points in other list; > pnts={{1,2},{5,4},{3,2},{2,6},{5,3}}; > cnd={7,3,5,8,3}; > the condition is: plot a point in list "pnts" in > Blue if the corresponding > element in list "cnd" is 3 else plot in Green > regards >