MathGroup Archive 2005

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

Search the Archive

Re: ArrayPlot: ColorRules v. ColorFunction


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


  • Prev by Date: Re: ArrayPlot: ColorRules v. ColorFunction
  • Next by Date: Re: ArrayPlot: ColorRules v. ColorFunction
  • Previous by thread: Re: ArrayPlot: ColorRules v. ColorFunction
  • Next by thread: Re: ArrayPlot: ColorRules v. ColorFunction