Re: ArrayPlot: ColorRules v. ColorFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg57955] Re: [mg57934] ArrayPlot: ColorRules v. ColorFunction
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 14 Jun 2005 05:10:19 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
ArrayPlot[T, ColorFunction -> (Which[ # < 0, Green, # <= 0.3, Red, # <= 0.5, White, # <= 1, Blue, True, Green] &)]; Bob Hanlon > > From: Bruce Colletti <vze269bv at verizon.net> To: mathgroup at smc.vnet.net > Date: 2005/06/13 Mon AM 05:50:51 EDT > Subject: [mg57955] [mg57934] ArrayPlot: ColorRules v. ColorFunction > > Re Mathematica 5.1 under WinXP. > > T is a 5x5 matrix of numbers. > > Using ArrayPlot, how would I display the colored array, where entries in [0, 0.3], (0.3,0.5] and (0.5,1] are Red, White and Blue respectively (default color is green for values outside [0,1])? > > Thanks. > > Bruce > >