Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

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




  • 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