MathGroup Archive 2013

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

Search the Archive

Re: automatic grid


veamos1 = {"V1", "V2", "V3", "V4"};
veamos2 = {5, 20, 7, 11};
Grid[{veamos1, veamos2}] /. 
 n_Integer?(# > 10 &) :> Item[n, BaseStyle -> {FontColor -> Red}]


David Park
djmpark at comcast.net 
http://home.comcast.net/~djmpark/index.html 


From: Francisco Gutierrez [mailto:fgutiers2002 at yahoo.com] 

Dear Group:
I have a grid (in reality, a collection of grids) and would like to make
Mathematica give each entry of the grid a style depending on its value.
For example:
Aveamos1= {"V1","V2",V3", "V4"}
veamos2={5,20,7,11}
Grid[{veamos1,veamos2}]
Suppose that I want any value above 10 to be coloured in red. How can I
manage to do this?
Thanks
Francisco




  • Prev by Date: Re: automatic grid
  • Next by Date: Re: How to remove the "0." from "0. + 1.41774i"
  • Previous by thread: Re: automatic grid
  • Next by thread: labeling clustered data