Re: automatic grid
- To: mathgroup at smc.vnet.net
- Subject: [mg131267] Re: automatic grid
- From: "djmpark" <djmpark at comcast.net>
- Date: Sat, 22 Jun 2013 20:45:08 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
- References: <28212975.175817.1371886687039.JavaMail.root@m06>
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